Skip to content

test: bind tc run evidence to reported task id#114

Merged
coreytshaffer merged 1 commit into
mainfrom
claude/tc-run-vertical-slice-b4a92c
Jul 25, 2026
Merged

test: bind tc run evidence to reported task id#114
coreytshaffer merged 1 commit into
mainfrom
claude/tc-run-vertical-slice-b4a92c

Conversation

@coreytshaffer

Copy link
Copy Markdown
Owner

Adds a focused regression test proving that the route_decision and worker_result ledger events from a tc run invocation share the same generated task_id reported to the operator. No production code, schemas, routing behavior, or authorization logic changed.

Scope

  • One file: tests/test_tc_run_cli.py, 23 insertions.
  • Test-only. Production impact: none.

Why parse the CLI output

The test omits --task-id so the identifier is the one tc run generates for itself, then recovers it from the success line. Passing an id in would only prove the ledger echoes back what the test supplied; reading it back out is what proves the persisted evidence belongs to the run the operator was actually shown.

Verification

  • tests/test_tc_run_cli.py + tests/test_tc_run_plan_cli.py: 36 passed
  • Full suite: 1254 passed, 5 skipped, 1 xfailed
  • ruff check tests/test_tc_run_cli.py: clean
  • git diff --check origin/main...HEAD: clean

The lone xfail (tests/test_authz.py::test_concurrent_consume_race_documented) is pre-existing and unrelated: it documents CR-YK-001's non-atomic receipt consumption, with atomic claiming deferred to CR-YK-002. It is strict=True and untouched by this change.

🤖 Generated with Claude Code

Assert that the route_decision and worker_result events from one tc run
invocation carry the same task_id, and that it matches the identifier the
CLI reported. The test omits --task-id so the value is the one tc run
generated for itself, proving the persisted evidence belongs to the run the
operator was shown rather than to an id supplied by the test.

Test-only; no production behavior changed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Jul 25, 2026

Copy link
Copy Markdown

Deploy Preview for poetic-quokka-0fd859 ready!

Name Link
🔨 Latest commit 7e4d042
🔍 Latest deploy log https://app.netlify.com/projects/poetic-quokka-0fd859/deploys/6a6527263d20bd0008e57ee5
😎 Deploy Preview https://deploy-preview-114--poetic-quokka-0fd859.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@coreytshaffer
coreytshaffer merged commit ac851d5 into main Jul 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant