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 1628711
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(gate): run every host-locked command through runLockedCommand
Move the publish, activate, finish protocol and the signal-to-exit-code
mapping into scripts/check-affected so validation runs and heavy gates
share one owner. Restore the testing and pull-request rules that the
previous revision dropped, and cover a signal that arrives while the
locked command is running.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Copy file name to clipboardExpand all lines: AGENTS.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,11 +48,11 @@ The versioned CLI help owns command semantics. To drive an app, start with the s
48
48
- In a new worktree, run `pnpm install --frozen-lockfile && pnpm build` before you test.
49
49
- Do not change other worktrees, devices, sessions, dirty files, or experiments. Do not use `git stash`; all worktrees share it.
50
50
- Do not copy `.env` into a worktree. For host credentials, source the main checkout's file by its absolute path.
51
-
- Give each parallel worker different files and a different device. `pnpm check:affected --run`, `pnpm check`, and heavy `pnpm gate` ids run one at a time automatically.
51
+
- Give each parallel worker different files and a different device. `pnpm check:affected --run`, `pnpm check`, and heavy `pnpm gate` ids share one lock.
52
52
- The layering scan reads only tracked files. Stage new modules before you trust its result.
53
53
- When you rename a file, move its Fallow baseline entry. Do not regenerate unrelated baselines.
54
54
55
-
The validation lock reclaims provably dead owners. An unknown owner blocks.
55
+
The validation lock automatically reclaims provably dead owners. An unknown owner continues to block.
56
56
If the wait times out, report the printed owner and the lock state. Do not remove the lock manually.
Copy file name to clipboardExpand all lines: docs/agents/testing.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,10 @@
9
9
10
10
Serialized validation requires macOS or Linux.
11
11
On Windows, use plan mode or focused checks.
12
-
Both broad commands acquire the same host lock.
13
-
These `pnpm gate` ids acquire the same lock: `unit`, `unit-ci`, `provider-integration`, `fuzz-parsers`, `mutation`, `mutation-affected`, and `concurrency-torture`.
14
-
A gate inside a locked validation reuses that lock. A GitHub runner takes no lock.
12
+
Both broad commands and heavy `pnpm gate` ids acquire the same host lock.
15
13
Wait for the owner to finish, or cancel your waiter with Ctrl-C.
16
-
A wait ends after two hours. A nested `pnpm check` or `pnpm check:affected --run` fails immediately.
14
+
Do not add lock wrappers. Do not delete lock files.
15
+
A wait ends after two hours. Nested validation fails immediately.
17
16
Focused tests do not lock. Avoid subprocess-heavy tests beside a broad gate.
18
17
19
18
The runner prints progress and a receipt path. The receipt contains:
@@ -35,6 +34,7 @@ Execution stops at the first failure. Unexecuted checks remain `not-run`.
35
34
36
35
Only a passed receipt with `exactCommit: true` proves validation at the named commit.
37
36
A dirty-tree pass is local feedback. Detected checkout changes invalidate the run.
37
+
Initial/final checks detect persistent changes. They do not sandbox the checkout.
38
38
During validation, stop all edits.
39
39
40
40
## Interpret selection
@@ -45,6 +45,7 @@ A full selection for these changes is intentional.
45
45
Read `failOpenReasons` in plan JSON or `plan.failOpenReasons` in a receipt.
46
46
Do not reduce selection to get a pass.
47
47
48
+
Read required-check status on the PR.
48
49
The receipt lists skipped checks and owners in `results[].reason`.
49
50
GitHub owns:
50
51
@@ -62,6 +63,7 @@ Do not add tests that assert prose.
62
63
## A gate failed
63
64
64
65
Keep failure attribution separate from validation status.
0 commit comments