Expand description
Decision → fix links (regress.rs finds them): the record a link leaves in the collective’s
reasoning.jsonl and the borg fixed in: / borg fixes: sections of a borg note.
A record’s commit is the decision, its fix the fix: the mesh answers Ask for a link by
either side, so borg notes fetch with the decision or the fix brings it along. Its free text (tasks,
subject) is redacted before it gets here.
Structs§
- Link
- A link record:
fixchanged linescommit(the decision) wrote. - LinkRef
- One side of a link as a note lists it: the other commit, its session and task (first line).
- Lists
- A note’s two lists, to add links to.
- Side
- A commit as a link record describes it.
- Touched
- Lines of one file at the fix’s parent, as inclusive ranges.
Constants§
Functions§
- adopt
- Adds the
recordsnamingcommit(a note ofcollective) to its lists: as the decision underfixed_by, as the fix underfixes; a record of another collective never. Whether any was new. - push_
ref listwithradded (unless its commit is listed), at mostMAX_LISTED: the oldest weak entries go first. Whether it was added.- records
- The link records among reasoning.jsonl’s lines (
text). - refs
- The two sides of a link as notes list them: (on the decision, on the fix).
- sections
- The note text after the corrections line: both sections, each only when it lists something.
- split
- A note’s text without its link sections, and the
fixed inandfixeslists (the inverse ofsections).