oneie 3.6.18 → 3.6.21

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 (58) hide show
  1. package/.claude/agents/agent-ops.md +63 -2
  2. package/.claude/commands/commit.md +95 -0
  3. package/.claude/commands/npx.md +2 -2
  4. package/.claude/commands/one.md +7 -1
  5. package/.claude/commands/push.md +113 -21
  6. package/.claude/commands/release.md +2 -2
  7. package/.claude/hooks/release-cli.sh +195 -0
  8. package/CLAUDE.md +131 -12
  9. package/README.md +778 -497
  10. package/one/groups/one.md +1 -1
  11. package/one/knowledge/architecture-frontend.md +5 -0
  12. package/one/knowledge/archived/ontology.old.md +1 -1
  13. package/one/knowledge/develop/design.md +364 -0
  14. package/one/knowledge/develop/index.md +145 -0
  15. package/one/knowledge/metadata-system.md +1 -1
  16. package/one/knowledge/ontology-engineering.md +1 -1
  17. package/one/knowledge/ontology.md +1 -1
  18. package/one/knowledge/patterns/design/index.md +160 -0
  19. package/one/knowledge/quick-start-ontology-mapping.md +773 -0
  20. package/one/knowledge/todo-template.md +100 -100
  21. package/one/knowledge/todo.md +100 -100
  22. package/one/people/anthony-o-connell.md +3 -3
  23. package/one/things/master-workflow-plan.md +2 -2
  24. package/one/things/plans/execution-strategy.md +243 -243
  25. package/one/things/plans/wave1-specialist-assignments.md +1 -1
  26. package/one/things/todo-ai.md +100 -100
  27. package/one/things/todo-assignment.md +21 -21
  28. package/one/things/todo-effects.md +100 -100
  29. package/one/things/todo-frontend-effects.md +100 -100
  30. package/one/things/todo-master-plan.md +1 -1
  31. package/one/things/todo-sequence.md +1 -1
  32. package/package.json +1 -1
  33. package/.claude/agents/NEWS-QUICKSTART.md +0 -321
  34. package/.claude/agents/NEWS-README.md +0 -353
  35. package/.claude/hooks/README-knowledge-hooks.md +0 -451
  36. package/.claude/hooks/README-root-cleanup.md +0 -200
  37. package/.claude/hooks/README.md +0 -284
  38. package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
  39. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  40. package/.claude/hooks/check-filenames.py +0 -177
  41. package/.claude/hooks/clean-post.py +0 -468
  42. package/.claude/hooks/clean-pre.py +0 -393
  43. package/.claude/hooks/clean-root-markdown.sh +0 -73
  44. package/.claude/hooks/done.py +0 -236
  45. package/.claude/hooks/format-hook.sh +0 -163
  46. package/.claude/hooks/hook-logger.sh +0 -173
  47. package/.claude/hooks/knowledge-post.py +0 -355
  48. package/.claude/hooks/knowledge-pre.py +0 -245
  49. package/.claude/hooks/notification-hook.sh +0 -279
  50. package/.claude/hooks/root-cleanup.py +0 -217
  51. package/.claude/hooks/security-hook.sh +0 -397
  52. package/.claude/hooks/tag-all-docs.py +0 -464
  53. package/.claude/hooks/test-validate-ontology.sh +0 -170
  54. package/.claude/hooks/todo.py +0 -368
  55. package/.claude/hooks/track-changes.sh +0 -101
  56. package/.claude/hooks/validate-ontology-structure-summary.md +0 -243
  57. package/.claude/hooks/validate-ontology-structure.py +0 -518
  58. package/TESTING-ONBOARDING.md +0 -185
package/one/groups/one.md CHANGED
@@ -183,7 +183,7 @@ ai_context: |
183
183
  metadata: {
184
184
  network: "sui",
185
185
  contractType: "cycle_payment",
186
- packageId: process.env.SUI_INFERENCE_PACKAGE_ID,
186
+ packageId: process.env.SUI_CYCLEENCE_PACKAGE_ID,
187
187
  deployedBy: anthonyId,
188
188
  },
189
189
  createdAt: Date.now(),
@@ -70,6 +70,11 @@ The ONE frontend is **purely a rendering and interaction layer** with zero busin
70
70
  - **Better Auth** - Multi-method authentication
71
71
  - **TypeScript 5.9+** - End-to-end type safety (strict mode)
72
72
 
73
+ **Design System:**
74
+ - **Design:** See `one/knowledge/develop/design.md` for complete design tokens, guidelines, and implementation playbook
75
+ - **Design Patterns:** See `one/knowledge/patterns/design/` for reusable wireframe and component patterns
76
+ - **Agent Coordination:** See `.claude/agents/agent-designer.md` for design specification and QA workflows
77
+
73
78
  ---
74
79
 
75
80
  ## Table of Contents
@@ -1200,7 +1200,7 @@ type EventType =
1200
1200
  | 'optimization_applied'
1201
1201
  | 'report_generated'
1202
1202
 
1203
- // INFERENCE EVENTS (7) - NEW
1203
+ // CYCLEENCE EVENTS (7) - NEW
1204
1204
  | 'cycle_request' // User requests AI cycle
1205
1205
  | 'cycle_completed' // Cycle result delivered
1206
1206
  | 'cycle_failed' // Cycle failed
@@ -0,0 +1,364 @@
1
+ # Design
2
+
3
+ The ONE Design System is the living foundation for how we build beautiful, accessible, and performant experiences. Every surface—from marketing to dashboards—reflects these principles.
4
+
5
+ ## DNA
6
+
7
+ Three principles guide every layout, component, and interaction across the platform:
8
+
9
+ ### Clarity
10
+ Layouts start with measured whitespace, bold hierarchy, and predictable grid alignment. Structure before decoration.
11
+
12
+ - Measured whitespace creates breathing room
13
+ - Visual hierarchy drives scannability
14
+ - Grid-based alignment creates confidence
15
+
16
+ ### Velocity
17
+ Reusable tokens, components, and documentation make shipping fast without sacrificing polish. Decide once, reuse everywhere.
18
+
19
+ - Token-first thinking (colors, spacing, typography)
20
+ - Component library powers iteration
21
+ - Documentation prevents reinvention
22
+
23
+ ### Inclusive
24
+ Accessibility, contrast, and motion preferences are first-class constraints—not afterthoughts. Comfort for every user.
25
+
26
+ - WCAG 2.1 AA compliance non-negotiable
27
+ - Motion respects prefers-reduced-motion
28
+ - Color never carries meaning alone
29
+
30
+ ## Design Tokens
31
+
32
+ Tokens are the atomic currency of the system. Update them once to propagate across the product, web, and brand experiences.
33
+
34
+ ### Color Tokens (HSL Format)
35
+
36
+ **Semantic Tokens:**
37
+
38
+ | Token | Value | Label |
39
+ |-------|-------|-------|
40
+ | `--primary` | `216 55% 25%` | Deep navy · Primary actions |
41
+ | `--primary-foreground` | `36 8% 96%` | Warm light foreground |
42
+ | `--secondary` | `219 14% 28%` | Graphite · Secondary surfaces |
43
+ | `--accent` | `105 22% 25%` | Leaf · Positive accent |
44
+ | `--muted` | `36 8% 88%` | Stone · Neutral backdrop |
45
+
46
+ **Why HSL?** Device-independent, intuitive adjustments (hue, saturation, lightness), superior to hex or RGB for system design.
47
+
48
+ ### Color Modes
49
+
50
+ **Light Surfaces** (bright, optimistic, generous contrast)
51
+ - Background: `36 8% 88%` — Warm stone canvas
52
+ - Card: `0 0% 100%` — Paper surfaces
53
+ - Muted: `219 14% 92%` — Soft graphite panels
54
+ - Border: `219 14% 70%` — Weathered outlines
55
+
56
+ **Dark Surfaces** (low-glare, high-contrast, accent highlights)
57
+ - Background: `0 0% 13%` — Ink backdrop
58
+ - Card: `219 14% 20%` — Graphite layers
59
+ - Muted: `216 63% 17%` — Slate overlays
60
+ - Border: `216 40% 32%` — Dim outlines
61
+
62
+ ### Typography Scale
63
+
64
+ **Inter typeface with fluid sizing using clamp():**
65
+
66
+ | Name | Size | Line Height | Tailwind | Usage |
67
+ |------|------|-------------|----------|-------|
68
+ | Display | 56px / 3.5rem | 1.1 | `text-5xl md:text-6xl` | Hero statements |
69
+ | Headline | 40px / 2.5rem | 1.2 | `text-4xl` | Section titles |
70
+ | Title | 28px / 1.75rem | 1.3 | `text-2xl` | Card titles |
71
+ | Subtitle | 20px / 1.25rem | 1.5 | `text-xl` | Supporting copy |
72
+ | Body | 16px / 1rem | 1.7 | `text-base leading-7` | Paragraphs |
73
+ | Caption | 14px / 0.875rem | 1.6 | `text-sm` | Metadata & labels |
74
+
75
+ **Best Practices:**
76
+ - Use `max-w-prose` for copy blocks
77
+ - Headlines use `leading-tight`, body copy uses `leading-7`
78
+ - Increase letter-spacing for uppercase
79
+ - Mix weight sparingly: bold for emphasis, medium for labels, regular for reading
80
+ - Always include smart quotes, en/em dashes, proper apostrophes
81
+
82
+ ### Spacing Scale (4px Grid)
83
+
84
+ Scale is rooted in 4px increments. Combine tokens to create rhythm and intentional whitespace.
85
+
86
+ | Token | Pixels | Rem | Usage |
87
+ |-------|--------|-----|-------|
88
+ | space-2 | 8px | 0.5rem | Dense clusters |
89
+ | space-3 | 12px | 0.75rem | Component gaps |
90
+ | space-4 | 16px | 1rem | Default padding |
91
+ | space-6 | 24px | 1.5rem | Card gutters |
92
+ | space-8 | 32px | 2rem | Section rhythm |
93
+ | space-12 | 48px | 3rem | Hero whitespace |
94
+
95
+ ### Border Radius
96
+
97
+ Radii communicate intent. Smaller radius for utility, larger for immersive storytelling.
98
+
99
+ | Token | Value | Usage |
100
+ |-------|-------|-------|
101
+ | `--radius-xs` | 4px | Pills & badges |
102
+ | `--radius-sm` | 6px | Inputs & controls |
103
+ | `--radius-md` | 12px | Cards |
104
+ | `--radius-lg` | 24px | Modals & hero surfaces |
105
+ | `--radius-full` | 9999px | Circular avatars |
106
+
107
+ ### Elevation (Depth with Shadows)
108
+
109
+ Elevation pairs drop shadows with subtle borders to reinforce spatial hierarchy.
110
+
111
+ | Token | Value | Usage |
112
+ |-------|-------|-------|
113
+ | shadow-sm | `0 1px 2px 0 hsl(219 14% 28% / 0.15)` | Inputs & lists |
114
+ | shadow-md | `0 14px 32px -18px hsl(216 55% 25% / 0.32)` | Prominent cards |
115
+ | shadow-lg | `0 40px 80px -30px hsl(216 63% 17% / 0.45)` | Dialogs & overlays |
116
+
117
+ ### Motion Tokens
118
+
119
+ Motion reinforces meaning. Keep transitions under 320ms and ease with intention.
120
+
121
+ | Name | Value | Usage |
122
+ |------|-------|-------|
123
+ | `--ease-snappy` | `cubic-bezier(0.4, 0, 0.2, 1)` | Buttons & chip interactions |
124
+ | `--ease-natural` | `cubic-bezier(0.16, 1, 0.3, 1)` | Modals & drawers |
125
+ | `--duration-rapid` | 120ms | Hover & focus |
126
+ | `--duration-base` | 200ms | Component transitions |
127
+ | `--duration-slow` | 320ms | Page transitions |
128
+
129
+ **Golden Rule:** Pair animations with motion tokens and respect `prefers-reduced-motion`. Motion should communicate spatial change, not distract.
130
+
131
+ ## Layout & Spacing
132
+
133
+ Grid systems, gutters, and container rules keep experiences aligned and effortless to scan.
134
+
135
+ ### Spacing Rhythm
136
+
137
+ Combine spacing tokens deliberately:
138
+ - Inside components: use space-2 through space-6
139
+ - Between sections: use space-8 through space-12
140
+
141
+ This creates predictable vertical rhythm and visual breathing room.
142
+
143
+ ### Container Rules
144
+
145
+ Choose the container that matches the story density. Always align to the 12-column grid.
146
+
147
+ | Label | Specification | Usage |
148
+ |-------|---------------|-------|
149
+ | Content | max-w-3xl · 48px section padding | Articles, docs, knowledge |
150
+ | Application | max-w-5xl · 64px section padding | Dashboards & workflows |
151
+ | Wide | max-w-6xl · responsive gutters | Data dense screens |
152
+ | Fluid | full width · clamp(24px, 5vw, 80px) | Marketing & storytelling |
153
+
154
+ ### Grid System
155
+
156
+ Each column aligns to 72px at desktop with 24px gutters. Collapse to two columns on tablet, one on mobile.
157
+
158
+ ```
159
+ Desktop: 12 columns × 72px with 24px gutters
160
+ Tablet: 6 columns × fluid width
161
+ Mobile: 2 columns × full width with 16px margins
162
+ ```
163
+
164
+ ## Buttons
165
+
166
+ Action hierarchy lives or dies on buttons. Use tokens, states, and spacing consistently.
167
+
168
+ ### Variants
169
+
170
+ Choose the variant that matches intent. Primary stands alone; others support workflows and contextual actions.
171
+
172
+ **Primary:** One per view. Drives the core action with the --primary token to anchor attention.
173
+
174
+ **Secondary:** Use for supportive actions that keep users in-flow. Works best in medium density areas.
175
+
176
+ **Outline:** Pair with primary for complementary navigation (e.g., "View docs"). Great on dark surfaces.
177
+
178
+ **Ghost:** Use for contextual actions within dense layouts or tables. Hover adds subtle surface tint.
179
+
180
+ ### States & Best Practices
181
+
182
+ | State | Behavior |
183
+ |-------|----------|
184
+ | **Hover** | Strengthen fill by 8% (primary) or introduce 10% surface tint (outline/ghost). Preserve contrast. |
185
+ | **Focus** | Apply 2px ring in `--color-primary` with 2px offset. Never rely on box-shadow alone. |
186
+ | **Active** | Reduce elevation, darken fill by 12%, compress transition timing to <80ms for instant feedback. |
187
+ | **Disabled** | Lower opacity to 55%, remove hover styles. Use tooltips or helper text for next steps. |
188
+
189
+ ### Guidelines
190
+
191
+ - Pair icon buttons with tooltips; keep hit area ≥44px
192
+ - Default spacing: 16px horizontal, 12px vertical inside button; stack buttons with 16px gap
193
+ - Never place two primary buttons side by side—use secondary or outline for supporting actions
194
+ - Primary CTA uses inverse fill: white background, primary text, primary ring for focus
195
+ - Document spacing, icon placement, and loading patterns in both Figma and code
196
+
197
+ ## Component Language
198
+
199
+ Components combine tokens, layout, and interaction rules. Build new experiences by composing, not reinventing.
200
+
201
+ ### Design Principles
202
+
203
+ **Atomic → Pattern → Experience**
204
+
205
+ Compose experiences from documented atoms. Never duplicate markup when a primitive exists.
206
+
207
+ **Statefulness Baked In**
208
+
209
+ Every component ships with hover, focus, active, loading, and disabled states out of the box.
210
+
211
+ **Content-Aware Layouts**
212
+
213
+ Components adapt to variable content through flexible spacing, min/max widths, and responsive typography.
214
+
215
+ ### Living Examples
216
+
217
+ Ship with defaults: size, density, icon placement, and states. Extend via props and slots. If structure diverges, create a new primitive and document it.
218
+
219
+ **50+ pre-installed shadcn/ui components** available:
220
+ - Card, Button, Badge, Avatar
221
+ - Input, Label, Select, Textarea
222
+ - Dialog, Drawer, Popover, Tooltip
223
+ - Tabs, Accordion, Collapse
224
+ - Alert, Toast, Progress, Skeleton
225
+ - And more...
226
+
227
+ ## Interaction & Accessibility
228
+
229
+ Every interaction respects purpose, speed, and inclusivity. Design emotionally confident interfaces that everyone can use.
230
+
231
+ ### Interaction Rules
232
+
233
+ **Visible Focus**
234
+
235
+ Focus states use a 2px outline with primary color and 2px offset. Never remove focus for aesthetics.
236
+
237
+ **Purposeful Motion**
238
+
239
+ Pair animations with motion tokens and respect `prefers-reduced-motion`. Motion should communicate spatial change.
240
+
241
+ **Immediate Feedback**
242
+
243
+ - Hover within 80ms
244
+ - Active within 40ms
245
+ - Show result states or loaders within 200ms
246
+
247
+ ### Accessibility Checklist
248
+
249
+ **Contrast AA+**
250
+
251
+ Maintain 4.5:1 contrast for body text and 3:1 for large headings. Validate all token combinations.
252
+
253
+ **Readable Typography**
254
+
255
+ Limit line length to 60–70 characters, set body copy to leading-7, avoid center-aligned paragraphs over 3 lines.
256
+
257
+ **Motion Preferences**
258
+
259
+ Wrap transitions in `motion-safe` classes and provide alternatives like color or elevation for motion-reduced users.
260
+
261
+ **WCAG 2.1 AA Compliance**
262
+
263
+ - Complete keyboard navigation
264
+ - Semantic HTML
265
+ - ARIA labels
266
+ - Screen reader support
267
+ - Color doesn't carry meaning alone
268
+
269
+ ## Implementation Playbook
270
+
271
+ Design and engineering stay in lockstep through shared tooling, documentation, and QA rituals.
272
+
273
+ ### Workflow
274
+
275
+ Keep tokens and components in sync across codebases, packages, and design files.
276
+
277
+ **Step 1: Tokens as Source of Truth**
278
+
279
+ Update Tailwind config and CSS variables first. UI code must consume tokens—not hard coded values.
280
+
281
+ **Step 2: Composable Primitives**
282
+
283
+ Extend components via props and slots. If structure diverges, create a new primitive and document it here.
284
+
285
+ **Step 3: Design QA Loop**
286
+
287
+ Pair every UI change with screenshots, contrast checks, and accessibility notes before merging.
288
+
289
+ ### Token Reference
290
+
291
+ **CSS Custom Properties (update in `src/styles/global.css`):**
292
+
293
+ ```css
294
+ :root {
295
+ --color-primary: 216 55% 25%;
296
+ --color-primary-foreground: 36 8% 96%;
297
+ --color-surface: 36 8% 88%;
298
+ --color-accent: 105 22% 25%;
299
+ --space-2: 0.5rem;
300
+ --space-4: 1rem;
301
+ --radius-md: 12px;
302
+ --shadow-md: 0 14px 32px -18px hsl(216 55% 25% / 0.32);
303
+ --ease-snappy: cubic-bezier(0.4, 0, 0.2, 1);
304
+ }
305
+ ```
306
+
307
+ **Tokens sync to Tailwind via `theme.extend`. Run `pnpm lint && pnpm test` before release.**
308
+
309
+ ## Performance Targets
310
+
311
+ Design decisions have downstream performance impact. Optimize at every layer.
312
+
313
+ ### Core Web Vitals
314
+
315
+ - **Largest Contentful Paint (LCP):** < 2.5s
316
+ - **First Input Delay (FID):** < 100ms
317
+ - **Cumulative Layout Shift (CLS):** < 0.1
318
+ - **Lighthouse Performance:** ≥ 90/100
319
+
320
+ ### Implementation Techniques
321
+
322
+ **Image Optimization**
323
+
324
+ Use Astro Image with webp format, lazy loading, and appropriate dimensions.
325
+
326
+ **Code Splitting**
327
+
328
+ Dynamic imports for heavy components; lazy-load features below the fold.
329
+
330
+ **Strategic Hydration**
331
+
332
+ Generate static HTML by default. Add interactivity (client:load, client:visible, etc.) only where needed.
333
+
334
+ **Critical CSS**
335
+
336
+ Inline critical styles. Astro handles automatically.
337
+
338
+ ## Design QA Checklist
339
+
340
+ Before shipping ANY UI change:
341
+
342
+ - [ ] Tokens documented (colors, spacing, typography)
343
+ - [ ] All states implemented (hover, focus, active, disabled, loading)
344
+ - [ ] Contrast AA+ validated (color contrast analyzer)
345
+ - [ ] Keyboard navigation tested
346
+ - [ ] Responsive tested (mobile, tablet, desktop)
347
+ - [ ] Motion respects prefers-reduced-motion
348
+ - [ ] Screenshots added to PR description
349
+ - [ ] Accessibility notes included
350
+ - [ ] Performance benchmarks met (Lighthouse 90+)
351
+ - [ ] No hydration mismatches or layout shifts
352
+
353
+ ## Related Documentation
354
+
355
+ - **Patterns:** See `one/knowledge/patterns/design/` for wireframes, component architecture, and test-driven design
356
+ - **Frontend Architecture:** Read `one/knowledge/architecture-frontend.md` for Astro + React patterns
357
+ - **Implementation Guide:** Check `web/AGENTS.md` for quick reference on Convex and shadcn/ui
358
+ - **Specifications:** Review `one/knowledge/specifications.md` for detailed requirements
359
+
360
+ ## Design Governs the Experience
361
+
362
+ Ship with intention. Every commit should strengthen clarity, trust, and velocity. When in doubt, return to the tokens, principles, and checklists above—or propose updates so the system evolves together.
363
+
364
+ **The goal:** Build experiences so consistent, accessible, and performant that users never think about design. They just feel like home.
@@ -0,0 +1,145 @@
1
+ # Development & Design
2
+
3
+ The development documentation layer contains comprehensive guides for building features within the ONE Platform's 6-dimension ontology.
4
+
5
+ ## Structure
6
+
7
+ ```
8
+ one/knowledge/develop/
9
+ ├── index.md # This file
10
+ └── design.md # Complete design system specification
11
+ ```
12
+
13
+ ## Development Guides
14
+
15
+ ### Design: `develop/design.md`
16
+
17
+ The complete ONE Design System specification including:
18
+
19
+ **Principles:**
20
+ - Clarity - Measured whitespace, bold hierarchy, grid alignment
21
+ - Velocity - Token-first thinking, reusable components, no reinvention
22
+ - Inclusive - WCAG 2.1 AA compliance, motion preferences, accessible interactions
23
+
24
+ **Design Tokens:**
25
+ - Colors (HSL format with light/dark modes)
26
+ - Typography (modular scale, best practices)
27
+ - Spacing (4px grid system)
28
+ - Radius, elevation, motion tokens
29
+ - Container rules and grid system
30
+
31
+ **Implementation:**
32
+ - Button variants and states
33
+ - Component language principles
34
+ - Interaction rules and accessibility guidelines
35
+ - Implementation playbook with QA checklist
36
+ - Performance targets and optimization techniques
37
+
38
+ **Use this guide when:**
39
+ - Implementing new UI features
40
+ - Making design decisions about colors, spacing, typography
41
+ - Ensuring accessibility compliance (WCAG 2.1 AA)
42
+ - Setting up design tokens in new projects
43
+ - Validating component implementations
44
+
45
+ ## Related Documentation
46
+
47
+ - **Patterns:** See `one/knowledge/patterns/design/` for reusable wireframe and component patterns
48
+ - **Frontend Architecture:** Read `one/knowledge/architecture-frontend.md` for Astro + React patterns
49
+ - **Agent Coordination:** See `.claude/agents/agent-designer.md` for design specification workflows
50
+ - **Quality Guidelines:** Check `one/knowledge/quality-loop.md` for testing patterns
51
+
52
+ ## Quick Reference
53
+
54
+ ### Design System Quick Start
55
+
56
+ **Color tokens (HSL):**
57
+ ```css
58
+ --primary: 216 55% 25% /* Deep navy */
59
+ --primary-foreground: 36 8% 96% /* Warm light */
60
+ --secondary: 219 14% 28% /* Graphite */
61
+ --accent: 105 22% 25% /* Leaf */
62
+ --muted: 36 8% 88% /* Stone */
63
+ ```
64
+
65
+ **Spacing scale (4px base):**
66
+ - space-2: 8px
67
+ - space-3: 12px
68
+ - space-4: 16px (default)
69
+ - space-6: 24px
70
+ - space-8: 32px
71
+ - space-12: 48px
72
+
73
+ **Typography scale:**
74
+ - Display: 56px / 3.5rem (hero statements)
75
+ - Headline: 40px / 2.5rem (section titles)
76
+ - Title: 28px / 1.75rem (card titles)
77
+ - Subtitle: 20px / 1.25rem (supporting copy)
78
+ - Body: 16px / 1rem (paragraphs)
79
+ - Caption: 14px / 0.875rem (metadata & labels)
80
+
81
+ **Border radius:**
82
+ - xs: 4px (pills & badges)
83
+ - sm: 6px (inputs & controls)
84
+ - md: 12px (cards)
85
+ - lg: 24px (modals & hero surfaces)
86
+ - full: 9999px (circular avatars)
87
+
88
+ **Motion:**
89
+ - ease-snappy: cubic-bezier(0.4, 0, 0.2, 1)
90
+ - ease-natural: cubic-bezier(0.16, 1, 0.3, 1)
91
+ - duration-rapid: 120ms
92
+ - duration-base: 200ms
93
+ - duration-slow: 320ms
94
+
95
+ ### Design Checklist
96
+
97
+ Before shipping ANY UI change:
98
+
99
+ - [ ] Tokens documented (colors, spacing, typography)
100
+ - [ ] All states implemented (hover, focus, active, disabled, loading)
101
+ - [ ] Contrast AA+ validated (4.5:1 body, 3:1 large text)
102
+ - [ ] Keyboard navigation tested
103
+ - [ ] Responsive tested (mobile 320px, tablet 768px, desktop 1024px+)
104
+ - [ ] Motion respects prefers-reduced-motion
105
+ - [ ] Screenshots added to PR
106
+ - [ ] Accessibility notes included
107
+ - [ ] Performance benchmarks met (Lighthouse 90+)
108
+ - [ ] No hydration mismatches or layout shifts
109
+
110
+ ## Golden Rules
111
+
112
+ 1. **Design is not decoration** - Every element must serve a purpose
113
+ 2. **Use proven patterns** - Compose existing components, minimize custom ones
114
+ 3. **Accessibility first** - WCAG AA compliance is non-negotiable
115
+ 4. **Token-driven** - Pull all values from design tokens, never hard-code
116
+ 5. **Test-driven** - Map each acceptance criterion to a UI element
117
+ 6. **Responsive by default** - Mobile-first thinking in every design
118
+ 7. **Reusable knowledge** - Store patterns for future designs
119
+
120
+ ## Architecture Integration
121
+
122
+ The develop layer connects to the overall ONE Platform architecture:
123
+
124
+ ```
125
+ Frontend (web/src)
126
+ ↓ uses
127
+ Design System (develop/design.md)
128
+ ↓ implements
129
+ Design Tokens + Components
130
+ ↓ validates via
131
+ Patterns (patterns/design/)
132
+ ↓ coordinated by
133
+ Agent-Designer (.claude/agents/agent-designer.md)
134
+ ```
135
+
136
+ When building features:
137
+ 1. Start with design tokens from `develop/design.md`
138
+ 2. Use patterns from `patterns/design/` for common layouts
139
+ 3. Implement in Astro + React following `architecture-frontend.md`
140
+ 4. Validate with design checklist above
141
+ 5. Coordinate with agent-designer for QA workflows
142
+
143
+ ---
144
+
145
+ **Built for clarity, consistency, and accessibility across the ONE Platform.**
@@ -305,7 +305,7 @@ The Clean Agent hooks automatically manage metadata:
305
305
  **Post-Cycle (`clean-post.py`)**:
306
306
  - ✅ Adds metadata to new files
307
307
  - ✅ Updates `updated` field
308
- - ✅ Infers dimension/category from file location
308
+ - ✅ Cycles dimension/category from file location
309
309
 
310
310
  ### Manual Tagging
311
311
 
@@ -253,7 +253,7 @@ type EventType =
253
253
  | 'metric_calculated' | 'insight_generated' | 'prediction_made'
254
254
  | 'optimization_applied' | 'report_generated'
255
255
 
256
- // INFERENCE (7) - Revenue tracking
256
+ // CYCLEENCE (7) - Revenue tracking
257
257
  | 'cycle_request' | 'cycle_completed' | 'cycle_failed'
258
258
  | 'cycle_quota_exceeded' | 'cycle_revenue_collected'
259
259
  | 'org_revenue_generated' | 'revenue_share_distributed'
@@ -1790,7 +1790,7 @@ type EventType =
1790
1790
  | "optimization_applied"
1791
1791
  | "report_generated"
1792
1792
 
1793
- // INFERENCE EVENTS (7) - NEW
1793
+ // CYCLEENCE EVENTS (7) - NEW
1794
1794
  | "cycle_request" // User requests AI cycle
1795
1795
  | "cycle_completed" // Cycle result delivered
1796
1796
  | "cycle_failed" // Cycle failed