connor / loot

connor/loot

Changes touching this path

  • day 0: loot hosts loot f4c30e75 · dbf3dbe6…
  • evidence: crew minted and verified (#86) 1fada823 · dbf3dbe6…diff
  • normalize working tree to LF: byte-stable co-located bridge (.gitattributes -text) e58fdda6 · dbf3dbe6…diff
  • loot remote info + relay GET /info endpoint (#10) 0d05d373 · dbf3dbe6…diff
  • the crates.io door closes on a premise the ticket had backwards: only 3 of 13 crates refused to publish, so ADR 0045's stated position was held up by nobody having typed the command (#672) 36e46da6 · dbf3dbe6…diff
  • the loot-net tests that drive the real client against a relay in their own process, and pin what it answers rather than how soon, stand a 600 s transfer floor of their own through endpoint::transfer_floor_on_this_thread, a per-thread seam behind a new test-floor feature that only the crate dev-dependency on itself turns on, where they stood the production 30 s TRANSFER_IDLE that a_one_behind_pull_shrinks_as_a_share_of_the_whole_history ran past waiting for its first /stow answer on loaded pre-land runs, a test that passes alone in under a second: every test through the serve_relay helpers of sync_round_trip and fault_injection, the push to the pre-633 fake relay, and in the lib tests serve_keys, the timing sink test and the forge refusal test. TRANSFER_IDLE is unchanged, cargo tree shows test-floor off in a normal build, and a new endpoint test pins that an endpoint on a thread that chose nothing stands TRANSFER_IDLE whatever another thread chose. with a 31 s stall injected into the relay /stow handler, the unfixed test failed at sync_round_trip.rs:1132 with no answer began within 30 s (1 failed), and with the fix it passed (1 passed in 186.8 s), as did fault_injection (5 passed) and the loot-net lib tests (178 passed) under the same stall. red under named mutations, each restored: the relay ignoring have on /offer and /fetch (1 failed), the floor ignoring the thread choice (1 failed under the stall, and the endpoint test 1 failed), the floor shared process-wide (the endpoint test 1 failed). eight copies each of sync_round_trip and fault_injection at once beside a loot-core cargo test all passed, 23 and 5 a copy; cargo test green, 5018 passed over 144 test result lines with 15 ignored (zxnkqwsm) 94380692 · dbf3dbe6…diff
  • 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…diff
  • the integration tests of loot-cli, loot-core, loot-net, loot-first and the database-free half of loot-forge link as one test binary each (tests/all.rs declaring the files in place, autotests = false, and emit_snapshot, wake_proxy, oplog_record_cost and the live-database forge files kept as binaries of their own because they set environment variables, install a global allocator or share a Postgres cluster), so the integration-test binaries drop from 82 to 25 and the test executables from 107 to 50 with every test kept (the same 389 integration tests by name and 2231 passed, 6 ignored, now 2232 with the new guard), a touch of loot-core then relinks 41 binaries instead of 98 in about 6 s against about 12 s on the Mac and the gate-style run of the units takes about 18 s against 19 to 37 s under load 20 and more; the site gate type-checks through tools/typecheck.mjs, one incremental tsc -p per referenced project beside the others with its build info in node_modules/.cache/tsc keyed on file content, taking the step from 7.8 s to 1.2 s on a repeat pass, and runs build:wasm through tools/build-wasm.mjs, which skips wasm-pack while src/wasm carries a stamp of the cargo-metadata closure of loot-wasm, the lockfile, the toolchain pin and the output hash, taking it from 1.1 s to 0.14 s, so a repeat site gate runs in about 9.8 s against about 16.6 s (medians of 4 interleaved runs, a cold pass unchanged within noise); orchestrator.rs is untouched because the gate is still npm run gate; test_files_run in loot-first fails the suite for a tests/*.rs that no binary builds, red with a stray file in loot-net (0 passed, 1 failed), typecheck.test.ts pins that a cached failure, an old-timed edit and an unreadable cache never turn a failing project green, red with a failure forgiven when a cache exists (1 failed), and build-wasm.test.ts pins what refuses the skip, red with the dependency closure dropped (7 passed, 1 failed) and with the output hash dropped (7 passed, 1 failed); the suite is green at 2232 passed in cargo test and 357 passed in the site gate (pvqwkyso) 572b273c · 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.