connor / loot

connor/loot

Changes touching this path

  • the live-database checks test-main.yml runs can run locally, from the same script CI runs, because the account is out of Actions minutes and a land never ran them: the provisioning, the database keys and the suites move out of the workflow into ci/test-main.sh, which builds every connection URL from a host and a port it requires rather than defaulting to the one a real cluster listens on, and the workflow keeps only what prepares a fresh runner and calls it. ci/local.sh starts a throwaway Postgres on its own port, refuses if anything already answers there, runs that script against it and deletes the cluster on exit, so it runs beside a real cluster and from a lane before a land. run in a lane against a portable Postgres 18.6 it applied forge migrations 0001 to 0017 and the three site migrations, and 122 cargo test results and all seven site live files passed with LOOT_FORGE_TEST_REQUIRE_DATABASE set, so none skipped, before and after the review fixes. with the returning alias put back into read.ts it failed at the site step on syntax error at or near returning, and pointed at the port a real cluster owns it refused with exit 2. the CI-shape pin reads through the script and its STEPS list, because the job is still named cargo test --workspace and a check on the workflow text alone would pass on the name after the command had gone; it went red when the workflow stopped calling the script and when the script dropped --locked. the comments and living docs that said the workflow sets the keys now say the script does, the dated ADR and evidence entries are left as history, and AGENTS.md, docs/agents/workflow.md and the afk-loop security hunt point at the script. the Actions wiring itself is unexercised until minutes return (#2061) 8ff6117c · dbf3dbe6…
  • the offline site gate block stops stating its compensating detector as a fact, the shape #2071 fixed one block over: site-main.yml is still named as the net, but only if the land moved a path on its list and only when that job actually runs, which nothing in the land can see, and the fix line now says npm ci and npm run gate in site/ answers on this machine whether or not that job ran. the block does not hard-code whether Actions minutes exist, though the latest site-main.yml run was refused for account billing, the state #1916 found for test-main.yml. ci/local.sh is not named because what ci/test-main.sh runs of the site is its live-database pg tests and not the gate, and the comment there that said a land runs the gate only when it moves a site path and that site-main.yml runs it on main now says neither. land-change and workflow.md, which paraphrase the block, carry the same qualifier. the existing byte-for-byte pin over the block is moved to the new text and went red first (0 passed and 1 failed); red under mutation, counts read each time: the new qualifier dropped from the net line (0 passed and 1 failed) and the fix line put back to its old ending (0 passed and 1 failed), each restored to 1 passed. no migration, no wire or format byte moves and no host behaviour moves, so this owes no deploy. the workspace suite is green (4179 passed over 133 binaries, 9 ignored) (#2074) c136bcb2 · dbf3dbe6…diff
  • revset_everywhere names each scratch directory by a per-process counter rather than the clock, so two tests asking for the same row no longer share one copy: on Windows SystemTime ticks in 100 ns steps and the tests here reach scratch(archive) together, so a second caller could empty the first caller copy and fill it with another fixture store, which answers no change matching word for word. reproduced by overwriting one copy with another fixture by hand, and by naming scratch by process id alone (5 passed and 5 failed, the historic test failing at loot archive with the #2258 message). pinned by concurrent_scratch_callers_never_share_a_directory, red under the old clock naming in 18 runs of 18 (0 passed and 1 failed, 9 to 14 of 400 directories handed twice), restored green. ci/test-main.sh runs the workspace suite with --no-fail-fast and runs the site live suites after a red workspace suite, recording a failed suite and exiting non-zero naming it, while a failed provisioning step still stops the run; the bare step-or-record form was measured exiting 0 over a failed step, so a suite step runs in a subshell with set -e. the published_surfaces pin reads the --no-fail-fast line (5 passed and 1 failed with the flag removed). no migration, format byte or wire byte moves. the workspace suite is green under bash ci/local.sh against Postgres 18 (4431 passed over 138 binaries, 13 ignored; site live suites 7 files passed) (#2258) e39a6465 · dbf3dbe6…diff
  • 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…diff
  • a forge deploy no longer gives back what a migration revoked from the service role: in the scripts repo the SQL setup-forge.js runs inside the forge database before --migrate moves to lib/forge-provision.js and drops its GRANT on ALL TABLES and ALL SEQUENCES to forge, so the default privileges, which reach a table as it is created, and the GRANT and REVOKE statements of the migrations decide what the role holds, and what a migration narrows, as 0035, 0037 and 0038 do, survives the next deploy. ci/test-main.sh provisions the forge database again after --migrate, as each later deploy does, so the pg::tests grant pins read the narrowed tables as a re-deploy leaves them, and a scripts test holds the CI copy to the statements setup-forge.js runs and to running them again after the migration. on a throwaway Postgres 18 the deploy grant step run twice after migrations 0001 to 0038 left every forge grant identical to after the migration, where the old step run once gave forge SELECT, INSERT, UPDATE and DELETE on namespace_takedown, evicted_object, device_login, device_login_miss, plan_limit and account_plan. the 0035, 0037 and 0038 headers (comments only), takedown.rs, ADR 0103 and the comments on the rls and account_footprint scratch grants say so. red under named mutations, each restored: the repair grant back in the CI copy (3 failed and 2 passed of the service role pins, which pass 5 of 5 with the repair and no second provisioning); in the scripts suite, the repair back in forgeDatabaseSql (2 failed and 1 passed) and the second provisioning dropped from ci/test-main.sh (1 failed and 2 passed). cargo test green, 5075 passed over 146 test result lines with 15 ignored; ci/local.sh site live suites green on Postgres 18 at 128 passed; scripts suite 436 passed against this lane. owes a commit of the scripts repo work once this lands, before the next forge deploy (zxxrztou) ea6cb8b9 · 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 notification sender (ADR 0097 §5, §6): migration 0057's forge_notify_sender reads the outbox, settings and watches and only ids, keys and times elsewhere, never a name, message or comment, and keeps notify_email and notify_delivery; site/src/server/notify plans who hears what (parties and member watchers, toggles, own acts, a five-minute settle, 20 an hour then an hourly summary), names a public repo only through forge_read and nudges namelessly otherwise, reads the address from Clerk at send time, records each delivery so no one is told twice, and prunes after a week; Postmark behind a two-line interface; one-click unsubscribe at /api/notify/unsubscribe turns off exactly one toggle; bundled as .output/sender.cjs; pinned by unit tests and live as the real roles (zrpwpyyq) e61fab21 · dbf3dbe6…diff
  • loot's own CI runs on the VPS: .lootpipeline's test-main main step runs ci/local.sh (cargo test and the live Postgres 18 suites) on the runner loot-ci, which the scripts repo's setup-runner.js provisions capped at 1.5 CPUs and 3 GiB with a scope that reaches no Restricted path; proven green and red on a scratch repo, workflow.md says how to read it, and the canary's move waits on a platform a job can name (xxuwkxzp, oskvnots, syrwssrv) f74f160a · dbf3dbe6…diff
  • GitHub Actions stays off on loot, and every workflow's job runs on a loot runner: site-main and npm-publish join .lootpipeline on loot-ci (the site gate on every main; @lootbuild staged with a stage-only npm token for the operator's approval, or dry-run without one), each workflow keeps a header naming its replacement, the land's skip messages name loot-ci's steps, ADR 0091 and 0112 amended (nxoqwsly) 93217d8f · 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.