CI twin for PR #23 (r2)
Closed
UA
3mo ago+597+597+012345678901234567890123456789-20-20-01234567890123456789
Fresh twin for iceteaSA's #23 at d0f9e6bf (+retrigger empty commit): PR #25 stopped receiving CI runs on synchronize/reopened events.
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.
Summary by cubic
Adds bounded per-module terminal history and a new way to read it, so operators can see child exits and dispositions even when the supervisor command channel is closed. Also exposes the most recent exit timestamp in supervisor listings.
- New control op
supervisor.terminals: returnsTerminalHistorywithdaemon_started_at_ms, orderedentries(each withexit_code,exit_signal,at_ms,disposition), anddroppedcount; served off the supervisor command channel to remain available during supervisor failure. - CLI:
ck module terminals <id>shows the retained exits; help text updated. - Core: per-module
TerminalRing(default capacity 32) records exits at drain/stop/crash with Unix ms timestamps and selected disposition;SupervisorEntrynow includes optionallast_exit_ms. - Versions:
subc-control->0.2.0,subc-core->0.4.0;crates/subc-client-rsdepends onsubc-control0.2. - Tests/golden: new golden for
supervisor.terminals; updated op catalogs and supervisor entries; tests document thatfake-aft-stubmust be built viacargo test -p subc-core.
Migration
- Consumers of
supervisor.listshould handle optionallast_exit_ms. - Clients calling
supervisor.terminalsmust depend onsubc-control0.2and passmodule_id.