Skip to main content

Module scars

Module scars 

Source
Expand description

Execution memory (layer 1): scars and protocols, learned deterministically from what a session did, at zero tokens.

  • Scar: an error fingerprint and what fixed it: a later passing run of the same command shape, with the different command that worked and/or the files edited in between.
  • Protocol: a command shape that failed and then passed: the command that works here.

Recall is a single line at the moment a drone hits a known error (or reruns a shape whose protocol differs from what it just tried); otherwise nothing is injected.

Structs§

Store
Append-only local store, one JSONL file per repo ($BORG_HOME/memory/<repo>.jsonl).

Enums§

Memory

Functions§

latest
Latest memory per key: a later scar or protocol supersedes an earlier one.
learn
What one session teaches: every failure whose command shape later passed in the same session.
recall
One line for a failure the collective has seen before, or None (0 tokens).