Skip to content

feat(testing): check the shared premise after a second failed fix - #15934

Merged
melodic-automation-lanes[bot] merged 4 commits into
mainfrom
work-resolve-issue/issue-15836-43413783650-1
Nov 13, 2026
Merged

melodic-automation-lanes[bot] merged 4 commits into
mainfrom
work-resolve-issue/issue-15836-43413783650-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #15836

Summary

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

The /testing:diagnose loop now runs a premise check after a second failed fix, before a third fix and before its replan step. It goes through /debugging:debug by slash reference when that skill resolves, and otherwise reduces what the two fixes share to one checkable claim and tests it with the failing test. The check is advisory and a skip must name both claims. On a no-progress stop, the fix-until-green workflow now returns stalledRootCauses: the root causes the fixers acted on in the two stalled rounds. The diagnose skill's no-progress row reports the claim they share as the premise the run did not test. A new eval case, dg-shared-premise-third-fix, covers the two-failed-fixes path. Design choice: the workflow returns the raw root causes and the main thread reduces them to one claim, so the stop adds no extra agent dispatch; the rule itself stays in the debug skill per the issue's decision. Dogfooding step for the PR body: this repository loads its own plugins from the local clone (README, 'Use this marketplace'), so after merge the change applies at the next session or /reload-plugins. To dogfood it, run /testing:diagnose loop on a failure where two fixes sharing one premise have failed, and confirm the premise is stated and tested before a third fix.

Not verified

  • plugins/testing/tests/fix-until-green.test.mjs was not executed: this lane may run no interpreter (node). Left to the PR's CI.
  • Done-when item 3's two-version non-inferiority compare (opus and sonnet aliases, three runs per side, --case filter, --max-cost-usd ceiling) was not run: it needs the one local eval-runner session. Per the issue, the PR should carry do-not-merge until that record lands. This lane cannot add the…
  • The new eval case was not run, and the CI-only eval-cases validator (validate-cases.py) and evals-quality check were not run here; check-evals-quality only takes evals.json sets, and this case is file-based. Left to the PR's CI.
  • Tidy pass 5 (ai-slop:audit fix) was skipped because its detect.sh and digest-guard.sh scripts are not among the wrappers this lane may run; the listed markdown lines were read by hand for em dashes, AI vocabulary and stock phrases, and none were found. Passes 1-4 ran and made no edits.
  • No build or test command ran (verify step skipped): the lane allows no interpreter. Lint-type checks ran through the repository check wrappers.
  • The repository has no doc that names a 'dogfooding step'. The summary names the local-clone marketplace reload described in README.md 'Use this marketplace' and a manual /testing:diagnose loop run. A person should confirm that is the step the issue meant.
  • Untracked dotfiles in the checkout root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run and are not part of the change.

Fix

  • plugins/testing/skills/diagnose/context/loop.md: 'Second failed fix' premise check under When to escalate, placed before the 3-iteration replan; Step 6's same-test-fails branch points to it
  • plugins/testing/skills/diagnose/context/fix-until-green.md: documents stalledRootCauses; no-progress gets its own row, which reports the shared untested premise before taking remaining to investigate
  • plugins/testing/workflows/fix-until-green.js: returns stalledRootCauses (deduplicated non-blank rootCause strings from the last two rounds that re-ran the command) on a no-progress stop, else []
  • plugins/testing/tests/fix-until-green.test.mjs: asserts stalledRootCauses on the existing no-progress and null-fixer tests; new tests cover only the two stalled rounds being reported and an empty list on a max-rounds stop
  • plugins/testing/evals/dg-shared-premise-third-fix/prompt.md: new read-only narration case for the two-failed-fixes path
  • plugins/testing/evals/dg-shared-premise-third-fix/graders/names-shared-premise.md: regex grader requiring the timezone premise named as an assumption, premise, belief or claim
  • plugins/testing/evals/dg-shared-premise-third-fix/graders/checks-premise-first.md: llm grader requiring the premise to be tested before a third fix, without a hard stop
  • plugins/testing/evals/dg-shared-premise-third-fix/samples/names-shared-premise.json: pass and fail samples for the regex grader
  • plugins/testing/evals/dg-shared-premise-third-fix/samples/checks-premise-first.json: pass and fail samples for the llm grader, including a hard-stop fail
  • .changes/testing/work-resolve-issue-issue-15836-43413783650-1-868c0b0e.md: minor changelog fragment for the testing plugin

Verification

The runner ran each check from the base copy against f2d0ac1:

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

The run reports:

  • .lane/checks/bin/check-changelog-fragments: all 2 fragments valid (after adding the missing ### Added heading)
  • .lane/checks/bin/check-changed-skills: diagnose PASS, 0 errors, 1 warning that predates this change (description 504 chars, above the 419 warn level)
  • .lane/checks/bin/check-affected: 12 passed, 7 skipped, 0 failed over 10 changed files
  • .lane/verify/bin/cant-fail-scan --file plugins/testing/tests/fix-until-green.test.mjs --check: PASS, 72 test blocks parsed, no gating findings
  • fresh-context review subagent over the whole diff: no correctness bugs; traced each new test's stall count by hand and each regex sample by hand; three wording findings (loop gate wording, a dangling 'that claim', a missing hard-stop fail sample), all applied
  • repository checks re-run after tidy and after the review fixes: all pass
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43413783650

Left out: the items under Not verified.

Related

#15836

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

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #15934 (head 5e2711e), incremental since 2a8aaa5

I found no security issues in the change since the last review. This review was blocking only, because the prior-findings file shows blocking only: yes.

Scope: I read every hunk of both listed files in .claude-lane/incremental.diff:

  • plugins/testing/evals/dg-shared-premise-third-fix/prompt.md
  • plugins/testing/evals/dg-shared-premise-third-fix/samples/checks-premise-first.json

What changed: this is eval test data only.

  • In the prompt, the failing assertion's date changes from date(2026, 11, 16) to date(2026, 11, 15).
  • In the sample file, one passing answer changes "16th" to "15th" to match.
  • One new fail sample is added: an answer that settles the premise from the dates alone instead of testing it.

None of this text reaches a shell, a path, a URL, a token or a tool input. The prompt frontmatter's allowed_tools: [Read, Glob, Grep, Skill] line is unchanged.

Trusted paths and trust controls: neither file matches a TRUSTED PATHS glob. The change touches no trusted-actor list, token scope, kill switch, merge hold or .github/actions/ action.

Plugin manifests: none changed, so there are no manifest lines.

Instruction surface: no standing instruction is deleted, narrowed or softened. The new text is a graded eval sample, not an instruction.

Prior findings: the earlier post was a summary with no findings, so nothing carries over.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, blocking only): PR #15934

Scope. I reviewed what changed since 2a8aaa5d, which is two files. I read every hunk of both:

  • plugins/testing/evals/dg-shared-premise-third-fix/prompt.md
  • plugins/testing/evals/dg-shared-premise-third-fix/samples/checks-premise-first.json

This lane already reviewed an earlier head, so this review reports blocking findings only.

Date change: no defect. The failing assertion's actual date moved from date(2026, 11, 16) to date(2026, 11, 15), and the first pass sample's "the 16th" became "the 15th" to match.

  • 2026-11-14 is a Saturday, so the expected date fits the test name test_friday_order_ships_saturday.
  • The old actual date, 2026-11-16, is a Monday. That pointed at a skipped weekend and settled the timezone premise from the dates alone.
  • The new actual date, 2026-11-15, is a Sunday: one day off, which still fits a timezone cause. The prompt now leaves the premise open, as the commit message intends.
  • I found no other reference to the old date in the case.

New fail sample: no defect. The added sample settles a different cause from the dates ("skipping Saturday") and never tests the premise with the failing test. That is the grader's FAIL clause "if it names a different cause as settled without testing the premise" (graders/checks-premise-first.md:7). Its weekday claims are correct (the 14th is a Saturday, the 15th a Sunday), and the JSON stays well-formed with the same answer/why shape as the other entries. I worked out the weekdays and the JSON by reading. I ran nothing, because this lane has no shell.

Closing issue #15836, Done-when item 3: still not met (blocking, restated from the earlier summary). The criterion reads: "the skill's existing diagnose cases are non-inferior on a two-version compare (opus and sonnet aliases, three runs per side, --case filter, a --max-cost-usd ceiling, no new batch after a usage-limit error), run in the one local eval-runner session; the pull request carries do-not-merge until the record lands."

  • The PR body still says the compare was not run.
  • Nothing in this push records a compare result.
  • Needs a person: someone has to run the compare in the local eval-runner session, or apply do-not-merge until its record lands. This lane cannot apply labels.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 2a8aaa5.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 13, 2026 •

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=15934 -f activity=address-feedback

@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 13, 2026
@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 5e2711e41ec4d88f68cfca105b27c7bb90b97bb7. 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:earlier-fail)

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

Copy link
Copy Markdown
Member

Held with do-not-merge by the hub session (session: GitHub Support), which takes this pull request from the lane (needs-session).

Why. The open pr-verify finding is correct: #15836's third "Done when" item requires a two-version non-inferiority compare of the existing /testing:diagnose cases (opus and sonnet aliases, three runs per side, a case filter, a cost ceiling) run in the local eval-runner session, and requires this label until the record lands. A lane cannot run it.

What happens next. The hub's eval runner is finishing the same kind of compare for #15920; this one is queued behind it and its record will be posted here. The hold ends when that record shows non-inferiority; a loss comes back as a fix round on this branch.

@kyle-sexton

Copy link
Copy Markdown
Member

Before/after eval for /testing:diagnose, run 1: VALID, NOT met on Sonnet, met on Opus

Pre-registered before any scored run (pass rule: AFTER VALID, non-inferior at margin 0.05 over the shared cases, no shared case drops by a third of a point). BEFORE 1e43743870, AFTER 2a8aaa5db2, 3 runs per case per side, judge opus, 7.71 of 20 USD (list-price estimate of subscription usage). Numbers are the eval runner agent's reading of the result files; the hub has not re-read them.

Shared case Sonnet BEFORE Sonnet AFTER Opus BEFORE Opus AFTER
dg-flake-not-a-retry 0.78 0.44 0.78 0.78
dg-frozen-logger-shared-state 0.78 0.78 0.67 0.67
dg-obvious-fix-runs-full-loop 0.33 0.33 0.33 0.33
dg-order-dependent-rate 1.00 1.00 1.00 1.00
  • All 8 batches VALID (warnings only).
  • Opus: change +0.00 (95% interval +0.00 to +0.00), non-inferior, no case drop: met.
  • Sonnet: change -0.08 (95% interval -0.25 to +0.08), not shown non-inferior, and dg-flake-not-a-retry drops 0.78 to 0.44: NOT met, reported as a loss under the rule.
  • What the runner read about that drop: this PR changes context/loop.md and the fix-until-green files, not SKILL.md; the three Sonnet AFTER runs of dg-flake-not-a-retry made one tool call (Skill), read no other file and contain none of the added text, so both sides saw the same skill text there. That points at run-to-run variance at 3 runs, which a larger pre-registered run settles.

New case dg-shared-premise-third-fix (not part of the compare; BEFORE measured on a copy of the BEFORE plugin with the case added):

Grader Sonnet BEFORE Sonnet AFTER Opus BEFORE Opus AFTER
names-shared-premise 0 of 3 3 of 3 0 of 3 2 of 3
checks-premise-first 0 of 3 0 of 3 0 of 3 0 of 3
  • The edit loads and changes the reply: the added "Second failed fix" text is in all 6 AFTER traces.
  • checks-premise-first cannot tell the versions apart as written. The prompt's assertion expects 2026-11-14 and gets 2026-11-16; a timezone error moves a date by at most one day, so all 12 replies disprove the premise from the dates and never propose testing it with the failing test. No calibration sample has that reply shape.

Next, by the hub:

  1. Fix round on the new case: make the expected and actual dates differ by one day so the dates no longer settle the premise, add a must-fail calibration sample of the reply shape above, re-run calibration.
  2. Run 2, pre-registered, with 6 runs per case on the shared cases.

do-not-merge stays until run 2's record.

… open

The assertion in dg-shared-premise-third-fix compared Monday 2026-11-16
with Saturday 2026-11-14. A timezone shift moves a date by at most one
day, so every run disproved the timezone premise from the dates alone and
named weekend-skipping as the cause, never proposing to test the premise
with the failing test. checks-premise-first failed all 12 runs on both
skill versions and both models, so the case could not tell them apart.

The actual date is now Sunday 2026-11-15, one day off, which a timezone
shift can explain. The must-pass sample that cited the 16th now cites the
15th, and a must-fail sample covers the reply shape the runs produced:
the premise settled from the dates and another cause named, with no test
proposed. Grader wording is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
@kyle-sexton

Copy link
Copy Markdown
Member

Before/after eval for /testing:diagnose, run 2: VALID, met on Sonnet and on Opus

Pre-registered before any scored run, same pass rule as run 1 (AFTER VALID, non-inferior at margin 0.05 over the shared cases, no shared case drops by a third of a point). BEFORE 1e43743870, AFTER 5e2711e41e (this head: run 1's head plus the case fix below), 6 runs per case per side on the shared cases, judge opus, 13.29 of 20 USD (list-price estimate of subscription usage). Numbers are the eval runner agent's reading of the result files; the hub has not re-read them.

Shared case (mean of 6) Sonnet BEFORE Sonnet AFTER Opus BEFORE Opus AFTER
dg-flake-not-a-retry 0.67 0.72 0.83 0.89
dg-frozen-logger-shared-state 0.72 0.83 0.67 0.72
dg-obvious-fix-runs-full-loop 0.33 0.33 0.33 0.33
dg-order-dependent-rate 1.00 1.00 1.00 1.00
  • All 10 scored batches VALID (warnings only: no skill-fired grader in some cases, split judge votes; no denied tool call, no partial result).
  • Sonnet: change +0.04 (95% interval -0.01 to +0.09), non-inferior at margin 0.05, no case drop: met.
  • Opus: change +0.03 (95% interval -0.00 to +0.06), non-inferior at margin 0.05, no case drop: met.
  • Run 1's Sonnet drop on dg-flake-not-a-retry (0.78 to 0.44 at 3 runs) did not repeat at 6 runs (0.67 to 0.72). In both runs every run of that case, on both sides, read only SKILL.md and context/investigate.md, which are identical in the two versions.

Case fix in 5e2711e41e (prompt and one sample file; grader wording unchanged): the assertion's dates now differ by one day, so the dates no longer rule out the timezone premise, and a must-fail calibration sample covers the reply shape run 1 produced. Calibration of checks-premise-first re-run: 18 of 18.

Target case dg-shared-premise-third-fix (3 runs per side; BEFORE on a copy of the BEFORE plugin carrying the updated case):

Grader Sonnet BEFORE Sonnet AFTER Opus BEFORE Opus AFTER
checks-premise-first 1 of 3 2 of 3 0 of 3 3 of 3
names-shared-premise 0 of 3 3 of 3 0 of 3 3 of 3
Mean score 0.17 0.83 0.00 1.00

One deviation from the pre-registration, written into it before any scored batch: the --case filter cannot exclude one case by pattern, so the shared batches ran on plugin copies with the target case left out; diff -rq shows those copies differ from the full ones only by that case directory.

The eval condition is met, so the hub is releasing this pull request to the merge lane.

@kyle-sexton kyle-sexton removed 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. labels Nov 13, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Hub re-read of the run 2 result files (2026-11-13, after the record above was posted): every figure in both tables matches the eight result files (6 runs per shared case and 3 per target run, no run error, no partial result), and run-validity.py reads VALID on the four AFTER batches (warnings: skill fired, judge votes; no denied tool call). Not recomputed by the hub: the two 95% intervals. Every shared case scores the same or higher AFTER than BEFORE on both models.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 5e2711e

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-15934-5e2711e41ec4d88f68cfca105b27c7bb90b97bb7, 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=5e2711e41ec4d88f68cfca105b27c7bb90b97bb7 rubric=8.4.17 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 13c0f65 Nov 13, 2026
90 of 92 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-15836-43413783650-1 branch November 13, 2026 19:07
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 13c0f6579a7d8b04bfaeed2052480885c0875654; 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.

Check the shared premise after a second failed fix in the test-fix loop

1 participant