Skip to content
Toolkit

Job 001: renaissance

Status: DONE Owner: the repository owner

Phase: CLOSE · Status: DONE · Updated: 2026-08-20

Closed 2026-08-20. The Completed entries below are the record of what shipped. Everything this workstream scoped but did not deliver is absorbed into the track plan on /ROADMAP.md: registry + extensibility → track 003, entitlements/capabilities → 004, i18n → 005, collaboration → 006. Do not resume work from this file.

Objective

Reclaim what the PHP era did well, finish what the Go port left half-built, and set foundations the next generation of features can be built on. Charter: ./README.md.

Completed

  • Phase 04 task 4 — the targeting vocabulary is the server's, and derived from the code that matches it. 03-D4 said continents, countries, browsers and languages were compiled into the bundle; the plan added the sentence that turned out to be the finding — they silently disagree with what GeoIP can actually resolve. Counted: two of the six arrays agreed, two were subsets (44 countries of ~250, 20 languages of ~190), and two carried a value that could never match anything. DisplayRulesService.Match compares whole strings after lowercasing, no branch of parseBrowserName has ever returned samsung_internet, and parseOSName returns "Chrome OS" — so chrome_os is not it, because an underscore is not a space. Neither failed loudly and nothing could have made it: no validation runs on a display rule at write time, and an unmatchable entry in a show list just means nobody matched, so the block disappeared for every visitor with no error in any log. GET /api/v1/reference/targeting serves all six lists now, public beside /api/v1/languages, keyed by the display_rules key each populates. The half that outlives the slice is where the lists come from: the three user-agent switch statements moved out of handlers/redirect.go into ordered tables in services/useragent.go, and the browser, OS and device options are derived from those tables through strings.ToLower(rule.Value) — precisely the expression Match applies to the visitor's side. A switch cannot be enumerated, and a vocabulary that cannot be enumerated has to be copied by hand to be used; that copy was the defect. Countries and languages are derived too, from the CLDR data in golang.org/x/text, filtered by canonicalisation — which is what keeps UK out beside GB — plus eight codes excluded by name with a reason each. Only the seven continents are declared, and the ADR says why rather than hiding it: MaxMind's codes collide with ISO 3166-1, so AF is Africa in one vocabulary and Afghanistan in the other. Recorded as ADR-0017. Three things worth carrying forward. The parity is asserted through the matcher, not through the lists — the defect was never in the strings, it was in the comparison, and the test was observed failing on a plausible tidy-up (slugifying the option value for the UI) that puts chrome_os straight back. The plan's "ratcheting down from 76" does not reproduce under any counting method (98 / 87 / 5 / 79 / 83 were all measured); the baseline is the measured 92 with every method checked written into the file, because rounding to the plan's number would have made the gate's first green run a lie about eleven literals. And the live spec was observed failing against each half reverted separately — merge-base API with branch web (tests 1-4, on a 401), branch API with merge-base editor (tests 3-5, on a missing wrapper) — which localises what each test pins, where one combined merge-base run would only have said "everything fails".

  • Phase 01 task 4 — the catalogue, and the create routes it had to make true. Audit 04 counted ~24 creatable products and no catalogue. Counted here: the create modal's type dropdown offered 8, the dashboard's hardcoded createTiles offered 4, and their union — everything a user could learn to create anywhere in the app — was 9. It is 23 now, in apps/web/src/lib/catalogue.ts, with the eight registered types derived through fromRegistry() and the other fifteen declared with a registryNote naming what moves them (phase 01 task 2, blocked on decisions 002/003). The finding that made this more than a grid was underneath the row: packages/link-model has carried a createPath for every registered type since it was written, documented as "route that creates one", beside a description documented as "shown in the New launcher" — and neither field had ever had a consumer, and not one of the eight values worked. Seven said ?new=1, which no page read; link's said ?new=link while the only page reading anything read ?compose=1. Enumerating every query-param reader in pages/ at the merge base found five, and none of them read a parameter any createPath names. Twenty-three tiles on top of that would have been a launcher whose whole function was dead. So ?new=1 is one parameter, read by one hook (useCreateOnArrival), wired into the fifteen pages whose products promise a panel; the eight whose destination is the create surface declare opens: 'page' instead. Two departures from the plan's own wording, both in the ADR rather than quietly taken: it groups by category and not family (docs/GLOSSARY.md forbids rendering the Pages family bare, and a catalogue is exactly where its three products share a heading — a family field carried and not rendered would have been a third declared-and-unread field in a slice about the first two), and it ships without entitlement state, which phase 02 task 5 owns and which has no user-facing read to render. scripts/check-catalogue-parity.mjs joins npm run verify and the Studio CI job with five rules, each observed failing on its own broken input; C4 is the first check in this repository that follows a path through the router to the page, and C2 was proved with a hand-written vcard entry whose label, description and path all matched the registry exactly and which failed anyway. Recorded as ADR-0016.

  • Phase 02 task 4 follow-up — a malformed override was unlimited. An adversarial pass over the shipped 02-D3 slice found the merge guarded with COALESCE, which catches SQL NULL and not the JSON null scalar: object || 'null'::jsonb answers an array, JSONMap.Scan cannot read it, and check() fails open — which is the right posture for a database blip and the wrong one for a blob that will never parse. Reachable from a supported endpoint answering 200 (PUT /admin-api/v1/users/{id}/plan-settings with a null body), and reproduced end to end against a binary built from the merge base: 422 → 200 → 201, with every quota for that user off permanently. Fixed on both sides, because either alone leaves half of it: the read guards each side on jsonb_typeof(...) = 'object' so a malformed blob is no override and the rows already written repair themselves, and the write refuses a non-object body with 400. models.ValidatePlanQuotas runs on that path now too — it never has, and the override wins over the plan, so an unreadable value written there silently beats a correct number on the plan. The lesson worth keeping: COALESCE and "is this the shape I expect" are different questions, and JSONB is a column type where the second one has to be asked.

  • Phase 01 task 3 / phase 04 task 2 — navigation has one source. 03-D2 counted three hand-maintained navigation lists: 33 sidebar items, 35 topbar breadcrumb labels, 35 palette entries (the finding said 37; counted, it is 35), and AppLayout's four-entry mobile tab pill, which the finding did not count at all. Nine labels were spelled two ways; PWAs and Preferences were in the sidebar and not the palette; the three tools pages were in the palette and in neither of the other two, so their breadcrumb pill read "Cardsite"; /checkout had a label and no route; six of the eight registered types carried a sidebar icon that was not the one linkTypeIcons.ts maps for them, in a module whose whole purpose is to be the single type→icon crossing point; and /payment-processors had a route and no entry anywhere — the third routed-but-unlisted page in this repository after admin Feature Flags and admin Plugins. All four surfaces render apps/web/src/lib/navigation.ts now, and the eight registered types are derived from packages/link-model rather than declared there, so a renamed product renames itself on all four with no edit to the navigation file. scripts/check-navigation-parity.mjs gains the plan's rules 1 and 2 — the two its own header said were "not implemented here" — beside the vocabulary rules A and B. Rule 1 is coverage in both directions, with UNLISTED_ROUTES a path→reason map that fails on a stale key as well as on a missing one; rule 2 forbids a route literal in any of the four surfaces. Each part of rule 1 was observed failing on a separate broken input, and the sharpest is the fourth: a hand-written entry reproducing the registry's label and path exactly still fails, because a literal that agrees today is the state this work exists to end. Recorded as ADR-0015. Five claims written into the first draft were wrong and were corrected before merge, and none of them by re-reading: two by running the spec against the merge base (the two jump-key declarations had not diverged — they agreed, which is the point, because nothing held them together — and /directory had never lacked a breadcrumb entry, being mounted outside AppLayout with no topbar at all), and three by an adversarial pass that counted instead (35 palette entries not the finding's 37, 84 routes not 85, and an i18n baseline note that attributed two moved strings to JSX attributes when all seven were JsxText). The same pass defeated the gate five ways; four are closed and observed failing on the input that used to pass, and the fifth — a path assembled from a variable — is stated as the boundary of a source-reading check rather than papered over. It also found two real holes in the live spec: floors set two below the real count, so two destinations could have vanished from the sidebar with every loop green, and a breadcrumb loop that would have failed on an operator account because /admin mounts a layout with no topbar. Both closed. What the slice gave up is recorded rather than buried: rule B's own coverage fell from 29 entries to 3, because the literals it read are the ones this work deleted, and the replacement — the derivation itself — is asserted in navigation.test.ts where the module runs rather than in the gate that reads source.

  • Phase 02 task 4 (Plugins page) — the page reports the service graph. 02-D1 called /admin/plugins fabricated. The page held a nine-entry array, called no API, and computed the badge as envKeys.length === 0, so a module read Active precisely when the array named no environment variables for it — four modules on every install, and four more inactive on every install, configured or not. Email Shield was the worst of them: reported Active while requiring EMAIL_SHIELD_API_KEY, which the array did not list, so an operator asking whether disposable-address filtering was on was told yes while nothing was checked. "Web Push Notifications" asked for two VAPID keys the server has never read, for a sender that does not exist (services/notification.go:120 — not yet implemented). Status is resolved in the composition root now, the only place holding both the loaded configuration and the services built from it: cmd/server/plugins.go binds each module to the keys it reads and a probe on the object that serves it, GET /admin-api/v1/plugins serves the result, and the page renders what it is given. A probe beats key presence wherever one exists — a set GEOIP_DB_PATH whose file will not open reports inactive, which no environment check could say. built_in is a third status rather than a fourth Active: "no check was needed" is not "a check passed". Web Push is not registered at all; the subsystem is now its own ROADMAP entry. scripts/check-plugin-parity.mjs holds two rules (no key the loader does not read; no module list in the page), each observed failing separately, with the probe invariants in Go where descriptors are values rather than text. Recorded as ADR-0014. Found while proving it: the vite dev server needs API_PROXY_TARGET=http://127.0.0.1:8080 when the API runs on the host rather than under compose — the proxy defaults to the compose service name, so every live spec that drives a page fails at the sidebar without it. Not a code change; recorded here because the previous slice's spec fails the same way.

  • Phase 02 task 4 (quota half) — the plan form edits the quotas, and they bite. 02-D3 read as "plan limits are reachable only by SQL". Setting one by SQL did nothing either: PlanLimitService resolved every limit through users.plan_settings, and nothing in the tree has ever copied a plan's quotas into that column — not signup, not ActivatePlan, not the payment webhook, not the admin user form, not the expiry cron. The column defaults to NULL, a missing key means unlimited, so all fifteen registered quotas were inert on a stock database and always had been. Shipping the form alone would therefore have been the fourth dead subsystem, and the worst of them: an operator who sets a limit and is not refused believes it is holding. A user's quotas are now COALESCE(p.settings,'{}') || COALESCE(u.plan_settings,'{}') joined through users.plan_id — right-biased, so the per-user override wins key by key rather than blob by blob, and there is no copy to re-sync. models.PlanQuotas is the registry the portal renders from (GET /admin-api/v1/plans/quotas), the form edits the blob it loaded so non-quota keys survive a save, and the write path 400s a quota that is not a whole number >= -1. scripts/check-entitlement-parity.mjs gains rules Q1-Q3 beside the flag rules, each observed failing separately. Recorded as ADR-0013. Found while proving it and fixed here, because the control cannot work without it: vite.config.ts never proxied /admin-api, so every admin page rendered empty under npm run dev.

  • Phase 01 task 5 — the collection has a name. "Links" named the collection, one product in it, and the links table (Audit 01); the collection had no name of its own. Decision 001 asked whether it was "Library" — recommended here, and already written into seven kickers — and the operator answered Resource. That word had a foothold the recommendation did not: ADR-0009 named the registry-wide read /api/v1/resources/recent and declined to pre-empt this decision by calling it /library/, and docs/GLOSSARY.md already recorded Resource as the member noun. The collection is its plural. Rolled out in one change across eight kickers, the four hand-maintained navigation lists, the short-link page and its chrome, and the OpenAPI tag block — the plan's risk row says a half-finished rename is worse than none. Bare "Pages" and bare "Notifications" retired with it; the Pages family is named by its product where it would otherwise render bare, so no new word had to be coined to dodge an old one. scripts/check-navigation-parity.mjs holds two rules: no retired word in a user-facing label, and a navigation entry pointing at a registered type's listPath carries that type's registry label. The second is not in the plan; it was added because the first alone leaves "the registry is the vocabulary" unenforceable, and four lists had already drifted into three casings of the same eight names. Recorded as ADR-0012.

  • Four audits delivered against the current tree (.archives/removal-safe/AUDITS-081226.md): the /links naming collision, the loss of the plugin framework, hardcoding and structural inconsistency, and the whole-surface mental model.

  • Workstream defined: six phases, each with objective, tasks, dependencies, deliverables and verification criteria — plans/.

  • Six open decisions recorded with the cost of each option — .station/jobs/001-renaissance/decisions/README.md.

  • Phase 01 task 1 — the aggregation defect. GET /api/v1/links filters to type='link' (01-D1); POST /api/v1/links validates type against the registry and answers 400 for anything outside it (01-D3); the plan-limit switch became a table with an entry for every registered type, payment_link explicitly nil because no quota key exists for it (01-D4). Ships with a one-time notice on /links naming where the other types are listed, per the plan's risk row — the filter is not shipped silently.

  • Audit 01-D2 — the dashboard's recents list. The panel merged GET /api/v1/links with GET /api/v1/biolinks in the browser and deduped on the row id and a display label the two paths spelled differently, so a bio page was listed twice; after task 1 the same merge could only ever reach two of the eight registered types. Deduping was not the fix — the client-side merge was the defect. GET /api/v1/resources/recent replaces it with one read across the registry, ordered by edit rather than by creation, and the page resolves every row's name, icon and destination from @csxbase/link-model. Recorded as ADR-0009.

  • Phase 04 task 1 — i18n resolved by the short path. i18next initialised, fetched every active language and mounted a LanguageSwitcher in the desktop topbar against zero t() call sites in 239 files, so selecting a language moved localStorage.cardsite_lang and changed nothing on screen (03-D1). The component is unmounted and archived to .archives/removal-safe/; i18n.ts, the languages table, the public endpoint and the admin CRUD are untouched, because they are what the extraction will be built on. scripts/check-i18n-coverage.mjs now runs in npm run verify and in the design-system CI job with two rules: no language control while nothing is translated (anchored on the setLanguage/changeLanguage calls any switcher must make, not on the component's name), and a hardcoded-string ratchet against a committed baseline of 1,903 that may only go down. Recorded as ADR-0010.

  • Phase 02 task 1 — feature_flags gates something. The third shipped-but-dead subsystem: table with per-plan targeting since 000022, repository, five admin routes, admin page, typed client, public evaluate endpoint — and zero consumers on either side (02-D4). The endpoint could not have had one: it answered "every enabled flag", unauthenticated, loading plan_ids and discarding it. Evaluation is per-audience now — FeatureFlagService.EnabledFor resolves the caller's plan (GetPlanID, which did not exist: the plan-limit path reads the denormalised quota blob and never the plan id) and returns the flags targeted at it, matched in SQL with operator whitespace trimmed and empty entries matching nobody. It fails closed, the opposite of PlanLimitService, deliberately. The same path is authenticated, governed by the existing read-only account scope. On the client, useFeatureFlag is false while loading and false on failure, which fixes the polarity for every flag that follows: a flag grants the deviation, never the default. First consumer: the one-time /links notice, which renders unless an operator retires it. Recorded as ADR-0011.

Active

Phase 01 is ACTIVE again. Tasks 1, 3, 4 and 5 are done; only task 2 remains, and decisions 002 and 003 — the two that held it — were answered 2026-08-14, so it is the workstream's most obviously ready piece of work. Task 4 handed task 2 a sharper brief than it had: fifteen of the twenty-three products are declared in apps/web/src/lib/catalogue.ts rather than derived, each carrying a registryNote naming what moves it, and check-catalogue-parity.mjs prints that count on every green run. When task 2 lands, those sixteen lose their literals to fromRegistry() and the number goes down; nothing else about the catalogue changes.

Phase 04. Tasks 1, 2 and 4 are done. Task 4 also delivered the second half of the plan's third gate, the hex-colour ratchet, seeded at the measured 92. Task 3's decision (004) is answered — Studio is canonical across static, React and Swift — and 004a resolved the container: workstream 002-renaissance owns the authoring, so task 3's remaining slice here (the document amendment and the gate) sequences against 002 phase 00. Tasks 5 (make debt visible) and 6 (opportunistic structure) are unblocked.

Phase 02. Task 1 is done, and both of task 4's unblocked halves with it — the quota form and the Plugins page (02-D1). Decision 005 is answered (replace, 2026-08-14, from the PHP source), so tasks 2, 3 and the rest of 4 are open work in that order: task 2 mints the capability registry, task 3 enforces against it and retires plan_level, task 4 puts the controls on the plan form the quota half already built. Task 5 renders into the catalogue surface phase 01 task 4 shipped.

Phase 01. Tasks 1 and 5 are done; tasks 2–4 are not started. Task 2 is blocked (below); tasks 3 and 4 are not, but task 3 is shared with phase 04 task 2 and must be sequenced with it rather than run twice. Task 4's naming was the other half decision 001 blocked and is now free. 01-D2 was a contained fix outside the numbered tasks and is done.

Phase 04 is ACTIVE. Task 1 is done; tasks 2–6 are not started. Task 3 is blocked (below), task 2 is phase 01 task 3 under another number, and the full i18n path — extracting the strings — stays open behind the ratchet task 1 built.

Blockers

None blocking the workstream as a whole. Per-phase:

BlockedWaiting on
01 phase 2 (registry entries for QR codes, PWAs)Unblocked 2026-08-14 — decisions 002 and 003 answered
02 tasks 2 and 3 (capabilities, and enforcing what is displayed)Unblocked 2026-08-14 — decision 005 answered replace, from the PHP source
04 phase 3 (component library)Decision 004 answered (Studio is canonical); now 004a — how the Studio completion is broken into a workstream
05 phase 6 (live cursors)Decision 006 — answered by 05 phase 1's measurement

Phase 01 task 1 was correct under every possible answer to all six, and shipped without waiting for any of them — as recorded here before it started.

Decisions

Recorded in .station/jobs/001-renaissance/decisions/README.md. Decision 001 is answered — the collection is Resources, not Library. 002, 003 and 004 were answered 2026-08-14: a QR code is a representation every resource has by default plus a standalone product of its own; PWAs gain a nullable link_id; Studio is the canonical design system across static, React and Swift; and capabilities replace plan_level rather than complement it. 004's answer opened 004a — how the Studio completion is contained as a workstream — which is now the only decision open. 006 is answered by phase 05 task 1's measurement rather than by asking.

Decision 005 was answered from the PHP predecessor rather than from taste, and that source is now in the tree: .archives/removal-safe/references/php/cs-app-v7/ .archives/removal-safe/references/php/cs-app-v7/README.md. available_plan_features.php is a flat per-plan feature list mixing counts with booleans; block gating was enabled_biolink_blocks, a type→bool map on the plan, editable in the admin portal and overridable per user; and plan_level has zero occurrences across all 419 files. It is the reference for which capabilities phase 02 task 2 should mint. Seven decisions made here have graduated to ADRs:

  • ADR-0016 — the catalogue is one registry, and a card is not shipped until arriving at its destination opens a create surface. Two halves outlive the slice. The first is a rule: a create route is a promise, and the build holds it — opens: 'panel' means the page the router mounts really reads ?new=1, and the gate follows the path through the router to check it. The second is what the slice declined: entitlement state, which task 4's own line names, is not displayed, because no user-facing read of a plan's effective quotas exists and the alternatives were re-implementing ADR-0013's merge in the browser or printing an unchecked claim. Correct under every answer to the five open decisions — 002 and 003 change which products are derived rather than declared, and 005 changes what phase 02 task 5 renders into the surface, neither of which changes its shape.

  • ADR-0013 — a user's quotas are the plan's, with their own blob as a per-key override, resolved per request rather than copied. The half that outlives this slice is the rejected alternative: denormalising a plan's settings onto user rows would have meant five write paths kept in step forever and a column that cannot say whether a value there is a grant or a stale copy. Correct under every answer to the five open decisions — capabilities (005) are booleans in the same blob and will resolve through the same merge, which is why the registry, the endpoint and the gate rules were all built to take a second kind of entry without changing shape.

  • ADR-0012 — the collection is Resources, a member is a resource, and "Links" is retired as a user-facing word. Two rules outlive the slice: a family is named by its product wherever its own name is ambiguous, which is how bare "Pages" retires without inventing a family word; and the registry is the vocabulary, enforced rather than asserted. What the answer does not settle, and what the ADR records as accepted cost: the admin /admin/resources grouping and the dashboard "Resources" tile now collide with the collection noun rather than with each other. Both are on the ROADMAP under LATER, and the gate reports the admin exemption out loud.

  • ADR-0011 — a feature flag is evaluated server-side, for the signed-in user, against the plan they are on; and a flag grants the deviation, never the default. The polarity rule is the half that outlives this slice: because the hook answers false while loading and false on failure, "off" has to mean "behave as an install with no flags does", or every boot and every outage would be a regression. Correct under every answer to all six open decisions, as the phase 01 and 04 slices were — capabilities (decision 005) are a separate mechanism that will share the enforcement shape, not the table.

  • ADR-0010 — no language-selection control ships while zero strings are translated. The choice between the short path and the full path is not made there; what is decided is that the short path is unconditional, that the infrastructure stays, and that a gate holds both halves true. Correct under every answer to all six open decisions, as the phase 01 slices were.

  • ADR-0009 — "recently edited" is a server-sourced read across the registry, not a client-side merge, and the route is named with resources, the word docs/GLOSSARY.md records as Decided, rather than the collection noun decision 001 has not settled. 01-D2 is correct under every answer to all six open decisions, as task 1 was.

  • ADR-0008 — filtering GET /api/v1/links in place is a defect fix, not a breaking change requiring /api/v2. The operation's published summary always said "List short links"; the unfiltered result was an omission, not an offered interface. Adopted with it: the registry governs the write path too, and plan-limit coverage is exhaustive by construction rather than by inspection.

Two carried forward from the archived workstream 004:

  • Wave B4 (admin pages onto hooks) was declined — revisit only with a driver better than consistency.
  • DEFINE #9 (builder placeholders reaching public pages) is still an open operator question; honouring it reverses audit R2-4's stored-defaults model and needs a schema change.

Files changed

Phase 04 task 4:

FileChange
apps/api/internal/services/useragent.goNew. The three user-agent switch statements from handlers/redirect.go, as ordered uaRule tables, plus ParseAcceptLanguage. targetingOptionsFrom derives the browser, OS and device options from the same tables with strings.ToLower(rule.Value) — the expression Match applies to the visitor's side, which is what makes "offered" and "producible" one statement
apps/api/internal/services/targeting.goNew. TargetingService. Countries and languages derived from CLDR through golang.org/x/text, filtered on IsCountry + Canonicalize() == self + a named English CLDR name, minus eight codes excluded by name with a reason each. Only the seven MaxMind continents are declared
apps/api/internal/services/targeting_test.goNew. Both directions of the parity, asserted through DisplayRulesService.Match; the two retired values pinned by name; the previous 44 countries and 20 languages all still offerable; shapes, sorting, and that every parser table ends in exactly one fallback
apps/api/internal/models/targeting.goNew. TargetingOption / TargetingOptions — the wire shapes, keyed by the display_rules key each list populates
apps/api/internal/handlers/reference.go · interfaces.goNew. ReferenceHandler over the narrow TargetingOptionsProvider. No store: there is no countries table and there should not be one
apps/api/internal/handlers/reference_test.goNew. The envelope, the display_rules keys on the serialised JSON, cities absent, no null list, and the wiring test against the real registry
apps/api/internal/handlers/{redirect,public_biolink,auth,oauth,push_subscribers}.goThe parsers deleted from redirect.go and parseAcceptLanguage from public_biolink.go; twelve call sites now call services.*. Thin wrappers were rejected — two names for one thing is what this slice is about
apps/api/internal/handlers/{redirect,feature_parity}_test.goThe same rename. The behaviour these pin is unchanged and that is the point: the tables reproduce the switches exactly
apps/api/cmd/server/main.goGET /api/v1/reference/targeting on the public router, beside /api/v1/languages
apps/api/internal/middleware/scopes.goA comment recording the deliberately-absent reference prefix, in the shape feature-flags and resources already use. Inventing a grantable scope for ISO 3166 would put a consent question in front of data that carries none
apps/api/go.modgolang.org/x/text promoted from indirect to direct — it was already in the graph, via pgx
shared/contracts/openapi.yaml · apps/api/scripts/gen_openapi_paths.pyThe path with security: [], and reference in PUBLIC_PREFIXES and TAG_MAP so a regeneration does not put bearer security back
apps/web/src/components/ui/DisplayRulesEditor.tsxThe six arrays (89 lines) deleted; one useTargetingOptions() call, so both consumers get it and neither's props changed. AUDIENCE_FIELDS keeps the labels and placeholders — the values used to live there, and that was the defect. Three states, and the failed one is named: an empty picker renders "No results", which is what a successful narrow search looks like
apps/web/src/components/ui/MultiSelect.tsxAn optional loading, deliberately not implemented in terms of disabled — one is about permission, the other about this component's own data, and a caller can hold both
apps/web/src/services/reference.ts · hooks/queries/useTargetingOptions.ts · lib/queryKeys.ts · hooks/queries/index.ts · types/api.tsThe ADR-0005 four-file shape. The service throws on {"data": null} rather than returning an empty vocabulary, so a malformed 200 cannot converge on the same screen as a successful fetch
apps/web/src/components/ui/DisplayRulesEditor.test.tsxNew. 17 tests: the three states, a country outside the retired 44 offerable, and the props contract unchanged
scripts/check-hardcoded-data.mjsNew. Three rules — no array anywhere reproducing a served domain, this editor never going back to a list of its own, and the hex ratchet. A new script rather than rules in an existing one: check-navigation-parity is about where a user can go and check-catalogue-parity about what they can make; this is about what the server already knows
scripts/hardcoded-data-baseline.jsonNew. 92 hex literals and 3 allowlisted arrays, both ratchets, with the counting method and a note recording that the plan's 76 does not reproduce under any of the five methods measured
package.json · .github/workflows/ci.yml · AGENTS.mdcheck:hardcoded-data in the verify chain and as a step of the design-system job — a tenth check in an existing job, not a seventh job
scripts/i18n-baseline.json1908 → 1897, with the word relocation in the note: twelve label=/placeholder= attributes became expressions read from a record in the same file, less one new sentence. Nothing was translated
apps/web/tests/e2e-live/display-rules-server-data.spec.tsNew. The 03-D4 regression spec, and the plan names it by this filename. Six tests; the sixth keeps its assertion at full strength under test.fail() because it cannot pass on this tree, for a reason that is not this slice — see below
docs/decisions/0017-…mdNew.
docs/API.md · apps/api/AGENTS.mdThe Display rules section documented a nested {condition, values} shape the code has never used, and an "en-US" language example the matcher can never match. Corrected, with the new endpoint named. apps/api/AGENTS.md claimed Match was used by "PublicBiolinkHandler and the redirect handler"; it has exactly one caller
ROADMAP.md · plans/04-system-integrity.mdTask 4 ticked, the NEXT item moved to COMPLETED, five findings added under LATER

Phase 01 task 4:

FileChange
apps/web/src/lib/catalogue.tsNew. The catalogue. PRODUCT_CATEGORIES, CATALOGUE_PRODUCTS, EXCLUDED_SURFACES and the two selectors. The eight registered types are built by fromRegistry(), which reads @csxbase/link-model for label, description, icon and create route and throws rather than degrading; the other fifteen carry a registryNote naming what moves them into task 2
apps/web/src/lib/catalogue.test.tsNew. What the gate cannot claim, because it reads source and cannot evaluate fromRegistry(): that a derived label, description, icon and path really are the registry's, that no two products collide on an id or a destination, that opens and the ?new=1 parameter agree, that every product is in exactly one declared category and every category has a product, and that an excluded surface is never also offered
apps/web/src/pages/catalogue/CataloguePage.tsxNew. The page at /catalogue. Renders searchCatalogue(); holds no product and no route of its own
apps/web/src/hooks/useCreateOnArrival.tsNew. The one reader of ?new=1. Consumes and strips the parameter, so a reload does not reopen the panel
apps/web/src/pages/** (15 list pages)Each calls useCreateOnArrival(openCreate) — the same function its own Create button calls. Three needed openCreate extracting from an inline handler first (BiolinksPage, WorkspacePage, NotificationHandlersPage); WorkspacePage's hand-rolled ?new=1 effect is deleted, so there is one implementation
apps/web/src/pages/links/LinksPage.tsxThe <Select label="Link type"> and its state deleted — /links creates short links and only short links. The post-create branch collapses to the detail page; ?compose=1 becomes the shared ?new=1
packages/link-model/src/index.tslink's createPath was /links?new=link, which nothing read and nothing honoured; it is /links?new=1 like the other seven. The field's doc block now states the contract and names its first consumer
apps/web/src/lib/navigation.tsThe catalogue destination (sidebar, palette, G N); ROUTES.compose points at it instead of the short-link modal; ROUTES.newShortLink added for the dashboard's paste box, which knows its type
apps/web/src/components/layout/Topbar.tsxThe primary button said "New short link" — one of twenty-three products. It says "New". Not "Create": the create modal's submit is already called that, and link-detail.spec.ts failed on the ambiguity, which is the live suite finding a real defect rather than needing a nudge. The mobile FAB's aria-label follows it
apps/web/src/pages/dashboard/DashboardPage.tsxThe paste box's '/links?compose=1' literal replaced by ROUTES.newShortLink. Its four hardcoded create tiles are untouched and on the ROADMAP under LATER
apps/web/src/App.tsx/catalogue, inside the signed-in shell
scripts/check-catalogue-parity.mjsNew. Five rules. A new script rather than rules in check-navigation-parity.mjs: that file is about where a user can go, this is about what a user can make, and they answer to different registries
package.json · .github/workflows/ci.yml · AGENTS.mdcheck:catalogue in the verify chain and as a step of the design-system job — a ninth check in an existing job, not a seventh job
scripts/i18n-baseline.json1904 → 1908, with the reason: four positions on the new page. LinksPage moved by zero, and the note says why it looks like it should have fallen
apps/web/tests/e2e-live/catalogue-launcher.spec.tsNew. The Audit 04 regression spec: the count against the registry rather than a fixed number, and every one of the twenty-three cards driven in a browser to a create surface — the claim no source check can make
docs/decisions/0016-the-catalogue-is-one-registry-and-every-card-opens.mdNew.
.station/jobs/001-renaissance/evidence/before-after-catalogue.mdNew. 9 products before, 23 after; 0 of 8 create routes worked, 23 of 23 do
ROADMAP.md · plans/01-library.mdTask 4 ticked, the NEXT item moved to COMPLETED, phase 01 marked BLOCKED with only task 2 left, three findings added under LATER

Phase 01 task 3 / phase 04 task 2:

FileChange
apps/web/src/lib/navigation.tsNew. The registry. NAV_DESTINATIONS, NAV_GROUPS, ACCOUNT_MENU, ROUTES, UNLISTED_ROUTES, and the selectors each surface renders through. The eight registered types are built by fromRegistry(), which reads @csxbase/link-model and linkTypeIcons.ts; it throws rather than degrading, because a module-scope constant with a undefined path is a sidebar row pointing nowhere
apps/web/src/lib/navigation.test.tsNew. What the gate cannot claim, because it reads source and cannot evaluate fromRegistry(): that a derived label really is the registry's label pluralised, that a derived icon really is the mapped one, no duplicate ids or paths, one binding per jump key, role filtering on every surface, palette section merging, and that labelForPath prefers the longest prefix regardless of declaration order
apps/web/src/components/layout/Sidebar.tsxRenders sidebarSections(isAdmin). mainNav and the inline Admin special case are gone; Admin is a group in the registry like any other. No route literal remains
apps/web/src/components/layout/Topbar.tsxROUTE_LABELS (36 hand-written tuples) and its labelForPath deleted — both come from the registry. The account menu renders ACCOUNT_MENU, keeping its own labels and losing its own paths
apps/web/src/components/layout/CommandPalette.tsxRenders paletteSections(isAdmin); gains an isAdmin prop, because it offered "Admin Panel" to everyone and /admin then bounced them. Spotlight result paths become registry functions
apps/web/src/components/layout/AppLayout.tsxMOBILE_TABS and the GO map deleted; the pill renders mobileTabs() and the handler installs JUMP_KEYS. The nav sheet renders sidebarSections(isAdmin), so the phone's admin entry has an icon for the first time
scripts/check-navigation-parity.mjsRules 1 and 2, in the file SESSION named as their home before the work started. collectRoutes() flattens App.tsx's nested <Route> patterns; readNavigationModule() reads the registry's literals and its fromRegistry call sites, because the derived paths have no literal to read. Four anti-vacuity floors, each with a message naming what to fix
scripts/i18n-baseline.json1911 → 1904, with the word relocation in the note: seven labels moved from counted .tsx positions into a .ts module the method does not read, and zero strings were translated
apps/web/tests/e2e-live/navigation-registry.spec.ts5 tests → 11. Sidebar↔breadcrumb agreement across every destination the DOM shows; sidebar↔palette casing; the two destinations the palette lacked; the three tools pages' breadcrumbs; the jump keys, driven from the keyboard; the mobile pill at 390×844. openApp() also asserts the seeded session was accepted before looking for the sidebar — a 429 used to surface as "the sidebar did not render", a navigation-shaped symptom with an auth cause
docs/decisions/0015-navigation-renders-from-one-registry.mdNew.
ROADMAP.md · plans/01-library.md · plans/04-system-integrity.mdBoth task rows ticked against one commit, as both plans require; the NEXT item moved to COMPLETED; three findings added under LATER

Phase 02 task 4 (Plugins page):

FileChange
apps/api/internal/models/plugin.goNew. Plugin, the three-value PluginStatus, and PluginConfigKey — a key name and a boolean, deliberately unable to carry a value
apps/api/internal/services/plugins.goNew. PluginRegistry.List() — status from the descriptor's Live probe; a descriptor with configuration and no probe is reported inactive rather than built-in, which is the Email Shield defect refused in code as well as in the gate
apps/api/internal/services/plugins_test.goNew. The three statuses; a set key with a failing probe; the unchecked-but-configured case; [] not nil
apps/api/cmd/server/plugins.goNew. The eight modules, each bound to the config fields it reads and a probe over the constructed service. The composition root because it is the only place holding both
apps/api/cmd/server/plugins_test.goNew. The wiring no gate can see, one key at a time: a shared fixture cannot catch a swap between two fields that are both empty in it, so each key is set alone and must be the only one that flips. Plus the probe invariants, the no-configuration-value-in-the-response test, and "no module named push or payment, no key spelled VAPID"
apps/api/internal/handlers/admin_plugins.go · interfaces.goNew. AdminPluginHandler over the narrow PluginLister. No store: there is no plugins table and never has been
apps/api/internal/handlers/admin_plugins_test.goNew. The envelope, [] not null, and an assertion on the serialised JSON that a config key entry carries exactly key and set
apps/api/cmd/server/main.goThe registry built from aiRouter, imgOptimizerSvc, emailShieldSvc, ogImagesSvc and geoIPSvc; GET /admin-api/v1/plugins. Not in the OpenAPI contract — /admin-api/ is outside the spec's declared scope (scripts/openapi_coverage.py:83)
apps/web/src/pages/admin/AdminPluginsPage.tsxRewritten to render the endpoint. Loading, failed and empty are three different screens: an empty list that means "the request failed" is how a page comes to report state it never checked
apps/web/src/services/admin.ts · types/api.tsgetAdminPlugins, Plugin, PluginConfigKey, PluginStatus
apps/web/src/components/layout/AdminLayout.tsxThe Plugins page joins the admin nav — routed but unlisted since it shipped, exactly as Feature Flags was
scripts/check-plugin-parity.mjsNew. Rule A reads Go by regex over comment-stripped source; rule B reads the page's parse tree. A new script rather than rules in check-entitlement-parity.mjs: that file is about what a plan includes, this is about what the server is configured with
package.json · .github/workflows/ci.yml · AGENTS.mdcheck:plugins in the verify chain and as a step of the design-system job — an eighth gate in an existing job, not a seventh job
scripts/i18n-baseline.json1908 → 1911, with the reason: the page's three new states. Module names and descriptions come from the server and are not counted
apps/web/tests/e2e-live/admin-plugins.spec.tsNew. The 02-D1 regression spec: the endpoint's shape and its refusal to serialise a value, the page against the payload, Email Shield, and the absent push module
docs/decisions/0014-plugin-status-is-read-from-the-service-graph.mdNew.
docs/GLOSSARY.mdPlugin recorded as a term of art, with what it does not mean
.archives/removal-safe/apps/web/src/pages/admin/AdminPluginsPage.tsxArchived. The retired page, with a register row: its nine descriptions are the only surviving statement of what the PHP-era plugins did, and phase 03 will want them

Phase 02 task 4 (quota half):

FileChange
apps/api/internal/models/plan_quota.goNew. PlanQuotas — the fifteen keys with the labels the portal renders — plus IsPlanQuotaKey and ValidatePlanQuotas. Labels are packages/link-model's, pluralised (ADR-0012): no surface coins its own word for a registered type
apps/api/internal/models/plan_quota_test.goNew. Registry shape, and the validator against integers, -1, 0, strings, booleans, fractions and < -1; unknown and boolean keys pass through untouched
apps/api/internal/repository/users.goGetPlanSettings → GetEffectivePlanSettings: the plan's blob under the user's, merged in SQL. The old method had exactly three references and no mock, so it was renamed rather than kept beside
apps/api/internal/repository/users_plan_settings_integration_test.goNew. The merge against migrated Postgres: plan defaults reach the read, an override wins for its key, a plan-only key still applies, a plan_id matching no row falls back to the user's own blob, and both empty gives an empty map rather than an error
apps/api/internal/services/plan_limits.goPlanSettingsGetter renamed to match. Fail-open on a failed read is untouched — ADR-0011 records that asymmetry as deliberate
apps/api/internal/handlers/admin_plans.goQuotas serves the registry; ValidatePlanQuotas gates Create and Update, before any field is mutated
apps/api/internal/handlers/admin_plans_test.goThe quotas endpoint returns all fifteen in registry order; a bad quota value 400s and never reaches the store; a chi test pinning /plans/quotas against /plans/{id}
apps/api/cmd/server/main.goGET /admin-api/v1/plans/quotas, above /plans/{id}. The fifteen Register calls keep their literal keys — the gate parses them
apps/web/src/pages/admin/AdminPlansPage.tsxThe Plan limits section, rendered from the endpoint; form state carries the whole settings blob so keys with no field survive a save; a failed registry fetch says so rather than silently rendering no limits
apps/web/src/services/admin.ts · types/api.tsgetAdminPlanQuotas, PlanQuota
apps/web/vite.config.tsThe /admin-api dev proxy. It has never existed: every admin page under npm run dev fetched index.html and rendered empty unless VITE_API_URL was set, and no live spec had driven an admin page before this one
scripts/check-entitlement-parity.mjsRules Q1-Q3 beside the flag rules, in the same file as SESSION said they belong. Reads Go by regex over comment-stripped source, the technique check-link-type-parity.mjs established
scripts/i18n-baseline.json1903 → 1908, with the reason: the section's own copy. The fifteen field labels are not counted — they come from the server
apps/web/tests/e2e-live/admin-plan-settings.spec.tsNew. The 02-D3 regression spec: the operator edits the limit in the UI, the database holds it, the user's next create is refused, and the per-user override still wins
docs/decisions/0013-plan-quotas-resolve-from-the-plan.mdNew.

Phase 01 task 5:

FileChange
apps/web/src/components/layout/{Sidebar,Topbar,CommandPalette,AppLayout}.tsxThe four hand-maintained navigation lists — Links→Short links, Biolinks→Bio pages, Notifications→Notification handlers, and the palette's Title-Case drift on four more registry types. The topbar's inbox says Inbox in all four places it appears
apps/web/src/pages/** (13 files)Eight Library · … kickers → Resources · …; page titles, empty states, modal titles, table and pagination labels. Full list: .station/jobs/001-renaissance/evidence/vocabulary-sweep.md
scripts/check-navigation-parity.mjsNew. The gate: no retired word in a user-facing label; a nav entry on a registered type's listPath carries the registry's label. Reads the parse tree — "Links" appears in routes, query keys, CSS names and this file's own comments
package.json · .github/workflows/ci.ymlcheck:navigation in the verify chain and as a step of the design-system job — a seventh gate in an existing job, not a seventh job
shared/contracts/openapi.yamlTag descriptions for resources, links, projects, statistics; the undeclared workspaces tag declared; ten static-page and payment-link operations retagged off links, which was 01-D1 written into the contract. Tag ids unchanged — SDKs derive namespaces from them
apps/api/scripts/gen_openapi_paths.pyTAG_MAP follows the YAML, or the next generated route puts the collection-sense tag back. Its SPEC path was still the pre-move repo root and the script could not run at all; fixed, because a TAG_MAP edit is otherwise untestable
docs/GLOSSARY.mdThe collection section rewritten; the Resource collision row rewritten — the two remaining senses now collide with the collection noun, not with each other; naming rule 1 clarified against the new name; a dangling CONVENTIONS.md reference repointed
docs/API.md## Links → ## Short links, and the type filter claim dropped — false since 01-D1
apps/web/tests/e2e-live/navigation-registry.spec.tsNew. The live regression spec, asserting the sidebar against the registry rather than a fixed list
apps/web/tests/e2e-live/{feature-flag-consumer,link-detail,links-list-type-filter,realtime}.spec.tsAssertions on the renamed strings
docs/decisions/0012-the-collection-is-resources.mdNew.
.station/jobs/001-renaissance/evidence/vocabulary-sweep.mdNew. Every string changed, and every string deliberately not changed
.station/jobs/001-renaissance/decisions/README.md · plans/01-library.mdDecision 001 DONE; task 5 ticked

Phase 02 task 1:

FileChange
apps/api/internal/repository/feature_flags.goListEnabledForPlan — the targeting read, replacing ListEnabled, which had one caller and threw plan_ids away
apps/api/internal/repository/users.goGetPlanID — new. There was no way to ask which plan a user is on
apps/api/internal/services/feature_flags.goNew. FeatureFlagService.EnabledFor — the one evaluation helper, failing closed
apps/api/internal/handlers/feature_flags.goEvaluate takes the caller from the context and 401s without one; the CRUD interface loses the read it no longer makes; normalisePlanIDs refuses targeting the query could never match (a plan name stored cleanly and reached nobody)
apps/api/internal/handlers/interfaces.goFeatureFlagEvaluator — the narrow consumer-side interface
apps/api/cmd/server/main.goThe service is constructed; the route moves off the public mux into /api/v1
apps/api/internal/middleware/scopes.go + scopes_test.goThe feature-flags prefix stays closed to token principals, with the reason recorded: account:read is granted for GET /user, and flag keys name unreleased features
apps/api/internal/{services,handlers}/feature_flags_test.goNew. Evaluation against the caller's plan; fail-closed on either read; 401; [] not null; 500 rather than an empty grant
apps/api/internal/repository/feature_flags_integration_test.goNew. The targeting SQL against migrated Postgres: whitespace, empty entries, plan 0 as an audience, and GetPlanID
shared/contracts/openapi.yaml · apps/api/scripts/gen_openapi_paths.pysecurity: [] removed; the response shape and the 401 documented — and the generator no longer classifies the path as public, or the next regeneration would put it back
apps/api/AGENTS.md · docs/API.md · docs/ARCHITECTURE.mdThe endpoint leaves the "Public (no auth)" tables; the hook's documented example stops teaching the bare-string shape the new gate forbids; the stale 5-minute staleTime corrected
apps/web/src/pages/admin/AdminFeatureFlagsPage.tsxThe targeting field asks for numeric plan IDs rather than suggesting pro,enterprise, and a refused save now says why instead of appearing to do nothing
apps/web/src/lib/featureFlags.tsNew. The registry of flag keys this app understands
apps/web/src/hooks/queries/useFeatureFlags.tsNew. useFeatureFlags / useFeatureFlag — false while loading, false on failure
apps/web/src/hooks/queries/useFeatureFlags.test.tsxNew. Those two failure modes, plus one fetch for any number of consumers
apps/web/src/lib/queryKeys.ts · hooks/queries/index.tsThe key, added with its consumer as that file requires
apps/web/src/services/featureFlags.tsThe evaluate call is no longer "public"; documented as the authenticated per-plan read
apps/web/src/pages/links/LinksPage.tsxThe consumer: the one-time notice renders unless the flag retires it
apps/web/src/components/layout/AdminLayout.tsxThe Feature Flags page joins the admin nav — routed but unlisted since it shipped
scripts/check-entitlement-parity.mjsNew. The gate: no unregistered key reaches useFeatureFlag, no registered key goes unconsumed
package.json · .github/workflows/ci.ymlcheck:entitlements in the verify chain and in the design-system job
apps/web/tests/e2e-live/feature-flag-consumer.spec.tsNew. The 02-D4 regression spec: default, grant, positive and negative targeting, anonymous
apps/web/tests/e2e-live/links-list-type-filter.spec.tsThe notice's own assertions move to the spec that owns the switch that can remove it
docs/decisions/0011-feature-flags-are-evaluated-server-side-per-plan.mdNew.

Phase 04 task 1:

FileChange
apps/web/src/components/layout/Topbar.tsx<LanguageSwitcher /> and its import removed — the only mount site in the repo
apps/web/src/components/layout/LanguageSwitcher.tsxArchived to .archives/removal-safe/, with a register row naming what replaced it (nothing user-facing, deliberately)
apps/web/src/i18n.tsDoc block only. The bootstrap is dormant infrastructure and says so, with the ADR and the gate named
scripts/check-i18n-coverage.mjsNew. The gate: no language control while nothing is translated; the hardcoded-string ratchet. Both read the TypeScript parse tree, not the source text
scripts/i18n-baseline.jsonNew. The committed baseline — 1,903, and 0 translated call sites
package.jsoncheck:i18n, and it joins the verify chain
.github/workflows/ci.ymlThe gate as a step of the design-system job — a sixth gate in an existing job, not a seventh job
apps/web/tests/e2e-live/language-switcher.spec.tsNew. The 03-D1 regression spec: seeds a second language so the control would render, then requires it absent
docs/decisions/0010-language-switcher-unmounted-until-strings-are-extracted.mdNew.
.station/jobs/001-renaissance/evidence/i18n-baseline.mdNew. The counting method, why it is not the audit's ~903, and how to move the number

Audit 01-D2:

FileChange
apps/api/internal/repository/links.goNew method. ListRecentByWorkspaceID — cross-type, ordered by edit, allowlisted by the caller
apps/api/internal/repository/links_recent_integration_test.goNew. Seeds one row per registered type from models.LinkTypes; ordering, limit, workspace scoping, unregistered-type exclusion
apps/api/internal/handlers/resources.goNew. ResourceHandler.Recent; the allowlist is models.LinkTypes
apps/api/internal/handlers/resources_test.goNew. Gate: the read must request every registered type; limit bounds, auth, workspace, empty array, store error
apps/api/internal/handlers/interfaces.goRecentResourceStore — the narrow consumer-side interface
apps/api/internal/middleware/scopes.go + scopes_test.goresources prefix, read-only, governed by the existing links scope — no new grantable scope
apps/api/cmd/server/main.goGET /api/v1/resources/recent
shared/contracts/openapi.yamlresources tag; the path, its limit parameter and the un-paginated response
apps/web/src/services/resources.tsNew. getRecentResources
apps/web/src/hooks/queries/useRecentResources.tsNew. The TanStack Query hook (ADR-0005)
apps/web/src/lib/queryKeys.tsresources.all() / resources.recent(limit)
apps/web/src/lib/linkTypeIcons.tsNew. The one Phosphor→lucide crossing point, keyed by the registry's icon name
apps/web/src/lib/linkTypeIcons.test.tsNew. Gate: every registered type is nameable, iconable and openable
apps/web/src/pages/dashboard/DashboardPage.tsxRecents from one hook; label, icon, href and key from the registry; no type literals
apps/web/src/hooks/queries/use{Links,Biolinks,Vcards,Events,FileLinks,StaticPages,PaymentLinks}.tsEvery mutation that writes a links row invalidates qk.resources.all()
apps/web/tests/e2e-live/dashboard-recents.spec.tsNew. The 01-D2 regression spec, in a workspace of its own
docs/decisions/0009-recents-is-a-server-sourced-registry-wide-read.mdNew.

Phase 01 task 1:

FileChange
apps/api/internal/models/link.goLinkTypes registry slice + IsValidLinkType — the Go-side allowlist
apps/api/internal/models/link_registry_test.goNew. Gate: a LinkType* constant missing from LinkTypes fails the suite
apps/api/internal/handlers/links.goLinkTypeStore; List filters to link and types the cache key; Create validates type; linkPlanLimitChecks table
apps/api/internal/handlers/links_test.goType-filter, validation and plan-limit-coverage tests; recording PlanLimiter fake
apps/api/internal/repository/links_integration_test.goNew. ListByWorkspaceIDAndType against migrated Postgres
apps/web/src/pages/links/LinksPage.tsxOne-time dismissible notice, rendered from @csxbase/link-model
apps/web/tests/e2e-live/links-list-type-filter.spec.tsNew. The 01-D1 regression spec
shared/contracts/openapi.yamlLinkType schema; type documented on create; 400 response; descriptions
docs/decisions/0008-links-endpoint-is-short-links-only.mdNew.
.station/jobs/001-renaissance/evidence/verification-runs.mdNew.

Verification

.station/jobs/001-renaissance/evidence/verification-runs.md — the full record, including both gates observed failing on deliberately broken input and the live regression spec observed failing against a binary built from the merge-base.

Phase 01 task 4 adds one gate with five rules, each observed failing on its own broken input — eight in total, because a gate whose rules only ever fire together is one rule wearing five hats. Two are worth naming. C2's broken input was correct: a hand-written vcard entry reproducing the registry's label, description and path exactly, failed anyway, because a literal that agrees today is the state the derivation exists to end. And C4 is the first check in this repository that follows a path through the router to the page — /vcards to its <Route>, the route's element to a component, the component to its import, the import to a file — and then asks whether that file reads the parameter the product promises. Nothing shorter catches the state this branch started from, where all eight declared create routes pointed at pages that had never read anything. The live spec drives every one of the twenty-three cards to a create surface, which is the claim no source check can make — and it earned its keep immediately, by finding that /uploads, a product in this slice's own first draft, is a nine-line page reading "File and image gallery coming soon". The gate had passed it: C1 sees the route resolve and C4 follows only panel products. The catalogue offers 23, not 24, and ADR-0016 states the limit rather than hiding it — no static check can tell a create page from a placeholder. An adversarial pass separately beat C5 by moving the product list into a sibling module the page imports; C5 reads the directory now, as check-navigation-parity.mjs learned to for components/layout/, and was observed failing on the input that used to pass. The full suite is 53 Playwright tests green (6 stub + 47 live), 48 before, and the new spec was run --repeat-each=2 for 10 green. npm run test:unit is 49 tests, 39 before — the last of them pins ROUTES.newShortLink to the registry value it says it copies, which an adversarial pass pointed out was a literal free to drift. The i18n ratchet moved 1904 → 1908 for four positions on a new page, with LinksPage moving by zero and the note saying why that is not an error.

Phase 01 task 3 / phase 04 task 2 adds one gate with two rules, of which rule 1 has four parts and each part was observed failing on its own broken input — a shell route reached by nothing, a destination pointing at nothing, an exemption that outlived its route, and a registered type hand-written instead of derived. Rule 2 was observed failing twice, on a bare route literal and on a {path,label} pair. The live spec grows 5 → 11 and three of the six new tests were observed failing with the four surfaces reverted to the merge base; the other three pass there, and the record says so rather than dropping them — they pin properties four unchecked lists happened to hold. The full suite is 48 Playwright tests green (6 stub + 42 live), 42 before, and the navigation spec was run --repeat-each=3 for 33 green with zero flakes, because a new spec that is green once is not evidence. npm run test:unit is 39 tests, 33 before. The i18n ratchet moved 1911 → 1904 for a relocation, not an extraction, and the baseline note says that word.

Phase 02 task 4 (Plugins page) adds one gate with two rules, observed failing on three separate broken inputs — the retired VAPID module restored, a module array put back in the page, and a page that keeps its shape but stops asking the server — and a live regression spec observed failing two ways: three of its five tests against the merge-base page (every test that looks at the page, each as a 90-second wait for a request that page never makes), and its endpoint test against a binary built from the merge base, where the route is a 404. The full suite is 42 Playwright tests green (6 stub + 36 live), 37 before. The i18n ratchet moved 1908 → 1911 with its reason committed.

Phase 02 task 4 (quota half) adds one gate with two new rules, each observed failing on a separate broken input — a key enforced but unregistered, and a key registered but unenforced — and a live regression spec observed failing on the one assertion the pre-fix tree cannot pass: with the enforcement read reverted to users.plan_settings, the create that must be refused returns 201. The full suite is 37 Playwright tests green (stub + live), 36 before. The i18n ratchet moved 1903 → 1908 and the new number is committed with its reason.

Summary: go vet + go test -race green with the repository integration tests running (not skipped) against migrated Postgres 16; staticcheck clean; npm run verify, tsc --noEmit, unit tests and the OpenAPI coverage script green; all 30 Playwright tests (stub + live) green against a real API, migrated database and vite dev server. 01-D2 adds three gates, each observed failing on a deliberately broken input, and a live regression spec observed failing against a binary built from the merge-base.

Phase 04 task 1 adds one gate with two rules, observed failing on the pre-fix tree, and a live regression spec observed failing against the pre-fix web tree with a second language configured — the condition that makes the switcher render at all. Its counting method and baseline are .station/jobs/001-renaissance/evidence/i18n-baseline.md.

Phase 01 task 5 adds one gate with two rules, each observed failing on a separate broken input — a gate whose rules only ever fire together has one rule — and a live regression spec observed failing on three of its five tests against a sidebar reverted by one string, including one cross-surface failure the single-surface rules cannot produce. The full suite is 36 Playwright tests green (stub + live). The i18n ratchet did not move: 1903 before and after, which is the evidence that ~50 changed strings touched words and not structure.

Next actions

  1. Phase 01 task 2 is the ready work. Decisions 002 and 003 are answered, and it is the only task in the workstream that is both unblocked and on the critical path (it blocks phase 03). Task 4 shipped (ADR-0016), and the catalogue is where task 2 now lands: fifteen of twenty-three products are declared in apps/web/src/lib/catalogue.ts with a registryNote each, and widening packages/link-model replaces those literals with fromRegistry() calls one product at a time — the gate's success line counts them down. Two notes for whoever picks it up. The registry's createPath is no longer dead wiring, so a new descriptor must carry a working one: ?new=1 and a page that calls useCreateOnArrival, or no parameter and a page that is the create surface — rule C4 fails the build either way round. And the catalogue deliberately did not grow a Go-side twin, though SESSION previously suggested /api/v1/resources/ as the home for its data: what a user can create is a statement about routes, which are a client concept, and mirroring twenty-three of them into Go would have created the second registry this slice exists to avoid. If task 2 gives the products a server presence, the catalogue derives from it the way it derives the eight.
  2. Every operator decision is answered. 004a resolved 2026-08-14: the container is workstream 002-renaissance, chartered the same day with the inventory as founding evidence and side-by-side preview pages under its preview/. Phase 04 task 3 and phase 05 task 2 now sequence against 002's phases. 006 is answered by phase 05 task 1's measurement, not by asking.
  3. Phase 02 is open work again, in order: task 2 mints the capability registry, task 3 enforces against it and retires plan_level, and the rest of task 4 puts the controls on the plan form the quota half already built — in the same section, extending scripts/check-entitlement-parity.mjs with the capability rules the plan names, beside the flag and quota rules rather than in a third script. Rule 4 of that gate is now unconditional: any surviving plan_level reference after task 3 fails the build. Mint the capability names against available_plan_features.php, not from scratch, and only for subsystems this port actually has.
  4. Fix LinkRepository.GetByID. Found while proving 03-D4 and reproduced end to end: it selects no display_rules, timezone, scheduled_at, scheduled_end or splash_page_id, and LinkHandler.Update writes that same partially-loaded struct back over all five columns — so PUT /api/v1/links/{id} with nothing but {"is_enabled": true}, which is the Active switch, silently NULLs a link's targeting rules, its schedule and its splash page. The fix is one SELECT list (and the two list queries feeding the same struct), but it wants a repository integration test and a release note, and it is not a reference-data change, which is why it was not folded into ADR-0017. It is pinned by test.fail() in display-rules-server-data.spec.ts, so the day it is fixed Playwright says "expected to fail, but passed" and the annotation comes off. Its sibling — DisplayRulesService.Match has one caller, so a short link's rules are never evaluated at all — is the product question behind it: repair the read, or take the targeting editor off /links/:id until the redirect path consults it.
  5. Start phase 00 (Heritage) — timeboxed to a week, output is one report.
  6. The i18n full path is open and unblocked, with a baseline to land against. Its first commit is not an extraction: repository/languages.go:101 selects a literal '{}' for strings, so no authored catalogue can reach a client today. Both that and the Settings page's own dead language dropdown are on the ROADMAP under LATER.

Source: .station/jobs/001-renaissance/SESSION.md

Library