connor / loot

connor/loot

Changes touching this path

  • an account act a live key may do is a request it signs, and an account an invite opens has no Clerk user (ADR 0120, migration 0075): the forge app takes Authorization: Loot-Key over a statement of one method, origin, path, body hash and signing millisecond as the session of the account the key is live on, only on routes that name the lane (identity me, handle, label and notifications, billing plan, private me, repos, repo, members and watch), refusing a statement five minutes from its clock, one signed for another forge, and a changing request signed no later than the key last one (account_key.last_request_ms); a key the door admits by a row of its own opens a keyed account for itself with no sign-up, whose live keys add and retire keys, while an account with a Clerk user keeps adding and retiring signed in; loot account show, open, handle, add-key and retire-key, loot member list, add and remove, and loot plan drive it with porcelain and JSON and refusals coded by status; the plan resync, the notification sender and loot-forge --delete-account skip a keyed account Clerk does not know; with the origin unchecked, the body unchecked, the clock taking an equal time, the door not asked, a key adding keys to a signed-up account, and every lane taking keys the lane tests went red (10 passed, 1 failed each); cargo test 2634 passed, the site gate 413 passed and ci/local.sh green against Postgres 18 (zoovvovz) 92fe8a10 · dbf3dbe6…
  • loot login signs a home in by the key it holds when that key is already a live key of an account, with no code, no browser and no passphrase: the key signs POST /api/login/key on the key lane (ADR 0120 decision 7), the forge answers the key, whether the account is keyed and its handle and keeps the name minted on the key as an approved poll does, and the login finishes with the remote set; any other answer, a key on no account, one retired on it or a forge without the route, goes on to the device code, whose passphrase is asked for only then; --code asks for a code anyway, to bring another account key to a home that holds one; under --json the signed_in object is then the only line; the binary test went red with the keyed path disabled (0 passed, 1 failed); cargo test -p loot-cli login 12 and 3 passed, the site gate passed and the site live suites 102 passed against Postgres 18 (zoovvovz) e8b61740 · dbf3dbe6…diff
  • loot member add and remove name a collaborator by handle as well as by key, and watches and notification settings have verbs: the roster route takes handle in place of pubkey, reads it as the oldest live key of the account that holds the name now and answers the key it stood for, with a name no account holds refused 422; loot account watch [on|off] reads or sets this account watch on one repo, and loot account notify [<toggle>=on|off]... reads the notification toggles or changes the ones named, writing the settings whole as the route takes them and refusing a toggle the forge does not have before anything is written; each prints porcelain and JSON, and the member change gains a handle field; the binary test against a stub of the routes went red with the notify write sending only the changed toggles (0 passed, 1 failed); checked end to end on a throwaway Postgres with the site server and two keyed accounts; cargo test -p loot-cli -p loot-net passed, 594 and 188 among them, the site gate 413 passed and the site live suites 103 passed against Postgres 18 (utyrrmys) 77adb646 · dbf3dbe6…diff
  • a repo and a keyed account are deleted on their owner signed request, which the operator tool carries out (ADR 0103 decision 10 amended, migration 0076): loot repo delete asks the forge over /repo/delete, behind the owner door, and the forge files a repo_deletion row and deletes nothing; loot account delete asks over the key lane, a keyed account by its live key and a signed-up one signed in, as a time on its tenant row; --cancel takes either back and --status and loot account read how it stands, each with porcelain and JSON; loot-forge --delete-requested, as the superuser and dry unless --apply, lists and then removes each requested repo by the takedown walk narrowed to that repo with no refusal recorded, and each account that asked as --delete-account does, keeping every other repo, every address another repo names, the account and its keys, and a repo pushed to since its request, which settles as moved; an act names its signing millisecond and is taken only later than the one on file, so a request sent again after its cancel or its deletion deletes nothing, and a restore does not put a deleted repo back; ADR 0062 fifth clause says carrying out a deletion its owner asked for is an agent to apply from the dry listing; repo becomes a served segment; with a moved repo deleted, the whole namespace cleared and the restore rule off the live tests went red (18 passed, 1 failed, then 16 passed, 3 failed); cargo test and ci/local.sh green against Postgres 18, the site gate 413 passed and the site live suites 104 passed (kvmrozqr) 2e682fec · dbf3dbe6…diff
  • loot plan upgrade prints the hosted checkout address where an account pays for Pro, and the forge app reads the plan back from Stripe once it holds a key (ADR 0118 decision 8): POST /api/billing/checkout, for a session or a live key signed request, finds the price by its lookup key and mints a subscription Checkout Session that names the account as its client reference and in the subscription metadata; it answers billing_unavailable until a restricted key is in the site credentials file and already_subscribed for an account with a plan in effect, both coded under --json; with the key the billing webhook takes a Stripe-signed event, reads only its customer and mirrors that customer subscriptions per account they name, and the hourly pass lists every subscription and clears a mirrored account none names, while without it Clerk stays the reader as today; the site speaks the REST API with fetch and no Stripe package; run against stripe-mock with the site server, a throwaway Postgres and a keyed account; the signature test went red with the check off (7 passed, 1 failed); cargo test -p loot-cli -p loot-net -p loot-codec passed, the site gate 421 passed and the site live suites 105 passed against Postgres 18 (xkryvvpx) c9878d86 · dbf3dbe6…diff
  • every write answers --json with what it wrote, and every verb form takes a machine format or a written exemption held by a census test (ADR 0122): 78 forms without one become 13 exemptions; the refusals an agent branches on carry their own codes, two of them the forge app's to say; plan refusals name loot plan upgrade; unlock and id lock take --passphrase-file; pull --json counts the paths it left sealed; the login refusal names the keyed route; loot update refuses over a linked build and a ticket write refuses in a primary that lanes share (rkumrwrk, mmppxtww, tvonnmqo, koqxltqm, svrkqxqu, sptuokrx, lvqmsuzl, utokolzp) e7002bc6 · dbf3dbe6…diff
  • a key the door refuses is told it can ask, door requests --dismiss answers --json, and the deletion answer says only the door's row survives an account: the not-allowlisted hint, the no_account hint and the site's not_admitted refusal name loot door request; --dismiss answers {remote, pubkey, state: dismissed} as revoke does, red with a prose answer (0 passed, 1 failed); loot account delete, its usage line and the hosted forge page say a key admitted only as the account's, such as one a rotation added, is not admitted once the account is gone, as production showed; a retired key's 401 on an account verb names loot login and loot id import --replace, and the not-allowlisted hint names loot account rotate; found by the production check of rzkpvxxk, sksvrusm, mnutwvlo, tnrtxmrx, slqzpryo and snqtrvzo, whose results are commented on each (ttltqtry) 28a2a5c5 · dbf3dbe6…diff
  • a runner's pass shows in loot pipeline status with no pull: status asks the repo's remote for the attestations over the version it reads, as pull and the land's gates do, verifies each here and keeps the trusted, and with no remote or a failed one lists what is held and says so; the runners guide's Read the verdicts is that line, run by pipeline_guide.rs after the minted runner's pass; ADR 0091 amended (tqryknsl). member add of a key no account holds refuses with code no_account: the forge app's MembershipRefused carries it in its 422 body, loot_codec maps it, and the message names the holder's loot account open and the owner's member add again; a row on the exit-codes page (zwuxozoq) 74f58d37 · 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.