Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ writes the receipt. For remote stages, configure an operator-trusted
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

`git clone --no-local`. If a Git object alternate is outside the check sandbox,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

`loopzero check` refuses it after the slot wait and before any stage runs.

```sh
export PATH="$install_dir/venv/bin:$PATH"
Expand Down
Loading