Repository navigation
feat(chat-swarm): add transport-neutral Worker Auto Compact planner (#51-B/C source) #126
Description
Parent / purpose
Child of #51 / #104. This issue owns the transport-neutral Worker Auto Compact source slice only after #120 / PR #122 established deterministic continuation.
Exact source base at creation: main@5256c40f56bbfd5a7eff7737ecf54da4b0359c4d.
Scope
Implement only:
context-pressure observation
-> compactRequired decision
-> safe-boundary / reconciliation gate
-> bounded continuity capsule
-> non-authorizing replacement-carrier intent
This child MUST consume the merged #120 continuation seam and MUST NOT:
- create/open ChatGPT conversations;
- implement browser/CDP/OpenCLI carrier control;
- create a second worker/task/continuation ledger;
- move task authority into browser/session state;
- claim live A->B rollover or P0: implement macOS zero-touch ChatGPT worker runtime pool #117 completion.
#117/#105 remains owner of real replacement-carrier creation/wake/recover. The output of this slice is source material that #117 can consume before requesting a replacement carrier.
Pressure contract
- exact ChatGPT token telemetry is unavailable unless a supported host-native signal explicitly supplies it;
- estimated pressure must remain labeled
ESTIMATEDwith provenance; - only host-native evidence may be labeled
EXACT; - configured threshold is bounded and explicit; no hidden hard-coded token truth;
- pressure alone never authorizes carrier transfer.
Safe-boundary contract
At/above the configured threshold:
AVAILABLE+ no current task + valid checkpoint + no pending continuation/unknown effect => prepare allowed;- busy/current task => wait for safe boundary;
RECONCILE_REQUIRED, unknown effect, or unresolved continuation => reconciliation block;- missing checkpoint => checkpoint block;
- no state may auto-requeue/retry an uncertain task.
Capsule contract
Capsule must be bounded/versioned/hash-bound and structurally limited to:
- swarm/worker identity;
- source continuation epoch;
- checkpoint hash only (not arbitrary raw checkpoint truth);
- pressure provenance;
- stable role instructions;
- bounded context-only summary;
- task/result/evidence refs;
- blockers;
- explicit claim ceiling.
Do not include full transcript, hidden reasoning, raw tool history/output dumps, credentials/tokens/cookies/session secrets, or stale transport state.
Verification
- focused positive/negative/hostile tests;
- estimated vs exact provenance enforcement;
- busy/reconcile/unknown/pending/missing-checkpoint blocks;
- deterministic capsule hash;
- size/ref bounds;
- existing feat(chat-swarm): deterministic worker continuation epoch transfer (#51-A) #120 continuation regressions remain green;
- macOS typecheck/test/build/Doctor;
git diff --checkthrough existing CI policy.
Owner review policy
Per Owner instruction in this workstream, no independent reviewer is required for this child. Exact-head controller verification + repository CI is sufficient. Do not mislabel Owner/controller review as independent review.
Claim ceiling
After accepted source merge only:
WORKER_AUTO_COMPACT_PLANNER_SOURCE_ACCEPTED
This does not prove real worker carrier replacement, zero-touch runtime, live Auto Compact, #51 closure, #117 closure, or #104 Ultra parity.
Activity
Merge pull request #127 from James3014/codex/issue-126-worker-auto-co…
James3014 commentedon Sep 13, 2026
2026-09-13 source acceptance — Worker Auto Compact planner
PR #127 merged normally as
main@07f5c30a6ec8fcb9bfb511cb2b76ae089d6f6244from exact accepted head82e35e79df70d18028572f7362b33bd1b1bfc99e.Accepted source contract:
ESTIMATEDvsEXACTpressure provenance; onlyHOST_NATIVEmay claim exact pressure;RECONCILE_REQUIREDfail closed;chat_swarm.worker_auto_compact_capsule.v1with checkpoint hash rather than raw checkpoint authority;CONTEXT_ONLY;NON_AUTHORIZINGand does not choose or authorize a target carrier;Exact-head CI run #212 /
34751212454:Owner previously waived independent-reviewer requirements for this workstream; no independent-review claim is made.
Accepted claim:
WORKER_AUTO_COMPACT_PLANNER_SOURCE_ACCEPTED.This is source-only. It does not prove live Auto Compact, real ChatGPT A->B carrier replacement, zero-touch carrier creation, #51 completion, #117 completion, or #104 parity.