Omniscio

How a crew is led — the persistent lead and the lead as a function

A crew's lead post can either stay running as one session or be seated fresh for each event, and the crew's own setting picks which. The app compares the two shapes on seven numbers, and a number with no source says unavailable instead of zero.

On this page

What it is

Every crew has a lead post: the seat that acts on the crew's record — closing tasks, moving promises, answering a member. How that seat is filled is a per-crew setting.

  • Persistent lead (the default). One session stays running and holds the post. It keeps its context between events, so it can carry a plan across turns — and it keeps spending turns while it waits.
  • Lead as a function. No always-running session. The post keeps its session id, its schedules and its scorecard identity, but the app retires the running process as each turn settles and starts it fresh on the next event. Every turn is seated by an event, acts on the crew's record and the event, and gives the post back.

The setting belongs to one crew and ships as persistent for everyone. A crew that never switches is unchanged.

Only the person can switch it. The switch is a privileged control-server call (PATCH /crew/lead-mode), and an agent session's own credential is not admitted to it.

Switching is allowed while a session is holding the post, because the shape keeps that session as the post: what changes is how its turns start, not who the lead is.

Where to find it

  • The switch is PATCH /crew/lead-mode on the control server — person-only, as above.
  • The comparison readout is GET /crew/lead-mode-comparison, which answers per crew.

How it behaves

GET /crew/lead-mode-comparison answers per crew, and every number carries a status:

Number What it is Where it comes from
moves per paid lead turn real work the lead did, divided by the turns it was given the crew scorecard
owner replies per lead-day how often the person had to step in the crew scorecard
promises proven deliverables the crew actually delivered the crew scorecard
spend per paid lead turn what the lead's turns cost the crew scorecard's spend columns
missed events events raised at the post that never produced a turn, a woken turn that died included the crew's turn ledger
turn latency how long an event waited before its turn started the crew's turn ledger
refusals events the post could not accept the crew's turn ledger

The three statuses matter as much as the numbers:

  • measured — read from the live record.
  • scripted — produced by a scripted run rather than the live record. The app's own readout is never scripted; the status stays defined for a scripted run, whose stub turn proves the pipeline end to end but cannot rank the two shapes.
  • unavailable — there is no source, and the report says why. A crew that has never recorded a turn reads unavailable for the three ledger numbers, never 0, because a zero would read as a perfect result and decide a gate.

The live turn ledger is written on the delivery path. When an event arrives for a crew's lead post — a member's report, a wake, a person's message — the app records one row: when the event was raised, when the lead's turn started, and whether it was delivered, refused or missed, with the reason. A refused event that is later queued and delivered updates the same row rather than adding a second, so one event is one row and its latency includes the wait. A delivered row carries a start time when the send is accepted and a settled time when that turn ENDS, so a turn's duration is the gap between them. A row is missed when the event reached a post with nobody to take it — a scheduled wake that found no live process — and carries no start time, because no turn ever ran. A crew that has never been handed an event still reads unavailable, never 0; a crew whose events were all delivered reads a measured 0 for missed events and refusals, which is a real result. crewLeadTurnsRecordedEnabled (Settings, default on) is the switch: off writes nothing and the report returns to unavailable throughout.

The same row also records how the turn ended. At the app's one turn-end boundary — a lead session moving from running to needs_you or ended — the open row for that lead is stamped with settled_at, so a turn's duration is its settled time minus its started time. A turn that was handed over and produced NO turn at all — the CLI reported an error with no answer in it — settles the same row as missed, with the CLI's own error text as the reason: a lead that was woken and answered nothing reads as a missed event instead of a delivered turn. A refused event never started, so it carries no settled time; a scripted run would write the same shape.

The seeded comparison harness was retired with the Classic overseer (November 2026). It copied the shipped starting database into a temporary folder, seeded two crews that differed only in how they are led, and drove one identical scripted event stream through both with a deterministic stub turn. It spawned no session and spent no tokens, so its spend number was always unavailable, and both sides acted on the same events: the table proved the pipeline produced every number and never ranked the two shapes. The live readout above is the measurement.

Last verified 2026-11-07