connor / loot

connor/loot

Changes touching this path

  • forge.loot.build serves the forge app beside the protocol and loot.build keeps the brochure, ADR 0103 decisions 1 and 2: site/tools/surface.mjs reads which routes are the forge app off each route import graph at build time, a route that reaches Clerk, the vault or a forge database other than the anonymous read tier, and the /k/ repo pages; one build serves both hosts, and start.ts sends a forge app route asked on any other host to the forge with a 308, a brochure page asked on the forge to loot.build with a 308 and the forge root to /private with a 307, while the root route beforeLoad makes a navigation that crosses a full page load and SurfaceLink writes a crossing link with the other origin. the loot.build header loses the Private tab and the key chip for one Open the forge door; the sign-in and the unlock card say a reader signs in and unlocks once more on the new host, and brochure pages delete the device database a browser kept on loot.build. the forge sets X-Content-Type-Options nosniff on every answer, and no_site_route_sits_at_a_path_the_forge_serves reads the site route tree against server::protocol_path_patterns, every Route at both mounts. ADRs 0096, 0099 and 0103 and CONTEXT.md say so. red under named mutations, each restored: a forge route served on any host, a brochure page sent to the forge and the forge root sent to the brochure (each 2 failed and 12 passed), dynamic imports unread (7 failed and 7 passed), the account capability gone (3 failed and 11 passed), the repo pages gone (1 failed and 13 passed); on the built server with a split, the host middleware dropped (3 failed and 2 passed); in loot-forge, nosniff off and a site route at a repo endpoint path (each 1 failed and 1 passed). site gate green at 1174 passed with no split and 1178 with one; cargo test green, 5048 passed over 146 test result lines with 15 ignored. owes a forge release and deploy, the scripts repo edge from setup-forge.js, then a site deploy (lrvstoyz) e1ddbc90 · dbf3dbe6…
  • review sweep 2 fixes for the forge app move and loot login: /device reads no code from its URL and the forge hands the CLI the bare page, so a link someone sent cannot approve their terminal; a key kept unlocked on loot.build is no longer wiped silently, a brochure page that finds one says the key moved and what unlocking on forge.loot.build needs, and removes it once the reader confirms; a server function call is weighed by the import-graph property routes are, the build writing it into each id (tools/surface.mjs serverFnId), and loot.build refuses a call whose module reaches a session, a key or account rows, the /metrics cookie calls among them; with no split the site still marks the forge app on the forge host, since browsers keep the 308s, and ADR 0099 says what that rollback gives up; migration 0037 revokes every privilege of the forge service role on device_login and device_login_miss; in the scripts repo the Clerk parties derived under the split are the forge origin alone and a set list naming the brochure is refused, and a site deploy empties the forge app cache beside its own; CONTEXT.md, USAGE, the CLI docs page and login.rs say when no remote changes, and the hand-kept lists and rewrap leftovers sweep 2 named say what defines each set instead. red under named mutations, each restored: the pre-fill restored and the code put back in the path (each 1 failed and 1 passed); the silent wipe back in the root, the remove button live without the tick and the database opened unlisted (each 1 failed and 5 passed); every call served on the brochure (1 failed and 17 passed), every id marked brochure (2 failed and 16 passed), no-split marking off (1 failed and 17 passed); on the built server with a split, the host middleware passing every call and the build naming no ids (each 1 failed and 5 passed), and on a build with the forge origin alone the old early return (1 failed and 1 passed); in the scripts suite, the brochure back among the parties and the forge app cache left out of the purge (each 1 failed and 12 passed); on Postgres 18, 0037 without its device_login revoke (3 failed and 5066 passed, one the checksum pin). cargo test green, 5069 passed over 145 test result lines with 15 ignored; ci/local.sh green on Postgres 18 with the site live suites at 120 passed; site gate green at 1198 passed with no split, 1203 with one, and the full site suite at 1199 with the forge origin alone; scripts suite 428 passed. owes a forge release and deploy, which applies migration 0037, a commit of the scripts repo work, then a site deploy (zrvquxls) 74d7c457 · dbf3dbe6…diff
  • an account claims a handle on /account, once, and forge.loot.build/<handle>/<repo> resolves to the newest live key of the account, ADR 0103 decision 3: migration 0040 adds account_handle, keyed on the account and written by the site identity module, which may insert a claim and never change or release one, and forge_read_handle, the read tier half of the seam 0008 gives a retired key; the forge role reads account_handle and writes none of it. the forge rewrites /<handle>/<repo>/<endpoint> onto the /k/ mount of that key ahead of its router (loot-forge handle.rs), so a clone, pull or push through a handle is the /k/ request, the write rule included, and a handle nobody claimed is handed to the web as before; the site route /$handle/$ answers a 307 to the same path under /k/<key>, or the 404, on either host. a claim refuses a handle equal to any first path segment the host serves, read off the site route tree, the forge router through a copy a forge test holds equal to handle::served_first_segments, and the client asset directory. every answer to a request the forge rewrote and every answer of the /$handle/$ route carries X-Loot-Log-Path, the path with the handle and repo as :handle and :repo, a remainder of lowercase words kept and any other as /:path, never the query, so the edge can log it in place of a repo name. the ADR 0103 amendment and CONTEXT.md Handle say so. red under named mutations, each restored: the served-segment guard removed (1 failed and 1 passed of the handle unit pins, 1 failed and 2 passed over http), the rewrite layer removed (3 failed), a handle let match a literal in the overlap matcher (1 failed), the site copy short a segment (1 failed), a handle route sent to the forge from the brochure (2 failed and 17 passed), the reserved set without the forge segments (1 failed and 10 passed), handleHref matching inside a longer segment (1 failed and 10 passed), a 301 for the 307 (1 failed and 2 passed), the forge logging any remainder (1 failed and 2 passed), a rewritten answer untagged (1 failed and 2 passed), the site logging any remainder (1 failed and 12 passed), the route without its log-path middleware (1 failed and 3 passed); on Postgres 18, the forge handle read keeping retired keys (1 failed and 2 passed) and a second claim answering the old handle (1 failed of 27). cargo test green before the log header, 5104 passed over 148 test result lines with 15 ignored, and loot-forge green after it, 851 passed over 14 with 2 ignored; ci/local.sh green on Postgres 18 with the site live suites at 136 passed; site gate green at 1257 passed, every surface under its ceiling. owes a forge release and deploy, which applies migration 0040, and a site deploy (pkwrxnly) 6aa831db · dbf3dbe6…diff
  • docs.loot.build serves the docs at its root, ADR 0104: the router rewrite reads a docs host path as its /docs route and writes a docs link at the docs host and every other at the brochure (lib/surface.ts docsRewrite and docsRoutePath), so the route tree, the prerender list, the budget and the reserved handles keep /docs. a path whose first segment is a handler route passes through, read off the route tree (tools/surface.mjs handlerSegments), and a test refuses a docs page whose first segment would collide. docs is a third surface: a docs page asked of loot.build or the forge answers 308 to the docs host without /docs, a /docs path on the docs host 308s to the address without it, a brochure page there goes home, and a forge server function is refused there. plain anchors go through docsLink, external entries redirect to their page, and the agent texts name the configured hosts, which fixes the live http links. a build naming a docs host skips prerendering /docs. the ADR 0103 amendment and CONTEXT.md Docs host and Agent texts record it; scripts 9bfc445 adds the DNS record, the docs vhost with a host-keyed cache and the probes. red under named mutations, each restored: handler segments not passed through, no canonical redirect, docs served on any host (2 failed of 55), the rewrite keyed on origin, surfaceOf ignoring the docs host, docsLink leaving paths, the texts reading the request origin, handler segments counting pages (1 failed each). surface.build.test.ts green on a three-host build at 7 passed; site gate green, ceilings raised 1 KiB on the record for about 420 B a surface; published_surfaces green. owes DNS and two site deploys (wvsxoxpy) 2269ba33 · dbf3dbe6…diff
  • a docs page read on docs.loot.build is logged as its /docs path, so the log-based metrics count it in its docs section (qkqnquzw): the docs host names the page route path in X-Loot-Log-Path (lib/surface.ts docsLogPath, set by start.ts host binding) where it is a docs page shape, and a path the host answers as asked, a handler one like /llms.txt, gets none. the edge half is scripts a0ddf3c, whose map reads the header as sent, which a cache HIT replays, and accepts the docs shape beside the handle one, with a docs probe on the docs vhost. a separate log for the docs vhost was dropped: the shipper bundle cannot read the route tree the pass-through set is read off. ADR 0104 and CONTEXT.md Docs host record it. red under named mutations, each restored: no shape check, no trailing slash dropped, a handler path handed off (1 failed of 28 each), the hand-off on every host (1 failed of 12 on a three-host build); scripts red with the map reading the upstream header, no docs shape in the map or its twin, no docs probe passed through (1 failed of 94 each). surface tests green at 38 passed on a three-host build, site gate green at 1300 passed with no client byte added, scripts green at 473 passed. owes a site deploy d52f1654 · dbf3dbe6…diff
  • the forge bar shows the signed-in account's Clerk avatar menu in place of the [ key ] chip (account and plan, this device's unlock and lock, sign out), reading who is signed in from the Clerk a page already loaded so a stranger's visit still fetches none, and fetched on the forge's pages alone (323 B per budgeted surface); the forge's / is its home, its /private sent there by a 307 so the rollback holds, with grants and the workbench left at /private; EXP marks the brochure's door and the forge's Repos and Grants by a data-exp attribute and never the account; ADR 0103 amended, CONTEXT.md Forge app, Private shell and Alpha build amended; site gate green at 1325 passed, the split and rollback builds' suites green, red under ten named mutations, each restored (vmusyoxz) 789f7003 · 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
  • the site tests that landed while the ADR 0105 cut was in flight are cut to the same standard: console-bar-width, docs-agent and nav-maturity go as the cut removed them, account-menu keeps only its check that the bar loads no Clerk, and the comments that named the deleted files stop naming them. site gate green at 241 passed, cargo test green at 1945 passed with 6 ignored (ruwknvpw) 78c4e9f5 · 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
  • an old /private/<owner>/<repo>/… address is a 307 to its /k/ workbench whatever shape the owner has: movedFromPrivate took only a 64-hex owner, so /private/o/r/… reached the handle route, whose database read answered the brochure's host a 500; private is a routed segment and so never a handle, and the home and plan page stay; the split build's 308 test and the nonce test ask for the workbench's current address, the 500 red-proved on a three-host build (rukvqypu) dd758825 · 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.