connor / loot

connor/loot

Changes touching this path

  • loot-forge: a runtime Dockerfile that COPYs the released binary (#613) 79336fa3 · dbf3dbe6…
  • loot-forge drains on SIGTERM and SIGINT instead of waiting out SIGKILL (#657) 0485a488 · dbf3dbe6…diff
  • the repo never goes public, so the anonymous download path moves to R2 (#652) #652 recorded a gate: flipping this repo public discloses sealed docs/pitch/zk-host.md through PR #161 surviving refs/pull/161/head, verified live 2026-07-30. Re-swept today across 321 PR head refs (up from 242), two ways -- still exactly one carrier, unchanged. But the gate own remedy needs GitHub Support, is not self-service, and has no date. ADR 0045 stops waiting. The repo stays private permanently, and the anonymous artifact path moves to Cloudflare R2 at dl.millerbyte.com instead. Attestations are out rather than deferred; sha256 is the integrity story by decision. Build: #806 DNS zone move, #807 R2 artifacts, #808 installer retarget and the smoke test back on, #809 the Install page attestation claim. ADR 0037 is superseded in two places and docs/specs/loot-site.md in three, marked in place with dated blocks. The comments that called #652 a temporary gate now say permanent, and CONTEXT.md no longer calls the GitHub mirror public. 9a04ab6f · dbf3dbe6…diff
  • the forge keeps a bounded local disk cache of object bytes in front of R2 and overlaps 64 blob reads instead of 16, and a /fetch that runs out of budget says how far it got: blob_cache.rs CachedBlobStore writes through on put, reads through on get, removes the copy on delete and drops a fill a delete overtook, checks a blake3 checksum over every cached byte and fetches a copy that fails it again rather than serving it, and evicts the least recently read past LOOT_FORGE_BLOB_CACHE_BYTES (1 GiB by default, 0 for none) in LOOT_FORGE_BLOB_CACHE_DIR (default loot-forge-blob-cache under the temp dir, /tmp in the image); Forge::from_env puts it in front of the S3 tier, and exists and presign still ask the bucket. the budget refusal keeps its leading words and adds K of N objects read and the width, with the elapsed time to a tenth of a second. MAX_CONCURRENT_GETS is 64 because live, 16 in flight spent the 15 s budget on the 5,484 ticket files, a floor of about 44 ms per R2 GET, and 64 fits them up to about 175 ms a GET. it corrects mmxkront claims: the 2.9 ms R2 pace and the R2 latency test name, the stale bytes fetch comment, a budget check restored before each published key lookup, the fetch_bytes stop wording, the first failure recorded is the one reported rather than the lowest thread, and the mid fetch budget test no longer rides a 40 ms budget. pinned: at 44 ms a get a cold fetch of 5,484 objects answers in about 4.3 s and a warm one in about 0.07 s with no tier get and the same bytes. red under named mutations, each restored: over the 14 blob_cache tests, a hit that asks the tier (9 passed and 5 failed), a miss that keeps nothing (12 and 2), no eviction (12 and 2), no refresh on read (13 and 1), no checksum (13 and 1), a delete that leaves the copy (13 and 1), a fill that ignores a delete (13 and 1), an open that indexes nothing (13 and 1), a zero cap left on (13 and 1); over the 5 fetch_latency tests, 16 in flight (4 and 1), the refusal without its progress (4 and 1), the last failure reported (4 and 1), and the budget asked once before the fan-out (3 and 2). cargo test green, 4777 passed over 144 binaries with 13 ignored. owes a forge deploy, and no env is required; it also carries the new ticket rxxtvlvl and a comment on mmxkront (rxxtvlvl) a0025c9d · dbf3dbe6…diff
  • the forge answers where a request spent its time: the new loot_forge::timing records a span per step, each ended where its step ends so the spans sum to the total, the last named answer or until_error, plus counts beside them, and a repo-scoped route whose steps report returns them as a Server-Timing header and writes the same text as one INFO line with the repo, endpoint and status, names durations and counts only. /ingest (ppwukxrx) and /stow name their handler and prepare steps, the ancestry check, publish, proposals, attestations, jobs, and on Postgres each statement family inside the transaction from store.open to store.heads_read, then commit and wake, and count the tree_entry rows written and the parent tree rows read. /fetch (zxkpzxvz) names the serve walk steps from a new Phase enum whose words the budget refusals now use, and counts each object read as a cache_hit or cache_miss with summed times, the time keeping copies took and the width, tallied per thread through the new BlobStore::get_with_source and reported on a refused walk too. CORS exposes Server-Timing and each answer carries Timing-Allow-Origin *, as the CORS layer already answers every origin. measured on a local Postgres 18 of 7.6M tree_entry rows, the ingest of one change onto a 7,240-path tree took 192 to 566 ms, 55 to 79 percent of it the 7,240 tree_entry rows written whole (106 to 447 ms), and a Tickets-shaped walk of 5,463 wants spent 77 to 81 ms outside the blob reads; against a plain-HTTP stand-in bucket at 50 ms a get the real S3 client read 2,048 objects in 6.54 s at 16 wide and 1.66 s at 64. sweep 2 fix-ups of rxxtvlvl: only the serving process opens the blob cache (Forge::serving_from_env; Forge::from_env, and so --reap-runner-deposits, reads the bucket bare) and an open removes no temp file younger than STALE_TEMP; the integrity sweep reads the bucket under the cache through blob::tier_of; the budget phase test covers every Phase by construction, not four by hand; and the MAX_CONCURRENT_GETS doc no longer calls 44 ms a floor. the Dockerfile makes /var/cache/loot-forge, owned by the forge user, for a cache volume. red under named mutations, each restored: spans measured from the start (6 passed and 1 failed over the timing tests, 0 and 2 over the two http tests), every read tallied a miss (0 and 1, and 0 and 1 over http), reads reported only when the walk answered (0 and 1), the sweep reading through the cache (0 and 1), an open removing fresh temp files (0 and 1), a refusal naming the span token (0 and 1), Server-Timing not exposed (0 and 1), no header on a refusal (0 and 1), held manifests counted as tree rows (0 and 1, against a throwaway Postgres 18). cargo test green, 4800 passed over 145 binaries with 13 ignored, and loot-forge green at 696 passed against a throwaway Postgres 18. owes a forge deploy; it also carries comments on vrxsvlsy, zkkkyqun and rxxtvlvl, the new tickets zxkpzxvz and uqooxqvx, and the resolution of zykuxznx, whose gzip change is scripts 3a21f24 (ppwukxrx) 2aacc76d · dbf3dbe6…diff

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.