create-ailk 0.47.0 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/README.md +180 -43
  2. package/component-catalog.json +223 -285
  3. package/component-catalog.md +1 -1
  4. package/dist/apply-design.d.ts +26 -68
  5. package/dist/apply-design.js +150 -322
  6. package/dist/cli.js +152 -17
  7. package/dist/compare-chrome.d.ts +108 -0
  8. package/dist/compare-chrome.js +481 -0
  9. package/dist/compare-look.d.ts +94 -0
  10. package/dist/compare-look.js +378 -0
  11. package/dist/copy.js +1 -1
  12. package/dist/design-compile.d.ts +17 -21
  13. package/dist/design-compile.js +32 -56
  14. package/dist/design-files.d.ts +93 -0
  15. package/dist/design-files.js +312 -0
  16. package/dist/design-home.d.ts +4 -2
  17. package/dist/design-home.js +88 -6
  18. package/dist/design-names.d.ts +13 -0
  19. package/dist/design-names.js +76 -0
  20. package/dist/design-package.d.ts +46 -56
  21. package/dist/design-package.js +285 -288
  22. package/dist/design-presets.d.ts +41 -0
  23. package/dist/design-presets.js +83 -4
  24. package/dist/design-scaffold.d.ts +12 -2
  25. package/dist/design-scaffold.js +72 -34
  26. package/dist/generated/design-settings.d.ts +56 -0
  27. package/dist/generated/design-settings.js +237 -0
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.js +2 -2
  30. package/dist/inventory.d.ts +3 -2
  31. package/dist/inventory.js +10 -4
  32. package/dist/lib/design-checks.d.ts +46 -0
  33. package/dist/lib/design-checks.js +79 -1
  34. package/dist/lib/env-catalog.js +1 -1
  35. package/dist/lib/module-license-gate.d.ts +1 -1
  36. package/dist/lib/module-license-gate.js +1 -1
  37. package/dist/lib/render-verdict.d.ts +13 -1
  38. package/dist/lib/render-verdict.js +41 -1
  39. package/dist/look-hub.d.ts +44 -0
  40. package/dist/look-hub.js +130 -0
  41. package/dist/look-record.d.ts +35 -0
  42. package/dist/look-record.js +85 -0
  43. package/dist/look-samples.d.ts +66 -0
  44. package/dist/look-samples.js +456 -0
  45. package/dist/look-settings.d.ts +53 -0
  46. package/dist/look-settings.js +363 -0
  47. package/dist/module-architecture.js +12 -0
  48. package/dist/parse-args.d.ts +10 -6
  49. package/dist/parse-args.js +26 -13
  50. package/dist/programmatic.d.ts +1 -19
  51. package/dist/programmatic.js +65 -103
  52. package/dist/retired-design-bodies.d.ts +29 -0
  53. package/dist/retired-design-bodies.js +51 -0
  54. package/dist/seed-flows.d.ts +1 -1
  55. package/dist/seed-flows.js +12 -14
  56. package/dist/seed-workspace.d.ts +4 -1
  57. package/dist/seed-workspace.js +139 -17
  58. package/dist/site-chrome.d.ts +41 -41
  59. package/dist/site-chrome.js +50 -70
  60. package/dist/site-fonts.d.ts +10 -14
  61. package/dist/site-fonts.js +5 -1
  62. package/dist/starter-grid.d.ts +2 -2
  63. package/dist/strip-look-copies.d.ts +67 -0
  64. package/dist/strip-look-copies.js +591 -0
  65. package/dist/template-manifest.d.ts +6 -14
  66. package/dist/template-manifest.js +0 -9
  67. package/dist/template-record.d.ts +3 -1
  68. package/dist/template-record.js +3 -1
  69. package/dist/topology.d.ts +15 -0
  70. package/dist/topology.js +60 -0
  71. package/dist/update.d.ts +57 -1
  72. package/dist/update.js +742 -13
  73. package/package.json +3 -4
  74. package/site-templates/aliases/hub.TEMPLATE-MANIFEST.json +2 -31
  75. package/site-templates/designs/minimalism/DESIGN.md +163 -297
  76. package/site-templates/designs/minimalism/LOOK.md +42 -0
  77. package/site-templates/designs/minimalism/design.yaml +167 -0
  78. package/site-templates/designs/standard/DESIGN.md +145 -149
  79. package/site-templates/designs/standard/LOOK.md +42 -0
  80. package/site-templates/designs/standard/design.yaml +72 -0
  81. package/site-templates/marketing-site/TEMPLATE-MANIFEST.json +2 -31
  82. package/site-templates/marketing-site/TEMPLATE-MANIFEST.md +1 -25
  83. package/site-templates/marketing-site-free/TEMPLATE-MANIFEST.json +2 -31
  84. package/site-templates/marketing-site-free/TEMPLATE-MANIFEST.md +1 -25
  85. package/site-templates/shapes/local-business-service/TEMPLATE-MANIFEST.json +2 -31
  86. package/site-templates/shapes/local-business-service/TEMPLATE-MANIFEST.md +1 -25
  87. package/site-templates/shapes/organization-service/TEMPLATE-MANIFEST.json +2 -31
  88. package/site-templates/shapes/organization-service/TEMPLATE-MANIFEST.md +1 -25
  89. package/site-templates/shapes/person-service/TEMPLATE-MANIFEST.json +2 -31
  90. package/site-templates/shapes/person-service/TEMPLATE-MANIFEST.md +1 -25
  91. package/site-templates/shapes/person-service/content/_site.mdx +0 -26
  92. package/templates/.claude/rules/extending.md +3 -2
  93. package/templates/.env.example +11 -4
  94. package/templates/CLAUDE.md +1 -1
  95. package/templates/DESIGN.md +145 -149
  96. package/templates/README.md +15 -16
  97. package/templates/apps/api/.env.example +11 -4
  98. package/templates/apps/api/CLAUDE.md +6 -4
  99. package/templates/apps/api/src/lib/__mocks__/prisma.ts +15 -5
  100. package/templates/apps/mcp/CLAUDE.md +4 -2
  101. package/templates/apps/web/.env.example +10 -3
  102. package/templates/apps/web/CLAUDE.md +14 -3
  103. package/templates/apps/web/app/[locale]/layout.tsx +53 -50
  104. package/templates/apps/web/app/not-found.tsx +11 -11
  105. package/templates/apps/web/auth.ts +48 -35
  106. package/templates/apps/web/jest.config.cjs +5 -0
  107. package/templates/apps/web/lib/__tests__/hub-site-config.test.ts +179 -31
  108. package/templates/apps/web/lib/__tests__/library-fonts.test.ts +35 -0
  109. package/templates/apps/web/lib/__tests__/page-chrome-navigation.test.ts +71 -32
  110. package/templates/apps/web/lib/__tests__/page-chrome.test.ts +123 -26
  111. package/templates/apps/web/lib/__tests__/section-look.test.ts +150 -0
  112. package/templates/apps/web/lib/__tests__/site-theme.test.ts +81 -289
  113. package/templates/apps/web/lib/deck-page.ts +3 -10
  114. package/templates/apps/web/lib/deploy-fonts.ts +12 -0
  115. package/templates/apps/web/lib/hub-site-config.ts +97 -14
  116. package/templates/apps/web/lib/library-fonts.ts +41 -0
  117. package/templates/apps/web/lib/mcp-oauth.ts +11 -4
  118. package/templates/apps/web/lib/page-chrome.ts +52 -34
  119. package/templates/apps/web/lib/section-look.ts +28 -0
  120. package/templates/apps/web/lib/site-design.ts +205 -0
  121. package/templates/apps/web/lib/site-theme-head.ts +98 -13
  122. package/templates/apps/web/lib/site-theme.ts +40 -62
  123. package/templates/apps/web/messages/en.json +0 -6
  124. package/templates/apps/web/next.config.mjs +195 -6
  125. package/templates/apps/web/package.json +2 -0
  126. package/templates/apps/web/site-pages.config.tsx +4 -2
  127. package/templates/content/_site.mdx +0 -26
  128. package/templates/design.yaml +75 -0
  129. package/templates/project.yaml +14 -0
  130. package/versions.json +52 -51
  131. package/site-templates/marketing-site/DESIGN.md +0 -259
  132. package/site-templates/marketing-site-free/DESIGN.md +0 -259
  133. package/site-templates/saas-product/DESIGN.md +0 -259
  134. package/templates/apps/web/lib/__tests__/deck-page.test.ts +0 -288
  135. package/templates/apps/web/lib/__tests__/site-theme-head.test.ts +0 -70
  136. package/templates/apps/web/lib/site-chrome.ts +0 -46
  137. package/templates/apps/web/lib/site-fonts.ts +0 -15
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: Standard
3
- description: "The standard design — the black-on-white foundation any shape wears by default: full navigation, a multi-column footer, the document-scroll home."
3
+ description: "The standard design: the black-on-white foundation any shape wears by default, with full navigation, a multi-column footer and the document-scroll home."
4
4
  colors:
5
5
  bg: "#ffffff"
6
6
  fg: "#000000"
@@ -11,32 +11,23 @@ colors:
11
11
  brand: "#000000"
12
12
  fg-on-brand: "#ffffff"
13
13
  accent: "#000000"
14
+ placeholder: "#dbdbdb"
14
15
  bg-dark: "#000000"
15
16
  fg-dark: "#ffffff"
16
17
  border-dark: "#ffffff"
17
18
  brand-dark: "#ffffff"
19
+ fg-on-brand-dark: "#000000"
18
20
  text-muted-dark: "#cccccc"
19
- treatments:
20
- corners: square
21
- eyebrowCase: sentence
22
- placeholders: fill
23
- checkmarks: plain
24
- layout:
25
- nav: full
26
- footer: columns
27
- announcementBanner: false
28
- home: default
29
- copy:
30
- density: standard
21
+ placeholder-dark: "#2a2a2a"
31
22
  typography:
32
23
  display:
33
- fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, sans-serif"
24
+ fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif"
34
25
  fontSize: "3.5rem"
35
26
  fontWeight: 700
36
27
  lineHeight: 1.1
37
28
  letterSpacing: "normal"
38
29
  heading-section:
39
- fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, sans-serif"
30
+ fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif"
40
31
  fontSize: "3rem"
41
32
  fontWeight: 700
42
33
  lineHeight: 1.1
@@ -46,19 +37,28 @@ typography:
46
37
  fontWeight: 700
47
38
  lineHeight: 1.375
48
39
  letterSpacing: "normal"
40
+ heading-panel:
41
+ fontSize: "1.25rem"
42
+ fontWeight: 600
43
+ lineHeight: 1.375
44
+ letterSpacing: "normal"
49
45
  body:
50
- fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, sans-serif"
46
+ fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif"
51
47
  fontSize: "1.125rem"
52
48
  fontWeight: 400
53
49
  lineHeight: 1.5
54
- eyebrow:
50
+ body-sm:
51
+ fontSize: "0.875rem"
52
+ fontWeight: 400
53
+ lineHeight: 1.5
54
+ label:
55
55
  fontSize: "0.875rem"
56
56
  fontWeight: 600
57
57
  lineHeight: 1.4
58
- letterSpacing: "0.05em"
58
+ letterSpacing: "normal"
59
59
  rounded:
60
- button: "0.5rem"
61
- card: "0.75rem"
60
+ control: "0"
61
+ card: "0"
62
62
  spacing:
63
63
  section: "7rem"
64
64
  section-mobile: "4rem"
@@ -66,194 +66,190 @@ spacing:
66
66
  grid: "1.5rem"
67
67
  container: "1280px"
68
68
  measure: "36rem"
69
+ components:
70
+ button-primary:
71
+ backgroundColor: "{colors.brand}"
72
+ textColor: "{colors.fg-on-brand}"
73
+ rounded: "{rounded.control}"
74
+ padding: "0 1rem"
75
+ height: "2.75rem"
76
+ button-primary-hover:
77
+ backgroundColor: "{colors.bg}"
78
+ textColor: "{colors.fg}"
79
+ button-secondary:
80
+ backgroundColor: "transparent"
81
+ textColor: "{colors.fg}"
82
+ rounded: "{rounded.control}"
83
+ padding: "0 1rem"
84
+ height: "2.75rem"
85
+ button-compact:
86
+ backgroundColor: "transparent"
87
+ textColor: "{colors.fg}"
88
+ rounded: "{rounded.control}"
89
+ padding: "0 1rem"
90
+ height: "2.25rem"
91
+ card:
92
+ backgroundColor: "{colors.surface}"
93
+ textColor: "{colors.fg}"
94
+ rounded: "{rounded.card}"
95
+ padding: "{spacing.card}"
96
+ image-placeholder:
97
+ backgroundColor: "{colors.placeholder}"
98
+ rounded: "{rounded.card}"
99
+ nav:
100
+ backgroundColor: "{colors.bg}"
101
+ textColor: "{colors.text-muted}"
102
+ height: "4rem"
69
103
  ---
70
104
 
71
- <!--
72
- Source template: _base (the AI Launch Kit base scaffold)
73
- Design: standard
74
- Version: create-ailk {{CREATE_AILK_VERSION}}
75
-
76
- This is the `standard` design's DESIGN.md. Its one authored source is
77
- create-ailk's site-templates/designs/standard/DESIGN.md; every template on
78
- this design ships a copy of it that differs only in the "Source template"
79
- line above, and a template installed with `--template <name>` replaces the
80
- base scaffold's DESIGN.md with its own. The impeccable design skill reads
81
- it at the start of every design session, so an agent building a new page
82
- stays on-system.
83
- Edit the canonical file, never a copy — a test holds every copy to it.
84
-
85
- The tokens above describe what the site RENDERS today. The design's own
86
- colours and shape knobs live in content/_site.mdx `theme:`, which
87
- `create-ailk apply-design` replaces wholesale; the owner's brand colours and
88
- fonts live beside it in `brand.colors` and `brand.fonts`, which applying a
89
- design never rewrites. Radius and spacing are platform defaults a site
90
- cannot override yet — see "Where this is heading" below.
91
- -->
92
-
93
- # Standard
105
+ # Design System: Standard
94
106
 
95
107
  ## Overview
96
108
 
97
- The foundation reads like a well-made wireframe: nothing on the page but the words, black on white, with rules where other sites use shadows and colour. It is the look of a site whose owner has not chosen a brand yet and does not pretend otherwise — every placeholder reads as a placeholder, and the structure of the argument is what the visitor sees. A brand is applied on top of it; it is not one.
109
+ **Creative North Star: "The Well-Made Wireframe"**
110
+
111
+ The foundation reads like a well-made wireframe: nothing on the page but the words, black on white, with hairlines where other sites use shadows and colour. It is the look of a site whose owner has not chosen a brand yet and does not pretend otherwise. Every placeholder reads as a placeholder, and the structure of the argument is what the visitor sees. A brand is applied on top of it; it is not one.
98
112
 
99
- Every page is composed from the AI Launch Kit component library (`@working-theory/ui`). Nothing is hand-built: a page is a list of registered sections, each with a bounded set of variants. Each section is one full-width band with a lot of air around it.
113
+ Every page is composed from the AI Launch Kit component library (`@working-theory/ui`). Nothing is hand-built: a page is a list of registered sections, each with a bounded set of variants. Each section is one full-width band with a lot of air around it, and the air is what separates one band from the next.
114
+
115
+ The pacing is that of a classic wireframe marketing kit: bold system-sans headings at normal tracking, a generous vertical rhythm, square corners, flat grey blocks where images will go.
116
+
117
+ **Key Characteristics:**
118
+
119
+ - Black ink on a white ground; no accent colour, no tint, no gradient.
120
+ - Square corners on every control, card and image block.
121
+ - Containers drawn with a 1px black hairline, never a fill.
122
+ - One system sans, bold for headings, regular for copy.
123
+ - Whitespace, not rules, between sections (7rem a band on desktop).
124
+ - Solid grey image placeholders that plainly say "image goes here".
125
+ - Dark mode is the exact inversion: black ground, white ink, white hairlines.
100
126
 
101
127
  ## Colors
102
128
 
103
- <!-- generated:begin colors -->
104
-
105
- | Key | Value | Compiles to |
106
- | ------------------- | --------- | -------------------------------------------------------------------------------------------------------------- |
107
- | `bg` | `#ffffff` | `light.bg` |
108
- | `fg` | `#000000` | `light.text` |
109
- | `surface` | `#ffffff` | `light.surface` |
110
- | `surface-secondary` | `#ffffff` | `light.bgMuted` |
111
- | `border` | `#000000` | `light.border` |
112
- | `text-muted` | `#333333` | `light.textMuted` |
113
- | `brand` | `#000000` | `light.primary` |
114
- | `fg-on-brand` | `#ffffff` | `light.primaryFg` |
115
- | `accent` | `#000000` | `light.accent` |
116
- | `bg-dark` | `#000000` | `dark.bg`, `dark.bgMuted` (fallback of L1), `dark.surface` (fallback of L2), `dark.primaryFg` (fallback of L4) |
117
- | `fg-dark` | `#ffffff` | `dark.text` |
118
- | `border-dark` | `#ffffff` | `dark.border` |
119
- | `brand-dark` | `#ffffff` | `dark.primary`, `dark.accent` (fallback of L5) |
120
- | `text-muted-dark` | `#cccccc` | `dark.textMuted` |
121
-
122
- <!-- generated:end -->
129
+ Two inks and one grey: the palette is black, white, a near-black for running copy, and a flat grey reserved for image placeholders.
123
130
 
124
131
  ### Primary
125
132
 
126
- **Black** (`brand` `#000000`) fills the primary button; its label is white. The secondary button is white with a black hairline and black label.
133
+ - **Black** (`brand`): fills the primary button, with a white label (`fg-on-brand`). It is also the heading ink (`fg`), the hairline (`border`) and the accent (`accent`), so links, outlines and filled controls all read as the same single colour.
127
134
 
128
135
  ### Neutral
129
136
 
130
- Pure white ground (`bg` `#ffffff`), pure black ink for headings (`fg` `#000000`), and near-black `#333333` for body copy — well above AA on white. **Borders are black** (`#000000`): card outlines, the rule under the navigation, the rules between sections and the rule above the footer are all 1px black lines. Cards are white, not tinted (`surface-secondary` is white too). There is no accent colour — `accent` is black.
137
+ - **White** (`bg`, `surface`, `surface-secondary`): the page ground and every card. Cards are white, not tinted; the muted surface is white too.
138
+ - **Near-black** (`text-muted`): body copy, section sub-heads, navigation links and footer links. Well above AA on white.
139
+ - **Placeholder grey** (`placeholder`): the solid fill of an image placeholder, with a small, slightly darker image glyph centred in it. It appears nowhere else.
131
140
 
132
- Dark mode inverts: black ground, white ink, white rules, white primary button with black label.
141
+ Dark mode inverts the same roles: black ground (`bg-dark`), white ink (`fg-dark`), white hairlines (`border-dark`), a white primary button with a black label (`brand-dark`, `fg-on-brand-dark`), light-grey running copy (`text-muted-dark`) and a raised dark-grey placeholder (`placeholder-dark`).
133
142
 
134
143
  ### Named Rules
135
144
 
136
- - **Rules, not fills.** A container is drawn with a black hairline on the white ground. Grey fills are reserved for image placeholders.
145
+ **The Rules, Not Fills Rule.** Rules, not fills. A container is drawn with a black hairline on the white ground. Grey fills are reserved for image placeholders.
137
146
 
138
- ## Typography
147
+ **The One Ink Rule.** There is no accent colour. `accent` is black. Colour arrives only through a deliberate brand pass, never page by page.
139
148
 
140
- <!-- generated:begin typography -->
141
-
142
- | Role | Family | Size | Weight | Line height | Tracking |
143
- | ----------------- | ------------------------------------------------------------------------ | ---------- | ------ | ----------- | -------- |
144
- | `display` | `system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, sans-serif` | `3.5rem` | 700 | 1.1 | `normal` |
145
- | `heading-section` | `system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, sans-serif` | `3rem` | 700 | 1.1 | `normal` |
146
- | `heading-item` | — | `2rem` | 700 | 1.375 | `normal` |
147
- | `body` | `system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, sans-serif` | `1.125rem` | 400 | 1.5 | — |
148
- | `eyebrow` | — | `0.875rem` | 600 | 1.4 | `0.05em` |
149
+ ## Typography
149
150
 
150
- <!-- generated:end -->
151
+ **Display Font:** the system sans (system-ui, with -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue as fallbacks)
152
+ **Body Font:** the same system sans
151
153
 
152
- System sans throughout; no web font.
154
+ **Character:** One face throughout and no web font. Hierarchy comes from size and weight alone: bold headings at normal tracking over regular-weight copy.
153
155
 
154
156
  ### Hierarchy
155
157
 
156
- | Role | Size | Weight | Notes |
157
- | --------------- | -------- | ------ | ------------------------------------------------------------------------------------- |
158
- | Hero headline | 3.5rem | 700 | Normal tracking, line-height 1.1; 2.5rem below 1024px |
159
- | Section heading | 3rem | 700 | Normal tracking, line-height 1.1; 2.25rem below 1024px, always under the hero |
160
- | Item heading | 2rem | 700 | Card, feature and step titles; 1.5rem below 1024px |
161
- | Body | 1.125rem | 400 | `#333333`, line-height 1.5; section copy capped at 36rem (about 70 characters a line) |
162
- | Section label | 0.875rem | 600 | Uppercase, +0.05em tracking today — the small label above a section heading |
158
+ - **Display** (700, 3.5rem, line-height 1.1): the hero headline, one per page. 2.5rem below 1024px. Wraps at about half the container beside the hero image.
159
+ - **Section heading** (700, 3rem, line-height 1.1): the heading of each band, always under the hero. 2.25rem below 1024px. Capped at 48rem wide; left-aligned by default, centred in the comparison and integrations bands.
160
+ - **Item heading** (700, 2rem, line-height 1.375): feature and step titles. 1.5rem below 1024px.
161
+ - **Panel heading** (600, 1.25rem, line-height 1.375): the title inside an outlined comparison panel.
162
+ - **Body** (400, 1.125rem, line-height 1.5): hero and section copy in near-black, capped at the measure (36rem, about 70 characters a line).
163
+ - **Small body** (400, 0.875rem, line-height 1.5): the description under an item heading, footer links, and inline text links (500 weight, underlined with a hairline).
164
+ - **Label** (600, 0.875rem, line-height 1.4, sentence case, normal tracking): the small label that sits with a section heading or names a panel ("Old Way", "New Way"). Rendered as written, in black.
163
165
 
164
- Measured from the rendered scaffold (1440px and 390px wide), not transcribed from tokens. Bold headings at normal tracking follow the foundation's pinned direction (#6493).
166
+ ### Named Rules
165
167
 
166
- The small label above a section heading is **kept** as part of this foundation's voice (operator-disposed 2026-09-22) and is headed toward the treatment below.
168
+ **The Bold At Normal Tracking Rule.** Headings are weight 700 with no letter-spacing adjustment. Do not tighten or track them out.
167
169
 
168
- ## Layout
170
+ **The One Face Rule.** No second typeface. The owner's fonts arrive through the brand settings, not through a page.
169
171
 
170
- <!-- generated:begin layout -->
172
+ ## Layout
171
173
 
172
- | Knob | Value |
173
- | -------------------- | --------- |
174
- | `nav` | `full` |
175
- | `footer` | `columns` |
176
- | `announcementBanner` | `false` |
177
- | `home` | `default` |
174
+ A centred container (1280px, with 2rem side padding at desktop, 1.5rem from 768px, 1rem below) holds every band. Each section is a full-width band with 7rem of padding above and below (4rem below 1024px). No rule or background shift separates one band from the next; the whitespace does.
178
175
 
179
- | Spacing | Value |
180
- | ---------------- | -------- |
181
- | `section` | `7rem` |
182
- | `section-mobile` | `4rem` |
183
- | `card` | `1.5rem` |
184
- | `grid` | `1.5rem` |
185
- | `container` | `1280px` |
186
- | `measure` | `36rem` |
176
+ The design's layout settings: full navigation, a multi-column footer, the default document-scroll home, and the home-only announcement banner off.
187
177
 
188
- <!-- generated:end -->
178
+ The home runs: a two-column hero (copy left, image right, equal halves), a logo strip, a centred comparison of two outlined panels, a three-up feature grid, a centred integrations band, a full-container media band, a three-up steps grid, an outlined split call-to-action panel, a two-column manifesto, and a demo band.
189
179
 
190
- Full navigation; a multi-column footer; the default home. The home-only announcement banner is off by default (`layout.announcementBanner`). Every page this site carries is listed in its roster of record, `.ailk-site-manifest.json` at the site root. Shared foundation: a 1280px container, sections at 7rem (4rem below 1024px), card grids at 1.5rem, breakpoints 320 / 768 / 1024 / 1440.
180
+ Grids are three-up at desktop, two-up from 320px and one column below, with a 2rem column gap and a 3rem row gap between uncarded items; outlined panels sit 3rem apart. Card grids use the 1.5rem grid gap. Two-column bands collapse to a single column below 1024px. Breakpoints: 320 / 768 / 1024 / 1440. Nothing scrolls sideways at 390px.
191
181
 
192
- ## Copy
182
+ ## Elevation & Depth
193
183
 
194
- <!-- generated:begin copy -->
184
+ Flat. Surfaces carry no shadow at rest or on hover; depth is conveyed by the black hairline alone. The one shadow in the system belongs to a floating overlay: the cookie-consent panel that sits above the page carries a soft drop shadow together with its hairline, because it is the only thing not in the document flow.
195
185
 
196
- Copy density: standard — pages carry the ordinary amount of body copy for their section.
197
- <!-- generated:end -->
186
+ ### Shadow Vocabulary
198
187
 
199
- ## Shapes
188
+ - **Floating overlay** (`box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)`): the cookie-consent panel only.
200
189
 
201
- <!-- generated:begin shapes -->
190
+ ### Named Rules
202
191
 
203
- | Rounded | Value |
204
- | -------- | --------- |
205
- | `button` | `0.5rem` |
206
- | `card` | `0.75rem` |
192
+ **The Flat In Flow Rule.** Anything in the document flow is flat. A shadow is permitted only on a surface that floats above the page.
207
193
 
208
- | Treatment | Value |
209
- | ------------------------- | ---------- |
210
- | `treatments.corners` | `square` |
211
- | `treatments.eyebrowCase` | `sentence` |
212
- | `treatments.placeholders` | `fill` |
213
- | `treatments.checkmarks` | `plain` |
194
+ ## Shapes
214
195
 
215
- <!-- generated:end -->
196
+ Square corners everywhere (the design sets `corners: square`, which zeroes every radius): buttons, cards, panels, image placeholders, the consent panel. Borders are 1px black hairlines. Image placeholders are solid grey blocks with no outline (`placeholders: fill`). Check and cross marks in lists are bare glyphs in the text ink, with no circle badge (`checkmarks: plain`). Section labels render in sentence case (`eyebrowCase: sentence`).
216
197
 
217
- Square corners everywhere (`theme.corners: square`) — buttons, cards, the auth card, image placeholders; the tokens above are the base foundation's defaults a site overrides.
198
+ Without the square-corners setting the platform's base radii apply (0.5rem on controls, 0.75rem on cards); this design never shows them.
218
199
 
219
200
  ## Components
220
201
 
202
+ All components are the library's own; a page never restyles them.
203
+
221
204
  ### Buttons
222
205
 
223
- Primary: black fill, white label, 0.5rem corners. Secondary: transparent with a black 1px outline and black label. Both are the library `Button`.
206
+ Blunt and literal: a black rectangle or an outlined one.
207
+
208
+ - **Shape:** square corners (0), 1rem horizontal padding, label at 1rem and weight 500.
209
+ - **Primary:** black fill, white label, 2.75rem tall in a hero or call-to-action panel.
210
+ - **Secondary:** transparent with a 1px black outline and black label, the same height, sitting beside the primary.
211
+ - **Compact:** the outlined button at 2.25rem tall, used for the action that closes a section, paired with an underlined text link.
212
+ - **Hover / Focus:** hover inverts the primary (white fill, black label) over 150ms; transitions are colour-only and respect reduced motion. Focus shows a 2px ring in the brand ink.
224
213
 
225
214
  ### Cards / Containers
226
215
 
227
- White panels with a black 1px outline, 0.75rem corners, `card` (1.5rem) padding. The one exception today: the "how it works" steps render as dark filled cards (see below).
216
+ - **Corner Style:** square (0).
217
+ - **Background:** white.
218
+ - **Shadow Strategy:** none (see Elevation & Depth).
219
+ - **Border:** 1px black hairline.
220
+ - **Internal Padding:** 1.5rem (`card`). An image placeholder inside a panel runs edge to edge above the padded copy.
228
221
 
229
- ### Navigation
222
+ Outlined panels are used where two things are set against each other or one offer is framed: the comparison pair and the split call-to-action. Feature and step items are plain and uncarded: an icon or a grey image block, an item heading, a line of small body copy, and a text link.
223
+
224
+ ### Image placeholders
230
225
 
231
- Full navigation: wordmark left, page links, an outlined and a filled button at the far right. A black hairline separates it from the page. Page links are 16px at weight 400. The two buttons are 42px tall on a 44px touch target and keep the 0.5rem button radius; square corners arrive with the platform radius change below, not in the nav alone (#6508). The Product link opens, on hover or keyboard, a 640px two-column panel whose items each show an icon, a title and a one-line description.
226
+ Solid grey block, square, no outline, a small image glyph centred. Used at every image slot until the owner supplies an image: the hero, panel media, the media band, step images.
227
+
228
+ ### Navigation
232
229
 
233
- ## Where this is heading
230
+ - **Style:** wordmark left; page links right of centre; an outlined and a filled button at the far right. A 1px black hairline separates the bar (about 4rem tall) from the page. The bar scrolls with the document.
231
+ - **Typography:** links at 1rem, weight 400, in near-black.
232
+ - **Buttons:** 2.625rem tall with a 0.875rem label at weight 500, square. The outlined one carries a 2px outline.
233
+ - **Product menu:** the Product link opens, on hover or keyboard, a two-column panel whose items each show an icon, a title and a one-line description.
234
+ - **Mobile:** below 1024px the links collapse behind a single menu button.
234
235
 
235
- The foundation's pinned direction is the pacing of a classic wireframe marketing kit — `standardissue.webflow.io` is the reference for rhythm, type scale, spacing density and section pacing only; no image, copy or code is taken from it. The four traits this section used to list as blocked now ship as settings, so the rendered site matches the reference:
236
+ ### Footer
236
237
 
237
- | Trait | How it is set |
238
- | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------- |
239
- | Square corners on buttons, cards and inputs | `theme.corners: square` in `_site.mdx` |
240
- | Section label in sentence case, bold, no tracking | `theme.eyebrowCase: sentence` |
241
- | Solid grey image placeholders, no outline | `theme.placeholders: fill` |
242
- | Bare check and cross marks, no circle badge | `theme.checkmarks: plain` |
243
- | Plain, uncarded feature and step items | per section: `itemStyle: plain`, and `variant: steps` for an image beside a numbered list |
244
- | A left hero whose headline wraps at half the container | `measure: narrow` on the hero (pricing); `gapBelow: tight` where a list follows the hero directly |
245
- | A three-up post grid on the blog index | `blog-list` `variant: grid` (cover · date · read time · title · excerpt · Read more) |
246
- | A plans section that leads its page | drop the hero; the pricing section owns the `<h1>` (`ownsPageTitle`) |
238
+ A multi-column footer: the wordmark, then four link columns (five grid columns in all at desktop, two from 768px, one below). Column links are small body copy in near-black. A bottom bar carries the theme switch, the copyright line at 0.75rem, legal links, social icons and the language picker. No rule separates the footer from the page.
247
239
 
248
240
  ## Do's and Don'ts
249
241
 
242
+ ### Do:
243
+
250
244
  - **Do** keep every page built from registered sections. If a section you need does not exist, request it rather than writing one-off markup.
251
- - **Do** set your brand colours (`primary`, `primaryFg`, `accent`, per mode) in `content/_site.mdx` `brand.colors` and your fonts (`display`, `body`) in `brand.fonts`; they reach every section and survive applying another design, which replaces `theme:`.
252
- - **Don't** add a colour accent. The foundation's one idea is black on white; a brand pass adds colour deliberately, through `brand.colors`.
253
- - **Don't** replace a black rule with a shadow or a grey fill.
254
- - **Don't** hard-code the "heading toward" values above into a page. They arrive through the platform, or not at all.
245
+ - **Do** set your brand colours (`primary`, `primaryFg`, `accent`, per mode) in the site file's `brand.colors` and your fonts (`display`, `body`) in `brand.fonts`; they reach every section and survive applying another design, which replaces the `theme:` block.
246
+ - **Do** draw a container with a 1px black hairline on white, with square corners.
247
+ - **Do** let whitespace separate sections: 7rem a band on desktop, 4rem below 1024px.
248
+ - **Do** change the look through the design's settings (corners, label case, placeholders, check marks) and per-section options (plain or carded items, hero measure), not through page-level styling.
255
249
 
256
- ## Revisions
250
+ ### Don't:
257
251
 
258
- - **2026-09-24 — tile hover is outline-only (operator ruling, /build-starter live pass, #6687).** A comparison tile (`items` in `variant: tile`) hovers by shifting its border to the accent only — no lift, no glow — matching the Positionary `/alternatives` ruling of 2026-08-29. Expressed as the bounded `tileHover: "outline"` option (Card `wash-outline`); the library default `lift` is unchanged for every other site.
259
- - **2026-09-25 — the before-after section's rulings (operator, /build-starter live pass, #6687).** One layout, not two variants: a panel body is an image or rows of content under the same label bar. The label bar is the tone's fill (brand → black bar, white text) at the heading-4 role; a `neutral` panel keeps a white bar. The view selector is underline tabs with the underline under the current tab only (no full-width baseline), active black, inactive muted, black on hover. The pager is a ghost "‹ Previous" at the left edge and "Next ›" at the right edge. The catalyst column carries no icon tile — it starts at the arrow, or at an image when one is set. No back-to-all link and no tag chips on the seed pages.
252
+ - **Don't** add a colour accent. The foundation's one idea is black on white; a brand pass adds colour deliberately, through `brand.colors`.
253
+ - **Don't** replace a black hairline with a shadow or a grey fill. Shadows belong only to a surface floating above the page; grey belongs only to image placeholders.
254
+ - **Don't** hard-code a radius, a tracking value or a colour into a page. Shape and colour arrive through the design's settings, or not at all.
255
+ - **Don't** round a corner on one component. Corners are square everywhere or the setting changes for the whole site.
@@ -85,21 +85,20 @@ To add a new page, ask Claude Code to run `/ailk:growth-ops page add` — it wri
85
85
 
86
86
  Everything that makes this site yours lives in three places. Nothing in `apps/*` or `packages/*` needs to change to rebrand, re-theme or rewrite the site.
87
87
 
88
- | To change… | Edit |
89
- | ------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------- |
90
- | Site name, canonical URL, default locale | `content/_site.mdx` — `siteName`, `baseUrl`, `defaultLocale` |
91
- | Who the site is (the entity answer engines read) | `content/_site.mdx` — `siteIdentity` (`kind`, `name`, `url`, `logo`, `description`, `sameAs`) |
92
- | Your brand colours, light and dark | `content/_site.mdx` — `brand.colors.light` / `brand.colors.dark` (`primary`, `primaryFg`, `accent`) |
93
- | Your fonts | `content/_site.mdx` — `brand.fonts` (`display`, `body`) |
94
- | The design's own colours | `content/_site.mdx` — `theme.colors.light` / `theme.colors.dark` (`bg`, `text`, `primary`, `accent`, …) |
95
- | Corners, section-label case, image placeholders, check marks | `content/_site.mdx` — `theme.corners`, `theme.eyebrowCase`, `theme.placeholders`, `theme.checkmarks` |
96
- | Every page's copy and section order | `content/en/<Type>/<slug>.mdx` — the frontmatter `sections[]`; each section's `data` is its copy and its layout options |
97
- | Header links, footer columns, social links | `apps/web/lib/nav-config.ts` — generated at scaffold, yours to edit; labels come from `apps/web/messages/<locale>.json` |
98
- | Logo and brand assets | `apps/web/public/` and the `logo` field in `siteIdentity` |
99
-
100
- Two blocks carry the look. `theme:` is the design's — its colours and shape knobs; `brand:` is yours — the logomark, `brand.colors` and `brand.fonts`, set on top of whatever design the site wears. Declare only what you change — an absent colour role or shape knob keeps the default — and the build turns both into the CSS custom properties every component reads. There is no token file to fork and no provider to wrap.
101
-
102
- To change the whole look, apply another design: `pnpm create ailk@latest apply-design <name|path>` in the site root, with a shipped design name (`standard`, `minimalism`) or a folder holding a `DESIGN.md`. It rewrites `theme:`, the generated `apps/web/lib/site-chrome.ts` and the look fields of your sections; it never touches your routes, your copy or the `brand:` block. That is why your own colours belong in `brand.colors`, not `theme.colors`: applying a design replaces `theme:` wholesale. A design other than `standard` needs a Pro or Pro Plus key. The [theme and brand guide](https://ailaunchkit.ai/docs/guides/customize-theme-and-brand) is where the full walkthrough will live.
88
+ | To change… | Edit |
89
+ | -------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
90
+ | Site name, canonical URL, default locale | `content/_site.mdx` — `siteName`, `baseUrl`, `defaultLocale` |
91
+ | Who the site is (the entity answer engines read) | `content/_site.mdx` — `siteIdentity` (`kind`, `name`, `url`, `logo`, `description`, `sameAs`) |
92
+ | Your brand colours, light and dark | `content/_site.mdx` — `brand.colors.light` / `brand.colors.dark` (`primary`, `primaryFg`, `accent`) |
93
+ | Your fonts | `content/_site.mdx` — `brand.fonts` (`display`, `body`) |
94
+ | The design's own colours, corners, type and layout | The site's hub design record — the Admin's Look page, or `create-ailk apply-design` |
95
+ | Every page's copy and section order | `content/en/<Type>/<slug>.mdx` — the frontmatter `sections[]`; each section's `data` is its copy and its layout options |
96
+ | Header links, footer columns, social links | `apps/web/lib/nav-config.ts` — generated at scaffold, yours to edit; labels come from `apps/web/messages/<locale>.json` |
97
+ | Logo and brand assets | `apps/web/public/` and the `logo` field in `siteIdentity` |
98
+
99
+ Two things carry the look. The design is your site's hub design record — its colours, shape knobs, type and layout — which the seed writes when the site is scaffolded and the site reads on every request; with no record the site renders the base look. `brand:` in `content/_site.mdx` is yours — the logomark, `brand.colors` and `brand.fonts`, set on top of whatever design the site wears. There is no token file to fork and no provider to wrap.
100
+
101
+ To change the whole look, choose another on the Admin's Look page, or apply another design: `pnpm create ailk@latest apply-design <name|path>` in the site root, with an agent key in your shell, with a shipped design name (`standard`, `minimalism`) or a folder holding a `design.yaml`. It writes your site's hub design record with an agent key holding the `site-design` grant and changes no file — not your routes, your copy or the `brand:` block — and the site shows it on its next request. A design other than `standard` needs a Pro or Pro Plus key. The [theme and brand guide](https://ailaunchkit.ai/docs/guides/customize-theme-and-brand) is where the full walkthrough will live.
103
102
 
104
103
  A rebrand touches only the files in this table. If you find yourself editing a component, stop: the trait you want is either a section option (check the section's `data` fields), a theme knob, or a feature request for the [upstream library](https://github.com/working-theory-labs/ai-launch-kit).
105
104
 
@@ -182,7 +181,7 @@ pnpm create ailk@latest <dir> --shape <shape>
182
181
  AILK_LICENSE_KEY=<your key> pnpm create ailk@latest <dir> --shape <shape>
183
182
  ```
184
183
 
185
- `<shape>` is one of `organization-product`, `organization-service`, `local-business-service`, `person-service`. `--modules` trims the level's modules, or adds the commerce add-on or the workspace module. `--design minimalism` picks the other look, and `--design <folder>` renders the starter in a design of your own (a folder holding a `DESIGN.md`); either needs a paid key.
184
+ `<shape>` is one of `organization-product`, `organization-service`, `local-business-service`, `person-service`. `--modules` trims the level's modules, or adds the commerce add-on or the workspace module. `--design minimalism` picks the other look, and `--design <folder>` renders the starter in a design of your own (a folder holding a `design.yaml`); either needs a paid key. `DESIGN.md` at the site root is the design's guide: read it, do not edit it.
186
185
 
187
186
  To add a paid module to this site in place, set the key and run `add-module` in the site root:
188
187
 
@@ -45,10 +45,17 @@ FRONTEND_URL=http://localhost:3000
45
45
  # =============================================================================
46
46
  # Admin URL (admin-team-invitation-accept)
47
47
  # =============================================================================
48
- # Optional. The hub Admin's absolute https URL (http only on a loopback host).
49
- # A team invitation's email and copied link open its sign-in, which leads to
50
- # /invitations/<id>. Unset — or not a valid https URL, which is logged once —
51
- # the link uses admin.<FRONTEND_URL host>, with a leading www. dropped.
48
+ # Required when the Admin is not at admin.<FRONTEND_URL host> — a hub at
49
+ # account.example.com derives admin.account.example.com, so an Admin at
50
+ # admin.example.com needs it set. The hub Admin's absolute https URL (http only
51
+ # on a loopback host). A team invitation's email and copied link open its
52
+ # sign-in, which leads to /invitations/<id>. Unset — or not a valid https URL,
53
+ # which is logged once — the link uses admin.<FRONTEND_URL host>, with a
54
+ # leading www. dropped. The Admin's Workforce and Invite people pages refuse to
55
+ # send until the link's address is the Admin's own. Use the production Admin's
56
+ # address, never a preview deployment's. For local development only: a stack
57
+ # on localhost derives no address, so set it to the local Admin's
58
+ # http://localhost:<port>.
52
59
  # AILK_ADMIN_URL=https://admin.example.com
53
60
 
54
61
  # =============================================================================
@@ -98,7 +98,7 @@ Routes are versioned under `/v1/*`:
98
98
  - `GET /v1/workspaces/:workspaceId/knowledge` — the workspace knowledge read (#9683, spec `docs/specs/9683-agent-session-audit-knowledge-spec.md`; `packages-paid/api-workspace/src/routes/workspaces/knowledge.ts`, `// oss: false`): what the business offers, runs and serves, as `workspaceKnowledgeSchema` — `offerings` (the shown offering set, only while the commerce claim is held), `magnets` (the newest flows page's `live` rows), `meetingTypes` (the enabled slugs minus `privateSlugs`, titled by slug), `sitesServed` (the installed hub's live spokes for this workspace, read only when the hub's own gate answers `claimed`, through the optional `HubRegistry.listLiveSpokesForWorkspace`) and `strategyDocs` (`lib/strategy-docs.ts`, `[]` until a store exists) — every key always present, each entry an id, a title and a summary (`null` when it fails its check; an entry whose id or title fails is skipped and counted). Takes no query. Gate: `allows(people-read) || allows(people-memory-propose)` — a person member holds both; an agent only by grant. Every authenticated call writes one `workspace.knowledge.read` audit row (counts only; an agent's carries its session, thread `workspace:<workspaceId>`); `Cache-Control: private, no-store`. Same registration scope as the routes above (`workspace || multi-tenant`, `tenant:settings`). MCP twin: `get_workspace_knowledge` on `/mcp/workspace`.
99
99
  - `GET /v1/workspaces/:workspaceId/craft/:command` — one command's craft (#12015, spec `docs/specs/12015-the-admin-serves-a-plugin-spec.md`; `packages-paid/api-content-write/src/routes/workspaces/craft.ts`, `// oss: false`, in the content-write tenant scope after the overview): any tenant of the workspace (an agent or a cookie session; a personal API token is refused by both guards). `readCommandCraft` (`services/entitlements.ts`) reads the packs the tenant's own workspace has with one resolve call and asks the delivery service once, for this one command, with the site's licence key (`licenseToken()`). It answers 200 `{ command, pack, minShellVersion, craft }` (the craft byte for byte), 403 `pack_required` with `details: { pack, name, where }`, 404 `unknown_command`, or 503 `craft_unavailable` with `details.service` (`entitlements` or `delivery`) — an outage is never a `pack_required`. A command that is not `^[a-z][a-z0-9-]{0,39}$`, or any query key, is 400 `validation_failed`. Nothing is cached, stored or written; `Cache-Control: private, no-store`; one log line per call, `{ event: "craft", outcome, command, workspaceId, pack?, service? }`, never the craft or the key. MCP twin: `get_command_craft` on `/mcp/workspace`.
100
100
  - `/v1/workspaces/:workspaceId/agents` (GET `?userId=`, POST), `/v1/workspaces/:workspaceId/agents/:agentId/key` (POST), `/v1/workspaces/:workspaceId/agents/:agentId` (PATCH `{ enabled }`), `PUT /v1/workspaces/:workspaceId/agents/:agentId/grants` (`{ grants }`, #7864), and `/v1/agent/context` (GET) — the agent seat (#3591, `src/routes/workspaces/agents.ts` over `src/lib/agent-store.ts`, `// oss: false`). An agent is a stored delegate of one person, bound to one workspace. The five management routes refuse an agent caller outright (403), check `agents-manage` (owner, admin) before any read, and scope every read and write to `tenant.organizationId`, never a body or query value; an agent of another organization is the same 404 as a missing one. Create returns 201 with the key shown once; re-key returns the new key once. Each successful create, re-key, switch and grant change writes an `agents.*` audit record. **Grants (#7864, `docs/specs/7864-agent-key-grants-spec.md`).** An agent acts at `member`, plus any of nine permissions an owner or admin granted it one by one — `content-edit`, `content-publish`, `assets-write`, `magnets-manage`, `meeting-types-manage`, `people-read` since #852, `member-pieces-manage` since #7878, and `people-memory-propose` and `inbox-act` since #9679 (`@working-theory/validation`'s `AGENT_GRANTABLE_PERMISSIONS`, held to that set by the `agents_grants_allowed` CHECK). The grant PUT replaces the whole set (an empty list removes every grant) and refuses a grant the agent's person's own role does not hold, `409 grant_exceeds_person`. The clamp is one function both tenant guards call (`services/default-tenant.ts`'s `agentTenant`): an agent holds a stored grant only while its person's role holds it, so a demoted person's agent keeps the row but not the permission. The routes for the nine check `allows(tenant, "<permission>")`, which reads the grants — except that the six existing inbox `inbox-act` checks still read `can(tenant.role, …)` until #9686 moves them, and `people-memory-propose` is read today only by the workspace knowledge read (#9683, beside `people-read`); every other check keeps `can(tenant.role, …)`, so no other owner or admin permission is reachable. Every agent write on content, assets and meeting types writes one `recordAgentWrite` row naming the agent and its person (magnets already did); a person's writes there stay unaudited. The member-area writes audit every caller through `recordAuditAction`, whose actor names an agent as the agent. No grant raises the ceiling. `/v1/agent/context` is the agent's own read, unchanged by grants, and needs no permission beyond the workspace guard. Its `packs` field (#12062, `docs/specs/12062-a-connected-claude-can-read-spec.md`) lists each pack of the tenant's workspace — id, name (`PACK_NAMES`) and `has`, in `PLUGIN_IDS` order, every pack even when the workspace has none — from one `readWorkspacePacks` call, or `{ status: "unavailable" }` when the entitlements service cannot be read, never a "no"; it reads no other workspace, and an all-workspaces call naming no workspace is refused `workspace_required` before any read. Same registration scope as the routes above (`workspace || multi-tenant`).
101
- - `GET /v1/workspaces/:workspaceId/clients`, `DELETE /v1/workspaces/:workspaceId/clients/:clientId[?userId=]` and `PUT /v1/workspaces/:workspaceId/clients/:clientId/outside-send[?userId=]` — the workspace's Connected clients (#10393, `src/routes/workspaces/clients.ts` over `src/lib/connected-clients-store.ts`, `// oss: false`). The GET lists, as one table, the workspace's live OAuth authorizations (one row per client and person, from the token rows bound to this workspace; `lastUsedAt` is the newest sign-in or refresh) and its enabled agent keys, each row `kind`, `id`, `client.name`, `person`, `scopes`, `lastUsedAt`, `outsideSend` and never a token or key. A person holding `agents-manage` (owner, admin) sees every row; anyone else, an agent principal included, sees only their own person's. The DELETE refuses every agent caller (403), ends an OAuth authorization by deleting its token rows for this workspace only (a caller without `agents-manage` may name only themselves — another person's row is the same 404 as a missing one) and an agent key by switching it off (`agents-manage`), touches no session, and writes one audit row and one `connected-client-revoked` log line. A revoke of either kind also clears the connection's outside-send switch. The PUT (#12063, body `{ allowed }`, over `packages/api/src/lib/outside-send-store.ts`) is an owner's switch for one row: it refuses every agent caller and anyone not holding `outside-send` (403), answers 404 for a connection not listed in this workspace now, and refuses to turn on a connection whose person is not an owner now (409 `owner_only`), while turning one off is never refused there; each accepted PUT writes one audit row and one `connected-client-outside-send` log line. Each row's `outsideSend` is `allowed`, `not-allowed` or `unavailable` (its person is not an owner), and a connected Claude reads its own as `outsideSend` in `GET /v1/agent/context`; the Admin cannot stop an outside send, which never passes through it. The GET's MCP twin is `list_connected_clients`; the DELETE and the PUT have no tool, by decision. Same registration scope as the routes above (`workspace || multi-tenant`).
101
+ - `GET /v1/workspaces/:workspaceId/clients`, `DELETE /v1/workspaces/:workspaceId/clients/:clientId[?userId=]`, `PUT /v1/workspaces/:workspaceId/clients/:clientId/outside-send[?userId=]` and `PUT /v1/workspaces/:workspaceId/clients/:clientId/abilities?userId=` — the workspace's Connected clients (#10393, `src/routes/workspaces/clients.ts` over `src/lib/connected-clients-store.ts`, `// oss: false`). The GET lists, as one table, the workspace's live OAuth authorizations (one row per client and person, from the token rows bound to this workspace; `lastUsedAt` is the newest sign-in or refresh) and its enabled agent keys, each row `kind`, `id`, `client.name`, `person`, `scopes`, `switchedOff`, `lockedOff`, `lastUsedAt`, `outsideSend` and never a token or key. `scopes` are the abilities the connection holds now (#12465): an OAuth row's consent narrowed to its person's live role here, less what an owner or admin switched off for it here (`switchedOff`; `lockedOff` the ones an owner switched off); an agent key's stored grants its acting role holds. A person holding `agents-manage` (owner, admin) sees every row; anyone else, an agent principal included, sees only their own person's. The DELETE refuses every agent caller (403), ends an OAuth authorization by deleting its token rows for this workspace only (a caller without `agents-manage` may name only themselves — another person's row is the same 404 as a missing one) and an agent key by switching it off (`agents-manage`), touches no session, and writes one audit row and one `connected-client-revoked` log line. A revoke of either kind also clears the connection's outside-send switch. The PUT (#12063, body `{ allowed }`, over `packages/api/src/lib/outside-send-store.ts`) is an owner's switch for one row: it refuses every agent caller and anyone not holding `outside-send` (403), answers 404 for a connection not listed in this workspace now, and refuses to turn on a connection whose person is not an owner now (409 `owner_only`), while turning one off is never refused there; each accepted PUT writes one audit row and one `connected-client-outside-send` log line. Each row's `outsideSend` is `allowed`, `not-allowed` or `unavailable` (its person is not an owner), and a connected Claude reads its own as `outsideSend` in `GET /v1/agent/context`; the Admin cannot stop an outside send, which never passes through it. The abilities PUT (#12465, body `{ permission, on }`, over `packages/api/src/lib/agent-store.ts`'s `connection_ability_offs` reads and writes) switches one ability of one OAuth row: it refuses every agent caller and anyone not holding `members-manage` (403), answers 400 for an agent key (switched in Workforce), 404 for a connection not listed in this workspace now, 409 `ability_not_held` for an ability its consent never named (and, switching on, one its person's role does not hold), and 403 `owner_switched_off` when a non-owner switches on an ability on their own connection or one an owner switched off; each accepted PUT writes one `agents.set_connection_ability` audit row and one `connected-client-ability` log line. A switched-off ability is gone from the connection's next call (`findOauthPrincipal`) and from `GET /v1/agent/workspaces`. The GET's MCP twin is `list_connected_clients`; the DELETE and both PUTs have no tool, by decision. Same registration scope as the routes above (`workspace || multi-tenant`).
102
102
  - `GET /v1/workspaces/:workspaceId/discovery` and `PUT /v1/workspaces/:workspaceId/discovery` — the owner's discovery switch, whether AI and search tools can find the workspace's site (#10510, `src/routes/workspaces/discovery.ts`, `// oss: false`, over `packages/api/src/services/site-discovery.ts`). Both parse `:workspaceId` with `inboxWorkspaceParamsSchema` (`400 validation_failed`) and act on `request.tenant.workspaceId` only. The GET needs any tenant, an agent included, and answers `{ ok: true, data: { discoverable } }`; the PUT needs `workspace-settings` (owner, admin — an agent is refused, `403`), checked before the strict `{ discoverable: boolean }` body (`400 validation_failed` on anything else), and answers the stored value. The GET's MCP twin is `get_site_discovery`; the PUT has no tool, by decision. Same registration scope as the routes above (`workspace || multi-tenant`, one `tenant:settings` row).
103
103
  - `GET /v1/workspaces/:workspaceId/agent-tools` and `PUT /v1/workspaces/:workspaceId/agent-tools` — what agents can do on the workspace's site, and the owner's per-capability switch for it (#11953, `src/routes/workspaces/agent-tools.ts`, `// oss: false`). Both parse `:workspaceId` with `inboxWorkspaceParamsSchema` (`400 validation_failed`) and act on `request.tenant.workspaceId` only. The GET needs any tenant, an agent included, and answers `{ ok: true, data: { capabilities, deploymentMcp } }` — the three flags `GET /v1/content/agent-tools` answers, from the same `readAgentToolState` (`packages/api/src/services/agent-tool-state.ts`, reached through `buildServer()`'s root decoration), plus whether a keyless MCP server at this deployment is served this workspace. The PUT needs `workspace-settings` (owner, admin — an agent is refused, `403`), checked before the strict `{ off: AgentToolCapability[] }` body (`400 validation_failed` on anything else), writes the `site.agent-tools` row through `writeAgentToolSwitches`, and answers the GET's `data`, recomputed. Neither has a tool, by decision. Same registration scope as the routes above (`workspace || multi-tenant`, one `tenant:settings` row).
104
104
  - `/v1/workspaces/:workspaceId/content` (GET, POST), `/v1/workspaces/:workspaceId/content/:type/:slug` (GET, PATCH), `/v1/workspaces/:workspaceId/content/:type/:slug/{publish,unpublish}` (POST) — the tenant-guarded content editor's write surface (#5853, `src/routes/workspaces/content.ts`): list, create, read/save the draft tip (under `X-Draft-Version`; `If-Match` still accepted for one release, #10264), and publish/unpublish, all over `Artifact`/`ArtifactVersion`. `:type` is validated against the page-type registry (`z.enum(SCHEMA_ORG_TYPES)`) rather than accepted as a free string on every addressed operation — an unregistered type is a 400 before any lookup, since it is echoed back and passed to `notifyRevalidate` as the site's cache tag. Role floors from `@working-theory/validation`'s permission table (#7636 D2): publish and unpublish need `content-publish`, and create, read and save need `content-edit` (both owner, admin — an admin builds, a member operates). The list serves `content-edit` the editor's full view and a caller holding only `docs-read` (a member) a published-only projection (D4): draft rows dropped, every row `status: "published"`, `version: null`, `valid: true`, and a `published_with_draft` page's `type`/`tags` read from its PUBLISHED version — applied before every filter, so a member's `?status=draft` or a draft tip's `?tag=` matches nothing. **The GET list is a UNION of page artifacts and DOCUMENT assets** (#6093, D1/D9 — "one store, two views"): every row carries `tags: string[]` (never null, read from the draft tip's stored content for a page, from `Asset.tags` for a file) and a DERIVED `kind: "page" | "post" | "file"` (`BlogPosting` alone maps to `"post"`; an asset row is always `"file"`) — an optional `?tag=<slug>` filters the union AFTER it is built, so a file is returned under either its own tag or a shared one. The asset half of the union (`DOCUMENT_CONTENT_TYPES`, i.e. `application/pdf`) is skipped entirely when `locale`/`type` is supplied or `status` names anything but `"published"`, since a file row can never satisfy those. A foreign `:workspaceId` costs zero artifact **and** zero asset queries. MCP parity: on `/mcp/workspace`, the create's twin is `create_page` (#10956), the draft read and save are `read_report` and `save_draft` (#10336), and the publish is `publish_draft` (#10661); the list and unpublish have none, as `tests/parity/README.md` and the registry record. `POST /v1/workspaces/:workspaceId/documents/save` (#11811) saves a `Document` — agent context or a plugin-owned document — in the common shape, its address in the body as `POST …/assets/save`'s is: `content-edit` is checked before the body (an agent without it `403 agent_refused`, audited), `version: null` creates and a version edits under a compare-and-swap on the tip, a moved tip or a `null` on an existing document is `409 stale` with `currentVersion`, and a wrong field or word — a plugin contract's misfit included — is `422 invalid` with each issue's path; it never publishes. Its twin is `save_document`; the page save (`PUT …/content/:type/:slug`, `save_page`) also takes an editorial page, whose words are `{ body }`, carrying its stored layout forward. While both ways live, `create_page`, `save_draft` and `save_structure` say they are deprecated. `GET /v1/workspaces/:workspaceId/content/:type/:slug/open?locale=&as=` (#11808, #11882) opens a page laid out in sections as the page envelope: `content-edit` is checked before the query or any read, `as` is `record` (the default: its `fields` and its `words`, the stored layout with the body's words applied) or `working-copy` (a `workingCopy`, `{ document, settings }`, in their place) — `form` is its old name, answered until the release after #11882, and the two sent with different values are `422 invalid` at `as` — a type not laid out in sections is `422 invalid` at `address.type` (a `Document` naming `open_document`), a missing page — or one the caller may not read — a blank built in memory and never stored (#11809): `version` and `structureToken` `null`, `state: "draft"`, `report: null`, `fields: {}` and its template's starting sections headed by the slug, in the shape asked for, a page not in the section form, or whose body's words do not apply cleanly to its layout, `409 not_outlined`, and a page whose working copy would lose a value or exceed the working copy's bounds `409 not_representable` with each issue's path; it never writes or audits, and is limited to 60 calls a minute per workspace. Its twin is `open_page`.
@@ -107,8 +107,8 @@ Routes are versioned under `/v1/*`:
107
107
  - `/v1/workspaces/:workspaceId/assets/from-url` (POST, #12418; `packages-paid/api-workspace/src/routes/assets/from-url.ts`, registered by `workspaceAssetManageRoutes`, so it shares that plugin's tenant scope and JSON body) — the fetch door: the hub fetches an image from a public `https` address an agent or a person sends and stores it as a NEW public file. The body is `assetFromUrlBodySchema` (`{ url, key, type, title? }`, strict; `url` `https:` with no user name, at most 2,048 characters; `type` one of the ten). Order: `assets-write` (`allows`) before the body; the per-minute limits (`chargeWriteBudget` scope `asset-from-url`, fail closed: 10 per caller keyed as `language.ts` keys its writes, 30 per workspace, `429 rate_limited`; the store unable to count `503 fetch_unavailable`); the body (`422 invalid` with `details.issues`); the key (`tenantDb.assets.keyTaken`, then the Live-page scan — `403 agent_refused` for an agent, `409 key_taken` for a person); the daily cap from the workspace's own rows (`tenantDb.assets.fetchedSince`: 200 files or 500 MB, `429 fetch_quota`); four fetches per process and two per workspace per 10 seconds (`503 fetch_busy`); 400 starts a day (`429 fetch_quota`); then the fetch — every hop's name, every address it resolves to through c-ares (never `dns.lookup`) and the address its socket dials, checked before TLS; at most three redirects; `200`, a raster type proven by its signature, `identity`-encoded, within `assetUploadLimit` and 10 seconds — its metadata stripped to an allowlist without re-encoding and its pixel size bounded; the page scan again; and the write through #12428's seam (`blob`: written with `ttlDays: 1`, recorded with `replace({ createOnly: true, type, title, sourceUrl })`, kept only after the record commits). A refusal answers its own code (`fetch_not_public`, `fetch_bad_redirect`, `fetch_too_many_redirects`, `fetch_type_refused`, `fetch_type_mismatch`, `fetch_image_refused`, `fetch_too_large`, `fetch_unreachable`, `fetch_bad_status`, `fetch_timed_out`) and stores nothing; success is `201` with the open envelope plus `file: { url, contentType, size, version }`. No log line carries the address, its host, the key or the title. `GET …/assets/open` answers `source`, the address the file's first version was fetched from (origin and path only), `null` for an upload. MCP parity: `create_asset_from_url` on `/mcp/workspace`.
108
108
  - `/v1/workspaces/:workspaceId/overview` (GET) — the workspace overview (#11806; `packages-paid/api-content-write/src/routes/workspaces/workspace-overview.ts`, in the content-write tenant scope beside the knowledge-base reads), any tenant of the workspace; any query key is 400 `validation_failed` (`Invalid query`, the key never echoed). It answers `{ site: { name, description, defaultLocale }, knowledge: { documents, complete }, language: { term, faq, topic, proof }, magnets: { draft, live }, withheld: [{ part, reason }] }`, each part by the code and under the gate of the read it replaces: the identity and SEO blobs (any tenant), `addressLocale(undefined)`, the knowledge list's own rows for `context: "knowledge"` (`docs-read`, at the list's reading role) with `version` — the draft tip's id — only where `content-edit` holds and the caller's own role reads the doc's audience, the Language count per kind (`docs-read`, at the caller's own role, one `groupBy`, no cap), and the magnet count per state through `magnetListView` (`draft` only for `magnets-manage`; the part needs `multi-tenant` or `signal-collectors`). A part the caller may not read is `null` (or, for `version` and `draft`, absent) and named in `withheld` with reason `grant` or `module` — never a refusal of the read. At most six queries in one `Promise.all`; the answer is re-parsed against `workspaceOverviewSchemaFor` (a version or draft count the caller may not see is a 500, never a leak); `Cache-Control: private, no-store`; an agent read logs one `agent_read` line, and the knowledge or Language part withheld for its grant one `denied_read` line each, naming the `part`, none naming a document. MCP parity: `get_workspace_overview` on `/mcp/workspace`.
109
109
  - `/v1/workspaces/:workspaceId/documents/open` (`?type=Document&slug=&locale=&as=`, #11808 #11853 #11882 — `as` is `record` or, at a plugin-owned address only, `working-copy`, else `422 invalid` at the key sent; `form` is its old name, as the page open's), `/v1/workspaces/:workspaceId/language/:kind/:slug/open` (`?locale=`) and `/v1/workspaces/:workspaceId/assets/open` (`?key=`) (all GET; the latter two #11809) — open a document, a Language item or a file's record under the common names, beside `open_page`'s route (#11808): each sits beside the read it parallels and takes that read's gate (`content-edit`, `docs-read`, `assets-read`) before any store read, and answers the thing in the common envelope with the `version` its save takes. Nothing at the address — or a thing the caller's read could not see — answers a blank built in memory and never stored: `version: null`, `state: "draft"` and the kind's starting layout (a contract document's `contract`/`contract_version` and required headings, an item's empty words); a file is never blank (`404 not_found`, under the reach `save_asset` gives an agent, for every caller). No open writes or audits. MCP parity: `open_document`, `open_language_item` and `open_asset` on `/mcp/workspace`.
110
- - `/v1/workspaces/:workspaceId/page-types` (GET) and `/v1/workspaces/:workspaceId/tag-vocabulary` (GET) — the site-vocabulary reads (#11680; `packages-paid/api-content-write/src/routes/workspaces/site-vocabulary.ts`, in the content-write tenant scope), any tenant of the workspace, no query, no row read. `page-types` answers `{ types: [{ type, route, fixed, template, headings }] }`: every page-type registry entry that is a page, in registry order, with its template's headings as `PAGE_TEMPLATES` states them (`key`, `text`, `required`, `section`, `hint`), filtered per request by the module map `pageTypeModule` in `@working-theory/validation` (the one create-ailk's page-types reference generator reads): `marketing` types always, `scheduling` and `signal-collectors` types when `isModuleEnabled`, and `docs-blog` types when `AILK_ENABLED_MODULES` names `docs-blog` — a site that carries the blog and docs sets that key, since `docs-blog` has no API module. `tag-vocabulary` answers `tagVocabulary()`: `{ classes, topics, status }`, each a list of `{ tag, means, setBy }`. MCP parity: `list_page_types` and `get_tag_vocabulary` on `/mcp/workspace`.
111
- - `/v1/workspaces/:workspaceId/section-types` (GET, optional `?type=`) — the section-types read (#11790; the same file and scope), any tenant of the workspace, no row read. It answers `sectionTypes()` from `@working-theory/validation`: `{ sections: [{ type, dataSection, pins, fields, lists, rules }] }`, every member of `PageSectionSchema` in the union's order — or the one `type` names — with every leaf of its `data` (`path`, words or data, the Markdown `form`, `required` and `within`, value types, `values`, `bounds`), derived from the section schemas and `SECTION_WORDS`. An unknown `type`, or any other query key, is 400 `validation_failed` with the fixed message `Invalid section type filter`. MCP parity: `list_section_types` on `/mcp/workspace`.
110
+ - `/v1/workspaces/:workspaceId/page-types` (GET) and `/v1/workspaces/:workspaceId/tag-vocabulary` (GET) — the site-vocabulary reads (#11680; `packages-paid/api-content-write/src/routes/workspaces/site-vocabulary.ts`, in the content-write tenant scope), any tenant of the workspace, no query, no row read. `page-types` answers `{ types: [{ type, route, fixed, template, headings, sections }] }`: every page-type registry entry that is a page, in registry order, with its template's headings as `PAGE_TEMPLATES` states them (`key`, `text`, `required`, `section`, `hint`) and `sections`, the layout a new page of the type starts with (`{ id, type }` per section in order, read off the same template by `startingSectionsOf`, so it equals what `templateSections` creates a page with, #12516); the rows are filtered per request by the module map `pageTypeModule` in `@working-theory/validation` (the one create-ailk's page-types reference generator reads): `marketing` types always, `scheduling` and `signal-collectors` types when `isModuleEnabled`, and `docs-blog` types when `AILK_ENABLED_MODULES` names `docs-blog` — a site that carries the blog and docs sets that key, since `docs-blog` has no API module. `tag-vocabulary` answers `tagVocabulary()`: `{ classes, topics, status }`, each a list of `{ tag, means, setBy }`. MCP parity: `list_page_types` and `get_tag_vocabulary` on `/mcp/workspace`.
111
+ - `/v1/workspaces/:workspaceId/section-types` (GET, optional `?type=`) — the section-types read (#11790; the same file and scope), any tenant of the workspace, no row read. It answers `sectionTypes()` from `@working-theory/validation`: `{ sections: [{ type, purpose, whenToUse, carries, dataSection, pins, fields, lists, rules }] }`, every member of `PageSectionSchema` in the union's order — or the one `type` names — with what it is for, when to choose it and the parts of a page's pyramid it can carry (`carries: { answer, claims, frame }`, in `SUPPORT_KINDS` and `FRAME_PARTS`; read from `SECTION_PURPOSES`, #12514), and every leaf of its `data` (`path`, words or data, the Markdown `form`, `required` and `within`, value types, `values`, `bounds`), derived from the section schemas and `SECTION_WORDS`. An unknown `type`, or any other query key, is 400 `validation_failed` with the fixed message `Invalid section type filter`. MCP parity: `list_section_types` on `/mcp/workspace`.
112
112
  - `/v1/workspaces/:workspaceId/kinds` (GET) — the kinds read (#11805; the same file and scope), any tenant of the workspace, no query, no row read. It answers `listKinds(request.tenant, isModuleEnabled)` from `@working-theory/metadata`: `{ kinds: [{ kind, address, fields, moreFields, sectionTypes, states, moves }] }`, one entry per kind of `ADMIN_KIND_REGISTRY` (`@working-theory/validation`) — page, document, language_item, magnet, asset — whose address, fields and states are read off that kind's own schemas, and whose `moves` are the catalog rows tagged with the kind, kept only when the row's gate holds for the CLAMPED tenant the guard built (never an agent's stored grants or a token's raw scopes) and one of its modules runs on this hub; a page's `sectionTypes` names `list_section_types` rather than repeating it. Beside `kinds` (#11878) it answers `forms` (`[{ kind, field, values }]` — each kind's form field and its values, read off that field's own schema through `KIND_FORMS`, then an offering's `ailkGroup` and an appointment with no form), `offSiteForms` (`[{ form, formats }]`), `formats` and `origins`, all from `adminKinds()` and the same for every caller and hub. Advice, never an entitlement: no write path may gate on it. MCP parity: `list_kinds` on `/mcp/workspace`.
113
113
  - `/v1/workspaces/:workspaceId/assets` (GET, POST), `/v1/workspaces/:workspaceId/assets/:assetId` (PATCH, DELETE), `/v1/assets/:assetId` (GET, public/anonymous) — the workspace asset store (#5854 upload/read; #6093 list/PATCH/DELETE, `src/routes/assets/{index,upload,read,manage}.ts`). Upload accepts an allowlisted union of three named classes (`src/routes/assets/index.ts`): five RASTER images (`image/png`, `image/jpeg`, `image/gif`, `image/webp`, `image/avif`), one VECTOR image (`image/svg+xml`, admitted under the operator's 2026-09-18 `allow-svg-assets` ruling — issue #6093 comment `5731573595` — superseding #5854's original SVG exclusion) and one DOCUMENT type (`application/pdf`), all under the existing 20 MB cap; `?tags=<slug>[,<slug>…]` stores tags on the row. The public read serves a RASTER type `inline` exactly as before; every OTHER admitted type (SVG, PDF) is served `attachment`, with the filename's extension pinned to the stored content type (closing extension spoofing) and a five-directive `Content-Security-Policy` (`default-src 'none'; sandbox; frame-ancestors 'none'; form-action 'none'; base-uri 'none'`) that makes the bytes never a document on this origin — this is what makes admitting SVG safe with NO server-side sanitizer. `GET …/assets` (`assets-read` — every role, a member included) lists a workspace's assets, metadata only, never `bytes`, with an optional `?tag=<slug>` filter; this is what narrows the store's prior "nothing lists assets" premise to its precise form — no ANONYMOUS and no CROSS-TENANT enumeration, both still true. `PATCH …/assets/:assetId` updates `title`/`description`/`tags` (`assets-write`, owner and admin, the upload's permission too; `null` clears a text field to SQL `NULL`, `""` stores empty; the asset's `id` and public URL are untouched). `DELETE …/assets/:assetId` (`assets-write`) removes the row and the bytes at the ORIGIN only — already-cached copies elsewhere are not recallable under the year-long `immutable` promise, and no reference check protects a page that still embeds the URL; absent and foreign ids both take the same 404. Every tenant route here is identity-bound; no MCP twin (#3591 exception). The public read has no MCP twin either — it serves bytes to an `<img>`/download, the same boundary `upload.ts` records for its own sibling. **A client's file is never in the library's public life (#7877 D18):** the default `GET …/assets` listing leaves out every asset tagged `private` — only `?tag=private` lists them (the Admin's Compose) — and the public read answers its uniform 404 for an asset tagged `private`, attached to any member-area message, or (#8171 D3) named by a delivered piece version (one `pieceVersion.count`, since the tag can be removed after delivery), so such a file's bytes are served only by its owner's member reads.
114
114
  - `/v1/subscription/me` (GET) — `?include=billing` (#8171 D7), from a cookie session only, adds the optional `planName` and `paymentMethod` (brand, last four, expiry) read from Stripe through `lib/stripe.ts`'s `readCustomerBillingSummary` for the caller's own resolved customer: cached per customer for 60 s (a failure too), one read in flight per customer, bounded at 3 s; a failure leaves both keys absent, a value outside the schema's bounds is `null`, and no id is served or logged. A bearer token, another value or none answers exactly as before.
@@ -248,7 +248,9 @@ sweep's own DB constraint (never a caller-side lock).
248
248
  - Don't bundle `apps/api` (esbuild, rollup, webpack). Slice specifiers cannot survive it — see `## Deploy path`.
249
249
  - Don't construct Fastify with `logger: true` or any `logger:` option. Pass `loggerInstance` built from `createLogger` in `@working-theory/observability` (see `packages/api/src/server.ts`). Fastify's own pino carries none of the redaction.
250
250
 
251
- Last updated: 2026-11-25 — #12337: `POST /v1/billing/trial-card` and its check order beside plan-checkout, the portal session's payer check and Plan overview return token, and a paused plan offering no change — verified against `packages-paid/api-multi-tenant/src/routes/billing/{trial-card,portal}.ts`, `packages/api/src/lib/write-reservations.ts` and `packages/api/src/services/offerings/{plan-change,member-billing}.ts`.
251
+ Last updated: 2026-11-28 — #12516: the page-types row's `sections`, a new page's starting layout read off its template — verified against `packages-paid/api-content-write/src/routes/workspaces/site-vocabulary.ts` and `packages/validation/src/contract/templates.ts`.
252
+
253
+ Prior: 2026-11-25 — #12337: `POST /v1/billing/trial-card` and its check order beside plan-checkout, the portal session's payer check and Plan overview return token, and a paused plan offering no change — verified against `packages-paid/api-multi-tenant/src/routes/billing/{trial-card,portal}.ts`, `packages/api/src/lib/write-reservations.ts` and `packages/api/src/services/offerings/{plan-change,member-billing}.ts`.
252
254
 
253
255
  Prior: 2026-11-25 — #12336: the plan-checkout sentence names the `change` branch and its check order, and the webhook gains the plan-change path after the plugin path — verified against `packages-paid/api-multi-tenant/src/routes/billing/plan-checkout.ts`, `packages/api/src/services/offerings/{plan-change,member-billing}.ts` and `packages/api/src/routes/webhooks/stripe.ts`.
254
256