Repository navigation
Studio: a background run on a Claude Code version the sandbox gate has not passed on warns (#774) - #796
Merged
Conversation
…s not passed on warns (#774) The gated version is a constant beside the sandbox block, GATED_CLAUDE_CODE = 2.1.326 (#773's gate run). A submit reads `claude --version` through Harness::warning; any other version, or one that does not read, gives the run a warning and the run starts as normal. The warning is kept in run.json, so it outlives a restart, and reaches the map as RunView.warning, drawn under the row's note in every state. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… test's warning is any text, one size rule Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #774.
Summary
A background run on a Claude Code version the sandbox gate has not passed on still starts, and its row says so.
<div class="run-row"> (ui/map-runs.ts, rowNode) <span class="run-title"> <span class="run-note"> + <p class="run-warning"> # queued, running and ended; plain text, never live <ul class="run-denials">GATED_CLAUDE_CODEis 2.1.326: Studio: a background run whose tools would get the shared temp folder fails closed #773's gate run, whosesummary.mdrecordsclaude --version: 2.1.326 (local-evidence/2026-11-28-issue-773-sandbox-gate/). The installed Claude Code is 2.1.326 too, so the gate was not rerun.docs/studio/behaviour/background-runs.md, "The gated version": how a passing rerun updates the constant, and both texts of the warning.ui/style.css(the warning spans the row's grid), andscripts/snap/fixtures-runs.ts(mapRunsgives its running run a warning and checks it is drawn under the note).Evidence
a_claude_code_version_the_sandbox_gate_has_not_passed_on_warns(server/tests/runner.rs), a fakeclaude --versionper row:Before: red,
left: None, right: Some("The sandbox gate has not run on Claude Code 2.1.399 (last passed on 2.1.326).")After: green for gated → none; other → the version's warning; exit 1, garbled, missing → unknown version.
a_run_on_an_ungated_claude_code_starts_and_warns_while_queued_running_ended_and_after_a_restart:Before: red,
left: [(…, Running, None), (…, Queued, None)]After: green: the warning on both runs while running and queued, again after plotkeeper starts again with a harness that warns of nothing, and once both ended; the warned run ran.
runs()inserver/tests/wire.rsgains a queued and an ended run with a warning;tsc -p scripts/wirewas red ('"warning"' does not exist in type 'RunView'), then green withui/types.ts.ui/tests/map-runs.test.mjspaints the runs queued, running and ended, each twice: the warning is drawn right after the note every time, and not on a run without one. Red beforerowNodedrew it, then green.npm run snap -- mapRunsprintsruns ok.npm run checkPasses after merging
main(707a1a5): nextest 1960 of 1960,npm run test:node834. Before that merge, 3 tests failed onmaintoo (read_loop::the_replay_sends_the_list_once_and_a_live_line_sends_it_againand two inweb.rs): their log's times had passed the prune's 30-day window, which #792 fixed with a fixed clock.back_a_law::dismiss_waits_until_the_proof_is_done_with_the_runs_folderfailed once (plotkeeper is still checking what this run made) on code this diff does not touch, and passed on its one rerun.CI's first
ubunturun failedhook/tests/harness_trees.rs's opencode case (left: "",right: "hello.txt"), on code this diff does not touch; it passes locally and onmain's CI, and the push of the merge is its one rerun.Review
Correctness pass (a reviewer told to trace state, ordering and concurrency, run the tests and read stored data both ways): no bugs.
run.jsonwithwarningreads inmain'sStoredandLaunched(nodeny_unknown_fields); one without it reads as none here. The version read happens before the runner's lock. Noted and left:MicroWorlds::exploreandfinishhold the micro-worlds store lock aroundsubmit, so a hanging--versionwould add up to 10 s to it, asfill's git archive already does under that lock.Standards review: fixed in e96042d:
submit's doc comment names the version read; the test harness's warning no longer hard-codes 2.1.326;.run-warningtakes its size from the shared rule.Outside review
Stored, a type that derivesDeserialize, changed).Merge Danger
Door: two-way
run.jsongains an optional field that older builds ignore; a revert leaves nothing to migrate.Blast Radius: small
Every
clauderun's submit now startsclaude --versiononce (0.02 s here, 10 s at most). A run never fails or is refused on it.🤖 Generated with Claude Code