Repository navigation
fix(intake-triage): build the re-entry eval schema from the reusable's schema step - #17673
Conversation
…s schema step Since ci-workflows febb1ed (#1128) the compose step no longer sets schema-file; a separate schema step runs check-intake-triage-verdict's verdict.cjs in schema mode, which writes the schema and appends the caller's verdict-schema fields to the prompt. The suite builder read outputs["schema-file"] from compose and failed on readFileSync(undefined). build-suite.mjs now takes --verdict <verdict.cjs> from the same commit, runs its main in schema mode on the compose outputs and the caller's verdict-schema, reads the prompt after that step, and fails closed when a compose leg has no schema step or the step writes no schema file. run.sh extracts verdict.cjs at the pinned sha and passes it. Closes #17667 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: PR #17673 (bc8d6e9)I found no security issues. What changed. The intake re-entry eval's suite builder ( Trust boundary checked.
No instructions, standing rules or plugin manifests are touched, and there is no cost surface. critical-findings: 0 |
|
claude-review reviewed Code review: no findingsThis PR fixes the intake re-entry eval builder (
Every hunk of all 4 changed files has been read. I also read the whole head What fails closed:
The tests cover each of these paths, plus reading the prompt after the append. The changed assertion ( Closing issue #17667, acceptance criteria:
Notes (none counted as findings):
No path-scoped rule under Loosened checks would be marked: fail (default; no Verifier dropped 0 of 0 candidates. |
Closes #17667
Summary
The intake re-entry eval's suite builder failed against ci-workflows main. It read
outputs["schema-file"]from the reusable's compose step, and since ci-workflows febb1ed (ci-workflows#1128) compose no longer sets that output. A separateschemastep now runscheck-intake-triage-verdict'sverdict.cjsin schema mode. That step writes the schema with the caller'sverdict-schemafields, and it also appends those field names to the prompt file.Fix
build-suite.mjstakes--verdict <verdict.cjs>from the same ci-workflows commit as the reusable. After the compose script runs, it calls that module'smainin schema mode on compose'sallowed,type-namesandprompt-fileoutputs and the caller'sverdict-schema. It reads the prompt only after that call, so the appended field lines reach the case.mode: schemaon${{ inputs.verdict-schema }}, when the step writes no schema file, or when the caller'sverdict-schemais not one single-quoted line.run.shextractsverdict.cjsat the pinned sha and passes it to the builder. The README describes the schema step.build-suite.test.mjschecks this with a stubverdict.cjswhose schema is a hand-written literal. It covers the schema read from the new source, the prompt read after the append, failure when no schema file is written, the schema-step check, and how the quotedverdict-schemais parsed.Verification
node --test .github/scripts/intake-triage/reentry-eval/build-suite.test.mjs: 9 of 9 pass. Two mutants go red: reading the schema from compose'sschema-filefails 2 tests, and reading the prompt before the schema step fails "the prompt is read after the schema step appends to it".f784359) throwsTypeError [ERR_INVALID_ARG_TYPE]atbuild-suite.mjs:161.--no-instructions. Every case gets a non-empty schema.With
verdict-schemaremoved from the caller, this branch's build of all 9 cases is byte-identical to the baseline (diff -rofevals/).With the caller's real
verdict-schema, which is what the lane sends today, each prompt keeps the baseline prompt as an exact prefix. The base schema properties are unchanged. The only additions are the block below, the same in all 9 cases, and the five typed propertiessize,complexity,uncertainty,flagsandblocked_by, added to the schema and torequired:Those lines come from the reusable's own schema step, not from the builder.
withprompt.validate-cases.pyreports nothing and exits 0 on both suites. A negative control with swapped samples fails it, as expected.shellcheck run.sh,markdownlint-cli2on the README, andscripts/check-changelog-fragments.sh --check-required origin/mainare clean. No fragment is needed: no plugin's shipped files change.Related
build-suite.mjsand its test to readtriage-rubric.txt, so it needs a rebase onto this change. The two edits touch neighbouring lines ofbuild()andcallerInputs().🤖 Generated with Claude Code
https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj