connor / loot

connor/loot

Changes touching this path

  • loot-first in Rust: land policy behind a Forge seam (#218) — new loot-first bin crate (ledger/forge/policy/orchestrator), in-process Workspace reads via loot-cli lib split, typed pr-map owner + shared ferry::WipState; every policy decide-tested against a fake forge. Build+test only; shadow-run, real land, and ps1 deletion remain operator-gated. 58c28888 · dbf3dbe6…
  • The harbor: an on-demand lock serializes landing to git-main (#229, closes #195) 8adf34a2 · dbf3dbe6…diff
  • Workspace accepts its clock; lane flag-gate goes pure so cmd_* tests never touch a real .loot (#322) 20ac82e1 · dbf3dbe6…diff
  • loot-first land: report the provisional-branch reap instead of swallowing it (#625) ed9ad0c2 · dbf3dbe6…diff
  • the ledger reap gains an authoritative half, so a row whose change id stopped being the work's id can still be cleared (#793) #624 made the pr-map self-heal on discovery, and it does — but its proof is "a version carrying this row's durable change id is published on origin/main", and that question can become unanswerable for work that plainly landed. Ask 1 was to pin why, and the answer is neither candidate the ticket named. It is not gc and it is not the resolutions minting their own ids: the reviewed change landed as ff89d2c, its version IS in the graph, and it carries durable change id f7d93995 while its row still named aec9021d. The row is written once, in review(), and thereafter only ever removed. Nothing re-keys it. A durable change id is stable across re-SNAPSHOTS, but a bounce recovery that re-creates the working change rather than amending it hands the same work a fresh one -- and the ledger never hears about it. That row was then unreapable forever. The obvious repair is unavailable, and change_published_on_origin's own doc already says why: a live sibling lane's unsigned WIP never enters the shared graph either, so "absent from the graph" is the normal state of a row that is genuinely in flight, and reaping on it would eat every concurrent agent's row at once. Nothing local separates a stranded row from a live one. So the second half is authoritative and online: closed_rows asks the forge whether the row's PR is still open. Merged counts as over -- it is what GitHub calls the zero-diff collapse that IS the landing signal here. It is spent in review and land, which already hold a forge, rather than in status, the constantly-run verb #624 deliberately kept offline. Both sweeps run BEFORE their verb's own work. The operator most likely to be looking at a phantom row is the one with nothing to project, and a sweep behind review's `nothing to review.` return would be unreachable for exactly them. land sweeps too, because land is what strands rows in the first place -- it clears its own row as its last act, so a land that dies after publishing leaves one behind -- which makes the re-run the pass most likely to meet one. land excludes its own PR: a land that died after the collapse leaves the row with the PR already reading Merged, which is precisely what this reaps, so without the exclusion the retry would delete the row it needs and then fail to find it. A row nothing can be proven about is still always kept, so a forge that will not answer changes nothing. Rows are not aged out on a guess (ask 3): over-reaping costs a land that cannot find its own PR, under-reaping costs a line of output. Ask 4 is answered as far as it honestly can be: status cannot say which of its surviving rows is stranded (it cannot see the difference), so instead of guessing it says where the answer lives. Both reap bodies now share one door (reap_rows), so the local and authoritative passes cannot drift apart on the two things that matter -- going through the ledger's locked write door, and being best-effort. ADR 0034's #336 amendment and docs/agents/concurrent.md said every ledger write "applies only its own row"; the reap passes have removed other positions' rows since #624, so both now record the exception and why it is safe. 5cdfa18c · dbf3dbe6…diff
  • a land stops depending on one endpoint being up: viewer_login falls back to GraphQL when REST /user is down, and a failure names both routes instead of sending the reader to check their scopes (#1061) 620aec8a · dbf3dbe6…diff
  • the one-place path spellings become reachable and reach: tree_path goes pub(crate) and covers the five walk-derived surfaces that could not call it, lane merge stops being the face #1049 missed, and two doc claims shrink to what is true (#1063) 94908511 · 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
  • loot-forge, loot-net, loot-first, loot-perf, loot-relayd, loot-relay-contract, loot-s3 and loot-bench production comments cut by 70% to the docs/agents/writing.md standard: history, ticket numbers, rosters and ADR retellings removed, wire contracts, security and safety reasoning kept; comment-only, Rust token streams identical, test modules untouched (yrkykmsn) a94b3d35 · 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
  • the pr-map sweep of a land and a review stops asking about the land own PR and asks GitHub for the state of every other row in one GraphQL query through a new Forge::pr_states instead of one gh pr view per row, asking a row alone only when the batched answer leaves it out or fails, so a pr-map row is still reaped only on CLOSED or MERGED and an unreadable PR is still kept; land_gate is unchanged and still asks pr_view and the viewer itself; through a counting forge double over the six-row pr-map of today the approval step went from 8 forge calls to 3, and live a batched query of eight PRs took about 0.5 to 1.8 s against about 0.5 to 1.7 s for each single gh pr view, so the approval span (median 5.17 s over the last 59 lands) is for the next land to read; the reap test becomes a table over Closed, Merged, Open, a row the batch leaves out and a failed batch, and went red when the own PR was asked (0 passed, 1 failed), when a row left out was not asked alone (0 passed, 1 failed) and when an unanswered row read as closed (0 passed, 1 failed), the gated counters do not move, and the suite is green (sssqoqsq) 53b2e133 · dbf3dbe6…diff
  • files the two amend edges xysopyyo left open: a non-root amend gates its capture against its parent tree rather than the version it replaces (vzuzpspr), and loot edit of a root change on a pinned position loses the pin (vlsmounz) 4d1ef5fb · dbf3dbe6…diff
  • restore the 71 files 430a057a reverted to 385bcb40's bytes: a tickets-only land (vzuzpspr, vlsmounz) recorded stale copies in the Mac primary, which held the desktop's newer versions sealed with keys it had not pulled, and a loot fetch there had left the disk behind loot's view; the keys are pulled now, the lane equals 385bcb40 outside tickets/ but for that land's benchmark entry, and mmzxtyyt records the mechanism Perf-Baseline: reset 430a057a's baseline measured the reverted code; restoring 385bcb40's brings object_gets, store_file_reads and graph_sorts back down 7806746e · dbf3dbe6…diff
  • a .lootattributes that is not UTF-8, such as the UTF-16 Windows PowerShell 5.1 writes with >, is now a malformed rule naming its encoding at the disk load, the ferry ingest and the recorded-tree vet, so loot new and a ferry ingest of a self-authored commit refuse instead of signing plan.txt internal with exit 0, and a line opening with a byte-order mark, which made the first rule match nothing, is malformed too; the unreadable recorded rules refusals carry the code unreadable_attrs, which the SDK classes as a guard error and the tests assert, and ADR 0038 states the costs of passing over a signed parent rules file and an unsigned ingested parent, and its wrap is fixed; the new cases went red without the fix (0 passed, 2 failed), again with the disk load reading text (1 passed, 1 failed), with the ferry reading text (1 passed, 1 failed) and with the byte-order mark unrecorded (1 passed, 1 failed), the code assertions went red without the code (0 passed, 3 failed), the gated counters do not move, the SDK typecheck passes, and the suite is green at 2103 passed (ymmvvvxq) 9d623289 · dbf3dbe6…diff
  • a land pushes main and prints its verdict at once, and the PR collapse, the forge sync and the seed refresh run after it in a loot-first settle process that the harbor lock is handed to: the land offers the lock in its file, the process claims it with a file only one party can create and beats it, the lane is marked landed last, the verdict reads pending for status, relay, branch, folded and pusher until loot-first settle --pr N --wait prints them, --settle-inline keeps the synchronous land, the PR poll asks before it sleeps, and a refused or failed push of main no longer closes the PR (git stderr tells a non-fast-forward from a network failure, both leave the PR open with a re-land remedy); with the handover removing the file, the offer not marking the beat, the claim not exclusive, the sync after the lane mark and the harbor released before the sync, the pinning tests went red (2 failed 2 passed, 1 failed 3 passed, 1 failed 3 passed, 1 failed 0 passed, 1 failed 0 passed) and the suite is green at 2117 passed (xpvlupvn) f550e310 · dbf3dbe6…diff
  • a land asks its approval in one GraphQL request on a thread beside its local reads, and the pr-map reap moves to the settle: Forge::approval_ask returns an owned request answering the PR state, review decision, author and the viewer login together, replacing pr_view and viewer_login (three gh calls, about 1.4 s against 0.52 s for the one when timed read-only on PR 2845), land_via spawns it first, takes its reads and the sealed-proof lookup while it is in flight, and joins it before the fold or skip decision so a refusal still stops before any sign, op or reopen, the approval span now covers only the join wait beside a new reads span, and settle_work sweeps the other closed rows after the row removal, a refused approval stops the land before it signs or writes went red without it (0 passed, 1 failed with the refusal deferred past the finalize) and the full suite is green at 2130 passed (yvrwtxtn) ed172e3a · dbf3dbe6…diff
  • a sealed land publishes only the point the pass judged, a failed PR collapse no longer ends the settle before the sync, loot-first settle --retry runs a settle that died from its handoff, passes looked up are carried across the finalize, the seed refreshes only after a cargo gate ran, a claimed handover is never settled inline, an embargo reveal and not the session label changes the proof key, the gates run without LOOT_SESSION, and the review comments, ADRs 0036 0053 0106 and CONTEXT entries lose emphasis, history and hand-kept lists; with the merged prove pass recording a fresh point the behind-main land test went red (2 failed, 138 passed) and with the point check relaxed the held-point pin went red (1 failed, 139 passed), with a failed collapse ending the settle 1 failed, with a claimed handover resumed 1 failed, with the session in the key 1 failed, with the reveal unkeyed 1 failed, and the suite is green at 2152 passed (kmnkwmuv) fface428 · dbf3dbe6…diff
  • the verdict line is built from one token table that marks the fields the settle decides, so a pending verdict and its docs name that set instead of listing it, LandingStatus::MainDiverged, BranchCleanup::NotAttempted, the always-true main_fast_forwarded and the test-only landed() are removed with their docs and test rows, the block-order test asserts a count and the shout prefix instead of heading prose, ensure_salt falls back to a create-new write when the filesystem cannot hard link so a salt is still written, the settle log name has a helper beside the handoff and outcome ones, emphasis markers and ticket ids leave the orchestrator test docs and the ADR 0036 0055 0065 0106 text, the Harbor entry drops to three sentences, and the Gate::builds, pin_disk_tree, approval_ask and FakeForge texts are made true; no test was red without it since this is dead code and wording, and the full suite is green at 2260 passed, 0 failed, 6 ignored (yrswnpuv, mrxnznwl, mlrvwxpq) 1231cccd · 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.