Skip to main content

Module origin_ledger

Module origin_ledger 

Source
Expand description

What srv delivered to a provider that echoes the prompt into its own output, and where each message came from (docs/specs/SPEC_MESSAGE_ORIGIN_AND_ONE_CONTAINER_2026_10_25.md §8, P3).

srv writes no user record for such a provider, so the line in its transcript is the provider’s own, and nothing in it says who sent the words. The delivery path says which text it handed to which block (expect); the place that stores the provider’s output asks whether a user line is one of those (take) and, when it is, signs the origin onto the line (append::append_output_line). Matching is by block and exact text, oldest first, the way viewer::origin pairs a phone’s message. A line nobody expected gets no origin: it is untyped, and a viewer shows it in the container, never as the human.

An entry nobody takes within KEEP (the provider never echoed it) is dropped, and a block holds at most PER_BLOCK, so words typed faster than a provider echoes them can’t grow it.

Constants§

KEEP
How long a delivered message waits for the provider’s echo. A queued message is delivered when the provider starts, so this is generous.
PER_BLOCK
The most entries kept for one block; the oldest goes first.

Functions§

expect
text was delivered to block_id’s provider, from record.
take
The record for the user line text of block_id’s output, taken out of the ledger; None when srv delivered no such message (or already paired it).