Changes touching this path
- the error shipper (ADR 0101): every minute it reads the wide-event lines out of each named container Docker json-file log and writes them into loot_metrics, migration 0004: wide_event for 30 days, error_issue with no identifier, wide_counter where a minute printed twice adds, and wide_log_position, under a new errors_writer role, since the beacon writer role may never read an issue. issue.ts fingerprints by source, type and the top three in-app frames and regresses a resolved issue on an occurrence from another release after the resolve; db.ts applies events, issues, counts and the position in one transaction, so a batch read twice counts once; alert.ts posts to Discord at most once an hour per issue with the type, culprit, route, release and count and never the message; shipper-main.ts finds containers by the name in config.v2.json and fails when it finds none. bundled to .output/errors.cjs; ci/test-main.sh provisions the role. pinned in errors-ship.test.ts, 15 tests, and errors.pg.test.ts, 5 over Postgres 18; red under named mutations, each restored, failed and passed: a regression on the same release (1 and 13, and 1 and 8 on pg), the route in the fingerprint (1 and 13), vendor frames fingerprinted (1 and 13), the title in an alert (1 and 13), no hourly limit (1 and 13, and 1 and 8), a partial entry kept (1 and 13), consumed past the last line (1 and 13), a re-read counted again (1 and 8), a minute replaced not added (1 and 8), the beacon reading issues (1 and 8), and no expiry (1 and 8, after the test counted the rows left, where it first passed). an end-to-end run of the built bundle over the built server output made two issues and two Discord posts with no message. site gate green at 1063 passed. owes a site deploy with the scripts change (vuxxwrys)
9fdc1ae3 ·dbf3dbe6… - a leaked secret in stored error text can be purged (ADR 0101): loot_metrics migration 0005 defines purge_error_text, callable only by the migrating superuser, which deletes every wide_event row holding the text as a literal substring in any text column, cuts a matching error issue title back to its type and keeps its fingerprint and counts, answers two counts, and refuses a text under 8 characters; the scripts repo errors:purge verb takes the text masked or from a file, never a command line. it also joins the lines Docker json-file splits past 16 KiB, which the first production tick of the error shipper dropped as partial=1 and which for a busy minute counter line loses the exact counts: parseDockerLog walks the bytes, joins consecutive entries per stream, drops a joined line only past 1 MiB, and reports safeBytes so the position never passes a line still being split. pinned in errors.pg.test.ts, 7 tests on Postgres 18, and errors-ship.test.ts, 17; red under named mutations, each restored, failed and passed: no delete, the title kept, anyone may purge, no length floor, the error text not searched (each 1 and 6), no join (1 and 16), the position past a split line (1 and 16, after the test put a whole stderr entry behind the split one, where it first survived), one pending line for both streams (2 and 15). owes a site deploy with the scripts change (ntkmpoqn)
568ee1cd ·diffdbf3dbe6… - an error alert on Discord links to the error issue it names, https://loot.build/metrics/errors?issue=<fingerprint> (issueUrl), where it linked to /metrics; pinned by parsing the link with the errors view search and expecting that issue back, red under two named mutations, each restored. site gate green (snuvntzl)
Perf-Baseline: reset object_gets and graph_sorts moved with 587f93b, whose negotiation workload now builds the forge push a land makes (opywoozo); this change touches no Rust
1c91d965 ·diffdbf3dbe6… - the error shipper reads every container labelled build.loot.wide-events, where it read a list of names, and reads at most 8 MiB of one log a run, resuming from its position and widening a window that holds no whole line, so the forge log, never rotated, is read down over several runs; a run that finds nothing new records the check on the position, so wide_log_position says when the shipper last ran. the scripts half creates the site and forge containers with the label and a rotated log, and the forge with LOOT_FORGE_RELEASE. pinned: the bound, the widening, the check, the label filter; red under named mutations, each restored. site gate 1096 passed, errors pg suite 15 passed over Postgres 18 (mwvpnyss)
Perf-Baseline: reset object_gets and graph_sorts moved with 587f93b, whose negotiation workload now builds the forge push a land makes (opywoozo); this change touches no Rust
4cf1d1e1 ·diffdbf3dbe6… - an open error issue whose last hour holds ten or more occurrences and five times its hourly rate over the day before is alerted as spiking, at most once an hour, marked in the statement that finds it; the first shipper run from 14:00 UTC claims the day in error_digest (migration 0009) and sends the day's digest, the counts beside the day before, new and open issues and the three busiest by type and culprit, never a message. pinned over Postgres 18 and the alert text, red under named mutations, each restored (stzwopuy)
Perf-Baseline: reset object_gets and graph_sorts moved with 587f93b, whose negotiation workload now builds the forge push a land makes (opywoozo); this change touches no Rust
ef41eb8c ·diffdbf3dbe6… - the error shipper keeps the forge's wide-event and counter lines, whose keys its serializer orders alphabetically so that each opens with at rather than loot: a line of ours is a JSON object naming a wide- kind under loot wherever that key falls, where a prefix test dropped every forge line as another module's output. found live through the scripts errors:status after the forge deploy, 21 forge lines in ten minutes and none in the store. pinned by forge-shaped lines, red under the prefix test put back (mwvpnyss)
Perf-Baseline: reset object_gets and graph_sorts moved with 587f93b, whose negotiation workload now builds the forge push a land makes (opywoozo); this change touches no Rust
2cdf0962 ·diffdbf3dbe6… - the error shipper measures the host's root filesystem each run and keeps a sample an hour (host_disk, migration 0010), and alerts on Discord when it is 80% used or the week's growth fills it within 14 days, once a day, and at 90% or within 3 days every 6 hours, claimed in host_alert before it is sent; the errors view shows the disk's use, what is free and its growth, and the day's digest gains a disk line. pinned over the rules, the run and Postgres 18, red under named mutations, each restored (nytorqzv)
5beb2096 ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - 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 ·diffdbf3dbe6…
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.