connor / loot

connor/loot

Changes touching this path

  • a push past the storage bound of a plan is admitted and starts a seven-day grace for the account, and once the grace is over the forge refuses it with a typed 402 the CLI renders, ADR 0103 decisions 7 and 8: plan::require_room runs inside ingest::prepare for /stow and /ingest, after the write rule admits the key and after the purges of the push are honored, so a burn frees space before the account is measured, and before any blob or row of the push is stored; no read route and not /wants asks it, and nothing is deleted. it compares the measured bytes of the referenced footprint of the account with the stored_bytes of the plan the site mirrors into account_plan, free without a row. migration 0039 adds plan_grace, keyed on the namespace whose push started the grace and written by the forge, outside the account tier, read for an account as the earliest start among the namespaces of its keys and ended by a push that finds the account under its bound; the forge role holds SELECT, INSERT and DELETE on it and UPDATE of object.bytes. a measuring job in the serving forge files the blob length of each object row that holds none, read from the bucket by HEAD a batch at a time, and until it does such an address counts nothing toward the bound. versions a /stow filed count toward the footprint, by decision. the refusal names the plan, its bound, the usage and the grace, and the CLI adds the /account page of the forge that refused and loot burn. the ADR 0103 amendment, CONTEXT.md Plan and Referenced footprint, store.rs and account_tier.rs say so; the collaborator and runner caps are left to a follow-up. red under named mutations, each restored: the grace boundary moved by a second (2 failed and 21 passed), the refusal removed (3 failed and 20 passed), the check moved before the burns (1 failed and 22 passed), a read route checked (1 failed and 22 passed), a grace never ended (2 failed and 21 passed), unmeasured addresses counted (1 failed and 22 passed), the refusal at 403 (3 failed and 20 passed), a filed length overwritten (1 failed and 22 passed), the CLI remedy removed (1 failed and 9 passed); on Postgres 18, forge granted UPDATE on plan_grace (1 failed), the grace delete removed (1 failed and 1 passed), the mirror ignored (2 failed) and a filed length overwritten (1 failed and 3 passed). cargo test green, 5093 passed over 146 test result lines with 15 ignored; ci/local.sh green on Postgres 18 with the site live suites at 128 passed. owes a forge release and deploy, which applies migration 0039 (oozvwvkm) 14ed9529 · dbf3dbe6…
  • the push that crosses a plan storage bound starts the grace itself, ADR 0103 decision 8: ingest::prepare resolves the trees of a push before the plan question and asks plan::require_room with each address its resolved changes name and the length the push carries for it, and MetadataStore::account_footprint measures the account with those among its own, an address with a row at its length on file, so an unmeasured one stays unmeasured, one without a row at the carried length, each once and none destroyed. a re-push of counted addresses adds nothing, and so does a change-less object batch, whose objects no tree names; until now the measure saw only what was filed before the request, so the grace began one request late. strict > against the bound, burns honored first, unmeasured addresses counting nothing and reads never checked are unchanged. a negative collaborators or runners limit in plan_limit is now a fault, not zero. prose: store.rs points at the callers of account_of instead of a closed list, the loot-net remedy comment points at the statuses its loop walks, plan.rs says hosted data, vite.config.ts and forge.ts name the tokens that carry the build, SITE_STATIC_KEEP_BUILDS and React error 418, trust.tsx and ADR 0103 rewraps, and the ADR says what UPDATE on object the forge role holds; the oozvwvkm amendment and CONTEXT.md Plan record the measure. red under named mutations, each restored: room asked with nothing added (2 failed and 5 passed), carried lengths not counted (2 failed and 5 passed, and the memory footprint 1 failed and 2 passed), a carried length over the one on file (1 failed and 2 passed); on Postgres 18, a carried length over the one on file (1 failed and 2 passed), carried lengths not counted (1 failed and 2 passed in each suite), a negative runners limit read as zero (1 failed and 2 passed). cargo test green, 5095 passed over 147 test result lines with 15 ignored; ci/local.sh green on Postgres 18 with the site live suites at 128 passed; site gate green at 1238 passed. owes a forge release and deploy (vkwlnmyo) 18d0d70d · dbf3dbe6…diff
  • the plan bounds collaborators and runners at the act of adding one, ADR 0103 decision 8: the forge runner add reads the plan with plan::of_namespace and hands its runners to MetadataStore::register_runner, which counts the repo live runners and writes a new key only under the cap in one step, under a per-repo advisory lock on Postgres, and refuses with the storage bound typed 402 OverPlan, which the CLI renders with the forge /account page and not loot burn; the site membership add reads the plan through the identity tier (planOf, no row is free) and refuses an account past plan_limit.collaborators with a 402 offering the plan that admits one more, counting the repo roster without the owner account under a per-repo advisory lock. both caps count per repo, a reading made here where decision 6 does not say of what, recorded as such and not yet ruled on by the operator; a retired runner and the owner do not count, a cap neither refuses what is on file nor removes anything, and no migration was needed. the ADR 0103 amendment and CONTEXT.md Plan record it. red under named mutations, each restored: the memory store ignoring the cap (1 failed of the conformance case, 2 failed of the route tests), retired runners counted (1 failed), Postgres refusing a key on file (1 failed), no runner lock (1 failed), the add handing no cap (2 failed), the client rendering it as a push refusal (1 failed and 1 passed), the refusal without its no-pipelines wording (1 failed); on the site, the cap never asked (2 failed and 25 passed), the owner counted in code (2 failed and 38 passed, unit and live) and in SQL (1 failed and 12 passed live), no lock (1 failed and 39 passed), 422 for 402 (1 failed and 26 passed), a member on file refused (1 failed and 26 passed), a stranger repo answering the plan (1 failed and 26 passed). cargo test green, 5121 passed over 149 test result lines with 15 ignored; ci/local.sh green on Postgres 18 with the runner and plan_enforcement suites live and the site live suites at 138 passed; site gate green at 1263 passed, every surface under its ceiling. owes a forge release and deploy and a site deploy (pusvokmn) a89165a5 · dbf3dbe6…diff
  • a push the forge refuses after the plan admits it starts no storage grace, and a push it takes during one is told so (ADR 0103 amendment): plan::require_room only reads, the grace through MetadataStore::plan_grace_started, and answers plan::Admitted, which /stow and /ingest hand to Admitted::committed after their own write, so plan_grace starts or ends a grace only for a committed push and one refused for a missing object or a lost CAS moves none, the question still asked before anything is stored, after burns, with the crossing push counted and a strict bound. a push taken during a grace carries plan::notice, the 402 sentence with how far past the bound the account is and when the grace ends, as plan_notice in the /stow report and as a trailer after the ref state in the /ingest answer, which an older client and loot-wasm read past, and loot push prints it once on stderr with the /account and loot burn remedy without failing. in the wording the operator approved, the notice, the 402 refusal and both remedy lines end with a full stop, and one byte reads 1 byte. CONTEXT.md Plan and the ADR 0103 amendment record it. red under named mutations, each restored: the grace written before the unresolved check (1 failed of 1) and before the CAS (1 failed of 1), the question writing the grace (2 failed and 8 passed, 1 failed and 3 passed), no notice on /ingest and none on /stow (1 failed of 1 in each of two pins), the CLI not printing it (1 failed of 1), the ingest notice not kept (1 failed of 1), the bound at greater-or-equal (3 failed and 6 passed), the singular byte reverted (2 failed and 7 passed, and 1 failed of 1), the notice full stop dropped (1 failed and 8 passed, and 1 failed of 1). cargo test green, 5134 passed over 148 test result lines with 15 ignored; the live suites green on Postgres 18, the loot-forge lib at 738 passed, its integration tests at 134 passed with plan_enforcement live at 4, and the site live suites at 138 passed. owes a forge release and deploy and a CLI release (vwznltvo, lloqxrls) 68500f78 · 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
  • forge: chunked objects stored and served one at a time, /info chunked_objects, the CLI and SDK refuse hosts without it (nvmlutlq) 521558b1 · dbf3dbe6…diff
  • forge: hosted agents, ADR 0119 §1 and §4 — agent.hosted set only by the owner-signed registration's trailing hosted byte, /info hosted_agents, loot agent list shows hosted, plan_limit.hosted_agents (free 0, pro 5, migration 0072) counted per account under one lock at /agents/add with the typed 402, and the newest hosted agents past the allowance paused at the agent door, none retired (opnxlqzn) 641f6682 · dbf3dbe6…diff
  • a forge operator grants an account a plan with no purchase, by a row its key signs (ADR 0118 decision 9, migration 0077): loot plan grant <key> <plan> [--days <n>] [--note <text>] puts the account that key is on onto the plan until a stated time, 30 days by default and 366 at most, loot plan revoke ends it and loot plan grants lists them, over /plan/grant, /plan/grant/revoke and /plan/grants behind the operator door, which a key the deploy lists passes and a key a row admits does not; each act carries its signing millisecond, and the forge refuses one outside its clock window, a grant signed no later than the key last grant or revocation, and a revocation of a later grant, so a captured request sent again changes nothing; the grant is kept in plan_grant, apart from the account_plan mirror a read of the merchant of record rewrites, and both plan readers, the Rust forge where a push, a runner and a hosted agent are judged and the site planOf behind the collaborator cap and the plan page, read one view, account_plan_in_effect, which gives the mirrored plan or a standing grant where that is the larger, by the database clock, with a purchase of the same plan read as the purchase; loot plan --json gains a trailing granted_until and the plan page says granted, so a grant is never shown as a subscription and a granted account can still be handed a checkout address; forge_identity reads the view and no new base table; test-accounts.md says how a test account is put on Pro, and CONTEXT.md gains Plan grant; with a merely admitted key allowed to grant, the view taking an ended or a revoked grant or reading a purchase as a grant, either store taking a stale grant, and the clock window off, the tests went red (0 passed, 1 failed each, the Postgres conformance pair 1 passed, 2 failed); ci/local.sh green against Postgres 18 with the site live suites 106 passed, and the site gate 421 passed (wzkvkkor) ea3e12b1 · 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.