connor / loot

connor/loot

Changes touching this path

  • a settle now packs the object store and repacks the git mirror once enough loose objects pile up, and deletes nothing unreferenced; a burn of a packed address now rewrites its bucket instead of refusing, and every rewrite of a pack, upkeep, loot gc --pack and a burn, serializes on one pack.lock that is kept fresh while held and broken only under a second lock: pack_loose keeps every object present except burned ones, reading the burn log only once it holds the lock; a reader indexed before a repack re-asks the pack; the mirror gets git repack -a -d --cruft with gc.auto 0 under the harbor, stopped with its pack-objects child and its temp packs removed at the budget, because git gc would prune commits the mark map names; the pins went red as follows, a burn of a packed address refusing took 2 of 2 burn tests red (0 passed, 2 failed), a burn that does not wait for the lock went red (0 passed, 1 failed), reading the burn log before the lock went red (0 passed, 1 failed), a beat that never repeats went red (0 passed, 1 failed), packed objects left out of the keep set went red (0 passed, 1 failed), either reader fallback removed went red (0 passed, 1 failed each), the mirror without --cruft went red (0 passed, 1 failed), and the suite is green (2238 passed, 0 failed) (kvxkszkp) a0af7bda · dbf3dbe6…
  • a burn now removes the pack stages a killed repack left, which could hold the burned ciphertext under a signed tombstone; a pack lock carries a token its holder checks just before it replaces a bucket, so a holder stopped past the stale horizon and broken no longer writes over the new holder, and its release leaves the new holder lock alone; a crashed breaker file is renamed aside before its age is judged; verify asks the pack as it is now before grading a packed object corrupt; the readers scan counts a bare .. as climbing out of its dir; the pins went red as follows, a burn that leaves the stage went red (0 passed, 1 failed), a write that does not check its lock went red (0 passed, 1 failed), a holds that always answers yes took 2 of 2 lock tests red (0 passed, 2 failed), a release that removes the new holder lock went red (1 passed, 1 failed), the scan without the bare .. went red (0 passed, 1 failed), and the suite is green (2248 passed, 0 failed) (kvxkszkp) 44984f6e · dbf3dbe6…diff
  • a stale store lock is now judged, removed and taken again only under a kernel lock on a breaker file beside it, which the kernel lets go when its holder exits and nothing removes, for pack.lock and for the shared store and op-log locks alike; the old .break lock could have two holders, because a waiter renamed a live breaker file aside to judge its age and another took the free name before it was linked back, and then both breakers judged the crashed lock stale and the later removed the lock the earlier had just taken; the stress test now pauses each racer between judging and removing and counts holders at once for both lock kinds, and went red on the old code 10 of 10 runs for each kind (0 passed, 1 failed), and red with the breaker lock dropped (0 passed, 1 failed) and with no second judgment under it (0 passed, 1 failed); it is green 50 of 50 runs of the loot-core suite under nextest at 36 threads, which reproduced the old failure 1 of 30, and the suite is green (2258 passed, 0 failed) (wrqoxuvx) 095d91e7 · dbf3dbe6…diff
  • one lease lock in loot-core, loot_core::lease, now takes, beats and breaks the store, op-log and pack locks, the harbor lock with the pr-map ledger and settle claim it guards, and the seek busy marker claim, with the stale horizon and the clock as inputs, a wall clock and a test clock; the harbor no longer breaks a silent lock by sampling, sleeping and removing it but under the kernel breaker lock, keeping its stale/4 watch, and the lock names, contents and take are unchanged, so an old and a new binary still exclude each other, checked by running the v0.4.34 lock code and the lane lock code as separate processes on one lock with no overlap in mixed live runs, 40 crashed-lock races per store lock kind, 10 harbor races, 40 s beaten holds and a handover each way; the many-breakers stress test is now a deterministic interleaving on the test clock that runs a second breaker whole at each pause point, red 3 of 3 runs with the breaker dropped (0 passed, 1 failed) and 3 of 3 with no second judgment under it (0 passed, 1 failed); ticket.rs holds no lock, its create-new write only refuses to overwrite; the suite is green (2260 passed, 0 failed) (wttrstzz) d2ad70b6 · dbf3dbe6…diff
  • the store, op-log and pack locks now watch a lock found stale for a further quarter of the horizon before breaking it, as the harbor does, so a waiter on a Mac that slept past the horizon no longer breaks a live holder mid-rewrite, and a lease breaks a lock without its breaker only where the kernel answers that locking is unsupported (Unsupported, ENOLCK, ENOTSUP, EOPNOTSUPP), waiting out a breaker error that passes (EINTR, EMFILE, ENFILE, EAGAIN); seek keeps the breaker when it clears a new cache position and judges a busy marker by the lease clock as its claim does, a crashed short proof salt is judged again under a kernel lock before it is removed, and lane new removes what it wrote on any failure before the entry is registered; a replaced shared file is written only when its handle changed it or never read it, a file written during a capture refuses with the code changed_while_recorded, the visible_object gate is one function the status read calls too, and LOOT_NET_TIMING lines drop any user:token from the host; ADR 0109, 0107 and 0076, CONTEXT and lease.rs say so, and some comment drift is cut; red before the fix: a holder beating inside the confirm window broken, a transient breaker error breaking the lock and a stale identity handle writing over a newer name (0 passed, 3 failed), and a timing line naming alice:hunter2 (0 passed, 1 failed); mutation proofs: the confirm window dropped with every breaker error read as unsupported (4 passed, 2 failed), no error read as unsupported (5 passed, 1 failed), the errno check dropped (0 passed, 1 failed); any other breaker error refuses with the code lock_breaker_unusable, naming the breaker file and its remedy, at once when permission is denied (EACCES, EPERM) and else once it has lasted the horizon, and never breaks the lock without the breaker, so a store lock taken with no deadline no longer waits forever on a breaker another user owns: lock_shared, lock_ops and the repack wait now return that refusal, pinned by refused rows in the injected-error table, which went red with a denied permission waited out for the horizon and with an unusable breaker broken through (4 passed, 1 failed each); loot-core is green at 364 passed, 0 failed, 1 ignored, and the suite at 2264 passed, 0 failed, 6 ignored (wttrstzz) 5f906127 · 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.