Skip to content

feat(prototype): keep pressure-test evidence on a throwaway branch after the repository's secrets check - #12088

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

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12026

Summary

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

The shared prototype discipline gains an 'Evidence step' under 'When done'. It runs after the durable note holds the answer and before the throwaway code is deleted. It runs the repository's own secrets and machine-data check over the prototype files in the working tree. Only when that check passes does it commit those files to a throwaway branch, named by the repository's declared branch-naming convention, and push it; the branch name and commit SHA go into the note. Otherwise it pushes nothing and writes the local path and not pushed: <reason> into the note. /prototype:pressure-test step 5 runs the step by linking to that section. The discipline names the step as a fourth exception to rule 6. The mattpocock-skills upstream record now says the evidence branch is adopted after the repository's check (Q168). Design choices, each from the issue and the existing discipline: the commit is made from a separate worktree, so the prototype files stay in place for the module lift and the deletion that follow. A repository with no declared branch-naming convention gets no push, because the issue requires the declared convention and allows no fallback name. Files kept outside the repository, such as the HTML demo page in a temp directory, are recorded by path and never copied in, because the HTML shell rules forbid a tracked path.

Not verified

  • The PR's CI being green: left to the PR's CI, which runs the CI-only checks check-affected lists (evals-schema, evals-quality, gitleaks, lychee-offline, line-citations and others)
  • check-evals-quality could not run on the new case here: the wrapper accepts only evals.json files and rejects a directory or a case.yaml, so CI's evals-quality step covers it
  • The new eval case was not executed (no eval runner in this lane); grader samples were checked by reading only
  • plugins/prototype/evals/pt-evidence-no-secrets-check/scaffold.sh is mode 100644. Sibling scaffolds are 100755, and this lane has no chmod. If the eval runner executes scaffolds directly instead of through bash, set the executable bit
  • Tidy skipped: the change has 12 files and 2 areas (plugins/prototype with .changes/prototype, and docs/upstream), over the cutoffs of 10 files and 1 area
  • review-venue.txt was absent from the scratchpad, so the review ran locally in one fresh-context subagent instead of the CI code-review lane
  • Untracked files this run did not create appear in the checkout root (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc). They look like lane environment files; this run left them untouched and they are not part of this change

Fix

  • plugins/prototype/context/discipline.md: adds the fourth exception to rule 6 (the shell still leaves the working tree; a pushed branch holds the evidence only when the check passed), sequences 'When done' as note, then evidence step, then deletion, and adds the '### Evidence step' section (find the
  • plugins/prototype/skills/pressure-test/SKILL.md: step 5 runs the shared discipline's evidence step (linked to discipline.md#evidence-step) before the module lift and shell deletion
  • docs/upstream/mattpocock-skills.md: the prototype row's rejection clause is replaced by 'Adopted after the repository's check (Q168): the evidence branch ...', its first column names the evidence branch, and the per-skill summary says the evidence branch is adopted after the repository's secrets and
  • .changes/prototype/work-resolve-issue-issue-12026-41343826722-1-a4470219.md: new bump: minor fragment describing the evidence step and the new eval case
  • plugins/prototype/evals/pt-evidence-no-secrets-check/case.yaml: new case, schema_version "1.1"; prompt closes out a finished loans prototype; expected_outcome states nothing is pushed and the note records the local path and not pushed: <reason>
  • plugins/prototype/evals/pt-evidence-no-secrets-check/scaffold.sh: git repo with an origin remote, no hooks or secrets check, and uncommitted prototype files under src/loans
  • plugins/prototype/evals/pt-evidence-no-secrets-check/graders/no-push.md and samples/no-push.json: trace regex that fails on any Bash git ... push command, without failing reads of pre-push hooks
  • plugins/prototype/evals/pt-evidence-no-secrets-check/graders/note-not-pushed.md and samples/note-not-pushed.json: the decision note contains not pushed: <reason>
  • plugins/prototype/evals/pt-evidence-no-secrets-check/graders/note-local-path.md and samples/note-local-path.json: the decision note names the prototype's local path or files

Verification

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

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

The run reports:

  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: all 5 fragments valid (run before and after the review fixes)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changed-skills: pressure-test PASS, 0 errors, 4 warnings (description and body length above the Pocock medians, no Gotchas surface, body grew 255 -> 257 lines)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 12 passed, 6 skipped, the rest listed as CI only
  • Fresh-context review subagent over the full diff: 3 medium and 4 low findings, all fixed. The fixes: commit from a separate worktree so the prototype files stay in place, scope the step to files inside the working tree, anchor the no-push grader to the command so reads of pre-push hooks pass, tighte
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41343826722

Left out: the items under Not verified.

Related

#12026

Lane-Activity: work-resolve-issue/resolve-issue

@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-security-review: 1 inline finding(s) on a430d8f94b8843c21662c530b8a0a3331adbffb4; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

Comment thread plugins/prototype/context/discipline.md Resolved
@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #12088, incremental (a430d8f → aeaf3b0)

Scope. I read every hunk of .claude-lane/incremental.diff, which changes one file: plugins/prototype/context/discipline.md. I also re-read lines 50–119 of the head file for context. The file matches no trusted-path glob, and no plugin manifest changed.

What changed. The change narrows where the evidence step applies; it does not widen it:

  • The fourth exception to rule 6 now applies only to /prototype:pressure-test (L58-L63).
  • "When done" now says /prototype:explore-directions and /prototype:build-generator do not run the step. They delete the throwaway code once the note holds the answer (L70-L73).
  • The Evidence step section now names /prototype:pressure-test's capture step as its only caller (L86-L88).

Fewer skills can now publish prototype files with git push, so the publication surface is smaller than at a430d8f.

Instruction-surface lens. The diff narrows a permission (where the push may happen), not a guardrail. The scan gate, the default-branch ban, the ban on reserved automation names and the "push nothing otherwise" fallback are all unchanged at L90-L109. No protected class loses a check.

Prior finding. The earlier SUGGESTION still applies: the evidence step pushes without asking the user, and a secrets scan is its only gate. The push sub-step it was anchored on is unchanged and now sits at L100-L105. The wrapper marks it lines changed since posted: no.

New findings. None. No token or secret is exposed, and the change touches no trust control, kill switch, merge hold, token scope, workflow or manifest field. The round cap did not apply (round 1 of 3).

Embedded text. The PR context holds no instructions aimed at this 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 a430d8f94b8843c21662c530b8a0a3331adbffb4; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/prototype/context/discipline.md Resolved
@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental): PR #12088, from a430d8f9 to aeaf3b00

Scope: I read every hunk of .claude-lane/incremental.diff, which changes only plugins/prototype/context/discipline.md. I also read the whole head file. I checked the PR context, the prior findings, and the "Capture the answer" step (step 5) in plugins/prototype/skills/pressure-test/SKILL.md. Every other file is unchanged since the last review.

The earlier inline finding is fixed (discussion_r4437143694). The evidence step now applies only to /prototype:pressure-test:

  • The fourth exception names the skill it applies to (L58), as the other three exceptions do.
  • "When done" runs the step only for pressure-test. It says that /prototype:explore-directions and /prototype:build-generator delete the throwaway code once the note holds the answer (L70-L73).
  • The sentence about the irreversible deletion now limits the "pushed by the evidence step" clause to pressure-test (L80-L82).
  • The opening of the "Evidence step" section says pressure-test runs it in its capture step (L86). That matches pressure-test's "### 5. Capture the answer" section, which links to discipline.md#evidence-step.

The done-when items of #12026 that this file covers are still met: the evidence step sits in "When done", and the file names it as an exception to rule 6. The #evidence-step anchor is unchanged, so the link from pressure-test still resolves. The new text raises no new correctness issue.

Findings

  1. (cross-file, advisory, carried over from the previous round's summary. The eval files are unchanged, so it still applies.) No test covers the push half of done-when item 1. That half says the step "pushes the files to that throwaway branch, never the default branch, only when the check passes, and writes the branch name and commit SHA into the durable note". The only new case, pt-evidence-no-secrets-check/case.yaml, covers only the path where the repository has no secrets check. Every eval in the plugin would still pass if a regression pushed to main or pushed after a failed check. Two cases would close the gap:
    • A failed-check case. Its scaffold has a secrets hook that rejects a planted token, and its graders check that nothing is pushed and that the note says not pushed:.
    • A passed-check case. Its graders look for a branch name and a commit SHA in the note.

Notes

  • No plugin manifest changed, so the manifest checks do not apply.
  • The PR context contains no embedded instructions.
  • The round cap does not apply (1 earlier round with findings, cap 3).
  • No hold applies.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head a430d8f94b8843c21662c530b8a0a3331adbffb4.

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

Copy link
Copy Markdown
Contributor Author

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

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

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the lane left a review finding open and no adjudicator verdict settled it: none was recorded, it found the finding does not hold where the lane had not disputed it (an UNCERTAIN or VALID-defer reply), which only an INCORRECT reply lets a verdict resolve, it found the finding asks only for tests whose covering check runs had not all passed when the round began, or it raised a security question on a finding the security-review lane rated below CRITICAL; so 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=12088 -f activity=address-feedback

@kyle-sexton kyle-sexton removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 1, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 1, 2026
Merged via the queue into main with commit c172c02 Nov 1, 2026
96 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-12026-41343826722-1 branch November 1, 2026 22:00
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

feat(prototype): keep /prototype:pressure-test evidence on a throwaway branch after the repository's secrets check

1 participant