connor / loot

connor/loot

Changes touching this path

  • the edge log gets a parser, and the field that separates a trustworthy line from a dangerous one turns out to be structural rather than a flag: our format writes two request tokens where combined writes three, so a three-token request IS the pre-1632 signature and the parser REFUSES it rather than trusting the file it came from. that matters because 1630 stripped the address from historical logs in place and deliberately left their paths alone to keep backfill open, so those files still name private repos and sealed file paths - a backfill that read them would ingest exactly what 1621 removed from the live format, and no amount of care at the call site would catch it because the line looks fine. a refusal is a RESULT and never a throw or a silent skip, because a shipper that swallowed bad lines would report a clean run over a log it half read and the count of refusals is the only thing that could say otherwise. two privacy reductions belong to the parser rather than to a caller who might forget: the referrer collapses to its HOST, since the full value is another site url carrying its own path and query - somebody elses search terms arriving here because they clicked a link - and the raw user agent, which the log keeps deliberately for bot filtering as a departure 1630 recorded, has no column in the row and must never acquire one. a schema cannot express an absence so the pin is the nearest thing, asserting no value of the row equals or contains the raw string, and the mutation that proves it is the realistic mistake rather than a contrived one: putting the user agent in the agent field, which is exactly what that field looks like it wants. the classifier is INJECTED and not imported, so 1625s shared module stays the only one whenever it lands rather than a second door grown here; the default is unknown and never human, because a positive-match rule never matches a person and the absence of a verdict means we found no reason to exclude this. our own traffic wins over any classifier verdict, since the edge marked it using the address without logging it, which is a fact the line carries where the user agent is a string the caller controls. and the timestamp is read at the offset the line itself declares rather than at the timezone the box happens to run, because reading the second where the first is available is how a backfill of older files silently shifts by hours (#1756) 5e1dd377 · dbf3dbe6…
  • 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

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.