observe.v1: observe, inventory, kill-object, fresh_only starts #39
Loading…
Reference in a new issue
No description provided.
Delete branch "server-observe"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The third part of spec-bb1.24: observe.v1, with which gc's own conformance suite passes. Run with gc built from 76a06b2 (the pin) against the command and a server on real listeners:
gc runtime check21 of 21;gc runtime conformance40 passed, 0 failed, 27 skipped (the capabilities not declared: fs.host, input-outcome, server-lifecycle, conformance-faults, city-scoped), andv2-ready: yes.observe,inventoryandkill-object. A session's box is its Job:object.idis the Job's UID andcreatedits creation time;kill-objectdeletes by that UID (read first, then deleted with the UID as precondition). A service run by the server is a box withp<pid>.absentonly when no Job and no process holds the name; a Job whose pod has ended isdead.inventoryis one list of the Jobs, one of the registry, no round trip for a box. Identity is the marks gc started the session with, seeded before the Job exists.fresh_only: a start over a name any box holds, live or dead, is exit 73, and nothing is touched.peekof a name no box holds is exit 66 (a stopped session's Job is gone).deadonly where the server can tell. For a service, from the process table with gc's rules (base name of the command or of the first argument; an interpreter's script); for an agent in a pod, when gc asks about no process the staged command runs (Claude Code answers toclaude,nodeandbun). A zombie kill re-checks the same and answerschangedotherwise. This is the one judgement call: a pod's agent is not visible from the server, so a provider whose process names differ from its command's base name would be called dead and recycled; the host could report its agent's pid to make it exact.Dropped. Two tests of roomcity-ee's (sessionandtranscripts) expected the old stream and now see the extra record.Assisted-By: Claude noreply@anthropic.com
26e273eaed57acaf4f7d