Repository navigation
D271 — an agent restarted under a new session renews its own hold (#498) - #501
Merged
Merged
Conversation
A restart changes an agent's session, never its App; D185 told holders apart by session alone, so the agent's own deliverables read as another's. In an agent's session, claim now renews a hold of the same person when every event that put a session on it was committed under the identity this session commits with; said, both sessions kept for K5. Another agent of the person, or a person's own sessions, still take it over (#315). Agent-Session: napkinstack-os-77 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eft recorded K5's Action and project.md now give the command that renews: nstack claim <id> --person <p> --session <it>. The renewal records the session it leaves (Hold-Previous). The agent's identity must be the one its own global configuration names, never a clone's local one. --take-over stays a take-over. Two live sessions of one agent are said to be one holder. Agent-Session: napkinstack-os-77 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
napkinstack-admin
approved these changes
Nov 23, 2026
This was referenced Nov 23, 2026
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.
Workstream
D271, from #498. Its row is in
docs/governance/workstreams.md.What it changes
D185 (#315) tells the holders of a hold apart by session alone. Downstream, a multi-agent project restarted its workstation. Each agent's session id changed but its App did not, so the agents' deliverables read as held by another session:
nstack claimasked for a take-over on the decider's word, for work that never changed hands.flowchart LR C[nstack claim, hold held by another session of the same person] --> T{--take-over?} T -->|yes| O[take-over, as before] T -->|no| A{in nstack agent run, and every session-bearing event committed by this session's global identity?} A -->|yes| R[renew: says the identity, records Hold-Previous, both sessions kept for K5] A -->|no| D[needs the decider's word, as before]A hold's events now record who committed them. In an agent's session (
nstack agent run),claimrenews a hold that another session of the same person holds when every event that put a session on the hold was committed under this session's identity. That identity comes from the global git configuration, i.e. the agent's own App; a clone's localuser.emaildoes not count. The renewal states that identity and records the session it leaves inHold-Previous. Two live sessions of one agent count as one holder.Unchanged: one identity cannot tell apart another agent of the same person, or a person's own sessions outside
nstack agent run. Those still take the hold with--take-over(#315).--take-overalways records a take-over.K5's Action,
project.mdand ADR-0007 now give the command that works:Not taken: checking whether the former session is gone. git sees no sessions, and the renewal written in the record makes the move visible.
Fresh verifier
Findings fixed in the second commit:
project.mdnamed no person and no session, so it was refused or left K5 refusing;What a project receives
The engine (
hold.py, and K5's Action inpull_request.py) and.nstack/handbook/project.md. Nothing that was green turns red. An agent restarted under a new session renews its own hold without the decider's word.Definition of Done
Hold-Previous. Further tests check that these are still refused:uv run bash platform/tests/run.shgreen, on a committed treeuv run nstack fitnessgreen🤖 Generated with Claude Code