inspector/.claude/skills
Repository files (latest commit first)
Filename Latest commit message Latest commit date
cliffhall f99402918d feat: queue concurrent local:gate runs on a machine-wide lease (#2339)
`npm run local:gate` now runs its stages under `scripts/gate-lease.mjs`, a
`proper-lockfile` lease under `os.tmpdir()` (or `$XDG_RUNTIME_DIR`), so a gate
started in a second worktree waits for the first instead of overlapping it.

Measured on v2/main @ aa56551b: a quiet gate is 257s green; two started
together had one fail at 279s (`smoke:web:chromium` found port 6298 held by
the other gate's smoke) and the survivor take 338s. Under the lease, three
gates started within seconds ran back to back (259s, then 262s, then the
third), each green with zero timeouts.

The lease grants rather than polls a threshold, so two waiters cannot
deadlock on each other; a holder that dies stops refreshing and is taken over
after 30s; a signal to the wrapper stops the whole process group, releases,
and exits 128+signal; the wait names the holder's pid and worktree and gives
up after 45 minutes. `INSPECTOR_SKIP_GATE_LEASE=1` bypasses it. A lock that
cannot be created runs the gate unleased with a warning.

`scriptChainRuns` looks through the wrapper (and only it) so the existing
vouches about what `local:gate` runs keep reading the real chain.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PsmUAZ6aLUAFqenjJKSSRp
Signed-off-by: cliffhall <cliff@futurescale.com>
2026-09-12 22:00:33 -04:00
..
board-ops docs: address Copilot review round 1 on #2203 2026-09-01 10:10:06 -04:00
issue-create docs: tune skill eval cases and document how to write them 2026-08-31 23:22:25 -04:00
issue-triage docs: tune skill eval cases and document how to write them 2026-08-31 23:22:25 -04:00
local-dev chore: address Copilot review round 3 (#2226) 2026-09-05 17:14:44 -04:00
pr-flow docs: paginate the review-comments fetch 2026-09-06 12:34:20 -04:00
pre-push-gate feat: queue concurrent local:gate runs on a machine-wide lease (#2339) 2026-09-12 22:00:33 -04:00
project-structure docs: address Copilot review round 7 on #2203 2026-09-01 12:21:09 -04:00
release docs(release): make the two-PR flow, smoke, ledger and UI tag explicit (#2298) 2026-09-08 22:45:52 -04:00
test-servers chore: land the #2247 round-9 review findings on v2/main (#2322) 2026-09-11 08:22:16 -04:00
testing fix: address Copilot review round 7 2026-09-12 15:15:09 -04:00