fix(state): establish authoritative runtime root#3160
Merged
Conversation
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.
Summary
Issue #3139 exposed split-brain state-root selection: nested invocations could report no active mode while native hooks still enforced a parent session's state. This change establishes one persisted, authenticated, canonical-realpath state-root authority per run and makes mutation, status, cancellation, launch, hook, HUD/doctor, team/tmux, restart/resume, worktree, and migration surfaces resolve through it.
Changes
Validation
npm run buildnpm test— bounded exact-head run was stopped after exceeding the requested time bound; it reported no failures through 9,935 retained output lines, including the authority/native-hook surfaces reached before cancellation.npm run check:no-unusednpm run lint— 738 files checked, no fixes.git diff --checknpm run smoke:packed-install.github/workflows/authority-state-root.ymlomx doctor— setup/config behavior is not changed by this authority fix.Checklist
docs/STATE_MODEL.mddocuments the new authority model.Related
Addresses #3139.
—
[repo owner's gaebal-gajae (clawdbot) 🦞]