Changes touching this path
- the forge's published surfaces render themselves anonymously, and each response's cache class rides out of the selector that produced it (#751)
#749 built the read tier and nothing called it. This is the six surfaces
#466's table named -- profile, repo home, tree, blob, history, diff -- as
SSR routes over that tier, plus robots and a per-owner sitemap.
Three properties are structural rather than configural, which was the point:
STRICTLY ANONYMOUS (#486 Q4). No handler in site/src/server/forge.ts reads
a request, a header, a cookie or a token; each takes only what the URL
already says. So 'never serve one identity's view to another' is a fact
about the module's signature rather than a cache rule someone must
remember. Adding an identity parameter is the one edit that would break it.
THE CACHE CLASS IS CARRIED, NEVER RE-DERIVED. resolveSelector already
answers how a resolution may be cached; routes read loaderData.cache and
map it in one place. That is what keeps the ADR 0032 trap shut: a
change_id LOOKS like an address but is the durable handle carried across
amends, so it resolves 'revalidate', and a pinned version_id is the only
cache-forever class. Asserted twice -- a unit test on the header text, and
a live render proving one URL family splits three ways.
HONEST RENDERING (#497). A locked path shows its visibility tag and no
bytes; grant_log is never queried, so a grantee set cannot leak from a
surface with no way to learn one. Burned reads as a tombstone, sealed as
'Not published', absent as absent -- three outcomes a blank page would
have made indistinguishable. The 404 is deliberately one 404: 'no such
repo' and 'metadata private' must not be told apart.
Also here: a published-only repo (metadata private, paths published) gets
its index and nothing else -- no tree, no history, no diff -- which is
0005's barrier showing through the UI unchanged. Per #748 the profile
lists metadata-public repos only, there is no global directory, and the
sitemap is therefore per-owner: readable at a known URL is not consent to
be advertised.
vite.config.ts grows the prerender deny-list its own comment called
unnecessary -- true until a route read a database.
Acceptance: 49 tests green (31 new pure ones; the 8 read-tier tests against
a throwaway 0001-0005 cluster), npm run build clean with exactly the five
authored surfaces prerendered, and a 34-assertion end-to-end smoke -- real
sealed bytes through R2 -> decrypt -> unzstd -> highlighted HTML, all three
cache classes, every honest-rendering outcome. The client bundle carries no
pg, no SQL and no credential.
Publication: README.md, LICENSE-MIT and LICENSE-APACHE reach @world here,
the set .lootattributes has declared since #750. Operator-authorised at the
landing sign; nothing else in the tree changes tier.
2aa21bbe ·dbf3dbe6… - the change ledger becomes the history surface, banded by what the server can read (#760)
8ad80be0 ·diffdbf3dbe6… - every key an account ever held keeps resolving: migration 0008 publishes the one retired-to-canonical pairing the 301 itself discloses, and /k/<retired> redirects everywhere in one seam (#927, executing #506)
3a0fee42 ·diffdbf3dbe6… - the revalidation token of / and the /k/ pages carries the build the site was cut from, W/g<generation>-<build>, where the generation alone was answered 304 across a deploy and the browser kept the previous build's page, whose chunks the static host prunes after ten builds: the likely cause of the hydration error recorded on / after a deploy. one build id per vite build, the same in the client and the server; pinned, red under the build dropped, restored (osuqvmwn)
3593da8f ·diffdbf3dbe6… - the repo page is laid out by reader, ADR 0103 decision 4: /k/<owner>/<repo> stays one cached server-rendered page, README first with the files under it and an About rail with the clone command, who can read what, the live heads and a sign-in offer, and its 404 carries the same offer; an owner or member unlocked on the origin gets tabs, the head file table with sealed paths, the README opened in the page, the roster count and the workbench on the dot, drawn in the browser from a module and a Clerk a stranger visit never fetches; the home leads with the keys waiting to be accepted above the repos, which link to their one address; proposals, pipelines, settings and activity need reads the site does not have and are not shown. red under ten named mutations, each restored; site gate green at 1304 passed, about 215 B a surface (kkmzrqtm)
31dbf3e4 ·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.