Skip to main content

Module copies

Module copies 

Source
Expand description

The per-channel copy of an agent’s conversation, and its removal (check L5 of SPEC_HISTORY_COMPACT_FORM_ONLY_2026_11_23.md section 9).

Before new data was written once, to the agent’s zone in the shared store, every line was also written to output in the zone of the block that ran it, in this channel’s own store. Those copies are the second full copy of a conversation. A copy goes only when every kept line of it is in the shared store: its lines in the compact form (minus the blank ones and the fragments the reduce pass proves redundant; a cut-off reply as its interrupted line), compared by hash, as a multiset, with the lines of the agent’s current conversation and its archives. A line the store lacks is put there first: in the agent’s current zone when that is empty (the copy was the conversation), otherwise in a new archive zone of its own, so nothing is inserted into the middle of a conversation another srv may be appending to.

Nothing is edited in place and nothing is deleted before the check: the copy is read in snapshots, and the deletion runs under the block’s transcript lock and only if the file is still the one that was read (size, generation, time).

Structs§

Options
Report
Run
What one pass works with.
Summary
Counts of one pass over a channel’s copies. No names, no content.

Enums§

Outcome
Placed
Where the lines the store lacked went.

Functions§

pass
One pass over this channel’s copies of defined agents’ conversations. None when there is no shared store, or it is this channel’s own store: then the copy is the only one.
summarize