connor / loot

connor/loot

Changes touching this path

  • loot runner once and serve, the runner side and the last land of #2130 (ADR 0091 §5, §7 to §11): a store-less runner reads its home file, or the same LOOT_RUNNER_* keys from the environment, claims one job of a kind it can do, leaves a job below its --trust floor for its lease to return, and fetches the one version through /jobs/fetch. before a byte is written the node's id must derive from the tree the forge sent and a node naming an author must carry its signature, since the pass it signs names that version; the tree opens with its key-only grants into a ScratchTree, now built from rows by ScratchTree::of_rows, which also refuses a path that would leave it, and pipeline::run_kind runs that kind on that trigger through the same step executor as run, teed so the output is kept. only a pass is signed; the detail is each step's name, outcome, exit code and duration and the count of unopened paths, and anything that quotes the tree, the unopened paths, a step's last 8 KiB and an unreadable declaration's refusal, rides a log tail sealed to the repo's owner as a runner-signed SealedGrant. serve is once in a loop, store-less too since a runner key cannot pull, claiming again after a judged job and waiting --poll after anything else. measured from an empty home against a release forge holding this repo's tree as one change of 1,693 files: runner add deposited every key in 0.42 s and runner once took 2.74 s from claim to posted verdict with the check 1.45 s of it, leaving 0 files behind. ADR 0091 records the departures from §5 and §7, what the runner cannot check and what is not built, and the review's corrections; loot_core re-exports change_id. red under sixteen named mutations, each restored, counts read each time: 6 passed and 1 failed over the seven runner tests for the id not re-derived, the signature not verified, an unstartable step not unrunnable, a stepless kind passing, output in the detail, the log keeping each step's head, the log sealed to the runner, serve waiting after a judged job, a home whose key is not its pubkey, a path leaving the scratch tree, a refusal echoed into the detail and the unopened paths unnamed; 21 and 1 over the pipeline tests for a job running every kind and a job's steps not kept; and 0 and 1 end to end for a pass signed on a failed job. the verb census moves to 148 usage lines and classifies <floor>, and after the review fixes the census, runner, pipeline and runner end-to-end tests were re-run green, the whole suite being the land gate's (#2130) 872ff35a · dbf3dbe6…
  • 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 · dbf3dbe6…diff
  • 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 · dbf3dbe6…diff
  • 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 · dbf3dbe6…diff
  • 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 · dbf3dbe6…diff
  • 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
  • pipeline logs reach key holders: a won claim names the live keys of the namespace account and every roster account (MetadataStore::log_readers, trailing the claim fields so both ends interoperate), the runner seals the tail once and grants its key to each in one runner-signed blob (loot_codec::log_tail, which still opens a single-envelope blob from before), the site mints a log URL only for a job the reader can see, and the run pane opens it with the new wasm openLogTail, refusing any envelope not signed by a runner of the repo; pinned by disclosure, signer, skew and live roster tests (zqmryyvr) 3602a6e0 · dbf3dbe6…diff
  • a runner renews its claim every half lease while a job runs, through a new runner-door route, POST /jobs/renew, which the store accepts from the claimant alone, compared inside the write as a verdict is, so no other runner renews a lease it does not hold; a failure after the claim is answered rather than left to the lease: a failed fetch as unrunnable, a tail that cannot be sealed left out, and a post that fails carrying a tail sent once more without it; serve tries first the kind after the one it last claimed, so check jobs no longer starve run jobs; runner once reports the bytes it fetched, measured at 6698352 for a 2299-file version of this tree (about 18 MB plaintext) in 0.39 s against a local dev forge; the runner floor re-check is pinned with a non-member change job; ADR 0091 sections 5 and 7, its owed list and the CONTEXT runner row entry are updated, and whether a runner should check the job facts it takes on the forge word, and a CLI tail reader, stay owed; red without it: the floor re-check dropped (0 passed 1 failed), the memory renewal claimant check dropped (0 passed 1 failed in the conformance case and in the route test) and the Postgres one admitting any claimed runner (0 passed 1 failed against a throwaway Postgres 18); act tag 26 and no migration, so a forge deploy is owed; loot-forge passes 586 against a throwaway Postgres 18 and the suite is green at 2169 passed; it also resolves yznnvzks, superseded by xpvlupvn, and files rxpnuzpm, a cargo_seed sighting (zzqwymtx) 68cdb91b · dbf3dbe6…diff
  • review sweep 7 fix-ups on the perf afk-loop lands: the forge refuses a lease renewal that moves the lease more than MAX_CLAIM_SECS, a day, past when the claim was taken, dated by a new job.claimed_at column (migration 0060, nullable, a null read as a longest lease before its end), and the runner stops renewing there, so a job whose step never exits returns to the queue; a fetch or verdict post that fails without the forge refusing it is sent again, a bounded number of times, and a verdict drops its log tail only when the forge refuses the request as bad or too large, so a timeout or 5xx no longer costs the owner the tail and a post whose answer was lost succeeds on the retry; the stores share one renewal predicate and the Postgres claimant read; an unheld burn from a retired owner key logs RetiredKey; ADR 0038 states that a later upload of an unheld-burned address is served by the burner repo again and that its filed tier can disagree with the row, and ADR 0091 sections 5 and 7 and the runner help record the bound and the retries; the answer doc, the moved ticket reference, the migration 0025 comment naming a deleted pin (comments are outside the checksum), the renew_lease doc, a discarded owner_of, two needless pubs and a test doc restating its name are fixed; red without it: the bound check dropped (memory and Postgres 0 passed 1 failed each), a claim dated a day late on Postgres (0 passed 1 failed), the tail dropped on any failure and an unsettled post not retried (0 passed 1 failed each); loot-forge passes 588 against a throwaway Postgres 18, the site gate passes 348 and the suite is green at 2173 passed (ozsqotkr) 7675c936 · dbf3dbe6…diff
  • a runner fetches a version a page at a time, so a repo the size of loot can be judged: /jobs/fetch takes a page after its version id and answers whether more is left, a page carrying at most 512 objects or 16 MiB in address order and ending early at half its walk budget, the node on the first page only, and every scoped walk reads bytes 64 at a time as a pull does; runner once asks page after page inside its lease, retrying each page as it retried the fetch, joins them into the one bundle it verifies, and refuses a cursor that does not move forward, a node past the first page or more pages than paths; an older forge answers whole and an older runner is answered whole, refused past the budget with a message naming the runner that pages; the pin goes red with the forge answering whole or the runner stopping after one page; ADR 0091 §5 says so (rlrrzskw) a2b9df48 · dbf3dbe6…diff
  • A run step can name a platform: run@linux, run@windows and run@macos are kinds of their own, so a platform step is a job and a pass role of its own, leased only to a runner enrolled for that kind (runner add --can run@windows), while a plain run stays any run runner's, so old runners and pipelines work as before; the grammar change is the kind column alone, a runner refuses a home naming another platform, runner once runs only the claimed kind's steps, pipeline run lists another platform's step as not run, the runner list keeps platform bits out of the byte an older reader refuses and carries whole sets after the rows, and pipeline status adds a platform row only once a pass names it; no schema moves; ADR 0091 §7 amended (oskvnots) 0a2ddd92 · 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.