Back to Everything Claude Code

ECC × Itô Real CLI Bridge — TDD Evidence

docs/testing/ecc-ito-real-cli-bridge.tdd.md

2.2.03.1 KB
Original Source

ECC × Itô Real CLI Bridge — TDD Evidence

Date: 2026-08-05

Source plan: requirements were derived from the approved implementation handoff. No external plan file was executed.

User journeys

  1. As an ECC operator, I can explicitly invoke streaming device login, then use validation-only auth, find, and status, or revoke the device with logout, without a duplicate client.
  2. As a security reviewer, I can prove unsupported operations, missing local installs, and ECC dry-run requests fail before any child process or network operation.
  3. As an agent-harness user, I can install one truthful skill that names only the real CLI commands and MCP tools.

RED evidence

Before production changes:

text
node tests/scripts/ito-cli-bridge.test.js
Passed: 13
Failed: 8

node tests/ci/ito-compute-skill.test.js
Passed: 2
Failed: 3

The failures captured the old combined auth/login surface, legacy-mode API-key gate, buffered login output, and stale help, skill, MCP, and integration wording.

GREEN evidence

text
node tests/scripts/ito-cli-bridge.test.js
Passed: 21
Failed: 0

node tests/ci/ito-compute-skill.test.js
Passed: 5
Failed: 0

node scripts/ci/validate-skills.js
Validated 281 skill directories

node tests/scripts/ito-compute-sponsor.test.js reached 11 passes and 2 failures; both failures are setup failures because the current worktree lacks ajv. node scripts/ci/validate-install-manifests.js is blocked by the same missing module. No dependency installation was performed.

Test specification

GuaranteeTestTypeResult
login, logout, auth, find, and status forward only their reviewed surfacestests/scripts/ito-cli-bridge.test.jsend-to-end process contractPASS
Login output streams before completion and its exit status propagatestests/scripts/ito-cli-bridge.test.jsasync process contractPASS
auth --no-browser fails before spawntests/scripts/ito-cli-bridge.test.jsnegative process contractPASS
Full RFQ arguments cross unchangedtests/scripts/ito-cli-bridge.test.jsintegrationPASS
Login scrubs the API key; auth/find/status forward it directly; evals stays isolatedtests/scripts/ito-cli-bridge.test.jssecurity integrationPASS
Unsupported and dry-run operations fail before spawntests/scripts/ito-cli-bridge.test.jsnegative end-to-endPASS
Missing/relative executables fail with exact local guidancetests/scripts/ito-cli-bridge.test.jsnegative end-to-endPASS
Child output and exit code are preservedtests/scripts/ito-cli-bridge.test.jsend-to-end process contractPASS
Skill, package, manifests, and MCP template agreetests/ci/ito-compute-skill.test.jsrepository contractPASS

Known gaps

  • No live Itô API, RFQ, browser, GPU node, or paid operation was invoked.
  • No live GPU qualification was performed.
  • The CLI remains locally built and unpublished.

Merge evidence

No TDD checkpoint commits were created because the implementation handoff explicitly prohibited commits. The working-tree diff and this report preserve the RED/GREEN evidence instead.