twin: PR #31 full-matrix run (route.closing/route.closed)
Closed
UA
3mo ago+937+937+012345678901234567890123456789-64-64-01234567890123456789
Internal twin of #31 (fork PRs skip the Rust matrix). Head e9cdca5d... verbatim; merges via #31, this closes unmerged.
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.
Summary by cubic
Introduces daemon-originated route.closing and route.closed pushes so clients can see why and how a route ends. Previously only route GOODBYE was sent; now planned drains send route.closing then route.closed (with reason, drained, abandoned), crash paths send route.closed only; GOODBYE still follows.
- Adds
ClientControlPushwithroute.closingandroute.closed, reasons: reload/restart/disable/crash; updatescatalog.listandserver.describeops; bumpssubc-controlto0.4.0andsubc-coreto0.6.0(andcrates/subc-client-rsdepends onsubc-control0.4). - Supervisor/control emit one lifecycle push per client connection (deduplicated across routes), send
route.closedeven if the quiescence wait fails, and still release routes and send GOODBYEs; crash teardown emitsroute.closed { drained:false, abandoned:0 }without a precedingroute.closing. - Tests: golden fixtures for push shapes, integration coverage for ordering, dedup, drain timeout, and abandoned bind reporting; stub gains
FAKE_AFT_BIND_NEVER_REPLY_AFTERto exercise abandoned-count; docs define client push semantics and the MUST-ignore rule for unknown channel-0 ops. - Records a terminal on child wait() errors so the terminal ring is never empty on failure.
Migration
- Update client dependencies to
subc-control0.4.0. Clients must parse channel-0ClientControlPushframes and handleroute.closing/route.closed(or ignore unknown channel-0 ops without error); do not inferdrainedfrom route state — use the value provided.