3.15.0
Released
Features
Creating a guild now opens it. Whether from the New guild dialog or the first-visit card on
/guilds, a new guild lands its owner on/guilds/<id>, where adding its people happens, with a one-line "Name is ready — add the people in it below." above the Add member card and focus on the page heading;createGuildAction()keeps the id the insert returns, revalidates the guild's page and redirects there, ascreateQuestAction()does for quests. Thecreatedparam it adds is dropped from the URL once the page has shown the confirmation, so a refresh or a shared link does not show it again, and a member who is not the owner never sees it./guildsloses its create-success path — no "is ready." line beside the New guild button or above the list, and no focus move to the owned group — while the accept, decline and leave notices stay. A refused name or failed insert still stays in the form, and an insert that returns no id is reported as a failure rather than a redirect to a guild that cannot be opened (#1029).A Year Theme now does something. Creating one lands on Year Themes with an offer of a starting slate: one click asks for three to six quests that would move the theme forward, each with two to four starter tasks, nothing ticked; "Create N quests" creates exactly the ones picked, as active quests tagged to the theme. The card stays on the page for later. The slate is generated in the app and charged like the AI Coach (
theme_slate; free accounts on the free model, under the daily cap), refunded if every model fails. Once a quarter the app also checks the person's active quests against the theme and says so plainly — "4 of your 7 active quests don't ladder up to Build in public" — always followed by every quest by name with a one-line reason (the card refreshes itself while a requested check is being written), judged against the theme as it read when checked (a theme reworded since is called out), and labelled as the most recently active quests when someone has more than the 30 a check looks at; a quest that does not ladder up offers Link to theme, Archive or Leave it, and an untagged one that does offers Link. The check runs early in each quarter for every account (Pro accounts on Claude Haiku by default,THEME_ALIGNMENT_MODEL_TYPE; everyone else, Pro at the budget's ceiling, and Pro on an install without the paid model's key, on the free OpenRouter router,THEME_ALIGNMENT_FREE_MODEL_TYPE), platform-funded from thetheme_alignmentsystem budget; a theme with no check yet this quarter gets a "Check alignment" button, and a bell notification links to the result. Settings > Notifications gains a "Quarterly theme check" switch, which stops the scheduled check but not the button. BehindNEXT_PUBLIC_FEATURE_YEAR_THEME_AI(.env.example,env.ts,Dockerfile,docker-compose.yml,turbo.json,playwright.config.ts, the worker's env schema andrelease.yml,docs/ops/feature-flags.md); off, no card, button or switch renders and the worker writes nothing (#550).Admins can draft a Quest Pack with AI. The New pack drawer on
/admin/quest-packsgains "Draft with AI": describe the pack in a sentence and get back a name, description, category, emoji, cadence suggestion, reflection prompt and 5-10 tasks with details, saved as an inactive pack that opens straight into the editor with an "AI draft" notice (and an "AI draft" badge in the Inactive tab). Nobody sees it until an admin switches it on, which publishes it. Generation needs the newquest_packs.generateprivilege, runs in the web app onPACK_AUTHORING_MODEL_TYPE(Claude Sonnet 5 by default) with the free OpenRouter router behind it, and is platform-funded from thepack_authoringsystem budget — refunded when only the free router answered or nothing did, and on the free router alone once the budget's ceiling is reached; every attempt is recorded in the Audit Log asquest_pack.generate, which the dashboard's Recent Activity reads as "drafted Quest Pack … with AI". Every pack, hand-written or drafted, can now carry a cadence suggestion and a reflection prompt, shown in the catalogue preview as "Suggested pace" and "Reflect on". BehindNEXT_PUBLIC_FEATURE_PACK_AUTHORING_AI(.env.example,env.ts,Dockerfile,docker-compose.yml,turbo.json,playwright.config.ts,docs/ops/feature-flags.md); off, the drawer has no AI control and the action refuses (#547).
Technical changes· 10 entries for database, tooling, CI, tests and docs
Database
20261216120000_year_theme_slate_alignment.sqladds the Year Theme slate and quarterly alignment check. Credits:theme_slateis a new user-chargeable kind (accepted bycharge_ai_credits_for()and the free-tier daily cap's kind CHECK, priced at the base weight), andtheme_alignmenta new platform-funded system feature (accepted bycharge_system_ai_credits(), with its own 500-credit monthly budget); the ledger's reason CHECK holds both.year_theme_alignment_checksis the queue and result header, at most one per theme per local calendar quarter (unique onyear_theme_id, quarter_start, whoever queues it); the new hourly pg_cron jobenqueue-theme-alignment-checks(:43) queues a check from 09:00 local on the quarter's first day through its fourteenth for a live theme of the owner's local year that is at least seven days old, whose owner is opted in and has an active quest, freezing the theme and up to 30 active owned quests (a recurring quest once) intoinput. Each check keeps the theme's wording as queued (theme_title,theme_description) and, once delivered, how many active quests the owner had (active_quest_count). The worker'sclaim_theme_alignment_check(),charge_theme_alignment_check(),reprice_theme_alignment_check(),complete_theme_alignment_check()andfail_theme_alignment_check()run under a 5-minute lease in #546's shape: the claim reports the owner's plan tier and skips an archived theme or an opted-out scheduled check, the charge refuses a priced model for a non-Pro owner with 42501, and the completion refuses a verdict set that misses, repeats or adds a quest before writingyear_theme_alignment_items(one verdict and reason per quest, owner-readable) and atheme_alignmentnotification.reap_theme_alignment_checks()returns lapsed leases and expires checks not written within 48 hours. Three owner RPCs:request_theme_alignment_check()queues this quarter's check now, on the same key, re-arming an undelivered one with a fresh 48-hour expiry;resolve_theme_alignment_item()links the caller's own quest to the theme, archives it or records leaving it (a recurring quest can only be left), with the theme-owner and archived-quest triggers still running; andcreate_theme_slate_quests(), which isSECURITY INVOKERand so writes under the caller's own RLS, creates 1–6 active quests tagged to the caller's live theme with 2–4 tasks each, all or none.notification_preferences.theme_alignment(default on) stops the scheduled check;update_my_notification_preferences()accepts it, andexport_my_data()exports it and the caller's delivered checks. The owner reads the check columns of their own rows only, never the input, lease or error text, and no client writes either table. Covered by the newsupabase/tests/year_theme_alignment.sql(89) and eightrls.sqlassertions, withfunction_execute_grants.sqlandadvisor-allowlist.txtlisting the two definer RPCs (#550).20261217120000_quest_pack_authoring.sqladds AI-drafted Quest Packs.quest_packsgainscadence_suggestion(≤ 120) andreflection_prompt(≤ 500), anddrafted_at/draft_prompt(≤ 500), which mark a pack an admin generated and has not published:quest_packs_draft_inactivekeeps a draft inactive, so the existing read policies hide it from players and visitors, and the newquest_packs_publish_drafttrigger clears both columns when the pack is switched on, so an active pack never carries the prompt.create_quest_pack_draft()isSECURITY INVOKER(the pack INSERT policy still applies), requires the newquest_packs.generateprivilege (granted in the migration to every role holdingquest_packs.write, with the same grant inseed.sqlfor fresh databases), and writes the pack and 5-10 tasks with the pack form's limits, inactive and on the next free slug from the newquest_pack_slug(), all or none.pack_authoringis a new platform-funded system feature: the ledger's reason CHECK andcharge_system_ai_credits()accept it, booked against the admin who asked, with its own 500-credit monthly budget. Covered by the newsupabase/tests/quest_pack_authoring.sql(46) and sevenrls.sqlassertions (#547).
Tooling & Configuration
The coach route's persona chain selection — entitlement, affordability, and a fallback chain that only ever gets cheaper — moved unchanged into
apps/web/src/lib/ai/candidates.tsasselectChargedCandidates(), parameterised by the chargeable action, so the Year Theme slate uses the same rules rather than a copy (#550).PACK_AUTHORING_MODEL_TYPE(web, server-only, defaultanthropic/claude-sonnet-5) names the persona an AI Quest Pack draft is written by; it is inenv.ts,turbo.jsonand.env.example(#547).
CI/CD
The worker deploy in
release.ymlcopiesNEXT_PUBLIC_FEATURE_YEAR_THEME_AIfrom Vercel's production environment to the worker with the other worker-read flags, and fails the deploy if a Fly secret of that name would shadow it;scripts/worker-deploy.test.mjspins it (#550).
Tests
Web Vitest pins
createGuildAction()'s redirect to/guilds/<id>?created=1(with both paths revalidated) and its refusal, without a redirect or revalidation, of an invalid name, a failed insert and an insert returning no id;GuildCreatedNotice(message,router.replace, heading focus, surviving the param's removal, quiet on an ordinary visit);/guilds/[id]rendering it for the owner above the Add member card and never for a member;CreateGuildForm's failure states and absent success line;NewGuildButtonwith no success line and nothing left behind when unmounted open; andGuildListneither announcing a new guild nor moving focus to it.createGuildAndOpenRoster()ine2e/helpers/guilds.tsnow waits for the guild's page straight after Create guild, checks the confirmation and that the param is dropped, rather than finding and clicking the new guild in the list (#1029).Web Vitest covers the slate route (flag off, signed out, no theme, a failed theme read, the daily cap, an unaffordable plan, a refused charge, charge-before-provider, the fallback reprice and the refund), the slate prompt, schema and parser,
selectChargedCandidates(), the slate and alignment actions (validation, the feature-off refusals, fixed copy for a refused RPC, the hand-off to/themes?slate=1on creation), the alignment read and helpers (local quarters, the headline count), the slate card, the alignment card's states and actions, the settings switch and loader, the bell'stheme_alignmentrow and/themeswith the flag on and off.e2e/year-theme-slate-alignment.spec.tscovers, against a live project, both flag states: off, a new theme offers neither; on, a new theme lands on the slate, nothing is generated before the click, and exactly the ticked quests are created as the owner with their tasks; and a requested check appears on the open page without a reload once its result is written, with Archive archiving the quest. Worker Vitest covers the alignment prompt and parser (labels, invented, missing and repeated verdicts, long reasons), the generator (Pro on the paid model, free accounts on the free one, the ceiling and left-Pro fallbacks, reprice, failed and superseded attempts) and the loop's setup and back-off (#550).Web Vitest covers the pack draft prompt, strict-mode schema and parser (task bounds, repeats, emoji, category matching), the draft action (flag off, signed out, no privilege, a bad description, charge-before-provider, the free-router fallback and refund, no model answering, the budget ceiling and an unwritable charge, a refused save kept out of the message, and the audit row for each), the drawer's generator, the draft badge and notice, the new pack fields in the form, the catalogue preview and the actions, the Recent Activity sentence, and
/admin/quest-packs— now split intoloadAdminQuestPacksPage(),AdminQuestPacksViewand a thin page (docs/testing-server-components.md), its loader tested signed out, withoutquest_packs.write, with the flag off (no privilege read), on with and withoutquest_packs.generate, and with each read failing; theapps/webcoverage floors rise to 96.4 / 92.3 / 96.2 / 96.4 (#547).
Documentation
docs/schema.mddocumentsyear_theme_alignment_checksandyear_theme_alignment_items, the slate RPC, the migration and its RLS coverage;docs/ops/scheduled-jobs.mdlistsenqueue-theme-alignment-checks;docs/ops/feature-flags.mdaddsNEXT_PUBLIC_FEATURE_YEAR_THEME_AI(#550).docs/schema.mddocuments the draft columns, the publish trigger,create_quest_pack_draft(), the migration and its RLS coverage;docs/ops/feature-flags.mdaddsNEXT_PUBLIC_FEATURE_PACK_AUTHORING_AI(#547).