connor / loot

connor/loot

Changes touching this path

  • 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 · dbf3dbe6…
  • 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
  • a retired key's repo opens at its /k/ address: the /k/$owner layout 301s a retired key's path to the live key only where the live key holds a readable repo of the name and the retired key does not, and the key's own page only while it lists none (ReadTier.ownerRedirect), since retiring never moves a repo; the workbench under /k/ (sywswsxx) had made the home's retired-key links strand, so the home now links every repo to its /k/ page; pinned against Postgres, mutation-checked with both keys holding the name; ADR 0100 and 0103 amended (oznokxzk) 35592e07 · dbf3dbe6…diff
  • a key retired on its account collects no grants: the forge refuses /pull-grants and /grants/peek to it, as its sync reads already take it for Anon (ADR 0100 consequence, red with either guard removed), and the text the code contradicts is corrected: known-issues names the copies of a key and the words-plus-self-grant rebuild, loot id phrase says what the words reopen, /install line 1 names the older reader (ADR 0066 line 1 as it ships), concepts/visibility names four tiers, CONTEXT barriers are the record_op barrier flag, ADR 0023 defers to its bump rule, format history points at reference/formats, and the cli-verbs test is no longer cited (uozzsuuz) 4ab29e5f · 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.