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…
  • 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 browser writes as the name minted on its key: loot login sends the <name>@loot comment of the key it registers first and of the key it holds on each poll, the forge keeps it once per live account key in account_key_name (migration 0070, SELECT and INSERT for forge_identity alone, named by no read role or view) and serves it to the owner beside the label, and nameOf passes it to the lockout check through writerName, falling back to the label, then the hex; a key registered before this or minted in a browser takes its name at the next loot login from a machine holding it; the move rail shows a refused space disabled with its reason beneath it, naming who the rule restricts it to; red without it: the web writer pin went 0 passed 1 failed with the label refusing tickets/security under restricted=connor and again with the label fallback dropped, and the restricted space pin 0 passed 1 failed with refused spaces omitted; ADR 0098 and CONTEXT say how; the site gate passes at 366 passed, 93 skipped, ci/local.sh is green on Postgres 18, and the suite is green at 2511 passed, 0 failed, 7 ignored (xynoxvlw) 144970ca · 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.