Skip to content
Toolkit

CLOSE — 011-plan-ladder

Closed: 2026-08-30 · Status: DONE (every buildable phase met; the tier seed gated outright on Blocker 1)

The charter's objective, as far as a session may carry it: the plans are a ladder somebody can climb, and every rung of it that this repository may build is enforced. The expiry path runs against PostgreSQL for the first time in the product's life, two new quota axes join the registry each with the write path that refuses on it, one function answers whose plan applies for all eighteen axes, and the catalogue stops calling an unpriced rung free. npm run check:ladder reports 5 of 7 rungs closed, and no row flipped in a commit that did not add its reader.

Two rungs stay open, and both are the owner's, not a session's. tiers — the seed itself — is blocked on Blocker 1 for the tier names as well as the prices; subdomains is held with no phase by Blocker 3, because 009 phase 06 was never built and an axis nothing reads is what this repo's ledgers exist to forbid. This is 009's shape one track over: closed with every buildable phase met and the unbuildable one named rather than faked.

The charter's own bar, phase by phase

PhaseDone when (charter)State
00 — The ladder ledger and its gatecheck:ladder prints N of M closed, starts with everything open, is watched failing on a deliberately broken input, and a row flips only in the commit that adds its readerMet. scripts/ladder-ledger.json + check-ladder-parity.mjs, seven rungs at 1 of 7, in verify. Two rules are this track's own: R5a — no row carries a number at any depth, because a figure written into the ledger is Blocker 1 answered in the quietest place there is — and R5b, a rung with phase: null cannot be closed. Watched failing seven ways (evidence .station/jobs/011-plan-ladder/evidence/phase-00-gate-watched-failing-2026-08-30.md)
01 — The bottom rung runsThe expiry task proved failing against PostgreSQL, then fixed, then proved moving a row; the free plan resolved by identity, never a literal; plan_id 0 settled in the same slice; idempotent and re-runnableMet. plans.is_default (000043, partial unique index on the TRUE side) read through DefaultPlanID and handed to a statement that spells no plan's name, with the clock passed in (ADR-0113). The defect was found by running the statement, not reading it: 'free' against an INT column, refused at parse time, so no subscription had ever expired (ADR-0134, evidence .station/jobs/011-plan-ladder/evidence/phase-01-expiry-runs-postgres-2026-08-30.md)
02 — The seat axisseats_limit in the registry, unseeded, read by AddMember and nothing else; the count is of the workspace's roster, not the actor's workspacesMet. It needed a third registration shape — count-over-scope — because a seat counter handed a user id compiles and counts the wrong thing, which is a limit nobody sold. The refusal sits below the duplicate check, so an add that changes nothing is not charged a seat. Watched failing twice (ADR-0135, evidence .station/jobs/011-plan-ladder/evidence/phase-02-seat-axis-watched-failing-2026-08-30.md)
03 — The custom-slug axiscustom_slugs_limit read by the one claim check ADR-0115 made the single answer for all fourteen write paths; what counts as custom decided in the ADRMet. Answered from a census rather than a preference: nothing in this product mints an address, so every name is its author's and the axis bounds names held, on creates only — a rename moves a name the workspace already has. Watched failing twice (ADR-0136, evidence .station/jobs/011-plan-ladder/evidence/phase-03-name-axis-watched-failing-2026-08-30.md)
04 — Whose plan appliesThe per-user/per-workspace split resolved in one place, every call site moved onto it in the same commit, a gate rule holding it there; nothing new enforcedMet. planSettingsFor resolves the holder through holderOf, all three axis shapes moved onto it in one commit, and actorHoldsThePlan returns exactly what eighteen axes returned severally — so Blocker 4 stays the owner's and lands in one function when answered. It needed R7, single-site: a resolution is undone by an extra call, which no anchor rule can see. Watched failing three ways (ADR-0137, evidence .station/jobs/011-plan-ladder/evidence/phase-04-plan-scope-watched-failing-2026-08-30.md)
05 — The tiers exist and the catalogue tells the truthThe seed lands the shape with prices left for the owner and nothing half-priced purchasable; the catalogue reads the seeded rows; the checkout's refusal staysPartly met — the half that is mechanics. Blocked on Blocker 1 for the half that is names. The catalogue half landed and is the slice that makes empty prices safe to show: the page answered Free both to a stored zero and to no price at all, so the seed's first visible effect would have been a ladder of free rungs. Three states now, and a plan not sold at the selected frequency gets no action, which is what CreateCheckout's refusal of price <= 0 already meant (ADR-0138). The seed itself is below

Why the seed did not ship, in one paragraph

The charter's recommendation — seed the shape, leave the prices empty, keep the rows unpurchasable — is unblocked for prices and unblocked for axis values (an unset quota unlimits, so a row seeded without them sells nothing it should not). It is not unblocked for the tier names. The overview's six tiers are named in a document this repository does not carry; the assessment cites the tier table without reproducing it and says in as many words that the seed needs product input the repo cannot infer. A session naming six rungs would be answering Blocker 1 in the loudest place available — a table customers are charged from — under the charter rule that exists to stop exactly that. What the owner owes, minimally: the tier names, in order. With the names, the seed is one session's work and the tiers rung closes on the catalogue reader that is already merged.

What the track decided, and what it refused to

A rung is closed only when something reads it. The track's own addition to six tracks of ledger discipline, and it cost the ledger two rows rather than buying them: a stored number, a seeded row and an admin control are each necessary and none is sufficient. tiers stays open with its store half already built, because a seed with no reader is not a rung.

The numbers are the owner's and the mechanics are the session's. No price, no tier name and no per-tier axis value was invented here, and gate rule R5a makes that checkable rather than a promise — the ledger cannot carry a number at any depth.

A statement is proved against PostgreSQL, never against a mock. Phase 01's defect was invisible from Go: the expiry task compiled, ran hourly, and had errored at parse time on every run it ever made. One initdb and three statements found it; the charter's verification bar names PostgreSQL because of it.

An unset quota unlimits (004's fail-open), which is the opposite of a capability's default deny — so both new axes shipped unseeded and changed nothing on the day they merged.

Subdomains were held rather than shipped unenforced, the first time this repo's "wired to nothing" rule has cost a charter a phase rather than a review note.

Blockers handed back to the owner

Four, each with options and a recommendation in the charter and SESSION.md. One of them blocked work — the first, and only the seed.

  1. What are the tiers, and what does each cost? Blocking. The minimum that unblocks the seed is the names, in order; prices may stay empty (004's admin form fills them without a deploy) and per-tier axis values may stay unset.
  2. What happens to a workspace already over the new quota on a downgrade? Not blocking — the recommendation (allow it; current >= max refuses the next write and touches nothing stored) is what the mechanism already does, and both new axes behave that way today.
  3. Does a subdomain quota mean anything before subdomains exist? Built to the recommendation: held, named in the ledger as an open row with no phase, released by 009's Blocker 2.
  4. Whose plan applies in a shared workspace? Not blocking — phase 04 built the one place the answer lands without needing the answer. Today actorHoldsThePlan preserves the pre-existing behaviour exactly.

What this track deliberately does not carry forward as work

The open items in SESSION.md stay listed and stay unowned by this track:

  • CapabilityService reads the actor's plan too, and Blocker 4's question applies to a boolean exactly as it does to a number. One axis-family over from phase 04's bar; when the owner answers, capabilities adopt the same resolution.
  • Should the product mint an address when the author supplies none? Phase 03's census found it never does. Minting would make the industry's custom-slug distinction real; the axis is correct either way.
  • Rows already carrying plan_id 0 are deliberately not rewritten — a backfill would silently retarget every feature flag whose audience is 0. They resolve to the default plan at read time.
  • 004's residue — a stale capability key in users.plan_settings, and a password that cannot be cleared through the file forms — stays in ROADMAP's standing repairs, described once in 004's SESSION.
  • The live E2E suite does not run in this environment (009 and 010 recorded why). A PostgreSQL 16 cluster does run here without Docker, which is how phases 01–04 were proved.

Out of scope by charter and still so: subdomain addressing (009 phase 06); payment-gateway work beyond what a seeded price would exercise; ACME/SSL; tax and discount mechanics, which exist; and any new analytics surface.

Source: .station/jobs/011-plan-ladder/reports/CLOSE.md

Library