Repository navigation
feat(intake-triage): run /work-items:triage --ci on the read runner's verdict mode - #19060
Conversation
… verdict mode The intake lane's model job moves off the ci-workflows intake reusable onto pr-run-activity-read.yml. The triage-issue activity runs /work-items:triage --ci with the read skill tools (Read, Glob, Grep, Skill) and returns its verdict as structured output, held to the skill's schemas/ci-verdict.schema.json with the dimensions narrowed to the dimension map's keys and the type to the repository's Issue Types. The post-triage job, with no model, checks it (SHA-256, check-ci-verdict.mjs, set-dimensions.sh --dry-run) and posts the comment, labels and Issue Type on the job's GITHUB_TOKEN; apply-verdict reads its verdict. Verdict mode admits only today's run sources: an opened issue whose sender is its author, or a dispatch, from a listed human or the github-actions[bot] or lanes App bot sender. It claims no lease and writes issue.json with the open-issue and merged-PR lists. Repository-specific triage rules move to docs/conventions/work-items.md. Refs: #18859 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e-move # Conflicts: # .github/workflows/intake-triage.yml
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a3c4c05fe5
ℹ️ 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".
…summary write-intake-issue.test.mjs now reads recorded, read-only GitHub answers (gh api, trimmed to the fields the writer reads) for the issue, its comments, the open and closed issue lists and the Issue Types connection, under fixtures/intake-issue/. One closed title's token prefix is redacted. post-triage.mjs writes its step summary in the lane output format: an intake-triage / post-triage heading, the result first, at most five bullets, and the rest in a collapsed Diagnostics block, on every path. Refs: #18859 Co-Authored-By: Claude Opus 5.5 <[email protected]>
- artifact-retention: gate the intake key-credit marker upload on its scan in the parenthesized form, add the triage-verdict-* family, and name post-triage as a skill-reply-* reader. - editorconfig: final newline on the Issue Types fixture. - Test Selection: collect-base-activity.test.mjs declares check-ci-verdict.mjs. - CARRY_REFUSES (merge-holds.mjs and babysit_merge_policy.py) holds the triage skill's scripts/ and schemas/, which the intake workflow loads. - live-config, handoff-evidence and lane-transcript tests and the puller's lists name the triage-issue read activity and intake-triage.yml as a read runner caller; the ci-workflows intake reusable entries go. Refs: #18859 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
claude-security-review reviewed Chunk 1 of 2 (40 files)Security review (chunk 1 of 2, blocking only)I found no security issues in this chunk. I read every hunk of its 40 files. This lane already reviewed an earlier head of this PR, so this review reports only CRITICAL and IMPORTANT findings. Trust controls checked
Untrusted text reaching the model
Verdict handling (
|
|
claude-review reviewed Chunk 1 of 2 (40 files)Code review, chunk 1 of 2 (40 files, every hunk read in Earlier findings in this chunk.
New blocking finding (1, inline).
The Checked, no finding.
Not verified by this lane.
Spend (not a finding): intake's model legs now run on the read runner's key → subscription → fallback chain. That uses the same prepaid API key and subscription tokens as before, plus no-model handoff, post and dispatch jobs. Loosened checks: Loosened checks would be marked: fail (lane default; the prompt had no No subagent hunter or verifier ran: the single candidate was checked against Verifier dropped 0 of 0 candidates. Chunk 2 of 2 (13 files)Code review, chunk 2 of 2 (13 files, every hunk read). This lane already reviewed an earlier head, so this review reports blocking findings only. No new blocking findings in this chunk. What I checked:
Prior findings: none of this lane's earlier inline posts falls on this chunk's changed lines in a form that repeats here. The Loosened checks: the prompt had no Not verified by this lane: that the tests pass. This lane ran nothing. Verifier dropped 0 of 0 candidates. critical-findings: 0 |
- handoff-evidence.test.mjs declares its read of every workflow file in a test-scope line, so a workflow change selects it. - The intake issue writer step counts its calls under API_BUDGET_TOKEN. - post-triage's failure summary says whether the lane comment posted. - check-ci-verdict.mjs reports a type on a schema that leaves type out as an unknown field instead of throwing. Refs: #18859 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Held: the lanes token broker would refuse this lane on every opened issue. azure-iac |
…number on its check The lanes token broker admits a read-runner check from intake-triage.yml on workflow_dispatch only (owner decision Q71), with issue_number in the body. On issues: opened, the new dispatch-triage job (no model, actions: write and contents: read) runs today's gate through check-trusted-trigger (the sender is the issue's author and a listed human, github-actions[bot] or the lanes App) and dispatches intake-triage.yml with issue-number. The model legs run only on workflow_dispatch, and the read runner's verdict mode refuses an issues event, so no read check is sent on one. request-lane-token's check mode sends issue_number, a JSON integer, only from an intake-triage.yml dispatch on refs/heads/main, which must send it; the read runner passes it in verdict mode. pr-run-activity.md's check endpoint section states the intake body field and the broker's actor gate. Refs: #18859 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Hold release condition: the broker change has landed. azure-iac#197 merged at 17:02Z and was deployed by release-deploy run https://github.com/melodic-software/azure-iac/actions/runs/45660828898 (preview gate passed, function package published), so the 11:06 AM EST blocker is fixed. Head cf51cf6 dispatches intake on |
|
Hold lifted: the broker change is deployed (azure-iac#197, run 45660828898), and both review lanes reviewed cf51cf6: claude-security-review with 0 findings, claude-review with 1 finding, named in Loosened checks and resolved. Merging on green CI Status at this head. |
Closes #18859
Summary
The intake lane's model job moves off the ci-workflows intake reusable onto this repository's read runner, as decided (option A2, refined; Q69 and Q70).
triage-issueruns/work-items:triage --issue <n> --ciinpr-run-activity-read.yml's new verdict mode with the read skill tools only (Read, Glob, Grep, Skill). The verdict is structured output, held to one schema that ships with the skill. A no-modelpost-triagejob checks it and posts the comment, labels and Issue Type on the job'sGITHUB_TOKEN, so the comment's author staysgithub-actions[bot].apply-verdict.mjsandadmit.mjsare unchanged.Fix
plugins/work-items/skills/triage/schemas/ci-verdict.schema.json, with an optionaltype.check-ci-verdict.mjsreads it (and takes--schemafor a narrowed copy).collect-base-activitycopies it for the launcher withsize,complexityanduncertaintynarrowed to enums frommodels.issue-dimensions.fields.write-intake-issue.mjsnarrowstypeto the enabled Issue Types, or drops it.ci-mode.md. Steps 3 and on are rewritten: the model runs neither script and returns the verdict as structured output. It readsopen_issuesandmerged_pullsfromissue.json, and the repository's## Triage rulesindocs/conventions/work-items.md.issue-verdict). It admits a dispatch naming the issue, claims no lease, skips the stale-file and prior-work checks, writesissue.json(newest 200 open issues, latest 100 merged PRs), and carries the structured output through the existing scan slot. The verdict is uploaded astriage-verdict-<issue>-<attempt>, and the scan job exports its SHA-256. The scan refuses a verdict run that carries a patch, replies or an outcome.check-trusted-triggergainsbot-sender-idsandissue-author. Verdict mode passes41898282and the lanes App: an issues event proceeds only asopenedby its own author, and an issue or a dispatch only from a listed human or one of those two bots. A re-run needs a listed human.intake-triage.yml. It runs three credential legs with handoff jobs, aswork-resolve-issue.ymldoes, thenpost-triage(.github/scripts/intake-triage/post-triage.mjs, a port of the reusable's apply job).post-triagechecks the verdict's SHA-256,check-ci-verdict.mjsandset-dimensions.sh --dry-runbefore any write. A missing or refused verdict applies nothing and fails the job, so the triage sweep runs the issue again. The repository's own rubric rules (theCost decided:line, re-entry (d), the blocked-by-issue stop rule and done-when items a lane run cannot do) move todocs/conventions/work-items.md.pr-pipeline.yamlgets thetriage-issueandpost-triageactivities and slots,triage-verdictjoins theapplied-byschema enum, andresolve-configoutputsapplied-by-triage-verdict.lane-grants.json,lane-funding.jsonandcheck-read-caller-keys.mjsgain the intake rows.Verification
node --testover the changed suites:callers.test.mjs(309),check-trusted-trigger.test.mjs(520),collect-base-activity.test.mjs,post-triage.test.mjs,write-intake-issue.test.mjs,check-ci-verdict.test.mjs,apply-verdict.test.mjs,triage-sweep.test.mjs,label-unblocked.test.mjs,resolve.test.mjs,lane-grants.test.mjsand the other suites that read these workflows. All pass.check-read-caller-keys.test.sh,read-lane-broker-check.test.sh,read-runner-dispatcher-gate.test.sh,write-runner-never-rules.test.sh,pr-unblock-trusted-base.test.shandact-turns-denied.test.shall pass.scripts/check-read-caller-keys.shis clean,actionlintis clean, andscripts/check-affected.sh --uncommittedpasses 22 checks.Loosened checks
.github/actions/resolve-config/callers.test.mjs, "every caller of a reusable holding model legs passes the transcript key": the minimum caller count drops from>= 3to>= 2. The intake caller moved from the ci-workflows intake reusable topr-run-activity-read.yml, so one fewer caller holds model legs through a ci-workflows reusable; the two left arepr-review-hosted.ymlandpr-review-security-hosted.yml, and each must still pass the transcript key. The read runner's transcripts are checked by the lane-transcript puller tests, which now listtriage-issue..github/scripts/intake-triage/apply-verdict.test.mjs, "offers exactly the flags and typed fields the verdict reads": each dimension option key now only has to match the schema'spattern, where before it had to equal the schema's enum, andrequirednow only has to include the five verdict fields, where before it had to equal them. The skill's schema no longer carries the repository's dimension enums: the read runner writes them into a per-run copy, and.github/actions/collect-base-activity/collect-base-activity.test.mjsasserts the exact enums the runner writes.check-ci-verdict.mjsandpost-triage.mjscheck every verdict against that per-run schema before any write.Related
.github/scripts/intake-triage/triage-rubric.txtis no longer passed to a model, but it stays in place becauserefine.test.mjs,reentry-prompt.test.mjs,apply-verdict.test.mjs, thereentry-evalharness andmerge-holds.mjsstill read it. Retiring it is a follow-up./checkallows the newintake-triage / triage-issueread activity onissuesandworkflow_dispatch.pr-run-activity.mdsaysissuesfromintake-triage.ymlandworkflow_dispatchonmainare allowed, but the azure-iac code was not read.🤖 Generated with Claude Code