connor / loot

connor/loot

Changes touching this path

  • the beacon counts PEOPLE where the log can only count requests, and the notice that describes it was rewritten in the same change because deploying one without the other publishes a falsehood loot#1757, over loot#1620 and loot#1617. POST /api/beacon takes one short message per view and derives SHA-256(daily_salt || ip || ua || site) truncated to 16 bytes, in process, discarding both inputs. It is canonical for uniques and sessions and for nothing else: the log stays canonical for volume, because it sees the ~53 prerendered pages, the cache hits and curl, none of which run any JavaScript. Two sources counting volume would be two numbers to reconcile. The key is length-prefixed per field rather than concatenated, and that is a real defect closed rather than a flourish. One of the fields is the User-Agent, which the CALLER chooses: with plain concatenation ip=1.2.3.4 ua=5 and ip=1.2.3.45 ua= hash identically, so a visitor could be merged onto a neighbour. The mutation that drops the framing reddens exactly that pin and nothing else. Two decisions are recorded rather than defaulted. NO SALT, NO ROW: a beacon row without a key adds to a count of beacon rows while contributing nothing to the only two things this source is canonical for, so it would trade what we came for against a number competing with the log. And the module is EAGER, which is the answer to the ticket first hazard - ADR 0071 weighs the document plus eager assets, so a deferred chunk is paid by every visitor and counted by nobody. Measured at ~450 B on each of 62 surfaces and RECORDED, and loot#1640 is the precedent that makes this more than taste: it measured a lazy route at 581 bytes against 270 eager. The edge half is new and had to be, because this is the site first unauthenticated row-writing endpoint and the site vhost had no rate limiting at all. limit_req at the /api/ PREFIX, not at /api/beacon, so ADR 0074 telemetry arrives protected rather than silently exposed. Idempotence is remove-then- reinsert between markers, and loot#1647 install-detect arm is closed in the same patch since it needed the same only-if-absent vhost step. Its ordering is load-bearing: the blanket header insert runs while only hand-written blocks exist, which makes a duplicate unrepresentable instead of guarded against. Found by RUNNING it, which is the whole argument for the fixture: the marker ended in (generated), which awk read as a GROUP, so the strip silently never fired - the second run appended a second /api/ block while grep -v tore the limit_req line out of the first, leaving a vhost that would have failed nginx -t on the box. Pinned now, with a control proving the predicate can say no. The notice had to move with the code. Five published statements would have gone false, the worst being that these records carry no key and nothing links two requests to the same person. Rewritten to lead with the key, say the secret is DESTROYED rather than merely rotated, and disclose that a visitor spanning midnight is counted twice. FOUR more contradictions were then found only by RENDERING the page, which is the third time that has been the only thing that worked. Objecting still said the log is the only thing we collect from, so this control has nothing to suppress - three paragraphs after the new text says the browser sends nothing when you object. Erasure and Your rights both still claimed nothing is keyed to you. And JSX drops a newline beside a tag, so the page shipped visitorkey and notstored as single words. The font gate then caught a star glyph absent from the shipped subset, which would have rendered as tofu. A test that asserted we do NOT collect a visitor key survived all of this green, because its regex matched one verb phrasing the new prose never uses. It is inverted now: the page MUST name the key, MUST say destroyed, MUST disclose the midnight double-count. Leaving it would have let a later edit delete the disclosure and stay green. 532 site tests, 322 scripts tests, budget green with the notice raise on the record. 3c22dcae · dbf3dbe6…
  • the site metrics-path scrub hides every path under /k/<owner>/<repo>/ but the site public verbs, instead of a hand list of forge verbs, as the edge does since scripts 362f70d: FORGE_VERBS named 12 of the paths Route::path spells, so a route it did not name, propose/*, runners/*, jobs/*, grants/deposit and haves among them, was recorded with the owner key and the repo name. ROUTE_SHAPE_RULES are now the nginx map strings for /k and /private: the bare repo path, a remainder of lowercase words kept as the route shape, any other remainder as /k/:owner/:repo/:path, each excluding a first segment in SITE_PUBLIC_VERBS, and every /private/ path with an owner segment scrubbed, as scripts 19a111c does. pinned in metrics-path.test.ts, 11 tests: every Route::path spelling, its parse checked against the Route enum variants, scrubs to its shape and none begins with a public verb; a route nobody has written is scrubbed with no list edit; SITE_PUBLIC_VERBS equals the site k.$owner.$repo.<verb> routes and their paths are kept whole; the rules equal the scripts rules, carried as literals. red before the change (4 failed and 7 passed) and under named mutations, each restored: no public-verb exclusion (2 and 9), the exclusion without its segment boundary (2 and 9), any remainder kept (2 and 9), no catch-all (2 and 9), no owner-page rule (2 and 9), no /private/ catch-alls (2 and 9), a forge verb made public (3 and 8), a public verb dropped (2 and 9). site-main.yml now watches endpoint.rs, which the test reads. site gate green at 1069 passed, cargo test green, 4953 passed over 144 test result lines with 15 ignored. CONTEXT.md says so. owes a site deploy (lsoupnqm) c0d4731f · dbf3dbe6…diff
  • an uppercase private or forge path no longer passes the path scrubs: the site ROUTE_SHAPE_RULES and the scripts repo nginx PATH_RULES match the /k and /private prefix and the owner key hex in any case, and only those literals are written for either case, so a remainder with capitals still keeps nothing where an i flag or a path lowercased first would have kept it; dropsMessage and isSignedInSurface ask the shape in any case and the message scrub reads a site path in any case; the edge leak checks read the same prefixes, and the scripts test reads metrics-path.ts from the loot checkout and compares it with PATH_RULES, so an edit on either side shows there. a later manifest row with no grantor does not renew a row with one, so a file grant to its own name no longer replaces an expired row from a peer, which reopened the path locally and refused the maroon of that peer. CONTEXT.md gives the renewal the condition it lacked and the new one, and its head declaration entry names loot fetch --deepen all on a shallow position as the ADR 0098 amendment says; the skipped_unheld doc says a burned object lands there too. pinned: red before the change (site 3 failed and 31 passed, scripts 3 and 85, rust 0 passed and 2 failed) and under named mutations, each restored: site prefix words lowercase only, owner hex lowercase only, an i flag over the old rules and the path lowercased before matching (3 failed and 31 passed each), dropsMessage, isSignedInSurface or the message pattern case-sensitive (1 and 33 each); scripts prefix words lowercase only (3 and 85), owner hex lowercase only in the rules (2 and 86), either leak check lowercase only (2 and 86 each), nginx case-insensitive map with an i flag (4 and 84), PATH_RULES drifting (2 and 86) and metrics-path.ts drifting (1 and 87); rust no grantor rule (2 failed and 3 passed over the pins and the ylrtootl pins) and no renewal without a grantor at all (1 and 4). site gate green at 1071 passed, scripts suite 391 passed against this lane, cargo test green, 4972 passed over 144 test result lines with 15 ignored. owes a site deploy, and an edge redeploy through the site setup script once the scripts change, left uncommitted in that repo, is committed (wxuqkosw) d00b3f57 · 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 grants and the workbench leave /private: /grants, and a repo's workbench at /k/<owner>/<repo>/workbench/…, under the /k/$owner layout; old /private/grants and /private/<owner>/<repo>/… answer a 307 there; the private CSP, signed-in surfaces and route-shape scrub learn the new paths, the scrub red without its workbench rules; the plan page stays, the forge's POST /plan holds /plan (sywswsxx) b43fa9b9 · 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.