connor / loot

connor/loot

Changes touching this path

  • the private shell unlocks without waiting for its mailbox, and the mailbox pull becomes incremental: measured live, forge /pull-grants took 2.78 s of a 4 s /private load, because the whole mailbox of 1,640 standing self-grants was downloaded before the shell counted as unlocked. /pull-grants now takes an optional 17-byte cursor in its signed payload (a tag byte, then the inbox seq high-water mark and the forge clock at the answer, issued by the server and opaque to the browser, which may only send the all-zero one) and answers rows with seq past it or a reveal_at past its time, due on the forge clock, followed by the next cursor after the counted frames; the Postgres read takes a share lock on grant_inbox so a deposit that took a lower seq but commits later cannot fall behind every future cursor, and an empty payload answers byte-identically to before, so the CLI, the SDK and the relay client are unchanged and either deploy order works. the site keeps the sealed grant blobs and the cursor in IndexedDB beside the vault (version 2, the seed record kept), builds the keyring from them, shows the shell unlocked and pulls only the delta in the background; a file whose key is missing waits for an in-flight pull, the bars say keys are updating, and Lock clears every store with the vault. the gate shows Unlocking while a silent unlock runs rather than flashing the unlock card. forge tests on memory and Postgres and site tests, each red under a named mutation and restored; bash ci/local.sh green against Postgres 18 (4559 passed), site gate 819 passed. owes a forge deploy and a site deploy (#2403) 11cc1e3a · dbf3dbe6…
  • a Lock or sign-out in a tab loaded before a deploy that raised the device database version now wipes the vault: wipeVault asked for its own version, which a browser refuses with VersionError once a newer tab has upgraded the database, and lock() stopped before its broadcast, so the seed, the grant cache and the object cache stayed on disk for the next load to unwrap. the wipe now opens the database at whatever version it is, which asks for no version change, the thing an open connection in another tab blocks, rather than deleting it, which such a connection blocks; a lock whose wipe fails still drops the identity, tells the other tabs and publishes the lock carrying the failure, which the gate shows, then throws; each connection vault.ts opens closes on versionchange, and a tab that learns its build is older than the database, by a versionchange past its version or a VersionError, drops the identity and reloads, once for each database version its build knows, so a rolled-back deploy does not reload it forever. pinned in vitest over the in-memory IndexedDB, which now models versions, versionchange and blocked: a wipe of a database a version above the build clears the seed, the grants, the objects and a store the build never named; a lock whose wipe fails drops the identity, broadcasts, publishes the failure and throws; a newer upgrade closes a held connection without being blocked; a stale tab drops its identity and reloads, and a reload that brought back a build of the same version does not reload again. red under named mutations, each restored: the wipe at the build version (1 failed and 4 passed), lock stopping at the failed wipe (1 and 4), the broadcast only on a clean wipe (1 and 4), versionchange leaving the connection open (2 and 3), versionchange not marking the build stale (1 and 4), a VersionError not marking it (1 and 4), the reload without its once guard (1 and 4), and a stale tab keeping its identity (2 and 3). cargo test green, 4886 passed over 144 test result lines with 15 ignored, and the site gate green at 939 passed. CONTEXT.md and ADR 0096 say so. a tab already running a build from before this still runs the old wipe. owes a site deploy (qnkolyzz) 087f3d77 · dbf3dbe6…diff
  • the Tickets list read opens its keys in batches while the object cache is read, in slices that yield to the page, and its cache read no longer waits for the unlock or for a write: loot_codec::envelope::unwrap_envelopes checks many signatures in one batch verification and verifies each alone when the batch does not hold, loot-wasm openSealedGrants passes each grant the gates of openSealedGrant over it, and Keyring.keysFor opens the keys of the list through it 32 at a time and asks keyForSettled for the rest; the object cache read is read-only and the write after it marks what was used, the entries of the list are read as soon as the route answers, under the identity the vault record names, and the read yields every 8 ms (pace.ts). measured in headless chrome over the 2,161 list objects of this repo: key opening 283 to 295 ms before and 205 to 208 after, the longest task 362 to 379 ms before and 80 to 81 after, which is the fold call and stays one task, and the cache read 138 to 177 ms before and 38 to 48 after. the read leaves the measures tickets.unlock, tickets.engine, tickets.cache-read, tickets.keys and tickets.fold. refusal.tsx now states that loot-wasm exports no encrypt, held by a test to the generated surface, where it listed the exports. red under named mutations, each restored: keysFor without the batch (1 failed and 22 passed), without the lone asks after it (1 and 22), a pacer that never yields (1 and 1), a yield to the microtask queue (1 and 1), a cache read that marks uses (1 and 2), a mark for an entry gone (1 and 2), eviction before the marks (1 and 2), the read ahead ignored (1 and 15), read ahead under any identity (1 and 15), keys opened after the objects (1 and 15), no fold measure (1 and 15), an encrypt export (1 failed of 1), a batch that passes unchecked (0 passed and 1 failed in cargo), and openSealedGrants over unverified envelopes (0 and 1 in cargo, 1 and 22 in vitest over the rebuilt wasm). cargo test green, 4888 passed over 144 test result lines with 15 ignored, the site gate green at 958 passed, and the SDK suite 176 passed. CONTEXT.md says so. the wasm gains merlin for the batch, 16.6 KB gzip. owes a site deploy (nqrklwsv) 2bc00291 · dbf3dbe6…diff
  • the Tickets list cache read starts when the route answers, not after the keys: the vault was asked for the reading identity only once the route answered, and its IndexedDB answer then waited behind the key opening, which yielded with scheduler.yield and so resumed ahead of queued tasks. the vault is now asked with the route, and the pacer yields with a message behind the tasks queued: in headless chrome a 2,161 entry read under a 300 ms paced run finished at 334 to 336 ms before and 71 to 74 after, costing the run 23 to 27 ms. each cache read leaves its own measure, tickets.cache-read, tickets.cache-read.whole and tickets.cache-read.answers, tickets.unlock.recall measures the vault read of the unlock over a new unlockRecalled mark, the list read does not read again what the early read covered, the early read is skipped when a held manifest read the list first, and a ticket read whole asks for its keys while its objects are read. the unlock grant premise was measured and the store it proposed was not built: over 8,336 cached grants the grant read and filing cost about 90 ms of a 88 to 137 ms silent unlock, and a store by object took the unlock to 16 to 77 ms but the keys of the 2,161 list objects from 197 to 220 ms to 270 to 299, so the device database stays at version 3. red under named mutations, each restored: the pacer on scheduler.yield (1 failed and 2 passed), the vault asked again once the route answered (1 and 19) or only then (1 and 19), a whole read measured as the list (1 and 19), the early read ignoring a list read from a manifest (1 and 19), a whole read asking for keys after its objects (1 and 19), the list read reading the cache past the early read (1 and 19), and no recall measure (1 and 19). cargo test green, 4888 passed over 144 test result lines with 15 ignored, and the site gate green at 963 passed. CONTEXT.md and ADR 0096 say so. owes a site deploy (qmlkwlkn) 55f8ca4c · dbf3dbe6…diff
  • the silent unlock reads and files no standing self-grant: the device grant cache keeps each under the object it claims to open, in a store the vault database adds at version 4, and Keyring.keyFor and keysFor read and file the ones for the objects they are asked about, through the same sort and gates, keysFor in one read; the unlock files what is kept under no object, and moves each self-grant kept before under its object in writes of about 2 MiB, since one write of 60 MB held the store for 3.7 to 25 s in headless chrome. the live cache held 10,353 grants and 60,930,133 bytes, each self-grant carrying its object ciphertext, which reversed the verdict of qmlkwlkn, measured over small synthetic grants. over a fixture of that size and spread, up to 298,292 bytes, in headless chrome: the silent unlock 425 to 509 ms before and 68 to 74 after, and 1,224 to 1,303 and 80 to 84 at four times CPU throttling, while the keys of the 2,161 smallest grants went from 220 to 224 ms to 268 to 304, and from 931 to 993 to 1,182 to 1,387 throttled; the first unlock after the change files the old cache once, 440 to 515 ms, and its keys took 340 to 342 ms while the move ran. red under named mutations, each restored: the unlock filing every grant kept by object (5 failed and 13 passed), keyFor not reading them (5 and 13), keysFor not reading them (1 and 17), a grant read by object filed as verified (2 and 16), a read that lands after a lock filing (1 and 17), no move of grants kept before (2 and 16), a cache write without the vault check (1 and 17), the wipe leaving the new store (2 and 21), the count taken only from what is filed (6 and 12), a failed read not asked again (1 and 17), the move in one write (1 and 17), and the move going on past a write that did not land (1 and 17). cargo test green, 4888 passed over 144 test result lines with 15 ignored, and the site gate green at 970 passed. CONTEXT.md and ADR 0096 say so, and correct the qmlkwlkn verdict. a tab on an older build reloads once. owes a site deploy (vuvqoqyz) c89890f7 · dbf3dbe6…diff
  • a standing self-grant carries the key alone: a push deposits it with DagRepo::grant_key_only, and the browser ticket write too, where each body carried a copy of its object ciphertext; a forge filing a key-only standing self-grant (grant::Deposit::supersedes_standing, its grantor its grantee, no object, due and never expiring) drops the other self-grants of that object in that mailbox (GrantInbox::supersede_standing, one keyed statement over the columns of migrations 0030 and 0032, no migration of its own) and says standing_supersede in /info; loot grants --replace-standing reads the mailbox whole and re-deposits each full self-grant this identity signed as its own header with an empty body, at a host that says standing_supersede; the browser device database moves to version 5, whose upgrade drops the grant cache and its cursor once. ADR 0057 and CONTEXT.md say so, and no reader of a standing self-grant this change found takes the object from its body. pinned: a_key_only_standing_self_grant_supersedes_the_full_one over memory and Postgres 18, the_standing_supersede_asks_the_index_by_address, only_a_due_key_only_self_grant_with_no_expiry_supersedes, a_standing_self_grant_carries_no_object_and_a_timed_one_carries_its_own, replacing_the_standing_self_grants_leaves_one_key_only_grant_an_object_that_still_opens, a_self_grant_carries_the_key_its_header_names_and_no_object and the site upgrade test; red under named mutations, each restored: no drop at filing (2 failed and 2 passed over the four supersede tests), a full self-grant replacing (3 and 1), an expiring one (3 and 1), a grant to another key (1 and 3), an undue one (1 and 3), the memory drop ignoring the signer (1 and 3), the Postgres drop ignoring the signer (1 and 3), the Postgres drop taking the grant it keeps (2 and 2), the drop not keyed by address (1 and 3), the push depositing a body (1 failed and 0 passed, twice), no capability check, key-only grants replaced again and the replacement keeping its body (each 1 and 0), the ticket self-grant carrying an object (1 and 0), no drop on the upgrade (1 failed and 18 passed). cargo test with the live suites over Postgres 18 green, 5017 passed over 144 test result lines with 15 ignored, and the site gate 1094 passed. owes a forge deploy, then the replacement run, then a site deploy (kwxvxtqm) 1f363845 · dbf3dbe6…diff
  • review sweep 2 fixes for the forge app move and loot login: /device reads no code from its URL and the forge hands the CLI the bare page, so a link someone sent cannot approve their terminal; a key kept unlocked on loot.build is no longer wiped silently, a brochure page that finds one says the key moved and what unlocking on forge.loot.build needs, and removes it once the reader confirms; a server function call is weighed by the import-graph property routes are, the build writing it into each id (tools/surface.mjs serverFnId), and loot.build refuses a call whose module reaches a session, a key or account rows, the /metrics cookie calls among them; with no split the site still marks the forge app on the forge host, since browsers keep the 308s, and ADR 0099 says what that rollback gives up; migration 0037 revokes every privilege of the forge service role on device_login and device_login_miss; in the scripts repo the Clerk parties derived under the split are the forge origin alone and a set list naming the brochure is refused, and a site deploy empties the forge app cache beside its own; CONTEXT.md, USAGE, the CLI docs page and login.rs say when no remote changes, and the hand-kept lists and rewrap leftovers sweep 2 named say what defines each set instead. red under named mutations, each restored: the pre-fill restored and the code put back in the path (each 1 failed and 1 passed); the silent wipe back in the root, the remove button live without the tick and the database opened unlisted (each 1 failed and 5 passed); every call served on the brochure (1 failed and 17 passed), every id marked brochure (2 failed and 16 passed), no-split marking off (1 failed and 17 passed); on the built server with a split, the host middleware passing every call and the build naming no ids (each 1 failed and 5 passed), and on a build with the forge origin alone the old early return (1 failed and 1 passed); in the scripts suite, the brochure back among the parties and the forge app cache left out of the purge (each 1 failed and 12 passed); on Postgres 18, 0037 without its device_login revoke (3 failed and 5066 passed, one the checksum pin). cargo test green, 5069 passed over 145 test result lines with 15 ignored; ci/local.sh green on Postgres 18 with the site live suites at 120 passed; site gate green at 1198 passed with no split, 1203 with one, and the full site suite at 1199 with the forge origin alone; scripts suite 428 passed. owes a forge release and deploy, which applies migration 0037, a commit of the scripts repo work, then a site deploy (zrvquxls) 74d7c457 · 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.