Repository navigation
feat(verify): run only the live checks named for the PR's changed behavior (#138) - #139
Conversation
…avior (#138) 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
|
|
| async assert(record, f) { | ||
| const agent = record.tools.find(t => t.name === 'Agent' && t.input.subagent_type === 'pstack:poteto-agent'); | ||
| if (!agent) throw new Error('agent-not-dispatched:pstack:poteto-agent'); | ||
| // The child must answer from the preloaded skill, not by loading it. |
There was a problem hiding this comment.
Preload check misses shell reads
The child can read poteto-mode/SKILL.md with Bash, which this session allows. This assertion blocks Skill and one Read path, but not a shell read. A child could then name Laziness Protocol and pass without using the preload. The check needs to rule out that way of reading the skill.
| if (record.tools.some(t => t.parent === agent.id && (t.name === 'Skill' || t.name === 'Read' && String(t.input.file_path).endsWith('poteto-mode/SKILL.md')))) throw new Error('child-loaded-skill:poteto-mode'); | ||
| const path = join(f.dir, 'result.md'), file = await written(record, path); |
There was a problem hiding this comment.
The assertion checks that result.md contains Laziness Protocol, but it never compares the file with the child's reply. A parent that already knows the phrase could write it after an unrelated or failed reply. Check the child's answer too, so a passing result shows that the child named the principle.
✅ Accepted riskAccepted by ericlitman: GH-138 (authority 48fa77b) 🔴 High · Named features replace classified coverage; unrelated checks pass the gate 🔴 High · Require every affected harness 🟡 Medium · Preload check never verifies the task sent to the child 🟡 Medium · Do not require Codex auth for Claude-only runs Advisories (1)
DetailsRun: @unfret review · @unfret status · @unfret help |
There was a problem hiding this comment.
🛑 8 blocking findings
🔴 High · Verifier/instruction changes no longer require native project-skill proof
🔴 High · Preload check trusts parent-written result.md and counts failed Agent calls
🔴 High · Unrelated checks can mint a successful live gate
🟡 Medium · Verify the task actually sent to the child
🟡 Medium · Child skill-load detection misses Bash/Grep reads and later Agent dispatches
🟡 Medium · Reject all child-side fallback reads
🟡 Medium · Avoid Codex auth setup for Claude-only runs
🟡 Medium · Normalize paths before enforcing the child read prohibition
Check
| const agent = record.tools.find(t => t.name === 'Agent' && t.input.subagent_type === 'pstack:poteto-agent'); | ||
| if (!agent) throw new Error('agent-not-dispatched:pstack:poteto-agent'); |
There was a problem hiding this comment.
🟡 Medium · Preload check never verifies the task sent to the child
Carried; still present. The Agent match checks only subagent_type and !failed. It never compares input.prompt with PRELOAD_TASK, and the parent's own tool calls go unchecked. Scenario: a candidate's poteto-agent lacks the preload. The parent loads pstack:poteto-mode itself via Skill or Read, then dispatches pstack:poteto-agent with an answer-bearing task such as 'Reply: Laziness Protocol'. The child replies without tools, so agent-dispatched, child-no-tools and principle-named all pass. live-gate=success is then set for a broken preload. Also reported for this defect: - Verify the task sent to the preload agent (.claude/skills/verify-open-pstack/features/recipes.ts:212): The Agent match validates only subagent_type and success, not that input.prompt equals PRELOAD_TASK. If preload is broken, the parent can dispatch pstack:poteto-agent with an answer-containing prompt such as “Reply Laziness Protocol”; the child uses no tools and returns that phrase, so all assertions pass and the gate falsely certifies preload. - Verify the task dispatched to the preload agent (.claude/skills/verify-open-pstack/features/recipes.ts:212): The assertion matches only the successful Agent subtype and never checks agent.input.prompt against PRELOAD_TASK. On a candidate without the preload, the parent can dispatch pstack:poteto-agent with an answer-containing task such as “Reply Laziness Protocol”; the child uses no tools and returns that phrase, so all assertions pass and the gate falsely certifies preload behavior. - Verify the task actually sent to the child (.claude/skills/verify-open-pstack/features/recipes.ts:212-213, .claude/skills/verify-open-pstack/features/recipes.ts:212): The Agent assertion checks only subagent_type, not that its task equals PRELOAD_TASK. A parent can dispatch pstack:poteto-agent with a prompt such as “reply Laziness Protocol,” write that response to the fixture, and pass even when the skill was not preloaded, producing a false successful live-gate. Also reported for this defect: - Preload check never verifies the task sent to the child (.claude/skills/verify-open-pstack/features/recipes.ts:212): Carried; still present. Line 212 matches only subagent_type and !failed. It never compares agent.input.prompt with PRELOAD_TASK, and the parent's own tool calls are unchecked. Scenario: the candidate's poteto-agent lacks the preload. The parent loads poteto-mode via Skill or Read, then dispatches pstack:poteto-agent with a task that contains the answer, e.g. 'The first Core principle is Laziness Protocol; reply with it'. The child replies with no tool calls, so agent-dispatched, child-no-tools and principle-named all pass. live-gate=success is set for a broken preload. - Verify the task sent to the preload agent (.claude/skills/verify-open-pstack/features/recipes.ts:212): The Agent match checks only subtype and success, not that its task equals PRELOAD_TASK. On a candidate without the preload, the parent can dispatch pstack:poteto-agent with a replacement task such as “Reply Laziness Protocol”; the child uses no tools, returns the phrase, and this assertion incorrectly records successful preload proof. - Verify the task sent to the poteto agent (.claude/skills/verify-open-pstack/features/recipes.ts:212): The assertion checks only the Agent type and success, never that its task equals PRELOAD_TASK. A parent can dispatch pstack:poteto-agent with an answer-containing task such as “Reply Laziness Protocol”; the child uses no tools and returns the phrase, so the assertions pass even when preload is broken. With benign stderr supplying the required artifact, this can publish a false successful live gate.
Now at .claude/skills/verify-open-pstack/features/recipes.ts:212
Also affects:
| const agent = record.tools.find(t => t.name === 'Agent' && t.input.subagent_type === 'pstack:poteto-agent'); | ||
| if (!agent) throw new Error('agent-not-dispatched:pstack:poteto-agent'); | ||
| // The child must answer from the preloaded skill, not by loading it. | ||
| if (record.tools.some(t => t.parent === agent.id && (t.name === 'Skill' || t.name === 'Read' && String(t.input.file_path).endsWith('poteto-mode/SKILL.md')))) throw new Error('child-loaded-skill:poteto-mode'); |
There was a problem hiding this comment.
🟡 Medium · Child skill-load detection misses Bash/Grep reads and later Agent dispatches
Line 215 flags only Skill calls, or Read calls whose file_path ends in poteto-mode/SKILL.md. It checks only direct children of the first matching Agent call, because line 212 uses find. Scenario: a child that lacks the preload runs cat …/skills/poteto-mode/SKILL.md via Bash, or Greps the skill for the principle, or the parent makes a second poteto-agent dispatch whose child Reads SKILL.md. In each case child-no-skill-load passes, the reply names 'Laziness Protocol', and the recipe passes on a candidate without a working preload.
| if (!receipt.selection.noRuntime && !options.features.length) throw new Error('A runtime change requires at least one --feature <harness>:<feature>'); | ||
| // Only the named features run; classification gates runtime changes and unmapped paths. | ||
| receipt.selection.features = receipt.selection.noRuntime ? [] : options.features; |
There was a problem hiding this comment.
🔴 High · Verifier/instruction changes no longer require native project-skill proof
Classification still selects project-skill for changes to verifier files, AGENTS.md, CLAUDE.md and tests/skill-collision-repro.sh. After line 97 that selection is used only for the publisher-revision check. The only new gate (line 100) is options.features.length, and line 102 then discards the classified project-skill. The README invariant 'Changes to this verifier always select project-skill; they cannot bypass native proof' was deleted. Its replacement says --self-test is mandatory, but nothing visible enforces that; a replacement may exist outside the diff. Scenario: a PR edits AGENTS.md or scripts/verify.ts, and the verifier runs from the candidate head with --feature claude:skill-invocation:architect and no --self-test. No project-skill observation is required in either harness, yet live-gate=success. The unchanged verify.test.ts case 'verifier changes require the candidate publisher' now passes exactly this path. A change that breaks Codex discovery of .agents/skills/verify-open-pstack would merge. Also reported for this defect: - Preserve the mandatory verifier self-test (.claude/skills/verify-open-pstack/scripts/verify.ts:102): For a verifier-changing PR, classification identifies project-skill, but this assignment replaces it with arbitrary CLI features after only checking the publisher revision. With selfTest=false and --feature claude:skill-invocation:architect, the candidate-head run exercises only that Claude feature and can publish live-gate=success without invoking the changed verifier in either harness, bypassing the documented mandatory two-harness self-test.
Also affects:
Withdrawn in the latest review.| const agent = record.tools.find(t => t.name === 'Agent' && t.input.subagent_type === 'pstack:poteto-agent'); | ||
| if (!agent) throw new Error('agent-not-dispatched:pstack:poteto-agent'); | ||
| // The child must answer from the preloaded skill, not by loading it. | ||
| if (record.tools.some(t => t.parent === agent.id && (t.name === 'Skill' || t.name === 'Read' && String(t.input.file_path).endsWith('poteto-mode/SKILL.md')))) throw new Error('child-loaded-skill:poteto-mode'); |
There was a problem hiding this comment.
🟡 Medium · Reject all child-side fallback reads
The task requires answering without reading any file, but this predicate rejects only Skill and a Read whose path ends in poteto-mode/SKILL.md. A non-preloaded child can instead read plugins/pstack/skills/arena/SKILL.md—which also contains Laziness Protocol—or use Grep/Bash to read the poteto skill, then satisfy every assertion and falsely prove preload.
| // The child must answer from the preloaded skill, not by loading it. | ||
| if (record.tools.some(t => t.parent === agent.id && (t.name === 'Skill' || t.name === 'Read' && String(t.input.file_path).endsWith('poteto-mode/SKILL.md')))) throw new Error('child-loaded-skill:poteto-mode'); | ||
| const path = join(f.dir, 'result.md'), file = await written(record, path); | ||
| if (!(await readFile(path, 'utf8')).includes('Laziness Protocol')) throw new Error('principle-missing:Laziness Protocol'); |
There was a problem hiding this comment.
🔴 High · Preload check trusts parent-written result.md and counts failed Agent calls
The principle assertion reads result.md, which the parent model writes. It does not read the Agent call's tool_result in the stream. Also, record.tools (harness.ts:40-41) keeps failed tool_use blocks, unlike uses, so a denied or errored Agent call still satisfies the agent-dispatched check at line 212. Scenario: a candidate whose poteto-agent preload is broken. The child replies 'not preloaded', or the Agent call errors. The parent then calls Skill pstack:poteto-mode or Reads SKILL.md itself; parent calls are never checked. It writes 'Laziness Protocol' to result.md, all assertions pass, and live-gate=success is set for a broken preload. This contradicts SKILL.md's rule that a model's claim never counts. Also reported for this defect: - Verify the successful subagent reply, not an independent file (.claude/skills/verify-open-pstack/features/recipes.ts:212-217): The assertion treats any matching Agent tool use and an independently written file containing Laziness Protocol as proof, but record.tools contains no successful tool result to compare with that file and even includes failed calls. If the Agent invocation errors or the child replies that preload is absent, the parent can still write the expected phrase itself and all four assertions pass, falsely reporting a successful preload test. - Bind preload proof to a successful Agent result (.claude/skills/verify-open-pstack/scripts/harness.ts:40-41): The new tools list records every raw tool_use while dropping its tool_result status and content, unlike the existing filtered uses list. Consequently, an Agent call marked is_error—or a successful child returning the wrong answer—still counts as dispatched if the parent independently writes Laziness Protocol to result.md; the recipe then publishes success although no valid child response demonstrated preload.
Also affects:
Withdrawn in the latest review.| } | ||
| if (!receipt.selection.noRuntime && !options.features.length) throw new Error('A runtime change requires at least one --feature <harness>:<feature>'); | ||
| // Only the named features run; classification gates runtime changes and unmapped paths. | ||
| receipt.selection.features = receipt.selection.noRuntime ? [] : options.features; |
There was a problem hiding this comment.
🔴 High · Named features replace classified coverage; unrelated checks pass the gate
Carried; still present. Line 104 discards the classified features and substitutes the caller's names. Nothing checks that any named feature belongs to the classified set. Scenario: a PR edits plugins/pstack/skills/architect/SKILL.md and is run with only --feature claude:project-skill. Only Claude is installed and architect is never invoked. completeEvidence validates just the named set, the verifier posts 'PASSED — named features verified', and it sets live-gate=success. A logo.png change used to always fail closed, because assets:codex has no recipe. It now passes by naming any unrelated feature. The deleted test 'manifest changes retain shared coverage in both harnesses' pinned the old guard. This weakens the verifier's enforcement of the AGENTS.md rule that the changed behavior pass a live test. Also reported for this defect: - Require named checks to cover the classified change (.claude/skills/verify-open-pstack/scripts/verify.ts:104): This assignment replaces every classified feature with caller-supplied names without validating relevance. For example, an architect SKILL.md change can name only claude:project-skill and codex:project-skill; those observations satisfy completeEvidence, so the verifier publishes live-gate=success although architect was never exercised. This bypasses the mandatory live proof of the changed behavior. - Require named checks to cover the classified change (.claude/skills/verify-open-pstack/scripts/verify.ts:104): This assignment replaces the classified feature set with arbitrary caller-supplied names without checking their relevance. For example, an architect SKILL.md change can name only claude:project-skill and codex:project-skill; those unrelated checks can pass completeEvidence and publish live-gate=success even though architect was never exercised. This bypasses the required live test of the changed behavior. - Require named checks to cover the classified change (.claude/skills/verify-open-pstack/scripts/verify.ts:102, .claude/skills/verify-open-pstack/scripts/verify.ts:104): This assignment drops every classified plugin feature except project-skill and accepts arbitrary caller-supplied features instead. For example, a PR changing plugins/pstack/skills/architect/SKILL.md can run only --feature claude:project-skill; completeEvidence then validates that rewritten set and publishes live-gate=success without exercising architect or any Codex surface affected by the change. Also reported for this defect: - Named features replace classified coverage; unrelated checks pass the gate (.claude/skills/verify-open-pstack/scripts/verify.ts:104): Carried; still present. Line 104 replaces the classified features with caller-supplied names, adding project-skill only for verifier changes. Nothing checks that the names cover the classified features or the affected harnesses. Scenario: a PR edits plugins/pstack/skills/architect/SKILL.md, classified as skill-invocation:architect in both harnesses. It is run from main with only --feature claude:project-skill. Only Claude is installed and architect is never exercised in either harness. The verifier still posts 'PASSED — named features verified' and sets live-gate=success, which Mergify accepts. This weakens the verifier's enforcement of the AGENTS.md mandate that the changed behavior pass a live test in every affected harness. The deleted test 'manifest changes retain shared coverage in both harnesses' previously pinned that behavior. - Reject unrelated features as changed-behavior proof (.claude/skills/verify-open-pstack/scripts/verify.ts:104): This assignment discards the classified features without checking that the caller's features exercise the changed behavior. For example, an architect SKILL.md change can name only claude:project-skill and codex:project-skill; both observations can pass and publish live-gate=success although architect was never invoked. This violates the required exact-candidate test of the changed behavior. - Unrelated checks can mint a successful live gate (.claude/skills/verify-open-pstack/scripts/verify.ts:102): The classified feature set is unconditionally replaced by caller-supplied features without validating that they cover the classified paths or affected harnesses. For example, a PR changing plugins/pstack/skills/architect/SKILL.md can run only --feature claude:project-skill; that unrelated recipe can pass and publish live-gate=success even though the changed architect behavior and the Codex surface were never exercised, bypassing the mandatory exact-head gate. Also reported for this defect: - Named features replace classification; live-gate passes without affected-harness coverage (.claude/skills/verify-open-pstack/scripts/verify.ts:102): Line 102 overwrites the classified features with options.features, and nothing reconciles the two. As a result, requiredHarnesses and completeEvidence only check what was named. Scenario: a PR edits plugins/pstack/skills/architect/SKILL.md, which the ownership table maps to both harnesses. Run from main with --feature claude:project-skill (or just claude:skill-invocation:architect): only Claude is installed, and the changed skill is never exercised in Codex, or not at all. The verifier still posts 'PASSED — named features verified' and sets live-gate=success, which Mergify accepts. Before this diff, success required every classified feature in both harnesses; the deleted test 'manifest changes retain shared coverage in both harnesses' is evidence. This weakens the verifier's enforcement of the AGENTS.md mandate that the changed behavior pass a live test in every affected harness.
Now at .claude/skills/verify-open-pstack/scripts/verify.ts:104
Also affects:
| const named = receipt.selection.features.filter(f => f.startsWith(`${harness}:`)).map(f => f.slice(harness.length + 1)); | ||
| return [...new Set([...named, ...(receipt.selfTest ? ['project-skill'] : [])])]; |
There was a problem hiding this comment.
🟡 Medium · Do not require Codex auth for Claude-only runs
The new filtering permits a Claude-only selection, but MacDriver.prepare still invokes linkCodexAuth for every selected installation before its Codex-only branch. An operator with valid Claude authentication but no file-based Codex auth.json therefore gets a setup failure before the Claude feature runs, despite Codex being neither installed nor exercised. Also reported for this defect: - Claude-only runs still require Codex file auth (.claude/skills/verify-open-pstack/scripts/core.ts:62): Carried; still present. Line 62 enables Claude-only selection, e.g. --feature claude:agent-preload:poteto-agent. The unchanged MacDriver.prepare still calls linkCodexAuth(home) for every selected harness, before its harness === 'codex' branch. Scenario: an operator has a valid Claude login but no ${CODEX_HOME:-~/.codex}/auth.json. prepare throws a Codex-auth error, and the run publishes FAILED and live-gate=failure before the Claude-only feature runs, even though Codex is neither installed nor exercised. - Do not require Codex auth for Claude-only runs (.claude/skills/verify-open-pstack/scripts/core.ts:62-63): The new prefix filtering permits a Claude-only selection, but MacDriver.prepare still invokes linkCodexAuth for every selected harness before its Codex-specific branch. An operator with valid Claude authentication but no file-based Codex auth.json therefore gets a setup failure before claude:agent-preload:poteto-agent can run, even though Codex was not selected. - Do not require Codex auth for Claude-only features (.claude/skills/verify-open-pstack/scripts/core.ts:62, .claude/skills/verify-open-pstack/scripts/core.ts:62-63): This per-harness filtering lets a claude:... feature select only Claude, but MacDriver.prepare still calls linkCodexAuth for every selected installation before its Codex-only branch. An operator with valid Claude authentication but no file-based Codex auth.json therefore gets a setup failure before the advertised Claude-only session starts. Also reported for this defect: - Claude-only runs still require Codex file auth (.claude/skills/verify-open-pstack/scripts/core.ts:62): Carried; still present. Line 62 now lets a run select only Claude, e.g. --feature claude:agent-preload:poteto-agent. Unchanged MacDriver.prepare still calls linkCodexAuth(home) for every installed harness before its harness === 'codex' branch. Scenario: an operator has a valid Claude login but no file-based ${CODEX_HOME:-~/.codex}/auth.json. prepare throws a Codex-auth error and the run publishes live-gate=failure before the Claude-only feature runs. This contradicts the new contract that a harness with no named feature is not installed or run. - Skip Codex auth setup for Claude-only runs (.claude/skills/verify-open-pstack/scripts/core.ts:62): This harness-prefixed selection enables a Claude-only run, but MacDriver.prepare still calls linkCodexAuth for every selected installation, including Claude. An operator with valid Claude authentication but no file-based Codex auth.json therefore gets a Codex-auth error before the advertised Claude-only feature starts. - Avoid Codex auth setup for Claude-only runs (.claude/skills/verify-open-pstack/scripts/core.ts:62-63): The new per-harness filtering makes a feature such as claude:agent-preload:poteto-agent select only Claude, but MacDriver.prepare still unconditionally calls linkCodexAuth for every selected installation. An operator with a valid Claude login but no file-based Codex auth.json therefore gets a Codex-auth failure before the advertised Claude-only feature can run, even though Codex is neither installed nor exercised.
Now at .claude/skills/verify-open-pstack/scripts/core.ts:62
Also affects:
| const agent = record.tools.find(t => t.name === 'Agent' && t.input.subagent_type === 'pstack:poteto-agent'); | ||
| if (!agent) throw new Error('agent-not-dispatched:pstack:poteto-agent'); | ||
| // The child must answer from the preloaded skill, not by loading it. | ||
| if (record.tools.some(t => t.parent === agent.id && (t.name === 'Skill' || t.name === 'Read' && String(t.input.file_path).endsWith('poteto-mode/SKILL.md')))) throw new Error('child-loaded-skill:poteto-mode'); |
There was a problem hiding this comment.
🟡 Medium · Normalize paths before enforcing the child read prohibition
The no-load check compares the raw Read.file_path with a suffix. A child can read the same skill through a path such as .../poteto-mode/./SKILL.md; the filesystem resolves it to the prohibited file, but endsWith('poteto-mode/SKILL.md') is false. The child can therefore obtain Laziness Protocol from disk while the recipe records child-no-skill-load and passes.
…d reply (#138) Unfret on bb96615: - Changes that classify as project-skill (verifier, AGENTS.md, CLAUDE.md, skill-collision-repro.sh) again always run project-skill in both harnesses, whatever --feature names. - The preload check reads the reply from the poteto-agent call's own result, rejects a failed call, and rejects any child tool call, instead of trusting a parent-written result.md and a Skill/Read-only filter. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Live evidence: Open Pstack
|
There was a problem hiding this comment.
🛑 5 blocking findings
🔴 High · Require named checks to cover the classified change
🔴 High · Require every affected harness
🔴 High · agent-preload has no artifact, so completeEvidence always rejects it
🟡 Medium · Do not require Codex auth for Claude-only features
🟡 Medium · Verify the task actually sent to the child
Check
| const features = [...new Set([...receipt.selection.features, ...(receipt.selfTest ? ['project-skill'] : [])])]; | ||
| return harness ? features.filter(feature => feature !== 'assets:codex' || harness === 'codex') : features; | ||
| export function requiredFeatures(receipt: Receipt, harness: Harness): string[] { | ||
| const named = receipt.selection.features.filter(f => f.startsWith(`${harness}:`)).map(f => f.slice(harness.length + 1)); |
There was a problem hiding this comment.
🔴 High · Require every affected harness
Features are now selected solely by their harness prefix, with no check that all harnesses affected by the classified paths are represented. A shared architect skill change can name only claude:skill-invocation:architect; Codex then has no required features, is not installed, and completeEvidence still accepts the run. The live gate therefore succeeds without testing the changed behavior in every affected harness. Also reported for this defect: - Affected harnesses are no longer required (.claude/skills/verify-open-pstack/scripts/core.ts:62): Carried; still present. requiredFeatures now takes each harness's requirements only from named prefixes. requiredHarnesses and completeEvidence therefore ignore which harnesses the classified paths affect. Scenario: a shared change such as architect/SKILL.md or a plugin manifest is run with only the relevant --feature claude:skill-invocation:architect. Codex is never installed or exercised, yet live-gate=success. This is separate from the unrelated-feature defect: even relevant named features leave Codex uncovered, contrary to the AGENTS.md requirement of a live test 'in every affected harness'. - Require every affected harness (.claude/skills/verify-open-pstack/scripts/core.ts:62): Required harnesses now derive solely from feature prefixes. For a shared architect change, naming the relevant claude:skill-invocation:architect check leaves Codex with no required feature, installation, or observation, yet the verifier can publish success. The changed behavior therefore need not pass in every affected harness. - Require every affected harness (.claude/skills/verify-open-pstack/scripts/core.ts:62-63): Harness requirements are now derived solely from feature prefixes. For a shared architect change, naming only claude:skill-invocation:architect makes requiredHarnesses omit Codex, and completeEvidence accepts the Claude-only run. The live gate can therefore succeed without testing the changed behavior in every affected harness.
Now at .claude/skills/verify-open-pstack/scripts/core.ts:62
Also affects:
| if (record.tools.some(t => t.parent === agent.id)) throw new Error('child-used-tools'); | ||
| // Read the child's own reply, not anything the parent wrote. | ||
| if (!agent.result?.includes('Laziness Protocol')) throw new Error('principle-missing:Laziness Protocol'); | ||
| return { assertions: ['agent-dispatched', 'child-no-tools', 'principle-named'], files: [] }; |
There was a problem hiding this comment.
🔴 High · agent-preload has no artifact, so completeEvidence always rejects it
New at this head. The case returns files: []. exercise turns only returned files into artifacts: the skill-case test expects exactly one invoke.result.md artifact. completeEvidence throws on !o.artifacts.length, and core.test's damage case artifacts = [] confirms it. Scenario: verify.sh run --pr N --feature claude:agent-preload:poteto-agent on a candidate whose preload works. All four assertions pass inside exercise, then completeEvidence throws Incomplete evidence: claude/agent-preload:poteto-agent. The verifier posts FAILED and sets live-gate=failure. The new feature can never produce a passing gate. The unit test and the PR smoke both call MacDriver.exercise directly and never reach completeEvidence. features/README.md still describes the removed result.md. Also reported for this defect: - Provide an artifact for the preload observation (.claude/skills/verify-open-pstack/features/recipes.ts:218): The preload case returns files: [], so the resulting observation has an empty artifacts array. completeEvidence rejects every such observation as incomplete. Consequently, even a successful --feature claude:agent-preload:poteto-agent exercise cannot complete the advertised live gate and ends with a failure status. - Retain an artifact for the preload observation (.claude/skills/verify-open-pstack/features/recipes.ts:218): This case returns no files. When a successful Claude session has empty stderr, MacDriver.exercise retains stdout only as the transcript and creates an observation with artifacts: []; completeEvidence then throws Incomplete evidence: claude/agent-preload:poteto-agent. Thus the new feature completes all assertions but cannot publish a successful live gate on the normal empty-stderr path.
…fact (#138) Unfret on 1d00c88: after the check moved to the child's own reply it returned no artifact, and completeEvidence rejects an observation with none, so every agent-preload run would fail at publication. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Live evidence: Open Pstack
|
There was a problem hiding this comment.
🛑 4 blocking findings
🔴 High · Named features replace classified coverage; unrelated checks pass the gate
🔴 High · Require every affected harness
🟡 Medium · Preload check never verifies the task sent to the child
🟡 Medium · Do not require Codex auth for Claude-only runs
Check
|
Unfret waiver for head b7a32ca. Ticket
The verdict-changing findings from bb96615 and 1d00c88 were fixed in 1d00c88 and b7a32ca: the dropped project-skill proof, the parent-written reply, the child read gaps, and the missing artifact. |
Merge Queue Status
This pull request spent 8 seconds in the queue, including 1 second running CI. Required conditions to merge
|
Closes #138
What changed
verify.sh runnow runs only the live checks named for the PR's changed behavior. Eric decided on 2026-10-04 that no PR runs the 58-feature sweep again. #115's final sweep took about 3 hours. Its Claude half cost about $28 in Claude spend on the earlier measured attempt, and the Codex half cost about the same again.--feature.runtakes repeatable--feature <harness>:<feature>. A runtime change with no--featurefails right after path classification, before any install or GitHub write. The error names the flag. The named features replace the classified ones in the receipt, so the receipt and the evidence comment list only what ran. Classification still runs and still fails closed on unmapped paths. An all-nonRuntime PR still launches nothing.--self-teststill addsproject-skillin both harnesses.agent-preload:poteto-agent, Claude only. Aclaude -pparent dispatchespstack:poteto-agentwith the Agent tool and asks for the first Core principle of the preloaded poteto-mode skill, withoutSkillor file reads. The check asserts three things:pstack:poteto-agent;tool_resultin the stream, namesLaziness Protocol.project-skill(the verifier, AGENTS.md, CLAUDE.md andtests/skill-collision-repro.sh) still runproject-skillin both harnesses, whatever--featurenames.SKILL.mdandfeatures/README.mdsay the agent picks the features for the PR's changed behavior and lists them in the PR body, where review sees them. The comment's result line reads "named features verified". The status description reads "Named features passed".Built by a
pstack:pstack-opus-mediumsubagent from the decided design in #138, with no separate design pass, to keep cost down.Unfret adjudication, head bb96615 (8 findings)
Fixed in 1d00c88:
project-skillnow always runs in both harnesses. The test covering this fails without the fix.tool_resultand requires that the call succeeded.Not fixed:
Unfret adjudication, head 1d00c88 (5 findings)
Fixed in b7a32ca:
completeEvidence(core.ts:81) rejects an observation with no artifacts, so fix(pstack): preload poteto-mode in Claude poteto-agent (#49) #114's run would fail at publication. The verifier now writes the child's reply tochild-reply.txtand keeps that file as the artifact. The test asserts the artifact path.Covered by Eric's 2026-10-04 approval of the named-checks design (exact-head waiver):
Not material:
Verification
Local gate on b7a32ca: all seven steps exit 0, and the verifier suite reports 107 pass, 0 fail.
Real smoke of
agent-preload:poteto-agentwith Claude Code 2.1.289, run through the driver directly, with nothing published:pstack:poteto-agent, the child loaded no skill,result.mdwas written, and the reply named Laziness Protocol. Only Claude was installed.principle-missing:Laziness Protocol. The child said poteto-mode was not preloaded. So the check tells the two apart.Live evidence: an agent ran
verify.sh run --pr 139 --self-test --feature claude:project-skillfrom this PR's head b7a32ca, from a non-TTY shell. It exited 0.project-skillpassed in Claude Code 2.1.289 and Codex CLI 0.160.0, and the verifier setlive-gate=successwith this evidence comment.🤖 Generated with Claude Code