@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.
- package/CHANGELOG.md +28 -0
- package/package.json +1 -1
- package/presets/_shared/core/agent-team/agent-artifact-contracts.md +6 -0
- package/presets/_shared/core/agent-team/task-framing.md +4 -0
- package/presets/_shared/core/quality/anti-hallucination-contract.md +2 -0
- package/presets/_shared/core/quality/code-quality-and-refactoring.md +11 -0
- package/presets/_shared/core/review/code-review-mr.md +2 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +2 -0
- package/presets/claude/android-kotlin/team/README.md +1 -0
- package/presets/claude/go/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/go/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/go/rules/tooling-and-review/code-review.md +2 -0
- package/presets/claude/go/team/README.md +1 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +2 -0
- package/presets/claude/ios-swift/team/README.md +1 -0
- package/presets/claude/java/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/java/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/java/rules/tooling-and-review/code-review.md +2 -0
- package/presets/claude/java/team/README.md +1 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +2 -0
- package/presets/claude/mcp-ts/team/README.md +1 -0
- package/presets/claude/next/agents/accessibility-reviewer.md +1 -0
- package/presets/claude/next/agents/solution-architect.md +1 -0
- package/presets/claude/next/agents/task-analyst.md +1 -0
- package/presets/claude/next/agents/tech-writer.md +2 -1
- package/presets/claude/next/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/next/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +2 -0
- package/presets/claude/next/rules/ui-and-accessibility/react-a11y-coding.md +1 -0
- package/presets/claude/next/team/README.md +1 -0
- package/presets/claude/nuxt/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/nuxt/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +2 -0
- package/presets/claude/nuxt/team/README.md +1 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +2 -0
- package/presets/claude/php-hexagonal/team/README.md +1 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +2 -0
- package/presets/claude/php-laravel/team/README.md +1 -0
- package/presets/claude/svelte/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/svelte/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +2 -0
- package/presets/claude/svelte/team/README.md +1 -0
- package/presets/cursor/android-kotlin/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/android-kotlin/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/android-kotlin/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/android-kotlin/team/README.md +1 -0
- package/presets/cursor/go/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/go/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/go/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/go/team/README.md +1 -0
- package/presets/cursor/ios-swift/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/ios-swift/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/ios-swift/team/README.md +1 -0
- package/presets/cursor/java/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/java/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/java/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/java/team/README.md +1 -0
- package/presets/cursor/mcp-ts/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/mcp-ts/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/mcp-ts/team/README.md +1 -0
- package/presets/cursor/next/agents/accessibility-reviewer.md +1 -0
- package/presets/cursor/next/agents/solution-architect.md +1 -0
- package/presets/cursor/next/agents/task-analyst.md +1 -0
- package/presets/cursor/next/agents/tech-writer.md +2 -1
- package/presets/cursor/next/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/next/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/next/rules/react-a11y-coding.mdc +1 -0
- package/presets/cursor/next/team/README.md +1 -0
- package/presets/cursor/nuxt/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/nuxt/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/nuxt/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/nuxt/team/README.md +1 -0
- package/presets/cursor/php-hexagonal/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/php-hexagonal/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/php-hexagonal/team/README.md +1 -0
- package/presets/cursor/php-laravel/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/php-laravel/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/php-laravel/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/php-laravel/team/README.md +1 -0
- package/presets/cursor/svelte/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/svelte/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/svelte/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/svelte/team/README.md +1 -0
- package/presets/mavis/android-kotlin/adapter-map.json +1 -1
- package/presets/mavis/android-kotlin/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/android-kotlin/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/android-kotlin/rules/code-review-mr.md +2 -0
- package/presets/mavis/android-kotlin/team/README.md +1 -0
- package/presets/mavis/go/adapter-map.json +1 -1
- package/presets/mavis/go/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/go/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/go/rules/code-review-mr.md +2 -0
- package/presets/mavis/go/team/README.md +1 -0
- package/presets/mavis/ios-swift/adapter-map.json +1 -1
- package/presets/mavis/ios-swift/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/ios-swift/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/ios-swift/rules/code-review-mr.md +2 -0
- package/presets/mavis/ios-swift/team/README.md +1 -0
- package/presets/mavis/java/adapter-map.json +1 -1
- package/presets/mavis/java/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/java/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/java/rules/code-review-mr.md +2 -0
- package/presets/mavis/java/team/README.md +1 -0
- package/presets/mavis/mcp-ts/adapter-map.json +1 -1
- package/presets/mavis/mcp-ts/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/mcp-ts/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/mcp-ts/rules/code-review-mr.md +2 -0
- package/presets/mavis/mcp-ts/team/README.md +1 -0
- package/presets/mavis/next/adapter-map.json +1 -1
- package/presets/mavis/next/agents/accessibility-reviewer.md +1 -0
- package/presets/mavis/next/agents/solution-architect.md +1 -0
- package/presets/mavis/next/agents/task-analyst.md +1 -0
- package/presets/mavis/next/agents/tech-writer.md +2 -1
- package/presets/mavis/next/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/next/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/next/rules/code-review-mr.md +2 -0
- package/presets/mavis/next/rules/react-a11y-coding.md +1 -0
- package/presets/mavis/next/team/README.md +1 -0
- package/presets/mavis/nuxt/adapter-map.json +1 -1
- package/presets/mavis/nuxt/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/nuxt/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/nuxt/rules/code-review-mr.md +2 -0
- package/presets/mavis/nuxt/team/README.md +1 -0
- package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
- package/presets/mavis/php-hexagonal/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/php-hexagonal/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/php-hexagonal/rules/code-review-mr.md +2 -0
- package/presets/mavis/php-hexagonal/team/README.md +1 -0
- package/presets/mavis/php-laravel/adapter-map.json +1 -1
- package/presets/mavis/php-laravel/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/php-laravel/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/php-laravel/rules/code-review-mr.md +2 -0
- package/presets/mavis/php-laravel/team/README.md +1 -0
- package/presets/mavis/svelte/adapter-map.json +1 -1
- package/presets/mavis/svelte/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/svelte/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/svelte/rules/code-review-mr.md +2 -0
- package/presets/mavis/svelte/team/README.md +1 -0
- package/presets/opencode/android-kotlin/adapter-map.json +1 -1
- package/presets/opencode/android-kotlin/agents/tech-writer.md +6 -1
- package/presets/opencode/android-kotlin/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/android-kotlin/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/android-kotlin/rules/code-review-mr.md +2 -0
- package/presets/opencode/android-kotlin/team/README.md +1 -0
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/agents/tech-writer.md +6 -1
- package/presets/opencode/go/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/go/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/go/rules/code-review-mr.md +2 -0
- package/presets/opencode/go/team/README.md +1 -0
- package/presets/opencode/ios-swift/adapter-map.json +1 -1
- package/presets/opencode/ios-swift/agents/tech-writer.md +6 -1
- package/presets/opencode/ios-swift/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/ios-swift/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/ios-swift/rules/code-review-mr.md +2 -0
- package/presets/opencode/ios-swift/team/README.md +1 -0
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/agents/tech-writer.md +6 -1
- package/presets/opencode/java/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/java/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/java/rules/code-review-mr.md +2 -0
- package/presets/opencode/java/team/README.md +1 -0
- package/presets/opencode/mcp-ts/adapter-map.json +1 -1
- package/presets/opencode/mcp-ts/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/mcp-ts/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/mcp-ts/rules/code-review-mr.md +2 -0
- package/presets/opencode/mcp-ts/team/README.md +1 -0
- package/presets/opencode/next/adapter-map.json +1 -1
- package/presets/opencode/next/agents/accessibility-reviewer.md +1 -0
- package/presets/opencode/next/agents/solution-architect.md +1 -0
- package/presets/opencode/next/agents/task-analyst.md +1 -0
- package/presets/opencode/next/agents/tech-writer.md +8 -2
- package/presets/opencode/next/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/next/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/next/rules/code-review-mr.md +2 -0
- package/presets/opencode/next/rules/react-a11y-coding.md +1 -0
- package/presets/opencode/next/team/README.md +1 -0
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/agents/tech-writer.md +6 -1
- package/presets/opencode/nuxt/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/nuxt/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/nuxt/rules/code-review-mr.md +2 -0
- package/presets/opencode/nuxt/team/README.md +1 -0
- package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
- package/presets/opencode/php-hexagonal/agents/tech-writer.md +6 -1
- package/presets/opencode/php-hexagonal/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/php-hexagonal/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/php-hexagonal/rules/code-review-mr.md +2 -0
- package/presets/opencode/php-hexagonal/team/README.md +1 -0
- package/presets/opencode/php-laravel/adapter-map.json +1 -1
- package/presets/opencode/php-laravel/agents/tech-writer.md +6 -1
- package/presets/opencode/php-laravel/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/php-laravel/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/php-laravel/rules/code-review-mr.md +2 -0
- package/presets/opencode/php-laravel/team/README.md +1 -0
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/agents/tech-writer.md +6 -1
- package/presets/opencode/svelte/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/svelte/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/svelte/rules/code-review-mr.md +2 -0
- package/presets/opencode/svelte/team/README.md +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.48
|
|
4
|
+
|
|
5
|
+
### Interactive questions are the preferred way to ask the user
|
|
6
|
+
|
|
7
|
+
- **Interactive first.** `code-quality-and-refactoring` (shared core plus all 20 Cursor and Claude adapters, regenerated Mavis and OpenCode copies) gains § Questions to the user: when a decision belongs to the user, 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.
|
|
8
|
+
- **Structured for the widget.** One decision per question, independent decisions split so the host walks them as steps; header is a short label (≤30 characters), option labels are 1–5 words in the user’s terms, option descriptions state the consequence or trade-off; 2–5 options, multi-select only when the choices are not mutually exclusive; no hand-written “other” option because the host adds the free-form one; recommended option first; ask before the dependent work and never ask what the repository already answers.
|
|
9
|
+
- **Always on, no new slot.** The section rides the existing always-on quality rule on every stack and platform — Cursor `alwaysApply`, Claude session-start, Mavis and OpenCode `loadMode: root-entry`. No new stem, no new always-on slot, no install-path or CLI change; `next` keeps its four always-on stems, the Claude session-start body stays at 110 lines against the 4000 cap, and the structure gate stays green.
|
|
10
|
+
|
|
11
|
+
### Upgrade
|
|
12
|
+
|
|
13
|
+
- Run `npx @bonesofspring/ai-rules update` to refresh the installed `code-quality-and-refactoring` body (Cursor `.mdc`, Claude `.md`, and the generated Mavis and OpenCode copies). The rule is managed, so `update` replaces it; no manual edit is needed.
|
|
14
|
+
|
|
15
|
+
## 0.2.47
|
|
16
|
+
|
|
17
|
+
### Retro guardrails from a cross-layer GitLab feature
|
|
18
|
+
|
|
19
|
+
- **Contract seams get a test.** `task-framing` gains § Contract seams; the `task-analyst` DoR checklist and `code-review-mr` require a named test for every frozen external mapping (sort key ↔ column, command parameter ↔ ingestion, nullable DTO ↔ formatter). A seam that exists only in prose is a review finding.
|
|
20
|
+
- **Async loading must not drop focus.** `react-a11y-coding` and `accessibility-reviewer` state: never `disabled` the control that triggered an in-flight request; keep it focusable, put `aria-busy` on the results region, keep pagination meta stable, and move focus to the heading when the triggering control unmounts.
|
|
21
|
+
- **Multi-phase flags state their scope.** `solution-architect` and `code-review-mr` require a flag honored by only one phase to be documented and tested.
|
|
22
|
+
- **Measured facts are not `[verify]`.** `anti-hallucination-contract` tells every role to reuse a probe already run by the orchestrator or another role; `[verify]` is reserved for unmeasured facts with an owner and effect.
|
|
23
|
+
- **Closeout checks the manifest.** `agent-artifact-contracts` and the installed `team/README.md` require `manifest.mjs check` before the terminal receipt and restoring a root producer body if the hook moved it to `archive/<date>/`.
|
|
24
|
+
- **Tech-writer write scope.** `tech-writer` may write `docs/**`, `README.md` / `**/README.md`, `CHANGELOG.md` / `**/CHANGELOG.md`, and tick `openspec/changes/**/tasks.md`; production code and OpenSpec prose stay out of scope. `AGENT_WRITE_SCOPES` and all four platform agent prompts are aligned.
|
|
25
|
+
|
|
26
|
+
### Upgrade
|
|
27
|
+
|
|
28
|
+
- Run `npx @bonesofspring/ai-rules update`.
|
|
29
|
+
- The `tech-writer` OpenCode permission map is generated from `AGENT_WRITE_SCOPES`; re-init replaces the installed `.opencode/agents/tech-writer.md`.
|
|
30
|
+
|
|
3
31
|
## 0.2.46
|
|
4
32
|
|
|
5
33
|
### The manifest writer validates before it writes
|
package/package.json
CHANGED
|
@@ -293,6 +293,12 @@ Agent-written chronological markdown (`## YYYY-MM-DD` headings). Suggested line
|
|
|
293
293
|
|
|
294
294
|
Checkpoint/resume semantics (bounded waves, `event:` checkpoints, `authoritativePaths`) live in core **quality/context-and-iteration.md**.
|
|
295
295
|
|
|
296
|
+
## Closeout and archived artifacts
|
|
297
|
+
|
|
298
|
+
Before the terminal receipt, run `node .ai.local/scripts/manifest.mjs check --slug <slug>`. It must exit `0`.
|
|
299
|
+
|
|
300
|
+
The orchestration hook may close a producer artifact by moving its body to `archive/<date>/` and repointing `authoritativePaths`. `check` accepts an archived path only on a completed or superseded entry, but a later write can leave a root-path reference without the root file. Resolve it at closeout: restore the root copy from `archive/<date>/` and point the entry at the root path, or keep the archived path only when the entry is terminal. Never leave a deleted root file plus an untracked archive copy for the human commit.
|
|
301
|
+
|
|
296
302
|
## Minimal terminal handoff
|
|
297
303
|
|
|
298
304
|
Report the owned entry ID, outcome, authoritative paths, covered AC/task IDs, and remaining gaps. The hook advances pipeline state from the terminal receipt; the agent receipt is evidence that drives the state transition, not a substitute for writing `status.json`.
|
|
@@ -22,6 +22,10 @@ The orchestrator records the frame in `goal.md` before any specialist runs. `pro
|
|
|
22
22
|
- Write each criterion so it is **testable and unambiguous** (`Given/When/Then` or a checklist item).
|
|
23
23
|
- Every requirement maps to at least one AC-ID and every AC-ID maps to at least one requirement. No orphan requirements, no untraceable criteria.
|
|
24
24
|
|
|
25
|
+
## Contract seams
|
|
26
|
+
|
|
27
|
+
When a requirement freezes how an external payload, command parameter, or nullable value maps into the product, name the test that fails without it: sort key ↔ rendered column, command parameter ↔ ingestion call, DTO `null` ↔ UI formatter. A frozen seam without a named test is a review finding, not a documentation gap. Record the seam/test pairs in the brief before decomposition.
|
|
28
|
+
|
|
25
29
|
## Success & result-evaluation criteria
|
|
26
30
|
|
|
27
31
|
- **Definition of done** — the conditions under which the task (or a work package) is complete.
|
|
@@ -12,6 +12,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
|
|
|
12
12
|
|
|
13
13
|
`// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
|
|
14
14
|
|
|
15
|
+
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.
|
|
16
|
+
|
|
15
17
|
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.
|
|
16
18
|
|
|
17
19
|
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.
|
|
@@ -58,6 +58,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
|
|
|
58
58
|
- Urgency/authority: name the trade-off once, then comply — no apology loops.
|
|
59
59
|
- Match verification to risk; report by what was **verified**, not attempted.
|
|
60
60
|
|
|
61
|
+
## Questions to the user
|
|
62
|
+
|
|
63
|
+
**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.
|
|
64
|
+
|
|
65
|
+
- One decision per question; put independent decisions in separate entries so the host walks them as steps.
|
|
66
|
+
- 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.
|
|
67
|
+
- Two to five options; enable multi-select only when the choices are not mutually exclusive.
|
|
68
|
+
- Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
|
|
69
|
+
- Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
70
|
+
- Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
|
|
71
|
+
|
|
61
72
|
Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
|
|
62
73
|
|
|
63
74
|
> Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
|
|
@@ -18,6 +18,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
|
|
|
18
18
|
- Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
|
|
19
19
|
- Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
|
|
20
20
|
- Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
|
|
21
|
+
- **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.
|
|
22
|
+
- **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.
|
|
21
23
|
|
|
22
24
|
Concrete rule stems — in **Stack notes**.
|
|
23
25
|
|
package/presets/claude/android-kotlin/rules/tooling-and-review/anti-hallucination-contract.md
CHANGED
|
@@ -19,6 +19,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
|
|
|
19
19
|
|
|
20
20
|
`// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
|
|
21
21
|
|
|
22
|
+
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.
|
|
23
|
+
|
|
22
24
|
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.
|
|
23
25
|
|
|
24
26
|
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.
|
|
@@ -64,6 +64,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
|
|
|
64
64
|
- Urgency/authority: name the trade-off once, then comply — no apology loops.
|
|
65
65
|
- Match verification to risk; report by what was **verified**, not attempted.
|
|
66
66
|
|
|
67
|
+
## Questions to the user
|
|
68
|
+
|
|
69
|
+
**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.
|
|
70
|
+
|
|
71
|
+
- One decision per question; put independent decisions in separate entries so the host walks them as steps.
|
|
72
|
+
- 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.
|
|
73
|
+
- Two to five options; enable multi-select only when the choices are not mutually exclusive.
|
|
74
|
+
- Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
|
|
75
|
+
- Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
76
|
+
- Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
|
|
77
|
+
|
|
67
78
|
Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
|
|
68
79
|
|
|
69
80
|
> Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
|
|
@@ -25,6 +25,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
|
|
|
25
25
|
- Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
|
|
26
26
|
- Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
|
|
27
27
|
- Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
|
|
28
|
+
- **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.
|
|
29
|
+
- **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.
|
|
28
30
|
|
|
29
31
|
Concrete rule stems — in **Stack notes**.
|
|
30
32
|
|
|
@@ -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
|
|
@@ -19,6 +19,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
|
|
|
19
19
|
|
|
20
20
|
`// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
|
|
21
21
|
|
|
22
|
+
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.
|
|
23
|
+
|
|
22
24
|
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.
|
|
23
25
|
|
|
24
26
|
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.
|
|
@@ -64,6 +64,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
|
|
|
64
64
|
- Urgency/authority: name the trade-off once, then comply — no apology loops.
|
|
65
65
|
- Match verification to risk; report by what was **verified**, not attempted.
|
|
66
66
|
|
|
67
|
+
## Questions to the user
|
|
68
|
+
|
|
69
|
+
**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.
|
|
70
|
+
|
|
71
|
+
- One decision per question; put independent decisions in separate entries so the host walks them as steps.
|
|
72
|
+
- 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.
|
|
73
|
+
- Two to five options; enable multi-select only when the choices are not mutually exclusive.
|
|
74
|
+
- Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
|
|
75
|
+
- Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
76
|
+
- Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
|
|
77
|
+
|
|
67
78
|
Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
|
|
68
79
|
|
|
69
80
|
> Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
|
|
@@ -25,6 +25,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
|
|
|
25
25
|
- Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
|
|
26
26
|
- Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
|
|
27
27
|
- Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
|
|
28
|
+
- **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.
|
|
29
|
+
- **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.
|
|
28
30
|
|
|
29
31
|
Concrete rule stems — in **Stack notes**.
|
|
30
32
|
|
|
@@ -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
|
|
@@ -19,6 +19,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
|
|
|
19
19
|
|
|
20
20
|
`// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
|
|
21
21
|
|
|
22
|
+
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.
|
|
23
|
+
|
|
22
24
|
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.
|
|
23
25
|
|
|
24
26
|
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.
|
|
@@ -64,6 +64,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
|
|
|
64
64
|
- Urgency/authority: name the trade-off once, then comply — no apology loops.
|
|
65
65
|
- Match verification to risk; report by what was **verified**, not attempted.
|
|
66
66
|
|
|
67
|
+
## Questions to the user
|
|
68
|
+
|
|
69
|
+
**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.
|
|
70
|
+
|
|
71
|
+
- One decision per question; put independent decisions in separate entries so the host walks them as steps.
|
|
72
|
+
- 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.
|
|
73
|
+
- Two to five options; enable multi-select only when the choices are not mutually exclusive.
|
|
74
|
+
- Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
|
|
75
|
+
- Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
76
|
+
- Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
|
|
77
|
+
|
|
67
78
|
Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
|
|
68
79
|
|
|
69
80
|
> Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
|
|
@@ -25,6 +25,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
|
|
|
25
25
|
- Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
|
|
26
26
|
- Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
|
|
27
27
|
- Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
|
|
28
|
+
- **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.
|
|
29
|
+
- **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.
|
|
28
30
|
|
|
29
31
|
Concrete rule stems — in **Stack notes**.
|
|
30
32
|
|
|
@@ -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
|
|
@@ -19,6 +19,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
|
|
|
19
19
|
|
|
20
20
|
`// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
|
|
21
21
|
|
|
22
|
+
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.
|
|
23
|
+
|
|
22
24
|
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.
|
|
23
25
|
|
|
24
26
|
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.
|
|
@@ -64,6 +64,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
|
|
|
64
64
|
- Urgency/authority: name the trade-off once, then comply — no apology loops.
|
|
65
65
|
- Match verification to risk; report by what was **verified**, not attempted.
|
|
66
66
|
|
|
67
|
+
## Questions to the user
|
|
68
|
+
|
|
69
|
+
**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.
|
|
70
|
+
|
|
71
|
+
- One decision per question; put independent decisions in separate entries so the host walks them as steps.
|
|
72
|
+
- 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.
|
|
73
|
+
- Two to five options; enable multi-select only when the choices are not mutually exclusive.
|
|
74
|
+
- Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
|
|
75
|
+
- Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
76
|
+
- Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
|
|
77
|
+
|
|
67
78
|
Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
|
|
68
79
|
|
|
69
80
|
> Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
|
|
@@ -25,6 +25,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
|
|
|
25
25
|
- Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
|
|
26
26
|
- Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
|
|
27
27
|
- Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
|
|
28
|
+
- **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.
|
|
29
|
+
- **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.
|
|
28
30
|
|
|
29
31
|
Concrete rule stems — in **Stack notes**.
|
|
30
32
|
|
|
@@ -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
|
|
@@ -19,6 +19,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
|
|
|
19
19
|
|
|
20
20
|
`// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
|
|
21
21
|
|
|
22
|
+
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.
|
|
23
|
+
|
|
22
24
|
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.
|
|
23
25
|
|
|
24
26
|
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.
|
|
@@ -64,6 +64,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
|
|
|
64
64
|
- Urgency/authority: name the trade-off once, then comply — no apology loops.
|
|
65
65
|
- Match verification to risk; report by what was **verified**, not attempted.
|
|
66
66
|
|
|
67
|
+
## Questions to the user
|
|
68
|
+
|
|
69
|
+
**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.
|
|
70
|
+
|
|
71
|
+
- One decision per question; put independent decisions in separate entries so the host walks them as steps.
|
|
72
|
+
- 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.
|
|
73
|
+
- Two to five options; enable multi-select only when the choices are not mutually exclusive.
|
|
74
|
+
- Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
|
|
75
|
+
- Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
76
|
+
- Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
|
|
77
|
+
|
|
67
78
|
Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
|
|
68
79
|
|
|
69
80
|
> Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
|
|
@@ -25,6 +25,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
|
|
|
25
25
|
- Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
|
|
26
26
|
- Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
|
|
27
27
|
- Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
|
|
28
|
+
- **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.
|
|
29
|
+
- **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.
|
|
28
30
|
|
|
29
31
|
Concrete rule stems — in **Stack notes**.
|
|
30
32
|
|
|
@@ -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
|
|
@@ -35,6 +35,7 @@ You are an accessibility reviewer for a Next.js React frontend.
|
|
|
35
35
|
|
|
36
36
|
- Keyboard navigation and focus order (Tab, Shift+Tab, Escape, Enter).
|
|
37
37
|
- Focus trap in modals/drawers; focus return on close.
|
|
38
|
+
- 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.
|
|
38
39
|
- ARIA roles, labels, `aria-*` attributes, live regions.
|
|
39
40
|
- Semantic HTML vs div-only interactive elements.
|
|
40
41
|
- Form labels, error announcements, required field indication.
|
|
@@ -67,6 +67,7 @@ Write `.ai.local/team/tasks/<slug>/architecture.md`:
|
|
|
67
67
|
|
|
68
68
|
- Align with existing layer boundaries — no DTO in UI, no HTTP from components.
|
|
69
69
|
- Reference concrete paths in the repo (similar features as templates).
|
|
70
|
+
- 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.
|
|
70
71
|
- Flag when decomposition should change — list suggested updates for analyst/developer.
|
|
71
72
|
- Do **not** write production code or tests.
|
|
72
73
|
|
|
@@ -87,6 +87,7 @@ Before writing artifacts, confirm:
|
|
|
87
87
|
|
|
88
88
|
- [ ] Goal and **out-of-scope** are stated
|
|
89
89
|
- [ ] **Acceptance criteria** are verifiable (Given/When/Then or checklist)
|
|
90
|
+
- [ ] Every frozen **contract seam** has a named test (sort key ↔ column, command parameter ↔ ingestion, nullable DTO ↔ UI formatter) — see `task-framing` § Contract seams
|
|
90
91
|
- [ ] **Risks and dependencies** are listed
|
|
91
92
|
- [ ] **Decomposition** covers all layers touched (types, api, store, ui, tests)
|
|
92
93
|
- [ ] Each task has layer, dependencies, and "done when"
|
|
@@ -58,7 +58,8 @@ Conventional commit / release note snippet.
|
|
|
58
58
|
- Write for developers consuming the feature or maintaining the code.
|
|
59
59
|
- Link to relevant rules, skills, and file paths — not vague references.
|
|
60
60
|
- Do not duplicate entire decomposition — summarize outcomes and how to use/extend.
|
|
61
|
-
- May create or update files under `docs
|
|
61
|
+
- 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.
|
|
62
|
+
- A README edit is documentation, not application code; still cite the feature, env var or command it documents instead of inventing values.
|
|
62
63
|
|
|
63
64
|
## OpenSpec (`openspec/changes/**`, `openspec/specs/**`)
|
|
64
65
|
|
|
@@ -19,6 +19,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
|
|
|
19
19
|
|
|
20
20
|
`// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
|
|
21
21
|
|
|
22
|
+
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.
|
|
23
|
+
|
|
22
24
|
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.
|
|
23
25
|
|
|
24
26
|
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.
|
|
@@ -64,6 +64,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
|
|
|
64
64
|
- Urgency/authority: name the trade-off once, then comply — no apology loops.
|
|
65
65
|
- Match verification to risk; report by what was **verified**, not attempted.
|
|
66
66
|
|
|
67
|
+
## Questions to the user
|
|
68
|
+
|
|
69
|
+
**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.
|
|
70
|
+
|
|
71
|
+
- One decision per question; put independent decisions in separate entries so the host walks them as steps.
|
|
72
|
+
- 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.
|
|
73
|
+
- Two to five options; enable multi-select only when the choices are not mutually exclusive.
|
|
74
|
+
- Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
|
|
75
|
+
- Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
76
|
+
- Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
|
|
77
|
+
|
|
67
78
|
Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
|
|
68
79
|
|
|
69
80
|
> Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
|
|
@@ -25,6 +25,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
|
|
|
25
25
|
- Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
|
|
26
26
|
- Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
|
|
27
27
|
- Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
|
|
28
|
+
- **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.
|
|
29
|
+
- **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.
|
|
28
30
|
|
|
29
31
|
Concrete rule stems — in **Stack notes**.
|
|
30
32
|
|
|
@@ -26,6 +26,7 @@ The reviewer (`accessibility-reviewer`) checks the diff; these rules apply **whi
|
|
|
26
26
|
- All interactive elements are **reachable via Tab** and activatable with Enter/Space where expected.
|
|
27
27
|
- **Modals/drawers** — focus trap, return focus to trigger on close, Esc closes (if UX allows).
|
|
28
28
|
- Do not remove visible **focus outline** without an accessible custom focus style.
|
|
29
|
+
- **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.
|
|
29
30
|
|
|
30
31
|
## Content
|
|
31
32
|
|
|
@@ -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
|
|
@@ -19,6 +19,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
|
|
|
19
19
|
|
|
20
20
|
`// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
|
|
21
21
|
|
|
22
|
+
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.
|
|
23
|
+
|
|
22
24
|
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.
|
|
23
25
|
|
|
24
26
|
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.
|
|
@@ -64,6 +64,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
|
|
|
64
64
|
- Urgency/authority: name the trade-off once, then comply — no apology loops.
|
|
65
65
|
- Match verification to risk; report by what was **verified**, not attempted.
|
|
66
66
|
|
|
67
|
+
## Questions to the user
|
|
68
|
+
|
|
69
|
+
**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.
|
|
70
|
+
|
|
71
|
+
- One decision per question; put independent decisions in separate entries so the host walks them as steps.
|
|
72
|
+
- 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.
|
|
73
|
+
- Two to five options; enable multi-select only when the choices are not mutually exclusive.
|
|
74
|
+
- Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
|
|
75
|
+
- Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
76
|
+
- Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
|
|
77
|
+
|
|
67
78
|
Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
|
|
68
79
|
|
|
69
80
|
> Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
|
|
@@ -25,6 +25,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
|
|
|
25
25
|
- Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
|
|
26
26
|
- Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
|
|
27
27
|
- Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
|
|
28
|
+
- **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.
|
|
29
|
+
- **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.
|
|
28
30
|
|
|
29
31
|
Concrete rule stems — in **Stack notes**.
|
|
30
32
|
|
|
@@ -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
|
package/presets/claude/php-hexagonal/rules/tooling-and-review/anti-hallucination-contract.md
CHANGED
|
@@ -19,6 +19,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
|
|
|
19
19
|
|
|
20
20
|
`// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
|
|
21
21
|
|
|
22
|
+
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.
|
|
23
|
+
|
|
22
24
|
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.
|
|
23
25
|
|
|
24
26
|
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.
|
|
@@ -64,6 +64,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
|
|
|
64
64
|
- Urgency/authority: name the trade-off once, then comply — no apology loops.
|
|
65
65
|
- Match verification to risk; report by what was **verified**, not attempted.
|
|
66
66
|
|
|
67
|
+
## Questions to the user
|
|
68
|
+
|
|
69
|
+
**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.
|
|
70
|
+
|
|
71
|
+
- One decision per question; put independent decisions in separate entries so the host walks them as steps.
|
|
72
|
+
- 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.
|
|
73
|
+
- Two to five options; enable multi-select only when the choices are not mutually exclusive.
|
|
74
|
+
- Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
|
|
75
|
+
- Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
76
|
+
- Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
|
|
77
|
+
|
|
67
78
|
Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
|
|
68
79
|
|
|
69
80
|
> Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
|
|
@@ -25,6 +25,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
|
|
|
25
25
|
- Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
|
|
26
26
|
- Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
|
|
27
27
|
- Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
|
|
28
|
+
- **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.
|
|
29
|
+
- **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.
|
|
28
30
|
|
|
29
31
|
Concrete rule stems — in **Stack notes**.
|
|
30
32
|
|
|
@@ -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
|
|
@@ -19,6 +19,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
|
|
|
19
19
|
|
|
20
20
|
`// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
|
|
21
21
|
|
|
22
|
+
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.
|
|
23
|
+
|
|
22
24
|
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.
|
|
23
25
|
|
|
24
26
|
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.
|