Skip to content

Harden runtime supervision and add native supervisor slice#206

Merged
arach merged 4 commits into
mainfrom
codex/native-supervisor-runtime-slice
Jun 7, 2026
Merged

Harden runtime supervision and add native supervisor slice#206
arach merged 4 commits into
mainfrom
codex/native-supervisor-runtime-slice

Conversation

@arach
Copy link
Copy Markdown
Owner

@arach arach commented Jun 6, 2026

Summary

  • Reduce broker endpoint heartbeat churn by refreshing liveness in memory without durable event writes when only lastSeenAt changes.
  • Harden long-lived runtime/service shutdown paths with signal forwarding, bounded child/server shutdown, and launchd stop waits.
  • Add the stdlib-only Rust openscout-supervisor crate plus the numbered SCO-062 engineering proposal and npm scripts.
  • Add openscout-supervisor supervise as the long-running launchd daemon mode: launchd starts the Rust supervisor, the supervisor starts Bun base as a child, restarts it with bounded backoff, handles shutdown, and writes supervisor-state.json for status/doctor.

Verification

  • bun install --frozen-lockfile
  • bun -e 'JSON.parse(await Bun.file("package.json").text()); console.log("package.json ok")'
  • bun test packages/runtime/src/broker.test.ts packages/runtime/src/claude-stream-json.test.ts
  • npm --prefix packages/runtime run check
  • git diff --check
  • bun run supervisor:check attempted, but this machine has no cargo/rustc/rustfmt on PATH, so Rust compilation was not run locally.

Notes

  • No generated Rust outputs are included: no target/ and no Cargo.lock yet.
  • The npm install path remains CLI-style; runtime users should not need Rust. The Rust toolchain is only needed for developers editing/building the supervisor until prebuilt packaging is added.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openscout Ready Ready Preview, Comment Jun 7, 2026 12:34am

@arach arach force-pushed the codex/native-supervisor-runtime-slice branch from 60e710c to 428d7a0 Compare June 7, 2026 00:34
@arach arach merged commit b28fb5c into main Jun 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant