Repository navigation
Document standalone scratch clones for slotted checks - #1928
Conversation
Architecture-Review: unchanged; documents the established sandbox visibility check and leaves admission and mounts unchanged. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on 534fa2f0895e250e3c07fcf20f4426e7e3977350, 30.6s: approve (0 critical, 0 important, 2 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Native Claude output is retained in the restricted local review receipt.
| Without a stage adapter, run the whole check locally. Use a local slot if the | ||
| host requires one. On miki, if you used the isolated install, run these from | ||
| the task worktree with the `install_dir` from that recipe. | ||
| Make a scratch clone standalone before queueing, for example with |
There was a problem hiding this comment.
suggestion: "scratch clone" reuses a term this repo already uses for something else
In this repo, "scratch" already means the configured [checks].scratch directories (config.scratch, _validate_scratch, and loopzero-scratch- in src/loopzero/sandbox.py:111-127). Here it means a throwaway Git clone of the repository, so readers could link the advice to the scratch-mount setting. The runtime remedy at src/loopzero/sandbox.py:362-364 also says to run loopzero start in the standalone clone and then rerun loopzero check. The doc leaves that step out, so someone could run git clone --no-local and then queue a check from the old worktree, which still borrows objects. Smallest fix: say "standalone clone" (or "local clone") and add "then run loopzero start from it", matching the error message.
| host requires one. On miki, if you used the isolated install, run these from | ||
| the task worktree with the `install_dir` from that recipe. | ||
| Make a scratch clone standalone before queueing, for example with | ||
| `git clone --no-local`. If a Git object alternate is outside the check sandbox, |
There was a problem hiding this comment.
suggestion: Wording says "outside the sandbox" but the check is about readability
_preflight_alternates (src/loopzero/sandbox.py:348-371) does not refuse an alternate just because it lives outside the sandbox. It refuses only when the path is not a readable, searchable directory inside the bwrap sandbox. An alternate under a sandbox_ro or writable mount passes (tests/test_sandbox.py:407 test_real_sandbox_allows_visible_git_alternates). Also, the probe runs only when no [checks].runner is configured (line 114). That matches the "Without a stage adapter" paragraph, so the placement is correct. Optional tightening: "If a Git object alternate is not readable inside the check sandbox". Not blocking; the other claims check out. The slot wrapper runs before loopzero check, and the alternates preflight at line 130 runs before any preparation or check stage at lines 131-147.
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Closes #1926
Add two sentences to the slotted check recipe. They tell builders to make scratch clones standalone before queueing and explain why the existing alternate visibility diagnostic appears only after admission.
The probe tests visibility inside the actual sandbox spawned by
loopzero check. Slot admission is outside loop-zero, so a code change here would require an additional preflight or moving the sandbox boundary. No source, tests, core-doc lines, or workflow changes.scripts/size_budget.shpassed.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review
Validation
Recorded for
2936ad4f28b5uv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0