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.Matchcompares whole strings after lowercasing, no branch ofparseBrowserNamehas ever returnedsamsung_internet, andparseOSNamereturns"Chrome OS"— sochrome_osis 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 ashowlist just means nobody matched, so the block disappeared for every visitor with no error in any log.GET /api/v1/reference/targetingserves all six lists now, public beside/api/v1/languages, keyed by thedisplay_ruleskey each populates. The half that outlives the slice is where the lists come from: the three user-agent switch statements moved out ofhandlers/redirect.gointo ordered tables inservices/useragent.go, and the browser, OS and device options are derived from those tables throughstrings.ToLower(rule.Value)— precisely the expressionMatchapplies 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 ingolang.org/x/text, filtered by canonicalisation — which is what keepsUKout besideGB— 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, soAFis 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 putschrome_osstraight 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
createTilesoffered 4, and their union — everything a user could learn to create anywhere in the app — was 9. It is 23 now, inapps/web/src/lib/catalogue.ts, with the eight registered types derived throughfromRegistry()and the other fifteen declared with aregistryNotenaming 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-modelhas carried acreatePathfor every registered type since it was written, documented as "route that creates one", beside adescriptiondocumented 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=linkwhile the only page reading anything read?compose=1. Enumerating every query-param reader inpages/at the merge base found five, and none of them read a parameter anycreatePathnames. Twenty-three tiles on top of that would have been a launcher whose whole function was dead. So?new=1is 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 declareopens: '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.mdforbids rendering the Pages family bare, and a catalogue is exactly where its three products share a heading — afamilyfield 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.mjsjoinsnpm run verifyand 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-writtenvcardentry 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 SQLNULLand not the JSONnullscalar:object || 'null'::jsonbanswers an array,JSONMap.Scancannot read it, andcheck()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-settingswith anullbody), 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 onjsonb_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.ValidatePlanQuotasruns 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:COALESCEand "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";/checkouthad a label and no route; six of the eight registered types carried a sidebar icon that was not the onelinkTypeIcons.tsmaps for them, in a module whose whole purpose is to be the single type→icon crossing point; and/payment-processorshad 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 renderapps/web/src/lib/navigation.tsnow, and the eight registered types are derived frompackages/link-modelrather than declared there, so a renamed product renames itself on all four with no edit to the navigation file.scripts/check-navigation-parity.mjsgains 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, withUNLISTED_ROUTESa 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/directoryhad never lacked a breadcrumb entry, being mounted outsideAppLayoutwith 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/adminmounts 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 innavigation.test.tswhere 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/pluginsfabricated. The page held a nine-entry array, called no API, and computed the badge asenvKeys.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 requiringEMAIL_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.gobinds each module to the keys it reads and a probe on the object that serves it,GET /admin-api/v1/pluginsserves the result, and the page renders what it is given. A probe beats key presence wherever one exists — a setGEOIP_DB_PATHwhose file will not open reports inactive, which no environment check could say.built_inis 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.mjsholds 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 needsAPI_PROXY_TARGET=http://127.0.0.1:8080when 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:
PlanLimitServiceresolved every limit throughusers.plan_settings, and nothing in the tree has ever copied a plan's quotas into that column — not signup, notActivatePlan, not the payment webhook, not the admin user form, not the expiry cron. The column defaults toNULL, 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 nowCOALESCE(p.settings,'{}') || COALESCE(u.plan_settings,'{}')joined throughusers.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.PlanQuotasis 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.mjsgains 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.tsnever proxied/admin-api, so every admin page rendered empty undernpm run dev.Phase 01 task 5 — the collection has a name. "Links" named the collection, one product in it, and the
linkstable (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/recentand declined to pre-empt this decision by calling it/library/, anddocs/GLOSSARY.mdalready 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.mjsholds two rules: no retired word in a user-facing label, and a navigation entry pointing at a registered type'slistPathcarries 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/linksnaming 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/linksfilters totype='link'(01-D1);POST /api/v1/linksvalidatestypeagainst 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_linkexplicitly nil because no quota key exists for it (01-D4). Ships with a one-time notice on/linksnaming 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/linkswithGET /api/v1/biolinksin 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/recentreplaces 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
LanguageSwitcherin the desktop topbar against zerot()call sites in 239 files, so selecting a language movedlocalStorage.cardsite_langand changed nothing on screen (03-D1). The component is unmounted and archived to.archives/removal-safe/;i18n.ts, thelanguagestable, the public endpoint and the admin CRUD are untouched, because they are what the extraction will be built on.scripts/check-i18n-coverage.mjsnow runs innpm run verifyand in thedesign-systemCI job with two rules: no language control while nothing is translated (anchored on thesetLanguage/changeLanguagecalls 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_flagsgates something. The third shipped-but-dead subsystem: table with per-plan targeting since 000022, repository, five admin routes, admin page, typed client, publicevaluateendpoint — and zero consumers on either side (02-D4). The endpoint could not have had one: it answered "every enabled flag", unauthenticated, loadingplan_idsand discarding it. Evaluation is per-audience now —FeatureFlagService.EnabledForresolves 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 ofPlanLimitService, deliberately. The same path is authenticated, governed by the existing read-onlyaccountscope. On the client,useFeatureFlagis 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/linksnotice, 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:
| Blocked | Waiting on |
|---|---|
| Unblocked 2026-08-14 — decisions 002 and 003 answered | |
| 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/resourcesgrouping 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 worddocs/GLOSSARY.mdrecords 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/linksin 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:
| File | Change |
|---|---|
apps/api/internal/services/useragent.go | New. 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.go | New. 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.go | New. 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.go | New. TargetingOption / TargetingOptions — the wire shapes, keyed by the display_rules key each list populates |
apps/api/internal/handlers/reference.go · interfaces.go | New. ReferenceHandler over the narrow TargetingOptionsProvider. No store: there is no countries table and there should not be one |
apps/api/internal/handlers/reference_test.go | New. 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}.go | The 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.go | The same rename. The behaviour these pin is unchanged and that is the point: the tables reproduce the switches exactly |
apps/api/cmd/server/main.go | GET /api/v1/reference/targeting on the public router, beside /api/v1/languages |
apps/api/internal/middleware/scopes.go | A 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.mod | golang.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.py | The 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.tsx | The 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.tsx | An 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.ts | The 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.tsx | New. 17 tests: the three states, a country outside the retired 44 offerable, and the props contract unchanged |
scripts/check-hardcoded-data.mjs | New. 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.json | New. 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.md | check: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.json | 1908 → 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.ts | New. 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-…md | New. |
docs/API.md · apps/api/AGENTS.md | The 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.md | Task 4 ticked, the NEXT item moved to COMPLETED, five findings added under LATER |
Phase 01 task 4:
| File | Change |
|---|---|
apps/web/src/lib/catalogue.ts | New. 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.ts | New. 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.tsx | New. The page at /catalogue. Renders searchCatalogue(); holds no product and no route of its own |
apps/web/src/hooks/useCreateOnArrival.ts | New. 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.tsx | The <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.ts | link'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.ts | The 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.tsx | The 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.tsx | The 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.mjs | New. 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.md | check: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.json | 1904 → 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.ts | New. 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.md | New. |
.station/jobs/001-renaissance/evidence/before-after-catalogue.md | New. 9 products before, 23 after; 0 of 8 create routes worked, 23 of 23 do |
ROADMAP.md · plans/01-library.md | Task 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:
| File | Change |
|---|---|
apps/web/src/lib/navigation.ts | New. 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.ts | New. 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.tsx | Renders 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.tsx | ROUTE_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.tsx | Renders 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.tsx | MOBILE_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.mjs | Rules 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.json | 1911 → 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.ts | 5 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.md | New. |
ROADMAP.md · plans/01-library.md · plans/04-system-integrity.md | Both 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):
| File | Change |
|---|---|
apps/api/internal/models/plugin.go | New. Plugin, the three-value PluginStatus, and PluginConfigKey — a key name and a boolean, deliberately unable to carry a value |
apps/api/internal/services/plugins.go | New. 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.go | New. The three statuses; a set key with a failing probe; the unchecked-but-configured case; [] not nil |
apps/api/cmd/server/plugins.go | New. 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.go | New. 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.go | New. AdminPluginHandler over the narrow PluginLister. No store: there is no plugins table and never has been |
apps/api/internal/handlers/admin_plugins_test.go | New. 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.go | The 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.tsx | Rewritten 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.ts | getAdminPlugins, Plugin, PluginConfigKey, PluginStatus |
apps/web/src/components/layout/AdminLayout.tsx | The Plugins page joins the admin nav — routed but unlisted since it shipped, exactly as Feature Flags was |
scripts/check-plugin-parity.mjs | New. 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.md | check: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.json | 1908 → 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.ts | New. 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.md | New. |
docs/GLOSSARY.md | Plugin recorded as a term of art, with what it does not mean |
.archives/removal-safe/apps/web/src/pages/admin/AdminPluginsPage.tsx | Archived. 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):
| File | Change |
|---|---|
apps/api/internal/models/plan_quota.go | New. 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.go | New. 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.go | GetPlanSettings → 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.go | New. 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.go | PlanSettingsGetter renamed to match. Fail-open on a failed read is untouched — ADR-0011 records that asymmetry as deliberate |
apps/api/internal/handlers/admin_plans.go | Quotas serves the registry; ValidatePlanQuotas gates Create and Update, before any field is mutated |
apps/api/internal/handlers/admin_plans_test.go | The 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.go | GET /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.tsx | The 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.ts | getAdminPlanQuotas, PlanQuota |
apps/web/vite.config.ts | The /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.mjs | Rules 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.json | 1903 → 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.ts | New. 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.md | New. |
Phase 01 task 5:
| File | Change |
|---|---|
apps/web/src/components/layout/{Sidebar,Topbar,CommandPalette,AppLayout}.tsx | The 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.mjs | New. 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.yml | check: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.yaml | Tag 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.py | TAG_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.md | The 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.ts | New. 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.ts | Assertions on the renamed strings |
docs/decisions/0012-the-collection-is-resources.md | New. |
.station/jobs/001-renaissance/evidence/vocabulary-sweep.md | New. Every string changed, and every string deliberately not changed |
.station/jobs/001-renaissance/decisions/README.md · plans/01-library.md | Decision 001 DONE; task 5 ticked |
Phase 02 task 1:
| File | Change |
|---|---|
apps/api/internal/repository/feature_flags.go | ListEnabledForPlan — the targeting read, replacing ListEnabled, which had one caller and threw plan_ids away |
apps/api/internal/repository/users.go | GetPlanID — new. There was no way to ask which plan a user is on |
apps/api/internal/services/feature_flags.go | New. FeatureFlagService.EnabledFor — the one evaluation helper, failing closed |
apps/api/internal/handlers/feature_flags.go | Evaluate 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.go | FeatureFlagEvaluator — the narrow consumer-side interface |
apps/api/cmd/server/main.go | The service is constructed; the route moves off the public mux into /api/v1 |
apps/api/internal/middleware/scopes.go + scopes_test.go | The 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.go | New. 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.go | New. 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.py | security: [] 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.md | The 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.tsx | The 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.ts | New. The registry of flag keys this app understands |
apps/web/src/hooks/queries/useFeatureFlags.ts | New. useFeatureFlags / useFeatureFlag — false while loading, false on failure |
apps/web/src/hooks/queries/useFeatureFlags.test.tsx | New. Those two failure modes, plus one fetch for any number of consumers |
apps/web/src/lib/queryKeys.ts · hooks/queries/index.ts | The key, added with its consumer as that file requires |
apps/web/src/services/featureFlags.ts | The evaluate call is no longer "public"; documented as the authenticated per-plan read |
apps/web/src/pages/links/LinksPage.tsx | The consumer: the one-time notice renders unless the flag retires it |
apps/web/src/components/layout/AdminLayout.tsx | The Feature Flags page joins the admin nav — routed but unlisted since it shipped |
scripts/check-entitlement-parity.mjs | New. The gate: no unregistered key reaches useFeatureFlag, no registered key goes unconsumed |
package.json · .github/workflows/ci.yml | check:entitlements in the verify chain and in the design-system job |
apps/web/tests/e2e-live/feature-flag-consumer.spec.ts | New. The 02-D4 regression spec: default, grant, positive and negative targeting, anonymous |
apps/web/tests/e2e-live/links-list-type-filter.spec.ts | The 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.md | New. |
Phase 04 task 1:
| File | Change |
|---|---|
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.tsx | Archived to .archives/removal-safe/, with a register row naming what replaced it (nothing user-facing, deliberately) |
apps/web/src/i18n.ts | Doc block only. The bootstrap is dormant infrastructure and says so, with the ADR and the gate named |
scripts/check-i18n-coverage.mjs | New. 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.json | New. The committed baseline — 1,903, and 0 translated call sites |
package.json | check:i18n, and it joins the verify chain |
.github/workflows/ci.yml | The 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.ts | New. 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.md | New. |
.station/jobs/001-renaissance/evidence/i18n-baseline.md | New. The counting method, why it is not the audit's ~903, and how to move the number |
Audit 01-D2:
| File | Change |
|---|---|
apps/api/internal/repository/links.go | New method. ListRecentByWorkspaceID — cross-type, ordered by edit, allowlisted by the caller |
apps/api/internal/repository/links_recent_integration_test.go | New. Seeds one row per registered type from models.LinkTypes; ordering, limit, workspace scoping, unregistered-type exclusion |
apps/api/internal/handlers/resources.go | New. ResourceHandler.Recent; the allowlist is models.LinkTypes |
apps/api/internal/handlers/resources_test.go | New. Gate: the read must request every registered type; limit bounds, auth, workspace, empty array, store error |
apps/api/internal/handlers/interfaces.go | RecentResourceStore — the narrow consumer-side interface |
apps/api/internal/middleware/scopes.go + scopes_test.go | resources prefix, read-only, governed by the existing links scope — no new grantable scope |
apps/api/cmd/server/main.go | GET /api/v1/resources/recent |
shared/contracts/openapi.yaml | resources tag; the path, its limit parameter and the un-paginated response |
apps/web/src/services/resources.ts | New. getRecentResources |
apps/web/src/hooks/queries/useRecentResources.ts | New. The TanStack Query hook (ADR-0005) |
apps/web/src/lib/queryKeys.ts | resources.all() / resources.recent(limit) |
apps/web/src/lib/linkTypeIcons.ts | New. The one Phosphor→lucide crossing point, keyed by the registry's icon name |
apps/web/src/lib/linkTypeIcons.test.ts | New. Gate: every registered type is nameable, iconable and openable |
apps/web/src/pages/dashboard/DashboardPage.tsx | Recents 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}.ts | Every mutation that writes a links row invalidates qk.resources.all() |
apps/web/tests/e2e-live/dashboard-recents.spec.ts | New. The 01-D2 regression spec, in a workspace of its own |
docs/decisions/0009-recents-is-a-server-sourced-registry-wide-read.md | New. |
Phase 01 task 1:
| File | Change |
|---|---|
apps/api/internal/models/link.go | LinkTypes registry slice + IsValidLinkType — the Go-side allowlist |
apps/api/internal/models/link_registry_test.go | New. Gate: a LinkType* constant missing from LinkTypes fails the suite |
apps/api/internal/handlers/links.go | LinkTypeStore; List filters to link and types the cache key; Create validates type; linkPlanLimitChecks table |
apps/api/internal/handlers/links_test.go | Type-filter, validation and plan-limit-coverage tests; recording PlanLimiter fake |
apps/api/internal/repository/links_integration_test.go | New. ListByWorkspaceIDAndType against migrated Postgres |
apps/web/src/pages/links/LinksPage.tsx | One-time dismissible notice, rendered from @csxbase/link-model |
apps/web/tests/e2e-live/links-list-type-filter.spec.ts | New. The 01-D1 regression spec |
shared/contracts/openapi.yaml | LinkType schema; type documented on create; 400 response; descriptions |
docs/decisions/0008-links-endpoint-is-short-links-only.md | New. |
.station/jobs/001-renaissance/evidence/verification-runs.md | New. |
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
- 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.tswith aregistryNoteeach, and wideningpackages/link-modelreplaces those literals withfromRegistry()calls one product at a time — the gate's success line counts them down. Two notes for whoever picks it up. The registry'screatePathis no longer dead wiring, so a new descriptor must carry a working one:?new=1and a page that callsuseCreateOnArrival, 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. - 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 itspreview/. 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. - 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, extendingscripts/check-entitlement-parity.mjswith 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 survivingplan_levelreference after task 3 fails the build. Mint the capability names againstavailable_plan_features.php, not from scratch, and only for subsystems this port actually has. - Fix
LinkRepository.GetByID. Found while proving 03-D4 and reproduced end to end: it selects nodisplay_rules,timezone,scheduled_at,scheduled_endorsplash_page_id, andLinkHandler.Updatewrites that same partially-loaded struct back over all five columns — soPUT /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 bytest.fail()indisplay-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.Matchhas 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/:iduntil the redirect path consults it. - Start phase 00 (Heritage) — timeboxed to a week, output is one report.
- The i18n full path is open and unblocked, with a baseline to land against.
Its first commit is not an extraction:
repository/languages.go:101selects a literal'{}'forstrings, 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