You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Re-deliberate ADR 0002: skip-actors inheritance widens the security-review exception to claude[bot] and melodic-ai[bot] #1767
The v0.9.1 lane re-pin PR deletes the callers' explicit skip-actors lists so both lanes inherit the reusable's upstream-reviewed default (dependabot[bot],claude[bot],melodic-ai[bot],melodic-standards-sync[bot]). ADR 0002 (lines ~100-107) documents the exception as covering exactly dependabot[bot] and melodic-standards-sync[bot], and line ~127 names this widening as a revisit trigger requiring re-deliberation: claude[bot] / melodic-ai[bot] PRs now satisfy the required security check with no review run, including on security-sensitive paths.
Context: inheritance-over-explicit-list is the fleet decision (an explicit list pins a snapshot and goes stale silently — that is how this repo's callers lost the ban list in the first place), and dependabot[bot] survives in the inherited default, so the Dependabot secret-store hazard is not introduced. The ADR text needs to catch up with the inherited-default reality or the repo needs a deliberate divergence decision.
Delegated-authority decision (autonomous drain lane; repository owner delegated decision authority for this session; recorded here for post-hoc human review).
Decision
The widened skip-actor exception is REJECTED for the security-review lane. The caller (.github/workflows/claude-security-review.yml) will restore an explicit narrow list — skip-actors: "dependabot[bot],melodic-standards-sync[bot]" — re-narrowing the exception to exactly the two actors ADR 0002's step-3 addendum ratified. The general review lane (claude-review.yml) keeps inheriting the reusable's default: it is advisory with no required check, so its skip list is runner-minute economy, not evidence.
ADR 0002 gains an addendum recording this re-deliberation, and its revisit trigger is rewritten to cover both widening channels (caller-list edit and inherited-default drift at a re-pin — the channel that actually fired here).
Rationale
The two ratified actors each carry a compensating control: Dependabot pin bumps are forced through the reviewed runner-policy contract; standards-sync PRs materialize byte-exact upstream-reviewed content. claude[bot] / melodic-ai[bot] carry none — the general review lane also skips them, so an AI-app-pushed commit would satisfy the required security check with zero review of any kind. AI-authored changes are precisely the provenance class the security lane exists to cover (NIST SP 800-218A same-bar principle, already cited by this ADR).
Latency is not absence: no workflow in this repo currently lets either app push (no @claude dispatcher exists here), so the channel is dormant today — but adding one is a routine, plausible change that would silently activate a review bypass. Fail-closed bias: the exception must not pre-authorize it.
Staleness asymmetry decides inheritance-vs-explicit for a security exception: a stale explicit list fails closed (an actor gets a review it maybe didn't need — visible cost); a stale inherited default fails open (an actor this repo never deliberated skips review silently — which is exactly what happened at the v0.9.1 re-pin). The fleet inheritance-over-explicit-list decision stands for defaults that are cost/config; an evidence-gate exception is the deliberate-divergence case the caller seam exists for, and the runner-policy allowedInputs contract makes that divergence a reviewed, standards-visible act.
Rejected alternatives
Accept + document the widened exception: rejected — it converts a cost optimization into an unreviewed-provenance bypass of a required check, contradicting the ADR's own bounded-scope clause with no compensating control.
Narrow the reusable's default upstream (ci-workflows): not chosen as this repo's fix — the upstream default serves all consumers, and its self-trigger/cost rationale is legitimate for advisory lanes; whether ci-workflows should split the security reusable's default from the review one is ci-workflows' own deliberation. Recommended as a follow-up there, not a blocker here.
Do nothing (rely on human merge review of AI-provenance PRs): rejected — process convention, not a technical control; the required check exists to be evidence.
Cross-vendor advisory (Codex, gpt-5.6-sol)
Concurred with the explicit narrow list; strongest counterargument recorded: if the apps later gain push capability, the narrow list risks self-triggering recursion / extra spend / "independent" review by substantially the same AI system. Accepted: those are visible availability/cost failures, while the inherited default's failure mode is a silent security bypass — the worse direction.
policy.json is a managed materialization (standards runner-policy component), and the contract for claude-security-review.yml@c136b27 currently allows only runner, paths-file — restoring skip-actors is an input-surface change that must land upstream first:
standards PR: add skip-actors to that contract entry's allowedInputs.
standards→here sync PR materializes it.
This repo's PR (caller + ADR addendum, opened now, Fixes #1767): its runner-policy check stays red until (2) merges — intentional, fail-closed ordering.
Residual gap (follow-up, not fixed here): the runner-policy validator rejects unexpected inputs but cannot require one — a future re-pin that again drops the caller's skip-actors would pass CI and silently re-widen the exception. Guard is the ADR revisit trigger + caller comment until standards grows a requiredInputs-style contract field (proposed to standards as a follow-up).
Analysis complete — the obvious fix is a trap, and the real choice is a security-posture call
Investigated this end to end. Recording the findings here because the naive remediation would make things materially worse, and because the remaining choice is one an operator should make rather than an agent.
The obvious fix does not work
Re-narrowing skip-actors to the two ratified actors — which is what PR #1845 attempts — cannot succeed, for two independent reasons.
1. It is contract-forbidden at the caller. The managed runner-policy contract for claude-security-review.yml@c136b27f… (v0.9.1) declares allowedInputs: ["runner", "paths-file"]. skip-actors is excluded, so any caller passing it fails the runner-policy lane, which is a needs: dependency of the required ci-status aggregate. That is why #1845 is permanently red. (The older pins 99cb082 / e295107 / 66073e5 did allow ["runner","skip-actors","paths"] — the input shape changed at v0.9.1.)
2. Even upstream, narrowing alone pins those PRs red rather than reviewing them. Read from anthropics/claude-code-action source at the pinned SHA be7b93b1907a4abad570368f3c74b6fe3807510b (v1.0.183): checkHumanActor resolves the actor's account type and, if it is not User, consults the action's own allowed_bots input — which the reusable hardcodes to dependabot[bot] and which callers cannot override. On no match it throws:
Workflow initiated by non-human actor: <bot> (type: Bot). Add bot to allowed_bots list or use '*' to allow all bots.
That propagates to core.setFailed, failing the step and job — not a skip, not a no-op. It is called from both prepareTagMode and prepareAgentMode, and a prompt-driven pull_request workflow (the security lane's exact shape) resolves to agent mode, so it runs before anything else. In a fail-closed lane the result is a permanently red required check on every claude[bot] / melodic-ai[bot] PR, on the org's only required check — strictly worse than the green-with-no-review state this issue objects to.
The two real options
(a) Narrow skip-actors upstream AND add claude[bot],melodic-ai[bot] to the action's allowed_bots. The only route that produces actual review coverage. Requires weighing a public-repo consideration from the action's own docs/security.md: "Allowed bots are not checked for repository permissions. A bot that matches an entry does not need to be installed on your repository or have write access. On a public repository, external parties — including GitHub Apps created by anyone — may be able to trigger workflow events." This repo is public and carries the only required check. Use the explicit two-name list, never '*' — the docs say so directly. Mitigating factor worth verifying before shipping: the security reusable already skips fork PRs, which is the obvious externally-controlled path to setting github.actor; if that holds, a same-repo PR can only carry our own org's App as actor.
(b) Keep the current behavior and fix the record instead — amend ADR 0002 to ratify the widened four-actor exception with its rationale, since the widening is what actually shipped fleet-wide. Honest, reversible, cheap; #1845's ADR half already drafts most of it. Cost: agent-authored PRs keep satisfying the required check with no security review on security-sensitive paths.
Recommendation
(a) is the right end state — the point of a required security check is coverage, and (b) documents a gap rather than closing it. But (a) widens what can invoke an AI agent on a public repo behind the org's only required check, so it should ship with the fork-PR skip independently verified and an operator's explicit sign-off, not as an agent's unilateral change. Until then (b) is the honest interim, because the current record claims a two-actor bound that no longer matches deployed reality.
Note for whoever picks this up: PR #1845's workflow half cannot be salvaged as written — the fix must land upstream in ci-workflows (both the skip-actors default and allowed_bots live there). Its ADR half stands on its own and is worth keeping either way.
ADR 0002 addendum ratifies Branch A (four skip-actors). Workflow callers state the list explicitly. Residual enforcement tracked upstream as standards#308.
Activity
ci: re-pin claude lane callers to v0.9.1, adopt paths-file, serialize…
kyle-sexton commentedon Jul 31, 2026
Delegated-authority decision (autonomous drain lane; repository owner delegated decision authority for this session; recorded here for post-hoc human review).
Decision
The widened skip-actor exception is REJECTED for the security-review lane. The caller (
.github/workflows/claude-security-review.yml) will restore an explicit narrow list —skip-actors: "dependabot[bot],melodic-standards-sync[bot]"— re-narrowing the exception to exactly the two actors ADR 0002's step-3 addendum ratified. The general review lane (claude-review.yml) keeps inheriting the reusable's default: it is advisory with no required check, so its skip list is runner-minute economy, not evidence.ADR 0002 gains an addendum recording this re-deliberation, and its revisit trigger is rewritten to cover both widening channels (caller-list edit and inherited-default drift at a re-pin — the channel that actually fired here).
Rationale
claude[bot]/melodic-ai[bot]carry none — the general review lane also skips them, so an AI-app-pushed commit would satisfy the required security check with zero review of any kind. AI-authored changes are precisely the provenance class the security lane exists to cover (NIST SP 800-218A same-bar principle, already cited by this ADR).@claudedispatcher exists here), so the channel is dormant today — but adding one is a routine, plausible change that would silently activate a review bypass. Fail-closed bias: the exception must not pre-authorize it.allowedInputscontract makes that divergence a reviewed, standards-visible act.Rejected alternatives
Cross-vendor advisory (Codex, gpt-5.6-sol)
Concurred with the explicit narrow list; strongest counterargument recorded: if the apps later gain push capability, the narrow list risks self-triggering recursion / extra spend / "independent" review by substantially the same AI system. Accepted: those are visible availability/cost failures, while the inherited default's failure mode is a silent security bypass — the worse direction.
Composition with github-iac#228 / #248
Implementation & sequencing
policy.jsonis a managed materialization (standardsrunner-policycomponent), and the contract forclaude-security-review.yml@c136b27currently allows onlyrunner, paths-file— restoringskip-actorsis an input-surface change that must land upstream first:skip-actorsto that contract entry'sallowedInputs.Fixes #1767): itsrunner-policycheck stays red until (2) merges — intentional, fail-closed ordering.Residual gap (follow-up, not fixed here): the runner-policy validator rejects unexpected inputs but cannot require one — a future re-pin that again drops the caller's
skip-actorswould pass CI and silently re-widen the exception. Guard is the ADR revisit trigger + caller comment until standards grows arequiredInputs-style contract field (proposed to standards as a follow-up).docs(runner-policy): reconcile the security caller's documented input…
docs(adr): cite the filed follow-ups instead of asserting they exist
docs(runner-policy): record skip-actors on the c136b27 security contract
docs(adr): scope the dispatcher claim to ci-workflows#255's gated V2
docs(adr): repository-qualify the github-iac references
docs(adr): drop the convention meta-note from the composition paragraph
feat(runner-policy): admit skip-actors on the claude-security-review …
kyle-sexton commentedon Jul 31, 2026
Analysis complete — the obvious fix is a trap, and the real choice is a security-posture call
Investigated this end to end. Recording the findings here because the naive remediation would make things materially worse, and because the remaining choice is one an operator should make rather than an agent.
The obvious fix does not work
Re-narrowing
skip-actorsto the two ratified actors — which is what PR #1845 attempts — cannot succeed, for two independent reasons.1. It is contract-forbidden at the caller. The managed runner-policy contract for
claude-security-review.yml@c136b27f…(v0.9.1) declaresallowedInputs: ["runner", "paths-file"].skip-actorsis excluded, so any caller passing it fails therunner-policylane, which is aneeds:dependency of the requiredci-statusaggregate. That is why #1845 is permanently red. (The older pins99cb082/e295107/66073e5did allow["runner","skip-actors","paths"]— the input shape changed at v0.9.1.)2. Even upstream, narrowing alone pins those PRs red rather than reviewing them. Read from
anthropics/claude-code-actionsource at the pinned SHAbe7b93b1907a4abad570368f3c74b6fe3807510b(v1.0.183):checkHumanActorresolves the actor's account type and, if it is notUser, consults the action's ownallowed_botsinput — which the reusable hardcodes todependabot[bot]and which callers cannot override. On no match it throws:That propagates to
core.setFailed, failing the step and job — not a skip, not a no-op. It is called from bothprepareTagModeandprepareAgentMode, and a prompt-drivenpull_requestworkflow (the security lane's exact shape) resolves to agent mode, so it runs before anything else. In a fail-closed lane the result is a permanently red required check on everyclaude[bot]/melodic-ai[bot]PR, on the org's only required check — strictly worse than the green-with-no-review state this issue objects to.The two real options
(a) Narrow
skip-actorsupstream AND addclaude[bot],melodic-ai[bot]to the action'sallowed_bots. The only route that produces actual review coverage. Requires weighing a public-repo consideration from the action's owndocs/security.md: "Allowed bots are not checked for repository permissions. A bot that matches an entry does not need to be installed on your repository or have write access. On a public repository, external parties — including GitHub Apps created by anyone — may be able to trigger workflow events." This repo is public and carries the only required check. Use the explicit two-name list, never'*'— the docs say so directly. Mitigating factor worth verifying before shipping: the security reusable already skips fork PRs, which is the obvious externally-controlled path to settinggithub.actor; if that holds, a same-repo PR can only carry our own org's App as actor.(b) Keep the current behavior and fix the record instead — amend ADR 0002 to ratify the widened four-actor exception with its rationale, since the widening is what actually shipped fleet-wide. Honest, reversible, cheap; #1845's ADR half already drafts most of it. Cost: agent-authored PRs keep satisfying the required check with no security review on security-sensitive paths.
Recommendation
(a) is the right end state — the point of a required security check is coverage, and (b) documents a gap rather than closing it. But (a) widens what can invoke an AI agent on a public repo behind the org's only required check, so it should ship with the fork-PR skip independently verified and an operator's explicit sign-off, not as an agent's unilateral change. Until then (b) is the honest interim, because the current record claims a two-actor bound that no longer matches deployed reality.
Note for whoever picks this up: PR #1845's workflow half cannot be salvaged as written — the fix must land upstream in ci-workflows (both the
skip-actorsdefault andallowed_botslive there). Its ADR half stands on its own and is worth keeping either way.docs(ci): say why the skip-actors line must survive a re-pin (#2069)
kyle-sexton commentedon Aug 13, 2026
Frontier disposition (drain session)
Ruling: Close as completed.
ADR 0002 addendum ratifies Branch A (four skip-actors). Workflow callers state the list explicitly. Residual enforcement tracked upstream as standards#308.