CI run for PR #10 (fork PRs don't trigger the Rust matrix)

Closed
UA
3mo ago
+2006-57

Internal twin of #10 (iceteaSA's stderr-tail feature) to run the full CI matrix — fork PRs only get Socket/cubic here, so the Rust legs never ran. Closes after the verdict; the merge happens on #10 itself.


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 a bounded per-module stderr tail retained in subc-core and exposes it via a new control op and ck verb, so crash causes remain readable even if the daemon log rotated. Previously stderr only went to the daemon’s inherited fd; now each module’s stderr is piped into a ring buffer and still forwarded verbatim to the daemon log.

  • New control op: supervisor.stderr_tail. Request takes module_id and optional max_lines/max_bytes; response returns capture state (captured/incomplete/not_captured), entries (lines with truncated flag and in-band process_start markers), and dropped_lines.
  • Supervisor behavior: pipe child stderr, run a pump that retains a bounded tail (per-line truncation; ring survives restarts), drains the old pump on restart before inserting a boundary, and records reasons for incomplete/uncaptured tails; stdout remains inherited.
  • CLI: ck module stderr <id> [-n <count>] prints the retained tail (with dropped count header, truncation markers, and not-captured/incomplete messages). --json returns raw wire.
  • Review focus: core logic in subc-core/src/stderr_tail.rs; spawn/monitor changes in subc-core/src/supervise.rs; RPC handler in subc-core/src/control.rs; wire types and goldens in subc-control. No migrations required; server.describe now advertises supervisor.stderr_tail.