Expand description
One serde struct per EventKind: the single
authority for what a kind’s payload is called and what it holds.
Writers reach a payload through Payload::of
and readers through Payload::read. Those
two doors plus these structs replace the hand-written
insert("key") at the writer and get("key") at each reader, which
is how one key came to be spelled two ways in two crates.
Three rules hold for every struct here, because a ledger already written cannot be re-spelled:
- The bytes do not move. Field names are the keys the previous
hand-written writer used, an absent key is spelled
#[serde(skip_serializing_if = ...)]exactly where the previous writer omitted it, and a key that writer emitted unconditionally stays unconditional even when it is empty. Keys sort on the way out (serde_json’sMapis aBTreeMap), so declaration order here changes nothing. - Reading is tolerant, writing is not. Every field a record
written by an older build may lack carries
#[serde(default)], because the fixtures hold arun_startedwhose payload is{}. Unknown keys are ignored rather than refused, so a newer writer never breaks an older reader. - Values keep their kernel types. A run is a
RunIdand not aString, so the display form and the parse live where they already lived. Types with a hand-writtenSerializecarryschemars(with = "String"), which states on the schema what their wire form has always been.
A kind whose struct is not here yet is still read by hand at its call sites; the migration moves one family at a time, and each family’s closing condition is that a replay produces identical bytes.
Modules§
- autonomy_
word - The word the ledger writes for who answers a scope’s Approval Inbox, and its reader.
Structs§
- Adviser
Answered adviser_answered: what the adviser said, and how long it took.- Adviser
Asked adviser_asked: which question was put, and about what.- Adviser
Fell Back adviser_fell_back: the deterministic strategy answered, and why.- Approval
Resolved approval_resolved: how one inbox item was answered.- Asset
Archived asset_archived: one entry a run filed in its building’s archive.- Attached
Tuning - How the person set an endpoint up, as the line keeps it.
- Autonomy
Changed autonomy_changed: who answers the Approval Inbox for a scope from now on.- Building
Configured building_configured: which faces of a building’s own layer one reconfiguration wrote. The values themselves stay in the files.- Building
Created building_created: a building now stands ataddr, laid out fromtemplate, or found already standing whenadopted.- Cancel
Received cancel_received: the turn saw the stop. The run it belongs to is the envelope’s, so the payload holds nothing.- City
Halted city_halted: one scope stopped taking work, or started again.- City
Initialized city_initialized: the first line of every history. The city’s name is the record’s ownaddr, so the payload holds nothing.- Commit
- The commit a checkpoint raised, and what it staged.
- Commit
Attribution - Which session made a commit, as the ledger states it.
- Device
Paired device_paired: a device presented a good code and the city keeps it.- Device
Revoked device_revoked: the person took a device’s pairing away.- Discard
Restored discard_restored: the paths a restoration put back.- Document
Written document_written: one save of one document landed.- Embedding
Called embedding_called: one call to an attached endpoint’s embeddings face.- Endpoint
Attached endpoint_attached: a base URL, its dialect, the credential’s vault place and the model ids the endpoint reported.- Endpoint
Lost endpoint_lost: the endpoint under this name is gone, and every choice made through it goes with it.- Endpoint
Probed endpoint_probed: a base URL was asked what it serves, and nothing was attached.- EvalRun
eval_run: the handoff probe asked of a successor, compared with what its predecessor answered.- Evidence
Cite - One line a finished run cites as the evidence it finished.
- File
Discarded file_discarded: the paths one sweep found deleted, and the way back.- File
Restored file_restored:pathin the treenamenow holds whatpointholds there, or nothing whenpointholds no such file. An emptynameis the city’s own working tree, which a person takes a file back into from a page (crates/wire/Spec.lean§8-62).- Gate
Checked gate_checked: a gate let an action through.- Goal
Conflict goal_conflict: a goal that asked for ground another goal holds, and how far up the settling had to go.- Governed
Document Written governed_document_written: which of the three documents a person wrote, and how long it now is.- Handoff
Written handoff_written: the five sections a successor starts from.- Harness
Answered harness_answered: the harness’s answer to the city’s prompt.- Harness
Permit - One option a harness offered when it asked for a permission.
- LogTruncated
log_truncated: how many bytes a crash left behind that the opening procedure could not read as records.- Model
Called model_called: which prefix went out, under which model name.- Model
Facts - What a model list said about one model.
- Model
Returned model_returned: the reply, the size of the wave it asked for, and what the provider said it cost.- Model
Selected model_selected: this model answers for this tag, with the facts no probe returns.- Policy
Changed policy_createdandpolicy_revoked: a standing rule namedidcame into force or left it.- Probe
Failure - The refusal a probe met, as its stable code and subject.
- Prompt
Assembled prompt_assembled: the four segments a request was built from, and the cache breakpoints it carried.- Prompt
Segment - One frozen segment, as
prompt_assembledstates it. - Prompt
Shape Compared prompt_shape_compared: one request’s cache shape where a prompt cache looks at it, and which of its regions moved since the request before it in the same run.- Prompt
Skip - One document a slot was offered and left out, and why.
- Prompt
Source - One document a segment was assembled from.
- Proposal
Decided proposal_decided: a person’s verdicts on one card. A changed sentence the verdicts do not name is rejected, so an empty list rejects the whole card.- Proposal
Offered proposal_offered: a run suggests replacing one stretch of one version with other text.- Proposal
Withdrawn proposal_withdrawn: the run that offered a card took it back while it was still open.- Pursuit
Changed pursuit_changed: one step a person took on a building’s pursuit, and the goal the building holds after it.- Remote
Closed remote_closed: the door closed, and why.- Remote
Opened remote_opened: the door is open untilcloses_at, reached aturl.- Remote
Session Started remote_session_started: a paired device proved its key and holds a session untilexpires, which is never later than the door closes.- Rerank
Called rerank_called: one call to an attached endpoint’s rerank face.- Roadmap
Moved roadmap_claimed,roadmap_split,roadmap_finished,roadmap_releasedandroadmap_blocked: who moved which node, and the step. The five lines shareby,nodeandverband differ only in what follows the verb, so one struct holds them and the verb selects the step.- Rules
Changed rules_changed: a document a dispatch stands under holds other bytes than the last line booked for it.- RunForked
run_forked: which run this one continues, and from where in it.- RunFrozen
run_frozen: how a run ended, and what it cites for having ended that way.- RunStarted
run_started: the work a run was given, and where it came from.- Secret
Captured secret_captured: a credential entered the vault at this place.- Session
Opened session_opened: a new session began at this address.- Shape
Part - One part of a request’s cache shape, as a record states it: how many bytes the part carries, and their hash.
- Signal
Consumed signal_consumed: which signal was taken, and by whom. The content is already in the enqueue line, and history does not need it twice.- Signal
Enqueued signal_enqueued: the signal itself, and the line it waits in.- Signal
Id - A signal’s identity, and the thing duplicates are recognised by.
- Skill
Pin - One skill a run was dispatched with, pinned to the bytes it read.
- Slice
Verdict - A person’s verdict on one sentence of a card, by its place on the card counted from zero.
- Spine
Document Written spine_document_written: which of a building’s own spine documents a person wrote, and how long it now is.- Steer
Received steer_received: text a person added at a phase boundary, and where it came from.- Tool
Called tool_called: the call the model asked for, before anything ran.- Tool
Result tool_result: what the call returned, under the id it answers.- Toolkit
Link Opened toolkit_link_opened: the person asked to connect this app.- Vault
Fell Back - The vault’s fallback, as the startup probe writes it.
- Watchdog
Fired watchdog_fired: what the watchdog did, and how often it has had to.- Went
Back went_back: the treenamewas opened with its branch atpoint.- Worktree
Opened worktree_opened: the tree a resident was given to work a claimed node in, by name and measured size. It carries no path: an absolute path is a fact about one machine, and a history that holds one does not survive being moved to another.
Enums§
- Admittance
- Whether a scope is shut or open.
- Adviser
Answer - How the adviser answered.
- Adviser
Ask - The three questions the adviser port takes. Closed: the answer types below pair with these variant for variant, so a reader can never pair an answer with a question that was not asked.
- Adviser
Failure - Why no adviser answer reached the window. Closed: a fallback this vocabulary cannot name is a fallback nobody can count.
- Cache
Renewed cache_renewed: one renewal a worker sent, answered or refused.- Checkpoint
Committed checkpoint_committedcarries two facts that are not the same fact, and this enum states which one a line holds instead of leaving a reader to infer it from which keys are absent.- Conflict
Level - Which level settles a
goal_conflict:serializeruns the goal after the one it met,arbitratehands both statements to a resident. - Fired
Action - What the watchdog did, in the word the line carries.
- Freeze
Cause - Why a run was frozen by something other than its own driver.
- Governing
Document - The two documents a scope is judged by, spelled on the wire as the file names they live under.
- Harness
Permit Kind - What choosing a permission option grants or refuses.
- Harness
Reported harness_reported: one thing the harness reported during a run.- Harness
Stop - Why a harness stopped answering the city’s prompt.
- Input
Kinds - What a model accepts as input.
- Lane
- Which line a signal waits in.
- Opening
- How a run’s first user message opens.
- Part
Change - Whether one region of a request differs from the request before it.
A closed pair rather than a bare
bool, so a reader meets the word that says which way it went. - Provider
Degraded provider_degradedhas two writers with two shapes.- Pursuit
Move - Which step a
pursuit_changedline records. - Remote
Closing - Who closed the remote door.
- Roadmap
Step - The step a
roadmap_*line records, spelled by itsverbkey. - Shape
Changed - What moved between one request’s cache shape and the previous one.
- Signal
Kind - What kind of communication a signal is.
Steeris a fourth kind rather than a flag beside the other three: it is the only one that overtakes, and urgency has to belong to the signal for one id to always take one lane. - Skip
Reason - Why a document did not reach its segment. Closed: an assembler that finds a fifth reason states it here, where every reader sees it.
- Tool
Answer - A call answers exactly one way, and the enum is what says so: two independent optional keys would let a line hold both or neither, and every reader would have to invent a verdict for the two shapes that cannot happen.
- Verdict
- Take the sentence’s change, or take an inserted sentence after rewriting it.