Why
Every line carries the intent, the attempt, the step, the reasoning and the tests behind it. Pick a band in the gutter.
Provenance by line
Lines dimmed when not yet written at the scrubber step
Attempt #31 · ag-7f3a
Tests-derived · #12 · ag-21c9
Human edit · Jonas Weber
Later fix · INT-4790
How the file came to be
Session ag-7f3a / attempt #31 · one commit per step
read
edit
test run
test failed
think
Ask why
Answers come from stored steps, with citationsBecause card wins ties, and only ties. The leftover cent goes to the leg with the largest remainder. When remainders are equal, a rank rule puts card first, so gift balance never rounds up.
Example: refund 0.01 on a payment of 1.00 card plus 1.00 gift. Each share is 0.5 cents, floors are 0, both remainders are 100, and one cent is left. Card takes it.
- Spec line 3 forbids refunding a tender more than its pro rata share by more than rounding allows. ag-7f3a read it at and chose largest remainder over floor-and-give-to-card.
- The first version broke ties by array order, so a payment listed gift-first sent the cent to gift. ag-7f3a noted this at and left it.
- Jonas Weber replaced array order with
tieRankon 14 Oct (commit 3f9ac21): gift balance is reported in whole units, and rounding it up caused a monthly reconcile break. - The tie is pinned by
tie goes to card, which passed at and on main.
INT-4812→#31→step 52→Jonas 3f9ac21→lines 23 to 27
Why this is different
- The idea. Each line keeps a chain from intent to attempt to step to reasoning to tests. The question moves from who typed it to why it exists.
- GitHub today. Blame names an author and a commit message. With agents the author is a model run that no one will remember, and the commit message is a summary written afterwards.
- What breaks at 100k agents. A line may have passed through dozens of attempts. Without stored reasoning nobody can tell a deliberate rule from an accident, so nobody dares to change it.
- Sessions as repos. One commit per step means you can scrub the history of a file and fork a session from any moment with a new instruction, instead of starting over.
- Rejected paths are kept. The alternatives an agent threw away are stored with the reason. The next agent does not retry the idea that already failed spec line 3.