Skip to content

fix(verification): give confirm's Observation check entry an exact form - #16354

Closed
melodic-automation-lanes[bot] wants to merge 2 commits into
mainfrom
work-resolve-issue/issue-15776-43727769501-1
Closed

melodic-automation-lanes[bot] wants to merge 2 commits into
mainfrom
work-resolve-issue/issue-15776-43727769501-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 owner's recorded decision on #15776 (2026-11-15) found the new eval case confirm-failed-check-observation-first met on opus but not on sonnet: its regex grader passed in 0 of 3 sonnet runs on both sides, while the llm grader passed 3 of 3 on both. Following the decision to rework the skill text or the case, SKILL.md Stage 2 (line 195) now gives the exact form of the Observation check: entry: one per failed check, naming the suspect, what makes it suspect, the second route and its result, and ruled in or out. It also says where each report mode carries the entry. Every run took one turn, and SKILL.md is the file a one-turn run reads, so the form must sit there and not only in context/outcome.md (judgment from the decision comment's 'Every run took one turn'; no run transcripts were available here). The regex grader also now accepts behaviorally equivalent wording that a report following that form can produce ('pre-dates', 'before the 14:09 rebuild', 'prior to the rebuild', a time followed by 'rebuild'). It still requires the 'Observation check' label, which the before text lacks, so it still separates the versions. Choice and basis: the decision comment's result table and registered rule. The rerun under a new registration and the non-inferiority compare are left open, because eval batches run in the owner's local eval-runner session. Open this PR with the do-not-merge label until that compare record lands, per the issue.

Remaining work

  • Rerun confirm-failed-check-observation-first before and after under a new registration on sonnet and opus, and record whether sonnet now shows the behavior change.
  • Run the non-inferiority two-version compare of the confirm skill's existing eval cases and record it; the PR body names this as the dogfooding step.

Not verified

  • Eval rerun under a new registration: does confirm-failed-check-observation-first show the behavior change on sonnet with the reworked text? Eval batches run in the owner's one local eval-runner session in the main checkout, not in this lane.
  • Non-inferiority compare of the skill's existing cases (opus and sonnet, three runs per side, --case selection, --max-cost-usd ceiling). Same reason: local eval-runner session only.
  • The PR should carry the do-not-merge label until the compare record lands (issue body); the lane opens the PR, so this run could not apply the label.
  • evals-quality and eval-cases checks (CI only): check-evals-quality takes an evals.json set, not this case.yaml format, and validate-cases.py needs a Python interpreter the lane does not allow; left to the PR's CI.
  • The regex was checked by hand tracing only; no regex engine ran against the samples here. The PR's eval-cases CI check validates the samples.
  • Tidy pass 5 (ai-slop:audit fix): detect.sh could not run, because lane Bash allows only the named wrappers. The rubric was applied by reading the changed lines, and the semantic-diff subagent was not dispatched because nothing was rewritten.
  • review-venue.txt was absent, so review ran locally in one fresh-context subagent as the CI lane stand-in.
  • Untracked files in the checkout root that this run did not create (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were left untouched; they look like runner environment files and should not be part of the patch.

Fix

  • plugins/verification/skills/confirm/SKILL.md: Stage 2 'A failed check: suspect the observation first' now gives the literal form of the Observation check entry (suspect kind, what makes it suspect, second route and result, ruled in or out), one per failed check, above the verdict; an Assessment…
  • plugins/verification/evals/confirm-failed-check-observation-first/case.yaml: names-observation-check regex also accepts 'pre-dates', '(before|prior to) (the) [HH:MM] rebuild', and 'HH:MM ... rebuild' within 40 characters, still anchored on the 'Observation check' label on the same line.
  • plugins/verification/evals/confirm-failed-check-observation-first/samples/names-observation-check.json: three pass samples (bold label with 'before the 14:09 rebuild', table row with 'pre-dates', timestamp comparison) and one fail sample ('stale' only on the line after the label).
  • .changes/verification/work-resolve-issue-issue-15776-43727769501-1-646c2736.md: patch changelog fragment for the verification plugin describing both changes.

Verification

The runner ran each check from the base copy against 9579cc9:

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

The run reports:

  • check-changelog-fragments: all 59 fragments valid (run after the final edit)
  • check-changed-skills: confirm PASS, 0 errors, 3 pre-existing size warnings (description length, body lines, token count)
  • check-affected: 14 passed, 7 skipped (typos not installed; checks that run the checked tree's own code), over 4 changed files
  • Fresh-context review subagent over the whole diff: traced every regex sample by hand (all pass samples match, all fail samples miss). It found the SKILL.md form conflicted with the fix report's Evidence-row shape, dropped the ruled-in/out result and covered only one failed check; that the fragment…
  • Tidy (code-tidying:tidy-diff) over the changed hunks: passes 1-4 found nothing to change; pass 5 rubric read by hand, nothing to fix
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43727769501

Left out: the items under Not verified.

Related

#15776

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #16354

I found no security issues in this change. This lane already reviewed an earlier head (9579cc96), so this pass reported only CRITICAL and IMPORTANT findings. It found none at any severity.

I read every hunk of all 4 changed files in the full diff:

  • .changes/verification/work-resolve-issue-issue-15776-43727769501-1-646c2736.md: a new changelog fragment. It is prose only.
  • plugins/verification/evals/confirm-failed-check-observation-first/case.yaml: widens the names-observation-check regex grader.
    • The grader only scores the last_message of an eval run.
    • The new alternatives are bounded and sit on the same line as the label, for example \d{1,2}:\d{2}[^\n]{0,40}rebuild, so they add no backtracking risk worth reporting.
    • Nothing flows from the grader into a shell, a path, a token or a lane that holds credentials.
  • plugins/verification/evals/confirm-failed-check-observation-first/samples/names-observation-check.json: adds grader samples. It is data only.
  • plugins/verification/skills/confirm/SKILL.md: changes the Stage 2 paragraph "A failed check: suspect the observation first". I read it under the instruction-surface lens:
    • No rule is deleted, narrowed or softened.
    • These rules stay: observe again by a second route, a suspect check with no second route proves nothing, and the verdict is then NOT VERIFIED.
    • The edit swaps the old one-sentence description of the Observation check: line for an exact form. It also says where each report mode carries that entry and what to write when no check failed.

Scope checks:

  • No changed file matches a trusted-path glob.
  • The diff touches no trust control, token request, kill switch, merge hold or plugin manifest, so there are no manifest lines.

PR context: it holds no text telling the lane to pass the PR, skip a check, drop a finding or post elsewhere. Its request to open the PR with the do-not-merge label is a process note, not a directive to this lane.

Spend: the eval reruns the PR body describes would use prepaid API credit or subscription usage in the owner's local eval-runner session. That is not a hold.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 9579cc96ed07d4e376776ac27c83c8ed35e3c035; the summary is in this lane's pull request comment.

claude-lane: claude-review

6. **Report + verdict**. Emit the outcome report (the proof-level line, the worker line, the proof boxes under `strict`, intent-match table, mechanical results with every skip named and its reason, E2E + UI-evidence tables when triggered, evidence table, measurements when applicable, and the lessons the run learned, each with its scope and route in the Lessons table) and a `CONFIRMED` / `NEEDS WORK` / `NOT VERIFIED` verdict. Report template and verdict criteria in [context/outcome.md](context/outcome.md). The report also states the effort level this run used: `${CLAUDE_EFFORT}`. The skill pins `effort: high`, a verdict lane's level, and no higher; an environment variable or an effort cap can still put the run at another level, which is why the report states it (pointer: the `effort` field in <https://code.claude.com/docs/en/skills#frontmatter-reference> and the `CLAUDE_EFFORT` row in <https://code.claude.com/docs/en/skills#available-string-substitutions>). We pin the model-config row the pointer here names, and the fresh-context verifier below is raised to the model that produced the work whenever that model is known and stronger than this session's (see Independence of the verdict; pointer: the `high` row of <https://code.claude.com/docs/en/model-config#choose-an-effort-level> and the advisor capability rule in <https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#model-compatibility>; recheck trigger: a Claude model release after Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5).

**A failed check: suspect the observation first.** When a Stage 2 check fails or contradicts the diff, suspect how you observed the result before you suspect the system: the probe, the driver, the capture or the environment (a stale build or artifact, a cached page, the wrong port or instance, a log read before the write landed, a stub still in place). Observe again by a second route. Only a failure that survives the second observation counts against the change. When the observation is suspect and no second route can run here, the check proves nothing either way: a criterion only it could prove stays unproven, which makes the verdict `NOT VERIFIED`, not `NEEDS WORK`. The report's `Observation check:` line names the observation as the first suspect and what the run did to rule it in or out.
**A failed check: suspect the observation first.** When a Stage 2 check fails or contradicts the diff, suspect how you observed the result before you suspect the system: the probe, the driver, the capture or the environment (a stale build or artifact, a cached page, the wrong port or instance, a log read before the write landed, a stub still in place). Observe again by a second route. Only a failure that survives the second observation counts against the change. When the observation is suspect and no second route can run here, the check proves nothing either way: a criterion only it could prove stays unproven, which makes the verdict `NOT VERIFIED`, not `NEEDS WORK`. Write the result above the verdict as the report's `Observation check:` entry, one per failed check, in this form: `Observation check: <probe | driver | capture | environment> suspected first: <what in the evidence makes it suspect>; <the second route and what it showed, or that none can run here>; ruled <in | out>`. The outcome and refactor reports carry it as an Assessment line, the fix report as its Evidence row. With no failed check, the entry says no check failed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fixed form has no slot for the undecided case this paragraph describes. It ends in ruled <in | out>, but two sentences earlier the paragraph defines a case where the observation is suspect and no second route can run here, so "the check proves nothing either way" and the verdict is NOT VERIFIED.

In that case the run has not settled whether the observation was at fault. The form still makes it write ruled in or ruled out. The fix report row this text points to already has a third value: context/fix.md:97 gives Status RULED OUT/RULED IN/NOT VERIFIED/N/A.

How it shows: take a failed check where the capture's timestamp is ambiguous and no re-capture can run. Following SKILL.md literally, the outcome or refactor report must claim a ruling it never made, while a fix report for the same situation writes NOT VERIFIED. The one-turn runs this rewrite targets read only SKILL.md, so they get only the two-way form.

Suggested fix: make the tail ruled <in | out | neither: no second route> (or not verified), so it matches the fix report's Status values and the NOT VERIFIED rule above.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed b78965ece09ac4088b1f380091680821aa7aeccd: read 4 of 4 changed file(s); 1 finding(s), 0 as inline comments.

Code review: PR #16354, blocking-only re-review at b78965e

This review reports blocking findings only. This lane already reviewed an earlier head (9579cc9), and this head merges main into the branch. The PR's own changes in all four files match what was reviewed at 9579cc9.

I read every hunk of all four changed files. I also read the head versions of case.yaml and samples/names-observation-check.json.

What I checked

  • Regex against every sample. I traced each sample by hand; I did not run a regex engine.
    • All 9 pass samples match. The three new ones match through before the 14:09 rebuild, pre-dates, and 14:02, rebuild.
    • All 10 fail samples miss, the new one included: its stale comes after a \n that is not followed by a bullet, so the pattern can't cross to it.
    • The new \d{1,2}:\d{2}[^\n]{0,40}rebuild alternative doesn't make the existing timestamp fail sample (- The file time is 14:02. / - The rebuild finished at 14:09.) match. Each time sits on its own line, and the only rebuild comes before a time, not after one.
    • The pattern still needs the Observation check label, so a reply written from the before text still fails.
  • Changelog fragment. bump: patch fits a change to skill wording and a grader, and the fragment's text describes what the regex now accepts.

Findings

Not verified here

  • The eval rerun and the non-inferiority compare are open items the author listed; I did not run them.
  • The author's results for check-changelog-fragments and check-changed-skills are their own claims; I did not re-run them.

Closing issue: none. The PR says Refs: #15776 but closes no issue, so there were no acceptance criteria to check.

Embedded text: the PR body asks for a do-not-merge label until the compare record lands. That is the author's process note; this lane does not act on it.

Verifier dropped 0 of 0 candidates.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pr-verify verifier failed head 9579cc96ed07d4e376776ac27c83c8ed35e3c035. What it wrote, as data:

Summary: Refs #15776 (partial delivery). The PR body names the part it delivers (a rework of the
  skill text and the eval case's regex grader) and lists the remaining work, so it meets the refs
  form. The problem is that it was built from the owner's first recorded decision and ignores the
  second one. That second comment is trusted spec text. It says the rework was the grader only, done
  in #16344, which lets the match carry across the label's own bullet lines. It says the skill text,
  prompt and llm grader stayed unchanged, and that the new case now shows the behavior change on
  both sonnet and opus. All that remains per that comment is the non-inferiority compare of the 42
  existing cases. This diff works against that record in three ways. It changes SKILL.md Stage 2, so
  the measured "met" result no longer applies to the text that would merge. It rewrites the same
  regex line as #16344 but keeps it to one line. It adds a fail sample saying the reason must not
  count when it sits on the line after the label, which is the opposite of the owner's reworked
  grader. The CI jobs on the judged head all succeeded and Test Node was skipped (run 43728923899),
  but that does not settle the conflict with the spec. The capture was blocked (proxy), which is no
  evidence either way. One more item: the PR body says the do-not-merge label is still needed and
  was not applied.
- PR body: change 'Remaining work' to match the spec's current state. Per the owner's second
  decision comment, the rerun of the new case is already recorded as met and only the
  non-inferiority compare of the existing cases is left.
- .changes/verification/work-resolve-issue-issue-15776-43727769501-1-646c2736.md: update the
  fragment to describe only the changes that remain after the rework above.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pr-verify verifier failed head 9579cc96ed07d4e376776ac27c83c8ed35e3c035. What it wrote about this file, as data:

- plugins/verification/evals/confirm-failed-check-observation-first/case.yaml:6: rebase on #16344's
  grader (which may continue across the label's bullet lines) instead of replacing it with a
  different single-line pattern. The owner's second decision on #15776 records #16344 as the rework
  and the case as met on both models with it.
- plugins/verification/evals/confirm-failed-check-observation-first/case.yaml:6: the new alternative
  '\d{1,2}:\d{2}[^\n]{0,40}rebuild' matches a time near 'rebuild' with no staleness claim (for
  example 'ruled out, the 14:09 rebuild was fresh'), which loosens the grader. Remove it, or require
  a staleness word, and add a fail sample for that case.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pr-verify verifier failed head 9579cc96ed07d4e376776ac27c83c8ed35e3c035. What it wrote about this file, as data:

-
  plugins/verification/evals/confirm-failed-check-observation-first/samples/names-observation-check.json:30:
  remove the new fail sample (label line, then 'The screenshot is stale.' on the next line). It
  requires behavior opposite to the owner's reworked grader, which accepts the reason on the label's
  following lines.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pr-verify verifier failed head 9579cc96ed07d4e376776ac27c83c8ed35e3c035. What it wrote about this file, as data:

- plugins/verification/skills/confirm/SKILL.md:195: drop this skill-text change, or justify it
  against the spec. The owner's recorded rework kept the skill text unchanged, and the measured
  behavior change was taken on that text, so changing it voids the recorded result and needs a new
  registration the spec does not ask for.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/resolve-conflicts
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43729107155

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43729298333

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

Lane-Activity: pr-unblock/resolve-conflicts
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-conflict-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed b78965e
Run 43729107155

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none recorded
Run 43729298333

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none recorded
Run 43729298333

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 15, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the pull request has an unresolved review thread the lane does not take (a reviewer it does not act on, a review of an older head, or a thread it already answered), so no lane resolves it and a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=16354 -f activity=address-feedback

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 43730926775

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

a pr-unblock lane stopped its head (pr-unblock/address-feedback is failure), which clears when the
  lane runs again

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 15, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Superseded by #16344, which merged; closing this one.

The review thread on SKILL.md:195 (the fixed form has no slot for the undecided case) and the verifier's notes fall away with the change.

@github-actions
github-actions Bot deleted the work-resolve-issue/issue-15776-43727769501-1 branch November 16, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge Hard merge gate: do not merge while applied. needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant