oh-my-opencode 4.17.1 → 4.18.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 (80) hide show
  1. package/.agents/skills/codex-qa/SKILL.md +2 -0
  2. package/dist/cli/get-local-version/types.d.ts +1 -1
  3. package/dist/cli/index.js +55 -25
  4. package/dist/cli-node/index.js +55 -25
  5. package/dist/index.js +23 -17
  6. package/dist/skills/frontend/SKILL.md +1 -1
  7. package/dist/skills/frontend/references/design/README.md +9 -0
  8. package/dist/skills/frontend/references/design/design-system-architecture.md +4 -2
  9. package/dist/skills/frontend/references/design/layout-skill.md +107 -0
  10. package/dist/skills/programming/SKILL.md +12 -2
  11. package/package.json +14 -13
  12. package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
  13. package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
  14. package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
  15. package/packages/omo-codex/plugin/components/codegraph/package.json +1 -1
  16. package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
  17. package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
  18. package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
  19. package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
  20. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
  21. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
  22. package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
  23. package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
  24. package/packages/omo-codex/plugin/components/rules/bundled-rules/hephaestus/gpt-5.6.md +7 -5
  25. package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
  26. package/packages/omo-codex/plugin/components/rules/package.json +1 -1
  27. package/packages/omo-codex/plugin/components/start-work-continuation/hooks/hooks.json +2 -2
  28. package/packages/omo-codex/plugin/components/start-work-continuation/package.json +1 -1
  29. package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
  30. package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
  31. package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
  32. package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
  33. package/packages/omo-codex/plugin/components/ultrawork/directive.md +37 -10
  34. package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
  35. package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
  36. package/packages/omo-codex/plugin/components/ultrawork/skills/ultrawork/SKILL.md +37 -10
  37. package/packages/omo-codex/plugin/components/ulw-loop/directive.md +37 -10
  38. package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +4 -4
  39. package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
  40. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/SKILL.md +1 -1
  41. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +4 -4
  42. package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
  43. package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
  44. package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
  45. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-codegraph-init-guidance.json +1 -1
  46. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
  47. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
  48. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
  49. package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
  50. package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
  51. package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
  52. package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
  53. package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
  54. package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
  55. package/packages/omo-codex/plugin/hooks/session-start-checking-codegraph-bootstrap.json +1 -1
  56. package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
  57. package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
  58. package/packages/omo-codex/plugin/hooks/stop-checking-start-work-continuation.json +1 -1
  59. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
  60. package/packages/omo-codex/plugin/hooks/subagent-stop-checking-start-work-continuation.json +1 -1
  61. package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
  62. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
  63. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
  64. package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
  65. package/packages/omo-codex/plugin/package-lock.json +13 -13
  66. package/packages/omo-codex/plugin/package.json +1 -1
  67. package/packages/omo-codex/plugin/skills/frontend/SKILL.md +1 -1
  68. package/packages/omo-codex/plugin/skills/frontend/references/design/README.md +9 -0
  69. package/packages/omo-codex/plugin/skills/frontend/references/design/design-system-architecture.md +4 -2
  70. package/packages/omo-codex/plugin/skills/frontend/references/design/layout-skill.md +107 -0
  71. package/packages/omo-codex/plugin/skills/programming/SKILL.md +12 -2
  72. package/packages/omo-codex/plugin/skills/ultrawork/SKILL.md +37 -10
  73. package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +1 -1
  74. package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +4 -4
  75. package/packages/omo-codex/scripts/install-dist/install-local.mjs +24 -12
  76. package/packages/shared-skills/skills/frontend/SKILL.md +1 -1
  77. package/packages/shared-skills/skills/frontend/references/design/README.md +9 -0
  78. package/packages/shared-skills/skills/frontend/references/design/design-system-architecture.md +4 -2
  79. package/packages/shared-skills/skills/frontend/references/design/layout-skill.md +107 -0
  80. package/packages/shared-skills/skills/programming/SKILL.md +12 -2
@@ -169,6 +169,12 @@ Triggers (mid-conversation, not initial): "you keep leaving placeholders", "stop
169
169
 
170
170
  **Action:** Add `output-skill.md` on top of whatever is currently loaded. This stacks cleanly — it is purely about output completeness, not visual style.
171
171
 
172
+ ### Step 8 — Is the screen an app shell, not a scroll-the-page site?
173
+
174
+ Triggers: dashboard, settings, mail/inbox, list-detail, command surface, split panes, fixed sidebar + scrolling body, admin console — or the user reports a layout that breaks when content gets long, empty, or unbroken (panel won't scroll, footer pushed off-screen, horizontal overflow on mobile).
175
+
176
+ **Action:** Add `layout-skill.md` on top of whatever style skill you selected in Steps 1-2. It carries scroll-ownership doctrine, the two silently-failing CSS contracts (`min-block-size: 0` scroll shells, `minmax(min(…),100%)` grids), the named-primitive vocabulary, container-vs-viewport routing, and the content-stress matrix. It adds no visual direction — the style skill still owns taste. Skip it for pure scroll-the-document marketing pages, where `taste-skill` layout guidance already fits.
177
+
172
178
  ## Stacking rules (read this once, internalize it)
173
179
 
174
180
  1. **At most one Layer A *style* skill at a time.** A layout cannot be both `minimalist-skill` and `brutalist-skill` simultaneously — they encode opposite spacing and typography philosophies. Pick one.
@@ -177,6 +183,7 @@ Triggers (mid-conversation, not initial): "you keep leaving placeholders", "stop
177
183
  4. **`redesign-skill.md` replaces a style-skill** when the task is auditing, not building. Stack a Layer B brand if the user wants a specific direction.
178
184
  5. **`image-to-code-skill.md` pairs with one imagegen skill** for the full flow.
179
185
  6. **Layer B (brand DESIGN.md) is orthogonal to Layer A.** You can pair any Layer A skill with any Layer B brand. Use Layer B as the source of color/type/component tokens; let Layer A drive the execution discipline.
186
+ 7. **`layout-skill.md` stacks on top of any style skill** for app-shell / dashboard / split-pane work. It owns spatial structure and scroll ownership only — no visual direction — so it never conflicts with the style skill you picked.
180
187
 
181
188
  ## Anti-patterns — do not do these
182
189
 
@@ -218,6 +225,8 @@ Once references are loaded, before writing any UI code:
218
225
  | "Generate a brand identity board for {company}" | `imagegen-brandkit.md` |
219
226
  | "Stop using placeholders" | Add `output-skill.md` to current stack |
220
227
  | "Also output a DESIGN.md doc" | Add `stitch-skill.md` to current stack |
228
+ | "Build a dashboard / settings / inbox / app shell" | one style skill (usually `taste-skill.md`) + `layout-skill.md` |
229
+ | "Panel won't scroll / footer pushed off-screen / mobile overflow" | Add `layout-skill.md` to current stack |
221
230
 
222
231
  ## Phase Final — Design QA (MANDATORY, runs after implementation)
223
232
 
@@ -116,7 +116,7 @@ All spacing derives from a base of **4px**.
116
116
  - Breakpoints: sm 640px, md 768px, lg 1024px, xl 1280px, 2xl 1536px
117
117
 
118
118
  ### Rules
119
- - No magic numbers. Every spacing value maps to a token.
119
+ - Tokenize design *intent* spacing steps, content width, gutters, section gaps, density steps. Keep browser *mechanics* raw: `auto`, `%`, `min-content`, `max-content`, `fit-content`, `clamp()`, viewport/container units, intrinsic sizing. A `clamp(1rem, 4vw, 2rem)` gap or a `minmax(min(16rem, 100%), 1fr)` track is mechanics, not a magic number — do not force it into a token.
120
120
  - Asymmetric spacing is intentional, not accidental — document why.
121
121
 
122
122
  ## 5. Components
@@ -130,6 +130,7 @@ Document reusable patterns before implementation for greenfield work, and as the
130
130
  - **States**: default, hover, active, focus, disabled, loading, empty, error
131
131
  - **Accessibility**: keyboard, ARIA, contrast
132
132
  - **Motion**: entry/exit animations
133
+ - **Layout**: spatial primitive (stack / cluster / sidebar / grid / shell…) and, if the component scrolls or pins anything, its scroll owner
133
134
 
134
135
  Greenfield starts with the primitives you are about to build, assembled from
135
136
  the selected references' component anatomy and adapted to the user's product.
@@ -214,13 +215,14 @@ After every component implementation, check:
214
215
 
215
216
  - [ ] All colors reference tokens from Section 2. No raw hex outside `DESIGN.md`.
216
217
  - [ ] All font sizes match Section 3 scale. No arbitrary sizes.
217
- - [ ] All spacing values are multiples of `--space-1` (4px). No magic numbers.
218
+ - [ ] Spacing intent maps to a token (Section 4); browser mechanics (`clamp()`, intrinsic sizing, container units) stay raw. No arbitrary px.
218
219
  - [ ] Interactive elements have all required states from Section 5 and Section 6.
219
220
  - [ ] Depth treatment matches the chosen strategy from Section 7.
220
221
  - [ ] Component reused 2+ times? Documented in Section 5.
221
222
  - [ ] Motion follows the timing table. No arbitrary durations.
222
223
  - [ ] Component visual QA passed for each primitive and required state before product screens were composed.
223
224
  - [ ] Section 8 accessibility constraints hold for the new component; any new debt is recorded in Section 8, not silently accepted.
225
+ - [ ] Survives content stress: empty, long label, unbroken string. Reflows to one readable column at 375px with no horizontal scroll of primary content.
224
226
 
225
227
  ## Memory Management
226
228
 
@@ -0,0 +1,107 @@
1
+ ---
2
+ name: layout-skill
3
+ description: "Layer A layout-mechanics reference. Stacks on any style skill when the screen is an app shell, dashboard, settings, list-detail, mail/inbox, or any layout with fixed regions plus a scrolling body — or when a layout breaks under long, empty, or unbroken content. Owns spatial structure and scroll ownership; owns zero visual taste. Load it alongside a style skill; it does not replace one."
4
+ ---
5
+
6
+ # Layout Mechanics
7
+
8
+ Style skills decide how a surface looks. This file decides how it is *built to hold content* — what scrolls, what stays fixed, how regions shrink, and which layouts survive real data. It stacks on top of any Layer A style skill (`taste-skill`, `minimalist-skill`, `soft-skill`, `brutalist-skill`, `gpt-tasteskill`) and any Layer B brand. It adds ZERO visual direction — color, type, shadow, radius, and motion still come from the style skill and `DESIGN.md`.
9
+
10
+ Load this when the screen is an **application shell**, not a scroll-the-whole-document marketing page: dashboards, settings, list-detail, mail/inbox, command surfaces, split panes, sidebars — or when a page that looked fine breaks the moment content gets long, empty, or unbroken.
11
+
12
+ ## 1. Scroll ownership — decide this BEFORE writing layout CSS
13
+
14
+ The single most common agent-built layout bug is an app shell where the wrong thing scrolls: the whole page scrolls when only a panel should, two panels fight over the scrollbar, or a "fixed" header scrolls away. Prevent it by naming ownership up front, in `DESIGN.md` and in the component:
15
+
16
+ - **What scrolls?** Name the ONE element that owns vertical scroll for this region.
17
+ - **What stays fixed?** Header, sidebar, footer, toolbar — list them.
18
+ - **Where is height determined?** The scroll container needs a bounded height ancestor, or it will grow instead of scroll.
19
+
20
+ Rules:
21
+
22
+ - **One scroll container per region unless each extra one has a named job.** Nested scrollbars with no declared responsibility are a defect — the user loses track of what a wheel/trackpad gesture will move.
23
+ - Full-height shells are bounded by `100dvh`/`100dvb` (dynamic viewport units), never `100vh` — `vh` causes the iOS Safari address-bar jump.
24
+ - A sticky element (`position: sticky`) follows document scroll; a fixed shell region (grid row/column with `overflow: auto` body) owns its own scroll. Do not mix the two models in one region without reason.
25
+
26
+ ## 2. The two CSS contracts agents get wrong
27
+
28
+ These two are worth memorizing verbatim. They fail *silently* — the layout looks right until content arrives.
29
+
30
+ **Bounded scroll shell** (fixed header/footer, scrolling body):
31
+
32
+ ```css
33
+ .shell {
34
+ display: grid;
35
+ grid-template-rows: auto minmax(0, 1fr) auto; /* header / body / footer */
36
+ max-block-size: 100dvb;
37
+ }
38
+ .shell__body {
39
+ min-block-size: 0; /* WITHOUT THIS the grid child refuses to shrink and overflow never fires */
40
+ overflow: auto;
41
+ }
42
+ ```
43
+
44
+ The `min-block-size: 0` (or `min-height: 0`) on the scroll child is the fix for "why won't my panel scroll — it just pushes the footer off-screen." A grid/flex child's default `min-*-size: auto` refuses to shrink below its content. The same applies to a flex column: the scrollable child needs `min-height: 0`.
45
+
46
+ **Overflow-safe intrinsic grid** (repeat as many columns as fit, no media queries):
47
+
48
+ ```css
49
+ .grid {
50
+ display: grid;
51
+ gap: var(--gap);
52
+ grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
53
+ }
54
+ ```
55
+
56
+ The inner `min(16rem, 100%)` is load-bearing: plain `minmax(16rem, 1fr)` forces a 16rem track even when the container is 12rem wide, causing horizontal overflow on narrow screens. `min(…, 100%)` lets the track collapse below its floor when space is genuinely tight. Use `auto-fit` to stretch the last row, `auto-fill` to keep empty tracks.
57
+
58
+ ## 3. Named layout primitives (shared vocabulary)
59
+
60
+ Build shells from these named primitives instead of ad-hoc fl/grid. Naming them makes `DESIGN.md` Section 5 and subagent handoffs precise ("wrap it in a `sidebar` with a 20rem aside" beats "put it on the left, roughly"). Lineage: Every Layout + web.dev one-line layouts.
61
+
62
+ | Primitive | Spatial job | Core mechanic |
63
+ |---|---|---|
64
+ | **stack** | Vertical rhythm between siblings | flex column + `gap`, or `> * + *` margin |
65
+ | **cluster** | Wrapping row of items (tags, actions) | `flex-wrap: wrap` + `gap`; wraps before overflow |
66
+ | **content-limiter** | Readable prose measure inside a fluid parent | `max-inline-size: ~65ch; margin-inline: auto` |
67
+ | **sidebar** | Narrow aside + fluid main, wraps when tight | flex; aside fixed basis, main `min-inline-size` floor, both `flex-wrap` |
68
+ | **switcher** | N equal regions: row when roomy, stack when tight, NO breakpoint | flex + `min()` basis so it flips at a content threshold |
69
+ | **cover** | Centered region between optional header/footer, min viewport tall | grid rows `auto 1fr auto`, `min-block-size: 100dvb` |
70
+ | **frame** | Media held to an aspect ratio | `aspect-ratio` + `object-fit: cover` |
71
+ | **reel** | Row that scrolls horizontally instead of wrapping | `overflow-inline: auto` + `scroll-snap`; declare keyboard access |
72
+ | **imposter** | Overlay centered over a parent without changing document order | `position: absolute` + translate; do not use to reorder focus |
73
+ | **overlay-stack** | Several layers intentionally in one cell | single grid cell, all children `grid-area: 1/1` |
74
+ | **scroll-body-shell** | Fixed shell regions, only the body scrolls | §2 bounded scroll shell |
75
+ | **fixed-sidenav-shell** | Side nav stays put, main scrolls | grid columns `auto 1fr`, main is the scroll owner |
76
+ | **list-detail** | Explorable list beside its detail region | two-column grid, each pane's scroll ownership named |
77
+ | **sticky-aside** | Support content stays visible during a long read | `position: sticky; top:` on the aside, document scroll |
78
+
79
+ ## 4. Container-local vs viewport-level responsiveness
80
+
81
+ Ask **what the layout is responding to** before reaching for a breakpoint:
82
+
83
+ - The component should adapt to *its own available width* (a card that's wide in main but narrow in a rail) → wrap it in `container-type: inline-size` and use `@container`. This is correct far more often than agents assume, because a component rarely knows the viewport it lands in.
84
+ - The *page frame itself* changes (sidebar collapses, columns drop) → `@media`.
85
+
86
+ Prefer intrinsic adaptation (`switcher`, `sidebar`, intrinsic grid, `clamp()`) over any query — the best breakpoint is often none. Use breakpoint *names* for layout states, never device names (`--bp-wide`, not `--bp-ipad`).
87
+
88
+ ## 5. Recipes are spatial models, not product categories
89
+
90
+ Choose a layout by the screen's spatial shape, not its product label. A settings page and a docs app both want `fixed-sidenav-shell`; a support inbox and a file browser both want `list-detail`; a metrics view and a photo gallery both want an intrinsic grid. Do not invent a bespoke "dashboard layout" when `page-grid + intrinsic grid + cluster` already covers it — and do not force marketing-page structure (hero, zigzag, bento) onto a task app.
91
+
92
+ ## 6. Content stress — the layout is not done until it survives this
93
+
94
+ Landing pages fail on taste; app shells fail on *content*. Before declaring any layout done, stress every region against:
95
+
96
+ - **Empty** — no rows, no avatar, no value. Does the region collapse gracefully or leave a broken frame?
97
+ - **Long label** — a 40-char name in a 12-char slot. Truncate (`text-overflow: ellipsis`) or wrap by design, never by accident.
98
+ - **Long paragraph** — does the measure stay readable, or does text run 200 chars wide?
99
+ - **Unbroken string** — a URL or token with no spaces. Needs `overflow-wrap: anywhere` / `min-inline-size: 0`, or it forces horizontal scroll.
100
+ - **Reflow** — at 375px width the layout reflows to a single readable column with NO horizontal scrollbar. Two-dimensional scrolling of primary content is a fail.
101
+ - **Direction** — if the app supports RTL, the layout uses logical properties (`margin-inline`, `inset-inline-start`) so it mirrors correctly.
102
+
103
+ A layout that only holds the happy-path mock is not finished. Drive these states in `/visual-qa` alongside the interaction states the style skill requires.
104
+
105
+ ## Boundary
106
+
107
+ This file owns spatial structure only. It never sets color, typography, shadow, radius, or motion values — those trace to `DESIGN.md` and the loaded style skill. If you find yourself adding a brand color to a layout primitive, stop: the primitive stays layout-only and the styling wraps or composes around it.
@@ -104,9 +104,17 @@ Mocks are a last resort, not a default. The priority order:
104
104
  - **Deterministic**: no `sleep`, no wall-clock dependence, no order dependence (`-shuffle=on`, pytest-randomly, vitest random seed). Inject a `Clock`. Subscribe to the event, do not poll for it. Time-based flake is a bug, not a test issue.
105
105
  - **Isolated**: every test starts from a known fixture and tears down. `t.TempDir()`, `t.Setenv()`, transactional rollback for DB tests. Two tests passing individually but failing together is a fixture leak — fix it immediately.
106
106
 
107
- ### Prompt tests follow the same rule
107
+ ### Prompt tests: NEVER assert prose
108
108
 
109
- When tests cover LLM prompts or agent outputs, assert on **parsed structure, decisions, or rule data**, never on exact prompt strings. Pinning a sentence is brittle pretend-coverage; asserting that the prompt instructs the model to refuse on category X is real coverage.
109
+ **FORBIDDEN NO EXCEPTIONS: a test MUST NOT assert natural-language prompt text.** `expect(prompt).toContain("based on GPT-5.6")`, `not.toContain("old wording")`, `toMatchSnapshot()` on prose, grepping a sentence fragment — every one of these is pretend-coverage. It stays green while the behavior it claims to guard breaks, then blocks every legitimate rewording until someone bumps the pinned string. A reviewer MUST block it as HIGH; deleting such a test is a fix, not a coverage loss. "A nearby test already does it" is not a defense — that test is the disease, not the convention.
110
+
111
+ Assert ONLY what a machine consumes:
112
+
113
+ - the builder's routing decision — `expect(getPromptSource(model)).toBe("gpt-5-6")`, never the sentence that routing produces
114
+ - a structural token the runtime dispatches on — a tool name, a tag like `<agent-identity>`, a parsed frontmatter field
115
+ - the conditional the code enforces — skill loaded → tool present; `verbose=false` → directive absent
116
+
117
+ If no machine consumes the text, there is no seam: write NO test and say so in the PR; review guards prose. When you DELEGATE test-writing, hand the child the behavior the test must distinguish ("fails if override precedence breaks"), never a ready-made assertion string, prompt fragment, or marker to copy — a prescribed mechanism that is wrong gets implemented faithfully, and the error ships with a green suite.
110
118
 
111
119
  ### Anti-patterns the skill rejects
112
120
 
@@ -119,6 +127,8 @@ When tests cover LLM prompts or agent outputs, assert on **parsed structure, dec
119
127
  | Snapshot tests for everything | Locks formatting, not behavior. | Snapshots for *structure* (CLI help, JSON shape). Assertions for *behavior*. |
120
128
  | Removing a failing test to "unblock CI" | You just deleted a bug report. | Fix the code or fix the test — never delete to silence. |
121
129
  | `assert result is not None` and stopping there | Passes when result is garbage. | Assert the *value*, not its existence. |
130
+ | Expected value derived from the output under test (`expect(config.prompt).toBe(getPrompt(config.model))` when the criterion is about `config.prompt`) | Recomputes a projection of the output and compares it to itself — passes even when the artifact is built from the wrong input. | Derive the expected value from the test's *input*: `expect(config.prompt).toBe(getPrompt(inputModel))` (independent known-good builder fed the fixture's input), or a stable builder routing decision. |
131
+ | Override/precedence fixture equal to its fallback (override == system default) | The assertion passes whether or not the code honored the override — precedence is never exercised. | Make every value the code must select, preserve, or override differ from its fallback. Prove it: temporarily force the regression the test names, watch it fail, revert. |
122
132
  | Single happy-path E2E, no edges | Most bugs live on edges. | Edges are unit-test territory — but include at least one E2E that exercises an error path. |
123
133
 
124
134
  ---