Skip to content

fix(prototype): give explore-directions' shared states line a literal shape - #16883

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16453-44129102433-1
Nov 18, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16453

Summary

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

Step 4 part 1 of /prototype:explore-directions now gives the shared states line as its own sentence with a literal shape, All variants have the same states: <names>., on a line of its own between each path-and-keys line and its variant lines. It names every state itself instead of pointing back at the Plan: line, keeps the states out of the path-and-keys line, and has the variant lines leave the states out. The paths and keys now go on one line per path, so 'that path-and-keys line' has a clear referent. This follows the owner's recorded decision (keep the handover-shape grader strict and reword step 4), and the grader is unchanged. Per that decision, the lane opens the PR with the do-not-merge label, and a host session posts the before/after eval of ed-offline-mockup-handover before merge.

Not verified

  • The registered before/after eval of ed-offline-mockup-handover with handover-shape reported alone is not run here: the owner's decision gives it to a host session after the PR opens, with the PR held under do-not-merge until the eval record is posted. The lane applies that label when it opens the…
  • Review subagent nit not applied: a variant line that labels screenshot paths by state with one capture missing would list a different set of states than the shared line. This eval cannot hit that case (no Playwright, so no screenshots); left as is.
  • Tidy: the ai-slop detector script (detect.sh) and the rubric fan-out could not run, because this lane's Bash runs only the named wrappers. I read the changed lines by hand against the catalog (no em dashes, AI vocabulary or stock phrases), and no semantic-diff subagent ran for the one-word tidy…
  • Untracked dotfiles at the checkout root (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were already there and are not part of this change; I left them untouched.

Fix

  • plugins/prototype/skills/explore-directions/SKILL.md: step 4 'Where to look' replaces the parenthetical shared-states clause with a separate sentence that gives the literal line shape and its placement (between the path-and-keys line and the variant lines), requires the states to be named there…
  • .changes/prototype/work-resolve-issue-issue-16453-44129102433-1-a9410860.md: new patch changelog fragment (### Changed) describing the handover wording change.

Verification

The runner ran each check from the base copy against 102e20d:

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

The run reports:

  • check-changelog-fragments: all 6 fragments under .changes/ valid (run after the final edit)
  • check-changed-skills: CHECK-SKILL explore-directions PASS, 0 errors, 7 warnings; all 7 existed before this change except 'body grew 469 -> 474 lines' (run after the final edit)
  • check-affected: 15 passed, 7 skipped, the rest CI only (run after the final edit)
  • handover-shape grader (plugins/prototype/evals/ed-offline-mockup-handover/graders/handover-shape.md): read and compared with the new wording; the file is not modified
  • fresh-context review subagent: no bugs, and the new text passes grader criterion (2) in every case the grader names. I applied its should-fix (the changelog fragment said less than the skill) and two nits (the referent of 'that path-and-keys line', and dropping the 'grader unchanged' note from the…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44129102433

Left out: the items under Not verified.

Related

#16453

Lane-Activity: work-resolve-issue/resolve-issue
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 17, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Held for its eval: #16453 makes the before/after eval a step after this PR. A session runs it and posts the eval-pair record for the current head. The pr-merge sweep removes this hold once that record is posted (release-eval-hold.mjs).

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #16883 (head 102e20d)

No findings. I read the whole change in both listed files: plugins/prototype/skills/explore-directions/SKILL.md and the new fragment .changes/prototype/work-resolve-issue-issue-16453-44129102433-1-a9410860.md.

What changed

Step 4, part 1 ("Where to look") of /prototype:explore-directions drops the bracketed note "(or … one shared line saying so and naming them)". In its place is a separate sentence that sets three things:

  • Shape: the line reads All variants have the same states: <names>.
  • Placement: it sits on a line of its own, between that path's path-and-keys line and its variant lines.
  • Content: it names every state itself, never points back at the Plan: line, and keeps the states out of the path-and-keys line. The variant lines then leave the states out.

The change also makes the path-and-keys line "one line per path", so "that path-and-keys line" has a clear referent.

Closing issue #16453, acceptance criteria

  • Shape, own line, names the states (not the Plan: line): met. See SKILL.md#L368-L375. The check that could fail if this broke is the handover-shape LLM grader of ed-offline-mockup-handover. I compared the new wording with that grader by hand (handover-shape.md#L6-L26). The new line passes its rules:
    • it is one shared line per file:// path;
    • it names the states and says every variant has them;
    • it sits outside the path-and-keys line and the plan;
    • it sits directly above the variant lines.
  • handover-shape grader unchanged: met. The diff does not touch it.
  • Changelog fragment for the prototype plugin: met. It is a patch bump under ### Changed, which suits a wording change to a skill.

Not verified

  • Pass rate. The issue's "Done when" asks for clearly more than half of handover runs to pass, shown by a registered before/after eval. That is not shown here. Under the owner's recorded decision, a host session runs that eval after the PR opens, and the PR stays under do-not-merge until the eval record is posted. I could not confirm the label is on the PR because this lane has no GitHub access.
  • Author's checks. The fragment and skill checks in the PR body (check-changelog-fragments, check-changed-skills) are author-claimed. I did not run them.

Notes

  • Settled edge case. The PR body already names one edge case: a variant line that labels screenshot paths by state, with one capture missing, would list a different set of states than the shared line, and the grader fails that. It cannot happen in this eval (no Playwright, so no screenshots), and the author left it on purpose, so I did not raise it again.
  • Loosened checks. Verdict: fail (default; no loosened_check_verdict: or loosened_check_patterns: line in the prompt); patterns: 0. The diff loosens no check.
  • Other criteria. There are no plugin manifest changes, no paved-path rows and no prior findings. No embedded directives turned up in the PR context.
  • Spend. The change affects nothing billed and needs no hold.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

I read both changed files in full:

  • plugins/prototype/skills/explore-directions/SKILL.md: step 4, "Where to look", changes wording only. The handover's shared-states line now has a fixed shape (All variants have the same states: <names>.) and sits on its own line. The change only says how the handover message is laid out. It removes no standing instruction: no rule about tools, permissions, publishing, or untrusted content is deleted, narrowed or softened, so no protected class from the instruction-surface lens is at stake.
  • .changes/prototype/work-resolve-issue-issue-16453-44129102433-1-a9410860.md: a new changelog fragment for a patch release.

Neither file matches a trusted-path glob. There are no plugin manifest changes, no userConfig keys, no workflow or trust-control changes, and no code that runs. The PR context has no embedded directives aimed at the review lane.

critical-findings: 0

@kyle-sexton

Copy link
Copy Markdown
Member

Targeted eval result: PASS

One targeted case per changed skill, run on the old text (before) and the new text (after), on sonnet at 3 runs a side, Claude Code 2.1.326 (Claude Code).

What this gate checks: the owner kept the handover-shape grader strict and had step 4 reworded (#16453). The new text must do no worse than the old on this case, and handover-shape, reported alone, must pass in more runs on the new text than on the old. Three runs a side is the default; it can show a large rise, not a small one.

Scope: a behaviour change, not a cut. Step 4 of explore-directions now gives the shared states line a literal shape (All variants have the same states: <names>.) on a line of its own between the path-and-keys line and the variant lines. Target: handover-shape (llm judge, strict, unchanged), expected to fail in part on the old text (18 of 32 counted runs passed on main in the PR 16348 eval) and to pass more often on the new. No-loss: the case's other eight graders (deterministic: CSP, data controls, mktemp run directory, no HTML in the workspace, reply template, switcher, variant markers).

  • The case is the existing ed-offline-mockup-handover, renamed only.

  • Run count: 3 a side by the template; the refinement's question 1 (at least 70 percent over at least 30 counted runs per arm) is not part of the recorded decision, which settled only the grader question.

  • Before: 5f91e3ef0090b3f733e58dfef5af72d06c94bc62 (merge base with main)

  • After: 102e20d0fba63699740ff8d484355ffa68357749 (pull request head; live head when this was written: 102e20d0fba63699740ff8d484355ffa68357749)

  • Loss: the mean case score falls by 0.15 or more, or any one grader passes in 2 or more fewer after runs than before runs.

Passing runs per grader, per side:

Case Grader Before After
p16883-ed-offline-mockup-handover csp-base-directives 3/3 3/3
p16883-ed-offline-mockup-handover csp-in-page 3/3 3/3
p16883-ed-offline-mockup-handover data-controls 3/3 3/3
p16883-ed-offline-mockup-handover mktemp-run-dir 3/3 3/3
p16883-ed-offline-mockup-handover no-html-in-workspace 3/3 3/3
p16883-ed-offline-mockup-handover reply-template 3/3 3/3
p16883-ed-offline-mockup-handover switcher-inlined 3/3 3/3
p16883-ed-offline-mockup-handover variant-markers 3/3 3/3
p16883-ed-offline-mockup-handover handover-shape 0/3 2/3
p16883-ed-offline-mockup-handover mean case score 0.889 0.963
p16883-ed-offline-mockup-handover target: handover-shape passes in more after runs than before runs 0/3 2/3

Graders that cannot show a loss, because they failed on the old text in every run:

  • p16883-ed-offline-mockup-handover handover-shape: cannot show a loss: failed on the old text in every run (0/3)

Verdicts:

  • verdict p16883-ed-offline-mockup-handover (explore-directions): PASS (no loss: after 0.963, before 0.889, every registered target met)

Cost: 8.14 USD (smoke and compare, the runs' costUsd).

The cases live outside the repository; their full text:

The 1 cases: prompt.md and case.yaml

p16883-ed-offline-mockup-handover

case.yaml:

schema_version: "1.1"
name: p16883-ed-offline-mockup-handover
description: "Copy of the existing case ed-offline-mockup-handover, unchanged but for its name and this first sentence, registered for PR 16883 (#16453): handover-shape is the target grader the owner kept strict. Base contract of the HTML mockup substrate and the step-4 handover: an offline page in a mktemp run directory with the CSP meta tag, variant markers and the bundled switcher inlined, seeded data with Seed, Clear and Reset controls, then the five-part handover whose check list comes before the reply template. csp-base-directives checks that one meta tag carries every directive of the base policy, MB:plugins/prototype/skills/explore-directions/SKILL.md:157-159, in any order."
tags: [explore-directions, hard]
runs: 3
expected_outcome: "The mockup is one HTML page written inside a mktemp run directory named explore-directions-XXXXXX outside the workspace, with a CSP meta tag whose policy starts default-src 'none', data-variant and data-variant-label markers, the bundled switcher inlined whole, and Seed, Clear and Reset controls over its seeded synthetic data; the handover gives the file:// path, one line per variant with key and descriptive name, the states on each variant's line or, when every variant has the same states, once in a line of its own directly above, among or directly below the variant lines that names them and says every variant has them, says no screenshots exist, gives one honest tradeoff row per variant without picking a favorite, gives a numbered check list of actions and expected results, and ends with the reply template's direction: and steal: lines. The Content-Security-Policy meta tag carries every directive of the base policy, not only default-src 'none'."
execution:
  prompt: "/prototype:explore-directions onboarding checklist screen for a new habit-tracking app. There is no app yet. I'm the only person deciding and I want the mockup now: build it without asking me anything first."
  allowed_tools: [Read, Glob, Grep, Bash, Write, Edit]
  max_turns: 80
  timeout_seconds: 1200

Denied calls: one Bash call was denied by the sandbox in one before run and one after run (each a compound cd ... && ... command inside the run's own scratch folder). No grader reads Bash, so by the owner's recorded rule (a denied call is printed and the run stays counted unless a grader depends on it) all 6 compare runs are counted. The validity gate itself read INVALID on those denials alone; the record line below is posted on that rule.

Posted by an agent session.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The do-not-merge hold waited only on eval evidence (reason=eval), and a listed human posted a VALID no-loss eval-pair record for 102e20d0fba63699740ff8d484355ffa68357749: #16883 (comment). pr-merge removed do-not-merge. To hold again, add the label back with a new pr-hold reason line.

@melodic-automation-lanes melodic-automation-lanes Bot removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 17, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

Verification evidence for 102e20d

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-16883-102e20d0fba63699740ff8d484355ffa68357749, expires on 2026-12-18.

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

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 17, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=102e20d0fba63699740ff8d484355ffa68357749 rubric=10.2.1 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 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 17, 2026
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit e99bab5 Nov 18, 2026
144 of 149 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16453-44129102433-1 branch November 18, 2026 01:59
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.

explore-directions: the shared states line is named on its own line in only about half of handover runs

1 participant