Skip to content

Add gated live smoke check for delegate parent-task linkage#57

Merged
Jason-Vaughan merged 1 commit into
mainfrom
test/live-delegate-linkage
Jun 19, 2026
Merged

Add gated live smoke check for delegate parent-task linkage#57
Jason-Vaughan merged 1 commit into
mainfrom
test/live-delegate-linkage

Conversation

@Jason-Vaughan

Copy link
Copy Markdown
Owner

What

A TANGLEBRAIN_LIVE-gated test (LiveDelegateLinkageTest) that routes a delegation-inducing prompt
through the real router → orchestrator → delegate_local and asserts every delegate record's
parent_task_id matches the parent task's task_id.

Why

The per-parent-task tree (#52, PR #54) depends on the orchestrator forwarding TANGLEBRAIN_TASK_ID
to the MCP delegate child — a load-bearing assumption verified manually once but not guarded by any
standing test. This turns that one-time spike into a reproducible check. Closes #55.

It skips, never fails, if the orchestrator doesn't call the delegate tool on a given run (emergent
behavior), so it can't become a flaky failure — but when delegation does happen, it enforces the linkage.

Test plan

  • 395 hermetic tests pass; the new test is TANGLEBRAIN_LIVE-gated (skipped in CI).
  • Verified passing live: TANGLEBRAIN_LIVE=1 python -m unittest tests.test_live.LiveDelegateLinkageTest
    → OK (claude delegated; parent + delegate records shared the same id).

Closes #55.

A TANGLEBRAIN_LIVE-gated test routes a delegation-inducing prompt through
the real router → orchestrator → delegate_local and asserts each delegate
record's parent_task_id matches the parent task's task_id — a standing
guard for the load-bearing assumption that the orchestrator forwards
TANGLEBRAIN_TASK_ID to the MCP child it spawns. Skips (never fails) if the
orchestrator doesn't delegate that run, since delegation is emergent.

Verified passing live against the real claude→MCP-delegate boundary.
@Jason-Vaughan Jason-Vaughan enabled auto-merge (squash) June 19, 2026 05:59
@Jason-Vaughan Jason-Vaughan merged commit 30903e6 into main Jun 19, 2026
3 checks passed
@Jason-Vaughan Jason-Vaughan deleted the test/live-delegate-linkage branch June 19, 2026 06:00
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.

[chore] No standing check that delegate parent-task linkage survives a real orchestrator

1 participant