Repository navigation
feat(lifecycle): rule lifecycle with a person gate in the CLI - #701
Merged
Merged
Conversation
Rules carry status draft|active|retired, an optional challenge, and the session/run that wrote them. Only a person (an interactive terminal or a verified HUNCH_PERSON_TOKEN) can approve a draft, clear a challenge, replace, retire or edit a rule; any agent can challenge. A draft warns but never blocks, and a retired rule is not enforced. Without a verified person, `hunch test`, `record-bug` and review-memory capture write drafts and never overwrite an existing rule in either the public home or the private overlay, including a record file the loader skips. MCP review_imported_adr decline and record_correction of an active rule are gated the same way. The gate is a guard against agent mistakes, not a security boundary against a same-user program (docs/person-actions.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
🧠 Hunch — Engineering Memory Guard⛔ Invariants directly in scope
ℹ️ Nothing here is a direct, high-confidence, non-stale blocking invariant — not blocking this PR. 🧠 Hunch · engineering memory · run 📜 Hunch Constitution — 2 policy receipt(s)
|
This was referenced Nov 26, 2026
Open
The matrix verifier ran the candidate CLI as anonymous non-TTY agents, so record-constraint produced drafts under the new person gate and the correction-policy upgrade could not be proved. Each matrix actor now gets a random per-run person token registered in a store outside its home, wired through the test-only person-home preload. The product person gate is unchanged. The preload is bound into the matrix release coverage so a change to it is tied to the matrix lane. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Rule lifecycle with a person gate in the Hunch CLI: draft, active, challenged, retired. Person-only actions (confirm, clear a challenge, replace, retire) exit 4 without a TTY or
HUNCH_PERSON_TOKEN. Used by the Nuryel memory control plane.Checks
npm test: 5117 tests, 5057 pass, 3 fail, 40 skipped, 17 todo. Failures: the known e2e merge pair (also on main) and "existing shared attach merges safely…", which passes alone on base and branch (flake under load).Residuals
spawned_constraint.void.replaceRuleis not atomic.🤖 Generated with Claude Code