@bonesofspring/ai-rules 0.2.45 → 0.2.47

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 (175) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/package.json +1 -1
  3. package/presets/_shared/ai-local/scripts/manifest.mjs +85 -20
  4. package/presets/_shared/core/agent-team/agent-artifact-contracts.md +8 -2
  5. package/presets/_shared/core/agent-team/task-framing.md +4 -0
  6. package/presets/_shared/core/quality/anti-hallucination-contract.md +2 -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-review.md +2 -0
  10. package/presets/claude/android-kotlin/team/README.md +1 -0
  11. package/presets/claude/go/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  12. package/presets/claude/go/rules/tooling-and-review/code-review.md +2 -0
  13. package/presets/claude/go/team/README.md +1 -0
  14. package/presets/claude/ios-swift/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  15. package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +2 -0
  16. package/presets/claude/ios-swift/team/README.md +1 -0
  17. package/presets/claude/java/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  18. package/presets/claude/java/rules/tooling-and-review/code-review.md +2 -0
  19. package/presets/claude/java/team/README.md +1 -0
  20. package/presets/claude/mcp-ts/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  21. package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +2 -0
  22. package/presets/claude/mcp-ts/team/README.md +1 -0
  23. package/presets/claude/next/agents/accessibility-reviewer.md +1 -0
  24. package/presets/claude/next/agents/solution-architect.md +1 -0
  25. package/presets/claude/next/agents/task-analyst.md +1 -0
  26. package/presets/claude/next/agents/tech-writer.md +2 -1
  27. package/presets/claude/next/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  28. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +2 -0
  29. package/presets/claude/next/rules/ui-and-accessibility/react-a11y-coding.md +1 -0
  30. package/presets/claude/next/team/README.md +1 -0
  31. package/presets/claude/nuxt/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  32. package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +2 -0
  33. package/presets/claude/nuxt/team/README.md +1 -0
  34. package/presets/claude/php-hexagonal/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  35. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +2 -0
  36. package/presets/claude/php-hexagonal/team/README.md +1 -0
  37. package/presets/claude/php-laravel/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  38. package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +2 -0
  39. package/presets/claude/php-laravel/team/README.md +1 -0
  40. package/presets/claude/svelte/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  41. package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +2 -0
  42. package/presets/claude/svelte/team/README.md +1 -0
  43. package/presets/cursor/android-kotlin/rules/anti-hallucination-contract.mdc +2 -0
  44. package/presets/cursor/android-kotlin/rules/code-review-mr.mdc +2 -0
  45. package/presets/cursor/android-kotlin/team/README.md +1 -0
  46. package/presets/cursor/go/rules/anti-hallucination-contract.mdc +2 -0
  47. package/presets/cursor/go/rules/code-review-mr.mdc +2 -0
  48. package/presets/cursor/go/team/README.md +1 -0
  49. package/presets/cursor/ios-swift/rules/anti-hallucination-contract.mdc +2 -0
  50. package/presets/cursor/ios-swift/rules/code-review-mr.mdc +2 -0
  51. package/presets/cursor/ios-swift/team/README.md +1 -0
  52. package/presets/cursor/java/rules/anti-hallucination-contract.mdc +2 -0
  53. package/presets/cursor/java/rules/code-review-mr.mdc +2 -0
  54. package/presets/cursor/java/team/README.md +1 -0
  55. package/presets/cursor/mcp-ts/rules/anti-hallucination-contract.mdc +2 -0
  56. package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +2 -0
  57. package/presets/cursor/mcp-ts/team/README.md +1 -0
  58. package/presets/cursor/next/agents/accessibility-reviewer.md +1 -0
  59. package/presets/cursor/next/agents/solution-architect.md +1 -0
  60. package/presets/cursor/next/agents/task-analyst.md +1 -0
  61. package/presets/cursor/next/agents/tech-writer.md +2 -1
  62. package/presets/cursor/next/rules/anti-hallucination-contract.mdc +2 -0
  63. package/presets/cursor/next/rules/code-review-mr.mdc +2 -0
  64. package/presets/cursor/next/rules/react-a11y-coding.mdc +1 -0
  65. package/presets/cursor/next/team/README.md +1 -0
  66. package/presets/cursor/nuxt/rules/anti-hallucination-contract.mdc +2 -0
  67. package/presets/cursor/nuxt/rules/code-review-mr.mdc +2 -0
  68. package/presets/cursor/nuxt/team/README.md +1 -0
  69. package/presets/cursor/php-hexagonal/rules/anti-hallucination-contract.mdc +2 -0
  70. package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +2 -0
  71. package/presets/cursor/php-hexagonal/team/README.md +1 -0
  72. package/presets/cursor/php-laravel/rules/anti-hallucination-contract.mdc +2 -0
  73. package/presets/cursor/php-laravel/rules/code-review-mr.mdc +2 -0
  74. package/presets/cursor/php-laravel/team/README.md +1 -0
  75. package/presets/cursor/svelte/rules/anti-hallucination-contract.mdc +2 -0
  76. package/presets/cursor/svelte/rules/code-review-mr.mdc +2 -0
  77. package/presets/cursor/svelte/team/README.md +1 -0
  78. package/presets/mavis/android-kotlin/adapter-map.json +1 -1
  79. package/presets/mavis/android-kotlin/rules/anti-hallucination-contract.md +2 -0
  80. package/presets/mavis/android-kotlin/rules/code-review-mr.md +2 -0
  81. package/presets/mavis/android-kotlin/team/README.md +1 -0
  82. package/presets/mavis/go/adapter-map.json +1 -1
  83. package/presets/mavis/go/rules/anti-hallucination-contract.md +2 -0
  84. package/presets/mavis/go/rules/code-review-mr.md +2 -0
  85. package/presets/mavis/go/team/README.md +1 -0
  86. package/presets/mavis/ios-swift/adapter-map.json +1 -1
  87. package/presets/mavis/ios-swift/rules/anti-hallucination-contract.md +2 -0
  88. package/presets/mavis/ios-swift/rules/code-review-mr.md +2 -0
  89. package/presets/mavis/ios-swift/team/README.md +1 -0
  90. package/presets/mavis/java/adapter-map.json +1 -1
  91. package/presets/mavis/java/rules/anti-hallucination-contract.md +2 -0
  92. package/presets/mavis/java/rules/code-review-mr.md +2 -0
  93. package/presets/mavis/java/team/README.md +1 -0
  94. package/presets/mavis/mcp-ts/adapter-map.json +1 -1
  95. package/presets/mavis/mcp-ts/rules/anti-hallucination-contract.md +2 -0
  96. package/presets/mavis/mcp-ts/rules/code-review-mr.md +2 -0
  97. package/presets/mavis/mcp-ts/team/README.md +1 -0
  98. package/presets/mavis/next/adapter-map.json +1 -1
  99. package/presets/mavis/next/agents/accessibility-reviewer.md +1 -0
  100. package/presets/mavis/next/agents/solution-architect.md +1 -0
  101. package/presets/mavis/next/agents/task-analyst.md +1 -0
  102. package/presets/mavis/next/agents/tech-writer.md +2 -1
  103. package/presets/mavis/next/rules/anti-hallucination-contract.md +2 -0
  104. package/presets/mavis/next/rules/code-review-mr.md +2 -0
  105. package/presets/mavis/next/rules/react-a11y-coding.md +1 -0
  106. package/presets/mavis/next/team/README.md +1 -0
  107. package/presets/mavis/nuxt/adapter-map.json +1 -1
  108. package/presets/mavis/nuxt/rules/anti-hallucination-contract.md +2 -0
  109. package/presets/mavis/nuxt/rules/code-review-mr.md +2 -0
  110. package/presets/mavis/nuxt/team/README.md +1 -0
  111. package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
  112. package/presets/mavis/php-hexagonal/rules/anti-hallucination-contract.md +2 -0
  113. package/presets/mavis/php-hexagonal/rules/code-review-mr.md +2 -0
  114. package/presets/mavis/php-hexagonal/team/README.md +1 -0
  115. package/presets/mavis/php-laravel/adapter-map.json +1 -1
  116. package/presets/mavis/php-laravel/rules/anti-hallucination-contract.md +2 -0
  117. package/presets/mavis/php-laravel/rules/code-review-mr.md +2 -0
  118. package/presets/mavis/php-laravel/team/README.md +1 -0
  119. package/presets/mavis/svelte/adapter-map.json +1 -1
  120. package/presets/mavis/svelte/rules/anti-hallucination-contract.md +2 -0
  121. package/presets/mavis/svelte/rules/code-review-mr.md +2 -0
  122. package/presets/mavis/svelte/team/README.md +1 -0
  123. package/presets/opencode/android-kotlin/adapter-map.json +1 -1
  124. package/presets/opencode/android-kotlin/agents/tech-writer.md +6 -1
  125. package/presets/opencode/android-kotlin/rules/anti-hallucination-contract.md +2 -0
  126. package/presets/opencode/android-kotlin/rules/code-review-mr.md +2 -0
  127. package/presets/opencode/android-kotlin/team/README.md +1 -0
  128. package/presets/opencode/go/adapter-map.json +1 -1
  129. package/presets/opencode/go/agents/tech-writer.md +6 -1
  130. package/presets/opencode/go/rules/anti-hallucination-contract.md +2 -0
  131. package/presets/opencode/go/rules/code-review-mr.md +2 -0
  132. package/presets/opencode/go/team/README.md +1 -0
  133. package/presets/opencode/ios-swift/adapter-map.json +1 -1
  134. package/presets/opencode/ios-swift/agents/tech-writer.md +6 -1
  135. package/presets/opencode/ios-swift/rules/anti-hallucination-contract.md +2 -0
  136. package/presets/opencode/ios-swift/rules/code-review-mr.md +2 -0
  137. package/presets/opencode/ios-swift/team/README.md +1 -0
  138. package/presets/opencode/java/adapter-map.json +1 -1
  139. package/presets/opencode/java/agents/tech-writer.md +6 -1
  140. package/presets/opencode/java/rules/anti-hallucination-contract.md +2 -0
  141. package/presets/opencode/java/rules/code-review-mr.md +2 -0
  142. package/presets/opencode/java/team/README.md +1 -0
  143. package/presets/opencode/mcp-ts/adapter-map.json +1 -1
  144. package/presets/opencode/mcp-ts/rules/anti-hallucination-contract.md +2 -0
  145. package/presets/opencode/mcp-ts/rules/code-review-mr.md +2 -0
  146. package/presets/opencode/mcp-ts/team/README.md +1 -0
  147. package/presets/opencode/next/adapter-map.json +1 -1
  148. package/presets/opencode/next/agents/accessibility-reviewer.md +1 -0
  149. package/presets/opencode/next/agents/solution-architect.md +1 -0
  150. package/presets/opencode/next/agents/task-analyst.md +1 -0
  151. package/presets/opencode/next/agents/tech-writer.md +8 -2
  152. package/presets/opencode/next/rules/anti-hallucination-contract.md +2 -0
  153. package/presets/opencode/next/rules/code-review-mr.md +2 -0
  154. package/presets/opencode/next/rules/react-a11y-coding.md +1 -0
  155. package/presets/opencode/next/team/README.md +1 -0
  156. package/presets/opencode/nuxt/adapter-map.json +1 -1
  157. package/presets/opencode/nuxt/agents/tech-writer.md +6 -1
  158. package/presets/opencode/nuxt/rules/anti-hallucination-contract.md +2 -0
  159. package/presets/opencode/nuxt/rules/code-review-mr.md +2 -0
  160. package/presets/opencode/nuxt/team/README.md +1 -0
  161. package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
  162. package/presets/opencode/php-hexagonal/agents/tech-writer.md +6 -1
  163. package/presets/opencode/php-hexagonal/rules/anti-hallucination-contract.md +2 -0
  164. package/presets/opencode/php-hexagonal/rules/code-review-mr.md +2 -0
  165. package/presets/opencode/php-hexagonal/team/README.md +1 -0
  166. package/presets/opencode/php-laravel/adapter-map.json +1 -1
  167. package/presets/opencode/php-laravel/agents/tech-writer.md +6 -1
  168. package/presets/opencode/php-laravel/rules/anti-hallucination-contract.md +2 -0
  169. package/presets/opencode/php-laravel/rules/code-review-mr.md +2 -0
  170. package/presets/opencode/php-laravel/team/README.md +1 -0
  171. package/presets/opencode/svelte/adapter-map.json +1 -1
  172. package/presets/opencode/svelte/agents/tech-writer.md +6 -1
  173. package/presets/opencode/svelte/rules/anti-hallucination-contract.md +2 -0
  174. package/presets/opencode/svelte/rules/code-review-mr.md +2 -0
  175. package/presets/opencode/svelte/team/README.md +1 -0
@@ -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": "mcp-ts",
5
5
  "semanticSource": "cursor/mcp-ts",
6
- "sourceRevision": "c40648ba58e0501cc044c16e77b7c2819fa7a841136793aac3341cdc080ee038",
6
+ "sourceRevision": "e85017fedb2bcaa8cc9c02fd8677b08d83abd7a905fc2afa05c021e8b2c3000b",
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.
@@ -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": "next",
5
5
  "semanticSource": "cursor/next",
6
- "sourceRevision": "18cc3e4d68fa2d1bd4173802cd2bce02d079159f19a434b91a83954d2eb4a829",
6
+ "sourceRevision": "f7e4fe6caadc60b7088ee2ee3810e1ea81061f187d3020ac48f1e82f527569c0",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -34,6 +34,7 @@ You are an accessibility reviewer for a Next.js React frontend.
34
34
 
35
35
  - Keyboard navigation and focus order (Tab, Shift+Tab, Escape, Enter).
36
36
  - Focus trap in modals/drawers; focus return on close.
37
+ - 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.
37
38
  - ARIA roles, labels, `aria-*` attributes, live regions.
38
39
  - Semantic HTML vs div-only interactive elements.
39
40
  - Form labels, error announcements, required field indication.
@@ -66,6 +66,7 @@ Write `.ai.local/team/tasks/<slug>/architecture.md`:
66
66
 
67
67
  - Align with existing layer boundaries — no DTO in UI, no HTTP from components.
68
68
  - Reference concrete paths in the repo (similar features as templates).
69
+ - 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.
69
70
  - Flag when decomposition should change — list suggested updates for analyst/developer.
70
71
  - Do **not** write production code or tests.
71
72
 
@@ -86,6 +86,7 @@ Before writing artifacts, confirm:
86
86
 
87
87
  - [ ] Goal and **out-of-scope** are stated
88
88
  - [ ] **Acceptance criteria** are verifiable (Given/When/Then or checklist)
89
+ - [ ] Every frozen **contract seam** has a named test (sort key ↔ column, command parameter ↔ ingestion, nullable DTO ↔ UI formatter) — see `task-framing` § Contract seams
89
90
  - [ ] **Risks and dependencies** are listed
90
91
  - [ ] **Decomposition** covers all layers touched (types, api, store, ui, tests)
91
92
  - [ ] Each task has layer, dependencies, and "done when"
@@ -57,7 +57,8 @@ Conventional commit / release note snippet.
57
57
  - Write for developers consuming the feature or maintaining the code.
58
58
  - Link to relevant rules, skills, and file paths — not vague references.
59
59
  - Do not duplicate entire decomposition — summarize outcomes and how to use/extend.
60
- - May create or update files under `docs/**` when the task explicitly requests it; otherwise keep primary output in team artifacts.
60
+ - 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.
61
+ - A README edit is documentation, not application code; still cite the feature, env var or command it documents instead of inventing values.
61
62
 
62
63
  ## OpenSpec (`openspec/changes/**`, `openspec/specs/**`)
63
64
 
@@ -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.
@@ -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
 
@@ -19,6 +19,7 @@ The reviewer (`accessibility-reviewer`) checks the diff; these rules apply **whi
19
19
  - All interactive elements are **reachable via Tab** and activatable with Enter/Space where expected.
20
20
  - **Modals/drawers** — focus trap, return focus to trigger on close, Esc closes (if UX allows).
21
21
  - Do not remove visible **focus outline** without an accessible custom focus style.
22
+ - **Async loading must not drop focus.** Never pass `disabled` to the control that triggered an in-flight request; keep it focusable and put `aria-busy` on the results region. Keep pagination metadata stable so the pager does not unmount. When the triggering control unmounts (for example a retry button while loading), move focus to the block heading; do not autofocus on initial mount.
22
23
 
23
24
  ## Content
24
25
 
@@ -72,6 +72,7 @@ node .ai.local/scripts/manifest.mjs check --slug <slug>
72
72
  - Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
73
73
  - Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
74
74
  - 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.
75
+ - **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.
75
76
  - Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
76
77
 
77
78
  ## Commands
@@ -3,7 +3,7 @@
3
3
  "platform": "mavis",
4
4
  "stack": "nuxt",
5
5
  "semanticSource": "cursor/nuxt",
6
- "sourceRevision": "421f616cc96404b752c6b243f7c730da9768e9fdd036000761743201cfee749f",
6
+ "sourceRevision": "bbeb7f2da29c1c32a8a07e508adb666d47535d4610e6458c53dd35795ecbbed9",
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.
@@ -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": "php-hexagonal",
5
5
  "semanticSource": "cursor/php-hexagonal",
6
- "sourceRevision": "e118efe3bf2de7e776e8722eea91adc3949fdf1b8da97e437dd637828db5af95",
6
+ "sourceRevision": "8d6bc8ca109b0f3cfb50a9efc8899af56ed5c1545182b71fdd169bce21f4ca95",
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.
@@ -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": "php-laravel",
5
5
  "semanticSource": "cursor/php-laravel",
6
- "sourceRevision": "976a60a6e95861cc076b13f46ce0065a84b626606d62b9e0b2ca8c875a08de51",
6
+ "sourceRevision": "4f34b668a1968e684130dde8c05ca856a4154a03a3c1329fa21d6f9c819e2624",
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.
@@ -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": "27cb56d98328cfa14a841c610d09a98f90a5a1ef9a9a8584135c7b53fca6d157",
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.
@@ -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": "3b546a581826ff2b7680c1f81f7b201da861c1fdb486b8e6a25dc6cf87417d42",
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.
@@ -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": "4c572bfcfe3bf1ac68495302047345e448f4b6a15c820ba5bcb73da126774624",
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.
@@ -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": "6b3eaadd40e52e944557a0707a6a13575b01839941244245ca86315e1603b3df",
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.
@@ -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": "5ceb9ab003b65ce5faa86ae8f18875622a105119315ce47290c4945e577e3b08",
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.
@@ -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": "e85017fedb2bcaa8cc9c02fd8677b08d83abd7a905fc2afa05c021e8b2c3000b",
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.
@@ -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