Skip to content

Resume-eval sessions: Bash sandbox instead of git permission globs #17792

Open

Description

@kyle-sexton

Problem

In the session-flow resume eval, a resumed Claude Code reader confirms the refs its case story names (a PR head, a release branch) with git -C <run repo> ls-remote origin or git fetch origin. The eval sessions denied git ls-remote outright, the auto-mode classifier refused the -C form ("Undermining Oversight"), and the run counted as not delivered. In the last A/A, the before arm delivered 0 of 16 runs on re-decision-trimmed-to-fit and 0 of 15 on re-late-event.

Allow and deny globs could not open the local read without opening network forms: review lanes and pr-verify on #17700 found --upload-pack, scp-style host:path fetches, -C to another checkout and --exec-path slipping through, because a glob cannot tell which argument a colon or flag belongs to.

Owner decisions

Recorded in the owner-decisions record: https://github.com/melodic-software/architecture/blob/fb7ac72fc5417e324d7744ee8297039b3e2e6231/docs/owner-decisions.md#L287-L288 (melodic-software/architecture#143)

  • Q63, 2026-11-20 ~23:3xZ, owner verbatim: "Go with recommendations. Just make sure that the rules are generalized and safe. I don't want repo-specific rules. The rules that we put there, permissions need to be generalized, basically."
  • Q66, 2026-11-21 ~03:5xZ, on "Should eval sessions use the Bash sandbox with no allowed network domains, instead of the git allow and deny globs?", owner verbatim: "Go with recommendations."

Done when

  • Each resume-eval session's --settings enables the Bash sandbox with auto-allow, allowUnsandboxedCommands: false, failIfUnavailable: true, no allowed network domains and strictAllowlist: true, writable only in the working directory, the run folder and the harness temp directory.
  • The eval sessions' blanket git ls-remote deny narrows to the URL (*://*) and user@host (*@*) forms of git ls-remote and git fetch, with and without -C; the curl, wget, WebFetch and WebSearch denies stay. No allow rule is added.
  • A test asserts those network forms stay denied and the local origin reads are not denied.
  • A trial on re-late-event and re-decision-trimmed-to-fit (before arm, Claude Code reader, 4 runs each) delivers at least 2 of 4 per case.

Activity

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

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Knowable
    Flags: none
    Blocked by: none
    Blast radius: the session-flow resume-eval harness settings (--settings for each eval session), its git permission rules and one new test; only eval runs read it.
    Reversible: yes; revert the settings and test change.
    Open questions: none
    Understood: resume-eval sessions should use the Bash sandbox (no network domains, writable only in the working directory, run folder and harness temp directory) in place of the git allow and deny globs. The blanket git ls-remote deny narrows to the URL and user@​host forms of git ls-remote and git fetch, and a test pins those denies and the local origin reads. The design and done-when are exact, so no owner question is needed. The fourth done-when item (a 4-run trial per case on the before arm) is an eval run that may need a separate run path from the code change. I found no open issue or merged pull request that already covers this.

    Automated triage. A maintainer reviews it.

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

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"67ee45788502f7802a44e2a96a619439a846ab9651e72c87a48f70c84c83e652","body_sha256":"2277fde7f6f0474fefb800dd46eec377595f71632c5ec375e04fe701d88413e9"}

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

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: merged pull request #17700 names it with Refs: after its newest decision or refinement comment, so its work may already be done: close the issue if it is, or post a comment whose first line is **Decision recorded.** saying what is left, which sends it back through intake. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  6. added this to the After zero milestone on Nov 22, 2026
  7. added
    host-run
    on Nov 22, 2026
  8. kyle-sexton commented on Nov 22, 2026

    @kyle-sexton
    MemberAuthor

    Done-check against #17700 (merged 2026-11-21): done-when items 1 to 3 are in it (the sandbox settings block, the narrowed git ls-remote/git fetch denies with no allow rule, and the settings test).

    Item 4, the 4-run trial per case on the sandbox settings, has no recorded result. The PR body says the trial was running and that do-not-merge comes off when it delivers at least 2 of 4 per case; the label was removed at 2026-11-21T05:09Z, but no count was written down.

    The trial is a model run of the resume eval, and evals are off org-wide (CLAUDE_EVALS_DISABLED=true). This goes to the host queue (host-run) and the "After zero" milestone. Release condition: API key returns and CLAUDE_EVALS_DISABLED=false. Then run the trial once and record the per-case counts here; at 2 of 4 or better on both cases, close this issue.

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

    host-run

    Type

    Fields

    Work status

    confirmed

    Priority

    medium

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions