ADR-0127 — A bundle opens with the entry the product named
Status: Accepted · Date: 2026-08-30 · Track: 010 phase 03, first slice
Context
Phase 02 leaves an expanded bundle in storage that nothing reads: entries at
minted keys and a manifest mapping the archive's paths onto them
(ADR-0126).
Phase 03 gives it an address. The first question is not the address, though —
it is which of a hundred files a visitor arriving at /l/{slug} gets, and
every way of working that out from the archive is the archive deciding: the
first entry, the shallowest one, the only .html, a manifest the author put
inside their own zip.
Decision
- The product names the index:
index.html. It is a constant of this tree's, and it is applied at expansion — recorded on the manifest asIndex— so the serving path reads a fact rather than working one out. That is the shape of the kind on the row (ADR-0123), one level down. - An archive with no
index.htmlis refused whole, at upload, with every other refusal (ADR-0125's rule): a site nothing can open would be stored bytes no serving path reads, which is the one thing this track may not ship. - The entry is resolved by manifest lookup, and opened at the key the product minted. Nothing is joined onto a storage root, so nothing is there to traverse.
- The manifest's address is composed from the prefix on the row, never stored beside it — ADR-0119's rule one subject over: a second stored copy of an address is a second thing to keep in step. A prefix that is not one this product minted has no manifest, so an edited row resolves to nothing.
- A manifest is not trusted to point outside its own bundle. Every key is held to the prefix the row names; a manifest naming a key elsewhere is refused entirely. A version this build does not read is refused rather than guessed at.
- The branch sits below every refusal on the redirect path — the lifecycle predicate, the targeting rules, the schedule, the click limit and all three interstitials — so a bundle inherits the gate rather than being handed a second one. This is where 009's seven-doors finding is answered for the index; the asset path is the next slice and inherits it the same way.
- The content type is the branch's: a site opens with a document, so the
response says HTML because the product decided that, not because an entry is
called
.html(ADR-0122's rule H7). - ADR-0103's headers are unchanged.
sandbox,default-src 'none', no script, no outbound fetch. A bundle is not a reason to relax the floor: what would relax it is the owner answering Blocker 3 with an origin that holds no session, and that is not this phase's to answer.
Consequences
zip-bundleflips to served; the scoreboard is 4 of 5.bundle-assetstays unserved and is the next slice.- Under today's CSP a bundle's index renders with what it carries inline, which
is all
default-src 'none'would have let it fetch in any case. The second slice gives the other entries addresses and has to answer how a sandboxed document may load them — where'self'is precisely the keyword that does not work, so the origin will be named explicitly and in one place, as the charter requires. - An author whose site's entry point is
home.htmlis refused at upload with the reason. Widening that to a list of names is a product call, not a correctness one; it stays one name until somebody asks.
Alternatives rejected
- Serving the archive itself as a download. A static link that quietly became a file link is a different promise than its author made (ADR-0103 rule 5).
- Accepting a bundle with no index and 404ing at serve. Stored bytes no serving path reads is the state this track exists to remove.
- Letting the archive nominate its own entry point (a metadata file, the first entry, the only HTML). Every one of them is the artifact deciding.
Source: docs/decisions/0127-a-bundle-opens-with-the-entry-the-product-named.md