Changes touching this path
- Spec the jj-ergonomics trio: ADRs 0029/0030/0031 (#138) (#141)
* Dogfood drive: log day 2 (clean bridge day, 2/5)
Day 2 was a git-clean day: the CA epic close-out had landed on main via
PRs, so the ferry carried it across (4 commits ingested, 0 conflicts, 0
projected back; 146 objects pushed, resumable). Record the day in the
drive log + evidence table (2/5).
Also fix loot-day.ps1 doubling the "ferry:" prefix in the logged line
(loot's own output already carries it).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Spec the jj-ergonomics trio: ADRs 0029/0030/0031 (#138)
The hand-off deliverable of wayfinder map #132. Folds the three design
decisions (#134/#135/#136) and the prototype's validated verb surface (#137)
into three implementation-ready ADRs:
- 0029 stable change-ids — durable random change_id beside the content
version id; signature binds version_id ‖ change_id; divergence is a
first-class data state; letters-vs-digits display; FORMAT_MAJOR 5→6.
- 0030 implicit auto-snapshot + reconciled verb surface — snapshot on
mutating verbs only; status read-only (-m dropped); new mints+prints the
next change id; columnar log/status; divergent-change marker + `loot
abandon`; demotion guard travels on the implicit snapshot; never signs.
- 0031 operation log & undo — view-only undo over an append-only graph;
op log grows on undo (redo); grant/maroon/pull-grants/push are non-undoable
barriers; keyring/manifest/escrow/purges never touched; local-only .loot/ops.
Points CONTEXT.md's out-of-scope note at the spec. Implementation graduates
to a follow-on build map.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Git-Author: Connor Miller <53197564+Connor-Miller@users.noreply.github.com>
4403ce13 - Merge branch 'main' of https://github.com/Connor-Miller/loot
2f8096b7 ·diffdbf3dbe6… - the ADRs are cut by 71% to the docs/agents/writing.md shape: Context, Decision and Consequences in about a page each, amendments folded into the decision they amend, function tours, test counts, sweeps and ticket archaeology removed; every title, Status section, cited § and numbered decision kept. ADR 0103 folds in the vmusyoxz, snmzospn and xrqwmovz amendments and restores the operator rulings of 3e1a10ce that the loot-core comment land reverted (yrkykmsn)
0fc947d9 ·diffdbf3dbe6… - recording an operation appends one record instead of rewriting .loot/ops: the log becomes a header plus one self-contained, checksummed record per operation, and oplog::record reads only the tail and appends under a per-position lock instead of reading, decoding, re-encoding and rewriting the whole file; a legacy log is still read and is rewritten as records on its next append, keeping every operation, view and barrier; a torn final record is dropped and cut off by the next append, while other damage refuses the read; op_index reads only the tail and the harbor seal readers decode the log once; one record onto a 100-op and a 1,000-op log took 780 and 7,083 allocations and rewrote 10,827 and 107,127 bytes, and now takes 61 at both lengths and appends 129 bytes; the new allocation test fails 780 against 7,083 on the old record, the migration test goes red (0 passed, 1 failed) when the rewrite drops a barrier, the torn-tail test when damage reads as torn, the race test when appends skip the lock (43 of 80 operations kept), and the suite is green (vnkowyms)
61a36338 ·diffdbf3dbe6… - op log fix-ups from the review sweep: a final record whose trailing length frames it whole is damage and refuses instead of reading as torn and being cut off, the store lock breaks a lock only when its age is known to be stale so a waiter no longer removes the next holder lock after a release, a test pins that the legacy decoder refuses a records file, ADR 0031 says the log is per position and when a broken lock can drop an operation, and encode_nodes says the working-change order is free; the torn-tail test went red on a grown length (0 passed, 1 failed), the older-reader test goes red when the sentinel is zero (0 passed, 1 failed), the race test lost an operation in 17 of 150 loaded runs on the old lock and 0 of 300 on the new, the undo guard against an unrecorded view is not built since loot status moves heads without an op, the gated counters do not move, and the suite is green (wyksxzom)
c63b9f34 ·diffdbf3dbe6… - op log fix-ups from review sweep 2: a final record counts as written whole only when the body its trailing length frames also passes the record checksum, so a describe record cut just after its command length is dropped as torn instead of refusing every later read and append, and a grown length still refuses; a store lock waiter that cannot read the lock age breaks it after waiting out the stale horizon instead of waiting forever, while the harbor lock already breaks a lock it cannot stat and is unchanged; the test-only Workspace offered_and_unheld is gone and its tests read the push plan, ADR 0031 says a snapshot records no operation of its own and stops naming the lock constant, and two docs and a test comment stop naming callers and a ticket; the torn-tail test went red without the checksum (0 passed, 1 failed), a new lock test with an injected stat and horizon timed out without the bound (0 passed, 1 failed), the gated counters do not move, and the suite is green (zwlvuuqz)
5fb0ca78 ·diffdbf3dbe6… - a push or a proposal records its disclosure barrier before its first request carrying content leaves instead of after its last, so a /stow batch refused, or a process killed, after the host took an earlier batch still leaves the barrier that loot undo refuses to cross and loot burn reads its tier and hosts from; the format gate is asked alone first, so a host it refuses is sent no object and gets no barrier; ADR 0031 is amended to say so and ADR 0075 follows; a propose test over a transport that refuses the second /stow and a push test against an in-process forge behind a proxy that refuses the second /stow went red before the fix and again with the barrier moved back after the batches (1 passed, 2 failed), the gated counters do not move, and the suite is green (ryyqoqys)
599b4e3d ·diffdbf3dbe6… - files the two amend edges xysopyyo left open: a non-root amend gates its capture against its parent tree rather than the version it replaces (vzuzpspr), and loot edit of a root change on a pinned position loses the pin (vlsmounz)
4d1ef5fb ·diffdbf3dbe6… - restore the 71 files 430a057a reverted to 385bcb40's bytes: a tickets-only land (vzuzpspr, vlsmounz) recorded stale copies in the Mac primary, which held the desktop's newer versions sealed with keys it had not pulled, and a loot fetch there had left the disk behind loot's view; the keys are pulled now, the lane equals 385bcb40 outside tickets/ but for that land's benchmark entry, and mmzxtyyt records the mechanism
Perf-Baseline: reset 430a057a's baseline measured the reverted code; restoring 385bcb40's brings object_gets, store_file_reads and graph_sorts back down
7806746e ·diffdbf3dbe6… - a .lootattributes that is not UTF-8, such as the UTF-16 Windows PowerShell 5.1 writes with >, is now a malformed rule naming its encoding at the disk load, the ferry ingest and the recorded-tree vet, so loot new and a ferry ingest of a self-authored commit refuse instead of signing plan.txt internal with exit 0, and a line opening with a byte-order mark, which made the first rule match nothing, is malformed too; the unreadable recorded rules refusals carry the code unreadable_attrs, which the SDK classes as a guard error and the tests assert, and ADR 0038 states the costs of passing over a signed parent rules file and an unsigned ingested parent, and its wrap is fixed; the new cases went red without the fix (0 passed, 2 failed), again with the disk load reading text (1 passed, 1 failed), with the ferry reading text (1 passed, 1 failed) and with the byte-order mark unrecorded (1 passed, 1 failed), the code assertions went red without the code (0 passed, 3 failed), the gated counters do not move, the SDK typecheck passes, and the suite is green at 2103 passed (ymmvvvxq)
9d623289 ·diffdbf3dbe6… - the burn row on /known-issues moves its v0.4.32 half to the fixed state: since v0.4.32 deleting a burned path records the deletion and the forward fix takes, measured on the 0.4.32 release archive, while the forge half stays on main, not yet released, since its fix (13a0f7dc, 005f44ee) is in no tag, as does the ferry refusal (b0fb007f), and the entry stays until the page is reviewed against a release carrying both halves; it also settles tzzsmomn by recording 0.4.32 as the floor for a position a newer build has written, on the docs format page and in ADR 0031, after a 0.4.31 archive ran describe, new and push on a 0.4.32 position recording no operation and a 0.4.32 undo stepped back across that push, with no format minor taken; and wzmzqylu: the hosting relay script reads its VERSION from virtual:loot-release at build time as /install does, so a site deploy after finalize moves it, recorded in ADR 0049 and the second-machine release step; docs and a build-time read the site gate covers owe no test; the site gate passes 348 and the suite is green at 2181 passed (orrmzwpp)
aa0fdaf4 ·diffdbf3dbe6…
Renames are not followed. loot's tree maps a path to an address, so a rename is a delete and an add. This list is the history of the name, not of the bytes.