docs/testing/ecc-ito-real-cli-bridge.tdd.md
Date: 2026-08-05
Source plan: requirements were derived from the approved implementation handoff. No external plan file was executed.
login, then
use validation-only auth, find, and status, or revoke the device with
logout, without a duplicate client.Before production changes:
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.
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.
| Guarantee | Test | Type | Result |
|---|---|---|---|
login, logout, auth, find, and status forward only their reviewed surfaces | tests/scripts/ito-cli-bridge.test.js | end-to-end process contract | PASS |
| Login output streams before completion and its exit status propagates | tests/scripts/ito-cli-bridge.test.js | async process contract | PASS |
auth --no-browser fails before spawn | tests/scripts/ito-cli-bridge.test.js | negative process contract | PASS |
| Full RFQ arguments cross unchanged | tests/scripts/ito-cli-bridge.test.js | integration | PASS |
| Login scrubs the API key; auth/find/status forward it directly; evals stays isolated | tests/scripts/ito-cli-bridge.test.js | security integration | PASS |
| Unsupported and dry-run operations fail before spawn | tests/scripts/ito-cli-bridge.test.js | negative end-to-end | PASS |
| Missing/relative executables fail with exact local guidance | tests/scripts/ito-cli-bridge.test.js | negative end-to-end | PASS |
| Child output and exit code are preserved | tests/scripts/ito-cli-bridge.test.js | end-to-end process contract | PASS |
| Skill, package, manifests, and MCP template agree | tests/ci/ito-compute-skill.test.js | repository contract | PASS |
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.