CI twin for PR #23 (r2)

Closed
UA
3mo ago
+597-20

Fresh twin for iceteaSA's #23 at d0f9e6bf (+retrigger empty commit): PR #25 stopped receiving CI runs on synchronize/reopened events.


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

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: returns TerminalHistory with daemon_started_at_ms, ordered entries (each with exit_code, exit_signal, at_ms, disposition), and dropped count; 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; SupervisorEntry now includes optional last_exit_ms.
  • Versions: subc-control -> 0.2.0, subc-core -> 0.4.0; crates/subc-client-rs depends on subc-control 0.2.
  • Tests/golden: new golden for supervisor.terminals; updated op catalogs and supervisor entries; tests document that fake-aft-stub must be built via cargo test -p subc-core.

Migration

  • Consumers of supervisor.list should handle optional last_exit_ms.
  • Clients calling supervisor.terminals must depend on subc-control 0.2 and pass module_id.