carlos / platform Public

spec: #892 rev 2, record the Plan 4 controller's boundary reply

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 2d7fcb29b674ee3084ebb29fd24100031997f2d5 parent 8f2aa3a
1 file changed, +10 −2
  • docs/superpowers/specs/2026-11-11-stateless-replicas-production-scale-design.md +10 −2

CI failed — run details

diff --git a/docs/superpowers/specs/2026-11-11-stateless-replicas-production-scale-design.md b/docs/superpowers/specs/2026-11-11-stateless-replicas-production-scale-design.md
index bb814d225..342f4f8a6 100644
--- a/docs/superpowers/specs/2026-11-11-stateless-replicas-production-scale-design.md
+++ b/docs/superpowers/specs/2026-11-11-stateless-replicas-production-scale-design.md
@@ -267,7 +267,12 @@ cover. It comes back if the drill or production shows the need (§9 Q3).
- #892 does not touch `stateless-replicas-4` or any file Plan 4 lists until
Plan 4 merges.
- Plan 4 Task 4 is #892's S2, built after Plan 4 merges.
-- S1 is independent: Plan 4 does not touch the rootfs environment.
+- S1 is independent: Plan 4 does not touch the rootfs environment
+ (`rootfsenv.go`, `rootfs.go` and `backend_rootfs.go` are in no Plan 4
+ task or commit). It reads only the size the agent already resolves
+ (`SizedLimit` through the generation's tier) and has no replica logic,
+ as the Plan 4 controller asked. It stays out of the activator's
+ stateless, rootfs release and swap files while Task 2 is in flight.
- S3's drain swap changes Plan 4's swap code, so it is built after Plan 4
merges.
@@ -285,7 +290,10 @@ instances or worker-only copies. Recommended; it is §5.4's choice carried
to production.
Q2. The drain swap for copies above 1 at fleet sizes (S3), chosen by
-settings rather than by how full the box is. Recommended.
+settings rather than by how full the box is. Recommended. The Plan 4
+controller's framing was "copies above half a box"; a threshold on the
+box's budget is the alternative, and is also fixed by settings, but it
+leaves an overlap that other apps' copies can still crowd out.
Q3. No platform limit per process for now (§5). Recommended; the
alternative is a per-worker memory share at root, about one plan's work.