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 016577e
Browse filesBrowse the repository at this point in the historyBrowse files
P7 cleanup per #1478's ratified defer decision: delete the daemon-modularity
proposal, module-interface-principles (durable kernel folded into CONTEXT.md),
the pre-package Maestro debt map, and the daemon-boundary prototypes with their
package scripts; refresh CONTEXT.md's R10 bullet to post-arc state. Also
reconciles the interaction façade symbol pin with #1570's wait symbols, which
had left check:layering red on main via #1570 × #1574 branch-race skew.
Co-Authored-By: Claude Fable 5 <[email protected]>
and no logical module may deep-import another module's `internal/` tree. These are migration
327
+
it. This per-zone ratchet is intentionally stricter than R9's ordinary total-growth rule: even
328
+
moving cycle membership into a zone at its ceiling must be justified by lowering another ceiling
329
+
or changing the baseline explicitly. The #1478 extraction arc (P0–P5) completed against these
330
+
ratchets: engines live behind the `packages/{maestro,replay-test,ad-replay}` façades, engines
331
+
cannot import daemon/platform/provider implementations, and no logical module may deep-import
332
+
another module's `internal/` tree. The P6 platform-modularity phases were measured and deferred
333
+
at the #1478 checkpoint (2026-08-04): the Apple perf edge no longer participates in any cycle,
334
+
so the remaining R9 work sits at the command-registration hubs, not the platform seam. These are
333
335
ratchets, not permission to scaffold façades before a real seam has two adapters.
334
336
- Zero-dep CI jobs (R8). Some jobs run scripts straight from a checkout with `install-deps: false`,
335
337
so they have no `node_modules`. Nothing local can feel that constraint — every dev machine has
@@ -375,6 +377,21 @@ when landing it, satisfy the gate where one exists.
375
377
(#1409) was closed unmerged. A new abstraction layer needs a demonstrated second consumer or
376
378
axis of change. The one gated slice of this norm is tests: CI forbids test-only DI seams — a
377
379
missing seam gets added as a real one or not at all.
380
+
-**Module seams** (the #1478 extraction's durable rules). State crosses seams as immutable
381
+
values, authority crosses as capabilities, and both only narrow; a seam exists when its port has
382
+
two real adapters (normally the daemon adapter and a deterministic in-memory adapter running the
383
+
same contract suite), otherwise it is indirection. Calls go down through module façades and back
384
+
through ports; no inter-module event bus — ADR 0018's journal is an observation channel, never a
385
+
coordination mechanism. No engine receives `DaemonRequest`, `DaemonError`, `SessionStore`,
386
+
mutable `SessionState`, provider handles, or concrete platform implementations; the daemon
387
+
adapter closes each capability over one already-admitted request, so an engine cannot express a
388
+
session name, acquire a lock, or select a provider scope. Session state keeps three consistency
389
+
disciplines distinct and never forces them through one generic transaction: immediate pessimistic
390
+
transitions for ref/observation lineage (ADR 0014's mid-request expiry is why end-of-request
391
+
commit/rollback is rejected), staged arm/complete/close-succeeded/commit-or-abort protocols with
392
+
operation-keyed receipts for repair/publication (ADR 0012/0016), and append-only facts for
393
+
recorded actions and diagnostics. Gates: R10 zero-count module policies, R11 package boundaries,
394
+
the façade symbol pins, and R7 ownership.
378
395
-**Tests couple to stable interfaces.** Norm (see [Testing Principles](#testing-principles))
379
396
backed by the test-only-DI-seam gate above; broader test-strength enforcement is planned, not
380
397
present — tracked under [#1412](https://github.com/callstack/agent-device/issues/1412).
@@ -433,7 +450,7 @@ the observable freshness and failure semantics below before any runtime refactor
0 commit comments