Repository navigation
feat(autonomy): admit C2 issues by owner-written binding rules - #7421
Conversation
Add admission.rule_admission[] to the security binding (schema, validator, admission-policy leaf), a no-model evaluator work-items/scripts/rule-admit.sh with fixture tests, and a second admission path in the work-loop gate that consumes its verdicts without writing any label. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…only rule-admit.sh exits 4 unless the binding's dispatch_posture is autonomous-enabled and its decision table makes each rule's class autonomous-eligible for tracker-vcs-event under every provenance; the binding validator reports the same conflict as a finding. C1 rule admission is off until a mechanical no-push exists: the work skill always pushes, so the no-push constraint rested on prose. A C1 rule stays valid and refuses every issue. admission-policy.md records agent-filed issues reading as owner-authored as an accepted risk. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 3m 18s —— View job Code review in progress
|
|
Claude finished @kyle-sexton's task in 6m 33s —— View job Security review in progress
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a9e2a7d85b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…old text Move the work-loop rule-admission paragraph into reference/rule-admission.md so SKILL.md stays under the 500-line cap, correct the human-merge text (a Hold: line holds the merge only; ready still flips the draft), add outcome eval cases 31 and 32 for the rule-admission branch, and spell the pin alternation in rule-admit.sh so typos passes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @kyle-sexton's task in 4m 5s —— View job Security review — no findings
I reviewed No new security findings. The trust boundary holds up under adversarial reading:
The PR body's own "known follow-ups" (1-4: model-supplied claude-lane-summary: lane=claude-security-review sha=9d2a92572c8c2307832b69f114d5705ac6c858e0 run=38510243750 |
|
Claude finished @kyle-sexton's task in 3m 43s —— View job Code review complete
SummaryReviewed the full diff at head Both findings from Codex's earlier review (on commit
Cross-checked for internal consistency and found none of my own:
No high-signal correctness or maintainability findings to report. Verification note: I was not able to execute claude-lane-summary: lane=claude-review sha=9d2a92572c8c2307832b69f114d5705ac6c858e0 run=38510243830 |
|
claude-review has reviewed this pull request through eecd2f6; a later push is reviewed from there. |
|
claude-security-review has reviewed this pull request through eecd2f6; a later push is reviewed from there. |
A spoke is read, not expanded, so the plugin-root token in reference/rule-admission.md resolved against nothing. SKILL.md now names the script path and the spoke points at it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @kyle-sexton's task in 1m 0s —— View job Code review complete
SummaryIncremental scope only (commit The change moves the literal Checked for correctness:
No correctness, maintainability, or test-coverage findings on this incremental diff. claude-lane-summary: lane=claude-review sha=eecd2f605d141038c6fb81e39b9c3fff4f104836 run=38510770572 |
|
Claude finished @kyle-sexton's task in 49s —— View job Security review — no findings
Scope: incremental review per the lane header — this lane last reviewed
What changed: purely a documentation de-duplication. The literal path to the admission Instruction-surface check: this is a reorg, not a removal — the fully-qualified path is still No security-relevant surface in this diff. No findings reported. claude-lane-summary: lane=claude-security-review sha=eecd2f605d141038c6fb81e39b9c3fff4f104836 run=38510770685 |
No related issue: companion to the claude-code-plugins rule-admission work (melodic-software/claude-code-plugins#7421), which reads the intake-triage lane comment. ## Summary Intake triage writes `Proposed work class: <class>` on line 2 of its lane comment on every run. ## Fix - `feat(intake-triage)`: record the proposed work class on every run. - `fix(intake-triage)` (security review findings 1 and 2): an escalated run writes `Proposed work class: none` and shows a usable class below the fixed note as `Unconfirmed model suggestion: <class>`; the comment is rewritten on every run where `ran` is true, so a rerun replaces line 2. ## Verification - `node --test .github/scripts/*.test.cjs`: 378 pass, 0 fail (reported by the worker that made the fix). - New tests: escalated run asserts line 2 is `none` with the suggestion line; empty comment with no class still writes `none`. ## Related - Not addressed (evaluator-side, from the same review): finding 3 (proposal not tied to the issue text; rule-admit in #7421 compares the last body-edit time) and finding 4 (another workflow could spoof the comment; see #7421's low findings). The optional label-regex tightening at intake-triage.yml:279 was not applied. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>

No related issue: the owner asked for this directly in session; no tracker item exists for it.
Summary
The work loop can admit a GitHub issue through owner-written rules in the security binding (
admission.rule_admission[]), using the intake-triage lane's proposed work class. Nothing writes a label and no model runs.plugins/work-items/scripts/rule-admit.shevaluates the rules, and the autonomy admission-policy leaf ("Rule admission") defines what they mean.Fix
These changes apply the owner's disposition of the security review findings:
rule-admit.shexits 4 unlessdispatch_postureisautonomous-enabledand the decision table resolves each rule's class toautonomous-eligiblefortracker-vcs-eventunder every provenance. Resolution is most-specific-wins, no match meanshuman-gated, and an equal-specificity tie fails closed.check-security-binding.mjsreports the same conflict as a finding.C1 rule admission is not enabled), because/work-items:workalways pushes and no-push was enforced only in prose. The work-loop SKILL.md and the admission-policy leaf say this and give the reason. Thework-class:label gate in babysit is unchanged.admission-policy.mdrecords this as an accepted risk. No code changed for it.Known follow-ups (low findings 4-7, deliberately not fixed here):
--bindingpath torule-admit.sh, so a wrong path could be passed. The skill tells the model to resolve the path from/autonomy:setup, but nothing checks it mechanically.updated_at, but nothing checks whether the lane comment itself was edited.github-actions[bot]plus a marker. Every workflow in the repository shares that identity.Verification
bash plugins/work-items/scripts/rule-admit.test.sh: all checks pass. New checks: a C1 rule never admits;human-gated-onlyposture, missing table rules, an empty table (default human-gated) and a most-specific agent-provenance gate each exit 4. In the control, a gate on another signal class still admits.bash plugins/autonomy/skills/setup/scripts/check-security-binding.fixtures.test.sh: 696 checks pass, including two new fixtures (rule-admission-human-gated-only.json,rule-admission-gated-class.json). In the second fixture, a C1 rule gated only ontemporalis not flagged.scripts/affected-tests.sh --run: 11 shell suites pass. The selected suites in other runtimes also pass:promotion-evidence-e2e.test.mjs(33 pass) andtest_render_review.py(10 OK)..editorconfig) are clean on the touched scripts, and markdownlint is clean on the touched markdown.Related
🤖 Generated with Claude Code