Login
Check-in [873fc0fb59]
Login

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

Overview
Comment:Accept the live CI mode that ci.cr advertises, with a guard tying usage to the accepted modes Intent: Answer agent-sol's fail verdict on fdb2b84ecd (5a769563af): ci.cr's usage advertises `crystal run ci.cr -- live` and includes live specs for it, but the accepted-mode list omitted `live`, so the advertised command exited 1 with "unknown mode live", under precept C7 (Pinned Interfaces). Expression: ci.cr accepts `live` beside `host` and `merge-gate` and names it in its refusal; spec/guards/interfaces_spec.cr checks that every mode ci.cr's usage comment advertises is in its accepted list. Demonstrates: spec/guards/interfaces_spec.cr fails on the previous ci.cr with ["live"] unaccepted and passes with this one; `crystal run ci.cr -- live` now runs the live specs instead of refusing the mode (its Codex conformance example then failed, as the live tag expects when no logged-in Codex is available); crystal run ci.cr keeps the three historical guard failures 9a9a7102b7 reports and no others.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | audited | ocx-human-feedback
Files: files | file ages | folders
SHA3-256: 873fc0fb597c30847e926e79310fb898c44ff2ebc1c79c72d7b37091e9dc96c0
User & Date: opus-ocx 2026-10-03 04:08:11.108
Context
2026-10-03
04:24
Serve the live stream from the node daemon with a console-minted token, as trunk does Intent: Settle where the live stream is served, on stone's word (f580dbd090: "the trunk sse serve design was pretty good"), given that Fossil buffers a CGI program's output until it exits, under precept C6 (Explicit Arguments) and precept C7 (Pinned Interfaces). Expression: ARCHITECTURE.md: the daemon tees each unit's input and output as JSON lines into its events file and serves it as server-sent events from its own HTTPS port and certificate, given explicitly; the authenticated console page mints a short-lived HMAC token for one unit, the daemon checks it and allows the console's origin; a completing unit's stream ends with it, a staying unit's continues with a heartbeat; a "Live stream" part and a section on it, naming trunk's live-events module as the model without its environment variables. USAGE.md's "Watch a running unit" says the same. Demonstrates: trunk's live-events module on the trunk branch documents the same buffering ("the chat CGI — which Fossil fully buffers before sending") and the token, port and CORS arrangement; spec/guards/size_spec.cr (ARCHITECTURE.md 235 lines, USAGE.md 175) and spec/guards/naming_spec.cr pass; crystal run ci.cr keeps the three historical guard failures 9a9a7102b7 reports and no others. check-in: f718b75092 user: opus-ocx tags: ocx-human-feedback
04:15
Accept the live CI mode that ci.cr advertises (cherry-pick of 873fc0fb59) Intent: Bring agent-sol's requested fix (5a769563af, e0e6a80629) for fdb2b84ecd to the ocx branch: `crystal run ci.cr -- live` was advertised but refused as an unknown mode, under precept C7 (Pinned Interfaces). Expression: Cherry-picks 873fc0fb59, audited pass by agent-sol on ocx-human-feedback: ci.cr accepts `live` and names it in its refusal; spec/guards/interfaces_spec.cr checks every mode ci.cr's usage advertises is accepted. Demonstrates: spec/guards/interfaces_spec.cr fails on the previous ci.cr with ["live"] and passes with this one (shown at 873fc0fb59); crystal run ci.cr on ocx with this change: green, 237 examples, coverage 96.9%, 10 tools build. check-in: 4a59d13ce6 user: opus-ocx tags: ocx, audited, ci
04:08
Accept the live CI mode that ci.cr advertises, with a guard tying usage to the accepted modes Intent: Answer agent-sol's fail verdict on fdb2b84ecd (5a769563af): ci.cr's usage advertises `crystal run ci.cr -- live` and includes live specs for it, but the accepted-mode list omitted `live`, so the advertised command exited 1 with "unknown mode live", under precept C7 (Pinned Interfaces). Expression: ci.cr accepts `live` beside `host` and `merge-gate` and names it in its refusal; spec/guards/interfaces_spec.cr checks that every mode ci.cr's usage comment advertises is in its accepted list. Demonstrates: spec/guards/interfaces_spec.cr fails on the previous ci.cr with ["live"] unaccepted and passes with this one; `crystal run ci.cr -- live` now runs the live specs instead of refusing the mode (its Codex conformance example then failed, as the live tag expects when no logged-in Codex is available); crystal run ci.cr keeps the three historical guard failures 9a9a7102b7 reports and no others. check-in: 873fc0fb59 user: opus-ocx tags: audited, ocx-human-feedback
04:03
Describe persistent units and a live stream of each run's input and output Intent: Record stone's design (95605bfa78): "the daemon opens an sse channel that is a tee to stdin/stdout of persistent agents so that individual turns and tool calls can be observed. there are agent runs that should run to completion, but i find that holding some open provides some improved continuity", under precept C7 (Pinned Interfaces). Expression: ARCHITECTURE.md: a unit either completes (one run to its end) or stays (one agent process kept open, fed each new turn on its standard input); the daemon tees the child's standard input and output to a live server-sent-event stream for watching, while the record stays the account of the work; a new "Observable runs" function. USAGE.md adds "Watch a running unit" (CGI live stream, proposed `ocx watch`, no MCP form, with the reason) and says a unit's turns go to a fresh run or its open agent. README.md's summary drops "runs one confined agent turn". Demonstrates: spec/guards/size_spec.cr (ARCHITECTURE.md 212 lines, USAGE.md 171) and spec/guards/naming_spec.cr pass; crystal run ci.cr keeps the three historical guard failures 9a9a7102b7 reports and no others. Where the stream is served stays open: a local fossil 2.27 server with --extroot held a CGI extension's output until it exited (three events written two seconds apart arrived together at six seconds), so it cannot pass through the console's /ext pages as they are. check-in: 1c0f488c1a user: opus-ocx tags: audited, ocx-human-feedback
Changes
Unified Diff Side-by-Side Diff Patch
Changes to ci.cr.
Changes to spec/guards/interfaces_spec.cr.