Repository navigation
Practice skill: spawn one-shot workers unnamed; shut teammates down when their result is sealed - #1142
Open
seathatflowsinourveins wants to merge 3 commits into
Conversation
…hen sealed The command center found 48 idle evidence-reviewer teammates in its session (2026-10-15): each one-shot micro was spawned with a name, and with agent teams on, a name launches a teammate that stays running and addressable until it is shut down. The workers rows now state that lifecycle from the official docs at client 2.1.300 (fetched 2026-10-15T04:08:42Z): - subagent-definitions route: a one-shot worker (read, judge, builder) spawns without a name and is resumed by agent id; a name is for a worker others must message (sub-agents.md:937-939, agent-teams.md:60). - agent-teams route and notes: name only a worker that must message others; shut each teammate down once its result is sealed (a shutdown request, agent-teams.md:202-210, or TaskStop); an idle teammate's row hides but it stays running and addressable (agent-teams.md:86, :420); a TeammateIdle hook can stop it with continue false (hooks.md:2853-2858); every session has one implicit team when the variable is set (CHANGELOG 2.1.178). - evidence/artifacts/agent-lifecycle-20261015/sources.json: each page's sha256 and fetch time, and the cited lines quoted. - The slot manifest lists the new route and evidence differences. tests/test_native_practice_agent_lifecycle.py failed before the change (10 failures, 1 error) and passes; the native-practice modules run 105 OK. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ateIdle measurement - Owner direction, 2026-10-15 (paraphrased via the command center): teams stay on host-wide, following upstream practice, so they remain auto-invocable for tasks that suit them; one-shot workers spawn unnamed and teammates are shut down when sealed. - Correction to this PR's first commit: the note said a TeammateIdle hook can stop a teammate at idle with continue false. Measured 2026-10-15 in a scratch interactive session (2.1.300): continue false ends the turn and the final answer still reaches the lead, but the teammate stays listed as idle and answers the next message; a shutdown request removes it from ListAgents. Source: hooks.md:2853-2858; evidence/artifacts/agent-lifecycle-20261015/ measurement.json. - New assertion in tests/test_native_practice_agent_lifecycle.py, failed before this commit; 106 native-practice tests OK; validate rc 0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
5 tasks done
…fecycle measurement GPT read of #1142 at b4c4bba (P1): measurement.json committed a 16-hex prefix of the lead session's transcript, which is not committed. The transcript object now keeps only its kind and line count, and a regression rejects any sha/digest key or 7+ hex value in an object marked not committed. measurement.json re-registered in manifests/evidence.json. Fail-before: test_no_digest_commits_to_the_unpublished_transcript, AssertionError: 'sha' unexpectedly found in 'sha256_prefix'. After: 7 tests OK; validate rc 0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
subagent-definitions,agent-teams) now state the agent lifecycle from the official docs at 2.1.300. One-shot workers spawn without anameand resume by agent id. A name is only for a worker that must message others. Each teammate is shut down once its result is sealed, because an idle teammate stays running and addressable.0f4ee075blane:foundation.claude/skills/claude-native-practice/reference/slots.jsonandworkers.md;evidence/artifacts/agent-lifecycle-20261015/sources.json(new) andtests/test_native_practice_agent_lifecycle.py(new);manifests/evidence.json.Why: the command center found 48 idle evidence-reviewer teammates in its session (2026-10-15). Each was a one-shot micro spawned with a name, and the command center stopped them. The owner item of 2026-10-15, paraphrased by the command center, is to resolve the agent team's full lifecycle.
SOTA sources
Official Claude Code docs at client 2.1.300, fetched 2026-10-15T04:08:42Z. Each page's sha256 and the quoted lines are in
sources.json.-pand Agent SDK sessions keep it a subagent.namemakes a subagent addressable. In an interactive session with teams on, a named spawn from the main conversation launches as a teammate, unless it is a fork or passesisolationon the call.TeammateIdlewith exit 2 keeps a teammate working, and{"continue": false, ...}stops it.94506ff0, 2.1.178: withCLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1, every session has one implicit team, and the Agent tool'snamespawns a teammate.Evidence-class table
source_reviewsources.json(digests and quoted lines)native_proven(the command center's measurement)local_integrationtests/test_native_practice_agent_lifecycle.py: failed before the change (10 failures, 1 error), passes afterLocal commands run
Decision record
The slot rows are the record (dated notes on
agent-teams). The host switch question (whetherCLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMSstays on host-wide) is the owner's call. The measured case goes to the command center separately. ATeammateIdlehook design follows as a reviewed host diff.Fix round 1 (c28c14b)
From GPT full1 at b4c4bba (
full1-pr1142/GPT-VERDICT-b4c4bba3b.md), blocker 1 (P1). The command center released this commit at 2026-10-15T10:49Z.measurement.jsoncommitted a 16-hex prefix of the lead session's transcript, which is not committedmeasurement.jsonis re-registered. No other copy of the prefix exists in the tree or the body.test_no_digest_commits_to_the_unpublished_transcriptrejects any sha/digest key, or any value of 7 or more hex characters, in an object marked "not committed". It failed with'sha' unexpectedly found in 'sha256_prefix'.python3 -m unittest tests.test_native_practice_agent_lifecycle tests.test_published_digest_privacy tests.test_provenance_digest_custody: OK (1 skip).scripts/validate.py: rc 0. The earlier commit keeps the removed field in its history; no history rewrite.Follow-ups
Checklist
🤖 Generated with Claude Code