Skip to content

fix(chat-swarm-runtime): wait for bootstrap-ready turn - #186

Merged
James3014 merged 3 commits into
mainfrom
issue-117-wave4-bootstrap-quiescence
Sep 17, 2026
Merged

James3014 merged 3 commits into
mainfrom
issue-117-wave4-bootstrap-quiescence

Conversation

@James3014

@James3014 James3014 commented Sep 17, 2026

Copy link
Copy Markdown
Owner

Issue #117 Wave 4 G2 exposed a provisioning handoff race on the exact deployed macOS managed-CDP carrier. The first managed conversation was created and durably bound to an exact conversation URL, but the runtime immediately sent the @dev bootstrap turn without first proving the initialization turn had completed; the slot then timed out with PEER_IDENTITY_UNRESOLVED and the exact target was no longer present for reconciliation.

This Candidate keeps the existing managed Chrome carrier, durable conversation/peer identity split, admission rules, and no-blind-retry semantics. It adds one bounded quiescence gate: after the initialization turn creates the exact conversation identity, provisioning waits until that same exact conversation is no longer generating, still has a composer, and has an assistant READY_FOR_BOOTSTRAP response before returning the identity to the bootstrap phase. Regression coverage fixes the required provision→idle→bootstrap ordering and the exact assistant-selector oracle.

Current exact head is cac3e0c1abd9f7889cc85c33630631206b30d7d0. Its production change remains the Wave 4 quiescence delta from main@30379ad27c491ee1a93fbed9643fcf5b87809015; the final recovery commit changes only src/chat-swarm-runtime.test.ts after the prior local commit attempt was physically proven to have produced no commit or push. The PR as a whole changes only src/chat-swarm-runtime.ts and src/chat-swarm-runtime.test.ts. git diff --check passes locally. Frozen local dependency sync is currently blocked by the paired-carrier prerequisite, so exact-head GitHub CI is the mandatory dependency-backed verifier before merge.

@James3014
James3014 merged commit 1cb8b42 into main Sep 17, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant