Skip to content

fix: attribute Claude stage refusals to the refusing layer and keep completed work (#550) - #555

Merged
datacas merged 6 commits into
mainfrom
fix/550-claude-readonly-perms
Nov 30, 2026
Merged

datacas merged 6 commits into
mainfrom
fix/550-claude-readonly-perms

Conversation

@datacas

@datacas datacas commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Closes #550

Work item: GitHub issue #550 — #550

Diagnosis

Symptom. In the #486 cycle (PR #549) and the #503 cycle (PR #554), Claude implement stages that had finished and published ended BLOCKED (stage_not_completed / HUMAN_INTERVENTION). Every refusal appeared in the journal as claude_permission.

Hypothesis in the issue. The dispatch's --allowedTools (Claude's permission layer) refused read-only commands and the stage's own publication.

Reproduction. tests/test_claude_stage_refusals.py builds a Claude stream-json from the real hook's answers and runs it through ClaudeAdapter.extra_artifacts, denial_records and the cycle runtime. On the base scripts (f79a121), python3 -m unittest tests.test_claude_stage_refusals fails 5 tests and errors on 1, with the reported stop: HUMAN_INTERVENTION … refused by claude_permission: git grep -n "def require_security" -- scripts … refused by claude_permission: gh pr edit 442 … --body-file $TMPDIR/report.md. With the fix, all 13 pass.

Layer that refused each reported command (AC-3).

Command (from #486 / #503) Refusing layer Toolkit decision
git grep -n "def require_security" -- scripts, git grep -n -F "prefix=\"diff-", git grep -n -e … -e "tasks/", git grep -n "def receipt_problem" toolkit hook quoted arguments: consent under #524
grep -n "def \(stage|…\)" …, grep -rn "exactly one attributable" …, grep -n "import yaml" … toolkit hook quoted/escaped arguments: consent under #524
git diff --output=$TMPDIR/wip.diff toolkit hook $ expansion: consent under #524
gh pr view 549 … --jq '.headRefOid', … --jq ".comments[-1].url" toolkit hook quoted --jq: consent under #524 (--jq .headRefOid unquoted runs)
git ls-files … | head -200; wc -l … toolkit hook list (;): shell-operation consent
git --version toolkit hook Git global option: consent
printenv CODE_CYCLE_STAGE_ROLE toolkit hook only printenv TMPDIR/GIT_SSH* are free: consent
git grep -n -A3/-B/-o/-i -E <simple> — runs without consent
gh pr edit 549 --body-file $TMPDIR/report.md, gh pr comment 554 --body-file $TMPDIR/pr-comment.md toolkit hook veto: before the cycle recorded the PR, implement could not name the PR it had opened
mcp__serena__find_symbol Claude host layer inherited MCP tool, host limit (#486 model)

So the hook refused every reported Bash command ([layer=toolkit_hook], COMMAND_PERMISSION_ID present: test_the_refusals_come_from_the_toolkit_hook). The dispatch's --allowedTools admits each of them once it is allowed or granted (test_each_reported_command_runs_or_asks_and_claude_admits_it_once_decided).

Cause (corrected). "Both recorded twice as claude_permission" (AC-3's third option). Claude also lists a hook's deny in its final permission_denials. extra_artifacts added each of those entries as a second refusal with layer=claude_permission, without the hook's rule, operation or gh pr edit intent. The runtime classified that copy as unknown (no intent for gh pr edit), so _reconcile_blocked kept the published stage BLOCKED. The journal then showed claude_permission for refusals the hook had made. A second, smaller cause: the hook vetoed naming the stage's own PR by number before the cycle recorded it (#486 receipt, #503 comment).

Invariant. One refusal yields one record, attributed to the layer that refused it. A refusal that did not prevent the published, verified work never turns it into BLOCKED.

Related work (widened search: bug label, recurrence of #524/#464/#486): #524, #464, #406, #486, #516, #450, #503 (PR #554), #551. No duplicate found; nothing else closed by this change.

Fix shape. Restore the invariant where it breaks:

The #524 consent-free set is unchanged: test_524_consent_boundaries_are_kept pins it.

Work units

Unit Behaviour Files Tests Verification Rollback
WU-1 One record per refusal, at its real layer; inherited MCP denial is an auxiliary host limit; implement may name its branch's open PR by number, matched against the runtime's cycle branch when it has one scripts/executors.py, scripts/command_permissions.py, scripts/stage_permissions.py, scripts/windows-test-shards.json, tests/test_claude_stage_refusals.py tests.test_claude_stage_refusals (14) fails on base (5 F, 1 E), passes with fix; affected suites 517 OK independent (commits 1b747ef, 5fa7f6c, 3862376)
WU-2 Docs: attribution, own-PR rule, PA-53, #550 native procedure (run.py dispatch) docs/host-permissions.md, docs/capability-parity-audit.md, docs/native-parity-runs.md, docs/native-parity/run.py — python3 scripts/validate-package.py dependent on WU-1 (commit 13541d2)

Verification (agent-reported)

All on head 386237650557502628158c5d55b4da3392da794c unless noted.

Check Command Result
configured-test (AC-1–AC-4) python3 -m unittest discover -s tests pass: exit 0, 2832 tests, 1 skipped, 662 s. It ran past the 600 s foreground limit, and the harness moved it to the background, where it completed. The first run, on 13541d2, failed 2 tests: the new module was not assigned to a Windows shard. Fixed in 3862376.
validate-package python3 scripts/validate-package.py pass: exit 0, VALID: 16 skills …
basedpyright basedpyright pass: exit 0, 0 errors (on 3862376)
unit-550 (AC-1–AC-4) python3 -m unittest tests.test_claude_stage_refusals pass: exit 0, 14 tests. On the base scripts it fails 5 tests and errors on 1, reproducing the defect.
affected-suites python3 -m unittest tests.test_command_permissions tests.test_stage_dispatch tests.test_stage_permissions tests.test_read_parity tests.test_stage_recovery tests.test_cycle_journal tests.test_executors pass: exit 0, 517 tests (on 1b747ef)
native-claude-dispatch-550 (AC-1, AC-3) python3 docs/native-parity/run.py dispatch unverified: a dispatched stage cannot start claude -p, because the stage hook refuses claude and the host refuses MCP and documentation tools. To be run by a person outside a cycle.
docs-reviewed (AC-5) documentation review done: see below

Security review (cc-security-review, required by the plan) found no confirmed vulnerability. Notes:

  • The own-PR lookup builds its argv without a shell. The number must be decimal and the repository must match _SAFE_REPOSITORY. It requires the PR to be open, in this repository (fork heads are excluded), and on the cycle branch, falling back to the checkout's branch only when the runtime fixed none. That is the same target as the bare gh pr edit.
  • A tool_use_id is deduplicated only when the hook's marker answered that call. A call Claude denied never ran, so no command output can supply the marker.
  • An MCP denial creates no grant.

Environment shared with CI: Python stdlib, git with test-local identity, fixture gh. Not shared: this host's sandbox and the dispatch TMPDIR.

Native parity (AC-1) — not verified here. Inside this dispatched stage, the hook refuses claude and the host refuses MCP. A person must run python3 docs/native-parity/run.py setup and python3 docs/native-parity/run.py dispatch outside a cycle (procedure in docs/native-parity-runs.md#550-which-layer-refuses-a-dispatched-claude-stage). That run is also the native proof that Claude lists hook denials in permission_denials. The fix is correct either way: it only removes entries the hook answered.

Documentation reviewed

…ep completed work (#550)

A hook deny also appears in Claude's permission_denials, so every toolkit-hook refusal was recorded a second time as claude_permission, without the hook's rule, operation or intent; that record kept a published implementation BLOCKED. Entries answered by the hook are no longer recorded again. An inherited MCP tool the host refused is judged with the stage's refusals as a host limit and never becomes a question. Before the cycle records its change request, an implement stage may name its own branch's open pull request by number.

Refs #550
 native procedure

host-permissions: a hook deny is attributed to toolkit_hook and not recorded again as claude_permission; implement may name its branch's open pull request by number; an inherited MCP denial is judged as an auxiliary host limit. capability-parity-audit: PA-53 (converted by #550) and PA-36/PA-52 updates. native-parity-runs and run.py: a dispatch mode that runs claude -p with the stage hook and --allowedTools and reports the refusing layer.

Refs #550
…rst (#550)

When the runtime fixed the stage's branch (head_ref or checkout_branch), the own-pull-request check compares GitHub's head ref with it rather than with whatever directory the call runs in.

Refs #550
@datacas

datacas commented Nov 30, 2026

Copy link
Copy Markdown
Owner Author

Implement stage for #550: published at 386237650557502628158c5d55b4da3392da794c.

  • Diagnosis: cause_mismatch within scope. The reported refusals came from the toolkit hook. Claude's permission_denials duplicated each one, so it was recorded a second time as claude_permission, and that copy kept a published stage BLOCKED. Fixed together with the hook veto on naming the stage's own PR by number.
  • Local verification (agent-reported):
    • python3 -m unittest discover -s tests: 2832 tests OK, 1 skipped.
    • python3 scripts/validate-package.py: VALID.
    • basedpyright: 0 errors.
    • tests.test_claude_stage_refusals: 14 OK. On the base scripts it fails 5 and errors on 1.
  • Not verified: the native claude -p dispatch run (python3 docs/native-parity/run.py dispatch). It has to run outside a cycle.
  • Code-host checks: none reported yet for this head when read.

@datacas

datacas commented Nov 30, 2026

Copy link
Copy Markdown
Owner Author

Native verification (#550 AC-1/AC-3) — commit 3862376

Run outside any cycle with this branch's scripts/ (not the installed runtime): python3 docs/native-parity/run.py setup && python3 docs/native-parity/run.py --read-repo datacas/code-cycle-toolkit dispatch, claude -p with the implement stage's hook and --allowedTools.

Command Layer Consent offered Claude listed denials Recorded claude_permission Result
git grep -n "def require_security" -- . toolkit_hook True 1 0 pass
git grep -n -e init -e "fixture" -- . toolkit_hook True 1 0 pass
git diff --output=$TMPDIR/wip.diff toolkit_hook True 1 0 pass
grep -n "fixture" README.md toolkit_hook True 1 0 pass
git grep -n -A3 fixture -- . ran False 0 0 pass
git ls-files | head -200; wc -l README.md toolkit_hook True 1 0 pass
git --version toolkit_hook True 2 0 pass
printenv CODE_CYCLE_STAGE_ROLE toolkit_hook True 2 0 pass
gh pr view 1 --repo datacas/code-cycle-toolkit --json number --jq '.number' toolkit_hook True 1 0 pass

All 9 rows pass. Every refusal comes from the toolkit hook with a consent question; Claude lists each hook deny among its own permission_denials (the double attribution named as root cause), and with this branch none is recorded as claude_permission. git grep -n -A3 runs. No consent boundary of #524 was widened.

@datacas

datacas commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner Author

[CCR-20261130-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2

Initial review of #555 at 386237650557502628158c5d55b4da3392da794c: CHANGES_REQUESTED.

The attribution fix in extra_artifacts and the own-PR rule in _check_gh are correct and fail closed. One regression blocks approval: inherited MCP denials now enter denial_records, and an unattended review or BLOCKED stage turns them into an allow/deny consent decision.

  • REV-001 (medium, blocks): MCP host denial becomes an unattended consent question. Fix: keep mcp__* records out of unattended_denial. Test: a review with REVIEW_PASSED_AWAITING_CI plus a serena denial records no decision_asked.
  • REV-002 (low): native dispatch leaves out gh pr edit|comment <n>, and the PA-53 row says it covers them.

Security: audit ran, no confirmed vulnerability. CI: 7/7 passed. Local: validate-package, basedpyright and the full suite (2832 tests) pass.

Findings, evidence, security, verification, CI

[REV-001] · medium · open · - · blocks:yes — Inherited MCP denials can become an unattended consent question

Paths: scripts/executors.py:3468, scripts/cycle.py:1264, scripts/cycle.py:1681

This change adds mcp__* entries from permission_denials to command_refusals. cycle.py:1218 turns each one into a denial_records entry, classified auxiliary_denial. worked_around (cycle.py:1264) is true only when the status is in completion_statuses()[role] or the command ran. An MCP call never runs, and review's set is {APPROVED, CHANGES_REQUESTED} (execution_plan.py:156), so it excludes REVIEW_PASSED_AWAITING_CI and BLOCKED. reconciled is only ever true for implement/resolve. With no prompt channel (native/detached dispatch), cycle.py:1681 then journals decision_asked / unattended_denial with key denial:<operation> and the options "allow this cycle / allow this repository / allow forever / deny" for mcp__serena__find_symbol.

That is the #486 review case: a review returning REVIEW_PASSED_AWAITING_CI with a serena denial. The same applies to an implement or resolve stage whose BLOCKED is not reconciled. Before this PR, MCP denials never reached denial_records, so no question was raised. This contradicts AC-1 ("neither hides nor pre-approves"), PA-52, and the new docs/host-permissions.md text "The denial is never a consent question". Answering the question cannot grant anything either, because operation() rejects MCP.

Evidence: code inspection of the path above. There is no runtime reproduction, because this read-only stage cannot add a test. test_an_inherited_mcp_refusal_is_a_host_limit_and_never_a_question only checks refused_operation, and CompletedStageTests covers only implement stages that end reconciled.

Fix: exclude host-limit MCP records from the unattended decision, for example in cycle.py:1681, or mark them worked_around. Add a test: run a review (REVIEW_PASSED_AWAITING_CI) and a non-reconciled BLOCKED implement, each with an MCP denial, under consent.prompt is None, and assert that there is no unattended_denial row while the claude_permission refusal is still journaled.

[REV-002] · low · open · - · blocks:no — Native #550 procedure omits the own-PR publication forms

Paths: docs/native-parity/run.py:136, docs/capability-parity-audit.md:278

AC-1 asks that native parity cover each command the issue reports, and that list includes gh pr edit 549 --repo … --body-file $TMPDIR/report.md. DISPATCH_COMMANDS has no gh pr edit <n> or gh pr comment <n>, which is the PA-53 behaviour this PR changes. The new PA-53 native row still says "The native procedure is the #550 section", where claude -p runs gh pr comment <n> …. The native run posted on this PR (9 rows, all pass) therefore does not cover PA-53. The run is also not recorded under "Recorded runs" in docs/native-parity-runs.md. Minor: the PA-53 row sits between PA-38 and PA-40 in that table.

Fix: add the own-PR forms to the procedure, or state that PA-53 is pinned only by unit tests. Then record the native run.

Acceptance criteria

  • AC-1: partly covered. The posted native run passes 9 representative forms. The gh pr edit|comment <n> forms have no native evidence (REV-002). MCP stays a host limit, but see REV-001.
  • AC-2: covered by CompletedStageTests (Bash refusal and MCP refusal, both IMPLEMENTED).
  • AC-3: the layer table is in the PR description, with native evidence posted on the PR. Fixed in extra_artifacts and _check_gh.
  • AC-4: test_524_consent_boundaries_are_kept pins the consent-free set. The own-PR rule reaches the same target as the bare form.
  • AC-5: docs/host-permissions.md and docs/capability-parity-audit.md are updated, and the documentation review is listed.

Security triage and audit

The deterministic rule did not fire: .code-cycle.yml has no security_review.always_when, and no changed path matches the mandatory minimum. The audit ran because the plan requires it (security_required) and because the reviewer judged the change sensitive: it changes stage permission enforcement, which is security tooling. cc-security-review found no confirmed vulnerability.

  • The _branch_pull_request argv runs with no shell. The number must be decimal and the repository must match _SAFE_REPOSITORY. _reference_in_repo rejects a URL to another repository first. It requires state == open, the head repository equal to the cycle repository (forks excluded; a null head repo fails closed), and the head ref equal to the runtime branch, using the checkout only when the runtime fixed none. That is equivalent to the bare gh pr edit.
  • Potential risk, informational: the tool_use_id deduplication trusts HOOK_DENIAL_MARKER in an error tool_result. If a Claude-layer denial message echoed agent-chosen command text, a denial could be recorded as toolkit_hook instead of claude_permission. The impact is attribution only, and no permission is widened.
  • The hook now makes a read-only gh api call (20 s timeout, fails closed) when implement names a PR number before the cycle records one.

Verification (this stage, head 3862376)

Check Result
python3 scripts/validate-package.py pass, exit 0: VALID: 16 skills (7 cycle, 9 supporting) …
basedpyright pass, exit 0: 0 errors, 0 warnings, 0 notes
python3 -m unittest discover -s tests pass, exit 0: Ran 2832 tests in 944.461s, OK (skipped=1). It ran past the 600 s foreground limit, and the harness moved it to the background, where it completed.
python3 -m unittest not run separately: same discovery as the previous row

CI (head 3862376, read once, parallel policy)

The "Validate package" workflow passed all 7 checks: Classify the change; Skills, manifests, and Bash installer; Windows test shards 1–4; PowerShell installer.

Residual risk

REV-001 is based on code inspection, not on a runtime reproduction. The native evidence for PA-53 is missing.

…estion (#550)

REV-001: a review awaiting CI or an unreconciled BLOCKED stage journaled an
unattended_denial decision for an mcp__ host denial. The toolkit can neither
grant nor deny an inherited tool, so it is now classified and journaled as
claude_permission but never pending.

REV-002: the native dispatch procedure does not cover PA-53; say that it is
pinned by unit tests, record the 2026-11-30 native run, and keep the PA rows
in order.
@datacas

datacas commented Nov 30, 2026

Copy link
Copy Markdown
Owner Author

[CCT-20261130-001] · deep_coder · anthropic/claude-opus-5-5→? · high · triaged:386237650557502628158c5d55b4da3392da794c · schema:2

Resolution of #555 at e3c3e8a: RESOLVED. Both findings were triaged as valid against 3862376 before any edit.

  • REV-001: inherited mcp__* denials no longer become an unattended_denial question. They are still journaled as claude_permission. Test: UnattendedHostLimitTests covers a review awaiting CI and an unreconciled BLOCKED implement. Both cases failed before the fix.
  • REV-002: the docs now say PA-53 is pinned only by unit tests, because native dispatch cannot run it without publishing on a real PR. The 2026-11-30 native run is recorded, and the PA-53 row is back in order.

Local: full suite 2834 OK; basedpyright 0 errors; validate-package VALID. CI: 2 pending at e3c3e8a. Security: no change.

Findings, verification, CI, history

[CCR-20261130-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2

[REV-001] · medium · resolved · valid · blocks:yes — Inherited MCP denials can become an unattended consent question

Paths: scripts/cycle.py, tests/test_claude_stage_refusals.py, docs/host-permissions.md, docs/capability-parity-audit.md.

Cause: worked_around is true only for completion statuses or an observed retry, and reconciled only for implement/resolve. So a review awaiting CI, or an unreconciled BLOCKED stage, journaled decision_asked/unattended_denial for mcp__serena__find_symbol. No answer to that question can grant the tool.

Fix: the unattended-decision condition now skips tools with the mcp__ prefix (stage_permissions.MCP_TOOL_PREFIX). The refusal is still journaled as claude_permission and still classified (auxiliary_denial). A grantable Bash refusal in the same stage is still asked. Commit e3c3e8a7176fad9603271f10360c847d7f777bf4.

[REV-002] · low · resolved · valid · blocks:no — Native #550 procedure omits the own-PR publication forms

Paths: docs/capability-parity-audit.md, docs/native-parity-runs.md.

The PA-53 baseline row no longer claims native coverage. It names OwnChangeRequestTests, which mocks the GitHub lookup, as its only evidence, and explains why dispatch cannot run gh pr edit|comment <n> without publishing on a real PR. The 2026-11-30 run is listed under "Recorded runs", and the PA-53 row now follows PA-40. Commit e3c3e8a7176fad9603271f10360c847d7f777bf4.

Verification (agent-reported, head e3c3e8a7176fad9603271f10360c847d7f777bf4)

Check Result
python3 -m unittest tests.test_claude_stage_refusals.UnattendedHostLimitTests, before the fix fail, exit 1: 2 failures, because mcp__serena__find_symbol appears in unattended_denial
python3 -m unittest tests.test_claude_stage_refusals pass, exit 0: 16 tests OK
python3 -m unittest discover -s tests (configured-test) pass, exit 0: Ran 2834 tests in 650.702s, OK (skipped=1). The run exceeded the 600 s foreground limit; the harness moved it to the background, where it completed
basedpyright pass, exit 0: 0 errors, 0 warnings, 0 notes
python3 scripts/validate-package.py pass, exit 0: VALID: 16 skills

Environment: the local run shares Python and Git with CI. The tests set their own Git identity, so they rely on neither the user's global ~/.gitconfig nor cached credentials.

Post-change review and security

  • Delta reviewed: 3862376..e3c3e8a, under the parallel policy. The base is an ancestor of the head. No new findings.
  • Security: the deterministic rule did not fire, because no changed path matches the mandatory minimum. cc-security-review ran because the plan requires it. The change removes only a pending question that could not be answered. The hook, the host denials, the grants and the consent boundaries are unchanged, and nothing is widened.

CI (head e3c3e8a7176fad9603271f10360c847d7f777bf4, read once)

Still pending: "Classify the change" and "Skills, manifests, and Bash installer". None has passed or failed yet.

@datacas

datacas commented Nov 30, 2026

Copy link
Copy Markdown
Owner Author

[CCR-20261130-002] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2

Rereview of #555 at e3c3e8a7176fad9603271f10360c847d7f777bf4: REVIEW_PASSED_AWAITING_CI. No open finding blocks approval; the CI gate decides.

  • REV-001 resolved: cycle.py skips mcp__* records in the unattended decision. UnattendedHostLimitTests passes: a review awaiting CI asks nothing, and an unreconciled BLOCKED stage still asks about its Bash refusal but not the MCP one.
  • REV-002 resolved: PA-53 now says it is pinned only by unit tests, the 2026-11-30 native run is recorded, and the row order is fixed.

No new findings. Security: audit ran, no confirmed vulnerability. Local: full suite 2834 OK; validate-package VALID; basedpyright 0 errors. CI: 5 passed, 1 pending (not waited on).

Findings, verification, security, CI, history

[CCR-20261130-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2

[CCT-20261130-001] · deep_coder · anthropic/claude-opus-5-5→? · high · triaged:386237650557502628158c5d55b4da3392da794c · schema:2

[REV-001] · medium · resolved · valid · blocks:yes — Inherited MCP denials can become an unattended consent question

Paths: scripts/cycle.py:1682-1687, tests/test_claude_stage_refusals.py (UnattendedHostLimitTests).

Verified by execution at e3c3e8a: test_a_review_awaiting_ci_asks_nothing_about_an_mcp_refusal runs a review returning REVIEW_PASSED_AWAITING_CI with a mcp__serena__find_symbol denial and finds no unattended_denial row, while the claude_permission refusal and its denial_classification are still journaled. test_an_unreconciled_blocked_stage_asks_only_about_its_grantable_refusal shows the unattended path is reached (the Bash refusal is asked) and the MCP refusal is skipped and classified auxiliary_denial. denial_records carries tool, so the prefix check matches the record. In classify_denial, an agent-declared essential: true and a mandatory check still take precedence over the MCP auxiliary rule.

[REV-002] · low · resolved · valid · blocks:no — Native #550 procedure omits the own-PR publication forms

Paths: docs/capability-parity-audit.md, docs/native-parity-runs.md.

Verified in the current diff: the PA-53 baseline row names test_the_branch_pull_request_can_be_named and test_any_doubt_keeps_the_refusal (GitHub lookup mocked) as its only evidence and explains why dispatch cannot run gh pr edit|comment <n>. The #550 section repeats this, the 2026-11-30 run is under "Recorded runs", and PA-53 now follows PA-40. Both OwnChangeRequestTests cases pass.

Acceptance criteria

  • AC-1: covered for the reported read forms by the posted native run (9/9) and ReportedCommandTests; PA-53 forms are unit-pinned only, documented as such. MCP stays a host limit with no question.
  • AC-2: covered by CompletedStageTests (Bash and MCP refusals end IMPLEMENTED); checks rev-001-regression pass.
  • AC-3: layer attribution fixed in extra_artifacts (hook_refused dedup) and _check_gh; native evidence posted.
  • AC-4: test_524_consent_boundaries_are_kept passes; consent-free set unchanged.
  • AC-5: docs/host-permissions.md and docs/capability-parity-audit.md updated; validate-package passes.

Security

The deterministic rule did not fire (no changed path matches the mandatory minimum). cc-security-review ran because the plan requires it. No confirmed vulnerability.

  • _branch_pull_request: no shell, decimal number only, _SAFE_REPOSITORY repo, --repo and URL references pinned to the cycle repository earlier in _check_gh, requires open, same head repository (forks and null fail closed) and the runtime branch. Any lookup failure keeps the refusal.
  • The REV-001 fix only removes an unanswerable question; no grant, hook rule or consent boundary is widened.
  • Informational, unchanged: the tool_use_id dedup trusts HOOK_DENIAL_MARKER in an error tool result; a misattribution would affect the recorded layer only.

Verification (agent-reported, head e3c3e8a7176fad9603271f10360c847d7f777bf4)

Check Result
configured-test: python3 -m unittest discover -s tests pass, exit 0: Ran 2834 tests in 769.394s, OK (skipped=1). It exceeded the 600 s foreground limit; the harness moved it to the background, where it completed
rev-001-regression: python3 -m unittest tests.test_claude_stage_refusals pass, exit 0: Ran 16 tests in 3.236s, OK
validate-package: python3 scripts/validate-package.py pass, exit 0: VALID: 16 skills (7 cycle, 9 supporting) …
basedpyright pass, exit 0: 0 errors, 0 warnings, 0 notes

CI (head e3c3e8a, read once, parallel policy)

"Validate package": Classify the change, Skills, manifests, and Bash installer, and Windows test shards 1, 2 and 4 passed; Windows test shard 3 pending. Not waited on; the cycle's CI gate decides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant