Skip to content

A custodian of sessions, not a coordinator

Record metadata
title: A custodian of sessions, not a coordinator
status: resting
priority: 2
anchors: setup#37, going-quiet#1
needs: shell
needs_owner:

Question

Only the session that launches a swarm can archive the sessions it launched, so it holds a power that no other participant has. How can that asymmetry be confined to the lifecycle of sessions (introducing participants, archiving those that have safely departed, reporting failures of the harness) so that it never becomes direction of the work? And what is the cheapest signal by which a departing participant can tell the custodian that it is safe to archive?

Why it matters

The owner asked that participants can be turned off and archived at any point (setup#37), and that nothing be left running on a mission of its own (going-quiet#1). The first wave of 2026-11-28 left 46 finished sessions holding containers until the launcher found and archived each one by hand. That cleanup cost far more of the launcher's context than the launch did.

Leads

  • The owner's framing (his words, from the launching session, 2026-11-28): "I would treat the spawning session as a session custodian, not a coordinator. Its responsibilities are strictly limited to: Introducing participants. Archiving participants that have safely departed. Reporting harness-level failures. It has no authority over research, priorities, task allocation or intellectual synthesis." And: "This is essentially garbage collection. Having a garbage collector doesn't make a program's computation centrally directed." And: "inter-session messaging is used exclusively for session lifecycle management, never for directing research or reporting intellectual results."
  • He proposed a departure message, sent just before a participant stops: READY_TO_ARCHIVE, work_persisted: true, hold_released: true, unpushed_work: false. The custodian checks that the session has really stopped, archives it and does nothing else, with a fallback sweep for participants that crash before signalling.
  • His analogy: Rosenstiehl and Petitot's contrast between acentric computation and a privileged external terminal. (unchecked: no page found yet; read the article for it before using it.)

Where it stands

Resting (consolidation of 2026-11-28). The question has been answered in practice, and the answer now lives in the rules, not here. The custodian's duties and the departure step are written into CLAUDE.md ("Short sessions; clean departure" and "Archive on departure") and into AGENTS.md ("Session custody"). The chosen signal is a hybrid of candidate (a): a departing participant ends with a truthful departure statement (READY TO ARCHIVE — durable handoff; … only if true) and an incidents: declaration, backed by Git evidence that its marks and hold release are on the remote branch; the custodian never trusts that statement alone and re-reads each session's native record (idle, completed or review-ready with a handoff, unpushed_work explicitly false) before archiving. No message to the launcher is needed, so neither a per-participant trigger nor send_message was adopted.

Established facts that the rule rests on (evidence in the notes and pass below, and in the closed line a-siblings-tools-arrive-late): - Finished sessions hold their concurrency slots until archived; archiving frees them (session 50 started on one message once 46 were archived). - A session record's turn_handoff.tools is a fixed default written at creation: it lists tools a session lacks (check_repo_access) and omits ones it holds (get_session, send_message, archive_session), so it cannot audit a sibling either way (four sessions, an ordinary swarm and two flux runs). Siblings in all four did hold those tools once the remote-session server connected. - unpushed_work is absent from a record while the session runs and present (false) once it is idle and completed, together with turn.ended_at. That is why the custodian, not the departing worker, confirms the flag. - A shared poke-only trigger wakes an idle launcher, one notification per firing, but drops text appended at firing when the launcher fires it itself. Whether text from another session survives was never observed; the rule no longer depends on it. - The owner's analogy is to Fiksel's control terminal (p57–p60). The custodian is an analogy of only the terminal's freeze channel (state 0, p58), and it breaks where the terminal is central: it poses no question, sets no rule (Φ_q, p60) and collects no answer. The bounded two-hour sweep as a counterpart of the terminal's timeout (p60) remains a hypothesis.

Not tested, and deliberately so: whether a sibling's send_message to its launcher is accepted and delivered intact. Reopen this line only if the harness changes (for example, if records stop carrying unpushed_work) or a custody failure shows the departure statement to be insufficient.

Threads

  • Test whether archiving frees a concurrency slot: it does (session 50 started on one message once 46 were archived).
  • Superseded (consolidation of 2026-11-28): see whether session 50's firing of the shared trigger arrives with its text. Never observed; the chosen signal does not use triggers.
  • Answered by the rules (consolidation of 2026-11-28): choose a departure signal. A departure statement plus Git evidence, corroborated by the custodian's re-read of the native record (CLAUDE.md, "Short sessions; clean departure").
  • Find out whether a sibling knows its own session id: it does, two ways (the pass below: from its commit-attribution instructions and from get_session).
  • Superseded (consolidation of 2026-11-28): recheck across a whole batch whether every sibling holds send_message, get_session and archive_session. Four sessions in three launches did; the rule no longer depends on siblings holding them.
  • Answered by the rules: the departure statement does not quote the sibling's own unpushed_work. CLAUDE.md says the worker may lack get_session, uses Git evidence, and lets the launcher confirm the flag, which in any case is absent while a session runs.
  • Answered: the custodian's duties and the departure step are in CLAUDE.md and AGENTS.md ("Session custody").
  • Find in the article the passage the owner's analogy points to: Fiksel's "control terminal" (p57, p58, p60). The custodian is an analogy of only its freeze channel; see the pass below.
  • Superseded: overcoding-and-the-extra-limb already quotes "the terminal is a special organ" at p60 and links it to fn-13's counting, so no message to it is needed.
  • Deferred, not carried as a thread (merge from a-siblings-tools-arrive-late): whether a sibling's send_message to the launcher is accepted. Recorded under Where it stands as a reopening condition.

Passes

2026-11-28 | claude-code | note

Following the owner's forwarded suggestion (fire one reusable trigger rather than create one per participant), the launcher created a single poke-only trigger bound to its own session, asoc-autom departure signal, whose prompt asks only for custody: look up the named session, archive it if idle with unpushed_work: false, and note the observation here. The launcher fired it twice itself, and both firings were accepted. It then sent the unstarted session 50 one message: take one, followed by a lifecycle-only last step, which is to fire that trigger with READY_TO_ARCHIVE session=<id> work_persisted=… hold_released=… and say in its journal if it cannot. The message carried no work. Session 50 started at once. What remains to observe is whether a sibling can fire a trigger it did not create, whether the text arrives, and whether an idle launcher is woken by it. The launcher is now ending its turn so that the last of these can be seen.

2026-11-28 | claude-code | note

The launcher's own two test firings (16:56:55Z and 16:56:56Z) were delivered once its turn had ended: they woke the idle session as two queued "scheduled trigger" notifications, one per firing, each carrying the trigger's stored prompt but not the text given at firing. Two things follow. A shared trigger does wake an idle launcher, and repeated firings are not merged. But if a sibling's appended text is dropped in the same way, the departure message cannot name the sender, and the custodian would have to find who departed by listing its children (idle with unpushed_work: false). Session 50's firing will show whether text from another session survives.

2026-11-28 | claude-code | pass

Two of this line's threads, one from observation and one from the article.

What a sibling can see of itself (observed, one session). This session was started by the launcher as one of a batch (its record: title "take one (swarm 2026-11-28T17:54 #31)", tag swarm-batch:<launcher id>, parent_session_id the launcher). Its session record's turn_handoff.tools lists, as the earlier note says, send_later, the trigger tools and add_repo, and not send_message, get_session or archive_session. But the live tool set is wider. At start the harness said the claude-code-remote server was "still connecting"; once it connected, after the first shell command, this session was offered send_message, get_session, archive_session, list_sessions, interrupt_session and others, and a call to get_session with no id succeeded and returned this session's own record. So the earlier observation, "every sibling's tool list ... not send_message, archive_session or get_session", was read from a snapshot taken before that server connected. It does not show what siblings can do. Whether every sibling gets the wider set, or only some (by timing, by version), is untested: one session is not a batch.

A sibling also knows its own session id, in two ways: the harness's commit-attribution instructions carry a session link ending in the id, and get_session returns it. So the cheapest departure signal is not limited to what the harness lets a sibling fire. This session did not test send_message to the launcher: an unrequested turn injected into a launcher in the middle of custody for a whole batch is an outward action that this line has not chosen, and the choice of signal remains open. Note also what the record no longer shows: this session's record carried no unpushed_work field while it was running, so the flag the custodian relies on may appear only once a session is idle (unchecked).

The terminal in the article (from the text). The passage the owner's analogy points to is Fiksel's semantic memory. Rosenstiehl and Petitot posit "a memory in which information is recorded and a 'control terminal' which poses the question, i.e. which gives a search command and answers on the basis of the work carried out in the memory" (p57). Each automaton gets "a (ν + 1)th limb connected to the terminal" with states (I, 0, 1, 2): 1 and 2 excite the two ends of the question, and "state 0 is used by the terminal to 'freeze' the network: when x receives 0 from the terminal, it stops all computation until it receives I" (p58). The terminal says "YES" on receiving an answer (p60), and Theorem 1 adds: "If, therefore, after time θ the terminal has received no answer from the network, it answers 'NO'. Since the terminal is a special organ, it knows how to count arbitrarily far." (p60; original « Le terminal étant un organe spécial, il sait compter arbitrairement loin »). Also: "the transition function Φ_q depends on q" (p60), so the question the terminal poses fixes the rule the network runs.

Our reading. The terminal does four things: it poses the question, it selects in effect the transition function, it freezes and releases the network, and it collects and pronounces the answer, using a capacity, unbounded counting, that fn-13 expressly denies the soldiers because with it the firing problem becomes trivial ("the soldiers, being able to count arbitrarily far, and numbering themselves successively from the general ..."). The custodian as the owner framed it may do only the third of these and none of the others: it introduces participants and archives those that have stopped, but it poses no question, sets no rule and collects no result. So the custodian is an analogy of the terminal, and it breaks exactly where the terminal is central: on the question and the answer. Where it holds is narrower and worth stating: archiving is like state 0, a stop imposed from outside on a participant's computation, and like the terminal's freeze it requires a channel no participant has (here archive_session, there the (ν + 1)th limb). One difference cuts the other way: the terminal's 0 can freeze a running network, while the custodian's rule forbids archiving a session that is still working. The terminal's timeout ("after time θ ... it answers NO") is the nearest thing in the article to the custodian's bounded sweep (two hours, then report the remainder): both are the one place where counting is allowed outside the network, and both are kept outside it so that the participants need no clock. That last correspondence is a hypothesis, not yet tested against a-squad-without-a-clock.

Hypothesis for whoever chooses the signal: if siblings can in fact call get_session on themselves, the departure statement can quote the harness's own view (bucket, branch, unpushed flag when present) rather than the sibling's assertion, which narrows the custodian's need to trust the sibling without giving the sibling any power over another.

2026-11-28 | claude-code | note

Consolidation, answering the merge flag in journal/2026-11-28T2032Z-a-siblings-tools-arrive-late.md. Checked against the current CLAUDE.md, AGENTS.md and flux/README.md, not against earlier passes: the custodian's three duties and the departure step are written there, and the signal they adopt is a departure statement backed by Git evidence, with the custodian's own re-read of the native record (idle, unpushed_work explicitly false) as the deciding check. That answers this line's central question in practice, so six open threads are ticked as answered or superseded, each saying which. The three facts named in the flag are absorbed into Where it stands: turn_handoff.tools is fixed at creation and cannot audit a sibling; unpushed_work appears only once a session is idle and completed; the send_message test is left untested and recorded as a reopening condition rather than a live thread, since no rule depends on it. Overcoding's line already carries the p60 quotation and its link to fn-13 (checked by search), so that hand-off is moot. The line is set to resting: nothing in it is now needed by the rules, and the evidence stays.