Repository navigation
fix(verify): run the live gate headless with machine-checked recipes (#112) - #137
Conversation
…112) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merge Protections🟢 All 2 merge protections satisfied — ready to merge. Show 2 satisfied protections🟢 Queue ready pull requestsAutomatically queue non-draft pull requests targeting main after verify, Unfret, and live-gate pass on the head.
🟢 🚦 Auto-queueWhen all merge protections are satisfied and these conditions match, this pull request will be queued automatically.
|
Live evidence: Open Pstack
|
…ect (#112) CI's Linux runner gave result.md an mtime just before the recorded session start, so the written-this-session check failed in two tests. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Live evidence: Open Pstack
|
|
| if (feature === 'project-skill') return [projectSkill]; | ||
| if (feature === 'runner') return runner(harness, routes); | ||
| if (feature === 'setup' || feature === 'skill-invocation:setup-pstack') return setup; | ||
| if (feature === 'shipped-tools') return [shippedTools]; |
There was a problem hiding this comment.
| async function ciFixed(_record: SessionRecord, f: Fixture): Promise<Evidence> { | ||
| if (!/return\s+a\s*\+\s*b/.test(await readFile(join(f.dir, 'sum.mjs'), 'utf8'))) throw new Error('ci-not-fixed:sum.mjs'); | ||
| return { assertions: ['fixed:sum.mjs'], files: [join(f.dir, 'sum.mjs')] }; | ||
| } | ||
|
|
There was a problem hiding this comment.
The default skill-invocation case passes when the skill name appears in the session record and any nonempty result.md is written. For a changed skill such as architect, that does not show that its design workflow ran or produced its required output. The gate can pass on a short note instead of the changed behavior. Check the work required by each selected skill.
| const descriptors = (await readFile(sheet, 'utf8')).match(/\b(?:claude|codex|grok):[A-Za-z0-9._-]+@[a-z]+/g) ?? []; | ||
| if (!descriptors.length || descriptors.some(d => d !== SETUP_DESCRIPTOR)) throw new Error('sheet-descriptors-mismatch'); | ||
| return { assertions: [...assertions, `sheet:${SETUP_DESCRIPTOR}`], files: [sheet] }; | ||
| }, | ||
| }, { | ||
| id: 'consume', |
There was a problem hiding this comment.
The setup cases check the sheet, then ask poteto-mode to read it directly. They never check the CLAUDE.md import or AGENTS.md block that makes the sheet available in normal sessions. If setup writes the sheet but misses that second write, both cases can pass while users keep their old routes. Check that setup also writes the parent integration.
|
|
||
| /** Resolve a feature's cases, or fail with a named reason before any session starts. */ | ||
| export function recipe(feature: string, harness: Harness, routes: string[] = []): Case[] { | ||
| if (feature === 'assets:codex') throw new Error('unsupported-native-consumer:assets:codex'); |
There was a problem hiding this comment.
| return { assertions: ['history-unchanged'], files: [] }; | ||
| }, async f => { | ||
| await taskRepository(f); |
There was a problem hiding this comment.
🛑 20 blocking findings
🔴 High · All shipped-tool changes are verified through log.sh only
🔴 High · Runner output is not checked for the promised response
🔴 High · Test setup integration instead of explicitly reading the sheet
🔴 High · Exercise runner validation and failure paths
🔴 High · Validate every requested log field
🔴 High · Remove the contradictory automate-me prohibition
🔴 High · Run the failing CI command when asserting the fix
🔴 High · Fail a case when a tool invocation is denied or errors
🔴 High · Verify the Claude skill source, not only its command name
🔴 High · Restore Codex's run-owned setup configuration after the feature
🔴 High · Check the whole worktree in the review-guidance recipe
🔴 High · Reject incomplete setup sheets
🔴 High · Select the runner provider branch being changed
🔴 High · Allow external-provider skills to run from Codex recipes
🔴 High · Default skill recipes accept arbitrary result text
🔴 High · Validate automate-me output as a real skill file
🔴 High · Do not accept a generic result file as skill behavior proof
🔴 High · Setup consumption can report a mismatched route and pass
🟡 Medium · Treat an empty CLAUDE_CONFIG_DIR as the default home
🟡 Medium · Interrupt during session file opens leaves session unkilled
Check
| if (feature === 'project-skill') return [projectSkill]; | ||
| if (feature === 'runner') return runner(harness, routes); | ||
| if (feature === 'setup' || feature === 'skill-invocation:setup-pstack') return setup; | ||
| if (feature === 'shipped-tools') return [shippedTools]; |
There was a problem hiding this comment.
🔴 High · Shipped-tool changes run only logging
Changes to orch, watch-pr, check-plan, worktree audit, or bootstrap select shipped-tools, but this branch returns only the log.sh case. Successful logging can publish a passing gate while the changed tool and its required consumers never execute. Also reported for this defect: - Run the selected shipped tool, not always log.sh (.claude/skills/verify-open-pstack/features/recipes.ts:210): Every path in the tools registry is classified as shipped-tools, but this branch always returns the one logging recipe. A PR that breaks orch, watch-pr, check-plan, the worktree audit, or bootstrap can therefore pass after only show-me-your-work/log.sh runs, publishing success without exercising the changed tool. - Shipped-tool changes are verified only through log.sh (.claude/skills/verify-open-pstack/features/recipes.ts:210): Every registered tools path maps to shipped-tools, but this branch always returns the single logging case. If a PR breaks orch, watch-pr, check-plan, the worktree audit, or bootstrap.ts while log.sh remains healthy, neither harness invokes the changed tool and the verifier can publish a successful live gate. - All shipped-tool changes are verified through log.sh only (.claude/skills/verify-open-pstack/features/recipes.ts:210): Every shipped-tools selection returns the single logging case. A PR that breaks orch, watch-pr, check-plan, or the worktree audit is classified as shipped-tools, but this branch exercises only show-me-your-work/log.sh, allowing the unrelated logging check to publish success for the broken changed tool. Also reported for this defect: - shipped-tools recipe passes tool changes it never runs (.claude/skills/verify-open-pstack/features/recipes.ts:210): recipe('shipped-tools') always returns the single log.sh case. Classification maps every tools path to the one shipped-tools feature. That covers orch, watch-pr, check-plan, the worktree audit and bootstrap.ts. Scenario: a PR changes orch. The run invokes only show-me-your-work/log.sh, its TSV assertions pass, and the verifier publishes live-gate=success with "PASSED — all mapped features verified". The changed tool was never executed. This breaks the AGENTS.md gate ("the changed behavior passes a live test"). It also breaks the PR's own rule that a feature without a recipe fails before any session starts, which assets:codex follows. shipped-tools.md admits these tools "have no case yet", but the code returns success instead of failing closed. - Exercise the selected shipped tool, not always log.sh (.claude/skills/verify-open-pstack/features/recipes.ts:210): Any change under orch, watch-pr, check-plan, worktree-audit, or bootstrap is classified as shipped-tools, but this branch always returns only the show-me-your-work log case. Such a PR can receive a successful live gate while its changed tool is never invoked; bootstrap changes also miss both mandated consumers.
Now at .claude/skills/verify-open-pstack/features/recipes.ts:210
| if (receipt.status !== 'complete') throw new Error(`receipt-status:${receipt.status}`); | ||
| if (receipt.parent !== harness || receipt.provider !== provider || receipt.model !== model || receipt.effort !== effort || receipt.mode !== 'read-only') throw new Error('receipt-route-mismatch'); | ||
| if (receipt.outputPath !== lane(f, 'output.md') || !(Date.parse(receipt.startedAt) >= record.started)) throw new Error('receipt-not-this-session'); | ||
| return { assertions: ['runner-ran', 'receipt-complete', `route:${route}`, await written(record, lane(f, 'output.md'))], files: [lane(f, 'receipt.json'), lane(f, 'output.md')] }; |
There was a problem hiding this comment.
🔴 High · Runner output is not checked for the promised response
The runner case asks the child to return exactly PONG, but this assertion accepts any freshly written nonempty output. If prompt delivery or model output regresses to PUNG or an unrelated response while the launcher records a completed receipt, the runner live gate still passes. Also reported for this defect: - Check the runner's requested PONG output (.claude/skills/verify-open-pstack/features/recipes.ts:166): The child prompt requires the single word PONG, but the assertion accepts any nonempty output file. A regression that drops prompt delivery or returns unrelated output can still produce a complete receipt and receive successful live evidence. Also reported for this defect: - Runner output need not equal PONG (.claude/skills/verify-open-pstack/features/recipes.ts:166): A runner regression returning PUNG or unrelated text passes when its receipt is complete and the output file is fresh and nonempty. The requested PONG response is never checked before successful evidence is recorded. - Assert the runner's requested PONG response (.claude/skills/verify-open-pstack/features/recipes.ts:166): The case asks the child to return exactly PONG, but the assertion accepts any fresh nonempty output. A completed receipt with PUNG or unrelated output satisfies every check and can publish successful runner evidence despite broken prompt delivery or response handling. - Runner output is not checked for PONG (.claude/skills/verify-open-pstack/features/recipes.ts:166): The case requests the exact response PONG, but the assertion accepts any fresh nonempty output file. A child that receives the wrong prompt or writes PUNG can still produce a complete receipt and pass the runner live gate.
Now at .claude/skills/verify-open-pstack/features/recipes.ts:166
| }, | ||
| }, { | ||
| id: 'consume', | ||
| prompt: f => `${invoke(f.harness, 'poteto-mode', `Do no engineering work. Read the configured pstack model sheet and write to ${join(f.dir, 'route.txt')} one line naming the descriptor configured for the "judgment and prose" role and the route this parent uses for it.`)} ${rules(f.dir)}`, |
There was a problem hiding this comment.
🔴 High · Test setup integration instead of explicitly reading the sheet
The consumer is directly instructed to read pstack-models.md. If setup writes a valid sheet but fails to update Claude's CLAUDE.md import or Codex's AGENTS.md block, this fresh session can still read the file on demand and report the expected descriptor, so the broken normal user integration receives a passing gate. Also reported for this defect: - Explicit sheet reads bypass setup integration (.claude/skills/verify-open-pstack/features/recipes.ts:184): If setup writes the sheet but omits Claude's CLAUDE.md import or Codex's AGENTS.md configuration block, this consumer can still read the sheet because the prompt explicitly requests it. Both cases can pass despite broken normal configuration discovery. - Test setup integration instead of directly reading the sheet (.claude/skills/verify-open-pstack/features/recipes.ts:184): The consumer is explicitly told to read pstack-models.md. If setup writes the sheet but fails to add Claude's CLAUDE.md import or Codex's AGENTS.md block, both setup cases can still pass even though normal sessions do not load the configuration. - Setup integration is bypassed by explicitly reading the sheet (.claude/skills/verify-open-pstack/features/recipes.ts:184): The consuming session is directly instructed to read pstack-models.md. If setup writes a valid sheet but fails to add the normal Claude or Codex instruction-file integration, this prompted lookup still finds the descriptor and the broken installed setup passes.
Now at .claude/skills/verify-open-pstack/features/recipes.ts:184
|
|
||
| function runner(harness: Harness, routes: string[]): Case[] { | ||
| const chosen = routes.filter(route => !route.startsWith(`${harness}:`)); | ||
| return (chosen.length ? chosen : [DEFAULT_ROUTES[harness]]).map((route, index) => { |
There was a problem hiding this comment.
🔴 High · Exercise runner validation and failure paths
Every generated runner case supplies valid arguments and requires a complete receipt. A candidate that breaks same-provider rejection, invalid-argument handling, authentication failures, or malformed-output reporting still passes these success-only cases even though runner.md requires changed invalid and failure branches to be exercised. Also reported for this defect: - Runner validation and failure paths are never exercised (.claude/skills/verify-open-pstack/features/recipes.ts:152): All generated cases use valid arguments and require a successful complete receipt. A PR that breaks same-provider rejection, invalid-argument handling, authentication failures, or malformed-output reporting still passes because none of those changed branches is invoked. - Exercise runner validation and failure paths (.claude/skills/verify-open-pstack/features/recipes.ts:152): All generated runner cases use valid arguments and require a successful complete receipt. A candidate that breaks same-provider rejection, malformed-argument handling, authentication failures, or failure receipt generation still passes because none of those changed branches is invoked. - Runner failure branches receive no exercise (.claude/skills/verify-open-pstack/features/recipes.ts:158): Every generated case requests successful dispatch and requires a complete receipt. A candidate that stops rejecting same-provider requests or invalid arguments can pass every case; changed validation and failure behavior is never exercised as the runner contract requires.
Now at .claude/skills/verify-open-pstack/features/recipes.ts:152
Also affects:
| const slug = feature.replace(/[^a-z0-9-]/g, '-'), dir = join(home, 'fixtures', slug), records = join(receipt.artifactRoot, 'sessions', harness, slug); | ||
| for (const path of [dir, records]) await mkdir(path, { recursive: true, mode: 0o700 }); | ||
| const fixture: Fixture = { harness, dir, workspace, location: installation.location, run: this.candidate(home), | ||
| configHome: harness === 'claude' ? env.CLAUDE_CONFIG_DIR ?? join(env.HOME!, '.claude') : env.CODEX_HOME! }; |
There was a problem hiding this comment.
🟡 Medium · Empty CLAUDE_CONFIG_DIR resolves to the wrong assertion path
The supported ${CLAUDE_CONFIG_DIR:-$HOME/.claude} behavior treats an empty variable as the default home, but nullish coalescing preserves ''. Setup then writes under $HOME/.claude while the assertion reads a relative pstack-models.md, causing a correct setup run to fail with ENOENT. Also reported for this defect: - Treat an empty CLAUDE_CONFIG_DIR as the default home (.claude/skills/verify-open-pstack/scripts/harness.ts:149): The supported config-home contract treats empty and unset values identically, but nullish coalescing preserves ''. With CLAUDE_CONFIG_DIR='', setup writes $HOME/.claude/pstack-models.md while this assertion looks for a relative pstack-models.md, causing a valid setup run to fail with ENOENT. - Empty Claude config homes resolve incorrectly (.claude/skills/verify-open-pstack/scripts/harness.ts:149): With CLAUDE_CONFIG_DIR set to an empty string, the supported default is HOME/.claude. Nullish coalescing instead preserves the empty value, so setup writes to the default home while its assertion reads relative pstack-models.md and rejects valid behavior with ENOENT. - Treat an empty CLAUDE_CONFIG_DIR as the default home (.claude/skills/verify-open-pstack/scripts/harness.ts:146): An empty CLAUDE_CONFIG_DIR is explicitly defined to resolve to $HOME/.claude, but nullish coalescing preserves ''. In that valid environment setup writes $HOME/.claude/pstack-models.md while the assertion reads relative pstack-models.md, causing the setup recipe to fail with ENOENT.
Now at .claude/skills/verify-open-pstack/scripts/harness.ts:146
Also affects:
|
|
||
| function skillCase(skill: string, request: string, check?: (record: SessionRecord, fixture: Fixture) => Promise<Evidence>, prepare: (fixture: Fixture) => Promise<void> = taskRepository): Case { | ||
| return { | ||
| id: 'invoke', |
There was a problem hiding this comment.
🔴 High · Allow external-provider skill workflows in Codex recipes
Generic cases do not request danger-full-access, so Codex runs them under workspace-write. Skills such as architect normally launch external Claude and Grok lanes that need network and external CLI state; those lanes can be blocked, reported as dropouts in result.md, and still satisfy the recipe. Also reported for this defect: - Default Codex cases block external lanes (.claude/skills/verify-open-pstack/features/recipes.ts:82): These cases leave codexSandbox unset, selecting workspace-write with approvals disabled. Architect, arena, how, interrogate, and swarm require external provider access; blocked lanes can produce a dropout report in result.md that still passes, yielding success without exercising their normal behavior. - Default Codex skill cases block external provider lanes (.claude/skills/verify-open-pstack/features/recipes.ts:83): Generic cases do not request danger-full-access, so Codex uses workspace-write with approvals disabled. Skills such as architect, arena, interrogate, how, and swarm can have their external Claude or Grok lanes blocked, yet write a dropout report to result.md and pass. - Allow external-provider skills to run from Codex recipes (.claude/skills/verify-open-pstack/features/recipes.ts:83): Default cases never set codexSandbox: 'danger-full-access'. Skills such as architect, arena, how, interrogate, and swarm normally launch Claude or Grok children from a Codex parent, so workspace-write can block their network and external CLI state; the skill may record dropouts and still write result.md, allowing the gate to pass without exercising those lanes.
Now at .claude/skills/verify-open-pstack/features/recipes.ts:82-89
Also affects:
| prepare, | ||
| prompt: f => `${invoke(f.harness, skill, `${request.replaceAll('$DIR', f.dir)} Write the skill's result to ${join(f.dir, 'result.md')}.`)} ${rules(f.dir)}`, | ||
| async assert(record, f) { | ||
| const assertions = [loaded(record, `pstack:${skill}`), await written(record, join(f.dir, 'result.md'))], paths = [join(f.dir, 'result.md')]; |
There was a problem hiding this comment.
🔴 High · Default assertions accept incorrect answers
An architect session can claim subtraction is correct and write that claim to result.md. Skill loading and file freshness both pass; no assertion checks the fixture's known answer, so incorrect behavior receives a successful live gate. Also reported for this defect: - Default recipes accept any result text (.claude/skills/verify-open-pstack/features/recipes.ts:87): The generic assertion proves only that the skill name appeared and a nonempty result.md was written. For example, architect can claim subtraction is correct or otherwise return the wrong answer and still receive a successful live gate. - Verify the default skill's result, not only file existence (.claude/skills/verify-open-pstack/features/recipes.ts:87-89): The default assertion accepts any freshly written nonempty result.md without checking its answer or effect. For the supplied sum task, architect can claim subtraction is correct and still receive successful live-gate evidence. - Default skill recipes accept arbitrary result text (.claude/skills/verify-open-pstack/features/recipes.ts:87): The assertion only proves that the skill loaded and created a nonempty result.md; it never checks the result against the fixture's known answer. For example, architect can claim that subtraction is correct, write that claim to the file, and still produce a successful live-gate observation.
Now at .claude/skills/verify-open-pstack/features/recipes.ts:87
Also affects:
| prompt: f => `${invoke(f.harness, 'automate-me', `My handle is fixture. There is no history to mine for this workspace, so skip mining. My answers to your questions: concise replies, and verify with tests before claiming done. Write the drafted skill to ${join(f.dir, '.claude/skills/fixture-mode/SKILL.md')}.`)} ${rules(f.dir)}`, | ||
| async assert(record, f) { | ||
| const path = join(f.dir, '.claude/skills/fixture-mode/SKILL.md'), assertions = [loaded(record, 'pstack:automate-me'), await written(record, path)]; | ||
| if (!/name:\s*fixture-mode/.test(await readFile(path, 'utf8'))) throw new Error('mode-skill-unnamed'); |
There was a problem hiding this comment.
🔴 High · Automate-me accepts malformed skill files
A fresh file containing only name: fixture-mode satisfies this regex despite lacking YAML frontmatter and usable skill instructions. Malformed authored skill output can therefore receive successful automate-me evidence. Also reported for this defect: - Automate-me accepts an invalid skill file (.claude/skills/verify-open-pstack/features/recipes.ts:117): The unanchored regex accepts name: fixture-mode anywhere in arbitrary text. A fresh file containing only that line, without YAML frontmatter or usable skill instructions, satisfies the recipe and is reported as a valid authored skill. - Validate automate-me output as an actual skill file (.claude/skills/verify-open-pstack/features/recipes.ts:117-118): The unanchored regex accepts name: fixture-mode anywhere in arbitrary text. A malformed file with no YAML frontmatter or usable instructions, such as garbage name: fixture-mode, passes as a generated mode skill. - Validate automate-me output as a real skill file (.claude/skills/verify-open-pstack/features/recipes.ts:117): The unanchored regex accepts name: fixture-mode anywhere in arbitrary text. A malformed file without YAML frontmatter or usable skill instructions can therefore satisfy mode-skill and receive successful evidence.
Now at .claude/skills/verify-open-pstack/features/recipes.ts:117
Also affects:
| const skill = /^skill-invocation:([a-z][a-z0-9-]+)$/.exec(feature)?.[1]; | ||
| if (!skill) throw new Error(`missing-recipe:${harness}/${feature}`); | ||
| return [overrides[skill] ?? skillCase(skill, 'Apply it to the task in $DIR/TASK.md.')]; | ||
| } |
There was a problem hiding this comment.
🔴 High · Generic fixtures do not exercise skill-specific behavior
Every non-overridden skill receives the same local sum task. For example, get-pr-comments runs in a repository with no remote or active PR and can write “no active PR” to result.md, passing without fetching or summarizing any comments. Also reported for this defect: - Generic fixtures skip required skill behavior (.claude/skills/verify-open-pstack/features/recipes.ts:213): A get-pr-comments change receives a local sum repository without a remote or active PR. Writing “no active PR” passes this fallback without fetching or summarizing any comments, allowing success without exercising the selected skill's required behavior. - Use fixtures that exercise each selected skill (.claude/skills/verify-open-pstack/features/recipes.ts:213): Every non-overridden skill receives the same local sum repository. For example, get-pr-comments has no remote or active PR, so it can write a “no active PR” result and pass without fetching or summarizing any review comments; the changed skill behavior is never exercised. - Do not accept a generic result file as skill behavior proof (.claude/skills/verify-open-pstack/features/recipes.ts:214): The fallback gives every non-overridden skill the same tiny sum task and accepts any nonempty result.md. For example, a get-pr-comments change runs in a repository with no remote; writing “no active PR” satisfies these assertions and can publish success without fetching or summarizing any comments.
Now at .claude/skills/verify-open-pstack/features/recipes.ts:214
Also affects:
| prompt: f => `${invoke(f.harness, 'poteto-mode', `Do no engineering work. Read the configured pstack model sheet and write to ${join(f.dir, 'route.txt')} one line naming the descriptor configured for the "judgment and prose" role and the route this parent uses for it.`)} ${rules(f.dir)}`, | ||
| async assert(record, f) { | ||
| const path = join(f.dir, 'route.txt'), assertions = [loaded(record, 'pstack:poteto-mode'), await written(record, path)]; | ||
| if (!(await readFile(path, 'utf8')).includes(SETUP_DESCRIPTOR)) throw new Error('consumer-route-mismatch'); |
There was a problem hiding this comment.
🔴 High · Setup consumption accepts a mismatched route
The consumer check is only a substring search for the configured descriptor. Output such as configured: claude:opus@high; route used: codex:other@max passes even though the parent ignored the configured route. Also reported for this defect: - Setup accepts a mismatched consumed route (.claude/skills/verify-open-pstack/features/recipes.ts:187): Output such as configured: claude:opus@high; route used: codex:other@max satisfies this substring check. The consumer can ignore the configured route and still produce successful setup evidence. - Require the route actually used to match setup (.claude/skills/verify-open-pstack/features/recipes.ts:187-188): The consumer assertion is an unrestricted substring search. Output such as configured: claude:opus@high; route used: codex:wrong@max passes even though the parent ignored the configured route, yielding false successful setup evidence. - Setup consumption can report a mismatched route and pass (.claude/skills/verify-open-pstack/features/recipes.ts:187): The consumer assertion only requires route.txt to contain claude:opus@high. Output such as configured: claude:opus@high; route used: codex:other@max therefore passes even though the consuming skill ignored the configured route, yielding a false successful setup observation.
Now at .claude/skills/verify-open-pstack/features/recipes.ts:187
Also affects:
…ll (#112) Unfret on 241b1ba: Codex setup left an all-Opus sheet in the run-owned CODEX_HOME for every later check, and the automate-me prompt forbade the skill write it asked for. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Live evidence: Open Pstack
|
There was a problem hiding this comment.
🛑 21 blocking findings
🔴 High · Runner defaults omit changed providers
🔴 High · Shipped-tool changes run only logging
🔴 High · Runner output is not checked for the promised response
🔴 High · Setup consumption accepts a mismatched route
🔴 High · Test setup integration instead of explicitly reading the sheet
🔴 High · Exercise runner validation and failure paths
🔴 High · Check the whole worktree in the review-guidance recipe
🔴 High · Allow external-provider skill workflows in Codex recipes
🔴 High · Reject incomplete setup sheets
🔴 High · Validate every requested log field
🔴 High · Automate-me accepts malformed skill files
🔴 High · Run the failing CI command when asserting the fix
🔴 High · Verify the Claude skill source, not only its command name
🔴 High · Default assertions accept incorrect answers
🔴 High · Generic fixtures do not exercise skill-specific behavior
🔴 High · Setup changed branches are reduced to one all-Opus scenario
🔴 High · Denied Claude tool calls do not fail the case
🔴 High · Mentioning a helper command counts as executing it
🔴 High · Runner cases do not require skill loading
🟡 Medium · Empty CLAUDE_CONFIG_DIR resolves to the wrong assertion path
🟡 Medium · Interrupts during file opens miss the child
Check
| const setup: Case[] = [{ | ||
| id: 'configure', | ||
| codexSandbox: 'danger-full-access', | ||
| prompt: f => `${invoke(f.harness, 'setup-pstack', `Use these answers and ask nothing else. Role assignments: change every role assigned to a model-matrix family to the Opus family, and keep inherit-parent and auto roles unchanged. Opus requested effort: high. I confirm every write. Write the setup report to ${join(f.dir, 'result.md')}.`)} Do not push, post, or contact GitHub.`, |
There was a problem hiding this comment.
🔴 High · Setup changed branches are reduced to one all-Opus scenario
Every setup-related change runs the same successful all-Opus configuration. A PR that breaks unavailable-provider handling, harness-to-provider mapping, or another changed setup branch can still pass because that branch is never selected by the recipe.
| const found = f.harness === 'claude' ? record.skills.includes('verify-open-pstack') | ||
| : (await Promise.all(record.skills.map(path => realpath(path).catch(() => '')))).includes(skill); | ||
| if (!found) throw new Error('skill-not-loaded:verify-open-pstack'); | ||
| if (!record.commands.some(c => c.includes('verify.sh') && c.includes('doctor --candidate'))) throw new Error('doctor-not-run'); |
There was a problem hiding this comment.
🔴 High · Mentioning a helper command counts as executing it
Command assertions use substring searches rather than establishing that the expected executable was invoked. The same pattern is used for project doctor, runner, and log.sh; a successful command that merely mentions the path, followed by manually written expected artifacts, can pass while the real helper remains broken.
| if (receipt.status !== 'complete') throw new Error(`receipt-status:${receipt.status}`); | ||
| if (receipt.parent !== harness || receipt.provider !== provider || receipt.model !== model || receipt.effort !== effort || receipt.mode !== 'read-only') throw new Error('receipt-route-mismatch'); | ||
| if (receipt.outputPath !== lane(f, 'output.md') || !(Date.parse(receipt.startedAt) >= record.started)) throw new Error('receipt-not-this-session'); | ||
| return { assertions: ['runner-ran', 'receipt-complete', `route:${route}`, await written(record, lane(f, 'output.md'))], files: [lane(f, 'receipt.json'), lane(f, 'output.md')] }; |
There was a problem hiding this comment.
🔴 High · Runner cases do not require skill loading
If Codex fails to resolve $pstack:poteto-mode but follows the prompt's explicit launcher command, a complete receipt and fresh output still pass. This assertion never checks record.skills, so direct CLI execution is accepted as proof of the required installed workflow.
|
Unfret waiver for head 5a996d8, accepted by Eric on 2026-10-04. Ticket
The two verdict-changing findings from head 241b1ba were fixed in 5a996d8: the automate-me contradiction, and the Codex setup leak. |
Merge Queue Status
This pull request spent 7 seconds in the queue, including 1 second running CI. Required conditions to merge
|
Bring in ericlitman/open-pstack main at d6c95c4: the repository verify skill runs the live gate headless with machine-checked recipes (ericlitman#112). No plugin files change, so 1.5.1-local.10 stays as installed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #112
What changed
verify-open-pstacknow runs the live gate headless, with no human prompts. An agent runsverify.sh run --pr N [--self-test] --output <dir>from a non-TTY shell.claude -pwith stream-json output, the candidate--plugin-dir, the installedpstack@open-pstackdisabled for the session, and--permission-mode dontAskwith a fixed tool list. Codex runscodex exec --jsonagainst the run-ownedCODEX_HOMEinstallation, withapproval_policy="never",--add-dirfor the fixture and session-only hook trust. Sessions run one at a time in each harness.features/recipes.ts: a fixture, a prompt, and an assertion that the trusted parent evaluates against the native session record. A pass needs the candidate skill loaded in the native record, exit 0, and a concrete fixture effect from this session. A model's claim that it worked never counts. Claude shows skill loads as the replayed slash command or aSkillcall. Codex shows them only in its session rollout, which the parent copies into the private evidence root.fix-ci,babysit,make-pr-easy-to-reviewandautomate-me.runner,setup,shipped-toolsandproject-skillhave their own recipes.assets:codexfails asunsupported-native-consumer. A selected feature with no recipe fails before any session starts.--runner-route. This repeatable option sets the routes the runner recipe dispatches, for examplecodex:gpt-6.1-sol@ultrafor feat(models): make GPT-6.1 Sol the Sol default and admit ultra (#102) #115.PASS <feature>step, operator-typed fields and the/usr/bin/scriptcapture are gone. Thesession()recorder streams stdout and stderr to private files and keeps them when a session fails.live-gateon the exact SHA, and no PR state changes.Scope decisions
shipped-toolsexercises onlylog.sh. No current PR changes the other shipped tools.setupfeature runs, the daily~/.claude/pstack-models.mdroutes every role to Opus athigh, for a few minutes. Restoration is byte-exact and runs before any publication. The operator-driven design had the same window.Design: Astra (
gpt-6-astra, high, read-only) reviewed the plan first. Apstack:pstack-opus-mediumsubagent built it in two commits: ef6cd9b, then fd1bbe3 for thebabysitoverride. I added 241b1ba. In two stub tests, CI's Linux runner gaveresult.mda timestamp just before the recorded session start, so the stub now waits 20 ms before it writes. Real sessions run for seconds.Unfret adjudication, head 241b1ba (20 findings)
Fixed in 5a996d8. Both are verdict-changing, and every full run hits them:
recipes.ts:114): the prompt asked for aSKILL.mdwrite while the rule forbade editing any skill, so any shared-path PR could fail its gate. The rule now forbids skill edits only outside the fixture folder.harness.ts:148): the Codexsetupcases left an all-Opus sheet in the run's ownCODEX_HOMEfor every later check. Setup features now run last. A new test fails without the reorder and passes with it.Not fixed: recipe depth. Each of these 16 findings says some recipe asserts too little, so a broken candidate could pass. All of them are true. Fixing them means a bespoke behavior check per skill and per failure branch, which is the edge-case work Eric ruled out on 2026-10-04. They need Eric's exact-head waiver:
log.sh--runner-routeis passedsh ci.shNot fixed: two Mediums.
CLAUDE_CONFIG_DIR: fails-loudly. The setup case fails with ENOENT. It never false-passes, and nothing in our runs sets the variable empty.Verification
Local gate on 5a996d8: all seven steps exit 0, and the verifier suite reports 102 pass, 0 fail.
Real smoke runs from this branch against candidate ce6e8c4. These ran the driver directly and published nothing. Each passed in Claude Code 2.1.289 and Codex CLI 0.160.0:
skill-invocation:bro: exit 0, skill loaded, andresult.mdwritten.project-skill: exit 0, skill loaded, doctor ran, and canonicaldoctor.jsonpass.skill-invocation:babysit: exit 0, skill loaded,result.mdwritten, andsum.mjsfixed.Not yet run live: the
runner,setupandshipped-toolsrecipes, and thefix-ci,make-pr-easy-to-reviewandautomate-meoverrides. #115's run will exercise them.Live evidence: an agent ran
verify.sh run --pr 137 --self-testfrom this PR's head 5a996d8, from a non-TTY shell with stdin at/dev/nulland no terminal. It exited 0.project-skillpassed its machine-checked assertions in Claude Code 2.1.289 and Codex CLI 0.160.0, and the verifier setlive-gate=successwith this evidence comment. No person took part in the run.🤖 Generated with Claude Code