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 ·diffdbf3dbe6… - loot-cli production comments cut by 70% to the docs/agents/writing.md standard: history, ticket numbers, rosters and ADR retellings removed, contracts and safety reasoning kept; comment-only, Rust token streams identical, test modules untouched (yrkykmsn)
51eb5832 ·diffdbf3dbe6… - a test is kept only for a bug whose damage outlives its detection (ADR 0105, docs/agents/testing.md): disclosure, durable bytes, signed history, silent-pass refusals and machine contracts keep their tests, everything else is trusted or fixed fast, and assertions are on outcomes, never prose. the implementer brief asks that question before a test is written and owes a mutation proof only for a must-test pin. the suite is cut to it in one pass, Rust test functions 4848 to 1665, site vitest cases 1307 to 258 and SDK cases 160 to 64, with the living docs and comments that named deleted tests corrected and ADRs, tickets and released migrations left as history. cargo test green at 1945 passed with 6 ignored, the site gate green at 240 passed, the SDK at 75 passed with its one known macOS path failure from before the cut (ruwknvpw)
61f0184b ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - 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 ·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… - a signed-in machine keeps its forge account's key once, at <config>/loot/account/id, and loot init and loot clone give a new repo that key instead of minting one; loot login outside a repo signs the machine in, inside one it installs the key in both; LOOT_NO_MACHINE_KEY (set for everything cargo runs) turns it off; ADR 0014 amended; red with init passing no key (moowksxl, step 1)
402bdf78 ·diffdbf3dbe6… - the login token: an unlocked browser stores the seed under a paste line's secret in login_token (migration 0045, identity role alone, the session's own live key, ten minutes), loot login --token redeems it once with DELETE … RETURNING and installs it in the repo and on the machine, the installers take --token/--init/--clone (sh) or LOOT_TOKEN/LOOT_INIT/LOOT_CLONE (ps1) after dist's install, and a signed-in loot init sets origin; red without the live-key or key-match checks (moowksxl)
a148f72f ·diffdbf3dbe6… - runtime output stops citing ADR numbers, ticket numbers and CONTEXT.md, which users cannot read: about 150 errors, refusals, warnings, notes and banners across loot-cli, loot-core, loot-net and the forge client refusals drop the citation and keep the meaning, the lootignore negation warning says catch up with loot adopt instead of naming 843 and main copy, the serve banner and open-relay warning lose ADR 0011 and 2389, the landed-content cause states the pull order instead of a private runbook; help text left for later; three prose asserts updated, hosting docs relay output updated, crate suites and site gate green (ymsvpuos)
c8ced9c3 ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - loot id export, loot id import and loot clone --identity-file read their passphrase from the first line of a --passphrase-file file only its owner can read, else LOOT_PASSPHRASE, else a terminal on stdin, and with none of the three refuse at once naming the flag and the variable, where they opened the terminal device and failed with a bare os error 6 on macOS or blocked on Windows; the operations twin of this ticket is resolved with it (txxozqsq); every prompt in loot-cli goes through the new ask module, reached only by a value that exists when stdin is a terminal, and a census test fails when production code outside it names a prompt primitive, red with a raw stdin read put back in tutorial.rs (0 passed, 1 failed); the refusals of id lock, unlock, login, split -p and restore -p without a terminal carry the code needs_terminal, as does id phrase, whose refusal now says the words are a person's backup and names the encrypted export for a run with no terminal (oyqpmnot); ADR 0016 records the sources; the end-to-end test went red with the file and variable branches dropped (0 passed, 1 failed); cargo test -p loot-cli 577 and 175 passed (oqknmott)
0cacbdf8 ·diffdbf3dbe6… - loot login runs with no terminal, where it refused before making a code: with none, or with --no-browser, it opens no browser and writes the code, the /device address and how long the code works as the first lines on stdout before its first poll, then waits and exits 0 once a signed-in person approves the code; --json makes stdout a login line and a signed_in line, each opening with the contract, and a code turned down or lapsed fails as login_denied or login_expired; the passphrase is the first line of the --passphrase-file file, else typed by a person at the terminal, else LOOT_PASSPHRASE for a run nobody is at, and it is read and checked before the code is made, as is the name --identity gives a machine outside a repo, so no approval is spent on a run that would refuse after it; --key names which key to take from an account with several; a wrong passphrase nobody typed fails at once in place of three identical tries; ADR 0103 decision 5 records the unattended door; the tests run the binary against a stub of the forge app login routes with a config directory of their own, since a prove runs test binaries without the variables cargo sets and the first version wrote the machine key and forge of its stub into the real config, which failed four propose tests beside it (ppxkwmmw files the gate); they went red with the terminal requirement put back (0 passed, 2 failed); cargo test -p loot-cli 579 and 179 passed (ruvoxmlu)
caf23d45 ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - loot login and loot init name a repo's forge remote for its directory when run at the repo's own root, where every such repo was named repo and an account's repos shared one address: the root opens as ., which has no file name, so login::forge_repo_name makes it absolute before taking the name, and set_forge_remote uses it; found on production with the public 0.4.40, where two repos of one keyed account were both pointed at /k/<key>/repo; the binary's login tests stood in a directory itself named repo and now stand in "my project", asserting the remote ends /my-project; login_unattended red before the change (2 passed, 1 failed), 3 passed after (rtzwzsmy)
83655e57 ·diffdbf3dbe6… - loot id import and loot id recover take --replace, the login refusal for a key with no passphrase copy is coded, and the release runbook says how a release ends with the Windows smoke owed: in a repo that holds a key, as one loot init just made does, import and recover refuse with the code keypair_exists before a passphrase or a phrase is read, and --replace takes the key and keeps the held one at .loot/id.rotated-<time> by the step loot login uses, so no file is removed by hand, a wrong passphrase replaces and archives nothing, the same key again writes nothing, and --json gains a trailing replaced; loot login answers no_passphrase_copy where it answered the catch-all error and names loot id export with loot id import --replace beside the 24 words; the guide recipe for a lost repo loses its rm line; release-install-smoke.md and Deploying what landed say a release ends complete, published-smoke-owed with exit 0, or failed, and that the same command on a Windows machine posts the verdict (scripts PR 27); test-accounts.md says each test account now has a passphrase copy on the forge and how a home takes its key by a device code with no terminal (scripts PR 26, run on production for both accounts); kvmrozqr and xkryvvpx gain what of thread H work is live, all of it, with a repo deleted on its owner request on production, and nxoqwsly what is done and what stays the operator call; the import test went red with the archive step replaced by an overwrite and with the refusal removed (0 passed, 1 failed each); cargo test -p loot-cli 595 and 191 passed, the site gate 421 passed (umtskzlo, rwmwmmxt, nxoqwsly)
82d4320f ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - a keyed account rotates its key without stranding its repo, and reads what happened without an address: loot account rotate mints the key and keeps it under .loot/rotation, has the forge add it and retire this repo's key in one request the retiring key signs, then makes it the repo's key and, when the machine held the retired key, the machine's under the name minted on it, the old one archived and the remotes unchanged, and a run that stopped is finished by the next; loot login in a repo whose key the forge does not take as an account's takes the key this machine keeps when the forge takes that one, with no code and no passphrase, which is how a second repo follows a rotation (ADR 0120 decisions 5 and 7 amended); loot account inbox reads the forge's /activity by a signed request, what others did on the account's repos and proposals, each event once across polls by a marker in .loot/inbox-seen, and loot account notify says a keyed account is sent nothing and names it; the hosted forge page rotates with it and names the inbox; no forge change; red with the machine-key login, the resume probe and the own-act filter off (0 passed, 3 failed), cargo test -p loot-cli -p loot-net green, and the rotation run end to end against the site server on a throwaway Postgres 18 (slqzpryo, tnrtxmrx)
8a7e6e42 ·diffdbf3dbe6… - loot init says on stderr when a signed-in machine gave the repo the account key, whatever --identity named, and --new-key mints a key of the repo own instead, and loot keygen --replace mints a new key in a repo that holds one: the warning names whose key it took and both ways to a key of the repo own, every output mode, with the JSON unchanged; --new-key gives account_key false, no forge and no remote; keygen without --replace refuses with keypair_exists as id import and recover do, and with it keeps the held key at .loot/id.rotated-<time> as an op barrier and names in remotes_naming_old_key each remote under the replaced key namespace, where the new key may not push; the keypair_exists and custody refusals from id import read as one sentence where a lost continuation left runs of spaces; the CLI page lists both flags; the binary test went red with --new-key ignored (2 passed, 1 failed); cargo test -p loot-cli 599, 17, 206 and 10 passed (ntnsnxrx)
cbb71acd ·diffdbf3dbe6… - every verb that acts at a forge rather than in a repo finds it by one rule: the address given, the repo push remote, the forge this repo or machine last met (door redeem now keeps its invite forge), else forge.loot.build, spelled once as verbs::HOSTED_FORGE; login, account, door and plan take it, and the hosted-forge page steps run as printed in a test (mzxnnmpz)
b28d80ba ·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.