Expand description
audit.query: the Audit view’s one list, merged from the stores that already hold what it shows
(SPEC_WARDEN_SPLIT_INTO_VAULT_HISTORY_AUDIT_2026_10_28.md §4). The jekt audit file (reactive::audit_store) gives
jekts, actions and registrations; the segment ledger (continuity_segments) gives agent starts and ends. Newest
first, a page at a time: the file is read from its end, so a page costs what it returns, not the file’s size.
An entry holds no message text: the audit file keeps a hash and a length, and the preview a CLI-native line also
holds is not copied. Tool calls, turn ends and thoughts come from the activity day files (audit_activity), and are
given only when asked for by kind.
Modules§
- activity
- The activity rows (
tool,turn,thought) of one audit folder’s day files, newest first. - jekt_
file - The jekt audit file (
reactive::audit_store), read from its end: the file is never rotated, so a page of the newest entries reads the tail of it, and a cursor says where the next page’s lines end. - message_
stats - What messages cost, counted from the jekt audit file: per agent per day, how many messages came in, how
many started a turn or joined one, how many waited in a hold, how many replies were refused as saying
nothing, and how many the agent sent (
SPEC_CHEAPER_FLEET_MESSAGING_2026_10_30.md§7). - ordered
- A file’s entries in time order (the jekt audit file’s, or an activity day’s). Several srvs append to the file, each stamping its entries when it queues them, so the file is in time order only to within a short skew. Read from its end, a line is given only once every line not yet read must be older: a window of the newest lines is held and sorted.
- other_
channels - The other channels on this computer, asked over loopback for the rows they keep in their own file
(SPEC_AUDIT_LIVE_LOG_OF_EVERY_AGENT_ACTION_2026_11_03.md §3.6 point 5). A channel that gave the shared folder up
writes its rows to its own file, which this srv cannot read; the channel is asked for them with its
local_urland key from the host-global registry, exactly as the Swarm asks it for its agents (swarm_remote::channel_statuses). A channel that fails, times out, answers badly or predates the route contributes nothing. - peers
- The paired computers on the LAN, asked for their Audit rows (SPEC_AUDIT_LIVE_LOG_OF_EVERY_AGENT_ACTION_2026_11_03.md
§3.6 point 5). A computer’s answer is a page of its own
audit.queryon themachinescope; here it becomes the rows of one section: each row says which computer it is from, has an id of its own, and keeps no link that only works on the computer that wrote it (a pane, an agent’s history, a Kanban task). The rows are shown and forgotten: nothing here stores them, and the cloud never sees them. - provenance
- Where a jekt row came from and how it travelled (SPEC_AUDIT_LIVE_LOG_OF_EVERY_AGENT_ACTION §3.6), and the join of a
message’s two halves: the sender’s
sentline and the receiver’s line, which carry onemsg_id. - segments
- Agent starts and ends, from the segment ledger (
continuity_segments): oneagent_startper segment and anagent_endfor each that ended, with the byte of the agent’s history it began or ended at. - tasks
- The task an entry happened under: each row of the Audit links to the Kanban task its agent held at that time, and
to that task’s PR (SPEC_AUDIT_LIVE_LOG_OF_EVERY_AGENT_ACTION_2026_11_03.md §3.4). The Kanban’s own history knows
who held a task and when (
Store::work_held_at); this puts the answer on the rows of a page. - totals
- What every entry a filter matches cost, not only a page’s. The audit file and the activity day files are only ever appended to, so a sum is kept per file and filter and carried on from where the last scan of the file ended: the first asks reads the file, the next ones only what was written since.
Structs§
Constants§
Functions§
- query
- A page of the Audit.