Login
Check-in [a3fa673be0]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Feel good about the first axiom. This is trying to reset things with a solid human review.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | ocx-human-feedback
Files: files | file ages | folders
SHA3-256: a3fa673be04a8e1e3cd6ba39bebd84096f438ea45f7e6a9016b70f2434c7b854
User & Date: jkridner 2026-10-01 12:30:20.466
Context
2026-10-02
13:27
WIP check-in: 3b2e5cba50 user: jkridner tags: ocx-human-feedback
2026-10-01
12:30
Feel good about the first axiom. This is trying to reset things with a solid human review. check-in: a3fa673be0 user: jkridner tags: ocx-human-feedback
2026-09-30
15:44
The console reports the daemon's health

Purpose: the maintainer, 2026-09-30: "cgi should report daemon health".

Shape: - Daemon.health: whether one runs (its lock), its pid, when it started, the release it runs, the sessions it is the parent of (from the process table), and the end of its log. - The daemon writes the release it started from into its lock (Daemon.claim), resolved through `current` when it starts, since its command line only says `current`. - The Sessions page starts with one line, e.g. "Daemon. Running since TIME (pid N), release R; the parent of K sessions". It flags a daemon on another release than the current one. When the daemon isn't running, it says each page starts it and shows the end of its log. - /state gains a `daemon` object, and its schema follows.

Origin: opus, on the maintainer's request in the terminal. Intent: the daemon's state is seen where sessions are, and read by Stone. Expression: src/ocx/daemon.cr, tools/ocxd.cr, src/ocx/cgi_workspaces.cr, src/ocx/host_state.cr, docs/design/state.schema.json. Demonstrates: spec/ocx/daemon_spec.cr, spec/ocx/console_workspaces_spec.cr, crystal run ci.cr: - not running, health says so and the page shows its log; - running, health gives this pid, release "one" and its child session, and the page gives the line; - a daemon on release "zero" is flagged as not the current release; - CI green, 224 examples, coverage 96.3%.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UrDxZLxg3rJ9AQNcwDvo3n check-in: 6cd4d2edae user: opus tags: ocx, ci

Changes
Unified Diff Side-by-Side Diff Patch
Added WIP-README.md.