Skip to content

feat(testing): start run-e2e expected outcomes from a feature's stated results - #15932

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-15911-43413499243-1
Nov 13, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-15911-43413499243-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #15911

Summary

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

/testing:run-e2e now starts each entry point's expected outcome from the touched feature's stated results, which the app-control contract (0.23.0) already requires: each ## Drive step's Result:, then the Proof. step's end state and its Captures:. It then adds the change's requirement or acceptance criterion on top. Where the change alters a step's result, the requirement wins and the report names the replaced stated result for Step 4's refresh. The drive route judges each step against its stated result, the proof step's captures against its end state, and the whole run against the requirement. Design choice: the feature file is read directly from the control skill whose hub the run reads (affected.json's control_skill, else the hub Feature map finds), under the same trusted-root rule, rather than from drive's report. Drive's report does not yet carry stated results; that is a sibling part of #15797.

Not verified

  • Tidy partly ran: the docs-hygiene writing pass (write-for-agents, write-for-humans) ran and made one edit. The ai-slop detector (detect.sh) and its fix-flow scripts could not run, because this lane executes only the named wrappers, so the ai-slop pass was a manual rubric read only. Code passes 1-3…
  • No eval or markdownlint run for run-e2e here (check-changed-skills skips markdownlint and script tests in this lane); left to the PR's CI
  • Drive's report carrying each step's stated result beside the observed one is a sibling part of #15797, not done here; run-e2e reads stated results from the feature file, so it does not depend on that part

Fix

  • plugins/testing/skills/run-e2e/SKILL.md: new Step 2 '### Expected outcome' subsection (stated results and proof step first, requirement on top, where the feature file is read from, trust rule, 'no stated results' fallback and where it is reported); Feature map paragraph allows reading a feature…
  • plugins/testing/skills/run-e2e/context/e2e.md: workflow step 1 starts the expected outcome from the feature's stated results and proof step; Flow-suite paragraph points at the expected outcome written before driving; failure packet's Expected: line adds the feature's stated result for a failed drive
  • .changes/testing/work-resolve-issue-issue-15911-43413499243-1-e2d9e23a.md: new minor changelog fragment for the testing plugin

Verification

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

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

The run reports:

  • check-changelog-fragments: all 2 fragments valid (run after the last edit)
  • check-changed-skills: run-e2e PASS, 0 errors, 6 warnings. The warnings are size and structure advisories that predate this change; the body grew 366 to 387 lines
  • check-affected: 12 passed, 7 skipped (tools not installed or CI-only), 0 failed (run after the last edit)
  • read plugins/app-control/reference/control-skill.md 'Drive steps' and 'Steps files': each step has Result:, the last is a Proof. step with Result: end state and Captures:, and steps files hold the same result; the new run-e2e wording uses these terms
  • fresh-context review subagent over the whole diff: 5 findings (3 medium, 2 low), none high; all fixed (refresh promise softened, failure-packet Expected line kept for failed specs, entry points the Drive steps do not reach fall back to the requirement, proof-step judging direction corrected,…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43413499243

Left out: the items under Not verified.

Related

#15911

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 87169009ca8367d0d01f2debde54d4438e130060: read 5 of 5 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15932 (incremental, cf3e5e9 → 8716900)

I found no security issues in this push. This lane already reviewed an earlier head, so this review was blocking only: it reports CRITICAL and IMPORTANT findings and drops SUGGESTIONs.

Scope. I read every hunk of all 5 files in the incremental diff. All of them are eval case data for the testing plugin's run-e2e evals:

  • plugins/testing/evals/run-e2e-flat-feature-id-resolves/case.yaml and its new samples/reports-no-stated-results.json
  • plugins/testing/evals/run-e2e-grouped-feature-id-resolves/case.yaml, its fixtures/export-README.md, and its new samples/quotes-replaced-result.json

None of these files match a trusted-path glob. The push touches no plugin manifest, workflow, action, gate, hold, trust control or instruction surface.

What changed.

  • Case files. The descriptions, tags, expected outcomes and prompts now cover the new stated-results behaviour. Each case gains a regex grader, and the grouped case also gains an LLM grader.
  • allowed_tools. It stays [Read, Glob, Grep] in both cases, and max_turns and timeout_seconds are unchanged, so the eval sessions get no new capability.
  • Fixture. The README fixture adds Result: and **Proof.** lines, which are inert test data read by a read-only eval session.
  • Sample files. These are static pass/fail examples for the graders.
  • Regex graders. Both patterns are simple (\bno stated results\b and date,number,amount(?!,)), with no catastrophic-backtracking shape.

Nothing here reaches a credential, runs code in a trusted context, or can bill anyone.

Spend. The new LLM grader (names-replaced-stated-result) spends prepaid API credit or subscription usage on each eval run. That is not a hold.

PR context. The description and closing issue contain no embedded instructions aimed at the review lane.

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 cf3e5e9ade9a9245fe172c500efb3963b30aadb1; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/testing/skills/run-e2e/SKILL.md Resolved
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #15932 (incremental, cf3e5e9 → 8716900)

No blocking findings. This lane already reviewed an earlier head, so this pass reported only blocking findings. I read every hunk of all 5 files in the incremental scope. None of them is on a trusted path.

What changed since the last review. The push answers this lane's earlier finding: no test covered #15911's criterion. It does so by extending two existing eval cases rather than adding new ones.

  • run-e2e-grouped-feature-id-resolves
    • The fixture export-README.md now has a ## Drive step with a Result: line and a **Proof.** step whose header row is date,number,amount.
    • The prompt adds an acceptance criterion that changes the header row to date,number,amount,currency.
    • A new regex grader, quotes-replaced-result, uses date,number,amount(?!,). A new LLM grader, names-replaced-stated-result, checks that the expected outcome starts from the stated results, that the requirement wins, and that the reply names the result it replaced.
  • run-e2e-flat-feature-id-resolves
    • The legacy cart.md fixture has no Result: line and no Proof step.
    • A new regex grader, reports-no-stated-results, checks for the no stated results fallback line, and the LLM criterion now checks it too.

Checks against the skill text and fixtures:

  • I checked each new regex by hand against its samples file. Every pass answer matches and every fail answer does not:
    • date,number,amount(?!,) matches the stated header row whether it is followed by a backtick or a space. It rejects the row that appears only as date,number,amount,currency.
    • \bno stated results\b with flag i matches the bold, capitalized form.
  • The flat case agrees with SKILL.md L169-L172: a feature that states no result falls back to the requirement plus the no stated results line.
    • The seeded features/cart.md has no Result: line.
    • features/cart/steps.md has none either, so the hand-off rule at L159-L160 adds no stated results.
  • In the grouped case, GET /api/invoices.csv is an entry point the Drive steps do not go through. Under L170-L172 the run may correctly write no stated results under it. The new LLM grader only fails no stated results for the Export button, so it does not penalize that correct output.
  • The stray legacy features/billing/export.md does not contain date,number,amount. A reply that read the wrong file therefore cannot pass quotes-replaced-result by accident, and the existing reads-no-legacy-file grader still guards against reading it.

Closing issue #15911.

  • Criterion: "/testing:run-e2e reads the stated results as the starting expectation."
  • Status: met, and now covered by quotes-replaced-result and names-replaced-stated-result in the grouped case.
  • The fix's reply says the drive route's per-step judging is still untested, because these cases run without app-control. That is not a blocking finding.

Prior findings. The earlier inline finding (resolved at 8716900) is addressed by this push. I did not raise it again.

Embedded text. I found no directives aimed at this lane in the PR context, settled-threads or prior-findings files.

Spend. This uses prepaid API credit only and is not a hold: each eval run of the grouped case now makes one more LLM grader call.

Verification. I ran nothing; this lane has no shell. The fix's note "CI runs them after the push" is the author's claim, and I did not check it.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

Verification evidence for 8716900

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-15932-87169009ca8367d0d01f2debde54d4438e130060, 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=MEDIUM demote=false head=cf3e5e9ade9a9245fe172c500efb3963b30aadb1 rubric=8.4.16 rater=claude-opus-5-5 checker=claude-opus-5-5

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM63EFbf
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 13, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=87169009ca8367d0d01f2debde54d4438e130060 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 f6f1d87 Nov 13, 2026
51 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-15911-43413499243-1 branch November 13, 2026 13:31
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

State the observable result on every drive step and end each feature with a proof step - part 4 of 6

0 participants