Skip to content

feat(prototype): run the evidence step in explore-directions and build-generator - #12220

Merged
kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-12030-41374147536-1
Nov 2, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-12030-41374147536-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12030

Summary

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

The shared prototype discipline's evidence step, which /prototype:pressure-test already ran (S4), now runs in /prototype:explore-directions step 5 and in /prototype:build-generator's harvest. Each skill points at discipline.md "Evidence step" and does not restate it. discipline.md no longer limits the step to pressure-test: the fourth exception, "When done" and the step's intro now cover every facet. For the default file: // mockup, explore-directions takes the record-the-path branch: the page lives outside the repository, so it is not copied onto the evidence branch, and the note records its local path and not pushed: <reason>. I chose that branch because discipline.md step 2 already says a file kept outside the repository is never copied in. build-generator names the generating tool's files (those its route, controls and save endpoint added or changed) as the evidence pushed. Two eval cases cover the no-secrets-check path, modeled on pt-evidence-no-secrets-check.

The run went past its turn budget (turns=81 max-turns=75): the work may be too big for one run.

Not verified

  • The issue's done-when item "The PR's CI is green" is left to the PR's CI.
  • Running the two new eval cases against a live model (evals-quality over the case directories, and the eval run itself) is left to the PR's CI or a person. The grader regexes were checked against their samples by reading them, not by running a grader.
  • The new scaffold.sh files will be created with mode 100644 because this lane cannot chmod. The existing pt-evidence-no-secrets-check/scaffold.sh is 100755. If the eval runner executes scaffolds directly rather than through bash, set +x on both new scaffold.sh files.
  • The ed-evidence-no-secrets-check mockup sits untracked in mockup-run/ inside the working tree, following the precedent of ed-graft-reply-records-and-deletes. The case grades the no-secrets-check path, not the outside-the-repository reason.
  • Tidy was skipped: the change touches 20 files (2 eval cases of 8 files each, 3 docs and 1 fragment), over the tidy cutoff of 10 files.
  • cant-fail-scan was not run: the change touches no test files, and the wrapper rejected a base-ref argument.
  • Commits were not made: the lane's system prompt says to leave changes uncommitted for the runner to turn into a patch. Untracked dotfiles at the checkout root (.bashrc, .gitconfig, .idea, .mcp.json and others) are runner environment files, not part of this change.

Fix

  • plugins/prototype/context/discipline.md: the fourth exception, "When done", the losing-directions paragraph and the "Evidence step" intro now say every facet runs the step, and name where each skill runs it
  • plugins/prototype/skills/explore-directions/SKILL.md: step 5 runs the evidence step after the record and UI acceptance criteria, before the "When the exercise ends" deletions. It points at discipline.md and says the default file: // mockup is not copied: the note records its local path and `not push
  • plugins/prototype/skills/build-generator/SKILL.md: the harvest now records the answer, runs the evidence step (naming the generating tool's files as the evidence pushed), then deletes the tool, removing only its lines from a shared file such as the router
  • plugins/prototype/evals/ed-evidence-no-secrets-check/ (case.yaml, scaffold.sh, graders/no-push.md, note-local-path.md, note-not-pushed.md, and their samples): new case. A git repository with a remote and no secrets check holds a finished /shipments mockup; the reply picks single winner B. The expect
  • plugins/prototype/evals/bg-evidence-no-secrets-check/ (case.yaml, scaffold.sh, graders/no-push.md, note-local-path.md, note-not-pushed.md, and their samples): new case. A git repository with a remote and no secrets check holds a torn-edge generator to harvest. The expected_outcome says nothing is pu
  • .changes/prototype/work-resolve-issue-issue-12030-41374147536-1-689a7787.md: new bump: minor fragment describing the change

Verification

The runner ran each check from the base copy against 9478c7e:

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

The run reports:

  • check-changelog-fragments: all 9 fragments valid
  • check-changed-skills: build-generator PASS (0 errors) and explore-directions PASS (0 errors, 499/500 lines). The first run failed the 500-line hard cap at 501 and then 500 lines, so I folded the new paragraph into the next one
  • check-affected: 12 passed, 6 skipped (checks that run code from the checked tree, plus typos, which is not installed), the rest left to CI
  • check-evals-quality on plugins/prototype/skills/{explore-directions,build-generator}/evals/evals.json: PASS, 0 warnings
  • Fresh-context review subagent over the whole diff: it reasoned each new grader regex against its pass/fail samples and found them consistent, and it found that both scaffolds run under set -euo pipefail. It reported two findings, both fixed: build-generator's "delete those same files" could be read
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41374147536

Left out: the items under Not verified.

Related

#12030

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 9478c7eaf9828fa4d8db72333e4992c35135436c. The lanes clear this reason on their own; the next scheduled run judges it again.

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

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #12220 (head 9478c7e)

I found no security issues.

What changed. /prototype:explore-directions and /prototype:build-generator now run the evidence step from plugins/prototype/context/discipline.md, which /prototype:pressure-test already ran. The PR also adds two eval cases, ed-evidence-no-secrets-check and bg-evidence-no-secrets-check, and one changelog fragment.

What I checked

  • Guardrail change in discipline.md. The old "When done" text said the other two skills "do not run" the evidence step. Removing that sentence lets the agent push from two more skills. The guards inside the step are untouched (discipline.md#L84-L108):

    • it pushes only when the repository's own secrets and machine-data check passes;
    • it never pushes to the default branch or to a branch name reserved for automation lanes;
    • it commits only the prototype files, in a separate worktree;
    • otherwise it pushes nothing and records not pushed: <reason>.

    Both skills point to this step instead of restating it, so every new push goes through the same secrets gate. The explore-directions text also says the file:// mockup outside the repository is not copied in, which matches step 2. No protected control is left without enforcement. I read docs/contracts/instruction-exception-register/README.md; it was not needed to judge this, because the step's own text still enforces the rule.

  • Eval scaffolds. Both scaffold.sh files build a local fixture repository whose only remote is https://example.invalid/..., under set -euo pipefail. They have no network fetch, no secrets and no injection surface. The grader regexes and sample JSON are test data.

  • Copy in identical.txt. graders/no-push.md is identical in both eval directories. The second path is an eval grader in the same role, so its location does not change what it does. I counted it once.

  • Other areas. The diff touches no plugin manifests, no trusted paths, no workflows and no trust controls.

Embedded text. The PR context has no instruction aimed at this review lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed 9478c7eaf9828fa4d8db72333e4992c35135436c: read 20 of 20 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #12220 (head 9478c7e)

I found nothing to block or flag.

I read every hunk of the 20 changed files. ed-evidence-no-secrets-check/graders/no-push.md is an identical copy of bg-evidence-no-secrets-check/graders/no-push.md, so I read it once. Both copies are grader files in sibling eval cases, so the path does not change what the content does.

Closing issue #12030, done-when items

  • explore-directions runs the evidence step after the durable capture and before the deletions, points at discipline.md, and says which branch the file:// mockup takes: met. Step 5 runs the step after the record and acceptance criteria and before the "When the exercise ends" deletions. It links discipline.md#evidence-step without restating it. It says the page is not copied and that the note records the local path and not pushed: <reason>. This matches discipline step 2, which says a file kept outside the repository is never copied in. It also matches the mockup's temp-dir placement at explore-directions/SKILL.md L186-197.
  • build-generator runs the step before the tool is deleted and names the tool's files as the evidence pushed: met. Harvest step 3 records the answer, then runs the step and names the files the tool's route, controls and save endpoint added or changed. The deletion moves to a new step 4.
  • One eval case per skill, with no secrets check in the scaffold, and an expected_outcome saying nothing is pushed and the note records the local path and not pushed: <reason>: met. Both scaffolds set up a remote with no hooks, no pre-commit config and no contributing guide. Each case's graders cover the no-push trace, the local path and the not pushed: line. Both scaffold.sh files show mode 100755 in the diff, so the PR's note about mode 100644 no longer applies.
  • A .changes/prototype/*.md fragment with bump: minor: met.
  • CI green: left to CI. I could not check it.

The no-secrets-check path is covered by the two new eval cases. Nothing tests the pass-and-push branch for these two skills, but the issue does not ask for one.

Other checks

  • The discipline.md wording now applies to every facet consistently: the fourth exception, "When done", the losing-directions paragraph and the step's intro. The canvas and shared-session exceptions stay unchanged, which matches the issue's out-of-scope list.
  • I checked the path-scoped rules .claude/rules/eval-case-transcripts.md and .claude/rules/skill-bodies-state-current-rules.md against the matching files. The new eval content is synthetic with no machine-specific paths. The skill bodies point at the discipline and restate no volatile upstream detail. I found no violations.
  • No plugin manifest changed, so the manifest checks do not apply.
  • I did not find a paved-path index row, so I report nothing about paved paths.
  • I did not run any checks myself. The verification results in the PR body (changelog-fragment check, changed-skills check at 499/500 lines, evals-quality) are the author's claims.

Spend: the two new eval cases add 3 runs each (max 40 and 50 turns) of prepaid model usage per eval run. That is not a hold.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 5d9116f Nov 2, 2026
56 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-12030-41374147536-1 branch November 2, 2026 02:56
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.

feat(prototype): keep explore-directions and build-generator evidence on a throwaway branch after the repository's secrets check

1 participant