server: dispatch, wait, claim and done, the tools that hand work between sessions #87
Loading…
Reference in a new issue
No description provided.
Delete branch "room-work"
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 server's side of the four tools of spec-bb1.40, stacked on #86 (
serve-files); retarget to main once it merges.HostService.Dispatch,Wait,Claim,Done(the shape proposed to roomcity-5e, who adds the host's side to theroomserver).internal/gcwork: each tool as gc's command (sling <pool> --stdin --json,session wait --on-beads,hook --claim --drain-ack --jsonthenbd show --json,bd update --notes=,bd close,runtime drain-ack), tested against a gc stub script. The claimed task is a session mark, sodone(result)takes nothing else; a failed close leaves the task claimed and does not drain.gchandler.Handler.Exec: gc run as a session with the identity the server kept of its start;Runshares the runner.[agents.<name>] tools, checked at the server per call (PermissionDenied otherwise), and passed to the pod asROOMCITY_ROOM_TOOLSfor the host to register.Shapes read from gc's source, not run: that
gc session waittakes the session fromGC_SESSION_ID(it does, cmd_wait.go) and thatbd show --jsonprints a list of beads. The sandbox run shows them.Open: after
waitthe foreman is nudged that the task closed and reads the worker's notes withgc bd show, which asks the owner. A fifth tool that returns the result, or the nudge carrying it, would remove that; not decided here.e2744e76ffbf1869a164