CLOSE — 008-card-view
Closed: 2026-08-30 · Status: DONE
The charter's objective, verified rather than asserted: every public resource
renders as a product page, and @slug renders any of them as a summary card.
A vCard serves a contact card and a .vcf, an event an event page and an
.ics, file and static links serve their stored documents from the product's
own surface, and a payment link names where the buyer is going.
npm run check:renderers reports 6 of 7 rendered — link is the seventh
and stays a 302 by design, recorded as such — and no row flipped in a commit
that did not add its renderer.
The charter's own bar, phase by phase
| Phase | Done when (charter) | State |
|---|---|---|
| 00 — The renderer ledger and its gate | The gate is watched failing on a deliberately broken input; check:renderers prints N of M rendered and the number is committed | Met. scripts/renderer-ledger.json + check-renderer-parity.mjs (R1–R5), eight rows against the Go registry, starting at 1 of 7 with six unrendered and link redirect-by-design with its reason. Watched failing on a deleted-renderer input (#410, evidence .station/jobs/008-card-view/evidence/phase00-gate-failure.md) |
| 01 — vCard renders | A vCard link serves a document, the .vcf round-trips the stored fields, and a gated vCard refuses both page and file until unlock — asserted against a database read | Met, on a running stack. /l/{slug} hands the visitor to /vc/{slug}; the payload is a named allowlist and /vcf is generated from the same data, both behind closedGateFor (ADR-0099, #411). The .vcf is asserted by parsing — unfolded per RFC 6350, N/ADR by position — and watched failing once per half against its own neutered branch (#412, evidence .station/jobs/008-card-view/evidence/phase-01-running-stack-2026-08-29.md) |
| 02 — Event renders | Same bar as 01, for events — page, calendar file, gate | Met, on a running stack. ADR-0099's shape one type over, and the per-type hand-off became one serveRendererPage(…, prefix) rather than a copy per type, which is how the gate-forwarding loop would have drifted. Time is ADR-0101: a stored datetime-local is a wall-clock reading, emitted floating or with a TZID beside it, never coerced to an invented offset. The .ics is asserted by parsing — unfolded per RFC 5545 §3.1, unescaped per §3.3.11, every line within 75 octets — and the author's own alert times are shown stored in the row and absent from payload, bytes and calendar alike (#414, #415, evidence .station/jobs/008-card-view/evidence/phase-02-running-stack-2026-08-30.md) |
| 03 — Stored documents are served, not bounced | A file link serves the stored bytes with its filename, a static page its uploaded document, both behind any configured interstitial, proved live; the storage origin appears in no response | Met, on a running stack, both halves. default:'s 302 read a location_url the file write path never sets, so a file link either 404'd or handed the visitor the storage URL — an address answering to no gate, no schedule and no limit. FileStorage grew the read side (local under a root guard, S3 by a signed GET, so no public bucket policy is needed) and the bytes are served as data, never script (ADR-0102, #416). HTML needed its own answer, and ADR-0103 is it: the author's markup keeps its presentation and is given nothing else — sandbox, opaque origin, no script, and no outbound fetch, so a static page cannot become an unlisted pixel around 007's per-provider honesty (#417). Watched failing four ways, and the pre-slice tree is caught 302ing a visitor to another host past the author's own page (#418, evidence .station/jobs/008-card-view/evidence/phase-03-running-stack-2026-08-30.md) |
| 04 — Payment link renders | A document, drawn from stored data, gated when gated, proved on a running stack | Met, with its own census recorded rather than papered. No write path in this tree stores an amount, a currency or a description for a payment_link, so the settings allowlist is empty on purpose and the page states no price it does not hold. What it states is the destination host, derived server-side so what the buyer reads and where the button goes cannot disagree — the improvement a document buys over a 302 that revealed the processor only once the buyer was on it (ADR-0104, #419). The live leg clicks Continue and intercepts the outbound checkout, and proves the non-http(s) destination in both its shapes — including javascript://pay.processor.example/%0a…, which parses to a plausible hostname and is the one the scheme switch exists for (#420, evidence .station/jobs/008-card-view/evidence/phase-04-running-stack-2026-08-30.md) |
05 — @slug is the card | @slug for each public type renders a card; a gated or private resource's card leaks nothing the public payload refuses; live E2E per the standard | Met, and the leak bar met structurally. One convention for every type — /@{url} and /api/public/cards/{url} on one handler, the shape /b/{url} already had — and one page that draws whatever the uniform shape carries. The card is a projection of the payload its type already serves, never a second one: cardFields is handed the allowlist's output and never link.Settings, so a key it names that the type withholds yields nothing rather than leaking (ADR-0105, #421). Proved by comparison on a running stack — every card key fetched from that type's own endpoint and matched — and watched failing four ways, including the pair that shows the rule is structural: naming event_first_alert_datetime changes nothing, and the same key leaks the instant the input becomes the blob (evidence .station/jobs/008-card-view/evidence/phase-05-running-stack-2026-08-30.md) |
What the track decided, and what it refused to
A renderer is an app page the redirect path hands the visitor to. ADR-0099
settled the shape once — /l/{slug} 302s to the product's own page, an
allowlisted public endpoint serves the data, a generated file sits beside it,
and both doors call the same closedGateFor — and four types then cost one
slice each instead of four designs. The one refactor the track allowed itself
was collapsing the per-type hand-off into serveRendererPage(…, prefix),
because a copy per type is how the gate-forwarding would have drifted.
A gate holds on every door, including the ones that are files. 007's
ADR-0098 arrived here as a constraint rather than a lesson: every .vcf and
.ics is 403 with no BEGIN: line at all until the grant opens, and a gated
document of either stored kind is a door with none of its bytes behind it. What
the track did rediscover is that the rule's write-path list must be derived,
not remembered — vcards.go and payment_links.go were never on S1's
literal of five files, so both stored a caller's gate password in the clear and
gated nothing, proved on the live stack where a vCard served its card and .vcf
past a gate its author had set (ADR-0100,
#413, migration 000034).
check:secrets now reports 7 derived write paths where it listed 5.
A generated file is asserted by parsing, never by substring. Both the .vcf
and the .ics are unfolded, split and unescaped before anything is claimed
about them, which is why ADR-0101's floating-time treatment and the 75-octet
folding are provable rather than plausible.
A card is a projection, not a second payload. The track's stated second
risk was a card that becomes a new public surface with its own leak profile.
ADR-0105 makes that structurally impossible rather than carefully avoided: the
projector never sees link.Settings, so the cap on what a card can reveal is
the type's own allowlist, and the watched-failing pair is the proof — the
same key is inert against the allowlist and leaks instantly against the blob.
A page states nothing it does not store. ADR-0104 is the smallest decision here and the one most easily got wrong: a payment page that displayed a price this tree never stores would be decorative at best and a lie about money at worst.
Blockers handed back to the owner
Two, each with options and a recommendation in
SESSION.md, and neither blocked the track's
buildable remainder:
- Does a payment link collect commerce fields at all? (new, ADR-0104.) Nothing in this tree stores an amount, a currency, a title or a description. Recommendation: leave it — the processor's own checkout states the price — with title/description as the honest middle if the surface needs more. A displayed amount that is not authoritative is the one option that can lie to a buyer. Track 011 meets the same question from pricing's side.
- An origin for the public pages that holds no session — 007's blocker 2 (ADR-0096), deliberately carried here and re-presented at close with the full inventory in front of it. This track built six public documents where there was one; twenty of twenty-four pixel providers stay script-only ceilinged on every one of them until it is answered, and the pickers say so per pixel. No renderer is reshaped by any answer.
What this track deliberately does not carry forward as work
The open items in SESSION.md stay listed and
stay unowned by this track. Three are the same shape — a storage address for a
document the product now serves: /uploads/* is still a second, ungated address
for every stored document, and static_pages.go's List and Get compose
static_url from static/<folder>/index.html, an address nothing ever wrote
(Create and Update store at file_path, which is what the serving path reads).
Closing the mount has its own blast radius — every image the app draws comes
from there — so the two land together, not beside each other. The third is a
standalone splash_page link, which still falls through default: past the
document it already has; 007 renders the splash for links carrying
splash_page_id, and wiring the type itself is one slice its ledger row already
names.
Richer card projections are not a charter row and not debt: a biolink and a
static card carry identity, owner and action, and each richer summary is
cardKeys rows under ADR-0105's cap. One slice per type if the surface wants
it.
Out of scope by charter and still so: subdomains, card.site/crd.site
addressing and the URL lifecycle are 009; collaboration surfaces are
006; zip bundles and artifact hosting are 010 — phase 03 serves what
today's editors already store and widened nothing about what can be stored; a
campaign entity stays out since 007; and this track added no capability or
quota, serving only what plans already sell.
Source: .station/jobs/008-card-view/reports/CLOSE.md