@bonesofspring/ai-rules 0.2.51 → 0.2.52
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 +68 -0
- package/bin/cli.js +14 -1
- package/bin/lib/ai-local-drift.js +55 -14
- package/bin/lib/seed-ai-local-team.js +18 -7
- package/bin/mavis-install.js +2 -0
- package/bin/opencode-install.js +2 -0
- package/docs/LOCAL-OVERLAY.md +1 -1
- package/docs/PRESET-CONTRIBUTION.md +11 -9
- package/package.json +5 -1
- package/presets/_shared/ai-local/scripts/manifest.mjs +13 -3
- package/presets/_shared/ai-local/scripts/rule-improver.mjs +428 -91
- package/presets/_shared/ai-local/scripts/run.mjs +22 -4
- package/presets/_shared/ai-local/scripts/signals.mjs +4 -1
- package/presets/_shared/core/meta/preset-pr-checklist.md +1 -1
- package/presets/_shared/core/quality/interactive-questions.md +8 -8
- package/presets/claude/android-kotlin/agents/code-reviewer.md +1 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/interactive-questions.md +8 -8
- package/presets/claude/android-kotlin/rules/tooling-and-review/language-policy.md +1 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +1 -1
- package/presets/claude/go/agents/code-reviewer.md +1 -0
- package/presets/claude/go/rules/tooling-and-review/interactive-questions.md +8 -8
- package/presets/claude/go/rules/tooling-and-review/language-policy.md +1 -1
- package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +1 -1
- package/presets/claude/ios-swift/agents/code-reviewer.md +1 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/interactive-questions.md +8 -8
- package/presets/claude/ios-swift/rules/tooling-and-review/language-policy.md +1 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/post-change-build.md +1 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +1 -1
- package/presets/claude/java/agents/code-reviewer.md +1 -0
- package/presets/claude/java/rules/tooling-and-review/interactive-questions.md +8 -8
- package/presets/claude/java/rules/tooling-and-review/language-policy.md +1 -1
- package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +1 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/interactive-questions.md +8 -8
- package/presets/claude/mcp-ts/rules/tooling-and-review/language-policy.md +1 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +1 -1
- package/presets/claude/next/MCP.md +7 -0
- package/presets/claude/next/README.md +1 -1
- package/presets/claude/next/REPO_AGENTS.md +1 -1
- package/presets/claude/next/agents/README.md +3 -3
- package/presets/claude/next/agents/build-verifier.md +9 -3
- package/presets/claude/next/agents/code-reviewer.md +2 -1
- package/presets/claude/next/agents/codebase-analyzer.md +1 -1
- package/presets/claude/next/agents/feature-developer.md +18 -8
- package/presets/claude/next/agents/openspec-author.md +1 -1
- package/presets/claude/next/agents/playwright-test-generator.md +22 -68
- package/presets/claude/next/agents/playwright-test-healer.md +27 -54
- package/presets/claude/next/agents/playwright-test-planner.md +18 -51
- package/presets/claude/next/agents/task-analyst.md +25 -9
- package/presets/claude/next/agents/task-router.md +1 -1
- package/presets/claude/next/agents/tech-writer.md +1 -1
- package/presets/claude/next/mcp.json +3 -3
- package/presets/claude/next/rules/anti-hallucination/react-next-anti-hallucination.md +1 -1
- package/presets/claude/next/rules/architecture/layer-barrel-exports.md +1 -1
- package/presets/claude/next/rules/architecture/reference-features.md +1 -1
- package/presets/claude/next/rules/stack/navigation-router-ui.md +1 -1
- package/presets/claude/next/rules/stack/navigation-router.md +14 -0
- package/presets/claude/next/rules/stack/next-app-core.md +19 -17
- package/presets/claude/next/rules/stack/next-app-router.md +5 -17
- package/presets/claude/next/rules/stack/next-static-export.md +1 -1
- package/presets/claude/next/rules/tooling-and-review/interactive-questions.md +8 -8
- package/presets/claude/next/rules/tooling-and-review/language-policy.md +1 -1
- package/presets/claude/next/rules/tooling-and-review/post-change-lint.md +1 -1
- package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +1 -1
- package/presets/claude/next/rules/tooling-and-review/preset-token-budget.md +1 -1
- package/presets/claude/next/rules/tooling-and-review/security-next.md +28 -3
- package/presets/claude/next/rules/ui-and-accessibility/css-property-order.md +1 -1
- package/presets/claude/next/rules/ui-and-accessibility/design-tokens-binding.md +4 -4
- package/presets/claude/next/rules/ui-and-accessibility/forms-validation.md +2 -2
- package/presets/claude/next/team/README.md +11 -0
- package/presets/claude/next/team/fixtures/feature-with-figma-url.json +10 -0
- package/presets/claude/next/team/fixtures/feature-with-ux-no-figma.json +10 -0
- package/presets/claude/next/team/fixtures/mockup-review-standalone.json +9 -0
- package/presets/claude/next/team/fixtures/ux-design-standalone.json +9 -0
- package/presets/claude/nuxt/agents/code-reviewer.md +1 -0
- package/presets/claude/nuxt/rules/architecture/layer-barrel-exports.md +1 -1
- package/presets/claude/nuxt/rules/stack/navigation-router-ui.md +1 -1
- package/presets/claude/nuxt/rules/tooling-and-review/interactive-questions.md +8 -8
- package/presets/claude/nuxt/rules/tooling-and-review/language-policy.md +1 -1
- package/presets/claude/nuxt/rules/tooling-and-review/post-change-lint.md +1 -1
- package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +1 -1
- package/presets/claude/php-hexagonal/agents/code-reviewer.md +1 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/interactive-questions.md +8 -8
- package/presets/claude/php-hexagonal/rules/tooling-and-review/language-policy.md +1 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +1 -1
- package/presets/claude/php-laravel/agents/code-reviewer.md +1 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/interactive-questions.md +8 -8
- package/presets/claude/php-laravel/rules/tooling-and-review/language-policy.md +1 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +1 -1
- package/presets/claude/svelte/agents/code-reviewer.md +1 -0
- package/presets/claude/svelte/rules/architecture/layer-barrel-exports.md +1 -1
- package/presets/claude/svelte/rules/tooling-and-review/interactive-questions.md +8 -8
- package/presets/claude/svelte/rules/tooling-and-review/language-policy.md +1 -1
- package/presets/claude/svelte/rules/tooling-and-review/post-change-lint.md +1 -1
- package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +1 -1
- package/presets/cursor/android-kotlin/agents/code-reviewer.md +1 -0
- package/presets/cursor/android-kotlin/rules/README.md +1 -0
- package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +3 -3
- package/presets/cursor/android-kotlin/rules/interactive-questions.mdc +8 -8
- package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +1 -1
- package/presets/cursor/go/agents/code-reviewer.md +1 -0
- package/presets/cursor/go/rules/agent-team-orchestrator.mdc +2 -2
- package/presets/cursor/go/rules/interactive-questions.mdc +8 -8
- package/presets/cursor/go/rules/preset-pr-checklist.mdc +1 -1
- package/presets/cursor/ios-swift/agents/code-reviewer.md +1 -0
- package/presets/cursor/ios-swift/rules/README.md +1 -0
- package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +3 -3
- package/presets/cursor/ios-swift/rules/interactive-questions.mdc +8 -8
- package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +1 -1
- package/presets/cursor/java/agents/code-reviewer.md +1 -0
- package/presets/cursor/java/rules/agent-team-orchestrator.mdc +2 -2
- package/presets/cursor/java/rules/interactive-questions.mdc +8 -8
- package/presets/cursor/java/rules/preset-pr-checklist.mdc +1 -1
- package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +2 -2
- package/presets/cursor/mcp-ts/rules/interactive-questions.mdc +8 -8
- package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +1 -1
- package/presets/cursor/next/MCP.md +7 -0
- package/presets/cursor/next/REPO_AGENTS.md +1 -1
- package/presets/cursor/next/agents/code-reviewer.md +1 -0
- package/presets/cursor/next/agents/playwright-test-healer.md +1 -0
- package/presets/cursor/next/ai-local/rules-library/router-pages.md +5 -5
- package/presets/cursor/next/mcp.json +3 -3
- package/presets/cursor/next/rules/README.md +1 -1
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +1 -1
- package/presets/cursor/next/rules/css-property-order-stylelint.mdc +1 -1
- package/presets/cursor/next/rules/design-tokens-binding.mdc +4 -4
- package/presets/cursor/next/rules/forms-validation.mdc +2 -2
- package/presets/cursor/next/rules/interactive-questions.mdc +8 -8
- package/presets/cursor/next/rules/navigation-router-stack.mdc +14 -1
- package/presets/cursor/next/rules/next-app-core.mdc +19 -17
- package/presets/cursor/next/rules/next-app-router.mdc +5 -17
- package/presets/cursor/next/rules/next-static-export.mdc +1 -1
- package/presets/cursor/next/rules/preset-pr-checklist.mdc +1 -1
- package/presets/cursor/next/rules/preset-token-budget.mdc +1 -1
- package/presets/cursor/next/rules/react-next-anti-hallucination.mdc +1 -1
- package/presets/cursor/next/rules/reference-features.mdc +1 -1
- package/presets/cursor/next/rules/security-next.mdc +28 -3
- package/presets/cursor/next/team/README.md +11 -0
- package/presets/cursor/next/team/fixtures/feature-with-figma-url.json +10 -0
- package/presets/cursor/next/team/fixtures/feature-with-ux-no-figma.json +10 -0
- package/presets/cursor/next/team/fixtures/mockup-review-standalone.json +9 -0
- package/presets/cursor/next/team/fixtures/ux-design-standalone.json +9 -0
- package/presets/cursor/nuxt/agents/code-reviewer.md +1 -0
- package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +1 -1
- package/presets/cursor/nuxt/rules/interactive-questions.mdc +8 -8
- package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +1 -1
- package/presets/cursor/php-hexagonal/agents/code-reviewer.md +1 -0
- package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +2 -2
- package/presets/cursor/php-hexagonal/rules/interactive-questions.mdc +8 -8
- package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +1 -1
- package/presets/cursor/php-laravel/agents/code-reviewer.md +1 -0
- package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +2 -2
- package/presets/cursor/php-laravel/rules/interactive-questions.mdc +8 -8
- package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +1 -1
- package/presets/cursor/svelte/agents/code-reviewer.md +1 -0
- package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +1 -1
- package/presets/cursor/svelte/rules/interactive-questions.mdc +8 -8
- package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +1 -1
- package/presets/mavis/android-kotlin/adapter-map.json +1 -1
- package/presets/mavis/android-kotlin/agents/code-reviewer.md +1 -0
- package/presets/mavis/android-kotlin/rules/interactive-questions.md +8 -8
- package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +1 -1
- package/presets/mavis/go/adapter-map.json +1 -1
- package/presets/mavis/go/agents/code-reviewer.md +1 -0
- package/presets/mavis/go/rules/interactive-questions.md +8 -8
- package/presets/mavis/go/rules/preset-pr-checklist.md +1 -1
- package/presets/mavis/ios-swift/adapter-map.json +1 -1
- package/presets/mavis/ios-swift/agents/code-reviewer.md +1 -0
- package/presets/mavis/ios-swift/rules/interactive-questions.md +8 -8
- package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +1 -1
- package/presets/mavis/java/adapter-map.json +1 -1
- package/presets/mavis/java/agents/code-reviewer.md +1 -0
- package/presets/mavis/java/rules/interactive-questions.md +8 -8
- package/presets/mavis/java/rules/preset-pr-checklist.md +1 -1
- package/presets/mavis/mcp-ts/adapter-map.json +1 -1
- package/presets/mavis/mcp-ts/rules/interactive-questions.md +8 -8
- package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +1 -1
- package/presets/mavis/next/MCP.md +7 -0
- package/presets/mavis/next/REPO_AGENTS.md +1 -1
- package/presets/mavis/next/adapter-map.json +1 -1
- package/presets/mavis/next/agents/code-reviewer.md +1 -0
- package/presets/mavis/next/agents/playwright-test-healer.md +1 -0
- package/presets/mavis/next/ai-local/rules-library/router-pages.md +5 -5
- package/presets/mavis/next/mcp.json +3 -3
- package/presets/mavis/next/rules/css-property-order-stylelint.md +1 -1
- package/presets/mavis/next/rules/design-tokens-binding.md +4 -4
- package/presets/mavis/next/rules/forms-validation.md +2 -2
- package/presets/mavis/next/rules/interactive-questions.md +8 -8
- package/presets/mavis/next/rules/navigation-router-stack.md +12 -0
- package/presets/mavis/next/rules/next-app-core.md +18 -17
- package/presets/mavis/next/rules/next-app-router.md +4 -17
- package/presets/mavis/next/rules/next-static-export.md +1 -1
- package/presets/mavis/next/rules/preset-pr-checklist.md +1 -1
- package/presets/mavis/next/rules/react-next-anti-hallucination.md +1 -1
- package/presets/mavis/next/rules/reference-features.md +1 -1
- package/presets/mavis/next/rules/security-next.md +24 -3
- package/presets/mavis/next/team/README.md +11 -0
- package/presets/mavis/next/team/fixtures/feature-with-figma-url.json +10 -0
- package/presets/mavis/next/team/fixtures/feature-with-ux-no-figma.json +10 -0
- package/presets/mavis/next/team/fixtures/mockup-review-standalone.json +9 -0
- package/presets/mavis/next/team/fixtures/ux-design-standalone.json +9 -0
- package/presets/mavis/nuxt/adapter-map.json +1 -1
- package/presets/mavis/nuxt/agents/code-reviewer.md +1 -0
- package/presets/mavis/nuxt/rules/interactive-questions.md +8 -8
- package/presets/mavis/nuxt/rules/preset-pr-checklist.md +1 -1
- package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
- package/presets/mavis/php-hexagonal/agents/code-reviewer.md +1 -0
- package/presets/mavis/php-hexagonal/rules/interactive-questions.md +8 -8
- package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +1 -1
- package/presets/mavis/php-laravel/adapter-map.json +1 -1
- package/presets/mavis/php-laravel/agents/code-reviewer.md +1 -0
- package/presets/mavis/php-laravel/rules/interactive-questions.md +8 -8
- package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +1 -1
- package/presets/mavis/svelte/adapter-map.json +1 -1
- package/presets/mavis/svelte/agents/code-reviewer.md +1 -0
- package/presets/mavis/svelte/rules/interactive-questions.md +8 -8
- package/presets/mavis/svelte/rules/preset-pr-checklist.md +1 -1
- package/presets/opencode/android-kotlin/adapter-map.json +1 -1
- package/presets/opencode/android-kotlin/agents/code-reviewer.md +1 -0
- package/presets/opencode/android-kotlin/rules/interactive-questions.md +8 -8
- package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +1 -1
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/agents/code-reviewer.md +1 -0
- package/presets/opencode/go/rules/interactive-questions.md +8 -8
- package/presets/opencode/go/rules/preset-pr-checklist.md +1 -1
- package/presets/opencode/ios-swift/adapter-map.json +1 -1
- package/presets/opencode/ios-swift/agents/code-reviewer.md +1 -0
- package/presets/opencode/ios-swift/rules/interactive-questions.md +8 -8
- package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +1 -1
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/agents/code-reviewer.md +1 -0
- package/presets/opencode/java/rules/interactive-questions.md +8 -8
- package/presets/opencode/java/rules/preset-pr-checklist.md +1 -1
- package/presets/opencode/mcp-ts/adapter-map.json +1 -1
- package/presets/opencode/mcp-ts/rules/interactive-questions.md +8 -8
- package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +1 -1
- package/presets/opencode/next/MCP.md +7 -0
- package/presets/opencode/next/REPO_AGENTS.md +1 -1
- package/presets/opencode/next/adapter-map.json +1 -1
- package/presets/opencode/next/agents/code-reviewer.md +1 -0
- package/presets/opencode/next/agents/playwright-test-healer.md +1 -0
- package/presets/opencode/next/ai-local/rules-library/router-pages.md +5 -5
- package/presets/opencode/next/opencode.json +3 -3
- package/presets/opencode/next/rules/css-property-order-stylelint.md +1 -1
- package/presets/opencode/next/rules/design-tokens-binding.md +4 -4
- package/presets/opencode/next/rules/forms-validation.md +2 -2
- package/presets/opencode/next/rules/interactive-questions.md +8 -8
- package/presets/opencode/next/rules/navigation-router-stack.md +12 -0
- package/presets/opencode/next/rules/next-app-core.md +18 -17
- package/presets/opencode/next/rules/next-app-router.md +4 -17
- package/presets/opencode/next/rules/next-static-export.md +1 -1
- package/presets/opencode/next/rules/preset-pr-checklist.md +1 -1
- package/presets/opencode/next/rules/react-next-anti-hallucination.md +1 -1
- package/presets/opencode/next/rules/reference-features.md +1 -1
- package/presets/opencode/next/rules/security-next.md +24 -3
- package/presets/opencode/next/team/README.md +11 -0
- package/presets/opencode/next/team/fixtures/feature-with-figma-url.json +10 -0
- package/presets/opencode/next/team/fixtures/feature-with-ux-no-figma.json +10 -0
- package/presets/opencode/next/team/fixtures/mockup-review-standalone.json +9 -0
- package/presets/opencode/next/team/fixtures/ux-design-standalone.json +9 -0
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/agents/code-reviewer.md +1 -0
- package/presets/opencode/nuxt/rules/interactive-questions.md +8 -8
- package/presets/opencode/nuxt/rules/preset-pr-checklist.md +1 -1
- package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
- package/presets/opencode/php-hexagonal/agents/code-reviewer.md +1 -0
- package/presets/opencode/php-hexagonal/rules/interactive-questions.md +8 -8
- package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +1 -1
- package/presets/opencode/php-laravel/adapter-map.json +1 -1
- package/presets/opencode/php-laravel/agents/code-reviewer.md +1 -0
- package/presets/opencode/php-laravel/rules/interactive-questions.md +8 -8
- package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +1 -1
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/agents/code-reviewer.md +1 -0
- package/presets/opencode/svelte/rules/interactive-questions.md +8 -8
- package/presets/opencode/svelte/rules/preset-pr-checklist.md +1 -1
|
@@ -7,7 +7,7 @@ alwaysApply: false
|
|
|
7
7
|
|
|
8
8
|
# Interactive questions (requestable)
|
|
9
9
|
|
|
10
|
-
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool
|
|
10
|
+
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool. The always-on quality rule keeps the short preference; this file carries the full contract.
|
|
11
11
|
|
|
12
12
|
## When to ask
|
|
13
13
|
|
|
@@ -17,16 +17,16 @@ How to put a user-only decision to the user. Load when the answer blocks the wor
|
|
|
17
17
|
|
|
18
18
|
## Widget format
|
|
19
19
|
|
|
20
|
-
4. **Header** → a short label
|
|
21
|
-
5. **Option label** →
|
|
20
|
+
4. **Header** → a short label. Stay inside the host schema's length limit.
|
|
21
|
+
5. **Option label** → a few words, in the user's terms, inside the host schema's label limit.
|
|
22
22
|
6. **Option description** → the consequence or the trade-off, not a restatement of the label.
|
|
23
|
-
7. **
|
|
24
|
-
8. **Multi-select** only when the choices are not mutually exclusive.
|
|
23
|
+
7. **Option count** → the host schema's range. Put the option you recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
24
|
+
8. **Multi-select** only when the choices are not mutually exclusive. A free-form entry the host adds itself does not count toward the range.
|
|
25
25
|
|
|
26
|
-
##
|
|
26
|
+
## Free-form is a property of the host
|
|
27
27
|
|
|
28
|
-
9.
|
|
29
|
-
10. A host
|
|
28
|
+
9. Use the host's free-form channel. When that channel already accepts typed text, do not add an option labeled "Other": a plain option returns its label, and the typed text belongs in the host's free-form field.
|
|
29
|
+
10. A host with no free-form channel (an enum that returns only the selected label, a headless run) needs an explicit "Other" whose selection opens a text prompt — or prose when the answer cannot be enumerated.
|
|
30
30
|
|
|
31
31
|
## Fallback
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
36
36
|
- [ ] **shared-core drift:** for embed-mode stems, run `packages/ai-rules/scripts/check-shared-core-drift.sh` (or document intentional fork)
|
|
37
37
|
- [ ] **Packaging:** every installable preset ships `REPO_AGENTS.md`; default `hooks.json` does not reference `hooks/examples/`; `_shared/assets/docs-specs/` ships `INDEX.md` + `_templates/{page,feature}.md`; `product-specs` / `product-specs-authoring` stay requestable
|
|
38
38
|
- [ ] **UI-only surfaces:** `mockup-reviewer`, `accessibility-reviewer`, `ux-design`, and the stack performance skill ship only on UI stacks (`check-preset-leakage.sh`)
|
|
39
|
-
- [ ] **Rule eval (
|
|
39
|
+
- [ ] **Rule eval (hard):** `node packages/ai-rules/scripts/check-rule-eval.mjs` runs inside `yarn check:preset-structure`; keep every registered golden stem paired
|
|
40
40
|
- [ ] **Anti-hallucination:** `check-anti-hallucination-coverage.mjs` is green inside `yarn check:preset-structure`. Every role loads `anti-hallucination-contract`. Writer roles, including `code-reviewer`, also load `STACK_FLOOR_STEMS`. Register a new skill family in `SKILL_CONTRACT_CLASS` (`writer` or `reader`) or the gate FAILs.
|
|
41
41
|
- [ ] **Gate:** `yarn check:preset-structure` from `packages/ai-rules/` (twin-map, token-budget, leakage, drift, i18n, local overlay, anti-hallucination coverage)
|
|
42
42
|
|
|
@@ -78,6 +78,7 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
|
|
|
78
78
|
## Depth passes
|
|
79
79
|
| Pass | Outcome | Evidence or reason |
|
|
80
80
|
|------|---------|--------------------|
|
|
81
|
+
| Call-site sweep | `no finding` | what was searched or read |
|
|
81
82
|
|
|
82
83
|
## AC coverage
|
|
83
84
|
| Criterion | Status | Notes |
|
|
@@ -9,7 +9,7 @@ alwaysApply: false
|
|
|
9
9
|
|
|
10
10
|
# Agent team orchestrator
|
|
11
11
|
|
|
12
|
-
Parent agent = **manager**. Router plans; specialists execute. Artifacts: `.ai.local/team/tasks/<slug
|
|
12
|
+
Parent agent = **manager**. Router plans; specialists execute. Artifacts: `.ai.local/team/tasks/<slug>/`.
|
|
13
13
|
|
|
14
14
|
Work request without `/task` — see **agent-team-intake** (when to suggest the router instead of coding directly).
|
|
15
15
|
|
|
@@ -99,7 +99,7 @@ Each producing agent runs a **pre-receipt self-review** of its own output — go
|
|
|
99
99
|
|
|
100
100
|
## Context budget & checkpoint/resume
|
|
101
101
|
|
|
102
|
-
Work in bounded waves (one artifact class across the surface). **Checkpoint** each completed wave to `.memlog.md` (`## <date>` + an `event:` line) and record produced paths on the `implementation` manifest entry `authoritativePaths`. A resumed run (e.g. `/task-continue`) reads `artifact-manifest.json` + `.memlog.md` and continues at the first stage whose exit criteria are unmet — never re-derive state from the chat. Mechanical waves (generation, embed sync) are delegated to repo scripts.
|
|
102
|
+
Work in bounded waves (one artifact class across the surface). **Checkpoint** each completed wave to `.memlog.md` (`## <date>` + an `event:` line) and record produced paths on the `implementation` manifest entry `authoritativePaths`. A resumed run (e.g. `/task-continue`) reads `artifact-manifest.json` + `.memlog.md` and continues at the first stage whose exit criteria are unmet — never re-derive state from the chat. An **interrupted producer** (tool abort, killed session) is resumed, not restarted: run the stack's compile gate on the working tree first, and when it is red hand the failing output to the same producer with a `fix and finish` brief instead of starting a second parallel attempt. When the host runtime writes no `status.json` (manual-hook hosts such as OpenCode), the resume checkpoint is `artifact-manifest.json` + `.memlog.md`; never gate a resume on a file the runtime does not produce. Mechanical waves (generation, embed sync) are delegated to repo scripts.
|
|
103
103
|
|
|
104
104
|
## status.json (pipeline mode)
|
|
105
105
|
|
|
@@ -7,7 +7,7 @@ alwaysApply: false
|
|
|
7
7
|
|
|
8
8
|
# Interactive questions (requestable)
|
|
9
9
|
|
|
10
|
-
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool
|
|
10
|
+
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool. The always-on quality rule keeps the short preference; this file carries the full contract.
|
|
11
11
|
|
|
12
12
|
## When to ask
|
|
13
13
|
|
|
@@ -17,16 +17,16 @@ How to put a user-only decision to the user. Load when the answer blocks the wor
|
|
|
17
17
|
|
|
18
18
|
## Widget format
|
|
19
19
|
|
|
20
|
-
4. **Header** → a short label
|
|
21
|
-
5. **Option label** →
|
|
20
|
+
4. **Header** → a short label. Stay inside the host schema's length limit.
|
|
21
|
+
5. **Option label** → a few words, in the user's terms, inside the host schema's label limit.
|
|
22
22
|
6. **Option description** → the consequence or the trade-off, not a restatement of the label.
|
|
23
|
-
7. **
|
|
24
|
-
8. **Multi-select** only when the choices are not mutually exclusive.
|
|
23
|
+
7. **Option count** → the host schema's range. Put the option you recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
24
|
+
8. **Multi-select** only when the choices are not mutually exclusive. A free-form entry the host adds itself does not count toward the range.
|
|
25
25
|
|
|
26
|
-
##
|
|
26
|
+
## Free-form is a property of the host
|
|
27
27
|
|
|
28
|
-
9.
|
|
29
|
-
10. A host
|
|
28
|
+
9. Use the host's free-form channel. When that channel already accepts typed text, do not add an option labeled "Other": a plain option returns its label, and the typed text belongs in the host's free-form field.
|
|
29
|
+
10. A host with no free-form channel (an enum that returns only the selected label, a headless run) needs an explicit "Other" whose selection opens a text prompt — or prose when the answer cannot be enumerated.
|
|
30
30
|
|
|
31
31
|
## Fallback
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
36
36
|
- [ ] **shared-core drift:** for embed-mode stems, run `packages/ai-rules/scripts/check-shared-core-drift.sh` (or document intentional fork)
|
|
37
37
|
- [ ] **Packaging:** every installable preset ships `REPO_AGENTS.md`; default `hooks.json` does not reference `hooks/examples/`; `_shared/assets/docs-specs/` ships `INDEX.md` + `_templates/{page,feature}.md`; `product-specs` / `product-specs-authoring` stay requestable
|
|
38
38
|
- [ ] **UI-only surfaces:** `mockup-reviewer`, `accessibility-reviewer`, `ux-design`, and the stack performance skill ship only on UI stacks (`check-preset-leakage.sh`)
|
|
39
|
-
- [ ] **Rule eval (
|
|
39
|
+
- [ ] **Rule eval (hard):** `node packages/ai-rules/scripts/check-rule-eval.mjs` runs inside `yarn check:preset-structure`; keep every registered golden stem paired
|
|
40
40
|
- [ ] **Anti-hallucination:** `check-anti-hallucination-coverage.mjs` is green inside `yarn check:preset-structure`. Every role loads `anti-hallucination-contract`. Writer roles, including `code-reviewer`, also load `STACK_FLOOR_STEMS`. Register a new skill family in `SKILL_CONTRACT_CLASS` (`writer` or `reader`) or the gate FAILs.
|
|
41
41
|
- [ ] **Gate:** `yarn check:preset-structure` from `packages/ai-rules/` (twin-map, token-budget, leakage, drift, i18n, local overlay, anti-hallucination coverage)
|
|
42
42
|
|
|
@@ -68,6 +68,7 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
|
|
|
68
68
|
## Depth passes
|
|
69
69
|
| Pass | Outcome | Evidence or reason |
|
|
70
70
|
|------|---------|--------------------|
|
|
71
|
+
| Call-site sweep | `no finding` | what was searched or read |
|
|
71
72
|
|
|
72
73
|
## AC coverage
|
|
73
74
|
| Criterion | Status | Notes |
|
|
@@ -123,7 +123,7 @@ Each producing agent runs a **pre-receipt self-review** of its own output — go
|
|
|
123
123
|
|
|
124
124
|
## Context budget & checkpoint/resume
|
|
125
125
|
|
|
126
|
-
Work in bounded waves (one artifact class across the surface). **Checkpoint** each completed wave to `.memlog.md` (`## <date>` + an `event:` line) and record produced paths on the `implementation` manifest entry `authoritativePaths`. A resumed run (e.g. `/task-continue`) reads `artifact-manifest.json` + `.memlog.md` and continues at the first stage whose exit criteria are unmet — never re-derive state from the chat. Mechanical waves (generation, embed sync) are delegated to repo scripts.
|
|
126
|
+
Work in bounded waves (one artifact class across the surface). **Checkpoint** each completed wave to `.memlog.md` (`## <date>` + an `event:` line) and record produced paths on the `implementation` manifest entry `authoritativePaths`. A resumed run (e.g. `/task-continue`) reads `artifact-manifest.json` + `.memlog.md` and continues at the first stage whose exit criteria are unmet — never re-derive state from the chat. An **interrupted producer** (tool abort, killed session) is resumed, not restarted: run the stack's compile gate on the working tree first, and when it is red hand the failing output to the same producer with a `fix and finish` brief instead of starting a second parallel attempt. When the host runtime writes no `status.json` (manual-hook hosts such as OpenCode), the resume checkpoint is `artifact-manifest.json` + `.memlog.md`; never gate a resume on a file the runtime does not produce. Mechanical waves (generation, embed sync) are delegated to repo scripts.
|
|
127
127
|
|
|
128
128
|
## status.json (pipeline mode)
|
|
129
129
|
|
|
@@ -7,7 +7,7 @@ alwaysApply: false
|
|
|
7
7
|
|
|
8
8
|
# Interactive questions (requestable)
|
|
9
9
|
|
|
10
|
-
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool
|
|
10
|
+
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool. The always-on quality rule keeps the short preference; this file carries the full contract.
|
|
11
11
|
|
|
12
12
|
## When to ask
|
|
13
13
|
|
|
@@ -17,16 +17,16 @@ How to put a user-only decision to the user. Load when the answer blocks the wor
|
|
|
17
17
|
|
|
18
18
|
## Widget format
|
|
19
19
|
|
|
20
|
-
4. **Header** → a short label
|
|
21
|
-
5. **Option label** →
|
|
20
|
+
4. **Header** → a short label. Stay inside the host schema's length limit.
|
|
21
|
+
5. **Option label** → a few words, in the user's terms, inside the host schema's label limit.
|
|
22
22
|
6. **Option description** → the consequence or the trade-off, not a restatement of the label.
|
|
23
|
-
7. **
|
|
24
|
-
8. **Multi-select** only when the choices are not mutually exclusive.
|
|
23
|
+
7. **Option count** → the host schema's range. Put the option you recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
24
|
+
8. **Multi-select** only when the choices are not mutually exclusive. A free-form entry the host adds itself does not count toward the range.
|
|
25
25
|
|
|
26
|
-
##
|
|
26
|
+
## Free-form is a property of the host
|
|
27
27
|
|
|
28
|
-
9.
|
|
29
|
-
10. A host
|
|
28
|
+
9. Use the host's free-form channel. When that channel already accepts typed text, do not add an option labeled "Other": a plain option returns its label, and the typed text belongs in the host's free-form field.
|
|
29
|
+
10. A host with no free-form channel (an enum that returns only the selected label, a headless run) needs an explicit "Other" whose selection opens a text prompt — or prose when the answer cannot be enumerated.
|
|
30
30
|
|
|
31
31
|
## Fallback
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
36
36
|
- [ ] **shared-core drift:** for embed-mode stems, run `packages/ai-rules/scripts/check-shared-core-drift.sh` (or document intentional fork)
|
|
37
37
|
- [ ] **Packaging:** every installable preset ships `REPO_AGENTS.md`; default `hooks.json` does not reference `hooks/examples/`; `_shared/assets/docs-specs/` ships `INDEX.md` + `_templates/{page,feature}.md`; `product-specs` / `product-specs-authoring` stay requestable
|
|
38
38
|
- [ ] **UI-only surfaces:** `mockup-reviewer`, `accessibility-reviewer`, `ux-design`, and the stack performance skill ship only on UI stacks (`check-preset-leakage.sh`)
|
|
39
|
-
- [ ] **Rule eval (
|
|
39
|
+
- [ ] **Rule eval (hard):** `node packages/ai-rules/scripts/check-rule-eval.mjs` runs inside `yarn check:preset-structure`; keep every registered golden stem paired
|
|
40
40
|
- [ ] **Anti-hallucination:** `check-anti-hallucination-coverage.mjs` is green inside `yarn check:preset-structure`. Every role loads `anti-hallucination-contract`. Writer roles, including `code-reviewer`, also load `STACK_FLOOR_STEMS`. Register a new skill family in `SKILL_CONTRACT_CLASS` (`writer` or `reader`) or the gate FAILs.
|
|
41
41
|
- [ ] **Gate:** `yarn check:preset-structure` from `packages/ai-rules/` (twin-map, token-budget, leakage, drift, i18n, local overlay, anti-hallucination coverage)
|
|
42
42
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "mavis",
|
|
4
4
|
"stack": "android-kotlin",
|
|
5
5
|
"semanticSource": "cursor/android-kotlin",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "29e0be3715ac2ff3da96a6b69fe6a1844014ad3e698d51570372019ea0de7ffb",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -90,6 +90,7 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
|
|
|
90
90
|
## Depth passes
|
|
91
91
|
| Pass | Outcome | Evidence or reason |
|
|
92
92
|
|------|---------|--------------------|
|
|
93
|
+
| Call-site sweep | `no finding` | what was searched or read |
|
|
93
94
|
|
|
94
95
|
## AC coverage
|
|
95
96
|
| Criterion | Status | Notes |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interactive questions (requestable)
|
|
4
4
|
|
|
5
|
-
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool
|
|
5
|
+
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool. The always-on quality rule keeps the short preference; this file carries the full contract.
|
|
6
6
|
|
|
7
7
|
## When to ask
|
|
8
8
|
|
|
@@ -12,16 +12,16 @@ How to put a user-only decision to the user. Load when the answer blocks the wor
|
|
|
12
12
|
|
|
13
13
|
## Widget format
|
|
14
14
|
|
|
15
|
-
4. **Header** → a short label
|
|
16
|
-
5. **Option label** →
|
|
15
|
+
4. **Header** → a short label. Stay inside the host schema's length limit.
|
|
16
|
+
5. **Option label** → a few words, in the user's terms, inside the host schema's label limit.
|
|
17
17
|
6. **Option description** → the consequence or the trade-off, not a restatement of the label.
|
|
18
|
-
7. **
|
|
19
|
-
8. **Multi-select** only when the choices are not mutually exclusive.
|
|
18
|
+
7. **Option count** → the host schema's range. Put the option you recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
19
|
+
8. **Multi-select** only when the choices are not mutually exclusive. A free-form entry the host adds itself does not count toward the range.
|
|
20
20
|
|
|
21
|
-
##
|
|
21
|
+
## Free-form is a property of the host
|
|
22
22
|
|
|
23
|
-
9.
|
|
24
|
-
10. A host
|
|
23
|
+
9. Use the host's free-form channel. When that channel already accepts typed text, do not add an option labeled "Other": a plain option returns its label, and the typed text belongs in the host's free-form field.
|
|
24
|
+
10. A host with no free-form channel (an enum that returns only the selected label, a headless run) needs an explicit "Other" whose selection opens a text prompt — or prose when the answer cannot be enumerated.
|
|
25
25
|
|
|
26
26
|
## Fallback
|
|
27
27
|
|
|
@@ -27,7 +27,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
27
27
|
- [ ] **shared-core drift:** for embed-mode stems, run `packages/ai-rules/scripts/check-shared-core-drift.sh` (or document intentional fork)
|
|
28
28
|
- [ ] **Packaging:** every installable preset ships `REPO_AGENTS.md`; default `hooks.json` does not reference `hooks/examples/`; `_shared/assets/docs-specs/` ships `INDEX.md` + `_templates/{page,feature}.md`; `product-specs` / `product-specs-authoring` stay requestable
|
|
29
29
|
- [ ] **UI-only surfaces:** `mockup-reviewer`, `accessibility-reviewer`, `ux-design`, and the stack performance skill ship only on UI stacks (`check-preset-leakage.sh`)
|
|
30
|
-
- [ ] **Rule eval (
|
|
30
|
+
- [ ] **Rule eval (hard):** `node packages/ai-rules/scripts/check-rule-eval.mjs` runs inside `yarn check:preset-structure`; keep every registered golden stem paired
|
|
31
31
|
- [ ] **Anti-hallucination:** `check-anti-hallucination-coverage.mjs` is green inside `yarn check:preset-structure`. Every role loads `anti-hallucination-contract`. Writer roles, including `code-reviewer`, also load `STACK_FLOOR_STEMS`. Register a new skill family in `SKILL_CONTRACT_CLASS` (`writer` or `reader`) or the gate FAILs.
|
|
32
32
|
- [ ] **Gate:** `yarn check:preset-structure` from `packages/ai-rules/` (twin-map, token-budget, leakage, drift, i18n, local overlay, anti-hallucination coverage)
|
|
33
33
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "mavis",
|
|
4
4
|
"stack": "go",
|
|
5
5
|
"semanticSource": "cursor/go",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "2c835f7f41bfd5f42f274366132289d849ca70e1fbce68d941360600f0c7112a",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -89,6 +89,7 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
|
|
|
89
89
|
## Depth passes
|
|
90
90
|
| Pass | Outcome | Evidence or reason |
|
|
91
91
|
|------|---------|--------------------|
|
|
92
|
+
| Call-site sweep | `no finding` | what was searched or read |
|
|
92
93
|
|
|
93
94
|
## AC coverage
|
|
94
95
|
| Criterion | Status | Notes |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interactive questions (requestable)
|
|
4
4
|
|
|
5
|
-
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool
|
|
5
|
+
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool. The always-on quality rule keeps the short preference; this file carries the full contract.
|
|
6
6
|
|
|
7
7
|
## When to ask
|
|
8
8
|
|
|
@@ -12,16 +12,16 @@ How to put a user-only decision to the user. Load when the answer blocks the wor
|
|
|
12
12
|
|
|
13
13
|
## Widget format
|
|
14
14
|
|
|
15
|
-
4. **Header** → a short label
|
|
16
|
-
5. **Option label** →
|
|
15
|
+
4. **Header** → a short label. Stay inside the host schema's length limit.
|
|
16
|
+
5. **Option label** → a few words, in the user's terms, inside the host schema's label limit.
|
|
17
17
|
6. **Option description** → the consequence or the trade-off, not a restatement of the label.
|
|
18
|
-
7. **
|
|
19
|
-
8. **Multi-select** only when the choices are not mutually exclusive.
|
|
18
|
+
7. **Option count** → the host schema's range. Put the option you recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
19
|
+
8. **Multi-select** only when the choices are not mutually exclusive. A free-form entry the host adds itself does not count toward the range.
|
|
20
20
|
|
|
21
|
-
##
|
|
21
|
+
## Free-form is a property of the host
|
|
22
22
|
|
|
23
|
-
9.
|
|
24
|
-
10. A host
|
|
23
|
+
9. Use the host's free-form channel. When that channel already accepts typed text, do not add an option labeled "Other": a plain option returns its label, and the typed text belongs in the host's free-form field.
|
|
24
|
+
10. A host with no free-form channel (an enum that returns only the selected label, a headless run) needs an explicit "Other" whose selection opens a text prompt — or prose when the answer cannot be enumerated.
|
|
25
25
|
|
|
26
26
|
## Fallback
|
|
27
27
|
|
|
@@ -27,7 +27,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
27
27
|
- [ ] **shared-core drift:** for embed-mode stems, run `packages/ai-rules/scripts/check-shared-core-drift.sh` (or document intentional fork)
|
|
28
28
|
- [ ] **Packaging:** every installable preset ships `REPO_AGENTS.md`; default `hooks.json` does not reference `hooks/examples/`; `_shared/assets/docs-specs/` ships `INDEX.md` + `_templates/{page,feature}.md`; `product-specs` / `product-specs-authoring` stay requestable
|
|
29
29
|
- [ ] **UI-only surfaces:** `mockup-reviewer`, `accessibility-reviewer`, `ux-design`, and the stack performance skill ship only on UI stacks (`check-preset-leakage.sh`)
|
|
30
|
-
- [ ] **Rule eval (
|
|
30
|
+
- [ ] **Rule eval (hard):** `node packages/ai-rules/scripts/check-rule-eval.mjs` runs inside `yarn check:preset-structure`; keep every registered golden stem paired
|
|
31
31
|
- [ ] **Anti-hallucination:** `check-anti-hallucination-coverage.mjs` is green inside `yarn check:preset-structure`. Every role loads `anti-hallucination-contract`. Writer roles, including `code-reviewer`, also load `STACK_FLOOR_STEMS`. Register a new skill family in `SKILL_CONTRACT_CLASS` (`writer` or `reader`) or the gate FAILs.
|
|
32
32
|
- [ ] **Gate:** `yarn check:preset-structure` from `packages/ai-rules/` (twin-map, token-budget, leakage, drift, i18n, local overlay, anti-hallucination coverage)
|
|
33
33
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "mavis",
|
|
4
4
|
"stack": "ios-swift",
|
|
5
5
|
"semanticSource": "cursor/ios-swift",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "13701bbc4db5f770643e57ad8f899250d9aa78027ae1c78c5a43b7be927a6897",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -90,6 +90,7 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
|
|
|
90
90
|
## Depth passes
|
|
91
91
|
| Pass | Outcome | Evidence or reason |
|
|
92
92
|
|------|---------|--------------------|
|
|
93
|
+
| Call-site sweep | `no finding` | what was searched or read |
|
|
93
94
|
|
|
94
95
|
## AC coverage
|
|
95
96
|
| Criterion | Status | Notes |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interactive questions (requestable)
|
|
4
4
|
|
|
5
|
-
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool
|
|
5
|
+
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool. The always-on quality rule keeps the short preference; this file carries the full contract.
|
|
6
6
|
|
|
7
7
|
## When to ask
|
|
8
8
|
|
|
@@ -12,16 +12,16 @@ How to put a user-only decision to the user. Load when the answer blocks the wor
|
|
|
12
12
|
|
|
13
13
|
## Widget format
|
|
14
14
|
|
|
15
|
-
4. **Header** → a short label
|
|
16
|
-
5. **Option label** →
|
|
15
|
+
4. **Header** → a short label. Stay inside the host schema's length limit.
|
|
16
|
+
5. **Option label** → a few words, in the user's terms, inside the host schema's label limit.
|
|
17
17
|
6. **Option description** → the consequence or the trade-off, not a restatement of the label.
|
|
18
|
-
7. **
|
|
19
|
-
8. **Multi-select** only when the choices are not mutually exclusive.
|
|
18
|
+
7. **Option count** → the host schema's range. Put the option you recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
19
|
+
8. **Multi-select** only when the choices are not mutually exclusive. A free-form entry the host adds itself does not count toward the range.
|
|
20
20
|
|
|
21
|
-
##
|
|
21
|
+
## Free-form is a property of the host
|
|
22
22
|
|
|
23
|
-
9.
|
|
24
|
-
10. A host
|
|
23
|
+
9. Use the host's free-form channel. When that channel already accepts typed text, do not add an option labeled "Other": a plain option returns its label, and the typed text belongs in the host's free-form field.
|
|
24
|
+
10. A host with no free-form channel (an enum that returns only the selected label, a headless run) needs an explicit "Other" whose selection opens a text prompt — or prose when the answer cannot be enumerated.
|
|
25
25
|
|
|
26
26
|
## Fallback
|
|
27
27
|
|
|
@@ -27,7 +27,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
27
27
|
- [ ] **shared-core drift:** for embed-mode stems, run `packages/ai-rules/scripts/check-shared-core-drift.sh` (or document intentional fork)
|
|
28
28
|
- [ ] **Packaging:** every installable preset ships `REPO_AGENTS.md`; default `hooks.json` does not reference `hooks/examples/`; `_shared/assets/docs-specs/` ships `INDEX.md` + `_templates/{page,feature}.md`; `product-specs` / `product-specs-authoring` stay requestable
|
|
29
29
|
- [ ] **UI-only surfaces:** `mockup-reviewer`, `accessibility-reviewer`, `ux-design`, and the stack performance skill ship only on UI stacks (`check-preset-leakage.sh`)
|
|
30
|
-
- [ ] **Rule eval (
|
|
30
|
+
- [ ] **Rule eval (hard):** `node packages/ai-rules/scripts/check-rule-eval.mjs` runs inside `yarn check:preset-structure`; keep every registered golden stem paired
|
|
31
31
|
- [ ] **Anti-hallucination:** `check-anti-hallucination-coverage.mjs` is green inside `yarn check:preset-structure`. Every role loads `anti-hallucination-contract`. Writer roles, including `code-reviewer`, also load `STACK_FLOOR_STEMS`. Register a new skill family in `SKILL_CONTRACT_CLASS` (`writer` or `reader`) or the gate FAILs.
|
|
32
32
|
- [ ] **Gate:** `yarn check:preset-structure` from `packages/ai-rules/` (twin-map, token-budget, leakage, drift, i18n, local overlay, anti-hallucination coverage)
|
|
33
33
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "mavis",
|
|
4
4
|
"stack": "java",
|
|
5
5
|
"semanticSource": "cursor/java",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "ad00e5baca1823115acb1e96cac1caa690d72ef7cf2c4b43abb913034904fee7",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -89,6 +89,7 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
|
|
|
89
89
|
## Depth passes
|
|
90
90
|
| Pass | Outcome | Evidence or reason |
|
|
91
91
|
|------|---------|--------------------|
|
|
92
|
+
| Call-site sweep | `no finding` | what was searched or read |
|
|
92
93
|
|
|
93
94
|
## AC coverage
|
|
94
95
|
| Criterion | Status | Notes |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interactive questions (requestable)
|
|
4
4
|
|
|
5
|
-
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool
|
|
5
|
+
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool. The always-on quality rule keeps the short preference; this file carries the full contract.
|
|
6
6
|
|
|
7
7
|
## When to ask
|
|
8
8
|
|
|
@@ -12,16 +12,16 @@ How to put a user-only decision to the user. Load when the answer blocks the wor
|
|
|
12
12
|
|
|
13
13
|
## Widget format
|
|
14
14
|
|
|
15
|
-
4. **Header** → a short label
|
|
16
|
-
5. **Option label** →
|
|
15
|
+
4. **Header** → a short label. Stay inside the host schema's length limit.
|
|
16
|
+
5. **Option label** → a few words, in the user's terms, inside the host schema's label limit.
|
|
17
17
|
6. **Option description** → the consequence or the trade-off, not a restatement of the label.
|
|
18
|
-
7. **
|
|
19
|
-
8. **Multi-select** only when the choices are not mutually exclusive.
|
|
18
|
+
7. **Option count** → the host schema's range. Put the option you recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
19
|
+
8. **Multi-select** only when the choices are not mutually exclusive. A free-form entry the host adds itself does not count toward the range.
|
|
20
20
|
|
|
21
|
-
##
|
|
21
|
+
## Free-form is a property of the host
|
|
22
22
|
|
|
23
|
-
9.
|
|
24
|
-
10. A host
|
|
23
|
+
9. Use the host's free-form channel. When that channel already accepts typed text, do not add an option labeled "Other": a plain option returns its label, and the typed text belongs in the host's free-form field.
|
|
24
|
+
10. A host with no free-form channel (an enum that returns only the selected label, a headless run) needs an explicit "Other" whose selection opens a text prompt — or prose when the answer cannot be enumerated.
|
|
25
25
|
|
|
26
26
|
## Fallback
|
|
27
27
|
|
|
@@ -27,7 +27,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
27
27
|
- [ ] **shared-core drift:** for embed-mode stems, run `packages/ai-rules/scripts/check-shared-core-drift.sh` (or document intentional fork)
|
|
28
28
|
- [ ] **Packaging:** every installable preset ships `REPO_AGENTS.md`; default `hooks.json` does not reference `hooks/examples/`; `_shared/assets/docs-specs/` ships `INDEX.md` + `_templates/{page,feature}.md`; `product-specs` / `product-specs-authoring` stay requestable
|
|
29
29
|
- [ ] **UI-only surfaces:** `mockup-reviewer`, `accessibility-reviewer`, `ux-design`, and the stack performance skill ship only on UI stacks (`check-preset-leakage.sh`)
|
|
30
|
-
- [ ] **Rule eval (
|
|
30
|
+
- [ ] **Rule eval (hard):** `node packages/ai-rules/scripts/check-rule-eval.mjs` runs inside `yarn check:preset-structure`; keep every registered golden stem paired
|
|
31
31
|
- [ ] **Anti-hallucination:** `check-anti-hallucination-coverage.mjs` is green inside `yarn check:preset-structure`. Every role loads `anti-hallucination-contract`. Writer roles, including `code-reviewer`, also load `STACK_FLOOR_STEMS`. Register a new skill family in `SKILL_CONTRACT_CLASS` (`writer` or `reader`) or the gate FAILs.
|
|
32
32
|
- [ ] **Gate:** `yarn check:preset-structure` from `packages/ai-rules/` (twin-map, token-budget, leakage, drift, i18n, local overlay, anti-hallucination coverage)
|
|
33
33
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "mavis",
|
|
4
4
|
"stack": "mcp-ts",
|
|
5
5
|
"semanticSource": "cursor/mcp-ts",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "f3a0feea4e553237926f784c98b439d7c4d3dea41e2697b34d4f5e25c58fd027",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interactive questions (requestable)
|
|
4
4
|
|
|
5
|
-
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool
|
|
5
|
+
How to put a user-only decision to the user. Load when the answer blocks the work and the host offers an interactive question tool. The always-on quality rule keeps the short preference; this file carries the full contract.
|
|
6
6
|
|
|
7
7
|
## When to ask
|
|
8
8
|
|
|
@@ -12,16 +12,16 @@ How to put a user-only decision to the user. Load when the answer blocks the wor
|
|
|
12
12
|
|
|
13
13
|
## Widget format
|
|
14
14
|
|
|
15
|
-
4. **Header** → a short label
|
|
16
|
-
5. **Option label** →
|
|
15
|
+
4. **Header** → a short label. Stay inside the host schema's length limit.
|
|
16
|
+
5. **Option label** → a few words, in the user's terms, inside the host schema's label limit.
|
|
17
17
|
6. **Option description** → the consequence or the trade-off, not a restatement of the label.
|
|
18
|
-
7. **
|
|
19
|
-
8. **Multi-select** only when the choices are not mutually exclusive.
|
|
18
|
+
7. **Option count** → the host schema's range. Put the option you recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
19
|
+
8. **Multi-select** only when the choices are not mutually exclusive. A free-form entry the host adds itself does not count toward the range.
|
|
20
20
|
|
|
21
|
-
##
|
|
21
|
+
## Free-form is a property of the host
|
|
22
22
|
|
|
23
|
-
9.
|
|
24
|
-
10. A host
|
|
23
|
+
9. Use the host's free-form channel. When that channel already accepts typed text, do not add an option labeled "Other": a plain option returns its label, and the typed text belongs in the host's free-form field.
|
|
24
|
+
10. A host with no free-form channel (an enum that returns only the selected label, a headless run) needs an explicit "Other" whose selection opens a text prompt — or prose when the answer cannot be enumerated.
|
|
25
25
|
|
|
26
26
|
## Fallback
|
|
27
27
|
|
|
@@ -27,7 +27,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
27
27
|
- [ ] **shared-core drift:** for embed-mode stems, run `packages/ai-rules/scripts/check-shared-core-drift.sh` (or document intentional fork)
|
|
28
28
|
- [ ] **Packaging:** every installable preset ships `REPO_AGENTS.md`; default `hooks.json` does not reference `hooks/examples/`; `_shared/assets/docs-specs/` ships `INDEX.md` + `_templates/{page,feature}.md`; `product-specs` / `product-specs-authoring` stay requestable
|
|
29
29
|
- [ ] **UI-only surfaces:** `mockup-reviewer`, `accessibility-reviewer`, `ux-design`, and the stack performance skill ship only on UI stacks (`check-preset-leakage.sh`)
|
|
30
|
-
- [ ] **Rule eval (
|
|
30
|
+
- [ ] **Rule eval (hard):** `node packages/ai-rules/scripts/check-rule-eval.mjs` runs inside `yarn check:preset-structure`; keep every registered golden stem paired
|
|
31
31
|
- [ ] **Anti-hallucination:** `check-anti-hallucination-coverage.mjs` is green inside `yarn check:preset-structure`. Every role loads `anti-hallucination-contract`. Writer roles, including `code-reviewer`, also load `STACK_FLOOR_STEMS`. Register a new skill family in `SKILL_CONTRACT_CLASS` (`writer` or `reader`) or the gate FAILs.
|
|
32
32
|
- [ ] **Gate:** `yarn check:preset-structure` from `packages/ai-rules/` (twin-map, token-budget, leakage, drift, i18n, local overlay, anti-hallucination coverage)
|
|
33
33
|
|
|
@@ -14,6 +14,13 @@ Staged at `.mavis/mcp.json` on `ai-rules init mavis --preset next`.
|
|
|
14
14
|
Do not put secrets in the file. Optional: `CONTEXT7_API_KEY` in the environment — higher Context7 rate limits. Figma — local desktop server (enable in Figma Desktop, Dev/Full seat).
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
## Pin policy
|
|
18
|
+
|
|
19
|
+
- Pins live in `mcp.json` (Cursor, Claude) and in the generated `mcp` block of `opencode.json` — never in rule prose.
|
|
20
|
+
- Bump by reading the registry (`npm view <package> version`), editing `presets/cursor/next/mcp.json` and `presets/claude/next/mcp.json`, then running `yarn fix:generated` followed by `node scripts/test-cli-mcp-merge.mjs`, `node scripts/test-cli-init-clean.mjs`, and `node scripts/check-generated-drift.mjs`.
|
|
21
|
+
- Never write `@latest`. A package that fails to resolve, or that breaks the merge test, keeps its last working pin; record the exact command and the failure in the change that attempted the bump.
|
|
22
|
+
- A bumped pin changes the CLI goldens — recapture with `node scripts/capture-cli-golden.mjs <tool> next`; never edit a golden by hand.
|
|
23
|
+
|
|
17
24
|
## Agent usage
|
|
18
25
|
|
|
19
26
|
Load requestable rule `mcp-usage`. The **session MCP catalog** is source of truth (this file and `mcp.json` are hints). Discover tool schemas before calling; never invent them.
|
|
@@ -88,7 +88,7 @@ Gotchas, local patterns, and team decisions: **`.ai.local/conventions.md`** (fil
|
|
|
88
88
|
|
|
89
89
|
## Seed library (`.ai.local/rules-library/`)
|
|
90
90
|
|
|
91
|
-
`init` copies `ai-local/rules/*.md` into `.ai.local/rules/` and does not overwrite an existing file. The next stack ships `task-levels` there, so L0–L3 selection is active on install. `init` also copies `router-pages` into `.ai.local/rules/` when `output: 'export'` and a Pages `_app` are both present; an existing `.ai.local/rules/router-pages.md` is left untouched and every other seed stays inactive. `init` seeds **staged-inactive** rule templates here (Cursor `.mdc` sources analog: `presets/cursor/next/ai-local/rules-library/**`). They are **not** active until moved into `.ai.local/rules/`. When a seed matches the task scope, apply it and tell the owner to move it. Typical seeds: `router-pages` (Pages Router override), `no-react-fc`, `component-child-decomposition`, `single-source-copy-constants`, `commit-hygiene`, `pre-pr-checklist`, `api-contract-source`, `agent-pipeline-gates`, `analytics-events`, `feature-flags-experiments`, `pwa-service-worker`, `qa-test-cases`, and the `storybook-*` set. (`forms-validation` is an active preset rule, not a seed. `task-levels` is an active overlay rule, not a seed.)
|
|
91
|
+
`init` copies `ai-local/rules/*.md` into `.ai.local/rules/` and does not overwrite an existing file. `init` and `update` also write `.ai.local/.template-base.json`, and a flagged drift run may write `.ai.local/.rollback/template-drift/**`. Neither write replaces an existing rule file. The next stack ships `task-levels` there, so L0–L3 selection is active on install. `init` also copies `router-pages` into `.ai.local/rules/` when `output: 'export'` and a Pages `_app` are both present; an existing `.ai.local/rules/router-pages.md` is left untouched and every other seed stays inactive. `init` seeds **staged-inactive** rule templates here (Cursor `.mdc` sources analog: `presets/cursor/next/ai-local/rules-library/**`). They are **not** active until moved into `.ai.local/rules/`. When a seed matches the task scope, apply it and tell the owner to move it. Typical seeds: `router-pages` (Pages Router override), `no-react-fc`, `component-child-decomposition`, `single-source-copy-constants`, `commit-hygiene`, `pre-pr-checklist`, `api-contract-source`, `agent-pipeline-gates`, `analytics-events`, `feature-flags-experiments`, `pwa-service-worker`, `qa-test-cases`, and the `storybook-*` set. (`forms-validation` is an active preset rule, not a seed. `task-levels` is an active overlay rule, not a seed.)
|
|
92
92
|
|
|
93
93
|
## Managed vs preserved
|
|
94
94
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "mavis",
|
|
4
4
|
"stack": "next",
|
|
5
5
|
"semanticSource": "cursor/next",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "8758fd5560e4ee4729597b0c3069b324986373d98f92053b55cabb821a877111",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -90,6 +90,7 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
|
|
|
90
90
|
## Depth passes
|
|
91
91
|
| Pass | Outcome | Evidence or reason |
|
|
92
92
|
|------|---------|--------------------|
|
|
93
|
+
| Call-site sweep | `no finding` | what was searched or read |
|
|
93
94
|
|
|
94
95
|
## Figma parity (UI)
|
|
95
96
|
- Scope: default | full — viewports compared: …
|
|
@@ -41,6 +41,7 @@ You debug and fix failing Playwright e2e tests.
|
|
|
41
41
|
4. **Use `playwright` MCP** when available (or `user-playwright` if installed globally) to reproduce failures and verify fixes.
|
|
42
42
|
5. Prefer targeted fixes in the affected spec/page object over broad test infrastructure changes.
|
|
43
43
|
6. Re-run the affected spec when feasible.
|
|
44
|
+
7. When a fix needs a product decision, ask through the host's interactive question tool (prose fallback) and load `interactive-questions`; never skip or weaken a business assertion.
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
## MCP usage
|