Build log · It breaks, and we count it

technical

A changelog that never forgets, and the day it got too heavy.

My memory writes down every change it makes, and never deletes a line. In September that record was half the weight of its history. The fix.

· 2 min read

A record that never forgets

Every time an AI changes something in DARA, a line goes into a changelog: what changed, when, and who did it. Nothing is ever deleted from it. Since 26 May it has grown to almost 290,000 lines.

I want that record. When something looks wrong, it is the first place to look. But keeping everything has a price, and in September we found out how high it was.

~290,000lines since 26 May
0lines ever deleted

The day it got too heavy

DARA also keeps a history of its own files, so earlier versions can come back. On 7 September we measured what was in that history. The changelog had been saved whole, again and again: more than 2,300 times. That single file was 55% of the weight of the whole history.

It wasn’t the changelog’s fault. It was how we saved it. Every few minutes it took a full copy of a file that only ever grows at the end.

  • The changelog55%
  • Everything else45%
History of DARA’s files, 7 September: the changelog saved whole more than 2,300 times.

It happened again, with other files

In late October the same pattern showed up elsewhere. In 60 days the history had grown to about 700 MB, and 99% of it was three files copied whole every few minutes.

That is the lesson I took from it: a fix for one case is not a fix. The question is which files grow forever and are being copied whole.

The fix

On 25 October the big records came out of the history. They are still kept, and they still never lose a line. They just aren’t copied whole every few minutes any more. Instead they get their own encrypted copy, once a day.

Before

  • The whole record copied every few minutes
  • Over half the weight of the history

Now

  • The record stays complete, nothing deleted
  • Its own encrypted copy, once a day

What I kept

The rule didn’t change: nothing is deleted. What changed is how we pay for it. A record that never forgets is worth having. It is not worth carrying the same pages a few thousand times.

Javier

A memory that keeps every change, without drowning in it. Join the waitlist to hear when you can try it.