Skip to content

Document standalone scratch clones for slotted checks - #1928

Merged
mergify[bot] merged 2 commits into
mainfrom
lean178/1926-standalone-slot-clone
Nov 26, 2026
Merged

mergify[bot] merged 2 commits into
mainfrom
lean178/1926-standalone-slot-clone

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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.sh passed.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

  • primary, claude, 534fa2f, approve

Validation

Recorded for 2936ad4f28b5

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

Architecture-Review: unchanged; documents the established sandbox visibility check and leaves admission and mounts unchanged.
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread SETUP.md
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.

Comment thread SETUP.md
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,

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.

@eowca
eowca marked this pull request as ready for review November 26, 2026 14:29
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as 4f72fb8 at 14:35 UTC

4 min in the queue, 4 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 14:30 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1937
  • ✅ Merged 14:35 · 4f72fb8 · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit 4f72fb8 into main Nov 26, 2026
13 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/1926-standalone-slot-clone branch November 26, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document standalone scratch clones before slotted checks

1 participant