Repository navigation
ci(intake-triage): move inline prompts to files and record why reusables track main - #17664
Conversation
…les track main - The intake rubric moves from intake-triage.yml's `instructions` input to .github/scripts/intake-triage/triage-rubric.txt. check-born-triaged reads it from the default branch before the model resolves and passes it as a job output, so a rubric that does not read leaves claude-args empty and intake does not run. - The refine schema string (three legs) moves to refine-schema.json, and the policy self-test prompt (six probe calls) to .github/scripts/plugin-eval/policy-probe-prompt.txt, with RUNNER_ROOT filled in as before. Every prompt and schema is byte-identical to the base copy. - The pr-pipeline README records why the five ci-workflows reusable calls track @main: the synced runner policy admits only @main or a commit in approvedShas, which do not follow the repin. - A first-pass intake eval case covers a visual design request whose design is already chosen and whose done-when is exact. Refs: #16968 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
…be prompt under the gate hold The three files left their workflows, which the lanes cannot push, so a lane could now edit what decides intake admission without a hold. Listing them as gate paths in merge-holds.mjs keeps the boundary they had inside intake-triage.yml and pr-run-plugin-evals.yml. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
The triage rubric's intent rule now matches the triage skill's human-gated label test: a design the issue has already chosen, a visual or UX design included, with an exact done-when gets no intent flag and no hold label. Owner decision Q256: "No hold (Recommended)". Refs: #16968 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
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. |
|
claude-security-review reviewed Security review: no security issues foundI read every hunk of all 33 changed files in What I checked
Owner friction-hold removal: the intake rubric no longer holds a design the issue already chose and gives an exact done-when for (person-approval hold, Q256). This change adds no new spend. I did not find a critical-findings: 0 |
|
claude-review reviewed Code review: #17664 at
|
|
Held by the hub session: #16968's done-when ties the rubric alignment to the eval case's result ("If the lane admits it, align the CI rubric's primary-design list"), and the intake eval harness cannot build until #17667 is fixed. Once it is fixed and the intake cases have run against this branch's rubric, the hub lifts this hold. |
…ation-shape # Conflicts: # .github/scripts/intake-triage/reentry-eval/README.md # .github/scripts/intake-triage/reentry-eval/build-suite.mjs # .github/scripts/intake-triage/reentry-eval/build-suite.test.mjs
|
Hold lifted by the hub session: the intake eval ran against this branch's rubric (head 44f20b4, reentry-eval/run.sh, ci-workflows f784359, sonnet, judge opus, 3 runs per arm).
So the lane admits the chosen-design case under the aligned rubric, which is the condition #16968's done-when item 1 sets. run-validity.py (with |
…pt through floor-paths The three gate rows sat inside merge-holds.mjs's generated hold-floor block, so sync-hold-floor.py --check failed and the next sync would have dropped them. They are now merge.diff-check.floor-paths rows in pr-pipeline.yaml, class gate like the workflows they came from, and the sync script writes them into every copy: merge-holds.mjs, both hosted review callers' hold-paths and ci-status's hold patterns. The floor count pins in test_merge_holds_sync.py move by the three rows. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…pt with a person The three floor-paths rows take author-lift: false. The rubric and the refine schema decide what intake admits for unattended work, which is the surface babysit_risk.py keeps out of the author lift, and the workflows they came from never took it. test_merge_holds_sync.py lists them in its no-lift surface, so the author-review count is back to 19. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The three gate rows this branch adds to merge.diff-check.floor-paths (triage-rubric.txt, refine-schema.json, policy-probe-prompt.txt, all author-lift: false) grow the effective floor from 150 to 153 globs, high from 86 to 89 and gate from 63 to 66; review and author-review are unchanged. test_floor_paths.py and test_babysit_risk.py now pin those counts and digests, and list the three paths among the rows that refuse the author lift. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #16968
Summary
Part 1 of 4 of #16966, three items:
first-pass-chosen-design-ready, a visual design request whose design is already chosen and whose done-when is exact. Its graders expect what the current rubric gives such an issue:Flags: none, noneeds-owner-decisionorneeds-humanlabel,needs_humanfalse. The rubric now matches the triage skill's human-gated label test: see "Rubric alignment" below.instructionsinput) →.github/scripts/intake-triage/triage-rubric.txt;.github/scripts/intake-triage/refine-schema.json;pr-run-plugin-evals.yml, three inmaintenance-measure-skill-edit-pass.yml) →.github/scripts/plugin-eval/policy-probe-prompt.txt.@mainreusable calls: the reason they trackmainis now recorded indocs/conventions/pr-pipeline/README.md. They are not pinned, because the synced runner policy refuses the repin SHA.Fix
intake-triage.yml:check-born-triagedsparse-checks outtriage-rubric.txtfrom the default branch. It reads the file in a step beforeResolve the triage modeland passes it as the job outputinstructions. The intake job passes${{ needs.check-born-triaged.outputs.instructions }}. If the rubric fails to read, the later steps do not run andclaude-argsstays empty, so intake does not run, the same fail-closed gate as an unresolved model. The.txtextension keeps markdownlint from asking for reformatting, which would change bytes (pr-review-main/criteria.txtalready does the same).schema=$(<"$REPO_DIR/.github/scripts/intake-triage/refine-schema.json"). The size-split schema stays inline, since the issue does not name it..base/(the default branch or base SHA, never the pull request checkout) and fill inRUNNER_ROOTwith a quoted replacement.callers.test.mjs,apply-verdict.test.mjs,reentry-prompt.test.mjs,refine.test.mjsandbuild-suite. A new callers test pins the wiring (sparse path, read beforemodels, job output,with.instructions). The policy-probe test stages the prompt file and checks that the prompt names the runner root.apply-verdict.test.mjsreads the workflow and the rubric together, so its absence checks still cover both.build-suite.mjsreads the rubric file forINSTRUCTIONS. The re-entry eval README and the triage skill'sapply-outcome.mdpointer name the new file. There is awork-itemspatch fragment.@mainevidence:maintenance-check-links-online.ymlpinned tod7ba00151fa8429aa9a94fb919f1e517c2e74368(v0.78.0),node .github/standards/runner-policy/runner-policy.mjs --root .fails withrunner-target-contract: the reusable workflow ref @d7ba001… is not an approved commit … use @main. The pin was reverted.approvedShasin the syncedpolicy.jsonlists that SHA.scripts/repin-ci-workflows.shrewrites only action pins, andrepin-ci-workflows.test.sh:115asserts that an@mainreusable stays.pr-review-cli.ymlkey-off change.pr-review-hosted.yml:259andpr-review-security-hosted.yml:261.Rubric alignment
Owner decision Q256, recorded in owner-decisions (
docs/owner-decisions.md#L277), verbatim: "No hold (Recommended)". A design request whose visual choice is already made and whose done-when is exact gets no hold.triage-rubric.txtESCALATION, after the primary-design paragraph, now matches part 4 of the label test (plugins/work-items/skills/triage/SKILL.md:83-89, a design choice the owner has not made):The admit graders on
first-pass-chosen-design-readyare unchanged.Path holds
Verification
The new eval case was not run:
reentry-eval/build-suite.mjscannot build a suite from the current ci-workflowsintake-triage.yml(since ci-workflowsfebb1ed, the compose step no longer setsschema-file), filed as intake re-entry eval: build-suite reads a schema-file output the reusable no longer sets #17667. The rubric diff above is the evidence for the alignment. The rubric tests (apply-verdict,reentry-prompt,refine,callers) pass after the change.Byte identity of the move (commit 9d0f209, before the Q256 rubric change), with a script in
.work/againstorigin/main:instructionsvalue, read with theyamlparser, is identical to the new step's job output, parsed the way the runner'sFileCommandManagerheredoc parser does (14185 bytes).refineandsize-splitmodes, are identical.End to end: suites built by the base and head
build-suite.mjsfrom the same reusable (ci-workflowscb6945d, the parent offebb1ed) have identicalcase.yamlprompts for all 9 existing cases, both with and without instructions.validate-cases.pyon the built head suite (10 cases): clean. A deliberately broken must-pass sample came back FAIL.node --testoncallers.test.mjs(297 pass), the intake-triage tests (build-suite,reentry-prompt,refine,apply-verdict,credential-legs: 468 pass),log-api-budget.test.mjsand the plugin-eval workflow tests: 0 failures.actionlinton the three changed workflows: clean.markdownlint-cli2on the changed markdown: clean.scripts/check-affected.sh: 18 passed, 2 skipped over 24 changed files (the first run asked for apr-pipelinefragment, added).runner-policy.mjs --root .: passed.merge-holds.test.mjs after the hold-list change: 76 of 76 pass.
Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj