feat: recognise tier_trial as a paid tier (ADR 0036) #6

Sammanfogat
supernaut sammanfogade 1 incheckning från feat/tier-trial-paid-mapping in i main 2026-07-28 13:03:01 +00:00
Ägare

What

Teach the reconciler to recognise the tier_trial Kanidm group as a paid tier (ADR 0036), so
time-boxed trial members get the same shared paid quota group as tier_basic/tier_pro.

Part of the sign-up trial epic (bitborg-docs#51); pairs with bitborg-infra#232.

Changes

  • classifyUser maps a tier_trial member to the paid quota group, and gives trial members the
    pro Renovate cap.
  • New required config KANIDM_GROUP_TIER_TRIAL (read in config.ts, resolved in the
    readMemberships parallel batch).
  • .env.example documents the new var.

Org-create and Actions need no projection change: tier_trial is nested into
ent_orgs/ent_runners_* in Kanidm (bitborg-infra), so those capabilities flow through the
existing sets.orgs/sets.runners membership. The downgrade is likewise free — once
tier_trial is emptied, members fall to the participant group on the next run.

Testing

tsc --noEmit clean; pnpm test 78 pass, including new cases: tier_trial → paid (+ full caps
when nested), pro Renovate cap, and the post-downgrade fall-through to participant. Lint + format
clean.

Deploy note

KANIDM_GROUP_TIER_TRIAL is required, so deploy this together with the bitborg-infra change that
creates the group and renders the env var. Retiring the trial = keep the group defined but empty;
the mapping is then inert.

## What Teach the reconciler to recognise the `tier_trial` Kanidm group as a paid tier (ADR 0036), so time-boxed trial members get the same shared `paid` quota group as `tier_basic`/`tier_pro`. Part of the sign-up trial epic (bitborg-docs#51); pairs with bitborg-infra#232. ## Changes - `classifyUser` maps a `tier_trial` member to the `paid` quota group, and gives trial members the pro Renovate cap. - New required config `KANIDM_GROUP_TIER_TRIAL` (read in `config.ts`, resolved in the `readMemberships` parallel batch). - `.env.example` documents the new var. Org-create and Actions need **no** projection change: `tier_trial` is nested into `ent_orgs`/`ent_runners_*` in Kanidm (bitborg-infra), so those capabilities flow through the existing `sets.orgs`/`sets.runners` membership. The downgrade is likewise free — once `tier_trial` is emptied, members fall to the participant group on the next run. ## Testing `tsc --noEmit` clean; `pnpm test` 78 pass, including new cases: `tier_trial` → `paid` (+ full caps when nested), pro Renovate cap, and the post-downgrade fall-through to participant. Lint + format clean. ## Deploy note `KANIDM_GROUP_TIER_TRIAL` is required, so deploy this together with the bitborg-infra change that creates the group and renders the env var. Retiring the trial = keep the group defined but empty; the mapping is then inert.
supernaut lade till 1 incheckning 2026-07-28 12:21:40 +00:00
feat: recognise tier_trial as a paid tier (ADR 0036)
Alla kontroller lyckades
ci / ci (pull_request) Successful in 25s
13f8910620
Map tier_trial members to the shared paid quota group and the pro Renovate
cap, mirroring tier_basic/tier_pro. Org-create and Actions come from nesting
tier_trial into ent_orgs/ent_runners_* in Kanidm, so no extra projection
branch is needed. New required env KANIDM_GROUP_TIER_TRIAL.

Refs gitborg-infra#232, gitborg-docs#51
supernaut ändrade titeln från test till feat: recognise tier_trial as a paid tier (ADR 0036) 2026-07-28 12:22:09 +00:00
supernaut sammanfogade incheckning 0ba859d95e till main 2026-07-28 13:03:01 +00:00
supernaut tog bort grenen feat/tier-trial-paid-mapping 2026-07-28 13:03:01 +00:00
supernaut refererade denna ändringsförfrågan från en incheckning 2026-07-28 13:03:03 +00:00
supernaut refererade denna ändringsförfrågan från en incheckning 2026-08-03 09:41:30 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-auth-reconciler!6
Ingen beskrivning angiven.