Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

Merge PR #1318: fix(wiki): keep hook event ledgers out of the wiki's git history

AkitaOnRails79e1af271f37
diff --cc CHANGELOG.md
index 7465a764,d0e76ba7..2e4ae1cc
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -161,18 -129,15 +161,27 @@@ version in [`docs/changelog/`](docs/cha
were not re-stamped into the target project, which distorted cross-project
profile convergence and caused a subsequent `purge-project` of the source
project to destroy them via cascade. They now re-stamp in the same transaction. (#1265)
+- Fixed the SQLite `-wal` file staying as large as the database after a
+ `VACUUM`. `compact`, `reclaim-ledger-versions --compact` and the session,
+ project and workspace purges with compaction now run `PRAGMA
+ wal_checkpoint(TRUNCATE)` after the rewrite, and the store's writer
+ connection sets `journal_size_limit` to 64 MiB. A checkpoint that a reader
+ holds back is logged at `warn` and the operation still succeeds. A 29.5 GiB
+ database that shrank to 6.3 GiB kept a 17.8 GB WAL, and the next restart
+ spent 9 minutes replaying it. `serve` now also drops its read connections
+ and checkpoints the WAL on SIGINT, SIGTERM, Ctrl-C or the end of stdio
+ input, waiting at most 5 seconds; a read that arrives after that point is
+ refused. A hard kill before the checkpoint still leaves the WAL to replay.
+ (#1317)
+ - Fixed the hook event ledgers (`log.md`, `log-YYYY-MM.md`) being committed to
+ the wiki's git repository. Every checkpoint after a hook append wrote a new
+ whole-file blob of the ledger, and nothing packed them: one install's
+ `wiki/.git` reached 3.49 GB, 229 MB per version of a single ledger.
+ Checkpoints now leave ledgers out, recognized by name and by content, so an
+ ordinary page named like a ledger stays versioned. A ledger an earlier
+ version committed is dropped from the git index, never from disk, by the next
+ checkpoint. Existing history keeps its old blobs; `docs/lifecycle-ops.md`
+ explains how an operator can rewrite it. (#1318)
## [3.0.0] - 2026-10-13