CLOSE — 007-enforcement
Closed: 2026-08-29 · Status: DONE
The charter's objective, verified rather than asserted: every control this
product sells is exercised by the serving path. Targeting and schedules
decide the destination, gated resources refuse it until unlocked, splash pages
render, configured pixels emit on the documents that can carry them, and a
domain is verified only when DNS says so. npm run check:enforcement reports
8 of 8 enforced, and no row flipped in a commit that did not add its
reader.
The charter's own bar, phase by phase
| Phase | Done when (charter) | State |
|---|---|---|
| 00 — The enforcement ledger and its gate | The gate is watched failing on a deliberately broken input; check:enforcement prints N of M enforced and the number is committed, so no later phase can claim a point without a reader | Met. Eight points, each naming what authors the control, where it is stored, the serving path that must read it and the capability that bills it — all starting unenforced, at 0 of 8. Watched failing on four broken inputs: a deleted reader, a flip with no reader, an uncovered served capability, a drifting count (ADR-0089, #391, evidence .station/jobs/007-enforcement/evidence/phase-00-gate-watched-failing-2026-08-29.md) |
| 01 — The redirect path decides | On a running stack, one link serves by device/country/language, a scheduled link 404s outside its window, and a link at its click limit serves expiration_url — each asserted against a database read | Met, on a running stack. Three branches through the existing matcher (ADR-0090, #392–#395), and the charter's StartDate/EndDate was wrong about the column: the schedule is scheduled_at/scheduled_end, and nothing in either tree writes the pair this row named (ADR-0091). Watched failing with all three branches neutered and the API rebuilt from that tree (#396, evidence .station/jobs/007-enforcement/evidence/phase-01-running-stack-2026-08-29.md) |
| 02 — The interstitials | A live E2E per reason; for the password reason the destination appears in no response — payload, header or HTML — until a correct unlock, and a wrong password is refused at a rate limit | Met, and the stronger bar met as an absence. One mechanism, three reasons, one PR each: password behind the login lockout's own limiter (ADR-0092, #397), sensitive content with the reason inside the grant's signature so the cheap answer cannot open the dear gate (ADR-0093, #398), and splash drawn from an allowlist of the author's row rather than their custom_js (ADR-0094, #399). Watched failing three ways (#400, evidence .station/jobs/007-enforcement/evidence/phase-02-running-stack-2026-08-29.md) |
| 03 — Pixels fire | A pixel configured on a resource is present in the served document for that resource and absent for one without it, proved on a running stack; the ledger row flips | Met, with its ceiling recorded. links.pixels_ids had been in the schema since 000001 with nothing on any side of it. The surface is the author's document and never the product's chrome; the mechanism is the provider's own no-JavaScript beacon, because the page is served from the origin whose localStorage holds the session token (ADR-0096, #402). Four of twenty-four providers publish one; the rest emit nothing rather than something half-true. Asserted in the served bytes and in the request a browser makes, watched failing once per half (#403, evidence .station/jobs/007-enforcement/evidence/phase-03-running-stack-2026-08-29.md) |
| 04 — A domain is verified when DNS says so | Verification of an unpointed host fails and of a correctly pointed host succeeds, against a live resolver; existing rows are handled per the backfill decision | Met; the backfill is the owner's and is not built. The column was set TRUE for anything that called the endpoint and the handler asserted the same on the struct it answered with, over no DNS call in the tree — both halves went together. Verified means the host points here, which is what makes a domain serve, and explicitly not an ownership check (ADR-0095, #401). Proved with the real resolver, including a stale TRUE cleared by a failing re-check (evidence .station/jobs/007-enforcement/evidence/phase-04-running-stack-2026-08-29.md) |
What the track decided, and what it refused to
A branch enforces only what its query loads. The rule cost four slices
before it was written down. #392's matcher was inert because GetLinkByURL did
not select display_rules, and an unselected column arrives as the zero value —
indistinguishable from a link with no rules (#393). The same absence took
splash_page_id (#399) and pixels_ids (#402), and on the write side GetByID
loaded four fewer columns than Update writes, so renaming a link cleared its
targeting, splash page, timezone and schedule. So the ledger's reader became
a list: a row names the branch that decides and the query that loads what
it decides on, and the gate validates every path a row lists.
A gate holds on every door, or it is not a gate. ADR-0092 gated /l/{slug};
/api/public/biolinks/{slug} — the endpoint the public page actually fetches —
took no part in it, and asking for a gated page that way returned every block
and the settings blob with the password inside it, because biolinks.go was
a write path ADR-0083 did not enumerate and never hashed. Three absences
compounding into a plaintext credential served to strangers
(ADR-0098,
#406), with migration
000033 sweeping what that gap left in the column
(#407). Enforcement is a
property of every serving path, never of the first one anyone thought of.
A refusal that narrows who shows what a missing link shows; a refusal that asks the visitor for something renders. That one distinction (ADR-0090) is what keeps phase 01 silent and phase 02 a document, and it is why the composition order is unobservable for the two silent branches and deliberate for the one that is not.
What the product serves, the product draws. A splash page renders from an
allowlist of its author's row and never their custom_js, custom_css or ad
slots (ADR-0094), and a pixel emits by id through a server-built address,
never operator markup (ADR-0096) — both for the same fact, that the app's origin
is where sessions live. The same fact is the ceiling on twenty of twenty-four
pixel providers, and it is blocker 2 rather than a workaround.
A ceiling is said out loud, not discovered. A provider that cannot emit here stays attachable and says so per pixel, served from the registry (#405) — the alternative was an author configuring a tag that would never fire.
Blockers handed back to the owner
Three, each with options and a recommendation in
SESSION.md, and none of them blocked the
track's buildable remainder:
- The backfill of
is_verifiedrows the no-op verified. Less pressing than at chartering: a failing re-check now clears a stale badge wherever anyone presses the button, so the population self-corrects rather than needing a migration to be correct at all. Recommendation stands at leave them. - An origin for the public pages that holds no session — the ADR-0096 ceiling, and what would let the other twenty pixel providers emit their real tags. Recommendation: revisit at 008, which multiplies the public surfaces this applies to.
- What the sensitive-content interstitial asserts. It ships a content warning with continue/leave, claims no age, and lasts the grant's fifteen minutes. Replacing the wording is one file; remembering the acknowledgment longer is a cookie on the app origin, never a longer grant (ADR-0093).
What this track deliberately does not carry forward as work
The open items in SESSION.md stay listed and
stay unowned by this track. Two want a data or product decision before any code:
clicks_limit is stored as a JSON number by the link form and as a raw string
by the two multipart handlers (the redirect path reads both, so nothing is
unenforced), and the display-rules editor writes scheduled_start where the
matcher reads scheduled_at, so a schedule set inside the rules JSON matches
nothing. Two are a product call on a surface: a splash page collects
custom_js, custom_css and two ad slots that ADR-0094 refuses on purpose —
withdrawing them from the editor is the option, wiring them is not — and the
content warning's wording is blocker 3. Three are one PR each whenever they
neighbour work in hand: the biolink Update handler still reads pointer-nil where
ADR-0097 made the links handler read key presence (no surface sends it today),
drawer-roundtrip.spec.ts's pixel leg is red on main for a strict-mode
violation in its own locator, and @csxbase/studio-react exports Cluster without
declaring it in index.d.ts — the #274 finding one component over, found
reaching for it here and deliberately not fixed.
Out of scope by charter and still so: public renderers and the @slug card
view are 008, subdomains and the URL lifecycle are 009, ACME/SSL
issuance stays façade, and this track enforced the six capabilities 004 minted
and added none.
Source: .station/jobs/007-enforcement/reports/CLOSE.md