Skip to content

fix(intake-triage): run the model read-only and apply in a model-free job - #821

Merged
kyle-sexton merged 4 commits into
mainfrom
fix/intake-triage-read-only-model
Oct 20, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
fix/intake-triage-read-only-model

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Closes #804

Summary

Intake triage now runs the model read-only and applies its triage in a separate job with no model, as the #804 agent-ready brief scopes it. The model jobs (claude, subscription) hold contents: read and issues: read, set cache-mode: none, and give the run-claude-cli step only the Claude credential. The model has no Bash and no gh. A new claude-intake-triage-apply job (needs: [claude, subscription], issues: write, no model) does every label, Issue Type, floor and comment write. The Proposed work class: line from #744 stays on line 2 of the lane comment.

Fix

  • Model jobs: permissions: {contents: read, issues: read} and job-level cache-mode: none. The run-claude-cli step has no env, so it gets no GH_TOKEN. tools is Read, Grep and Glob, and Bash is also in disallowed-tools. There is no allowed-tools, so no Bash(gh ...) rule exists, and dontAsk still denies reads outside the checkout.

  • Fetch step (no model): a new step after checkout writes into $GITHUB_WORKSPACE/.intake-triage-*/:

    • issue.json: the issue's number, title, author and labels, plus a path for the body and for each comment, with that comment's author.
    • body.md and one comment-N.md per comment, so lines stay lines and no text can pose as another comment.
    • open-issues.json: the number and title of up to 200 of the newest open issues, excluding pull requests and the issue itself, for duplicate search.

    The prompt names these files and no longer mentions gh.

  • Extract step (no model): after the outcome step, it reduces the run to four job outputs and nothing else. result-subtype is a closed value, or unknown; result-error is true or false; denials is a count. triage is JSON holding only labels, type, proposed_class, comment and needs_human, checked against the job's allowlist and enums, with the comment capped at 3000 characters. The reason, the turn count and the denied tool names go to that job's summary only.

  • Apply job: it takes the subscription leg's outputs when that job ran, else the key leg's. It chooses inside the script, and every needs.* value arrives through env. Then it re-validates everything:

    • It resolves the issue from github.event.issue.number or the issue-number input through issues.get, never from a job output, as edit-issue-labels.sh does.
    • It rebuilds the allowlist (caller's list ∩ repository labels, admission labels removed), the Issue Types and the work classes from the repository.
    • It refuses an escalation label that is missing or is an admission label.
    • An empty, unparsable or masked triage after a run that ran escalates. GitHub drops an output it takes for a secret, so the subtype, error flag and denial count travel as separate outputs.
    • The escalation rules are unchanged. The duplicated apply block is gone; one copy remains.
  • Runner: the apply job runs on ubuntu-24.04, not inputs.runner, like the subscription job, so it starts on a fresh VM. This is a judgment call: the model no longer has write tools, and status and skipped stay on inputs.runner.

  • Status job: it now needs apply too, and goes red when the apply job fails or is cancelled. Before this change, a write error failed the model job.

  • Docs: the SECURITY MODEL header, the canonical caller block (the caller's grant stays contents: read and issues: write, narrowed per job), RERUNS, and the README two-job pattern and intake-triage entries are updated.

  • Lint config:

    • actionlint 1.7.12, the latest release, rejects cache-mode with unexpected key "cache-mode" for "job" section. .github/actionlint.yaml ignores only that message.
    • check-jsonschema 0.38.2's vendored workflow schema also rejects cache-mode. pr-require-checks.yml now validates workflows against SchemaStore's github-workflow.json at commit 8324c4f, which has the key. Every workflow passes it locally. Return to builtin-schema: vendor.github-workflows once a release vendors the key.
  • Job-output size: GitHub allows 1 MB of outputs per job and 50 MB per run (workflow syntax, jobs.<job_id>.outputs). The largest output is triage: a comment of at most 3000 characters plus the allowlisted labels and two enum values, far below that limit.

Verification

  • node --test .github/scripts/*.test.cjs: 486 pass, 0 fail.
  • node --test .github/actions/*/*.test.cjs: 88 pass, 0 fail.
  • actionlint (1.7.12, whole repository): clean.
  • zizmor --config .github/zizmor.yml .github/workflows/intake-triage.yml: no findings.
  • check-jsonschema against the pinned SchemaStore schema over .github/workflows/*.yml: ok. The vendored schema rejects cache-mode, which is why the source changed.
  • New tests in intake-triage-legs.test.cjs:
    • Both model jobs have contents: read and issues: read, cache-mode: none, no token in the launcher step, exactly one secret in it, tools Read, Grep and Glob, and no Bash(gh rule.
    • apply is the only triage writer: needs: [claude, subscription], issues: write, no run-claude-cli, no ${{ in its script.
    • A failed or cancelled apply turns the status red.
    • cache-mode is part of the step-equality check between the two jobs.
  • New tests in intake-triage-apply.test.cjs. These run the extract step's script and feed its outputs to the apply job's script.
    • A forged output carrying a label outside the allowlist, an allowlisted label missing from the repository, an unknown type, a forged class and issue_number: 999: none is applied, and every API call uses issue 7.
    • A credit stop applies the triage once, from the subscription leg, even when a forged key-leg output is present.
    • Empty, unparsable or wrong-shape triage output, or a non-numeric denial count, escalates.
    • A missing escalation label fails without writing.
    • A malformed issue number fails without writing.
    • The extract step passes only the listed fields, as closed values.
    • The fetch step writes separate files, keeps line breaks, excludes pull requests and stops at 200.
    • All existing apply cases still pass through the two-stage harness.
  • Commit 75d112f: the apply job now escalates every subtype other than success, as its comments state; before, only error_max_turns escalated. New apply tests: a valid triage with subtype unknown or error_during_execution escalates (they fail without the fix), and with success it does not. node --test .github/scripts/*.test.cjs: 511 pass, 0 fail; actionlint on intake-triage.yml and biome check on the test file: clean.
  • Not met yet: the live run in claude-code-plugins after the repin. It can only run after merge.
  • Unverified until that live run: the apply job reads repository.issueTypes with issues: write alone, where the old job also held contents: read. Metadata read should cover it.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 20, 2026 15:23
… job

The claude and subscription jobs now hold contents: read and issues: read,
set cache-mode: none, and give the run-claude-cli step no GitHub token. The
model's tools are Read, Grep and Glob; a script step fetches the issue, its
comments and the newest 200 open issues into the checkout instead of gh.

An extract step reduces each run to minimal job outputs (result subtype,
error flag, denial count, and the checked structured fields as JSON). One
new claude-intake-triage-apply job, needs: [claude, subscription] with
issues: write and no model, takes the subscription leg's outputs when it
ran, else the key leg's, resolves the issue from the event or the
issue-number input, rebuilds the allowlist, Issue Types and work classes
from the repository, and does every label, type, floor and comment write.
The status job also goes red when the apply job fails.

actionlint 1.7.12 does not know cache-mode yet; .github/actionlint.yaml
ignores only that message.

Closes #804

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…orkflows on a pinned SchemaStore schema

The fetch step writes the issue body and each comment to their own files,
so their lines stay lines and no text can pose as another comment; the
issue index names the files with each comment's author.

check-jsonschema 0.38.2's vendored workflow schema rejects the job-level
cache-mode key, so the repository's own workflow validation reads
SchemaStore's github-workflow.json at commit 8324c4f, which knows it.

Refs: #804

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T19:35:23.622711Z 009d0be Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

kyle-sexton added a commit to melodic-software/standards that referenced this pull request Oct 20, 2026
Refs: melodic-software/ci-workflows#804

## Summary

Adds a scoped actionlint ignore for GitHub's job-level `cache-mode` key.
actionlint 1.7.12, the latest release, rejects it with `unexpected key
"cache-mode" for "job" section`
([changelog](https://github.blog/changelog/2026-09-10-control-github-actions-cache-access-with-cache-mode/)).
ci-workflows PR 821 sets `cache-mode: none` on its model jobs, and
ci-workflows' `.github/actionlint.yaml` is synced from here.

## Fix

- `.github/actionlint.yaml`: add the exact message to the existing
`paths` ignore, with the same comment and pattern as ci-workflows#821 so
the synced copy is identical.
- `components/actionlint/`: add the `good/cache-mode.yml` fixture and
test cases 25-31, mirroring the `queue` cases from #755: the workflow
lints clean, the existing `bad/unknown-key.yml` still fails (suppression
stays scoped), and a configless control run reports the message (removal
tripwire). README updated.
- `distribution/sync-manifest.yml`: comment names the third waiver.

## Verification

- `bash components/actionlint/actionlint.test.sh` with actionlint
1.7.12: 31/31 PASS (cases 25-31 new).
- `actionlint` over this repo: clean.
- Pre-commit hooks (markdownlint, typos, shellcheck, editorconfig,
gitleaks) pass.

## Related

- melodic-software/ci-workflows#821
- melodic-software/ci-workflows#788
(actionlint fork evaluation, may make this ignore unnecessary later)
- Precedent: #755 (`queue` ignore)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
kyle-sexton and others added 2 commits October 20, 2026 17:06
…ly job

The apply job escalated only error_max_turns, while the extract and apply
comments promise that every other subtype, including the `unknown` the
extract step carries, escalates. A run ending in error_during_execution or
unknown with a valid triage had its labels and comment applied as if clean.
Escalate any subtype other than success, naming the subtype as the reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton merged commit fd0c3e8 into main Oct 20, 2026
76 of 79 checks passed
@kyle-sexton
kyle-sexton deleted the fix/intake-triage-read-only-model branch October 20, 2026 21:22
kyle-sexton added a commit that referenced this pull request Oct 20, 2026
#821 squash-merged as fd0c3e8, carrying this branch's two #821 commits
plus 75d112f (escalate every non-success run subtype). Conflicts in
intake-triage.yml, intake-triage-apply.test.cjs and README.md resolved
by taking main's side and reapplying this branch's own diff
(009d0be..1bae1c7: trusted-comment filter, its tests and docs), which
applied cleanly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kyle-sexton added a commit that referenced this pull request Oct 20, 2026
…#830)

Closes #782

## Summary

Intake triage now passes the model only comments from trusted authors,
on every run (`issues: opened` and `workflow_dispatch`, re-entry
included). This is defence in depth on top of #821: the issue title and
body still always reach the model and stay untrusted. The containment is
still the no-tools model and the apply job's checks.

## Fix

- `Fetch the issue for the model` in both model jobs (`claude` and
`subscription`, edited identically so the leg parity test holds) builds
one Set of trusted ids per author type from the existing inputs: `User`
from `allowed-author-ids`, `Bot` from `allowed-bot-sender-ids`. A list
counts only when it matches the gate's `^[^,]+(,[^,]+)*$`, so an empty
or malformed list trusts no one. A comment is kept only when its
`user.type` is `User` or `Bot`, its `user.id` is an integer, and that id
is in the Set for its type. A deleted author (null user), an
Organization, or a listed id under the other type is never trusted.
- The lane's own triage comment is always dropped, even when `41898282`
is listed. It is identified with the apply job's own predicate: login
`github-actions[bot]` and a body that starts with the lane marker. Other
`github-actions[bot]` comments follow the normal bot rule, so a caller
that lists `41898282` for dispatches lets them through.
- The filter runs before any file is written, so a dropped comment never
gets a `comment-N.md` in the checkout and the model cannot reach it with
Read, Grep or Glob.
- The SECURITY MODEL header, the fetch step comment, the two input
descriptions and the README intake-triage section now say what the model
receives and which text stays untrusted.
- No model tool can re-read comments. #821 removed every `gh` rule, and
the existing legs test still asserts the tool set is `Read`, `Grep` and
`Glob` with no `Bash(gh ` rule in either model job.
- The trust rule is the same one as
`.github/actions/author-trust/action.yml` in #828. This PR does not
depend on #828. Once both merge, that composite can replace the inline
rule.

## Verification

- `node --test .github/scripts/*.test.cjs`: 495 pass, 0 fail. New tests
run against both jobs' fetch steps and check every file the step writes.
They cover: a trusted user, an untrusted user, a trusted bot, a listed
id under the other type, an Organization, the lane's own comment with
its bot listed, an empty list and each malformed shape (leading,
trailing and doubled comma) for each author type, and a deleted author
(null user, ghost, missing id). One more test asserts that the fetch
step has no `if` and reads both inputs.
- Mutation check: with the id check and the marker check disabled, 8
tests fail.
- `node --test .github/actions/*/*.test.cjs`: 88 pass, 0 fail.
- actionlint on `intake-triage.yml`, run from the repo root with the
repo config: clean.
- zizmor on `intake-triage.yml`: no findings (2 suppressed, the same as
on the base branch).
- biome check on the test file, markdownlint-cli2 on `README.md`, and
typos on all three changed files: clean.

## Related

- Stacks on #821 (issue #804). Base branch:
`fix/intake-triage-read-only-model`.
- #828: its `author-trust` composite implements the same rule.
- #802, closed as a duplicate of this one. Its source: the security pass
on
[claude-code-plugins#8489](melodic-software/claude-code-plugins#8489).
After the repin, a follow-up caller PR in claude-code-plugins still has
to update the "Accepted exposure" paragraph in `intake-reenter.yml`.
This PR does not do that.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
kyle-sexton added a commit that referenced this pull request Oct 20, 2026
Closes #806

## Summary

When intake-triage (or any caller of the two-job pattern) falls back to
the subscription token, the run's only lane record comes from the
subscription job and does not say why it ran. This adds a
machine-readable `fallback=<reason>` token so a credit stop on a role's
API key shows in the lane record.

## Fix

- `report-lane-outcome`: new optional `fallback-reason` input,
`credit-stop` or `no-key`. `recordTokens` prints `fallback=<reason>`
right after `credential=`, only for a value in `FALLBACK_REASONS`. The
step script fails (`core.setFailed`, naming the allowed values, before
any annotation or output) on any other non-empty value. The value
reaches the script through env only.
- `intake-triage.yml`: the subscription job's "Report triage outcome"
step passes `fallback-reason: ${{ needs.claude.outputs.lane-class ==
'credit-stop' && 'credit-stop' ||
needs.claude.outputs.credential-present == 'false' && 'no-key' || ''
}}`. That is a `with:` input on a `uses:` step, so the subscription job
still writes no `needs.` value into a `run:` or `script:`.
- `intake-triage-legs.test.cjs`: the parity test strips exactly this one
input from the subscription job (after asserting its exact text), and a
new test evaluates it: credit-stop gives `credit-stop`, an empty key
gives `no-key`, anything else gives empty.
- README: the run-record token list and the two-job pattern describe the
input.

Out of scope, per the brief: an `auth` value; the claude-code-plugins
follow-ups (pr-verify passing the input, the morning brief counting the
token).

## Verification

- `node --test .github/scripts/*.test.cjs .github/actions/*/*.test.cjs`:
632 pass, 0 fail.
- New tests were run red before the change: 3 in report-lane-outcome
(record token order and vocabulary, notice and class line carry
`credential=... fallback=...`, out-of-vocabulary value fails the step
with no outputs), and 2 in the legs test (parity and expression
evaluation) before the workflow edit.
- Existing record tests are unchanged and pass, so records without the
input are byte-identical.
- actionlint, biome, typos and markdownlint-cli2 (README) are clean. No
shell was touched.

## Related

- #804 / #821 (read-only model jobs) and #782 / #830 (trusted-comment
filter): this is built on their structure, and nothing they added is
relaxed.
- Downstream: melodic-software/claude-code-plugins#8577 (the workaround
this replaces after a repin).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
kyle-sexton added a commit that referenced this pull request Oct 20, 2026
…ed authors (#828)

Closes #771

## Summary

The code-review lane's PR-context file (`.claude-lane/pr-context.md`)
wrote every closing issue's title and body, whoever wrote them, and
wrote cross-repository issues in full. Anyone can open an issue and get
a pull request to close it, so that text reached the model unfiltered.
This PR implements the #771 agent-ready brief:

- A same-repository closing issue keeps its title and body only when its
author is trusted.
- Any other same-repository closing issue gets a heading with its number
and the line `Title and body omitted: the author is not in
allowed-author-ids or allowed-bot-sender-ids.`
- A cross-repository closing issue is written as `## Closing issue
<owner>/<repo>#<number>` only: no title, body or comments, even when its
author is trusted.

"Trusted" uses the id rule intake-triage's gate uses: a `User` whose
numeric id is in `allowed-author-ids`, or a `Bot` whose id is in
`allowed-bot-sender-ids`.

**Behavior change for callers:** `allowed-author-ids` defaults to empty,
so until a caller passes it, every person-authored same-repository
closing issue becomes a placeholder. The callers are listed under
Related.

## Fix

- **New composite `.github/actions/check-author-trust`.** It defines the
trust rule once, so #782 can adopt it.
  - Input: a JSON array of `{type, id}` plus the two id lists.
  - Output: the trusted `"<type>:<id>"` keys.
- An empty list, or one with a leading, trailing or doubled comma,
trusts no one. This is the gate's own malformed rule.
- A `User` is checked only against `allowed-author-ids`, and a `Bot`
only against `allowed-bot-sender-ids`. A null (deleted) author, an
`Organization` or a `Mannequin` is never trusted.
  - Input that is not a JSON array fails the step.
- **`pr-review.yml`: the single `pr-context` step is now three steps.**
- `pr-context-fetch` runs the GraphQL query. It now also fetches `author
{ __typename login ... on User { databaseId } ... on Bot { databaseId }
}` and outputs the authors.
  - `pr-context-trust` runs `$/.github/actions/check-author-trust`.
- `pr-context` renders the file. A missing or invalid trust output
becomes `[]`, so a failed check trusts no one.
- All three keep `continue-on-error`, `timeout-minutes: 1` and the scope
condition. The render step keeps `id: pr-context`, `CONTEXT_FILE` and
the `note` output.
- A cross-repository issue is detected by comparing `nameWithOwner` with
`github.repository`, ignoring case.
- **New input `allowed-author-ids`** on `pr-review.yml`, beside
`allowed-bot-sender-ids`, with default `""`.
- **Docs:** a SECURITY MODEL bullet, the step comment, the README inputs
table row, and a README Actions entry for `check-author-trust`.
- **Unchanged, as scoped:** the comment filter by `authorAssociation`,
the pull request's own title and body, and `pr-review-security.yml`,
which has no PR-context step.

`Bot.databaseId` is the REST id that `allowed-bot-sender-ids` holds. I
checked this on
[#749](#749):
GraphQL returned
`{"__typename":"Bot","login":"dependabot","databaseId":49699333}`, and
REST `pulls/749` returned `user.id` 49699333. The GraphQL bot login has
no `[bot]` suffix, which is why the rule reads `__typename`.

## Verification

- `node --test .github/scripts/*.test.cjs`: 510 pass, 0 fail.
- `node --test .github/actions/*/*.test.cjs`: 101 pass, 0 fail.
- `actionlint` (1.7.12, whole repository): clean.
- `zizmor --config .github/zizmor.yml` on `pr-review.yml` and
`check-author-trust/action.yml`: no findings.
- `composite-run-shellcheck.sh` (covers the new composite), `biome
check`, `typos` and `markdownlint-cli2 README.md`: clean.
- The new `.github/scripts/claude-lane-pr-context.test.cjs` runs the
real fetch, check-author-trust and render `run` blocks under `bash -eo
pipefail` against a stub `gh`. It covers:
  - A trusted same-repository author keeps the title and body.
- An untrusted same-repository author gets the placeholder, and no title
or body text appears.
  - A bot is trusted through `allowed-bot-sender-ids`.
  - A deleted author, or a failed trust check, gets the placeholder.
- A cross-repository issue by a trusted author writes only
`owner/repo#N`, with no title, body, comment or placeholder text.
  - The pull request's own title and body are written unchanged.
  - The `authorAssociation` comment filter still applies.
- check-author-trust checks each type only against its own list, trusts
no one when a list is empty or malformed, matches whole ids only, and
fails on input that is not an array.
- **Not verified:** a live run. That needs a caller pinned to this
commit.

## Related

- #782 applies the same id rule to intake-triage comments. It should
call `$/.github/actions/check-author-trust` rather than keep a second
copy. This PR does not touch `intake-triage.yml`, which #821 is
rewriting.
- Callers that need to pass `allowed-author-ids` when they repin, found
with `gh search code "pr-review.yml@" --owner melodic-software`. The
caller wiring in standards is a follow-up in that repo:
  - Standards components synced to their targets:
- [standards
`components/claude-lanes/claude-review.yml`](https://github.com/melodic-software/standards/blob/584df89f3646cbd0fef574b4b79fe7529f29fc76/components/claude-lanes/claude-review.yml)
- [standards
`components/claude-lanes-hosted/claude-review.yml`](https://github.com/melodic-software/standards/blob/584df89f3646cbd0fef574b4b79fe7529f29fc76/components/claude-lanes-hosted/claude-review.yml)
- Synced from those components, with a `Source of truth:
melodic-software/standards` header:
- [claude-code-plugins
`pr-review-hosted.yml`](https://github.com/melodic-software/claude-code-plugins/blob/6c886050ecfeca1e534ebda2ed0a8aaf88fba1f2/.github/workflows/pr-review-hosted.yml)
- [cursor-plugins
`pr-review-hosted.yml`](https://github.com/melodic-software/cursor-plugins/blob/40579f3ef1199cae7f35c393ef5a2e155c6143cd/.github/workflows/pr-review-hosted.yml)
- [.github
`pr-review-hosted.yml`](https://github.com/melodic-software/.github/blob/a90a6442ec0e649645c746f63c975674e49a9d0f/.github/workflows/pr-review-hosted.yml)
- [codex-plugins
`pr-review-hosted.yml`](https://github.com/melodic-software/codex-plugins/blob/d6727ecd510b4ab01779138d03c6d6a74f957a44/.github/workflows/pr-review-hosted.yml)
- [claude-code-account-rotation
`pr-review-hosted.yml`](https://github.com/melodic-software/claude-code-account-rotation/blob/7e9111264049fb787fb4442d20d6d3234d2f1cb8/.github/workflows/pr-review-hosted.yml)
- [agent-plugins
`pr-review-hosted.yml`](https://github.com/melodic-software/agent-plugins/blob/3b1cd92f1b67f02b938acce52308a84afe3ff19e/.github/workflows/pr-review-hosted.yml)
- [ci-runner
`pr-review-hosted.yml`](https://github.com/melodic-software/ci-runner/blob/f70da320e06cb53c40b890588ff388d77c70444f/.github/workflows/pr-review-hosted.yml)
- [provisioning
`pr-review.yml`](https://github.com/melodic-software/provisioning/blob/e6007ba4f3c291e8046bcb505087edd896b6208b/.github/workflows/pr-review.yml)
  - Repo-local callers:
- [standards
`pr-review.yml`](https://github.com/melodic-software/standards/blob/584df89f3646cbd0fef574b4b79fe7529f29fc76/.github/workflows/pr-review.yml)
- [songwriting
`pr-review.yml`](https://github.com/melodic-software/songwriting/blob/7918891c1d55ce1e5229ff19fb3686197511ceb7/.github/workflows/pr-review.yml)
- [pr-pipeline-sandbox
`pr-review-hosted.yml`](https://github.com/melodic-software/pr-pipeline-sandbox/blob/015ca974fba1a873e9989d2eb5966878b24c3c8c/.github/workflows/pr-review-hosted.yml)
- [pr-pipeline-sandbox
`pr-review-no-bots.yml`](https://github.com/melodic-software/pr-pipeline-sandbox/blob/015ca974fba1a873e9989d2eb5966878b24c3c8c/.github/workflows/pr-review-no-bots.yml)
- This repository's dogfood caller,
[`pr-require-checks.yml`](https://github.com/melodic-software/ci-workflows/blob/main/.github/workflows/pr-require-checks.yml)
(job `pr-review`). It is pinned to v0.42.1, which has no such input, so
it can pass `allowed-author-ids` only after a repin to a commit that
includes this change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
kyle-sexton added a commit to melodic-software/standards that referenced this pull request Oct 20, 2026
…828)

Closes #826

## Summary

Re-pins every ci-workflows caller that `maintenance-repin-ci-workflows`
manages to
[v0.55.0](https://github.com/melodic-software/ci-workflows/releases/tag/v0.55.0)
(`3a2c748fdef9cfb9ceec5a66289e21842189689f`). Both `claude-review`
components and standards' own `pr-review.yml` now pass
`allowed-author-ids`, added in
[ci-workflows#828](melodic-software/ci-workflows#828),
so the code-review lane reads the title and body of a closing issue
written by a trusted person. Without it, every such issue is replaced by
a placeholder.

The scheduled repin bot has not opened a v0.55.0 PR yet. The release was
published at 22:01 UTC, after that day's 14:41 run. This PR makes the
same edits by running the same scripts (`repin-callers.sh apply`, then
`repin-policy-lockstep.mjs`). The lockstep script declined to apply
(`pr-review` inputs and `pr-review-security` credential references
changed), so the runner-policy registration below was done by hand.

## Fix

- **Repin** (`repin-callers.sh apply v0.55.0`): the same nine callers as
#803, moved from v0.54.0 to v0.55.0:
`components/claude-lanes/{claude-review,claude-security-review}.yml`,
`components/claude-lanes-hosted/{claude-review,claude-security-review}.yml`,
`components/managed-files-guard/{managed-files-guard,managed-files-guard-fleet}.yml`,
and
`.github/workflows/{pr-review,pr-review-security,maintenance-sync-standards}.yml`.
- **`allowed-author-ids: '153232337'`** in
`components/claude-lanes/claude-review.yml`,
`components/claude-lanes-hosted/claude-review.yml` and
`.github/workflows/pr-review.yml`. These are the `human` entries of
`components/trusted-actors/trusted-actors.json`, the same list the
intake-triage callers pass (claude-code-plugins' `intake-triage.yml`
reads `human-ids` from it through `check-born-triaged`). The ids are
written into the file rather than read at run time because many targets
that receive a review caller do not receive `trusted-actors` (for
example the hosted-only targets in `distribution/sync-manifest.yml`).
Reading the file at run time would also need an extra job, with its own
runner and runner-policy routing. A new test in
`trusted-actors.test.mjs` fails when any of the three callers differs
from the list's human ids. I checked that it fails when the value is
emptied.
- **runner-policy** (`policy.json`, `README.md`,
`runner-policy.test.mjs`), contracts at `3a2c748`:
  - `pr-review`: the v0.54.0 entry plus `allowed-author-ids`.
- `pr-review-security`: a verbatim copy. Its checkout now persists no
credential, and its scope step passes `github.token` to git through the
environment
([ci-workflows#818](melodic-software/ci-workflows#818)).
That is the credential-reference change the lockstep script flagged.
  - `maintenance-sync-standards`: a verbatim copy.
- `intake-triage`: a verbatim copy, following the precedent in #803.
Inputs, secrets and caller permissions are unchanged. The model jobs
drop to `issues: read`, and a new model-free `apply` job runs on
GitHub-hosted `ubuntu-24.04`
([ci-workflows#821](melodic-software/ci-workflows#821),
[#830](melodic-software/ci-workflows#830)). With
this entry, claude-code-plugins can repin its intake caller.
- A new test asserts that each v0.55.0 entry equals its v0.54.0 entry
plus exactly its new inputs, and that there are exactly four entries at
that SHA.
- The README rollout record says the contracts are **pending owner
sign-off**. Please confirm or amend that line before merging.
- **ci-status `timeout-minutes`: not changed.** Standards has no synced
ci-status caller. Its `ci-status` job lives in the repo-local
`.github/workflows/pr-require-checks.yml` and pins the `check-contract`
and `aggregate-results` actions at v0.39.8, which predates the
rate-limit waits from
[ci-workflows#833](melodic-software/ci-workflows#833).
The `timeout-minutes: 5` guidance applies once those actions are bumped
to v0.55.0 or later, which this PR does not do.

## Verification

- `npm run lint:runner-policy`: `Runner policy passed.`
- `npm run test:runner-policy`: 321 pass, 0 fail.
- `repin-policy-lockstep.test.mjs`: 23 of 23 pass.
- `trusted-actors.test.mjs`: 7 of 7 pass, including the new lockstep
test.
- `claude-lanes.test.sh`, `managed-files-guard.test.sh`,
`repin-callers.test.sh`, `pin-comment-convention.test.sh`: all exit 0.
- `sync-manifest.sh validate`: `Manifest valid: 44 components, 14
targets`.
- naming-lint: 0 findings. Concurrency policy passed. actionlint is
clean on the three edited workflows.
- lefthook pre-commit (editorconfig, typos, markdownlint, gitleaks,
biome): clean.
- `pr-review` and `pr-review-security` cannot review this PR because it
edits their caller workflows, so claude-code-action skips itself.
Neither check is required.
- Post-merge acceptance (#826): in a synced repository, a code-review
run on a PR that closes an issue written by a trusted person shows that
issue's title and body in the lane's context.

## Related

- Upstream: [ci-workflows
v0.55.0](https://github.com/melodic-software/ci-workflows/releases/tag/v0.55.0),
[ci-workflows#771](melodic-software/ci-workflows#771),
[#828](melodic-software/ci-workflows#828).
- Follow-ups in other repositories (not changed here), each to pass
`allowed-author-ids` with that repository's trusted human ids once its
caller is on v0.55.0 or later:
  - melodic-software/songwriting `.github/workflows/pr-review.yml`
- melodic-software/pr-pipeline-sandbox
`.github/workflows/pr-review-hosted.yml`
- melodic-software/pr-pipeline-sandbox
`.github/workflows/pr-review-no-bots.yml`
- Merging cascades through `maintenance-sync-standards.yml` to every
target that manages a lane caller or a managed-files-guard caller. The
next scheduled repin run will then find nothing to do.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

intake-triage: give the model a read-only token; move label writes to a model-free job

1 participant