Skip to main content

Module attribution

Module attribution 

Source
Expand description

Which runtime wrote the words of each message a viewer is shown (docs/specs/SPEC_MESSAGES_CARRY_THE_RUNTIME_OF_THEIR_WRITER_2026_11_20.md).

A viewer decides what a message may open (a path in its text, an image it names) by where its words came from: words a container wrote may be shown only from the container’s own folders. Two kinds of message carry their writer’s runtime to the viewer as amx.writer.runtime and no more:

  • A line stamped by srv (origin_sig::stamp_writer) already says it, and vet_line keeps it when the stamp verifies.
  • A line with no verified amx in a host agent’s fork whose copied history was a container’s (or whose mark does not verify): the words may be a container’s, so they are attributed to one.
  • A message another agent sent (a jekt, a forwarded message): its words are the sender’s. A sender that srv has no record of, or one that runs in a container, counts as a container.

Only ever tightening: a message is never made looser than the viewer’s own pane, and nothing here marks a message as the host’s.

Functions§

attribute_lines
Marks, in each of lines (already vetted), the messages whose words a container may have written (amx.writer.runtime = "container", with attributed: true). sender gives the runtime of the agent a message names as its sender. A line that is not one of those is left as it is.
vet_for_viewer
vet_lines, then each message’s writer runtime as above, for the lines of owner’s transcript read for a viewer. block_fs is the block’s own store; a fork’s mark is read from the global transcript store when there is one.