008-card-view — every public resource renders, and @slug is its card
Status: ACTIVE · Phase: DEFINE · Chartered: 2026-08-29 ·
Starts: now — nothing gates it; 007 is DONE, so the redirect path already
enforces rules, gates, splash and pixels for whatever this track puts behind it
Problem
Eight of the overview's resource types are real, parity-enforced CRUD, but
only bio pages render publicly, and the overview's signature — @slug as a
summary card for any public resource — does not exist. The full statement is
the product gap assessment .archives/removal-safe/docs/assessments/PRODUCT-GAP-ASSESSMENT-082926.md
§Card view and §Resource types; it is not restated here. Each finding was
re-verified on this tree (f08aa15) rather than inherited:
- The type switch has one renderer.
redirect.go's route-by-type switch (redirect.go:300-310) sendsbiolinktoserveBiolinkPageand every other type —vcard,event,file,static,payment_link— throughredirectToto a plain 302 onlocation_url. A "vCard" is a settings blob plus a redirect; nothing serves a contact card, and nothing serves an event page. - The stored documents are not what gets served. Static pages upload real
content to storage (
static_pages.go:169,static_urlpointing atstatic/<folder>/index.html) and file links storefile_path/file_url(file_links.go:146-155) — then the public path 302s instead of serving the document as the product's own page, so 007's interstitials, pixels and display rules apply to a bounce, not a stay. @slughandling exists nowhere. No occurrence of card-view or@-prefixed slug routing inapps/,packages/ordocs/; the public router has/b/{url}(cmd/server/main.go:948), sitemaps and/api/v1/directory, nothing else. The only OG-image code is a webhook receiver for an external image API (handlers/og_images.go), not a renderer.- The pieces a card needs are already on file. The public biolink payload is an allowlist (ADR-0083/0098), the splash and gate interstitials render as documents (007 phase 02), and pixels emit on any document the product serves (007 phase 03) — so each renderer this track adds widens what 007 already enforces, for free.
A card needs something to summarize, which is why renderers come first and the card view comes last.
Objective
Every public resource renders as a product page — a vCard serves a contact
card (with the .vcf to save), an event serves an event page (with the
.ics), file and static links serve their stored documents from the product's
own surface, a payment link serves a payment page — and @slug renders any
public resource as a summary card, reusing the existing OG plumbing where it
helps. Every new surface obeys the rules already earned: the gate holds on
every door (ADR-0098), the renderer draws the author's data, never their
script (ADR-0094), and a served document carries its configured pixels.
Phases
| Phase | What | Done when |
|---|---|---|
| 00 — The renderer ledger and its gate | Mint scripts/check-renderer-parity.mjs and the registry behind it: one row per public link type — what document serves it, or redirect-by-design with the reason (plain short links stay a 302 on purpose). Default state is unrendered | The gate is watched failing on a deliberately broken input (a row whose named renderer is deleted); npm run check:renderers prints N of M rendered and the number is committed |
| 01 — vCard renders | The redirect path serves a contact-card page for vcard links, drawn from the settings the editor already collects, with a .vcf download generated server-side from the same data | On a running stack a vCard link serves a document (not a 302), the downloaded .vcf round-trips the stored fields, and a vCard with a gate refuses both page and file until unlock — asserted against a database read |
| 02 — Event renders | The same mechanism for event links: an event page plus a generated .ics | Same bar as 01, for events — page, calendar file, gate |
| 03 — Stored documents are served, not bounced | file and static links serve their stored content from the product's surface (correct type and download headers for files; the uploaded document for static pages) instead of a 302 to a storage URL | A file link serves the stored bytes with its filename, a static page serves its uploaded document, both behind any configured interstitial, proved live; the storage origin appears in no response |
| 04 — Payment link renders | A payment page for payment_link — the resource's data and the action it sells — replacing the bare 302 | Same bar: a document, drawn from stored data, gated when gated, proved on a running stack |
05 — @slug is the card | One routing convention for @-prefixed slugs and one summary-card renderer that works for any public resource type, composed from the renderers above and the OG plumbing where it helps | @slug for each public type renders a card summarizing that resource; a gated or private resource's card leaks nothing the public payload refuses; live E2E per the standard |
Phase 00 comes before the rest for the reason 004 and 007 earned: a scoreboard minted after the work measures nothing. 01–04 are independent of each other and may be claimed in any order once 00 lands; 05 waits for at least one of 01–04, because a card needs something to summarize.
Out of scope
Subdomains, card.site/crd.site branded addressing, and the URL
lifecycle — 009, where addressing is decided; @slug here lives on the
origins the product already serves. Collaboration surfaces — 006. Zip
bundles and artifact hosting — 010; phase 03 serves what today's editors
already store, it does not widen what can be stored. A campaign entity or
cross-resource analytics — out since 007. New capabilities or quotas:
renderers serve what plans already sell.
Blockers — owner decisions
Named, not invented. The buildable remainder proceeds around it.
- An origin for the public pages that holds no session — carried in from
007 (its Blocker 2, ADR-0096), deliberately re-raised here because this
track multiplies the public documents the question applies to. Twenty of
twenty-four pixel providers stay script-only-ceilinged on every surface this
track adds until it is answered. Options: (a) leave it — four providers
emit, the pickers say so per pixel; (b) a second origin for public pages;
(c) move the session token out of
localStoragefirst. Recommendation: decide at this track's close, with the full inventory of public surfaces this track will have built in front of the decision — every renderer is buildable before it is answered, and none is reshaped by any answer.
Verification
Gate — scripts/check-renderer-parity.mjs (phase 00), in npm run verify. It must fail when a type's named renderer loses its serving-path
code, when a row claims rendered without one, and when a link type exists in
packages/link-model with no row at all — the enforcement ledger's shape, one
concept over.
Tests. Go: table-driven coverage of each new branch in the type switch,
including composition with 007's interstitials (a gated vCard, a splash'd
event). Unit: the renderer surfaces. Live E2E per new surface in
apps/web/tests/e2e-live/, asserting a database read per
docs/guides/workstream.md. Generated
.vcf/.ics are asserted by parsing, not substring.
Evidence. evidence/ carries every gate-failure observation and
running-stack proof, one file per phase.
Merge policy: the standing policy on ROADMAP.md.
Risks
| Risk | Mitigation |
|---|---|
| A renderer changes behavior for links that work today | Every new branch replaces a default: 302 only for its own type; link stays a redirect by design, recorded in the ledger, and each phase is one revertible slice |
| A card or renderer leaks what the gate refuses | The bar everywhere is ADR-0098's: the public payload is an allowlist and the destination/data is absent from every response until unlock — phase 05's card composes from public payloads only |
| Author content becomes a script on the product's origin | ADR-0094 is a renderer rule: draw the author's data, never their custom_js; phase 03 serves stored documents under the interstitial mechanism, and the static-serving slice must state its script posture in an ADR before it merges |
@slug routing collides with existing routes | The @ prefix is claimed as one route pattern in one place, beside /b/{url}; the DEFINE pass enumerates the public router first |
| A second place defines what renders | The ledger references types from packages/link-model by the parity gate; a row that invents a type fails |
Source: .station/jobs/008-card-view/README.md