connor / loot

connor/loot

Changes touching this path

  • loot login connects a repo to a forge account with a device code, ADR 0103 decision 5: the CLI keeps a 32-byte secret, opens a login with its SHA-256, prints the code and opens the forge app /device page, where the signed-in owner approves it over Bearer; an account with no key then takes the repo key as its first, wrapped in the terminal in the envelope /account writes, and an account with a key hands over its live keys and envelopes once, the passphrase unwrapping the chosen one here unless the repo already holds one and the previous repo key archived; the repo gains an origin or forge remote. site/src/server/identity/device.ts owns the rules over the device_login and device_login_miss tables that migration 0036 grants to forge_identity: a login is spent on use, ends LOGIN_TTL_SECS after its start and keeps only the hash of its secret, codes that match nothing are counted per account under an advisory lock, and polls are paced with slow_down. loot_identity::seed_envelope is that envelope in Rust, held byte for byte to seedblob.ts by two vectors pinned on both sides. ADRs 0103, 0066 and 0074, CONTEXT.md and the README say so. red under named mutations, each restored: the Rust writer with salt and iv swapped, and its key drawn from other bytes than the passphrase (each 2 failed and 5 passed); the site writer with salt and iv swapped (2 failed and 18 passed); in the CLI, the unwrapped key left unchecked against the key named, the old key deleted rather than archived, an origin rewritten and slow_down ignored (each 1 failed and 8 passed); migration 0036 granting UPDATE on device_login_miss (2 failed and 73 passed, one the checksum pin); a case-sensitive code (1 failed and 3 passed); on Postgres 18, the miss limit gone, keys read without spending the login, a first key registered over a key the account has, the decision taking the cookie and slow_down gone (each 1 failed and 29 passed). cargo test green, 5067 passed over 146 test result lines with 15 ignored; ci/local.sh on Postgres 18 ran every database suite green, the site live suites at 120 passed; site gate green at 1186 passed. owes a forge release and deploy, which applies migration 0036, then a site deploy (zqppqokk) d2258a27 · dbf3dbe6…
  • 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
  • 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
  • the forge sign-in is drawn in the house tokens through one shared Clerk appearance handed to every ClerkProvider (site/src/lib/clerk-appearance.ts), where it was the stock light card on the dark site: the card takes --color-surface-overlay, text --color-text-primary, the primary button --color-primary, inputs --color-surface, the Geist face and the house type scale, so its inputs compute to 16 px instead of 13 px on every target and iOS no longer zooms; the sign-in and sign-up card titles and subtitles are hidden, keeping the rest of the header (a later step names the account there with its edit control), and the plan page title moves inside its gate, so /, /grants and /private/plan carry one h1 where they carried 2, 2 and 3, and the /account and /device sign-in modals one where they carried 2; shot on every target from a local build given the forge public publishable key, overflowX stays 0 and the small-target count goes from 10 to 10 or 9; a UI change is off the must-test list, so no test was owed; npm run gate passes at 363 passed, 88 skipped with every surface under its ceiling, and the suite is green at 2268 passed, 0 failed, 6 ignored (qokqrvnn) 2d326d74 · dbf3dbe6…diff
  • /device and /private/plan carry one h1 in every state the h1-per-state probe reaches, where /device read 0 until Clerk drew its sign-in and 0 to the end with the Clerk API or clerk-js blocked, and /private/plan read 0 in its server render: /device names itself in an h1.visually-hidden over its loading placeholder, its no-key and sign-in-failed notes and while Clerk loads or fails, and the plan route carries one over its placeholder, server render included, until the page draws its own title; every frame is byte-identical before and after on every target and in every probe state, overflowX stays 0 and the small-target count stays 0 and 9; a UI change is off the must-test list, so no test was owed; npm run gate passes at 365 passed, 92 skipped with every surface under its ceiling, and the suite is green at 2439 passed, 0 failed, 6 ignored (uploswst) 36c7f0c8 · dbf3dbe6…diff
  • the forge path crumbs and repo bar mark only the page you are on as current: their links match exactly, the leaf crumb carries aria-current, the crumbs nav is labelled Breadcrumb and the tabs nav Repo, so /tree/tip/crates/loot-cli announces 1 current page (loot-cli) where it announced 5 (connor, loot, Code, loot, crates) and a blob or path-history leaf goes from 0 to 1; the docs crumb gap moves from 0.4rem to 0.5rem, 8 px each side of the slash on both hosts where the docs read 6.4, a wrapped label keeping its slash on its first line; /device shows the /account sign-in could not load note when the Clerk API is blocked, where it drew a blank page, with 1 h1 in every state; the repo bar owner and repo links already measure 71x44 and 45x44 on production, the 41 px reading came from newer CSS shot over older markup, so they take no change; overflowX and small targets unchanged, npm run gate passes (365 passed) and cargo test is green (2448 passed, 0 failed) (vzrzkqrq, rqlonuuo) c99484dc · dbf3dbe6…diff
  • a forge repo page whose sign-in cannot load keeps the page and shows the /account and /device could-not-load note in place of the sign-in card, where tapping Sign in removed the card and left nothing in the About rail with the Clerk API blocked, and swapped the whole repo page or 404 for the gate note with clerk-js or the gate chunk blocked: the repo page reads a Clerk failure from the account signal and counts a member chunk that fails to load as one, the card holds a disabled Opening sign-in button until the gate sign-in replaces the page, and /account, /device and the card share one SignInFailed note; on a throwaway read tier with the public Clerk key and the host split, 60 of 60 tap runs (6 targets, repo page and 404, normal and 4 failure modes) end with 1 h1 and no empty place, the note in the card in 48 of 48 failure runs where 0 of 48 had it before, overflowX 0 and small targets unchanged, npm run gate and cargo test green (uwppzqvp) c1b451b2 · 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.