Changes touching this path
- the private shell stops dying a minute after /account: it authenticated with Clerk 60-second __session cookie while no Clerk JS ran on /private to refresh it, so every private call 401d and a reload wiped the vault. per the operator grill (ADR 0096, reversing #930 dec. 4), Clerk JS now runs on the private routes, loaded on demand behind PrivateGate so public pages carry none, under the strict nonce CSP widened only for Clerk (its frontend API host read out of the publishable key, img.clerk.com, the Turnstile and protect hosts, and worker-src blob: for its session timers) with the request nonce passed to ClerkProvider; every private call goes through one privateFetch that sends a Bearer from getToken and retries once with a fresh token, and /api/private/* no longer accepts the cookie; the vault is wiped only when Clerk reports signed out or a different user, or on Lock, and an HTTP status never wipes it; signed-out /private renders SignIn in place and returns to the requested URL, and the private bar gains Sign out beside Lock. the vault, private shell and CSP comments and CONTEXT.md now say what is true: the wrap key can decrypt, so any script on this origin can recover the seed, and the wrap protects it at rest; the boundary is this origin script set, loot code plus Clerk. tests for the CSP, bearer lane, retry and wipe triggers and the built server, each red under a named mutation and restored; site gate 804 passed, every surface lighter; a CSP-enforcing signed-out load renders SignIn with no violation and /why loads no Clerk; workspace suite 4549 passed. the operator live check closes the ticket (#2396)
25ab3fa8 ·dbf3dbe6… - 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 ·diffdbf3dbe6… - key management on the site: a key can be retired by itself, named, and chosen at unlock. per the operator grill on #2398 (ADR 0100): POST /api/identity/retire retires one key of the signed-in account, refusing the last live key under the account-row lock registration takes and never re-dating a retirement, with no route to un-retire and no deletion, since #506 keeps every key resolvable; /account lists live keys and folds retired ones under a collapsed section, and the retire confirmation names the repos the key owns. names live in a new owner-only account_key_label table (migration 0027) that only forge_identity reaches, trimmed, at most 40 characters, with control, line-separator and direction characters refused and a CHECK repeating the cap; they reach only /account, the unlock picker and the private bar, always beside the fingerprint. the unlock picker lists every live key, defaulting to the key that owns the URL namespace, then the key this device last unlocked, then the only live key, and a key with no stored passphrase asks for its 24 words and can save one. both routes are Bearer only and refuse a key of another account; /api/identity/me stops returning the internal tenant id. rebased by hand over migration 0026 and ADR 0099. pg tests pin the role reach, route and picker tests pin the rules, each red under a named mutation; bash ci/local.sh green against Postgres 18 (4568 passed), site gate 842 passed. owes the setup-forge tripwire update, a forge deploy, then a site deploy (#2398)
a90c85fb ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - the site loads clerk-js at the exact version the installed clerk-react was built with, not the floating major: both ClerkProviders asked the CDN for @clerk/clerk-js@5, which it answers with an uncached 307 to its newest release, so whatever Clerk published ran unreviewed on the page that holds the seed. vite.config.ts now defines __CLERK_JS_VERSION__ from tools/clerk-js-version.ts, which asks the @clerk/shared under @clerk/clerk-react for the clerk-js it was released with (5.127.1 today), and each ClerkProvider passes it as clerkJSVersion; the CDN serves that URL with no redirect and as immutable. no subresource integrity: the clerk-react loader takes no option for one. pinned in vitest: the version is exact, is the one the installed shared names, lands in the script URL clerk-react builds, every ClerkProvider under src passes it, and the build carries it. red under named mutations, each restored: the private gate without the prop (1 failed and 4 passed), the account page without it (1 and 4), the helper returning the major (3 and 2, and 2 and 3 with its check off), a typed 5.128.0 (1 and 4), shared resolved from the site (3 and 2), and the build without the define (1 failed and 7 passed). local trace, signed out, warm: the script comes from cache at 30 ms against 51 to 60 over the redirect, and Clerk.load still starts at about 137 ms either way, on the 100 ms poll in clerk-react. cargo test green, 4886 passed over 144 test result lines with 15 ignored, and the site gate green at 945 passed. CONTEXT.md and ADR 0096 say so. owes a site deploy (lzxtqwxq)
f80b7345 ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - a Lock drops the identity, publishes the lock and tells the other tabs before it awaits the wipe, and tells them again once the wipe settles, where it told them only after the wipe, so a wipe waiting behind another tab upgrade left them unlocked for as long; a tab older than the device database has its open refused with StaleBuild, whose sentence the unlock card shows before and on an unlock: the page must be reloaded from a current build, where a stale tab after a rolled-back deploy read the account tier as unreachable. the Tickets measures take a MEASURE const, the span from the keys to the index is named tickets.keys-to-index for what it spans where it was tickets.fold, and the address width is named once as ADDRESS_BYTES. the ClerkProvider census reads aliased and namespace imports and refuses a use that is not a tag, the workbench frame says Unlocking again once the header is in, refusal.tsx names what defines the set of sealing calls rather than two of them, CONTEXT.md no longer calls every private surface client-rendered, and loot-codec and CONTEXT.md say its batch feature compiles merlin into every build of it. red under named mutations, each restored: the broadcast only once the wipe settles (3 failed and 6 passed), the lock published only once it settles (1 and 8), no broadcast once it settles (2 and 7), the VersionError passed through (4 and 5), the span measured from the fold (1 and 20), the engine measure not left (1 and 20), the frame ignoring unlocking (1 and 9), an aliased provider without the prop (1 and 9), and the census without aliases (2 and 8). cargo test green, 4897 passed over 144 test result lines with 15 ignored, and the site gate green at 981 passed. ADR 0096 says so. owes a site deploy (qrsypwtv)
8caf1999 ·diffdbf3dbe6… - a Lock now closes the workbench cache, where the Tickets view kept the flat runs of content keys it handed the core, with the folds they opened, after the keyring had zeroed its own: forgetInMemory, the path every end of an unlock takes, empties and closes each held SessionCache, a write to one after that keeps nothing so a read in flight puts nothing back, WorkbenchContext.cache is typed as one so a plain Map is not assignable to it, and the workbench takes a new one for the next unlock. a read of the Tickets list again after a write reuses keys only when the keyring that opened the list shown is the one of this session, and otherwise reads from nothing. each lock telling carries the time the lock began, and a tab whose reader unlocked by passphrase or words after it keeps that unlock, where the telling sent once the wipe settles relocked it; an unlock recalled from the vault is relocked by any telling, and every unlock by a bare lock message from an older build. the broadcast doc no longer says a told tab re-reads the vault, and a silent unlock that throws, as on an IndexedDB error, says why on the unlock card. pinned: no fixture key reachable from the cache once the unlock ends, a read in flight putting nothing back, a read again under another identity asking its own keyring for every key, and the lock rules. red under named mutations, each restored: forget not closing caches (2 failed and 1 passed), a closed cache still keeping writes (1 and 2), reuse under any keyring (1 and 2), a lock telling ignoring the unlock time (2 and 3), a silent unlock counted as asked (1 and 4), a message without a time read as time zero (1 and 4), a released cache still held (1 and 4), and the card reason left bare (1 and 4). cargo test green, 4919 passed over 144 test result lines with 15 ignored, and the site gate green at 1006 passed. CONTEXT.md and ADR 0096 say so. owes a site deploy (kqpqnmqx)
80ed4a15 ·diffdbf3dbe6… - a failure inside an unlock now ends it through forgetInMemory, which publishes locked, so the unlock card is usable where it sat disabled on unlocking, and a silent unlock throws the failure for the card to say, as for an engine that does not load, with the vault record kept; a vault holding a key the account holds retired asks for a key as one it does not hold does, where it unlocked as that key, and forgetInMemory forgets the keyring an unlock built before publishing it. also fixes yvonuouo: a lock telling carries an id, weighed at the time the tab first heard it by performance.now, where a time from Date.now could step backward and leave an unlock standing; an unlock takes its generation when asked for and stops at its next step once an end moves it, removing a seed it stored meanwhile, and a relocked unlock removes the seed it stored when still the one stored; forgetInMemory closes every workbench cache made since the last end, one no workbench shows included, so such a cache stays in memory until the unlock ends. red under named mutations, each restored, failed and passed of 24: no end on a failure (5 and 19), the silent catch swallowing every failure (2 and 22), a retired key not filtered (1 and 23), a wrong identity thrown (2 and 22), the built keyring not forgotten (2 and 22), a cache not kept from construction (2 and 22), the wall clock (2 and 22), no check once the engine loads (2 and 22), a seed stored as the lock was heard kept (1 and 23), a relock keeping its seed (1 and 23), and no check once the keyring is restored (1 and 23). cargo test green, 4919 passed over 144 test result lines with 15 ignored, and the site gate green at 1016 passed. CONTEXT.md and ADR 0096 say so. owes a site deploy (knqurkks)
8e9e4b6f ·diffdbf3dbe6… - the seal-WIP refusal of a bare loot adopt or loot ferry now counts deletions as loot status classes its rows, so the source of a recorded move is not one, where it counted every path gone from the tree and sent the reader to restore a move source, which turns the move into a copy; a workbench releases its SessionCache when it unmounts, which closes it then unless a write the unload guard counts as unsettled still reaches it, and then once none does or at the Lock, where each mount of one long unlock kept its cache to the Lock; a retired key is refused by the guard each unlock runs and by the passphrase save, where 24 words for one unlocked and stored the seed; an unlock ended by a lock whose seed removal fails says both, and the record is named for removal, in localStorage and in the tab, so a silent unlock that sees the name removes it before it recalls anything, or throws. also Tag::of matches the Tag discriminants, a debug_assert stops a settled count above the answer, the wire.rs body time claim names the readers it is true of, the unknown-tag hold is documented as unbounded by choice, Response::bytes takes the body without a copy when nothing else holds it, and a read into no room is not the end of a body. red under named mutations, each restored, failed and passed: a move source counted (1 and 1), no deletion counted (2 and 0), an empty read taken as the end (1 and 11), a branch counting twice (1 and 0, on the assert), and of 41 site tests: release never closing (1 and 40), release closing what a write reaches (1 and 40), a settled write not closing it (1 and 40), the guard not telling the cache (1 and 40), a closed cache kept in the set (2 and 39), a retired key let through (3 and 38), the removal failure replacing the end (1 and 40), the recall ignoring a noted record (2 and 39), no note before the removal (2 and 39), any record removed while one is noted (1 and 40). cargo test green, 4934 passed over 145 test result lines with 15 ignored, and the site gate green at 1026 passed. CONTEXT.md and ADR 0096 say so. owes a site deploy (ylopkxsk)
771ec092 ·diffdbf3dbe6… - the site bundles @clerk/clerk-js 5.127.1 from the lockfile, pinned exactly at the version the installed clerk-react 5.61.9 was built with, and hands each ClerkProvider a Clerk that src/lib/clerk-instance.ts constructs once per document, through its Clerk prop, so clerk-react loads that instance at once where it inserted a CDN script with no integrity and polled window.Clerk every 100 ms. the clerk-js npm build is one module that carries its UI components and fetches no chunk at run time, 2.96 MB or 949 KB at gzip -9, which the private gate and /account load on demand; no public page fetches it, and on a build with a key each public surface weighs 21 to 29 B more for the import entry. the private CSP drops the Clerk frontend API from script-src and keeps it in connect-src. red under named mutations, each restored: the frontend API back in script-src (2 failed and 14 passed), a provider without the instance on the private gate or on /account (each 1 failed and 12 passed), clerkJSVersion beside the instance (1 and 12), a new Clerk per call or one kept across keys (each 1 and 12), /account constructing its own Clerk (1 and 12), clerk-js pinned at another version or at a range (each 1 and 12); on the built server, the frontend API in script-src and the instance imported eagerly by private.tsx (2 failed and 6 passed, one test each) and another expected version (1 failed and 7 passed). site gate green at 1142 passed; cargo test green, 5021 passed over 144 test result lines with 15 ignored. CONTEXT.md and ADR 0096 say so. owes a site deploy; also carries a comment on lnmntzxw with its live reading (svlsyqkr)
9388597a ·diffdbf3dbe6… - the site writes every built asset URL under the origin VITE_LOOT_STATIC_ORIGIN names, when the deploy sets one, by making it the Vite base (site/tools/static-origin.mjs, which refuses a value that is not a bare https origin), so a Cloudflare-proxied static.loot.build can serve the scripts, stylesheets, fonts, images, the engine wasm and the bundled clerk-js while pages, /api/private and the forge stay on the VPS; the private CSP lists that origin in script-src, style-src, img-src, font-src and connect-src and in no other directive, and the byte gate and the tests that read the build map its hrefs back onto .output/public. unset, the build and the policy are as they were. ADR 0096, CONTEXT.md and the csp.ts header say Cloudflare is now inside the seed trust boundary, by the operator decision of 2026-10-01. red under named mutations, each restored: the origin out of connect-src (2 failed and 18 passed), in worker-src or in default-src (each 1 and 19), privateFetch built from BASE_URL and a path accepted as an origin (each 1 failed and 4 passed), hrefs on the origin left unmapped (the budget refuses, and 3 failed and 25 passed); on the built server with the origin set, a build that ignores it (5 failed and 9 passed) and a policy reading another variable (1 failed and 13 passed); unset, a base that defaults to the static host (6 failed and 13 passed). site gate green at 1158 passed both unset and with https://static.loot.build; cargo test green, 5026 passed over 145 test result lines with 15 ignored. owes a site deploy once the static host serves the assets with CORS (snmkuxnr)
f8f0c71a ·diffdbf3dbe6… - forge.loot.build serves the forge app beside the protocol and loot.build keeps the brochure, ADR 0103 decisions 1 and 2: site/tools/surface.mjs reads which routes are the forge app off each route import graph at build time, a route that reaches Clerk, the vault or a forge database other than the anonymous read tier, and the /k/ repo pages; one build serves both hosts, and start.ts sends a forge app route asked on any other host to the forge with a 308, a brochure page asked on the forge to loot.build with a 308 and the forge root to /private with a 307, while the root route beforeLoad makes a navigation that crosses a full page load and SurfaceLink writes a crossing link with the other origin. the loot.build header loses the Private tab and the key chip for one Open the forge door; the sign-in and the unlock card say a reader signs in and unlocks once more on the new host, and brochure pages delete the device database a browser kept on loot.build. the forge sets X-Content-Type-Options nosniff on every answer, and no_site_route_sits_at_a_path_the_forge_serves reads the site route tree against server::protocol_path_patterns, every Route at both mounts. ADRs 0096, 0099 and 0103 and CONTEXT.md say so. red under named mutations, each restored: a forge route served on any host, a brochure page sent to the forge and the forge root sent to the brochure (each 2 failed and 12 passed), dynamic imports unread (7 failed and 7 passed), the account capability gone (3 failed and 11 passed), the repo pages gone (1 failed and 13 passed); on the built server with a split, the host middleware dropped (3 failed and 2 passed); in loot-forge, nosniff off and a site route at a repo endpoint path (each 1 failed and 1 passed). site gate green at 1174 passed with no split and 1178 with one; cargo test green, 5048 passed over 146 test result lines with 15 ignored. owes a forge release and deploy, the scripts repo edge from setup-forge.js, then a site deploy (lrvstoyz)
e1ddbc90 ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - plans through Clerk Billing are mirrored into the account tier, ADR 0103 decision 6: migration 0038 adds plan_limit, the one table that keeps what each plan allows, keyed on the Clerk plan slug and seeded free at 1 GB with no collaborator, runner or pipeline and pro at 50 GB with five collaborators and three runners, and account_plan, the plan in effect per Clerk user, written by the site billing module over forge_identity and left SELECT only to the forge role; the site writes a row only after reading the subscription again from the Clerk Backend API, when a Svix-verified webhook at POST /api/billing/webhook names a payer and on an hourly in-process pass over every account, deletes it when no plan is in effect, and refuses every delivery while CLERK_WEBHOOK_SIGNING_SECRET is unset; GET /api/billing/plan answers an account its plan and every plan limits. the pass is started by the planResync request middleware, after wideEvent, through outsideRequest in server/wide-event.ts, which runs it with the recorder store exited so its timers carry no request recorder. the account page UserButton opens the profile by navigation on the Clerk hosted Account Portal, because the profile Billing tab opens a checkout that loads Stripe.js and the account page carries no script policy on the origin that holds the seed, and a test holds every clerk-react import to a set checked to mount no payment surface. ADR 0103 takes a seven-day trial where it said fourteen, and ADRs 0103 and 0096 and CONTEXT.md say so. red under named mutations, each restored: a canceled item never in effect, no preference for a chosen plan, no secret guard and a pass that stops at a failure (each 1 failed and 15 passed), the signature unchecked (2 failed and 14 passed), the UserButton back to a modal with a PricingTable import (2 failed), ensurePlanResync called directly rather than through outsideRequest, and outsideRequest running its work under the store (each 1 failed and 23 passed), migration 0038 granting forge UPDATE on account_plan (2 failed and 75 passed, one the checksum pin); on Postgres 18, 0038 without its account_plan revoke (3 failed and 701 passed, one the checksum pin) and planOf ignoring the mirrored row (2 failed and 123 passed). cargo test green, 5071 passed over 146 test result lines with 15 ignored; ci/local.sh green on Postgres 18 with the site live suites at 125 passed; site gate green on the tree with the 406 fix at 1231 passed, every surface under its ceiling; scripts suite 428 passed. owes a forge release and deploy, which applies migration 0038, a commit of the scripts repo work, then a site deploy (lzntyyrz)
f6126a2c ·diffdbf3dbe6… - review sweep 3 fixes: a Clerk answer of 404 for a subscription no longer reads as no plan, so the plan sync throws and keeps the mirrored row where it deleted it and dropped a paying user to Free, and only a subscription Clerk answers in which nothing is in effect clears the row; the Clerk billing surface test now holds what ADR 0096 says, reading every Clerk package import, @clerk/clerk-js among them, and refusing any source that names a member of the Clerk instance that shows a component or names a payment, read off the pinned clerk-js, wherever the instance comes from, with the buildUserProfileUrl use on /account passing. ADR 0066 states what the forge deletes of the bucket have in common rather than a closed list of paths, ADRs 0046 and 0103 record the operator choice of 2026-10-02 for the one-account restore, ADR 0103 says which payers the scheduled pass does not re-read and loses a rewrap leftover, ADR 0096 corrects what the guard held, and plan.ts, the terms pin doc, ADR 0066, styles.css, nav-maturity, ADR 0046 section 8 and the budget drift reason point at what defines each set instead of re-listing it; in the scripts repo the BACKUP_WINDOW_PAGES and setup-site comments do the same. red under named mutations, each restored: a 404 read as no items (1 failed and 19 passed); an openUserProfile call on useClerk in account.tsx and an __internal_openCheckout call on the clerk-js instance (each 1 failed and 3 passed, where the old test passed both at 2 passed); @clerk/clerk-js dropped from the checked set (1 failed and 3 passed). cargo test green, 5075 passed over 145 test result lines with 15 ignored; site gate green at 1237 passed, every surface under its ceiling; ci/local.sh site live suites green on Postgres 18 at 128 passed; scripts suite 433 passed. owes a commit of the scripts repo comments once this lands, then a site deploy (vukqnzrx)
e0092c3f ·diffdbf3dbe6… - the repo page is laid out by reader, ADR 0103 decision 4: /k/<owner>/<repo> stays one cached server-rendered page, README first with the files under it and an About rail with the clone command, who can read what, the live heads and a sign-in offer, and its 404 carries the same offer; an owner or member unlocked on the origin gets tabs, the head file table with sealed paths, the README opened in the page, the roster count and the workbench on the dot, drawn in the browser from a module and a Clerk a stranger visit never fetches; the home leads with the keys waiting to be accepted above the repos, which link to their one address; proposals, pipelines, settings and activity need reads the site does not have and are not shown. red under ten named mutations, each restored; site gate green at 1304 passed, about 215 B a surface (kkmzrqtm)
31dbf3e4 ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - every forge app page on forge.loot.build carries the strict script policy: the private documents keep their nonce and the rest, the cached /k/ pages among them, carry the sha256 hashes of their own inline scripts, computed from the body the header travels with, so a cached copy stays consistent; ADR 0096 amended; the split-build test is red with the policy removed (mvkmqszv)
c31d72d5 ·diffdbf3dbe6… - the hosted-agent consent page and the plan row, ADR 0119 §3 and §4: /private/connect reads the pending connection from the agent host by an opaque id (never from its query), refuses a repo not under the account or a forge whose /info lacks hosted_agents, lets the owner name the agent and pick its scopes (read . and write nothing by default, .lootattributes added for a writer as loot agent add does), names loot, Cloudflare and the model provider, signs the hosted registration with the new Identity.agentAdd and posts it to /agents/add, shows a 402 in the forge words with Pro offered, and returns only to the agent host own /consent/<id>/done; the private CSP adds the agent host to connect-src only when VITE_LOOT_AGENT_HOST_ORIGIN is set (ADR 0096 §2); loot_codec::agent_wire owns the /agents/add payload, its hosted byte and the scope and name refusals the CLI, forge and wasm share; the plan page gains Hosted agents, N per account, read through to_jsonb so it stays off before 0072; one vector file pins the envelope bytes, the 200 and the 402 for the forge test and the site test; ADR 0119 §3 gains the handoff contract as built; shot signed in on desktop and 320 px over eleven states with every write mocked, one h1, no small targets and no overflow (przzsrpt)
4b4c662d ·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.