Changes touching this path
- 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 ·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 ·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… - 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…
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.