You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 159ca67
Browse filesBrowse the repository at this point in the historyBrowse files
fix(tooling): pr:evidence measures pristine head/base worktrees from an os.tmpdir scratch; size --base gets a per-SHA lock, completion stamp, and non-destructive eviction
Review (three P1s):
- pr:evidence created its scratch under an untracked .tmp/ that a fresh
checkout lacks (ENOENT). Scratch now lives under os.tmpdir(), which exists
by construction; a real entrypoint regression runs the whole pipeline with
--base HEAD (no origin/main needed) and asserts JSON shape plus cleanup of
both worktrees and the scratch.
- Untracked or uncommitted production files could move the layering/depgraph
numbers the block labels as HEAD's. Head is now measured from a pristine
worktree of the head commit exactly like base, and the affected plan takes
the head SHA (the literal HEAD folds the working tree in). The dirty flag
now counts untracked files and says they are not in the block.
- size --base force-pruned other cached bases without locking and trusted a
dist/src that could be half-built. Per-SHA .lock (pid, O_EXCL) held from
before the worktree exists until the base report is read; a live lock on
the same base fails fast, a stale one is replaced; eviction skips worktrees
whose lock owner is alive; dist/.size-base-complete marks a finished build.
Orchestration tests run the real script against a throwaway git repo with
pnpm/npm shimmed on PATH (build once, reuse, live lock, stale lock,
interrupted build, guarded vs idle eviction). Also fixes the /tmp →
/private/tmp realpath mismatch those tests surfaced (git lists worktrees by
real path, so the registration check removed a live worktree).
0 commit comments