twin: PR #31 full-matrix run (route.closing/route.closed)

Closed
UA
3mo ago
+937-64

Internal twin of #31 (fork PRs skip the Rust matrix). Head e9cdca5d... verbatim; merges via #31, this closes unmerged.


View with [code]smith Autofix with [code]smith
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 ClientControlPush with route.closing and route.closed, reasons: reload/restart/disable/crash; updates catalog.list and server.describe ops; bumps subc-control to 0.4.0 and subc-core to 0.6.0 (and crates/subc-client-rs depends on subc-control 0.4).
  • Supervisor/control emit one lifecycle push per client connection (deduplicated across routes), send route.closed even if the quiescence wait fails, and still release routes and send GOODBYEs; crash teardown emits route.closed { drained:false, abandoned:0 } without a preceding route.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_AFTER to 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-control 0.4.0. Clients must parse channel-0 ClientControlPush frames and handle route.closing/route.closed (or ignore unknown channel-0 ops without error); do not infer drained from route state — use the value provided.