Changes touching this path
- the forge manifest layout for storage deltas, slice R2a of tlupspqp: ADR 0110 records that the forge stores a manifest whole in tree_entry or as tree_delta ops over its first parent manifest, with a whole one at least every 64 along the base links, a repo holding the base of each delta its versions name so each read family rebuilds a tree through its own gated views, then an online resumable backfill and a pg_repack reclaim; migration 0065 adds manifest.base_id and depth with their shape check and tree_delta keyed by manifest and path with no read role granted, and the account restore classes tree_delta beside tree_entry and stages the addresses its upserts name; nothing writes or reads the layout yet; read-only on the live forge, tree_entry holds about 5.97M rows in 1,746 MB of the 1,801 MB forge database, and replaying this repo history of 1,913 manifests stores 107k rows at K 64 (1.8%) and 66k at K 128; a probe on Postgres 18 rebuilt a 9,500-path head through the anonymous family views in 3.6 ms over 56 manifests and 6.4 ms over 120 against 1.6 ms whole; a schema nothing reads or writes is off the must-test list, so no test was added; cargo test is green at 2269 passed, 0 failed, 6 ignored, and ci/local.sh is green on Postgres 18.6 with the site live suites at 92 passed (tlupspqp)
60c5fb1d ·dbf3dbe6… - the forge writer and tree reads for delta manifests, slice R2b of tlupspqp: migration 0066 rebuilds a tree from either layout in tree_at, entry_at, tree_under and bands of each read family through new gated views of tree_delta and of the base link, in an ungated manifest_tree the forge reads use, and in the published index; a repo_change trigger rewrites whole a delta whose base the arriving repo does not hold, the repo object trigger takes the upserts of a delta, a takedown deletes ops and keeps a base still named, and an index on repo_change by version keeps the family gate a probe; the forge files a new manifest as ops over the first parent manifest when the repo holds it, the base is below depth 63 and the ops are at most half the entries, behind LOOT_FORGE_MANIFEST_DELTAS, off unless on; on a Postgres 18 fixture of 7.3M tree_entry rows the anonymous head listing took 21.8 ms whole and 23.8 ms over 55 deltas, one path 0.04 and 0.25 ms, bands of 50 versions 3.6 and 12.6 ms, and the forge read of 760 trees 3.0 s and 0.34 s; red under mutation, each restored: the trigger skipping its rewrite (1 failed of 1), the family walk letting the farthest op win (1 of 1 forge, 1 of 3 site), the anonymous delta view ungated (1 of 3), the published index on whole rows only (1 of 3), the forge rebuild over an empty base so change ids stop recomputing (1 of 1), the writer dropping removes (1 of 1), a takedown keeping ops (1 of 1), the repo object set skipping upserts (1 of 1), the restore not copying ops (1 of 12) and an empty switch turning the writer on (1 of 1); cargo test green at 2381 passed, 0 failed, 6 ignored, ci/local.sh green on Postgres 18.6 with the site live suites at 93 passed, site gate 365 passed; owes a forge deploy with --migrate (tlupspqp)
4c1d2293 ·diffdbf3dbe6… - the online backfill of delta manifests, slice R2c of tlupspqp: migration 0067 adds manifest_to_delta, which stores one whole manifest as ops over its first parent manifest under its row lock by the writer rule (each repo naming it holds the base, the base below depth 63, the ops at most half the entries, a manifest some delta names as its base kept whole) and compares the rebuilt tree with the rows it replaces before deleting them, a manifest_backfill row per repo walked to its end, and a key-share lock in the repo_change trigger on each whole manifest an arriving version names, which the backfill skips; loot-forge --backfill-manifest-deltas [--batch N] [--limit-seconds S] walks each repo parents first, one transaction per batch, as the superuser; a takedown or account deletion takes the batch advisory lock, the writer key-share locks the base whose depth it reads, and the account restore puts back no row of one layout under a manifest the live forge holds in the other; on a Postgres 18 fixture of 7.22M tree_entry rows (760 versions of a 9,500-path tree) it converted 748 manifests in 20.7 s (36 a second), leaving 114,000 whole rows and 8,228 ops, while the anonymous head listing and one-path read kept their medians (3.79 and 0.59 ms against 3.77 and 0.56 ms) and every listing read during the run answered the whole tree, so the production 1,986 manifests project to under a minute on this machine; red under mutation, each restored: ops ignoring a tier change (the run refuses, 1 failed of 1), the same with the comparison off (1 of 1), a stopped run recording its repo (1 of 1), the trigger without its lock (the other owner reads no tree, 1 of 1), the writer reading its base depth unlocked (the child filed at depth 1, 1 of 1), the repo-holds-base rule off (1 of 1 takedown), the restore filter off (1 of 13) or off for ops alone (1 of 1), and ops ignoring a reveal time in the site family test (1 of 4); cargo test green at 2384 passed, 0 failed, 6 ignored, ci/local.sh green on Postgres 18.6 with the site live suites at 94 passed, site gate 365 passed; owes a forge deploy with --migrate, after which the scripts step runs the backfill (tlupspqp)
2ae5da83 ·diffdbf3dbe6… - the forge reclaims tree_entry after the delta backfill, slice R2d of tlupspqp: ADR 0110 section 6 records VACUUM FULL in the scripts repo forge deploy in place of pg_repack, run only when the heap is far larger than its live rows need, since it copies only the live rows (a production-sized 1,710 MB table of 81,000 live rows rewrote to 18 MB in 2.2 s) while pg_repack needs a non-stock Postgres image and a database container recreation; on production the backfill converted 1,892 manifests over 51 repos in 81 s, the reclaim took 3.3 s, tree_entry went from about 5.97M rows in 1,757 MB to 94,962 rows in 21 MB, the forge database from 1,819 MB to 83 MB, and the code view median time to first byte from 208 to 204 ms (tlupspqp)
e2eec4fd ·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.