connor / loot

connor/loot

Changes touching this path

  • the private workbench asks for the head manifest beside the repo header from the moment Clerk has a token, instead of after /me, the unlock and /api/private/repo in series: PrivateGate takes an ahead render prop, handed null while the account is read and the silent unlock runs and the session once unlocked, at the same place in the tree, and the workbench renders its header read through it; the new components/workbench/manifest.ts, where the manifest slot moved from the Files view data module, has readRepo issue the tip manifest and /api/private/repo together into the workbench cache, and the shell, where files and tickets open, still mounts only once the header and the unlock are both in. the gate starts the engine download and compile when it mounts, while Clerk loads, rather than after /me answers. the Tickets list /fetch starts from the tickets/ entries of the tip manifest beside /api/private/tickets rather than after it, and its answer is folded only when the route answers the same heads and files, else the list is fetched again over the route answer; a reread after a write leaves it off. the CSP is unchanged. pinned in the new site/test/workbench-first-reads.test.ts and 2 new tests in workbench-tickets-read.test.ts. red under named mutations, each restored, over the 5 tests of those two files: the header awaited before the manifest (4 passed and 1 failed), the list fetch waiting for the route (3 and 2), the manifest answer folded whatever heads the route answers (4 and 1), the manifest answer never folded (2 and 3). the site gate green at 886 passed; site only, no Rust touched and no cargo test run. owes a site deploy (kwlxstko) 89c6e267 · dbf3dbe6…
  • the Tickets view /fetch wants lane no longer falls to the residue query: since vrxsvlsy it names its heads as have, so every want reached repo_referenced_objects, whose plans on Postgres read every tree_entry row naming a want, every manifest of the repo, or the whole table; bundle_within now asks the new MetadataStore::referenced_by_versions of the manifests of the tips of what the caller named as held (serve::held_tips, tips because a CLI pull declares its closure) before the residue query, on Postgres pg::meta::REFERENCED_BY_VERSIONS, read one named version at a time and plan-pinned in pg::tests, and the answer is the same repo-scoped set. measured against a throwaway Postgres 18 with 2,200 ticket files of a 7,240-path head as wants and the head as have, the wants span went from 21.8-103.6 ms to 7.1-7.5 ms on the perf hunt fixture and from 575-1,820 ms to 11.4-15.2 ms on a repo whose ticket files sit in up to 1,000 manifests (the ADR 0075 zsxqmrtm amendment, and a note in ADR 0098). a /offer or /fetch step that fails now ends its own span before until_error; a budget refusal says how long since the walk began, keeping its leading words, and its objects-read count is taken once the gets in flight end, so it equals the cache_hit and cache_miss tallies summed; the fetch_latency cold test runs under an unspendable budget and asserts the fit from the width the tier saw instead of the wall clock. text: the timing module and CONTEXT.md say what a fact is and where facts are named instead of listing them (timing::count is timing::fact, Got.keeping is keep_time), the phases doc says the runner walk laps nothing and tallies no reads, and the lib.rs cache sentence names only the serving process. judgement calls: the route and the Tickets view build the ticket file list with the new site lib/workbench/ticket-files.ts and compare it by content, manifest.ts shares one private read, the wasm JS names are readTicketList and readWholeTickets, and ADR 0002 and the spike-crdt ignore reason say --include-ignored. red under named mutations, each restored: over the 16 offer_cost tests, no heads step (13 passed and 3 failed) and every named version read (15 and 1); the memory store reading every version (1 and 1 over the 2 conformance runs); the plan pin without OFFSET 0 (2 and 1); over the 27 serve tests, a failing step not lapped (26 and 1), the count taken at the refusal (26 and 1), the old spent wording (25 and 2), 16 in flight (26 and 1); the site ticket file compare as JSON text (2 and 1). the Postgres statement without its repo_id condition stayed green, as the RLS repo binding hides other repos. cargo test green, 4811 passed over 145 test result lines with 14 ignored, loot-forge green at 702 passed against a throwaway Postgres 18, the site gate green at 889 passed and its pg suites at 85. owes a forge deploy and a site deploy; it also carries the new ticket zsxqmrtm and comments on kwlxstko and zxkpzxvz (zsxqmrtm) ed102f51 · dbf3dbe6…diff
  • the Tickets view keeps the forge objects it reads in a browser cache and reads no code manifest: the list, a ticket read whole and the answers now take each object an IndexedDB cache in the vault database holds by content address, once the core has decoded the entry as the object at that address, and ask the forge /fetch only for the rest, so a repeat visit moves only new objects. an entry is a sync frame holding one object, ciphertext only, and an object whose key rode in the forge answer is not kept; the cache is bounded at 32 MiB, evicts the least recently used, is wiped with the vault, and reads as empty where storage is missing. the workbench asked for the whole head manifest on every entry and opened the explorer first, so a Tickets visit moved the whole tree, about 376 KB gzip as the ticket measured it: a view now has an ahead hook the shell runs beside the repo header, Files asks for the manifest there and Tickets for its route, and the shell opens the side panel of the view it was entered at, so a History link now opens the History panel; the list fetch starts from a manifest only when one is already held. pinned in vitest: a repeat visit asks the forge for nothing, a partial hit asks only for the misses, a damaged entry and an entry of another object are refused and asked for again, no keyed object is kept, a write lands only while the vault holds the identity, no storage asks every time, and a Tickets entry reads the route asked ahead and no manifest; and in loot-wasm, what an entry is and what it refuses. red under named mutations, each restored: the cache read skipped (3 failed and 11 passed), every want fetched on a miss (2 and 12), entries held unchecked (1 and 13), the list fetch loading the manifest (2 and 12), the entry view ignoring the document (1 and 13), the vault check dropped (1 and 11), an entry held under any address (1 failed and 3 passed in cargo, 1 and 10 in vitest), and keyed objects kept (1 and 3 in cargo, 1 and 10 in vitest). cargo test green, 4886 passed over 144 test result lines with 15 ignored, and the site gate green at 925 passed. owes a site deploy (qqypkwst) b7bcb3b5 · dbf3dbe6…diff
  • a refusal of a moved position now names each file another command moved, read off the fields of PositionState and of the draft slots, each destructured whole, where it named the heads, then the working change, and otherwise the conflict record, so a move of the settled ledger alone was named as the conflict record, and the draft check named every move its working change, a move of the pending handle included; a pool item whose run panicked is caught and finished, so the land test gate no longer names it as running until the pool ends, and the first such panic is carried out once the rest finish; a Tickets entry from Files while the manifest is still loading asks the list fetch from that manifest once it answers, unless the route answered first, where it asked only from a manifest already held. pinned: a_refusal_names_the_settled_ledger_when_only_it_moved, and the heads named in a_save_that_moved_the_position_refuses_over_a_newer_one, in loot-core; a_finalize_refused_over_a_moved_tip_names_the_heads, the arm tnlrmsmo named, and a_retry_over_unchanged_inputs_signs_the_version_id_the_refusal_left, which pins its version id claim, in loot-cli; a_panicked_item_is_not_named_as_still_running; and two site tests of a manifest in flight. red under named mutations, each restored, failed and passed: the ledger named as the conflict record (1 and 1), an unmoved working change named (2 and 0), the position check off (1 and 2), the pending handle named as the working change (1 and 2), a load that lets the pending handle win (1 and 2), the panic uncaught (1 and 14), a panicked item left unfinished (1 and 4), the panic not carried out (1 and 0), and of 29 site tests: an in-flight manifest ignored (1 and 28), a read that always waits for it (1 and 28, on a timeout), and no stop check (1 and 28). the ownership message is left at /wants for a pusher the custody list admits, decided and noted in forge_push.rs. doc fixes: save_to and persist no longer say each shared artifact merges, burned_under_lock names its lock as one of BURN_LOCKS, the disk record settles say what defines their callers, the grant cursor reads say what is pinned, the object cache says a repeat visit fetches a published object again and that the per-file bound is no share of the cache, vault.ts says what openDevice is exported for, the qktqvvzr sentences in CONTEXT.md and the land-change skill carry the dock condition, gc_keep_set names the leak a refused finalize leaves, .gitignore names .lootignore, and rewrap leftovers in orchestrator.rs, CONTEXT.md, workflow.md and grants.rs are joined. cargo test green, 4938 passed over 144 test result lines with 15 ignored, and the site gate green at 1028 passed. also closes qpxmrnxm and tzuxsroy. owes a site deploy (oxuypvlz) f557daaf · dbf3dbe6…diff
  • the workbench keeps the head manifest and the Tickets route answer at rest between visits, sealed with AES-GCM under the vault record wrap key with the entry key as additional data and the repo named by a digest, and asks again with If-None-Match: both routes tag their answer with the sha256 of its body and answer 304 with no body to that tag, a weakened one included, so a repeat visit downloads nothing while the answer is unchanged; a digest rather than the head or version, because a manifest row published flag and the repo header move while those do not. an entry is written only once this tab holds an unlock and while the vault holds the record it was sealed under, checked in the writing transaction, and Lock, sign-out and a change of user wipe it with the seed; the device database moves to version 6. the decrypted fold is not kept. red under named mutations, each restored: plaintext at rest (5 failed and 13 passed), no additional data (1 and 17), the key without the repo (2 and 16), the repo named as plaintext (1 and 17), the wipe skipping the store (4 and 14), no record check in the write (1 and 17), no live check (1 and 17), kept before the unlock (1 and 17), no tag sent (2 and 16), a 304 passed through (1 and 17), the server comparing strongly (1 and 17), the server tagging the version alone (1 and 17), and in the first reads the manifest or the tickets route asked without the cache, or every selector asked through it (each 1 failed and 4 passed). site gate green at 1138 passed; cargo test green, 5018 passed over 144 test result lines with 15 ignored. owes a site deploy (lnmntzxw) 0a84402e · dbf3dbe6…diff
  • site and sdk production comments cut by 71% to the docs/agents/writing.md standard: history, ticket numbers, rosters and ADR retellings removed, security reasoning, browser quirks and directives kept; comment-only, the TypeScript AST without comments identical, built bundles unchanged but for the build stamp (yrkykmsn) d8c01375 · dbf3dbe6…diff
  • docs/agents/writing.md is the standard for comments and docs: a comment says only the why the code cannot, rg and loot log answer who-calls, which-members and when-changed better than a cached comment, and history, ticket numbers, rosters and emphasis are deleted on sight. AGENTS.md links it. CONTEXT.md, AGENTS.md, docs/agents, the skills, specs, READMEs, research and evidence are cut by about 65% to it, every cited heading, § number and test-pinned string kept; files the yrkykmsn ticket (yrkykmsn) 8e3c7b83 · dbf3dbe6…diff
  • 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 · 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.