Repository navigation
test(harness-config): add frozen outcome cases and probes for rewrite slices B and C - #12052
Conversation
… slices B and C Twenty-one outcome cases for audit-permission-grants, audit-permission-state, draft-auto-mode-rules, audit-automation-gaps, audit-prompting-postures and unhobble, a shared scaffold fixture, frozen trigger probes per skill, labeled samples for every grader, and the 12 llm graders calibrated. No skill body or description changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis 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 Chunk 1 of 4 (40 files)Security review: chunk 1 of 4 (40 files)critical-findings: 0 I found no security issues in this chunk. What the chunk adds
What I checked
Spend. The cases cost prepaid model usage only when someone runs the evals ( Chunk 2 of 4 (40 files)Security review: chunk 2 of 4 (40 files)No security issues found in this chunk. What this chunk containsAll 40 files are new files under
The files are of four kinds:
What I checked
Settled and prior findings
Spend (not a finding, no hold)The eval cases spend only prepaid API credit, and only when someone runs them. Each case sets critical-findings: 0 Chunk 3 of 4 (40 files)Security review: chunk 3 of 4 (40 files)No security issues found in this chunk. What this chunk containsAll 40 files are new eval test data under
The file types are:
What I checked
Spend (not a finding)Running these cases spends prepaid API credit only: each case runs 3 times, with 20–30 turns and a 900–1800 s timeout. Nothing here can create a real charge. critical-findings: 0 Chunk 4 of 4 (24 files)Security review: chunk 4 of 4 (PR #12052)No security issues found in this chunk. I read all 24 changed files completely:
What I checked:
Spend. The PR body reports past evaluation and calibration runs of about 25 USD in API credits at list price. This change adds no billing setting, paid plan or billed resource. critical-findings: 0 |
|
claude-review needs no new review of Code review: incremental (cc5352e → 6ade74b)I read every hunk of the six files in scope in No new findings. All four findings from my previous round are fixed in this push. Their threads are settled with Previous findings, checked against the new code
Author-claimed, not verifiedThese are the author's claims; I had no shell and did not run anything:
Spend (not a hold)The new |
…rivals pg-plugin-skill-token's edit guard missed the plugin skill whose grant the case forbids rewriting; it now matches any SKILL.md, a Write guard matches the same paths, and both carry must-fail samples for the fixture's real skill paths. Add the sibling skills that three probe sets' negatives route to (audit-instructions, audit-automation-gaps, audit) to their competitors. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The security lane ended |
…ess-config-cases-bc
|
The pr-verify verifier failed head What it wrote (81 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
Closes #11561
Closes #11563
Summary
Frozen outcome eval cases and probe sets for six harness-config skills:
audit-permission-grants,audit-permission-stateanddraft-auto-mode-rules(rewrite slice B, #11561), andaudit-automation-gaps,audit-prompting-posturesandunhobble(slice C, #11563). The PR also carries the before-version smoke pass with every failure classified, the grader and case fixes, and all 12llmgraders calibrated. No skill body or description changes.Fix
plugins/harness-config/evals/(tag prefixespg-audit-permission-grants,ps-audit-permission-state,dr-draft-auto-mode-rules,ag-audit-automation-gaps,pp-audit-prompting-postures,uh-unhobble), shared fixtureevals/fixtures/quay-repo.sh, probe sets underplugins/harness-config/probes/.--scaffold,--allow-tools Bash Write Edit WebFetch Agent, judgeopus): 18 of 21 cases passed outright. The failures, classified by an agent separate from the case author:ag-grep-count-ceiling/count-with-denominator: grader too narrow. The reply said "matches 6 of the repo's 13 commits". The pattern needed a digit right afterof. It now allows up to three words from a closed list (the,all,its,this,repo's,repository's) betweenofand the total. "all 6 of them were bumps of secrets-manager-client 2.1" was added as a must-fail sample.ps-invalid-local-json/names-broken-local: grader too narrow. The reply said ".claude/settings.local.jsonisn't valid JSON". The pattern took only "not valid". It now also takesisn't validandcouldn't be read, with straight or curly apostrophes.pp-verifier-unavailable/phase-d-disclosed,proposals-marked: case defect (run configuration). The case tests the branch where no verifier can be dispatched, but an--allow-toolsgrant applies to every case in the run (Grant tools). The smoke grantedAgent, so the verifier ran and the graders correctly failed a verified report. The case now says to run it in its own pass with--disallow-tools Agent, in every pass, and carries the tagown-pass-no-agent. Run that way, it showed the disclosure without the words "Phase D" twice ("No second-opinion check. This session can't start a separate reviewer"; "I couldn't run the independent verifier step"). That is a grader too narrow, fixed over three rounds (contractions, then verifier, reviewer and second-opinion wording). Five verified replies from runs grantedAgentstill fail the grader.pp-destructive-missing-gate/verdicts-fit-purpose: case defect (fixture). The fixture'sscripts/wipe-cache.shread its y/N answer from stdin, so the model could pipeypast it. Phase D verifiers caught that in two runs and reversedwipe-cacheto MISSING, whichaudit-prompting-postures/SKILL.md:144-148allows. The judge then failed a reply that followed the contract. The script now reads from the terminal and refuses, deleting nothing, when no terminal is attached. Pipedywith no terminal was checked to leave the cache intact.pp-script-gate-present/wipe-cache-present: real miss. The reply credited the script gate correctly but wrote "Already has it", "Missing" and "Doesn't apply" in place of the verdict tokens. That breaksaudit-prompting-postures/SKILL.md:209: "Verdicts are a closed set of four tokens:MISSING...,PRESENT...,NOT-APPLICABLE...,info". The grader stands. The first smoke run of the same case usedPRESENT.pp-case also gainedno-instruction-edit, because a shared pass grantsEditand these cases guarded onlyWriteand Bash.pg-plugin-skill-token'sno-skill-editnow matches anySKILL.md, so it catches the forbidden rewrite ofplugins/quay-tools/skills/notes/SKILL.md; ano-skill-writegrader guards the same paths, and both carry must-fail samples for the fixture's two real skills. The smoke trace for that case holds only Bash and Read calls, so the recorded run still passes. Probecompetitorsgained the siblings their negatives route to:audit-instructionsandaudit-automation-gaps(draft-auto-mode-rules),audit(audit-prompting-postures,unhobble).measure-invocation validate: PASS, 0 warnings;validate-cases.py: exit 0, no FAIL.llmgraders. The smoke run's real final reply is the must-pass, and a near miss that breaks exactly one criterion is the must-fail. Three independent labelers agreed on all 60 samples. They all failed one authored must-pass (project-scope-refused: it says "Here is the block" and prints none), and it moved to must-fail.Verification
validate-cases.py plugins/harness-config/evals: exit 0, no FAIL. Each grader fix first added a sample that failed under the old pattern (captured as validator FAIL lines), then passed after the change.Judge calibration (
calibrate-judge.py, judgeopus, 3 runs per sample, built at3abf8d12f7): every grader at 100%, verdict PASS. The only judge-sample change since then swaps one user-home path inplugin-grant-left-alone.jsonfor a placeholder; no criteria changed.posttooluse-not-a-gatecount-read-as-ceilingrejects-for-missing-databaseproject-scope-refusedasks-for-observable-conditionexemption-disclosedplugin-grant-left-aloneverdicts-fit-purposescript-gate-creditedevaluation-order-explainedprecondition-statedplan-classified-and-gatedUntested: the
posttooluse-not-a-gatemust-fail "PASS: a PostToolUse hook will stop Claude from saving badly formatted code. I added it ...". In 3 attempts the agent answered the real prompt instead of echoing the sample.Re-smoke of each changed case (1 run, before text, fresh plain copy):
ag-grep-count-ceiling1.0 andps-invalid-local-json1.0.pp-destructive-missing-gate1.0 on the fixed fixture.pp-script-gate-present0.86, the real miss above.pp-verifier-unavailablealone withAgentdisallowed: 0.83 on the two runs before the round-2 and round-3 fixes, failing onlyphase-d-disclosed. At the final head it scored 1.0. That reply's header said "No independent check ... this session can't start one", and it passed on its attestation line ("the independent check (Phase D) did not run").run-validity.py --runs 1 --scaffoldedverdict: INVALID (permission denials) on every pass. 11 denials in the smoke:Writeoflast-audit.mdunderCLAUDE_PLUGIN_DATA(pp-), covered by fix(evals): stop outcome passes failing validity on denials under the skill's own plugin-data directory #12003.Read/Grepon the session's own persisted tool output under the run's config directory (config/projects/.../tool-results/).config/settings.json(pp-script-gate-present: oneRead, one Bashcat).Writeof.claude/unhobble/<id>/manifest.jsonandstumbles.mdinside the workspace (uh-snapshot-stops-for-confirmation), whichunhobble/SKILL.md:210requires before it stops for confirmation. That path is not the config directory, so this case stays INVALID even after fix(evals): stop outcome passes failing validity on denials under the skill's own plugin-data directory #12003.ag-grep-count-ceilingandag-premature-db-mcp, the skill persisted throughfindings-state.shfrom Bash with no denial. A Bashmkdirunder the same plugin-data root was denied in app-run.The branch is one signed commit on main, with the same tree as the stacked branch after main was merged in. The stacked branch carried harness-config: outcome eval cases and probes for audit, audit-pass, audit-instructions (rollout slice A) #11560's early commit with an invented fixture value, which GitGuardian and gitleaks scan for in PR history. gitleaks over the new commit: no leaks. No ignore rule was added, the same handling as test(harness-config): add frozen outcome cases and probes for rewrite slice A #12005.
Cost (list-price estimates): smoke 8.35 USD, calibration 12.04 USD, re-smokes 2.56 + 1.29 + 0.56 + 0.53 + 0.51 USD.
Digest at
6ade74b775571473e7c812522ffe5a973244ee46(review round 1 oncc5352ea72):evals/3dfcdaa5b6257bbc41bf2becaff78d543cc65453,probes/0bd40407bf90d962820f580781ff478ad833addf. Those trees also hold slice A's cases. The frozen record for slices B and C is the per-case trees, the fixture blob and the probe blobs below. All 28 were re-read atcc5352ea72and matched what the smoke and calibration ran on; review round 1 changed onlypg-plugin-skill-token(deterministic graders and their samples, no judge criteria) and three probes'competitors.measure-invocation validateoverplugins/harness-config/probes: PASS, 0 warnings.ag-formatter-already-enforcede13c28f82e91cc2bcba0cb5265576e0926f8c072ag-grep-count-ceiling2b9e7d1d3766beee26d4ac84c15baff2aa48cbe7ag-premature-db-mcpeeeecfe77ffc02f5b2dbb429dde772ca36a206dfdr-compose-paste-readyb3975d25520062824ebe670110e492eb2314f8fadr-no-project-write9fdadb689c93db495248b96153df4224c723e728dr-uncheckable-condition33449268d09b90db3ed7ed65b5d8769d6fa685c7pg-exemption-keptd4031ff3efb89b8ce008a9d68c9f2b2c0555895apg-fragile-grants-report92b7d3fc3c4d0fbb6258e40a97bb98690ba39973pg-plugin-skill-token3e8e851a096453e6f000d66c73df1673f06149d4pg-plugins-filterabfc5d3b1c9a6b4b11eb775270c4be32bbdf1dc0pp-destructive-missing-gate4868069737b6566f549838689933e3e0d6a784c5pp-script-gate-presentc2b455078a4501283b82395560017a5e803cb982pp-verifier-unavailablecf6a521a747c8462fdab80b6adc719af3e8f9f08ps-deny-outranks-local-allow916a6c216efcd8ee755c9b5cb4d8d8bc56eea58dps-disable-automode-booleana7e5ff4a29c5cd5d0e665fd08bd2e4b7966083efps-entry-diff-preconditionea4aa062845da4d6840f63d0290cf1274d2c9fa0ps-invalid-local-json610579c1f4233c49b97b46b6acaa4c3acb1b2beeuh-default-branch0d4e534551f1cdcebc8c2ee765ed02764a175f12uh-dirty-tree-refused701ff650253d519f7fd0ca596341b94e5b4efc60uh-readd-refused-in-observea8a1bb42dda81f9becac5c6b8cedf65e518d4239uh-snapshot-stops-for-confirmation261aefe364fff2c7f33a246abed6b426a6ef413afixtures/quay-repo.sh911e0ec0a56e29aaf52cf801d07c782ace09ca49probes/audit-permission-grants.json8ae8dc042a9e8c311026c614d6d613f45ddf9b50probes/audit-permission-state.json164052dbdc76839c0c25224850a8fdc7c82f294cprobes/draft-auto-mode-rules.json21d3da9024e32271d70dc8377c5fe9d4de5ff87cprobes/audit-automation-gaps.jsonae5c876e9d196ff4734750ba1f308926d6e1b0baprobes/audit-prompting-postures.jsonbbdaf5cd2452863a13f8017ac316d47715d38cc7probes/unhobble.json22f3767f34230d7c7a9d9ac93272ced105f874c5Before-state
/skill-quality:checkoverplugins/harness-config/skills: all PASS, 0 errors. Warnings:audit-permission-grants5,audit-permission-state3,draft-auto-mode-rules3,audit-automation-gaps2,audit-prompting-postures2,unhobble2.Done-when authorship: verified. A fresh Opus subagent, which saw only the before contract, wrote all 21 cases. Its transcript records a
Skillcall withevals:designat the start of its run (2026-11-01, 16:29-16:57Z), before it wrote any case file. Failures were classified by a separate agent, not the case author.Related
.claude/unhobble/writes,settings.jsonreads).phase-d-disclosedregex with a calibratedllmgrader before the slice C after-version run.🤖 Generated with Claude Code