ocmm 0.5.1 → 0.5.2

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 (138) hide show
  1. package/.codex/agents/dw-builder.toml +1 -1
  2. package/.codex/agents/dw-clarifier.toml +1 -1
  3. package/.codex/agents/dw-code-search.toml +1 -1
  4. package/.codex/agents/dw-coding.toml +1 -1
  5. package/.codex/agents/dw-complex.toml +1 -1
  6. package/.codex/agents/dw-creative.toml +1 -1
  7. package/.codex/agents/dw-deep.toml +1 -1
  8. package/.codex/agents/dw-doc-search.toml +1 -1
  9. package/.codex/agents/dw-documenting.toml +1 -1
  10. package/.codex/agents/dw-explore.toml +1 -1
  11. package/.codex/agents/dw-frontend.toml +1 -1
  12. package/.codex/agents/dw-hard-reasoning.toml +1 -1
  13. package/.codex/agents/dw-media-reader.toml +1 -1
  14. package/.codex/agents/dw-normal-task.toml +1 -1
  15. package/.codex/agents/dw-oracle.toml +2 -2
  16. package/.codex/agents/dw-orchestrator.toml +1 -1
  17. package/.codex/agents/dw-plan-critic.toml +1 -1
  18. package/.codex/agents/dw-planner.toml +1 -1
  19. package/.codex/agents/dw-quick.toml +1 -1
  20. package/.codex/agents/dw-research.toml +1 -1
  21. package/.codex/agents/dw-reviewer.toml +2 -2
  22. package/README.md +7 -2
  23. package/dist/codex/plugin-generator.js +36 -22
  24. package/dist/codex/plugin-generator.js.map +1 -1
  25. package/dist/config/normalize.d.ts +2 -0
  26. package/dist/config/normalize.js +17 -0
  27. package/dist/config/normalize.js.map +1 -1
  28. package/dist/config/schema.d.ts +17 -1
  29. package/dist/config/schema.js +17 -0
  30. package/dist/config/schema.js.map +1 -1
  31. package/dist/data/agents.js +2 -2
  32. package/dist/data/agents.js.map +1 -1
  33. package/dist/hooks/chat-params.js +18 -0
  34. package/dist/hooks/chat-params.js.map +1 -1
  35. package/dist/hooks/config.d.ts +1 -0
  36. package/dist/hooks/config.js +52 -110
  37. package/dist/hooks/config.js.map +1 -1
  38. package/dist/hooks/event.d.ts +1 -0
  39. package/dist/hooks/event.js +1 -0
  40. package/dist/hooks/event.js.map +1 -1
  41. package/dist/index.js +5 -1
  42. package/dist/index.js.map +1 -1
  43. package/dist/permissions/index.d.ts +1 -0
  44. package/dist/permissions/index.js +58 -0
  45. package/dist/permissions/index.js.map +1 -1
  46. package/dist/routing/model-upgrades.d.ts +3 -0
  47. package/dist/routing/model-upgrades.js +123 -0
  48. package/dist/routing/model-upgrades.js.map +1 -0
  49. package/dist/routing/resolver.d.ts +11 -1
  50. package/dist/routing/resolver.js +63 -69
  51. package/dist/routing/resolver.js.map +1 -1
  52. package/dist/runtime-fallback/event-handler.d.ts +1 -0
  53. package/dist/runtime-fallback/event-handler.js +37 -26
  54. package/dist/runtime-fallback/event-handler.js.map +1 -1
  55. package/package.json +1 -1
  56. package/plugins/deepwork/.codex-plugin/plugin.json +1 -1
  57. package/plugins/deepwork/agents/dw-builder.toml +1 -1
  58. package/plugins/deepwork/agents/dw-clarifier.toml +1 -1
  59. package/plugins/deepwork/agents/dw-code-search.toml +1 -1
  60. package/plugins/deepwork/agents/dw-coding.toml +1 -1
  61. package/plugins/deepwork/agents/dw-complex.toml +1 -1
  62. package/plugins/deepwork/agents/dw-creative.toml +1 -1
  63. package/plugins/deepwork/agents/dw-deep.toml +1 -1
  64. package/plugins/deepwork/agents/dw-doc-search.toml +1 -1
  65. package/plugins/deepwork/agents/dw-documenting.toml +1 -1
  66. package/plugins/deepwork/agents/dw-explore.toml +1 -1
  67. package/plugins/deepwork/agents/dw-frontend.toml +1 -1
  68. package/plugins/deepwork/agents/dw-hard-reasoning.toml +1 -1
  69. package/plugins/deepwork/agents/dw-media-reader.toml +1 -1
  70. package/plugins/deepwork/agents/dw-normal-task.toml +1 -1
  71. package/plugins/deepwork/agents/dw-oracle.toml +2 -2
  72. package/plugins/deepwork/agents/dw-orchestrator.toml +1 -1
  73. package/plugins/deepwork/agents/dw-plan-critic.toml +1 -1
  74. package/plugins/deepwork/agents/dw-planner.toml +1 -1
  75. package/plugins/deepwork/agents/dw-quick.toml +1 -1
  76. package/plugins/deepwork/agents/dw-research.toml +1 -1
  77. package/plugins/deepwork/agents/dw-reviewer.toml +2 -2
  78. package/plugins/deepwork/package.json +1 -1
  79. package/plugins/deepwork/skills/deepwork/SKILL.md +19 -9
  80. package/plugins/deepwork/skills/deepwork-requesting-code-review/SKILL.md +2 -0
  81. package/plugins/deepwork/skills/frontend/references/design/README.md +4 -4
  82. package/plugins/deepwork/skills/frontend/references/design/design-system-architecture.md +12 -7
  83. package/prompts/codex/category/coding.md +4 -0
  84. package/prompts/codex/category/complex.md +4 -0
  85. package/prompts/codex/category/creative.md +4 -0
  86. package/prompts/codex/category/deep.md +4 -0
  87. package/prompts/codex/category/documenting.md +4 -0
  88. package/prompts/codex/category/frontend.md +4 -0
  89. package/prompts/codex/category/hard-reasoning.md +4 -0
  90. package/prompts/codex/category/normal-task.md +4 -0
  91. package/prompts/codex/category/quick.md +4 -0
  92. package/prompts/codex/category/research.md +4 -0
  93. package/prompts/codex/deepwork/codex.md +10 -4
  94. package/prompts/codex/deepwork/default.md +6 -0
  95. package/prompts/codex/deepwork/gemini.md +7 -0
  96. package/prompts/codex/deepwork/glm.md +6 -0
  97. package/prompts/codex/deepwork/gpt-5.6.md +8 -0
  98. package/prompts/codex/deepwork/gpt.md +6 -0
  99. package/prompts/codex/deepwork/planner.md +6 -0
  100. package/prompts/omo/category/coding.md +4 -0
  101. package/prompts/omo/category/complex.md +4 -0
  102. package/prompts/omo/category/creative.md +4 -0
  103. package/prompts/omo/category/deep.md +4 -0
  104. package/prompts/omo/category/documenting.md +4 -0
  105. package/prompts/omo/category/frontend.md +4 -0
  106. package/prompts/omo/category/hard-reasoning.md +4 -0
  107. package/prompts/omo/category/normal-task.md +4 -0
  108. package/prompts/omo/category/quick.md +4 -0
  109. package/prompts/omo/category/research.md +4 -0
  110. package/prompts/omo/deepwork/codex.md +10 -4
  111. package/prompts/omo/deepwork/default.md +8 -2
  112. package/prompts/omo/deepwork/gemini.md +8 -2
  113. package/prompts/omo/deepwork/glm.md +6 -0
  114. package/prompts/omo/deepwork/gpt-5.6.md +8 -0
  115. package/prompts/omo/deepwork/gpt.md +7 -1
  116. package/prompts/omo/deepwork/planner.md +6 -0
  117. package/prompts/v1/agents/plan-critic.md +1 -1
  118. package/prompts/v1/agents/planner.md +1 -1
  119. package/prompts/v1/category/coding.md +4 -0
  120. package/prompts/v1/category/complex.md +4 -0
  121. package/prompts/v1/category/creative.md +4 -0
  122. package/prompts/v1/category/deep.md +4 -0
  123. package/prompts/v1/category/documenting.md +4 -0
  124. package/prompts/v1/category/frontend.md +4 -0
  125. package/prompts/v1/category/hard-reasoning.md +4 -0
  126. package/prompts/v1/category/normal-task.md +4 -0
  127. package/prompts/v1/category/quick.md +4 -0
  128. package/prompts/v1/category/research.md +4 -0
  129. package/prompts/v1/deepwork/codex.md +10 -4
  130. package/prompts/v1/deepwork/default.md +6 -0
  131. package/prompts/v1/deepwork/gemini.md +9 -2
  132. package/prompts/v1/deepwork/glm.md +6 -0
  133. package/prompts/v1/deepwork/gpt-5.6.md +8 -0
  134. package/prompts/v1/deepwork/gpt.md +6 -0
  135. package/prompts/v1/deepwork/planner.md +6 -0
  136. package/skills/frontend/references/design/README.md +4 -4
  137. package/skills/frontend/references/design/design-system-architecture.md +12 -7
  138. package/skills/v1/requesting-code-review/SKILL.md +2 -0
@@ -2,6 +2,10 @@
2
2
 
3
3
  You are operating in the **research** category. Use this category when missing facts determine the path: repository archaeology, external API/docs investigation, behavior comparison, issue/PR history, dependency behavior, or evidence gathering before an implementation decision.
4
4
 
5
+ ## Shell Adaptation
6
+
7
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
8
+
5
9
  ## OPERATING POSTURE
6
10
 
7
11
  - **Goal, not plan.** The caller gave you an outcome. They did not give you a step list. Your first job is to find the facts that decide the path.
@@ -188,8 +188,8 @@ artifact path the moment it happens. Update `## Now` and
188
188
  is your durable memory and it OUTLIVES the context window. After any
189
189
  compaction or context loss (a `Context compacted` notice, a summarized
190
190
  history, or you no longer see your own earlier steps), STOP and re-read
191
- the WHOLE notepad FIRST — `bash cat "$NOTE"`, or read the path
192
- directly — before any other action, then resume from `## Now`. Recover
191
+ the WHOLE notepad FIRST — use the file-read tool or an active-shell
192
+ command adapted to the current platform — before any other action, then resume from `## Now`. Recover
193
193
  state from the notepad; do not re-plan from scratch or re-run completed
194
194
  steps.
195
195
 
@@ -223,8 +223,8 @@ serialize only when one output strictly feeds the next.
223
223
  inactive/uninitialized, or cold-start unavailable, keep moving with
224
224
  Read/Grep/Glob/LSP and the ast-grep skill.
225
225
  - Repo-wide inspection, CLI smoke tests, git/history, bounded command
226
- output → use the harness shell tool with PowerShell syntax when the
227
- command itself is the evidence. Use `rg` for content search and `git`
226
+ output → use the harness shell tool with the active shell's syntax when the
227
+ command itself is the evidence, honoring the platform declared by the runtime/tool description. Use `rg` for content search and `git`
228
228
  for history/status from that shell; prefer dedicated `read`/LSP tools
229
229
  for file content and symbols. For terminal UI evidence, capture an
230
230
  existing pane; do not launch ordinary commands through a pane capture.
@@ -241,6 +241,12 @@ unfamiliar, delegate to the `code-search` subagent (read-only codebase
241
241
  search, absolute-path results). For research that leaves the repo —
242
242
  library/API/docs/web — delegate to the `doc-search` subagent. Spawn them with `run_in_background=true` only when independent root work remains, and keep doing that root work while they run.
243
243
 
244
+ ## Shell Adaptation
245
+
246
+ - Shell snippets and command examples in prompts or skills are illustrative, not environment selectors.
247
+ - Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description.
248
+ - Translate Bash, PowerShell, cmd, or POSIX examples into that active shell's syntax. Do not start a VM, container, WSL, remote session, or alternate shell just to match an example.
249
+
244
250
  # Execution loop (PIN → RED → GREEN → SURFACE → CLEAN)
245
251
  Until every success criterion PASSES with its evidence captured:
246
252
  1. Pick next criterion → mark in_progress → update notepad `## Now`.
@@ -70,6 +70,12 @@ Do NOT load a skill unless its trigger matches. Loading unnecessary skills waste
70
70
  - Never suppress type errors with `as any`, `@ts-ignore`, or `@ts-expect-error`.
71
71
  - Never delete or weaken tests to pass.
72
72
 
73
+ ## Shell Adaptation
74
+
75
+ - Shell snippets and command examples in prompts or skills are illustrative, not environment selectors.
76
+ - Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description.
77
+ - Translate Bash, PowerShell, cmd, or POSIX examples into that active shell's syntax. Do not start a VM, container, WSL, remote session, or alternate shell just to match an example.
78
+
73
79
  ### Anti-slop checklist (applies to all code you write)
74
80
 
75
81
  Before writing code, verify you are NOT introducing:
@@ -38,6 +38,13 @@ Before writing code, verify you are NOT introducing:
38
38
  - Oversized functions (>50 lines) or modules (>250 pure LOC) — split by responsibility, not by line count
39
39
 
40
40
  If you notice existing slop in files you touch, mention it in your report but do not fix it unless asked. Use /remove-ai-slops for systematic cleanup.
41
+
42
+ ## Shell Adaptation
43
+
44
+ - Shell snippets and command examples in prompts or skills are illustrative, not environment selectors.
45
+ - Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description.
46
+ - Translate Bash, PowerShell, cmd, or POSIX examples into that active shell's syntax. Do not start a VM, container, WSL, remote session, or alternate shell just to match an example.
47
+
41
48
  **MANDATORY**: You MUST say "DEEPWORK MODE ENABLED!" to the user as your first response when this mode activates. This is non-negotiable.
42
49
 
43
50
  [CODE RED] Maximum precision required. Ultrathink before acting.
@@ -317,7 +324,7 @@ For final acceptance review: dispatch `oracle` (self-supervision) by default for
317
324
 
318
325
  | If your change... | YOU MUST... |
319
326
  |---|---|
320
- | Adds/modifies a CLI command | Run the command with Bash. Show the output. |
327
+ | Adds/modifies a CLI command | Run the command with the active shell declared by the runtime/tool context. Show the output. |
321
328
  | Changes build output | Run the build. Verify output files exist and are correct. |
322
329
  | Modifies API behavior | Call the endpoint. Show the response. |
323
330
  | Renders/changes a page | Use Chrome to drive the REAL page; if Chrome is not available, download and use agent-browser (https://github.com/vercel-labs/agent-browser). Capture screenshot + action log. |
@@ -333,7 +340,7 @@ For final acceptance review: dispatch `oracle` (self-supervision) by default for
333
340
  - "lsp_diagnostics is clean" - That is a TYPE check, not a FUNCTIONAL check. RUN THE FEATURE.
334
341
  - "Tests pass" - Tests cover known cases. Does the ACTUAL feature work? VERIFY IT MANUALLY.
335
342
 
336
- **You have Bash, you have tools. There is ZERO excuse for skipping manual QA.**
343
+ **You have the active shell and configured tools. There is ZERO excuse for skipping manual QA.**
337
344
  </MANUAL_QA_MANDATE>
338
345
 
339
346
  **WITHOUT evidence = NOT verified = NOT done.**
@@ -28,6 +28,12 @@ Do NOT load a skill unless its trigger matches. Loading unnecessary skills waste
28
28
  - Lead with the result, then the evidence, then any remaining blocker.
29
29
  </output_verbosity_spec>
30
30
 
31
+ ## Shell Adaptation
32
+
33
+ - Shell snippets and command examples in prompts or skills are illustrative, not environment selectors.
34
+ - Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description.
35
+ - Translate Bash, PowerShell, cmd, or POSIX examples into that active shell's syntax. Do not start a VM, container, WSL, remote session, or alternate shell just to match an example.
36
+
31
37
  <scope_constraints>
32
38
  - Implement EXACTLY and ONLY what the user requested.
33
39
  - No bonus features, opportunistic refactors, style embellishments, or speculative cleanup.
@@ -4,6 +4,12 @@
4
4
 
5
5
  Apply this layer only when the selected model is in the GPT-5.6 family (`gpt-5.6`, Sol, Terra, or Luna). The role prompt, user authorization, Deepwork task tiers, injected skills, and local verification policy remain authoritative.
6
6
 
7
+ ## Shell Adaptation
8
+
9
+ - Shell snippets and command examples in prompts or skills are illustrative, not environment selectors.
10
+ - Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description.
11
+ - Translate Bash, PowerShell, cmd, or POSIX examples into that active shell's syntax. Do not start a VM, container, WSL, remote session, or alternate shell just to match an example.
12
+
7
13
  ## Outcome-first execution
8
14
 
9
15
  - Start each non-trivial task by naming the concrete outcome being established, then take the smallest next action that proves or advances it.
@@ -12,6 +18,8 @@ Apply this layer only when the selected model is in the GPT-5.6 family (`gpt-5.6
12
18
 
13
19
  ## Retrieval and delegation thresholds
14
20
 
21
+ - Default to direct work. Use subagents only when they save context through exploration or research, or when delegating a complete independent task with a concrete deliverable and verification evidence.
22
+ - Nested subagent calls require a distinct deliverable at each level and must respect the configured subagent depth limit. Avoid speculative nested delegation.
15
23
  - Use a direct lookup when the caller gives the file, symbol, or one local question that decides the next action.
16
24
  - Use direct and background tracks together only for independent unknowns, unfamiliar module layout, or a material external fact. Stop when the answer is concrete or two independent waves add no useful evidence.
17
25
  - Every delegated task must state its outcome, relevant scope, expected deliverable, verification evidence, and non-goals. A timeout, acknowledgement, or partial report is not completion.
@@ -202,6 +202,12 @@ Exemptions (all tiers): pure prompt text, formatting, comment-only edits, versio
202
202
  If QA starts a server, browser, tmux session, port, temp dir, or background process, clean it up and record the cleanup.
203
203
  </MANUAL_QA_MANDATE>
204
204
 
205
+ ## Shell Adaptation
206
+
207
+ - Shell snippets and command examples in prompts or skills are illustrative, not environment selectors.
208
+ - Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description.
209
+ - Translate Bash, PowerShell, cmd, or POSIX examples into that active shell's syntax. Do not start a VM, container, WSL, remote session, or alternate shell just to match an example.
210
+
205
211
  ## REVIEWER GATE (triggered)
206
212
 
207
213
  Trigger if user said "엄밀"/"strictly"/"rigorously"/"properly review", or task touches 3+ files OR ran 20+ turns OR 30+ min, or it's a refactor/migration/perf/security change. Spawn a high-rigor reviewer via `task` with goal + scenarios + evidence + diff. Reviewer verdict is BINDING; "looks good but..." = rejection. Re-submit until UNCONDITIONAL approval before declaring done.
@@ -22,6 +22,12 @@ Use the path-backed `writing-plans` skill as the canonical full planning workflo
22
22
  - Do not implement — not directly and not by proxy. A subagent you dispatch that edits product code is you implementing. Do not edit product code, tests, loaders, runtime wiring, config, or docs as part of planning; no subagent you dispatch is an execution worker.
23
23
  - If the user asks you to implement, state that you are the planner and hand off to the execution workflow.
24
24
 
25
+ ## Shell Adaptation
26
+
27
+ - Shell snippets and command examples in prompts or skills are illustrative, not environment selectors.
28
+ - Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description.
29
+ - Translate Bash, PowerShell, cmd, or POSIX examples into that active shell's syntax. Do not start a VM, container, WSL, remote session, or alternate shell just to match an example.
30
+
25
31
  ## Evidence And QA
26
32
 
27
33
  - Every plan must name the evidence needed to prove the work, not just the commands to run.
@@ -35,7 +35,7 @@ Before touching any UI code, before routing to any reference, before even thinki
35
35
  3. If the project has existing UI code, **extract** the implicit system (colors, fonts, spacing already in use) rather than inventing from scratch.
36
36
  4. If the project is greenfield, **ask the user one question**: "What should this feel like?" — or infer from context.
37
37
  5. For greenfield UI, start `DESIGN.md` with `## 0. Research Log`: record 2-3 relevant local Layer B/design candidates, the selected Layer A + Layer B and rationale, and any optional evidence from `ui-ux-db`, a user-provided image, or a local mockup. If a source/tool is unavailable or irrelevant, record why; do not force network research.
38
- 6. Write `DESIGN.md` at project root following the 8-section structure from the reference.
38
+ 6. Write `DESIGN.md` at project root following the nine-section structure from the reference.
39
39
  7. **Do not proceed to any component implementation until `DESIGN.md` exists and is committed to context.**
40
40
 
41
41
  #### If YES design system exists → READ IT, FOLLOW IT
@@ -49,7 +49,7 @@ Before touching any UI code, before routing to any reference, before even thinki
49
49
 
50
50
  ### Primitive Showcase Gate (MANDATORY for greenfield product UI)
51
51
 
52
- Before building a product screen, `DESIGN.md` Section 5 must list the intended primitives and states. Verify each relevant primitive in a component showcase or equivalent state page: default, hover, focus, disabled, loading, empty, and error. For runnable UI, retain real-browser validation at 375 / 768 / 1280px; when a runnable surface is unavailable, state exactly which states and breakpoints were not verified rather than claiming the gate passed.
52
+ Before building a product screen, add the intended primitives and states to `DESIGN.md` Section 5 under `Planned Showcase Primitives`. This is a pre-implementation verification checklist, not reusable component documentation. Verify each relevant primitive in a component showcase or equivalent state page: default, hover, focus, disabled, loading, empty, and error. Keep component documentation only for implemented reusable patterns used 2+ times. For runnable UI, retain real-browser validation at 375 / 768 / 1280px; when a runnable surface is unavailable, state exactly which states and breakpoints were not verified rather than claiming the gate passed.
53
53
 
54
54
 
55
55
  ## Phase 0.5 — React Dev Tooling Gate (MANDATORY for React projects)
@@ -185,8 +185,8 @@ Once references are loaded, before writing any UI code:
185
185
  6. **Server vs client components (Next.js).** If motion/state/portals are involved, isolate as a `'use client'` leaf component. Don't bleed `'use client'` to the page level.
186
186
  7. **Match the project's existing patterns FIRST.** If the codebase already uses CSS Modules, don't introduce Tailwind. If it uses styled-components, don't introduce CSS-in-JS variants. The references guide *style*, not *infrastructure*.
187
187
  8. **All tokens trace back to `DESIGN.md`.** No orphan hex codes, no magic px values. If you need a new token, update `DESIGN.md` first.
188
- 9. **New reusable patterns (used 2+ times) get documented back into `DESIGN.md` Section 5.**
189
- 10. **Greenfield product screens passed the Primitive Showcase Gate.** Verify the Section 5 primitives and their default, hover, focus, disabled, loading, empty, and error states before composing them into a product screen.
188
+ 9. **Implemented reusable patterns used 2+ times get documented back into `DESIGN.md` Section 5.**
189
+ 10. **Greenfield product screens passed the Primitive Showcase Gate.** Complete the Section 5 `Planned Showcase Primitives` pre-implementation verification checklist for default, hover, focus, disabled, loading, empty, and error states before composing them into a product screen; the checklist is not reusable component documentation.
190
190
 
191
191
  ## Quick lookup table — most common requests
192
192
 
@@ -15,7 +15,7 @@ Every frontend project MUST have a `DESIGN.md` at its root. This file is the sin
15
15
 
16
16
  ## DESIGN.md Structure
17
17
 
18
- The file has 8 sections. Every section is mandatory. Skip nothing. Section 0 applies to greenfield UI; existing-project extraction may state that historical research is unavailable instead of inventing it.
18
+ The file has nine sections, numbered 0 through 8. Every section is mandatory. Skip nothing. Section 0 applies to greenfield UI; existing-project extraction may state that historical research is unavailable instead of inventing it.
19
19
 
20
20
  ```markdown
21
21
  # [Project Name] Design System
@@ -120,7 +120,13 @@ All spacing derives from a base of **4px**.
120
120
 
121
121
  ## 5. Components
122
122
 
123
- Document reusable patterns as they emerge. Format:
123
+ ### Planned Showcase Primitives
124
+
125
+ This is a pre-implementation verification checklist, not reusable component documentation. Before composing a greenfield product screen, list each intended primitive and check its applicable default, hover, focus, disabled, loading, empty, and error states in a component showcase or equivalent state page.
126
+
127
+ ### Implemented Reusable Patterns
128
+
129
+ Document only implemented reusable patterns used 2+ times. Format:
124
130
 
125
131
  ### [Component Name]
126
132
  - **Structure**: HTML/JSX outline
@@ -130,8 +136,7 @@ Document reusable patterns as they emerge. Format:
130
136
  - **Accessibility**: keyboard, ARIA, contrast
131
137
  - **Motion**: entry/exit animations
132
138
 
133
- Start with components used 2+ times. Do not pre-document components
134
- that don't exist yet.
139
+ Do not promote planned primitives or one-off implementations into reusable component documentation.
135
140
 
136
141
  ## 6. Motion & Interaction
137
142
 
@@ -196,7 +201,7 @@ Each exception records its location, reason, owner, and exit criteria. An agent
196
201
  4. **Define palette** — derive from atmosphere. Not random. Not generic.
197
202
  5. **Set typography** — match the atmosphere. Editorial = serif. Technical = mono-heavy. Clean = geometric sans.
198
203
  6. **Lock spacing** — base-4 system. Customize only the section-level values.
199
- 7. **Document initial primitives and their states** — enough to pass the Primitive Showcase Gate before composing a product screen.
204
+ 7. **Fill in Planned Showcase Primitives** — use the pre-implementation verification checklist to cover intended primitives and states before composing a product screen; do not treat it as reusable component documentation.
200
205
  8. **Choose depth strategy** — one. Not "a mix."
201
206
  9. **Set accessibility constraints and record no debt without user authorization.**
202
207
  10. **Write it to `DESIGN.md`** at project root.
@@ -218,9 +223,9 @@ After every component implementation, check:
218
223
  - [ ] All spacing values are multiples of `--space-1` (4px). No magic numbers.
219
224
  - [ ] Interactive elements have all required states from Section 6.
220
225
  - [ ] Depth treatment matches the chosen strategy from Section 7.
221
- - [ ] Component reused 2+ times? Documented in Section 5.
226
+ - [ ] Implemented reusable pattern used 2+ times? Documented in Section 5.
222
227
  - [ ] Motion follows the timing table. No arbitrary durations.
223
- - [ ] Greenfield primitives have a showcase (or equivalent state page) covering default, hover, focus, disabled, loading, empty, and error before product-screen composition.
228
+ - [ ] `Planned Showcase Primitives` is complete for greenfield UI, with a showcase (or equivalent state page) covering default, hover, focus, disabled, loading, empty, and error before product-screen composition.
224
229
  - [ ] Section 8 constraints were checked; any accepted debt has location, reason, owner, exit criteria, and explicit user authorization.
225
230
 
226
231
  ## Memory Management
@@ -79,6 +79,8 @@ Two reviewer agents are available, with distinct semantics:
79
79
 
80
80
  `oracle` can also be an optional independent consultation for a high-risk implementation plan. It does not replace the `plan-critic` receipt, does not make dual plan review mandatory, and a timeout or partial response is not a conclusion.
81
81
 
82
+ **GPT/Codex reasoning policy:** `reviewer` and `oracle` use `xhigh` minimum. For complex or high-risk review or verification, request local `max`; the adapter maps it to the target's maximum supported effort (currently `xhigh` for GPT/Codex). `plan-critic` remains `xhigh`.
83
+
82
84
  ## Example
83
85
 
84
86
  ```