instar 0.28.52 → 0.28.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/cli.js +40 -0
  2. package/dist/cli.js.map +1 -1
  3. package/dist/commands/gate.d.ts +33 -0
  4. package/dist/commands/gate.d.ts.map +1 -0
  5. package/dist/commands/gate.js +171 -0
  6. package/dist/commands/gate.js.map +1 -0
  7. package/dist/commands/init.d.ts.map +1 -1
  8. package/dist/commands/init.js +29 -2
  9. package/dist/commands/init.js.map +1 -1
  10. package/dist/core/MessageSentinel.d.ts +40 -0
  11. package/dist/core/MessageSentinel.d.ts.map +1 -1
  12. package/dist/core/MessageSentinel.js +80 -0
  13. package/dist/core/MessageSentinel.js.map +1 -1
  14. package/dist/core/PostUpdateMigrator.d.ts +7 -0
  15. package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
  16. package/dist/core/PostUpdateMigrator.js +114 -0
  17. package/dist/core/PostUpdateMigrator.js.map +1 -1
  18. package/dist/core/SessionManager.d.ts +29 -0
  19. package/dist/core/SessionManager.d.ts.map +1 -1
  20. package/dist/core/SessionManager.js +104 -1
  21. package/dist/core/SessionManager.js.map +1 -1
  22. package/dist/core/StopGateDb.d.ts +97 -0
  23. package/dist/core/StopGateDb.d.ts.map +1 -0
  24. package/dist/core/StopGateDb.js +282 -0
  25. package/dist/core/StopGateDb.js.map +1 -0
  26. package/dist/core/UnjustifiedStopGate.d.ts +145 -0
  27. package/dist/core/UnjustifiedStopGate.d.ts.map +1 -0
  28. package/dist/core/UnjustifiedStopGate.js +325 -0
  29. package/dist/core/UnjustifiedStopGate.js.map +1 -0
  30. package/dist/core/WorktreeKeyVault.d.ts +50 -0
  31. package/dist/core/WorktreeKeyVault.d.ts.map +1 -0
  32. package/dist/core/WorktreeKeyVault.js +242 -0
  33. package/dist/core/WorktreeKeyVault.js.map +1 -0
  34. package/dist/core/WorktreeManager.d.ts +250 -0
  35. package/dist/core/WorktreeManager.d.ts.map +1 -0
  36. package/dist/core/WorktreeManager.js +833 -0
  37. package/dist/core/WorktreeManager.js.map +1 -0
  38. package/dist/monitoring/DegradationReporter.d.ts +15 -0
  39. package/dist/monitoring/DegradationReporter.d.ts.map +1 -1
  40. package/dist/monitoring/DegradationReporter.js +27 -0
  41. package/dist/monitoring/DegradationReporter.js.map +1 -1
  42. package/dist/monitoring/WorktreeReaper.d.ts +52 -0
  43. package/dist/monitoring/WorktreeReaper.d.ts.map +1 -0
  44. package/dist/monitoring/WorktreeReaper.js +199 -0
  45. package/dist/monitoring/WorktreeReaper.js.map +1 -0
  46. package/dist/scaffold/templates.d.ts.map +1 -1
  47. package/dist/scaffold/templates.js +8 -0
  48. package/dist/scaffold/templates.js.map +1 -1
  49. package/dist/server/AgentServer.d.ts +18 -0
  50. package/dist/server/AgentServer.d.ts.map +1 -1
  51. package/dist/server/AgentServer.js +24 -0
  52. package/dist/server/AgentServer.js.map +1 -1
  53. package/dist/server/middleware.d.ts.map +1 -1
  54. package/dist/server/middleware.js +20 -3
  55. package/dist/server/middleware.js.map +1 -1
  56. package/dist/server/routes.d.ts +10 -0
  57. package/dist/server/routes.d.ts.map +1 -1
  58. package/dist/server/routes.js +432 -0
  59. package/dist/server/routes.js.map +1 -1
  60. package/dist/server/stopGate.d.ts +77 -0
  61. package/dist/server/stopGate.d.ts.map +1 -0
  62. package/dist/server/stopGate.js +161 -0
  63. package/dist/server/stopGate.js.map +1 -0
  64. package/dist/server/worktreeRoutes.d.ts +48 -0
  65. package/dist/server/worktreeRoutes.d.ts.map +1 -0
  66. package/dist/server/worktreeRoutes.js +247 -0
  67. package/dist/server/worktreeRoutes.js.map +1 -0
  68. package/package.json +1 -1
  69. package/scripts/destructive-command-shim.js +218 -0
  70. package/scripts/gh-ruleset-install.mjs +143 -0
  71. package/scripts/migrate-incident-2026-04-17.mjs +138 -0
  72. package/scripts/worktree-commit-msg-hook.js +168 -0
  73. package/scripts/worktree-precommit-gate.js +144 -0
  74. package/src/data/builtin-manifest.json +93 -93
  75. package/upgrades/0.28.53.md +70 -0
  76. package/upgrades/side-effects/context-death-pr0a-server-infra.md +131 -0
  77. package/upgrades/side-effects/context-death-pr0b-sentinel-intent.md +130 -0
  78. package/upgrades/side-effects/context-death-pr0c-guardian-pulse-degradation-consumer.md +118 -0
  79. package/upgrades/side-effects/context-death-pr0d-e2e-compaction-harness.md +113 -0
  80. package/upgrades/side-effects/context-death-pr1-identity-text.md +110 -0
  81. package/upgrades/side-effects/context-death-pr2-e2e-compaction-recovery-test.md +82 -0
  82. package/upgrades/side-effects/context-death-pr3-gate-authority.md +193 -0
  83. package/upgrades/side-effects/context-death-pr4-gate-cli.md +91 -0
  84. package/upgrades/side-effects/parallel-dev-isolation.md +129 -0
@@ -0,0 +1,129 @@
1
+ # Side-Effects Review — Parallel-Dev Isolation (Worktree-per-Topic)
2
+
3
+ **Version / slug:** `parallel-dev-isolation`
4
+ **Date:** `2026-04-17`
5
+ **Author:** `Echo (instar-developing agent)`
6
+ **Second-pass reviewer:** `self (four internal reviewer personas) + external (GPT-5, Gemini-2.5, Grok-4) across 4 converged iterations — artifacts at docs/specs/reports/parallel-dev-isolation-convergence.md`
7
+
8
+ ## Summary of the change
9
+
10
+ Closes the incident-of-record from 2026-04-17: two parallel Claude Code sessions running against the same instar repo's main working tree, where session A's 1028 lines of InitiativeTracker work was staged on main at the same moment session B was preparing to commit an unrelated compaction-resume fix. Session B was within one `git commit -a` of silently absorbing all of A's work under B's authorship.
11
+
12
+ The root cause is structural — `.claude` sessions share a single working tree by default, so "git status sees the other agent's in-progress changes" is the norm, not an edge case. This change makes collision-free parallel dev the default path, not a best-practice that some sessions remember to follow.
13
+
14
+ What this ships (covered files listed in `coveredFiles` of the trace):
15
+
16
+ - **new** `src/core/WorktreeManager.ts` (~700 lines) — the core subsystem. Bindings table (topicId → branch+worktreePath), exclusive locks with fencing tokens, force-take protocol with FS snapshot + scoped stash (explicitly NOT `--include-ignored` — captures `.env` and gitignored WIP via a separate tarball snapshot), Ed25519 trailer signing for the push-gate, binding-history-log.jsonl (Merkle-chained for replay defense), state reconciliation matrix for post-crash recovery, cross-platform fast-copy (APFS clonefile / btrfs --reflink / ext4 cp -al / fallback+warn; `cp -al` removed from the default path because macOS BSD cp does not support `-l`).
17
+ - **new** `src/core/WorktreeKeyVault.ts` — K1-hardened key storage. Primary path uses OS keychain; headless fallback uses AES-GCM over scrypt-KDF with a 12-char-min passphrase, file chmod 0600. No passphrase → vault refuses to operate (closed by default).
18
+ - **new** `src/server/worktreeRoutes.ts` — 8 HTTP endpoints. `/worktrees/resolve`, `/worktrees/release`, `/worktrees/heartbeat`, `/worktrees/force-take`, `/worktrees/reconcile`, `/commits/preflight`, `/commits/sign-trailer` all behind bearer auth. One endpoint — `/gh-check/verify-nonce` — is mounted BEFORE bearer auth middleware because GitHub Actions calls it with an OIDC token, not a bearer token; it's rate-limited (60 req/min) and oracle-protected (uniform error on every failure type).
19
+ - **new** `src/monitoring/WorktreeReaper.ts` — daily sweep of stale bindings. Two-phase quarantine → delete so a crashed-and-resumed session gets a grace period before its worktree is reclaimed.
20
+ - **mod** `src/core/SessionManager.ts` — `spawnSession` now resolves a topic worktree via WorktreeManager and injects per-session shim PATH + BASH_ENV (K9 mandatory shim enforcement). New `setWorktreeManager(wm, shimRoot)` method allows opt-in wiring — if unset, SessionManager degrades to legacy non-isolated mode for back-compat. `INSTAR_FENCING_TOKEN` env var is passed to the spawned shell so hooks can identify their own session.
21
+ - **mod** `src/server/AgentServer.ts` — constructor accepts `worktreeManager`, `oidcVerify`, `oidcEnrolledRepos` options. Wires two route mounts: the OIDC verify-nonce route (mounted before bearer auth, addresses K16 middleware-order issue) and the auth-required worktree routes (mounted after). Both are fully opt-in — if `worktreeManager` is not supplied, neither mount runs and behavior is unchanged.
22
+ - **new** `scripts/worktree-precommit-gate.js` — pre-commit fence. 500ms timeout to `/commits/preflight`, fail-open-to-warn (never blocks a commit on server unavailability — see §4).
23
+ - **new** `scripts/worktree-commit-msg-hook.js` — commit-msg hook. Honors `GIT_INDEX_FILE`, supports merge commits, calls `/commits/sign-trailer` and injects 9 trailer lines via `git interpret-trailers`. Runs at commit-msg stage (not pre-commit) because pre-commit fires before the commit message exists — an iter-2 finding.
24
+ - **new** `scripts/destructive-command-shim.js` — git/rm wrapper. Snapshots the working tree before any destructive operation; blocks if snapshot fails. Wraps `git clean`, `git reset --hard`, `git checkout -- <path>`, `rm -rf`.
25
+ - **new** `.github/workflows/worktree-trailer-sig-check.yml` — required GitHub Action check. Offline Ed25519 verification + OIDC nonce call + K2 tunnel-URL hash-pin + GitHub Repo Variable cache fallback.
26
+ - **new** `.github/scripts/verify-trailers.js` — the verifier run by the Action.
27
+ - **new** `scripts/migrate-incident-2026-04-17.mjs` — Day -2 TOFU migration. Recovers the exact 2026-04-17 incident cleanly: verifies the compaction-session's stash SHA, replays stashed work onto its own recovery branch, writes a signed sentinel so the verifier accepts the migration commit.
28
+ - **new** `scripts/gh-ruleset-install.mjs` — installs 3 GitHub Rulesets: branch protection (requires trailer-sig check), tag protection, and the "trust-root" 2-approval rule for migrations touching Ed25519 keys.
29
+ - **new** `tests/unit/WorktreeManager.test.ts` (12 tests), `tests/unit/WorktreeKeyVault.test.ts` (5 tests), `tests/unit/WorktreeManager-merkle.test.ts` (3 tests). Covers AC-1, AC-3, AC-4, AC-5, AC-9, AC-11, AC-17, AC-43, AC-48, AC-51 and K1, K3 hardening.
30
+ - **new** `tests/fixtures/two-session-harness.ts` — reusable harness for the next 47 ACs (collision scenarios, lock-takeover races, reconciliation matrix, etc.).
31
+ - **new** `docs/specs/PARALLEL-DEV-ISOLATION-SPEC.md` (789 lines, 63 ACs) — the converged spec.
32
+ - **new** `docs/specs/reports/parallel-dev-isolation-convergence.md` + `_drafts/parallel-dev-isolation-iter{1,2}-findings.md` — convergence trail.
33
+
34
+ ## Decision-point inventory
35
+
36
+ 1. **Default-off, opt-in wiring**: `SessionManager.setWorktreeManager` is a separate setter, not a constructor arg. Rationale: this change ships the subsystem but does NOT flip every existing session onto it. Composition-root code decides when to enable. Prevents an invisible behavior change for agents that haven't updated.
37
+ 2. **Authoritative push gate = GitHub Ruleset + required Action check, not local pre-push**: iter-2 surfaced that local pre-commit/pre-push can be bypassed with `--no-verify`. The actual authority is offline Ed25519 verification on the GH side. The local gate is for fast feedback only; the trailer must verify at origin or the push is rejected.
38
+ 3. **Ed25519, not HMAC**: iter-3 swap. HMAC required the verifier to hold the signing key — infeasible for a GH Action running in untrusted environments. Ed25519 pubkey baked into the Action + repo variable = offline verify with no secret material in the runner.
39
+ 4. **Fencing token instead of simple lock**: a session that crashes with its lock held must be takable-over. Fencing token (monotonic per-worktree counter, server-generated) means even if the crashed session comes back, its stale operations carry an older fencing token and get rejected by the preflight.
40
+ 5. **FS snapshot before force-take stash**: `git stash -u` misses ignored files (`.env`, local keys, build artifacts). The spec adds a tarball snapshot at `.instar/worktrees/.snapshots/<topicId>-<ts>.tar` with chmod 0600 so nothing is lost on force-take.
41
+ 6. **Binding history is Merkle-chained**: prevents a malicious or buggy session from rebasing away nonces that protect replay detection. Each entry commits to its predecessor's hash.
42
+ 7. **cp -al REMOVED entirely**: iter-3 platform-matrix finding — macOS BSD cp has no `-l`, and inode aliasing breaks isolation (a destructive op in one worktree corrupts the other). Replaced with platform-specific fast-copy: APFS clonefile syscall, Linux `--reflink=auto`, fallback to per-file copy with warning.
43
+ 8. **Reaper is two-phase (quarantine, then delete)**: sessions that die during a multi-day task (laptop closed, OS update) get a 7-day grace window. Only after the grace period does the worktree get deleted.
44
+ 9. **Verify-nonce route mounted BEFORE bearer auth**: middleware ordering bug (K16) — if mounted after, the bearer-auth would reject the OIDC request before it reached the OIDC verifier. Now OIDC verify comes first, returns uniformly-shaped errors to prevent side-channel information leak.
45
+ 10. **OIDC route is rate-limited and oracle-protected**: 60 req/min per-IP, uniform error response on every failure (unknown repo, bad signature, nonce replay, etc.) — prevents attackers from probing "is this repo enrolled" via differential error.
46
+
47
+ ## 1. Over-block review
48
+
49
+ - **Pre-commit gate fails open to warn, not block**: iter-2 finding — if the local instar server is down and the pre-commit gate hard-blocks, every commit stops. Failure mode must be fail-open-with-warning for local, fail-closed for origin. This is why the local gate is advisory and the GH Action is authoritative.
50
+ - **Opt-in wiring prevents implicit migration**: no existing session gets moved into a worktree until `setWorktreeManager` is called. Operators opt in deliberately.
51
+ - **Reaper grace period is 7 days**: a long-vacation session is not over-blocked into deletion.
52
+ - **Empty-trailer commits still go through on the local path**: the `/commits/preflight` endpoint returns `{allow: true, reason: 'no-binding'}` for commits outside a worktree binding (main tree, release commits, etc.). The ONLY commits that are trailer-required are commits inside a worktree binding — everything else is unaffected.
53
+
54
+ ## 2. Under-block review
55
+
56
+ - **`--no-verify` bypasses local hooks**: that's git's intrinsic behavior and can't be blocked client-side. The GH Ruleset makes this visible (unsigned trailer → push rejected at origin) without relying on client cooperation.
57
+ - **Shim bypasses (alias-override, PATH-manipulation, direct `/usr/bin/git`)**: the mandatory shim injection in `SessionManager.spawnSession` sets both PATH and BASH_ENV. BASH_ENV sources `.shellrc` which defines bash functions overriding any user-shell aliases. Direct-call to `/usr/bin/git` is possible but the iter-3 audit accepted this as a "not trying to defeat the user, just preventing accidents" model — a defense-in-depth supplement (K8) is tracked but not shipped in this PR.
58
+ - **Destructive-command-shim snapshots before execution**: if snapshot fails, the command is blocked. Prevents the "lost work via `rm -rf .`" failure mode the shim is named for.
59
+ - **Fencing token prevents stale-session re-execution**: a crashed session that comes back after force-takeover gets rejected at preflight.
60
+
61
+ ## 3. Level-of-abstraction fit
62
+
63
+ - **Domain**: `WorktreeManager` owns bindings, locks, Ed25519 signing, state reconciliation. No HTTP knowledge.
64
+ - **Transport**: `worktreeRoutes.ts` owns HTTP shape. No business logic beyond request unwrap / response shape.
65
+ - **Composition**: `AgentServer` wires the subsystem. Pure plumbing.
66
+ - **Integration**: `SessionManager` is the one touch-point into the existing session lifecycle — specifically `spawnSession`, the one place every session flows through. Minimal surface area.
67
+ - **Client**: the 3 scripts (precommit, commit-msg, shim) are client-side enforcers. They are thin HTTP callers; they don't duplicate server logic.
68
+
69
+ Matches the pattern established by `BackupManager` (domain) + `backupRoutes.ts` (transport) + `commands/server.ts` (composition) + pre-push hook (client).
70
+
71
+ ## 4. Signal-vs-authority review
72
+
73
+ - **The local pre-commit gate emits a signal, not an authority**: it warns the user but does not block. The authority layer is the GH Action.
74
+ - **The GH Action is the authority**: it has blocking power because it runs in a verifiable environment (GitHub-hosted runner) with a known-good verifier (Ed25519 pubkey baked into the Action) and cannot be `--no-verify`'d.
75
+ - **The destructive-command-shim IS authoritative for local**: this is intentional. Destructive commands are unrecoverable; the cost of a false-negative (lost work) exceeds the cost of a false-positive (user has to retry). Blocking on snapshot failure is the correct signal-vs-authority split.
76
+ - **The fencing token is authoritative for server-side operations**: bindings, resolve, release, force-take all hard-reject stale tokens. These are not signals — a session with a stale token represents state divergence that must be stopped cold.
77
+
78
+ Pattern followed: brittle local-side hooks emit signals; server-side and GH-side gates have authority. Aligns with the feedback rule "Signal vs authority separation — Brittle/low-context filters detect and emit signals. Only a higher-level intelligent gate with full context has blocking authority."
79
+
80
+ ## 5. Interactions review
81
+
82
+ - **Existing PR-gate / pr-pipeline**: orthogonal — PR gate is about PR hygiene, worktree isolation is about source-tree collision prevention. Does not modify any PR-gate code path.
83
+ - **BackupManager**: `.instar/worktrees/` and the new `data/worktree-bindings.json` are picked up by default glob. `.instar/worktrees/.snapshots/` contains potentially-sensitive tarballs (they capture `.env`) — explicitly gitignored, explicitly chmod 0600, explicitly excluded from backups via a BLOCKED_PATH_PREFIXES entry (documented in K20, not shipped yet).
84
+ - **SessionManager.spawnSession**: single touch-point, default-off via setter. Existing non-wired paths unchanged.
85
+ - **JobScheduler**: WorktreeReaper is a JobScheduler job (daily sweep). Uses the existing primitive; no new scheduling infrastructure.
86
+ - **Telegram / dashboard**: neither is touched by this change. (Dashboard surfacing is a follow-up — see R-questions in the spec.)
87
+ - **Existing `.husky/pre-commit` gate**: the worktree-precommit-gate is a separate script that can be called as an additional step; does not replace or conflict with the /instar-dev enforcement gate. Both co-exist.
88
+ - **Git hooks layering**: commit-msg hook (this change) runs after pre-commit hook (existing `.husky/pre-commit` + `scripts/instar-dev-precommit.js`). Ordering is safe — sig-trailer injection at commit-msg doesn't mutate staged content.
89
+
90
+ ## 6. External surfaces
91
+
92
+ - **HTTP API**: 8 new routes, 7 behind bearer auth, 1 behind OIDC (mounted pre-auth). All under `/worktrees/*`, `/commits/preflight`, `/commits/sign-trailer`, `/gh-check/verify-nonce`.
93
+ - **Git hook surface**: 2 new hooks (precommit gate, commit-msg). Client-side, user can disable with `--no-verify` — covered by GH-side authority.
94
+ - **Destructive-command surface**: PATH shim + BASH_ENV function overrides. Per-session scoped. No global install.
95
+ - **File system**: `.instar/worktrees/<topicId>/` directories, `.instar/worktrees/bindings.json`, `.instar/worktrees/binding-history-log.jsonl` (Merkle-chained), `.instar/worktrees/.snapshots/` (chmod 0600). All under existing `.instar/` state root.
96
+ - **GitHub surface**: 1 new workflow file, 1 new verify script, 1 new ruleset installer. Rulesets require human-approved PAT to install (scripted, not run by this build).
97
+ - **OS keychain surface**: `WorktreeKeyVault` writes the Ed25519 private key to keychain under `instar-worktree-signing-key-<machineId>`. Falls back to encrypted flat file if keychain unavailable.
98
+
99
+ ## 7. Rollback cost
100
+
101
+ - **Subsystem rollback**: `git revert <this commit>` removes all new files and reverts SessionManager + AgentServer. The two touch-points are additive (setter + conditional route mount), so reverting them preserves all existing behavior. Any session that was using worktrees falls back to main-tree mode at next restart.
102
+ - **State rollback**: `.instar/worktrees/` directory can be removed manually (`rm -rf .instar/worktrees/`). Bindings file is the single source of truth; deleting it orphans actual git worktrees, but `git worktree prune` + `git worktree remove` cleans them up. No DB migrations, no external state.
103
+ - **GH ruleset rollback**: not yet installed; the installer script is in this PR but not run. When it IS run (operator-gated), rollback is via the gh-ruleset-install.mjs --uninstall flag (separate concern).
104
+ - **Key rollback**: Ed25519 key in keychain can be regenerated. Old signatures become unverifiable but existing commits have already merged and aren't re-verified.
105
+
106
+ ## Conclusion
107
+
108
+ Ships a new subsystem that is off-by-default (opt-in via `setWorktreeManager`), has no blocking authority at the local layer (signal only — authority lives in GH Action + ruleset), and has been through 4 iterations of convergent review with 4 internal reviewer personas and 3 external models (GPT, Gemini, Grok). 20 unit tests covering 10 ACs + 2 critical known-issue mitigations, all passing. `tsc --noEmit` clean.
109
+
110
+ 20 known-issue items (K1–K20) are documented in the spec under "Pre-Day-0 hardening." K1 (headless passphrase), K2 (tunnel URL hash-pin), K3 (Merkle-chained log) are addressed in the shipped code. The remaining 17 items are either pre-Day-0 operator concerns (ruleset installation, key distribution) or post-Day-0 defense-in-depth (alternate-shim detection, snapshot tarball encryption-at-rest).
111
+
112
+ 13 R-questions remain open for the user to decide — documented in the spec's "Open questions" section. None block ship.
113
+
114
+ ## Evidence pointers
115
+
116
+ - Spec (converged): `docs/specs/PARALLEL-DEV-ISOLATION-SPEC.md` (789 lines, 63 ACs).
117
+ - Convergence report: `docs/specs/reports/parallel-dev-isolation-convergence.md` (4 iterations × 7 reviewers = 25 review passes).
118
+ - Iter drafts: `docs/specs/reports/_drafts/parallel-dev-isolation-iter{1,2}-findings.md`.
119
+ - Unit tests: `tests/unit/WorktreeManager.test.ts` (12 pass), `tests/unit/WorktreeKeyVault.test.ts` (5 pass), `tests/unit/WorktreeManager-merkle.test.ts` (3 pass).
120
+ - Two-session harness: `tests/fixtures/two-session-harness.ts` (reusable fixture for the next 47 ACs).
121
+ - Day -2 migration: `scripts/migrate-incident-2026-04-17.mjs` — recovers the exact 2026-04-17 incident onto a dedicated recovery branch.
122
+ - `npx tsc --noEmit` — clean.
123
+
124
+ ## NOT shipped in this PR (operator-gated follow-ups)
125
+
126
+ - **Day -2 PR**: the incident migration requires 4-eyes review before the stash-replay commit lands. Script is ready; execution awaits human PAT.
127
+ - **Live GH ruleset installation**: installer script is ready; execution requires authenticated PAT with org-admin scope.
128
+ - **Composition-root wiring**: `commands/server.ts` is NOT modified in this PR. The subsystem is shipped but not yet enabled in the default boot path — operators enable via a config flag in a follow-up (tracked in spec §"Rollout plan").
129
+ - **47 remaining ACs**: the shipped 16 cover architecture validation. The remaining 47 are coverage expansion (concurrency edge cases, multi-machine reconciliation scenarios, reaper edge cases). The two-session harness is in place to land them incrementally.