@bonesofspring/ai-rules 0.2.46 → 0.2.48

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 (215) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/package.json +1 -1
  3. package/presets/_shared/core/agent-team/agent-artifact-contracts.md +6 -0
  4. package/presets/_shared/core/agent-team/task-framing.md +4 -0
  5. package/presets/_shared/core/quality/anti-hallucination-contract.md +2 -0
  6. package/presets/_shared/core/quality/code-quality-and-refactoring.md +11 -0
  7. package/presets/_shared/core/review/code-review-mr.md +2 -0
  8. package/presets/claude/android-kotlin/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  9. package/presets/claude/android-kotlin/rules/tooling-and-review/code-quality.md +11 -0
  10. package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +2 -0
  11. package/presets/claude/android-kotlin/team/README.md +1 -0
  12. package/presets/claude/go/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  13. package/presets/claude/go/rules/tooling-and-review/code-quality.md +11 -0
  14. package/presets/claude/go/rules/tooling-and-review/code-review.md +2 -0
  15. package/presets/claude/go/team/README.md +1 -0
  16. package/presets/claude/ios-swift/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  17. package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +11 -0
  18. package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +2 -0
  19. package/presets/claude/ios-swift/team/README.md +1 -0
  20. package/presets/claude/java/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  21. package/presets/claude/java/rules/tooling-and-review/code-quality.md +11 -0
  22. package/presets/claude/java/rules/tooling-and-review/code-review.md +2 -0
  23. package/presets/claude/java/team/README.md +1 -0
  24. package/presets/claude/mcp-ts/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  25. package/presets/claude/mcp-ts/rules/tooling-and-review/code-quality.md +11 -0
  26. package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +2 -0
  27. package/presets/claude/mcp-ts/team/README.md +1 -0
  28. package/presets/claude/next/agents/accessibility-reviewer.md +1 -0
  29. package/presets/claude/next/agents/solution-architect.md +1 -0
  30. package/presets/claude/next/agents/task-analyst.md +1 -0
  31. package/presets/claude/next/agents/tech-writer.md +2 -1
  32. package/presets/claude/next/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  33. package/presets/claude/next/rules/tooling-and-review/code-quality.md +11 -0
  34. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +2 -0
  35. package/presets/claude/next/rules/ui-and-accessibility/react-a11y-coding.md +1 -0
  36. package/presets/claude/next/team/README.md +1 -0
  37. package/presets/claude/nuxt/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  38. package/presets/claude/nuxt/rules/tooling-and-review/code-quality.md +11 -0
  39. package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +2 -0
  40. package/presets/claude/nuxt/team/README.md +1 -0
  41. package/presets/claude/php-hexagonal/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  42. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +11 -0
  43. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +2 -0
  44. package/presets/claude/php-hexagonal/team/README.md +1 -0
  45. package/presets/claude/php-laravel/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  46. package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +11 -0
  47. package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +2 -0
  48. package/presets/claude/php-laravel/team/README.md +1 -0
  49. package/presets/claude/svelte/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  50. package/presets/claude/svelte/rules/tooling-and-review/code-quality.md +11 -0
  51. package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +2 -0
  52. package/presets/claude/svelte/team/README.md +1 -0
  53. package/presets/cursor/android-kotlin/rules/anti-hallucination-contract.mdc +2 -0
  54. package/presets/cursor/android-kotlin/rules/code-quality-and-refactoring.mdc +11 -0
  55. package/presets/cursor/android-kotlin/rules/code-review-mr.mdc +2 -0
  56. package/presets/cursor/android-kotlin/team/README.md +1 -0
  57. package/presets/cursor/go/rules/anti-hallucination-contract.mdc +2 -0
  58. package/presets/cursor/go/rules/code-quality-and-refactoring.mdc +11 -0
  59. package/presets/cursor/go/rules/code-review-mr.mdc +2 -0
  60. package/presets/cursor/go/team/README.md +1 -0
  61. package/presets/cursor/ios-swift/rules/anti-hallucination-contract.mdc +2 -0
  62. package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +11 -0
  63. package/presets/cursor/ios-swift/rules/code-review-mr.mdc +2 -0
  64. package/presets/cursor/ios-swift/team/README.md +1 -0
  65. package/presets/cursor/java/rules/anti-hallucination-contract.mdc +2 -0
  66. package/presets/cursor/java/rules/code-quality-and-refactoring.mdc +11 -0
  67. package/presets/cursor/java/rules/code-review-mr.mdc +2 -0
  68. package/presets/cursor/java/team/README.md +1 -0
  69. package/presets/cursor/mcp-ts/rules/anti-hallucination-contract.mdc +2 -0
  70. package/presets/cursor/mcp-ts/rules/code-quality-and-refactoring.mdc +11 -0
  71. package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +2 -0
  72. package/presets/cursor/mcp-ts/team/README.md +1 -0
  73. package/presets/cursor/next/agents/accessibility-reviewer.md +1 -0
  74. package/presets/cursor/next/agents/solution-architect.md +1 -0
  75. package/presets/cursor/next/agents/task-analyst.md +1 -0
  76. package/presets/cursor/next/agents/tech-writer.md +2 -1
  77. package/presets/cursor/next/rules/anti-hallucination-contract.mdc +2 -0
  78. package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +11 -0
  79. package/presets/cursor/next/rules/code-review-mr.mdc +2 -0
  80. package/presets/cursor/next/rules/react-a11y-coding.mdc +1 -0
  81. package/presets/cursor/next/team/README.md +1 -0
  82. package/presets/cursor/nuxt/rules/anti-hallucination-contract.mdc +2 -0
  83. package/presets/cursor/nuxt/rules/code-quality-and-refactoring.mdc +11 -0
  84. package/presets/cursor/nuxt/rules/code-review-mr.mdc +2 -0
  85. package/presets/cursor/nuxt/team/README.md +1 -0
  86. package/presets/cursor/php-hexagonal/rules/anti-hallucination-contract.mdc +2 -0
  87. package/presets/cursor/php-hexagonal/rules/code-quality-and-refactoring.mdc +11 -0
  88. package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +2 -0
  89. package/presets/cursor/php-hexagonal/team/README.md +1 -0
  90. package/presets/cursor/php-laravel/rules/anti-hallucination-contract.mdc +2 -0
  91. package/presets/cursor/php-laravel/rules/code-quality-and-refactoring.mdc +11 -0
  92. package/presets/cursor/php-laravel/rules/code-review-mr.mdc +2 -0
  93. package/presets/cursor/php-laravel/team/README.md +1 -0
  94. package/presets/cursor/svelte/rules/anti-hallucination-contract.mdc +2 -0
  95. package/presets/cursor/svelte/rules/code-quality-and-refactoring.mdc +11 -0
  96. package/presets/cursor/svelte/rules/code-review-mr.mdc +2 -0
  97. package/presets/cursor/svelte/team/README.md +1 -0
  98. package/presets/mavis/android-kotlin/adapter-map.json +1 -1
  99. package/presets/mavis/android-kotlin/rules/anti-hallucination-contract.md +2 -0
  100. package/presets/mavis/android-kotlin/rules/code-quality-and-refactoring.md +11 -0
  101. package/presets/mavis/android-kotlin/rules/code-review-mr.md +2 -0
  102. package/presets/mavis/android-kotlin/team/README.md +1 -0
  103. package/presets/mavis/go/adapter-map.json +1 -1
  104. package/presets/mavis/go/rules/anti-hallucination-contract.md +2 -0
  105. package/presets/mavis/go/rules/code-quality-and-refactoring.md +11 -0
  106. package/presets/mavis/go/rules/code-review-mr.md +2 -0
  107. package/presets/mavis/go/team/README.md +1 -0
  108. package/presets/mavis/ios-swift/adapter-map.json +1 -1
  109. package/presets/mavis/ios-swift/rules/anti-hallucination-contract.md +2 -0
  110. package/presets/mavis/ios-swift/rules/code-quality-and-refactoring.md +11 -0
  111. package/presets/mavis/ios-swift/rules/code-review-mr.md +2 -0
  112. package/presets/mavis/ios-swift/team/README.md +1 -0
  113. package/presets/mavis/java/adapter-map.json +1 -1
  114. package/presets/mavis/java/rules/anti-hallucination-contract.md +2 -0
  115. package/presets/mavis/java/rules/code-quality-and-refactoring.md +11 -0
  116. package/presets/mavis/java/rules/code-review-mr.md +2 -0
  117. package/presets/mavis/java/team/README.md +1 -0
  118. package/presets/mavis/mcp-ts/adapter-map.json +1 -1
  119. package/presets/mavis/mcp-ts/rules/anti-hallucination-contract.md +2 -0
  120. package/presets/mavis/mcp-ts/rules/code-quality-and-refactoring.md +11 -0
  121. package/presets/mavis/mcp-ts/rules/code-review-mr.md +2 -0
  122. package/presets/mavis/mcp-ts/team/README.md +1 -0
  123. package/presets/mavis/next/adapter-map.json +1 -1
  124. package/presets/mavis/next/agents/accessibility-reviewer.md +1 -0
  125. package/presets/mavis/next/agents/solution-architect.md +1 -0
  126. package/presets/mavis/next/agents/task-analyst.md +1 -0
  127. package/presets/mavis/next/agents/tech-writer.md +2 -1
  128. package/presets/mavis/next/rules/anti-hallucination-contract.md +2 -0
  129. package/presets/mavis/next/rules/code-quality-and-refactoring.md +11 -0
  130. package/presets/mavis/next/rules/code-review-mr.md +2 -0
  131. package/presets/mavis/next/rules/react-a11y-coding.md +1 -0
  132. package/presets/mavis/next/team/README.md +1 -0
  133. package/presets/mavis/nuxt/adapter-map.json +1 -1
  134. package/presets/mavis/nuxt/rules/anti-hallucination-contract.md +2 -0
  135. package/presets/mavis/nuxt/rules/code-quality-and-refactoring.md +11 -0
  136. package/presets/mavis/nuxt/rules/code-review-mr.md +2 -0
  137. package/presets/mavis/nuxt/team/README.md +1 -0
  138. package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
  139. package/presets/mavis/php-hexagonal/rules/anti-hallucination-contract.md +2 -0
  140. package/presets/mavis/php-hexagonal/rules/code-quality-and-refactoring.md +11 -0
  141. package/presets/mavis/php-hexagonal/rules/code-review-mr.md +2 -0
  142. package/presets/mavis/php-hexagonal/team/README.md +1 -0
  143. package/presets/mavis/php-laravel/adapter-map.json +1 -1
  144. package/presets/mavis/php-laravel/rules/anti-hallucination-contract.md +2 -0
  145. package/presets/mavis/php-laravel/rules/code-quality-and-refactoring.md +11 -0
  146. package/presets/mavis/php-laravel/rules/code-review-mr.md +2 -0
  147. package/presets/mavis/php-laravel/team/README.md +1 -0
  148. package/presets/mavis/svelte/adapter-map.json +1 -1
  149. package/presets/mavis/svelte/rules/anti-hallucination-contract.md +2 -0
  150. package/presets/mavis/svelte/rules/code-quality-and-refactoring.md +11 -0
  151. package/presets/mavis/svelte/rules/code-review-mr.md +2 -0
  152. package/presets/mavis/svelte/team/README.md +1 -0
  153. package/presets/opencode/android-kotlin/adapter-map.json +1 -1
  154. package/presets/opencode/android-kotlin/agents/tech-writer.md +6 -1
  155. package/presets/opencode/android-kotlin/rules/anti-hallucination-contract.md +2 -0
  156. package/presets/opencode/android-kotlin/rules/code-quality-and-refactoring.md +11 -0
  157. package/presets/opencode/android-kotlin/rules/code-review-mr.md +2 -0
  158. package/presets/opencode/android-kotlin/team/README.md +1 -0
  159. package/presets/opencode/go/adapter-map.json +1 -1
  160. package/presets/opencode/go/agents/tech-writer.md +6 -1
  161. package/presets/opencode/go/rules/anti-hallucination-contract.md +2 -0
  162. package/presets/opencode/go/rules/code-quality-and-refactoring.md +11 -0
  163. package/presets/opencode/go/rules/code-review-mr.md +2 -0
  164. package/presets/opencode/go/team/README.md +1 -0
  165. package/presets/opencode/ios-swift/adapter-map.json +1 -1
  166. package/presets/opencode/ios-swift/agents/tech-writer.md +6 -1
  167. package/presets/opencode/ios-swift/rules/anti-hallucination-contract.md +2 -0
  168. package/presets/opencode/ios-swift/rules/code-quality-and-refactoring.md +11 -0
  169. package/presets/opencode/ios-swift/rules/code-review-mr.md +2 -0
  170. package/presets/opencode/ios-swift/team/README.md +1 -0
  171. package/presets/opencode/java/adapter-map.json +1 -1
  172. package/presets/opencode/java/agents/tech-writer.md +6 -1
  173. package/presets/opencode/java/rules/anti-hallucination-contract.md +2 -0
  174. package/presets/opencode/java/rules/code-quality-and-refactoring.md +11 -0
  175. package/presets/opencode/java/rules/code-review-mr.md +2 -0
  176. package/presets/opencode/java/team/README.md +1 -0
  177. package/presets/opencode/mcp-ts/adapter-map.json +1 -1
  178. package/presets/opencode/mcp-ts/rules/anti-hallucination-contract.md +2 -0
  179. package/presets/opencode/mcp-ts/rules/code-quality-and-refactoring.md +11 -0
  180. package/presets/opencode/mcp-ts/rules/code-review-mr.md +2 -0
  181. package/presets/opencode/mcp-ts/team/README.md +1 -0
  182. package/presets/opencode/next/adapter-map.json +1 -1
  183. package/presets/opencode/next/agents/accessibility-reviewer.md +1 -0
  184. package/presets/opencode/next/agents/solution-architect.md +1 -0
  185. package/presets/opencode/next/agents/task-analyst.md +1 -0
  186. package/presets/opencode/next/agents/tech-writer.md +8 -2
  187. package/presets/opencode/next/rules/anti-hallucination-contract.md +2 -0
  188. package/presets/opencode/next/rules/code-quality-and-refactoring.md +11 -0
  189. package/presets/opencode/next/rules/code-review-mr.md +2 -0
  190. package/presets/opencode/next/rules/react-a11y-coding.md +1 -0
  191. package/presets/opencode/next/team/README.md +1 -0
  192. package/presets/opencode/nuxt/adapter-map.json +1 -1
  193. package/presets/opencode/nuxt/agents/tech-writer.md +6 -1
  194. package/presets/opencode/nuxt/rules/anti-hallucination-contract.md +2 -0
  195. package/presets/opencode/nuxt/rules/code-quality-and-refactoring.md +11 -0
  196. package/presets/opencode/nuxt/rules/code-review-mr.md +2 -0
  197. package/presets/opencode/nuxt/team/README.md +1 -0
  198. package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
  199. package/presets/opencode/php-hexagonal/agents/tech-writer.md +6 -1
  200. package/presets/opencode/php-hexagonal/rules/anti-hallucination-contract.md +2 -0
  201. package/presets/opencode/php-hexagonal/rules/code-quality-and-refactoring.md +11 -0
  202. package/presets/opencode/php-hexagonal/rules/code-review-mr.md +2 -0
  203. package/presets/opencode/php-hexagonal/team/README.md +1 -0
  204. package/presets/opencode/php-laravel/adapter-map.json +1 -1
  205. package/presets/opencode/php-laravel/agents/tech-writer.md +6 -1
  206. package/presets/opencode/php-laravel/rules/anti-hallucination-contract.md +2 -0
  207. package/presets/opencode/php-laravel/rules/code-quality-and-refactoring.md +11 -0
  208. package/presets/opencode/php-laravel/rules/code-review-mr.md +2 -0
  209. package/presets/opencode/php-laravel/team/README.md +1 -0
  210. package/presets/opencode/svelte/adapter-map.json +1 -1
  211. package/presets/opencode/svelte/agents/tech-writer.md +6 -1
  212. package/presets/opencode/svelte/rules/anti-hallucination-contract.md +2 -0
  213. package/presets/opencode/svelte/rules/code-quality-and-refactoring.md +11 -0
  214. package/presets/opencode/svelte/rules/code-review-mr.md +2 -0
  215. package/presets/opencode/svelte/team/README.md +1 -0
@@ -71,6 +71,7 @@ node .ai.local/scripts/manifest.mjs check --slug <slug>
71
71
  - Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
72
72
  - Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
73
73
  - Plan closure → tick (`- [ ]` → `- [x]`) every `tasks.md` row this receipt closes, in the same turn. An unticked row makes `openspec list` report stale progress and hides the exit criteria from the next agent.
74
+ - **Closeout:** run `manifest.mjs check --slug <slug>` before the terminal receipt. If the hook moved a producer body to `archive/<date>/` and the entry still points at the root, restore the root copy and repoint the entry; do not leave a deleted root file plus an untracked archive copy for the human commit.
74
75
  - Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
75
76
 
76
77
  ## Commands
@@ -3,7 +3,7 @@
3
3
  "platform": "mavis",
4
4
  "stack": "php-laravel",
5
5
  "semanticSource": "cursor/php-laravel",
6
- "sourceRevision": "976a60a6e95861cc076b13f46ce0065a84b626606d62b9e0b2ca8c875a08de51",
6
+ "sourceRevision": "6ffa9e81b5428b97f9a79fad0f5702c06d3f32c059ee564e1ed68fe5515d5238",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -14,6 +14,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
14
14
 
15
15
  `// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
16
16
 
17
+ A fact already measured in this run is not uncertain. When the orchestrator or another role probed a live system, reuse the measured value and cite the probe. Reserve `[verify]` for unmeasured facts, with an owner and the effect if the value is wrong; do not downgrade a measurement back to a marker.
18
+
17
19
  For team specs and `brief.md`, the artifact marker is a literal `[NEEDS CLARIFICATION]` line for each unresolved product decision. This contract points at that marker. `// VERIFY` stays a code comment and is not a spec token.
18
20
 
19
21
  Context7 is optional. When it is down or absent, write `// VERIFY` and state the uncertainty. Do not block the pipeline and do not invent the signature.
@@ -60,6 +60,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
60
60
  - Urgency/authority: name the trade-off once, then comply — no apology loops.
61
61
  - Match verification to risk; report by what was **verified**, not attempted.
62
62
 
63
+ ## Questions to the user
64
+
65
+ **Interactive first.** When the answer is a decision only the user can make, ask through the host’s interactive question tool (OpenCode `question`, Claude Code `AskUserQuestion`, a client dialog) and structure the question for that tool. Plain prose is the **fallback** for a host without one, a headless run, or an answer that cannot be enumerated.
66
+
67
+ - One decision per question; put independent decisions in separate entries so the host walks them as steps.
68
+ - Header → a short label (≤30 characters); option label → 1–5 words in the user’s terms; option description → the consequence or trade-off, not a restatement of the label.
69
+ - Two to five options; enable multi-select only when the choices are not mutually exclusive.
70
+ - Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
71
+ - Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
72
+ - Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
73
+
63
74
  Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
64
75
 
65
76
  > Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
@@ -20,6 +20,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
20
20
  - Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
21
21
  - Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
22
22
  - Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
23
+ - **Contract seams** — every frozen external mapping has a named test: sort key ↔ rendered column, command parameter ↔ ingestion call, nullable DTO ↔ UI formatter. A seam that exists only in prose is a finding.
24
+ - **Multi-phase flags** — a CLI or config flag honored by only one phase of a two-phase flow states its scope in the design and has a test; an undocumented partial scope is a finding.
23
25
 
24
26
  Concrete rule stems — in **Stack notes**.
25
27
 
@@ -71,6 +71,7 @@ node .ai.local/scripts/manifest.mjs check --slug <slug>
71
71
  - Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
72
72
  - Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
73
73
  - Plan closure → tick (`- [ ]` → `- [x]`) every `tasks.md` row this receipt closes, in the same turn. An unticked row makes `openspec list` report stale progress and hides the exit criteria from the next agent.
74
+ - **Closeout:** run `manifest.mjs check --slug <slug>` before the terminal receipt. If the hook moved a producer body to `archive/<date>/` and the entry still points at the root, restore the root copy and repoint the entry; do not leave a deleted root file plus an untracked archive copy for the human commit.
74
75
  - Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
75
76
 
76
77
  ## Commands
@@ -3,7 +3,7 @@
3
3
  "platform": "mavis",
4
4
  "stack": "svelte",
5
5
  "semanticSource": "cursor/svelte",
6
- "sourceRevision": "824c95902c8336ce2c84e0c27641b846dfda5305025cea038398a49f9406d24f",
6
+ "sourceRevision": "7ad3f6d97484acc1c1f5fb1575b8b39ad06590d3eb1923255a5235b750b27461",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -14,6 +14,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
14
14
 
15
15
  `// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
16
16
 
17
+ A fact already measured in this run is not uncertain. When the orchestrator or another role probed a live system, reuse the measured value and cite the probe. Reserve `[verify]` for unmeasured facts, with an owner and the effect if the value is wrong; do not downgrade a measurement back to a marker.
18
+
17
19
  For team specs and `brief.md`, the artifact marker is a literal `[NEEDS CLARIFICATION]` line for each unresolved product decision. This contract points at that marker. `// VERIFY` stays a code comment and is not a spec token.
18
20
 
19
21
  Context7 is optional. When it is down or absent, write `// VERIFY` and state the uncertainty. Do not block the pipeline and do not invent the signature.
@@ -60,6 +60,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
60
60
  - Urgency/authority: name the trade-off once, then comply — no apology loops.
61
61
  - Match verification to risk; report by what was **verified**, not attempted.
62
62
 
63
+ ## Questions to the user
64
+
65
+ **Interactive first.** When the answer is a decision only the user can make, ask through the host’s interactive question tool (OpenCode `question`, Claude Code `AskUserQuestion`, a client dialog) and structure the question for that tool. Plain prose is the **fallback** for a host without one, a headless run, or an answer that cannot be enumerated.
66
+
67
+ - One decision per question; put independent decisions in separate entries so the host walks them as steps.
68
+ - Header → a short label (≤30 characters); option label → 1–5 words in the user’s terms; option description → the consequence or trade-off, not a restatement of the label.
69
+ - Two to five options; enable multi-select only when the choices are not mutually exclusive.
70
+ - Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
71
+ - Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
72
+ - Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
73
+
63
74
  Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
64
75
 
65
76
  > Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
@@ -20,6 +20,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
20
20
  - Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
21
21
  - Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
22
22
  - Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
23
+ - **Contract seams** — every frozen external mapping has a named test: sort key ↔ rendered column, command parameter ↔ ingestion call, nullable DTO ↔ UI formatter. A seam that exists only in prose is a finding.
24
+ - **Multi-phase flags** — a CLI or config flag honored by only one phase of a two-phase flow states its scope in the design and has a test; an undocumented partial scope is a finding.
23
25
 
24
26
  Concrete rule stems — in **Stack notes**.
25
27
 
@@ -71,6 +71,7 @@ node .ai.local/scripts/manifest.mjs check --slug <slug>
71
71
  - Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
72
72
  - Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
73
73
  - Plan closure → tick (`- [ ]` → `- [x]`) every `tasks.md` row this receipt closes, in the same turn. An unticked row makes `openspec list` report stale progress and hides the exit criteria from the next agent.
74
+ - **Closeout:** run `manifest.mjs check --slug <slug>` before the terminal receipt. If the hook moved a producer body to `archive/<date>/` and the entry still points at the root, restore the root copy and repoint the entry; do not leave a deleted root file plus an untracked archive copy for the human commit.
74
75
  - Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
75
76
 
76
77
  ## Commands
@@ -3,7 +3,7 @@
3
3
  "platform": "opencode",
4
4
  "stack": "android-kotlin",
5
5
  "semanticSource": "cursor/android-kotlin",
6
- "sourceRevision": "6198bdf17f9621cb7b23918b74e6508eba347862a0d3c39d14b2ef3aa3118cbe",
6
+ "sourceRevision": "8e99bcb8e92f0641df08936a2fcf72ffc69d362e48565e63c9db80ddfea600be",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -7,9 +7,14 @@ permission:
7
7
  "*": deny
8
8
  ".ai.local/team/**": allow
9
9
  "docs/**": allow
10
+ "README.md": allow
11
+ "**/README.md": allow
12
+ "CHANGELOG.md": allow
13
+ "**/CHANGELOG.md": allow
14
+ "openspec/changes/**/tasks.md": allow
10
15
  ---
11
16
 
12
- Write team artifacts under `.ai.local/team/**` and scoped files (`docs/**`). Do not edit production code.
17
+ Write team artifacts under `.ai.local/team/**` and scoped files (`docs/**`, `README.md`, `**/README.md`, `CHANGELOG.md`, `**/CHANGELOG.md`, `openspec/changes/**/tasks.md`). Do not edit production code.
13
18
 
14
19
  ## Rules to load (subagent context)
15
20
 
@@ -14,6 +14,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
14
14
 
15
15
  `// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
16
16
 
17
+ A fact already measured in this run is not uncertain. When the orchestrator or another role probed a live system, reuse the measured value and cite the probe. Reserve `[verify]` for unmeasured facts, with an owner and the effect if the value is wrong; do not downgrade a measurement back to a marker.
18
+
17
19
  For team specs and `brief.md`, the artifact marker is a literal `[NEEDS CLARIFICATION]` line for each unresolved product decision. This contract points at that marker. `// VERIFY` stays a code comment and is not a spec token.
18
20
 
19
21
  Context7 is optional. When it is down or absent, write `// VERIFY` and state the uncertainty. Do not block the pipeline and do not invent the signature.
@@ -60,6 +60,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
60
60
  - Urgency/authority: name the trade-off once, then comply — no apology loops.
61
61
  - Match verification to risk; report by what was **verified**, not attempted.
62
62
 
63
+ ## Questions to the user
64
+
65
+ **Interactive first.** When the answer is a decision only the user can make, ask through the host’s interactive question tool (OpenCode `question`, Claude Code `AskUserQuestion`, a client dialog) and structure the question for that tool. Plain prose is the **fallback** for a host without one, a headless run, or an answer that cannot be enumerated.
66
+
67
+ - One decision per question; put independent decisions in separate entries so the host walks them as steps.
68
+ - Header → a short label (≤30 characters); option label → 1–5 words in the user’s terms; option description → the consequence or trade-off, not a restatement of the label.
69
+ - Two to five options; enable multi-select only when the choices are not mutually exclusive.
70
+ - Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
71
+ - Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
72
+ - Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
73
+
63
74
  Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
64
75
 
65
76
  > Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
@@ -20,6 +20,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
20
20
  - Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
21
21
  - Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
22
22
  - Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
23
+ - **Contract seams** — every frozen external mapping has a named test: sort key ↔ rendered column, command parameter ↔ ingestion call, nullable DTO ↔ UI formatter. A seam that exists only in prose is a finding.
24
+ - **Multi-phase flags** — a CLI or config flag honored by only one phase of a two-phase flow states its scope in the design and has a test; an undocumented partial scope is a finding.
23
25
 
24
26
  Concrete rule stems — in **Stack notes**.
25
27
 
@@ -71,6 +71,7 @@ node .ai.local/scripts/manifest.mjs check --slug <slug>
71
71
  - Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
72
72
  - Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
73
73
  - Plan closure → tick (`- [ ]` → `- [x]`) every `tasks.md` row this receipt closes, in the same turn. An unticked row makes `openspec list` report stale progress and hides the exit criteria from the next agent.
74
+ - **Closeout:** run `manifest.mjs check --slug <slug>` before the terminal receipt. If the hook moved a producer body to `archive/<date>/` and the entry still points at the root, restore the root copy and repoint the entry; do not leave a deleted root file plus an untracked archive copy for the human commit.
74
75
  - Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
75
76
 
76
77
  ## Commands
@@ -3,7 +3,7 @@
3
3
  "platform": "opencode",
4
4
  "stack": "go",
5
5
  "semanticSource": "cursor/go",
6
- "sourceRevision": "34b0cac8997790bec2c5218df8c1f26dedefebeadb7d5df8c70c2d8d2b989606",
6
+ "sourceRevision": "3ecccc6f5629ec0e26da2fd07fa8855fc52ea2639f869977d01ad0867f795e5e",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -7,9 +7,14 @@ permission:
7
7
  "*": deny
8
8
  ".ai.local/team/**": allow
9
9
  "docs/**": allow
10
+ "README.md": allow
11
+ "**/README.md": allow
12
+ "CHANGELOG.md": allow
13
+ "**/CHANGELOG.md": allow
14
+ "openspec/changes/**/tasks.md": allow
10
15
  ---
11
16
 
12
- Write team artifacts under `.ai.local/team/**` and scoped files (`docs/**`). Do not edit production code.
17
+ Write team artifacts under `.ai.local/team/**` and scoped files (`docs/**`, `README.md`, `**/README.md`, `CHANGELOG.md`, `**/CHANGELOG.md`, `openspec/changes/**/tasks.md`). Do not edit production code.
13
18
 
14
19
  ## Rules to load (subagent context)
15
20
 
@@ -14,6 +14,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
14
14
 
15
15
  `// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
16
16
 
17
+ A fact already measured in this run is not uncertain. When the orchestrator or another role probed a live system, reuse the measured value and cite the probe. Reserve `[verify]` for unmeasured facts, with an owner and the effect if the value is wrong; do not downgrade a measurement back to a marker.
18
+
17
19
  For team specs and `brief.md`, the artifact marker is a literal `[NEEDS CLARIFICATION]` line for each unresolved product decision. This contract points at that marker. `// VERIFY` stays a code comment and is not a spec token.
18
20
 
19
21
  Context7 is optional. When it is down or absent, write `// VERIFY` and state the uncertainty. Do not block the pipeline and do not invent the signature.
@@ -60,6 +60,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
60
60
  - Urgency/authority: name the trade-off once, then comply — no apology loops.
61
61
  - Match verification to risk; report by what was **verified**, not attempted.
62
62
 
63
+ ## Questions to the user
64
+
65
+ **Interactive first.** When the answer is a decision only the user can make, ask through the host’s interactive question tool (OpenCode `question`, Claude Code `AskUserQuestion`, a client dialog) and structure the question for that tool. Plain prose is the **fallback** for a host without one, a headless run, or an answer that cannot be enumerated.
66
+
67
+ - One decision per question; put independent decisions in separate entries so the host walks them as steps.
68
+ - Header → a short label (≤30 characters); option label → 1–5 words in the user’s terms; option description → the consequence or trade-off, not a restatement of the label.
69
+ - Two to five options; enable multi-select only when the choices are not mutually exclusive.
70
+ - Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
71
+ - Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
72
+ - Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
73
+
63
74
  Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
64
75
 
65
76
  > Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
@@ -20,6 +20,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
20
20
  - Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
21
21
  - Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
22
22
  - Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
23
+ - **Contract seams** — every frozen external mapping has a named test: sort key ↔ rendered column, command parameter ↔ ingestion call, nullable DTO ↔ UI formatter. A seam that exists only in prose is a finding.
24
+ - **Multi-phase flags** — a CLI or config flag honored by only one phase of a two-phase flow states its scope in the design and has a test; an undocumented partial scope is a finding.
23
25
 
24
26
  Concrete rule stems — in **Stack notes**.
25
27
 
@@ -71,6 +71,7 @@ node .ai.local/scripts/manifest.mjs check --slug <slug>
71
71
  - Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
72
72
  - Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
73
73
  - Plan closure → tick (`- [ ]` → `- [x]`) every `tasks.md` row this receipt closes, in the same turn. An unticked row makes `openspec list` report stale progress and hides the exit criteria from the next agent.
74
+ - **Closeout:** run `manifest.mjs check --slug <slug>` before the terminal receipt. If the hook moved a producer body to `archive/<date>/` and the entry still points at the root, restore the root copy and repoint the entry; do not leave a deleted root file plus an untracked archive copy for the human commit.
74
75
  - Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
75
76
 
76
77
  ## Commands
@@ -3,7 +3,7 @@
3
3
  "platform": "opencode",
4
4
  "stack": "ios-swift",
5
5
  "semanticSource": "cursor/ios-swift",
6
- "sourceRevision": "a87ff507eb6fe5f8c05bec9b891d2c90b24cc971d8a3ab955160383c65d18f07",
6
+ "sourceRevision": "a1bca2bce74f3136e03d504a2e7f0d31302f6660cac287bdbada425ceaf0c6a5",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -7,9 +7,14 @@ permission:
7
7
  "*": deny
8
8
  ".ai.local/team/**": allow
9
9
  "docs/**": allow
10
+ "README.md": allow
11
+ "**/README.md": allow
12
+ "CHANGELOG.md": allow
13
+ "**/CHANGELOG.md": allow
14
+ "openspec/changes/**/tasks.md": allow
10
15
  ---
11
16
 
12
- Write team artifacts under `.ai.local/team/**` and scoped files (`docs/**`). Do not edit production code.
17
+ Write team artifacts under `.ai.local/team/**` and scoped files (`docs/**`, `README.md`, `**/README.md`, `CHANGELOG.md`, `**/CHANGELOG.md`, `openspec/changes/**/tasks.md`). Do not edit production code.
13
18
 
14
19
  ## Rules to load (subagent context)
15
20
 
@@ -14,6 +14,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
14
14
 
15
15
  `// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
16
16
 
17
+ A fact already measured in this run is not uncertain. When the orchestrator or another role probed a live system, reuse the measured value and cite the probe. Reserve `[verify]` for unmeasured facts, with an owner and the effect if the value is wrong; do not downgrade a measurement back to a marker.
18
+
17
19
  For team specs and `brief.md`, the artifact marker is a literal `[NEEDS CLARIFICATION]` line for each unresolved product decision. This contract points at that marker. `// VERIFY` stays a code comment and is not a spec token.
18
20
 
19
21
  Context7 is optional. When it is down or absent, write `// VERIFY` and state the uncertainty. Do not block the pipeline and do not invent the signature.
@@ -60,6 +60,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
60
60
  - Urgency/authority: name the trade-off once, then comply — no apology loops.
61
61
  - Match verification to risk; report by what was **verified**, not attempted.
62
62
 
63
+ ## Questions to the user
64
+
65
+ **Interactive first.** When the answer is a decision only the user can make, ask through the host’s interactive question tool (OpenCode `question`, Claude Code `AskUserQuestion`, a client dialog) and structure the question for that tool. Plain prose is the **fallback** for a host without one, a headless run, or an answer that cannot be enumerated.
66
+
67
+ - One decision per question; put independent decisions in separate entries so the host walks them as steps.
68
+ - Header → a short label (≤30 characters); option label → 1–5 words in the user’s terms; option description → the consequence or trade-off, not a restatement of the label.
69
+ - Two to five options; enable multi-select only when the choices are not mutually exclusive.
70
+ - Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
71
+ - Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
72
+ - Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
73
+
63
74
  Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
64
75
 
65
76
  > Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
@@ -20,6 +20,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
20
20
  - Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
21
21
  - Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
22
22
  - Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
23
+ - **Contract seams** — every frozen external mapping has a named test: sort key ↔ rendered column, command parameter ↔ ingestion call, nullable DTO ↔ UI formatter. A seam that exists only in prose is a finding.
24
+ - **Multi-phase flags** — a CLI or config flag honored by only one phase of a two-phase flow states its scope in the design and has a test; an undocumented partial scope is a finding.
23
25
 
24
26
  Concrete rule stems — in **Stack notes**.
25
27
 
@@ -71,6 +71,7 @@ node .ai.local/scripts/manifest.mjs check --slug <slug>
71
71
  - Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
72
72
  - Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
73
73
  - Plan closure → tick (`- [ ]` → `- [x]`) every `tasks.md` row this receipt closes, in the same turn. An unticked row makes `openspec list` report stale progress and hides the exit criteria from the next agent.
74
+ - **Closeout:** run `manifest.mjs check --slug <slug>` before the terminal receipt. If the hook moved a producer body to `archive/<date>/` and the entry still points at the root, restore the root copy and repoint the entry; do not leave a deleted root file plus an untracked archive copy for the human commit.
74
75
  - Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
75
76
 
76
77
  ## Commands
@@ -3,7 +3,7 @@
3
3
  "platform": "opencode",
4
4
  "stack": "java",
5
5
  "semanticSource": "cursor/java",
6
- "sourceRevision": "bbe2ccfe0a155f70160601ee06c63af6e951662cd39095f41b6a64f96f18a021",
6
+ "sourceRevision": "721d414f2f67b2fd851f0628d91e01e87724d3e295ec09dea0e2dc40575c94ed",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -7,9 +7,14 @@ permission:
7
7
  "*": deny
8
8
  ".ai.local/team/**": allow
9
9
  "docs/**": allow
10
+ "README.md": allow
11
+ "**/README.md": allow
12
+ "CHANGELOG.md": allow
13
+ "**/CHANGELOG.md": allow
14
+ "openspec/changes/**/tasks.md": allow
10
15
  ---
11
16
 
12
- Write team artifacts under `.ai.local/team/**` and scoped files (`docs/**`). Do not edit production code.
17
+ Write team artifacts under `.ai.local/team/**` and scoped files (`docs/**`, `README.md`, `**/README.md`, `CHANGELOG.md`, `**/CHANGELOG.md`, `openspec/changes/**/tasks.md`). Do not edit production code.
13
18
 
14
19
  ## Rules to load (subagent context)
15
20
 
@@ -14,6 +14,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
14
14
 
15
15
  `// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
16
16
 
17
+ A fact already measured in this run is not uncertain. When the orchestrator or another role probed a live system, reuse the measured value and cite the probe. Reserve `[verify]` for unmeasured facts, with an owner and the effect if the value is wrong; do not downgrade a measurement back to a marker.
18
+
17
19
  For team specs and `brief.md`, the artifact marker is a literal `[NEEDS CLARIFICATION]` line for each unresolved product decision. This contract points at that marker. `// VERIFY` stays a code comment and is not a spec token.
18
20
 
19
21
  Context7 is optional. When it is down or absent, write `// VERIFY` and state the uncertainty. Do not block the pipeline and do not invent the signature.
@@ -60,6 +60,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
60
60
  - Urgency/authority: name the trade-off once, then comply — no apology loops.
61
61
  - Match verification to risk; report by what was **verified**, not attempted.
62
62
 
63
+ ## Questions to the user
64
+
65
+ **Interactive first.** When the answer is a decision only the user can make, ask through the host’s interactive question tool (OpenCode `question`, Claude Code `AskUserQuestion`, a client dialog) and structure the question for that tool. Plain prose is the **fallback** for a host without one, a headless run, or an answer that cannot be enumerated.
66
+
67
+ - One decision per question; put independent decisions in separate entries so the host walks them as steps.
68
+ - Header → a short label (≤30 characters); option label → 1–5 words in the user’s terms; option description → the consequence or trade-off, not a restatement of the label.
69
+ - Two to five options; enable multi-select only when the choices are not mutually exclusive.
70
+ - Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
71
+ - Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
72
+ - Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
73
+
63
74
  Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
64
75
 
65
76
  > Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
@@ -20,6 +20,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
20
20
  - Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
21
21
  - Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
22
22
  - Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
23
+ - **Contract seams** — every frozen external mapping has a named test: sort key ↔ rendered column, command parameter ↔ ingestion call, nullable DTO ↔ UI formatter. A seam that exists only in prose is a finding.
24
+ - **Multi-phase flags** — a CLI or config flag honored by only one phase of a two-phase flow states its scope in the design and has a test; an undocumented partial scope is a finding.
23
25
 
24
26
  Concrete rule stems — in **Stack notes**.
25
27
 
@@ -71,6 +71,7 @@ node .ai.local/scripts/manifest.mjs check --slug <slug>
71
71
  - Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
72
72
  - Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
73
73
  - Plan closure → tick (`- [ ]` → `- [x]`) every `tasks.md` row this receipt closes, in the same turn. An unticked row makes `openspec list` report stale progress and hides the exit criteria from the next agent.
74
+ - **Closeout:** run `manifest.mjs check --slug <slug>` before the terminal receipt. If the hook moved a producer body to `archive/<date>/` and the entry still points at the root, restore the root copy and repoint the entry; do not leave a deleted root file plus an untracked archive copy for the human commit.
74
75
  - Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
75
76
 
76
77
  ## Commands
@@ -3,7 +3,7 @@
3
3
  "platform": "opencode",
4
4
  "stack": "mcp-ts",
5
5
  "semanticSource": "cursor/mcp-ts",
6
- "sourceRevision": "c40648ba58e0501cc044c16e77b7c2819fa7a841136793aac3341cdc080ee038",
6
+ "sourceRevision": "2808eae7a131fbbf42bc7b0c84b0f7d9fad9d54123f7f7b4eff943735a518aba",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -14,6 +14,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
14
14
 
15
15
  `// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
16
16
 
17
+ A fact already measured in this run is not uncertain. When the orchestrator or another role probed a live system, reuse the measured value and cite the probe. Reserve `[verify]` for unmeasured facts, with an owner and the effect if the value is wrong; do not downgrade a measurement back to a marker.
18
+
17
19
  For team specs and `brief.md`, the artifact marker is a literal `[NEEDS CLARIFICATION]` line for each unresolved product decision. This contract points at that marker. `// VERIFY` stays a code comment and is not a spec token.
18
20
 
19
21
  Context7 is optional. When it is down or absent, write `// VERIFY` and state the uncertainty. Do not block the pipeline and do not invent the signature.
@@ -60,6 +60,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
60
60
  - Urgency/authority: name the trade-off once, then comply — no apology loops.
61
61
  - Match verification to risk; report by what was **verified**, not attempted.
62
62
 
63
+ ## Questions to the user
64
+
65
+ **Interactive first.** When the answer is a decision only the user can make, ask through the host’s interactive question tool (OpenCode `question`, Claude Code `AskUserQuestion`, a client dialog) and structure the question for that tool. Plain prose is the **fallback** for a host without one, a headless run, or an answer that cannot be enumerated.
66
+
67
+ - One decision per question; put independent decisions in separate entries so the host walks them as steps.
68
+ - Header → a short label (≤30 characters); option label → 1–5 words in the user’s terms; option description → the consequence or trade-off, not a restatement of the label.
69
+ - Two to five options; enable multi-select only when the choices are not mutually exclusive.
70
+ - Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
71
+ - Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
72
+ - Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
73
+
63
74
  Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
64
75
 
65
76
  > Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
@@ -20,6 +20,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
20
20
  - Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
21
21
  - Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
22
22
  - Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
23
+ - **Contract seams** — every frozen external mapping has a named test: sort key ↔ rendered column, command parameter ↔ ingestion call, nullable DTO ↔ UI formatter. A seam that exists only in prose is a finding.
24
+ - **Multi-phase flags** — a CLI or config flag honored by only one phase of a two-phase flow states its scope in the design and has a test; an undocumented partial scope is a finding.
23
25
 
24
26
  Concrete rule stems — in **Stack notes**.
25
27
 
@@ -71,6 +71,7 @@ node .ai.local/scripts/manifest.mjs check --slug <slug>
71
71
  - Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
72
72
  - Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
73
73
  - Plan closure → tick (`- [ ]` → `- [x]`) every `tasks.md` row this receipt closes, in the same turn. An unticked row makes `openspec list` report stale progress and hides the exit criteria from the next agent.
74
+ - **Closeout:** run `manifest.mjs check --slug <slug>` before the terminal receipt. If the hook moved a producer body to `archive/<date>/` and the entry still points at the root, restore the root copy and repoint the entry; do not leave a deleted root file plus an untracked archive copy for the human commit.
74
75
  - Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
75
76
 
76
77
  ## Commands
@@ -3,7 +3,7 @@
3
3
  "platform": "opencode",
4
4
  "stack": "next",
5
5
  "semanticSource": "cursor/next",
6
- "sourceRevision": "18cc3e4d68fa2d1bd4173802cd2bce02d079159f19a434b91a83954d2eb4a829",
6
+ "sourceRevision": "f9beb3c0dd383cd99757d962cbdb6a3fcae4eacbddc2f37a9d0301b5424a8693",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -46,6 +46,7 @@ You are an accessibility reviewer for a Next.js React frontend.
46
46
 
47
47
  - Keyboard navigation and focus order (Tab, Shift+Tab, Escape, Enter).
48
48
  - Focus trap in modals/drawers; focus return on close.
49
+ - Async focus survival: activating filter/sort/search/pagination/retry must not move focus to `<body>`; the triggering control is not `disabled` while its request is in flight; `aria-busy` is on the results region; retry moves focus to the heading.
49
50
  - ARIA roles, labels, `aria-*` attributes, live regions.
50
51
  - Semantic HTML vs div-only interactive elements.
51
52
  - Form labels, error announcements, required field indication.
@@ -78,6 +78,7 @@ Write `.ai.local/team/tasks/<slug>/architecture.md`:
78
78
 
79
79
  - Align with existing layer boundaries — no DTO in UI, no HTTP from components.
80
80
  - Reference concrete paths in the repo (similar features as templates).
81
+ - For a multi-phase CLI or config flow, state which phase each flag reaches and name the test that pins it; a flag honored by only one phase is documented and tested, never left implicit.
81
82
  - Flag when decomposition should change — list suggested updates for analyst/developer.
82
83
  - Do **not** write production code or tests.
83
84
 
@@ -98,6 +98,7 @@ Before writing artifacts, confirm:
98
98
 
99
99
  - [ ] Goal and **out-of-scope** are stated
100
100
  - [ ] **Acceptance criteria** are verifiable (Given/When/Then or checklist)
101
+ - [ ] Every frozen **contract seam** has a named test (sort key ↔ column, command parameter ↔ ingestion, nullable DTO ↔ UI formatter) — see `task-framing` § Contract seams
101
102
  - [ ] **Risks and dependencies** are listed
102
103
  - [ ] **Decomposition** covers all layers touched (types, api, store, ui, tests)
103
104
  - [ ] Each task has layer, dependencies, and "done when"
@@ -7,9 +7,14 @@ permission:
7
7
  "*": deny
8
8
  ".ai.local/team/**": allow
9
9
  "docs/**": allow
10
+ "README.md": allow
11
+ "**/README.md": allow
12
+ "CHANGELOG.md": allow
13
+ "**/CHANGELOG.md": allow
14
+ "openspec/changes/**/tasks.md": allow
10
15
  ---
11
16
 
12
- Write team artifacts under `.ai.local/team/**` and scoped files (`docs/**`). Do not edit production code.
17
+ Write team artifacts under `.ai.local/team/**` and scoped files (`docs/**`, `README.md`, `**/README.md`, `CHANGELOG.md`, `**/CHANGELOG.md`, `openspec/changes/**/tasks.md`). Do not edit production code.
13
18
 
14
19
  ## Rules to load (subagent context)
15
20
 
@@ -70,7 +75,8 @@ Conventional commit / release note snippet.
70
75
  - Write for developers consuming the feature or maintaining the code.
71
76
  - Link to relevant rules, skills, and file paths — not vague references.
72
77
  - Do not duplicate entire decomposition — summarize outcomes and how to use/extend.
73
- - May create or update files under `docs/**` when the task explicitly requests it; otherwise keep primary output in team artifacts.
78
+ - May create or update files under `docs/**`, `README.md` / `**/README.md`, `CHANGELOG.md` / `**/CHANGELOG.md`, and tick task checkboxes in `openspec/changes/**/tasks.md` when the task explicitly requests it; otherwise keep primary output in team artifacts. Do not edit production code or OpenSpec prose.
79
+ - A README edit is documentation, not application code; still cite the feature, env var or command it documents instead of inventing values.
74
80
 
75
81
  ## OpenSpec (`openspec/changes/**`, `openspec/specs/**`)
76
82
 
@@ -14,6 +14,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
14
14
 
15
15
  `// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
16
16
 
17
+ A fact already measured in this run is not uncertain. When the orchestrator or another role probed a live system, reuse the measured value and cite the probe. Reserve `[verify]` for unmeasured facts, with an owner and the effect if the value is wrong; do not downgrade a measurement back to a marker.
18
+
17
19
  For team specs and `brief.md`, the artifact marker is a literal `[NEEDS CLARIFICATION]` line for each unresolved product decision. This contract points at that marker. `// VERIFY` stays a code comment and is not a spec token.
18
20
 
19
21
  Context7 is optional. When it is down or absent, write `// VERIFY` and state the uncertainty. Do not block the pipeline and do not invent the signature.
@@ -60,6 +60,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
60
60
  - Urgency/authority: name the trade-off once, then comply — no apology loops.
61
61
  - Match verification to risk; report by what was **verified**, not attempted.
62
62
 
63
+ ## Questions to the user
64
+
65
+ **Interactive first.** When the answer is a decision only the user can make, ask through the host’s interactive question tool (OpenCode `question`, Claude Code `AskUserQuestion`, a client dialog) and structure the question for that tool. Plain prose is the **fallback** for a host without one, a headless run, or an answer that cannot be enumerated.
66
+
67
+ - One decision per question; put independent decisions in separate entries so the host walks them as steps.
68
+ - Header → a short label (≤30 characters); option label → 1–5 words in the user’s terms; option description → the consequence or trade-off, not a restatement of the label.
69
+ - Two to five options; enable multi-select only when the choices are not mutually exclusive.
70
+ - Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
71
+ - Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
72
+ - Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
73
+
63
74
  Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
64
75
 
65
76
  > Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.