Skip to content

explore-directions: shared-interview runs build in a mktemp scratch directory, against the placement rule #16213

Closed

Description

@kyle-sexton

No related pull request: found while reading eval traces for #16088.

Summary

/prototype:explore-directions runs that stage output for a shared interview often make a scratch build directory with mktemp and build the snapshots there before writing or copying them into interview-data/staging/<run>/. plugins/prototype/skills/explore-directions/reference/shared-interview.md, "Placement", says: "Write everything under <data_dir>/staging/<run>/ ... never a mktemp or system temp directory".

Evidence

Case ed-shared-interview-staging, grader no-mktemp (fails a run whose Bash calls mktemp), on main at c51fed6c6c, claude-opus-5-5:

  • 10 of 24 runs failed it in the main-against-main run on #16088.
  • 3 of 6 before-arm runs failed it in #16088's eval. In each failing run read there, the one mktemp call makes a scratch build directory (ed-build-XXXXXX, explore-directions-src-XXXXXX) and the staged files still land under interview-data/staging/.
  • The scratch-directory form matches the mockup template in SKILL.md ("d=$(mktemp -d \"${TMPDIR:-/tmp}/explore-directions-XXXXXX\")"), which applies to the offline mockup, not to shared-interview staging.

Grader snapshot-doctype on the same case fails in most runs on main for a related reason: the staging page is written by a build script, so the doctype never appears in a Write or redirect to staging/.

Decision already made

Owner, 2026-11-14: the placement rule stays as written; a scratch build directory outside staging is not allowed. The graders stay as they are.

Expected

Runs follow the placement rule. Likely fix: shared-interview.md says where build sources go (inside staging/<run>/, or in memory), and says the mockup mktemp template does not apply to this path. That is a skill-text change, so it needs a before/after eval; the case above is its measure.

Severity

Low for behaviour (the staged output lands in the right place). It matters for evals: the case passes about 6 runs in 10 on unchanged main, so it cannot carry a loss rule at small run counts.

Activity

  1. added
    needs-triage
    on Nov 14, 2026
  2. github-actions commented on Nov 14, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: explore-directions shared-interview runs often build in a mktemp scratch directory, although the Placement rule in shared-interview.md forbids it. The likely cause is the mockup mktemp template in SKILL.md. The proposed fix is a skill-text clarification, with the ed-shared-interview-staging case (grader no-mktemp) as the before/after measure. The case and its graders stay unchanged.

    Nothing is missing. The acceptance criteria are in the refinement comment above. I found no duplicate or merged fix. #16088 is the related eval source, and #14705 is context only.

    Note: the "Decision already made" line in the body is not a recorded decision comment, so I treated it as context rather than a settled decision. The scope is exact without it.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 14, 2026
  4. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  5. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: shared-interview.md tells runs to put build sources inside staging/<run>/ or keep them in memory, and says the SKILL.md mockup mktemp template does not apply to shared-interview staging, with a before/after eval on ed-shared-interview-staging.

    Acceptance criteria

    • plugins/prototype/skills/explore-directions/reference/shared-interview.md Placement states that build sources and scratch files go inside <data_dir>/staging/<run>/ or stay in memory, never a mktemp or system temp directory
    • shared-interview.md Placement says the SKILL.md 'Ephemeral placement' mktemp template applies only to the offline mockup, not to shared-interview staging
    • The existing rule text 'never a mktemp or system temp directory' and the interview's copy-only-from-data-dir reason are kept
    • SKILL.md 'Ephemeral placement' (around line 186) gets a one-line pointer that shared-interview staging is excluded, only if needed
    • The ed-shared-interview-staging case and its graders (no-mktemp, snapshot-doctype) are unchanged
    • A before/after eval of ed-shared-interview-staging is run and its no-mktemp pass counts are reported in the pull request
    • Existing plugin tests and validation for the prototype plugin pass

    External state: none

    Dependencies

    • Related context: #​16088 (eval source); no blocking work

    Related work

    Sources read

    • plugins/prototype/skills/explore-directions/reference/shared-interview.md:17: Placement says write everything under <data_dir>/staging/<run>/, never a mktemp or system temp directory
    • plugins/prototype/skills/explore-directions/SKILL.md:186: Ephemeral placement gives the mktemp -d template for the offline mockup, with no mention of shared-interview staging
    • plugins/prototype/evals/ed-shared-interview-staging/case.yaml: the eval case that is the measure

    Automated refinement by the lanes App. Intake triages the issue again with it.

  6. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"d37ac294822fcb4088855c839ad65548026dbf2a6ed1f0b66609e3c62f883076","body_sha256":"5ed3e278a3d0797a29b5c0649407a4fc50d68339ba99cece72b076dd46a126da"}

  7. github-actions commented on Nov 14, 2026

    @github-actions
    Contributor
    No description provided.
  8. kyle-sexton commented on Nov 14, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded.

    Hub session (GitHub Support). Owner decision Q153, answered in the hub session by 2026-11-14T23:27:16Z.

    Question. The before/after eval for pull request #16219 finished with its bar met, and 6 of its 7 result files read INVALID on the validity check, each for denied tool calls: five runs had the sandbox refuse network access on npm install jsdom, and two BEFORE runs had a compound cd ... && sed -i ... call denied. The registration said "No reruns" and "A side needs at least 9 counted runs, else the result is reported as unable to decide"; with every denial run excluded, BEFORE had 8.

    Options shown.

    • (a) Accept the record as it was, with every verdict stated and both readings, and no more runs.
    • (b) Recommended: one more BEFORE batch of 3 runs, after an amendment written first that excludes any run with a denied tool call at run level on both sides.
    • (c) Change the case's sandbox so runs do not reach for npm, then run a new compare of 12 runs per side.

    Answer (owner, verbatim). "Go with recommendations" That is option (b).

    What it allowed, as acceptance criteria.

    Result. As registered: AFTER passes no-mktemp in 12 of 12 counted runs, BEFORE in 5 of 14. Denial-free: AFTER 9 of 9, BEFORE 4 of 11. The bar (AFTER fails in at most 1 counted run, at least 9 counted runs per side) is met under both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    needs-triage

    Priority

    low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions