connor / loot

connor/loot

Changes touching this path

  • loot ticket new, loot ticket show and loot tickets ship as slice 1 of the native tracker (spec §12, map #2422): a new ticket module in loot-cli holds the layout (tickets/<id>, tickets/public/<id>, tickets/<group>/<id>, where an 8-letter k-z segment is always an id and never a space), the one file format of header lines, a blank line and a verbatim body, ids of 16 random bytes shown as 8 letters and minted again on a collision with any ticket at the read position, and causal order keyed on the space-stripped path, found by walking the change graph from the read position in descending generation to the change where each key first appeared, with a key only the working tree holds sorting after every recorded one. a read folds the tree at the harbor tip, this position and the working tree, so a lane sees a ticket a sibling landed without adopt and its own uncaptured one. new writes meta, the body and one waits-on edge per --on as plain files in the working tree and prints the id alone on stdout; the body comes only through --body-file, a file or - for stdin, with a leading byte-order mark dropped and CRLF made LF, and --title refuses a tab or a line break. show --json and tickets --porcelain are the spec §7 shapes, recorded in an ADR 0023 amendment; the JSON leads with contract as ADR 0023 has every --json do, the open form and the sealed {contract, id, sealed: true} alike, the spec field list naming the payload after it. a ticket this identity cannot open is an S row, and a field filter keeps it. --restricted-to and --published are left to #2428. red under eleven named mutations over sixteen runs, each 0 passed and 1 failed and restored: position keyed on the spaced path, the harbor tip skipped, a colliding id kept, the byte-order mark kept (once through the binary), a tab allowed in a header, an unopenable meta dropped, an id-shaped segment read as a space, labels folded add-only, a field filter dropping a sealed ticket, and contract left off the sealed form and off the open form. the verb census moves: README 87 verbs, 137 usage lines, ADR 0066 at 87 dispatched and 35 with machine output, MACHINE_OUTPUT, the placeholder census and the site verb list. cargo test green in two runs, 4576 passed with 13 ignored, and the site gate green at 819 passed (#2424) 1a26ff0a · dbf3dbe6…
  • loot ticket comment, resolve, label, wait, edit and frontier ship as slices 2 and 3 of the native tracker (spec §12, map #2422): each write to a ticket adds one event file under it, c/ with author and created-at, r/ with a one-line gist and a body that are both required, l/ and w/ as add or remove events, or for edit rewrites meta or body and no other file, keeping every meta header it does not set; a write to a ticket this identity cannot open is refused. resolve prints the tickets its closing unblocks, and a second answer is kept beside the first, which stays the answer. frontier <map-id> is the open children with no open waits-on target, in causal order, where a target not filed yet counts as open; --porcelain is the tickets rows and nothing else, recorded in an ADR 0023 amendment, and the human form marks the rows a live lane holds and adds a line with the takeable count and the file opens. the index now counts every file it opens by kind, and the frontier opens each meta, the w/ files of each open child and the l/ files of each row, never a body, comment, attachment or resolution. show of a map renders its prose, then Decisions so far from the first gist of each closed child, then its frontier. the spec, CONTEXT.md and ADR 0066 record what shipped, and the usage line count moves to 143. red under sixteen named mutations, each restored, over the 26 ticket tests (23 passed and 3 failed for the first, 24 and 2 for three, 25 and 1 for the rest): events ordered by name not position, decisions taking the last answer, the frontier folding each child whole, an absent target read as closed, edit dropping unset headers, edit writing an event, a further answer unblocking again, unblocking past other open targets, a comma in a label, a sealed ticket writable, no lane holding a row, the summary in the porcelain, no index under a map, an empty gist, no note for an absent wait target, and a comment with no created-at. cargo test green, 4627 passed over 142 binaries with 13 ignored (#2427) 7d705601 · dbf3dbe6…diff
  • loot ticket new --restricted-to and --published, move and attach ship as slices 4 and 5 of the native tracker (spec §12, map #2422): every ticket write is checked against .lootattributes by the rule that matches first before a byte is written, a file under tickets/public/ resolving published, one under tickets/<group>/ restricted and one under tickets/<id>/ not published, and a write it would seal otherwise is refused naming that rule and the line to add; no ticket verb writes .lootattributes, because a restricted= rule names its readers by identity name, so a group name there locks out an author whose identity has another name, and publication stays an act of the operator. a group name is lowercase, is not public and is never 8 letters of k-z. move rewrites every file byte for byte under the new space and prunes the old through disk_entry::prune_unwritten, so its history keeps its order; it refuses a ticket with a file this working tree does not hold, prints that what was published stays world-readable when it leaves public, and asks --allow-demote itself for a move from a group to internal, because the demotion guard compares a path with its own history and a move gives every file a new path, while the publish gate still refuses each newly published file. attach writes one a/ file with the declared name over the bytes and refuses a secret-shaped name in every space unless --allow-reveal. the spec, ADR 0042 and CONTEXT.md record what shipped and the demotion correction, and the usage line count moves to 145. red under thirteen named mutations over the 35 ticket tests, each restored: no tier check (32 passed and 3 failed), only meta checked (34 and 1), an id-shaped group allowed (34 and 1, and 4 and 1 through the binary), no demotion consent (34 and 1), position keyed on the recorded path (33 and 2), no note leaving public (34 and 1), a file only the harbor holds skipped (34 and 1), no attach gate (34 and 1, and 4 and 1 through the binary), internal allowed to publish (34 and 1), public allowed unpublished (34 and 1), restricted accepting any unpublished tier (33 and 2), old files kept (32 and 3), and the move writing internal whatever its target (32 and 3). cargo test green, 4640 passed over 142 binaries with 13 ignored (#2428) 59ee663d · dbf3dbe6…diff
  • loot ticket and loot tickets read the ticket-only changes on the forge that have not landed, as a layer between landed main and this position (ADR 0098 §6, the overlay): forge_view asks the default remote for its heads when it answers as a forge, loads what the shared graph holds and stows the rest in memory through the relay append-only ingest, after which the handle refuses to persist, so no head, pointer or conflict of any position moves and #2390 is untouched; a head is overlaid only when every forge-only change it reaches passes the land judgment and its tree matches its base outside tickets/, and the layer holds only what that line wrote under tickets/. a write reads the ticket it names through the same layer, so a web ticket takes a comment before it lands, and a ticket the forge moved to another space is refused as #2454 refuses one landed main moved. every ticket leaf and loot tickets take --offline; a read says on stderr what it took from the forge or why it read locally (no forge, unreachable, --offline), human rows mark forge tickets, and a forge file this identity cannot open reads as an S row naming loot pull-grants in the primary. the bundles a read fetched are recorded in .loot/forge-view, a new position-owned store artifact excluded from undo, and a read inside forge_view::FRESH_SECS answers from it without asking. ADR 0098, the spec §6 note, CONTEXT.md and the usage lines say so, and the Workspace width census moves to 411. pinned against an in-process forge with a second clone of the identity as the web writer; red under named mutations, each restored: a read persisting what it stowed (0 passed and 1 failed), the persist guard off (0 and 1), --offline ignored (0 and 1), the judgment not read and the tree property off (each 0 and 1 over the judgment pin, and together 0 and 1 over the end-to-end pin, which each alone leaves green since the other still keeps a code write out), the layer ignoring its base (0 and 1), no forge_elsewhere (0 and 1), the record never fresh (0 and 1), a sealed forge file not counted (0 and 1), the layer not folded (0 and 1), and a leaf or the listing without --offline (0 and 1 each). cargo test green, 4707 passed over 143 binaries with 13 ignored. client only, no deploy (#2430) 8ca351c0 · 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
  • 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.