Skip to content

fix(prototype): keep shared-interview build sources out of mktemp directories - #16219

Closed
melodic-automation-lanes[bot] wants to merge 5 commits into
mainfrom
work-resolve-issue/issue-16213-43629366136-1
Closed

melodic-automation-lanes[bot] wants to merge 5 commits into
mainfrom
work-resolve-issue/issue-16213-43629366136-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Closes #16213

Summary

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

The explore-directions shared-interview Placement rule now says that build sources, scripts and scratch files also go in <data_dir>/staging/<run>/ or stay in memory, with no mktemp for any of it. It also says SKILL.md's "Ephemeral placement" mktemp template is for the offline mockup only, never for shared-interview output. This targets the scratch build directory that failing ed-shared-interview-staging runs created with mktemp. The existing rule text, its copy-only-from-data-dir reason, the eval case and its graders are unchanged. No SKILL.md pointer was added because SKILL.md:198 already sends shared-interview output to that section. The ban is scoped to shared-interview output so that review mode, which builds the local mockup in the same run (context/review-mode.md:12), still uses the mockup template.

After review, the Placement text also says build sources and scratch files kept in staging/<run>/ stay outside the live build folder (the one live.folder names). The Live tier's rules (regular files only, no hidden names, at most 2,000 files and 50 MB) apply to that whole folder, and Approve serves all of it.

Eval record

Added by the hub session (GitHub Support), which ran the before/after eval the lane could not run. Registered before any scored run; graders frozen.

  • Case ed-shared-interview-staging alone, claude-opus-5-5, --ablation none, Claude Code 2.1.325. AFTER is this head, 1c2f2f58545b0bc27bd28df9df3767ca68ffa1eb. BEFORE is its merge base with main, e489bc3f9ea14a3974a2a3e4b674b1e5717c0c18. The two plugin copies differ in one file, skills/explore-directions/reference/shared-interview.md; the case files are identical on both sides.
  • Measure: the no-mktemp grader (fails a run whose Bash calls mktemp). Bar stated in advance: AFTER fails it in at most 1 counted run, with at least 9 counted runs on each side.
Reading AFTER passes no-mktemp BEFORE passes no-mktemp One-sided Fisher p
As registered (one run excluded under the registered rule) 12 of 12 5 of 14 0.00064
Denial-free (every run with a denied tool call excluded, both sides) 9 of 9 4 of 11 0.0043

The bar is met under both readings.

What a reader should know before relying on it:

  • Six of the eight result files read INVALID on run-validity.py, each for denied tool calls and nothing else: five runs (2 BEFORE, 3 AFTER) had the sandbox refuse network access when the run tried npm install jsdom, and two BEFORE runs had a compound cd ... && sed -i ... Bash call denied. The two VALID files are one AFTER batch and the added BEFORE batch. No trace shows a shim failure, a permission-pattern failure or a missing command, and no run errored or ended partial.
  • The registration said "No reruns" and did not anticipate the network denials. The owner granted one exception, recorded on explore-directions: shared-interview runs build in a mktemp scratch directory, against the placement rule #16213: one added BEFORE batch of 3 runs, after an amendment written first that excludes every run with a denied call at run level on both sides. The seven registered files stand as recorded and nothing was rescored. The denial-free row is that reading; its seven excluded runs are 4 BEFORE and 3 AFTER.
  • Other graders, denial-free reading (BEFORE of 11, AFTER of 9): hands-over-manifest 11 and 9, manifest-created 11 and 9, manifest-lookat 10 and 9, snapshot-doctype 1 and 3. snapshot-doctype fails most runs on both sides for the reason explore-directions: shared-interview runs build in a mktemp scratch directory, against the placement rule #16213 gives: the staging page is written by a build script.
  • Cost 45.90 USD over 27 runs (15 BEFORE, 12 AFTER).

Not verified

  • tidy ran every pass except part of the ai-slop pass: detect.sh and the digest guard are not among the wrappers this lane may run, so ai-slop's deterministic detector and fix guard did not run. Only its rubric read ran, by hand, and found nothing.
  • review-venue.txt was absent from the scratchpad, so the review ran locally in a fresh-context subagent in place of the CI code-review lane
  • Changes are left uncommitted in the working tree as the lane's system prompt directs (the runner turns them into a patch); ci-mode's commit step is replaced by that.
  • Untracked files .bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile and .zshrc appear in git status. This run did not create them (they look like sandbox mount placeholders) and left them alone; they are not part of this change.

Fix

  • plugins/prototype/skills/explore-directions/reference/shared-interview.md: Placement bullet extends the staging rule to build sources, scripts and scratch files (staging/<run>/ outside the live build folder, or memory, no mktemp) and limits SKILL.md's Ephemeral placement mktemp template to the offline mockup
  • .changes/prototype/work-resolve-issue-issue-16213-43629366136-1-a0180b16.md: new patch changelog fragment for the prototype plugin describing the placement clarification, including the live-folder exclusion

Verification

The runner ran each check from the base copy against 767e226:

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

The run reports:

  • check-changelog-fragments: all 15 fragments valid (run again after tidy and after the review fix)
  • check-changed-skills: explore-directions PASS, 0 errors, 6 warnings, all of them about the existing SKILL.md (description length, body size, no Gotchas, lines 145-162 procedure); none come from this change
  • check-affected: 14 passed, 7 skipped (typos not installed; validate-plugins sub-checks and changed-skills that run code from the checked tree), over 2 changed files
  • fresh-context review subagent: every acceptance item met, no HIGH or MEDIUM findings; two LOW wording findings confirmed (a blanket 'run no mktemp' could hit review mode's local mockup per context/review-mode.md:12; 'never for this path' could be read two ways) and fixed
  • tidy-diff (markdown passes): write-for-agents found nothing to change in shared-interview.md; write-for-humans split the changelog fragment's 45-word sentence in two; ai-slop rubric read found no tells
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43629366136

The live-folder wording added by the review-feedback round ran no check locally; CI checks it on the new head.

Left out: the items under Not verified.

Related

#16213

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

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review needs no new review of 4098e12c5a6f7206761fba03ce3ca7e7acc5cd2b: no file of this pull request changed since the review of e7b5bda.

Security review (blocking only): no findings

I read every hunk of both changed files in .claude-lane/pr.diff:

  • plugins/prototype/skills/explore-directions/reference/shared-interview.md: the Placement bullet now covers build sources, scripts and scratch files as well as output. They go in <data_dir>/staging/<run>/, outside the live build folder, or stay in memory. No mktemp is allowed for any of them. The bullet also says that SKILL.md's "Ephemeral placement" mktemp template applies only to the offline mockup. This change only adds restrictions: no existing rule is removed, narrowed or softened, and the reason for copying only from the data dir and the Keep/Approve text are unchanged. Keeping scratch files out of the folder that Approve serves means less gets served, not more.
  • .changes/prototype/work-resolve-issue-issue-16213-43629366136-1-a0180b16.md: a new changelog fragment that says the same thing. It is prose only.

Changes since the last review: the head is now a merge commit from main (c5b66c71). The diff for this pull request is the same text that this lane reviewed at 1c2f2f58, which had no findings.

Instruction surface: the change only adds restrictions, so no removed rule needed checking against the protected-class register.

Manifests, trust controls, workflows: none are touched. Neither file matches a trusted-path glob.

Settled threads: the single resolved thread asked for the live-folder exclusion. That text is now in the diff, and nothing is re-raised.

PR context: it contains no directives aimed at this lane.

Blocking only: this lane already reviewed an earlier head, so this review reported only CRITICAL and IMPORTANT findings. There were none.

Spend: none.

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

claude-review needs no new review of 4098e12c5a6f7206761fba03ce3ca7e7acc5cd2b: no file of this pull request changed since the review of e7b5bda.

Code review: PR #16219 (blocking only)

This lane has reviewed earlier heads of this PR, so this review reports blocking findings only. I read every hunk of both changed files in .claude-lane/pr.diff:

  • .changes/prototype/work-resolve-issue-issue-16213-43629366136-1-a0180b16.md: a new bump: patch fragment. It describes the same placement rule that the skill text now states.
  • plugins/prototype/skills/explore-directions/reference/shared-interview.md: the Placement bullet (L17-L28). Build sources, scripts and scratch files now go in staging/<run>/ outside the live build folder, or stay in memory, and no mktemp is run for any of them. SKILL.md's mktemp template is limited to the offline mockup.

The head c5b66c71 is a merge of main. The PR's own diff is the same as at 1c2f2f58, which this lane reviewed last round.

Cross-reference check: the "Ephemeral placement" section the new text cites exists in SKILL.md, and its mktemp template is there (SKILL.md L186-L192), so the pointer resolves.

Settled thread: the earlier advisory about the live folder (lines 19-22) is resolved and its lines have not changed since, so I did not raise it again.

Closing issue #16213:

  • The change meets "Expected": it says where build sources go (in staging/<run>/ or in memory), and it says the mockup mktemp template does not apply to this path. It also follows the owner's decision that the rule and the graders stay as written.
  • The PR body now has a before/after eval of ed-shared-interview-staging that I did not run, so its results are the author's claim:
    • As registered, AFTER passed no-mktemp in 12 of 12 runs and BEFORE in 5 of 14.
    • Excluding every run with a denied tool call, AFTER passed 9 of 9 and BEFORE 4 of 11.
    • The owner's Q153 decision allowing one added BEFORE batch is recorded on the issue.
  • The no-mktemp grader is the test that would fail if this guidance regressed.

Not verified: the Verification section reports that check-changelog-fragments and check-changed-skills passed. I did not run them.

Spend (not a finding): the eval spent prepaid model credit (reported as 45.90 USD over 27 runs). The PR makes no billing change.

No blocking findings.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43630637122

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM63h-6_
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 1c2f2f5
Run 43630637122

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 43630637122

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43631603818

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 43631603818

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the lane left a pr-verify note open (uncertain, deferred or answered incorrect, or still open after the round cap and one fresh fixer round); pr-verify judges the next head afresh. The lane sets no label: 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=16219 -f activity=address-feedback

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 43631603818

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 4098e12c5a6f7206761fba03ce3ca7e7acc5cd2b. 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)

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43655312973

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job failure
Activity step skipped
Commits pushed none recorded
Run 43655312973

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43656276026

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 3 of max 4 on e7b5bda.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 43656276026

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 43656276026

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 43656830915

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 43657441394

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@kyle-sexton

Copy link
Copy Markdown
Member

Hub session (GitHub Support). Closing this pull request in favor of a replacement that carries the same two-file change as one commit on a new branch.

Why: the pr-verify verifier passed this head (4098e12c) with notes and wrote "Nothing blocks", but the merge gate reads verify:earlier-fail and cannot clear it here. The verifier's one finding on 1c2f2f58 (the before/after eval was missing) was answered in the pull request body, not in the diff; every head since then only merges main, and a FAIL carries forward to a head with the same change. The eval record, the review finding's fix and the text are unchanged in the replacement.

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: shared-interview runs build in a mktemp scratch directory, against the placement rule

1 participant