@bonesofspring/ai-rules 0.2.42 → 0.2.44
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 +48 -1
- package/bin/lib/seed-ai-local-team.js +41 -4
- package/docs/LOCAL-OVERLAY.md +6 -4
- package/docs/PRESET-CONTRIBUTION.md +2 -2
- package/docs/PRESET-ENGLISH-STYLE.md +1 -1
- package/docs/specs/INDEX.md +3 -1
- package/docs/specs/_templates/feature.md +6 -0
- package/package.json +1 -1
- package/presets/_shared/README.md +1 -1
- package/presets/_shared/assets/docs-specs/_templates/feature.md +6 -0
- package/presets/_shared/core/agent-team/agent-artifact-contracts.md +1 -1
- package/presets/_shared/core/agent-team/agent-team-intake.md +1 -1
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +23 -7
- package/presets/_shared/core/agent-team/language-policy.md +24 -16
- package/presets/_shared/core/agent-team/plan-graph.md +9 -1
- package/presets/_shared/core/quality/anti-hallucination-contract.md +2 -0
- package/presets/_shared/core/quality/context-and-iteration.md +2 -1
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +1080 -4
- package/presets/claude/android-kotlin/REPO_AGENTS.md +1 -3
- package/presets/claude/android-kotlin/commands/task-continue.md +1 -1
- package/presets/claude/android-kotlin/commands/task.md +1 -3
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +1080 -4
- package/presets/claude/android-kotlin/rules/stack/android-app-core.md +1 -3
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-intake.md +1 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +23 -7
- package/presets/claude/android-kotlin/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/go/REPO_AGENTS.md +1 -3
- package/presets/claude/go/commands/task-continue.md +1 -1
- package/presets/claude/go/commands/task.md +1 -3
- package/presets/claude/go/hooks/chain-team-phases.sh +1080 -4
- package/presets/claude/go/rules/stack/go-app-core.md +1 -3
- package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +1 -1
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +23 -7
- package/presets/claude/go/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/go/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/go/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/ios-swift/REPO_AGENTS.md +1 -3
- package/presets/claude/ios-swift/commands/task-continue.md +1 -1
- package/presets/claude/ios-swift/commands/task.md +1 -3
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +1080 -4
- package/presets/claude/ios-swift/rules/stack/ios-app-core.md +1 -3
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +1 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +23 -7
- package/presets/claude/ios-swift/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/java/REPO_AGENTS.md +1 -3
- package/presets/claude/java/commands/task-continue.md +1 -1
- package/presets/claude/java/commands/task.md +1 -3
- package/presets/claude/java/hooks/chain-team-phases.sh +1080 -4
- package/presets/claude/java/rules/stack/java-app-core.md +1 -3
- package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +1 -1
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +23 -7
- package/presets/claude/java/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/java/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/java/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/mcp-ts/REPO_AGENTS.md +1 -3
- package/presets/claude/mcp-ts/commands/task-continue.md +1 -1
- package/presets/claude/mcp-ts/commands/task.md +1 -3
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +1080 -4
- package/presets/claude/mcp-ts/rules/stack/mcp-ts-app-core.md +1 -3
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-intake.md +1 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +23 -7
- package/presets/claude/mcp-ts/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/next/REPO_AGENTS.md +2 -4
- package/presets/claude/next/agents/openspec-author.md +26 -2
- package/presets/claude/next/agents/task-analyst.md +15 -6
- package/presets/claude/next/agents/task-router.md +20 -2
- package/presets/{cursor/next/ai-local/rules-library → claude/next/ai-local/rules}/task-levels.md +2 -0
- package/presets/claude/next/commands/task-continue.md +1 -1
- package/presets/claude/next/commands/task.md +1 -3
- package/presets/claude/next/hooks/chain-team-phases.sh +1080 -4
- package/presets/claude/next/rules/stack/next-app-core.md +1 -3
- package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +1 -1
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +23 -7
- package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +2 -2
- package/presets/claude/next/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/next/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/nuxt/REPO_AGENTS.md +1 -3
- package/presets/claude/nuxt/agents/README.md +1 -1
- package/presets/claude/nuxt/commands/task-continue.md +1 -1
- package/presets/claude/nuxt/commands/task.md +1 -3
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +1080 -4
- package/presets/claude/nuxt/rules/stack/nuxt-app-core.md +1 -3
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +1 -1
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +23 -7
- package/presets/claude/nuxt/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/nuxt/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/nuxt/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/php-hexagonal/REPO_AGENTS.md +1 -3
- package/presets/claude/php-hexagonal/commands/task-continue.md +1 -1
- package/presets/claude/php-hexagonal/commands/task.md +1 -3
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +1080 -4
- package/presets/claude/php-hexagonal/rules/stack/php-app-core.md +1 -3
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +1 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +23 -7
- package/presets/claude/php-hexagonal/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/php-laravel/REPO_AGENTS.md +1 -3
- package/presets/claude/php-laravel/commands/task-continue.md +1 -1
- package/presets/claude/php-laravel/commands/task.md +1 -3
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +1080 -4
- package/presets/claude/php-laravel/rules/stack/laravel-app-core.md +1 -3
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +1 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +23 -7
- package/presets/claude/php-laravel/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/svelte/REPO_AGENTS.md +1 -3
- package/presets/claude/svelte/agents/README.md +1 -1
- package/presets/claude/svelte/commands/task-continue.md +1 -1
- package/presets/claude/svelte/commands/task.md +1 -3
- package/presets/claude/svelte/hooks/chain-team-phases.sh +1080 -4
- package/presets/claude/svelte/rules/stack/svelte-app-core.md +1 -3
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +1 -1
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +23 -7
- package/presets/claude/svelte/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/svelte/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/svelte/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/cursor/android-kotlin/REPO_AGENTS.md +1 -3
- package/presets/cursor/android-kotlin/commands/task-continue.md +1 -1
- package/presets/cursor/android-kotlin/commands/task.md +1 -3
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +1080 -4
- package/presets/cursor/android-kotlin/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +2 -9
- package/presets/cursor/android-kotlin/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/android-kotlin/rules/android-app-core.mdc +1 -3
- package/presets/cursor/android-kotlin/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/android-kotlin/rules/language-policy.mdc +25 -17
- package/presets/cursor/go/REPO_AGENTS.md +1 -3
- package/presets/cursor/go/commands/task-continue.md +1 -1
- package/presets/cursor/go/commands/task.md +1 -3
- package/presets/cursor/go/hooks/chain-team-phases.sh +1080 -4
- package/presets/cursor/go/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/go/rules/agent-team-orchestrator.mdc +2 -9
- package/presets/cursor/go/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/go/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/go/rules/go-app-core.mdc +1 -3
- package/presets/cursor/go/rules/language-policy.mdc +25 -17
- package/presets/cursor/ios-swift/REPO_AGENTS.md +1 -3
- package/presets/cursor/ios-swift/commands/task-continue.md +1 -1
- package/presets/cursor/ios-swift/commands/task.md +1 -3
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +1080 -4
- package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +2 -9
- package/presets/cursor/ios-swift/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/ios-swift/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/ios-swift/rules/ios-app-core.mdc +1 -3
- package/presets/cursor/ios-swift/rules/language-policy.mdc +25 -17
- package/presets/cursor/java/REPO_AGENTS.md +1 -3
- package/presets/cursor/java/commands/task-continue.md +1 -1
- package/presets/cursor/java/commands/task.md +1 -3
- package/presets/cursor/java/hooks/chain-team-phases.sh +1080 -4
- package/presets/cursor/java/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/java/rules/agent-team-orchestrator.mdc +2 -9
- package/presets/cursor/java/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/java/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/java/rules/java-app-core.mdc +1 -3
- package/presets/cursor/java/rules/language-policy.mdc +25 -17
- package/presets/cursor/mcp-ts/REPO_AGENTS.md +1 -3
- package/presets/cursor/mcp-ts/commands/task-continue.md +1 -1
- package/presets/cursor/mcp-ts/commands/task.md +1 -3
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +1080 -4
- package/presets/cursor/mcp-ts/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +2 -9
- package/presets/cursor/mcp-ts/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/mcp-ts/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/mcp-ts/rules/language-policy.mdc +25 -17
- package/presets/cursor/mcp-ts/rules/mcp-ts-app-core.mdc +1 -3
- package/presets/cursor/next/REPO_AGENTS.md +2 -4
- package/presets/cursor/next/agents/README.md +1 -1
- package/presets/cursor/next/agents/build-verifier.md +2 -0
- package/presets/cursor/next/agents/feature-developer.md +9 -0
- package/presets/cursor/next/agents/openspec-author.md +26 -2
- package/presets/cursor/next/agents/task-analyst.md +20 -6
- package/presets/cursor/next/agents/task-router.md +31 -2
- package/presets/cursor/next/ai-local/conventions.md +20 -0
- package/presets/{mavis/next/ai-local/rules-library → cursor/next/ai-local/rules}/task-levels.md +12 -0
- package/presets/cursor/next/commands/task-continue.md +1 -1
- package/presets/cursor/next/commands/task.md +1 -3
- package/presets/cursor/next/hooks/chain-team-phases.sh +1080 -4
- package/presets/cursor/next/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +20 -11
- package/presets/cursor/next/rules/ai-local-overlay.mdc +2 -2
- package/presets/cursor/next/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/next/rules/language-policy.mdc +25 -17
- package/presets/cursor/next/rules/next-app-core.mdc +1 -3
- package/presets/cursor/nuxt/REPO_AGENTS.md +1 -3
- package/presets/cursor/nuxt/agents/README.md +1 -1
- package/presets/cursor/nuxt/commands/task-continue.md +1 -1
- package/presets/cursor/nuxt/commands/task.md +1 -3
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +1080 -4
- package/presets/cursor/nuxt/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +2 -9
- package/presets/cursor/nuxt/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/nuxt/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/nuxt/rules/language-policy.mdc +25 -17
- package/presets/cursor/nuxt/rules/nuxt-app-core.mdc +1 -3
- package/presets/cursor/php-hexagonal/REPO_AGENTS.md +1 -3
- package/presets/cursor/php-hexagonal/commands/task-continue.md +1 -1
- package/presets/cursor/php-hexagonal/commands/task.md +1 -3
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +1080 -4
- package/presets/cursor/php-hexagonal/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +2 -9
- package/presets/cursor/php-hexagonal/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/php-hexagonal/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/php-hexagonal/rules/language-policy.mdc +25 -17
- package/presets/cursor/php-hexagonal/rules/php-app-core.mdc +1 -3
- package/presets/cursor/php-laravel/REPO_AGENTS.md +1 -3
- package/presets/cursor/php-laravel/commands/task-continue.md +1 -1
- package/presets/cursor/php-laravel/commands/task.md +1 -3
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +1080 -4
- package/presets/cursor/php-laravel/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +2 -9
- package/presets/cursor/php-laravel/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/php-laravel/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/php-laravel/rules/language-policy.mdc +25 -17
- package/presets/cursor/php-laravel/rules/laravel-app-core.mdc +1 -3
- package/presets/cursor/svelte/REPO_AGENTS.md +1 -3
- package/presets/cursor/svelte/agents/README.md +1 -1
- package/presets/cursor/svelte/commands/task-continue.md +1 -1
- package/presets/cursor/svelte/commands/task.md +1 -3
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +1080 -4
- package/presets/cursor/svelte/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +2 -9
- package/presets/cursor/svelte/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/svelte/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/svelte/rules/language-policy.mdc +25 -17
- package/presets/cursor/svelte/rules/svelte-app-core.mdc +1 -3
- package/presets/mavis/android-kotlin/REPO_AGENTS.md +1 -3
- package/presets/mavis/android-kotlin/adapter-map.json +1 -1
- package/presets/mavis/android-kotlin/commands/task-continue.md +1 -1
- package/presets/mavis/android-kotlin/commands/task.md +1 -3
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +1080 -4
- package/presets/mavis/android-kotlin/rules/agent-team-intake.md +1 -1
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +23 -7
- package/presets/mavis/android-kotlin/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/android-kotlin/rules/android-app-core.md +1 -3
- package/presets/mavis/android-kotlin/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/android-kotlin/rules/language-policy.md +24 -16
- package/presets/mavis/go/REPO_AGENTS.md +1 -3
- package/presets/mavis/go/adapter-map.json +1 -1
- package/presets/mavis/go/commands/task-continue.md +1 -1
- package/presets/mavis/go/commands/task.md +1 -3
- package/presets/mavis/go/hooks/chain-team-phases.sh +1080 -4
- package/presets/mavis/go/rules/agent-team-intake.md +1 -1
- package/presets/mavis/go/rules/agent-team-orchestrator.md +23 -7
- package/presets/mavis/go/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/go/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/go/rules/go-app-core.md +1 -3
- package/presets/mavis/go/rules/language-policy.md +24 -16
- package/presets/mavis/ios-swift/REPO_AGENTS.md +1 -3
- package/presets/mavis/ios-swift/adapter-map.json +1 -1
- package/presets/mavis/ios-swift/commands/task-continue.md +1 -1
- package/presets/mavis/ios-swift/commands/task.md +1 -3
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +1080 -4
- package/presets/mavis/ios-swift/rules/agent-team-intake.md +1 -1
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +23 -7
- package/presets/mavis/ios-swift/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/ios-swift/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/ios-swift/rules/ios-app-core.md +1 -3
- package/presets/mavis/ios-swift/rules/language-policy.md +24 -16
- package/presets/mavis/java/REPO_AGENTS.md +1 -3
- package/presets/mavis/java/adapter-map.json +1 -1
- package/presets/mavis/java/commands/task-continue.md +1 -1
- package/presets/mavis/java/commands/task.md +1 -3
- package/presets/mavis/java/hooks/chain-team-phases.sh +1080 -4
- package/presets/mavis/java/rules/agent-team-intake.md +1 -1
- package/presets/mavis/java/rules/agent-team-orchestrator.md +23 -7
- package/presets/mavis/java/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/java/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/java/rules/java-app-core.md +1 -3
- package/presets/mavis/java/rules/language-policy.md +24 -16
- package/presets/mavis/mcp-ts/REPO_AGENTS.md +1 -3
- package/presets/mavis/mcp-ts/adapter-map.json +1 -1
- package/presets/mavis/mcp-ts/commands/task-continue.md +1 -1
- package/presets/mavis/mcp-ts/commands/task.md +1 -3
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +1080 -4
- package/presets/mavis/mcp-ts/rules/agent-team-intake.md +1 -1
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +23 -7
- package/presets/mavis/mcp-ts/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/mcp-ts/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/mcp-ts/rules/language-policy.md +24 -16
- package/presets/mavis/mcp-ts/rules/mcp-ts-app-core.md +1 -3
- package/presets/mavis/next/REPO_AGENTS.md +2 -4
- package/presets/mavis/next/adapter-map.json +5 -5
- package/presets/mavis/next/agents/build-verifier.md +2 -0
- package/presets/mavis/next/agents/feature-developer.md +9 -0
- package/presets/mavis/next/agents/openspec-author.md +26 -2
- package/presets/mavis/next/agents/task-analyst.md +20 -6
- package/presets/mavis/next/agents/task-router.md +31 -2
- package/presets/mavis/next/ai-local/conventions.md +20 -0
- package/presets/{opencode/next/ai-local/rules-library → mavis/next/ai-local/rules}/task-levels.md +12 -0
- package/presets/mavis/next/commands/task-continue.md +1 -1
- package/presets/mavis/next/commands/task.md +1 -3
- package/presets/mavis/next/hooks/chain-team-phases.sh +1080 -4
- package/presets/mavis/next/rules/agent-team-intake.md +1 -1
- package/presets/mavis/next/rules/agent-team-orchestrator.md +23 -7
- package/presets/mavis/next/rules/ai-local-overlay.md +2 -2
- package/presets/mavis/next/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/next/rules/language-policy.md +24 -16
- package/presets/mavis/next/rules/next-app-core.md +1 -3
- package/presets/mavis/nuxt/REPO_AGENTS.md +1 -3
- package/presets/mavis/nuxt/adapter-map.json +1 -1
- package/presets/mavis/nuxt/commands/task-continue.md +1 -1
- package/presets/mavis/nuxt/commands/task.md +1 -3
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +1080 -4
- package/presets/mavis/nuxt/rules/agent-team-intake.md +1 -1
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +23 -7
- package/presets/mavis/nuxt/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/nuxt/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/nuxt/rules/language-policy.md +24 -16
- package/presets/mavis/nuxt/rules/nuxt-app-core.md +1 -3
- package/presets/mavis/php-hexagonal/REPO_AGENTS.md +1 -3
- package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
- package/presets/mavis/php-hexagonal/commands/task-continue.md +1 -1
- package/presets/mavis/php-hexagonal/commands/task.md +1 -3
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +1080 -4
- package/presets/mavis/php-hexagonal/rules/agent-team-intake.md +1 -1
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +23 -7
- package/presets/mavis/php-hexagonal/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/php-hexagonal/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/php-hexagonal/rules/language-policy.md +24 -16
- package/presets/mavis/php-hexagonal/rules/php-app-core.md +1 -3
- package/presets/mavis/php-laravel/REPO_AGENTS.md +1 -3
- package/presets/mavis/php-laravel/adapter-map.json +1 -1
- package/presets/mavis/php-laravel/commands/task-continue.md +1 -1
- package/presets/mavis/php-laravel/commands/task.md +1 -3
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +1080 -4
- package/presets/mavis/php-laravel/rules/agent-team-intake.md +1 -1
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +23 -7
- package/presets/mavis/php-laravel/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/php-laravel/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/php-laravel/rules/language-policy.md +24 -16
- package/presets/mavis/php-laravel/rules/laravel-app-core.md +1 -3
- package/presets/mavis/svelte/REPO_AGENTS.md +1 -3
- package/presets/mavis/svelte/adapter-map.json +1 -1
- package/presets/mavis/svelte/commands/task-continue.md +1 -1
- package/presets/mavis/svelte/commands/task.md +1 -3
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +1080 -4
- package/presets/mavis/svelte/rules/agent-team-intake.md +1 -1
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +23 -7
- package/presets/mavis/svelte/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/svelte/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/svelte/rules/language-policy.md +24 -16
- package/presets/mavis/svelte/rules/svelte-app-core.md +1 -3
- package/presets/opencode/android-kotlin/REPO_AGENTS.md +1 -3
- package/presets/opencode/android-kotlin/adapter-map.json +1 -1
- package/presets/opencode/android-kotlin/commands/task-continue.md +1 -1
- package/presets/opencode/android-kotlin/commands/task.md +1 -3
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +1080 -4
- package/presets/opencode/android-kotlin/rules/agent-team-intake.md +1 -1
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +23 -7
- package/presets/opencode/android-kotlin/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/android-kotlin/rules/android-app-core.md +1 -3
- package/presets/opencode/android-kotlin/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/android-kotlin/rules/language-policy.md +24 -16
- package/presets/opencode/go/REPO_AGENTS.md +1 -3
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/commands/task-continue.md +1 -1
- package/presets/opencode/go/commands/task.md +1 -3
- package/presets/opencode/go/hooks/chain-team-phases.sh +1080 -4
- package/presets/opencode/go/rules/agent-team-intake.md +1 -1
- package/presets/opencode/go/rules/agent-team-orchestrator.md +23 -7
- package/presets/opencode/go/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/go/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/go/rules/go-app-core.md +1 -3
- package/presets/opencode/go/rules/language-policy.md +24 -16
- package/presets/opencode/ios-swift/REPO_AGENTS.md +1 -3
- package/presets/opencode/ios-swift/adapter-map.json +1 -1
- package/presets/opencode/ios-swift/commands/task-continue.md +1 -1
- package/presets/opencode/ios-swift/commands/task.md +1 -3
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +1080 -4
- package/presets/opencode/ios-swift/rules/agent-team-intake.md +1 -1
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +23 -7
- package/presets/opencode/ios-swift/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/ios-swift/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/ios-swift/rules/ios-app-core.md +1 -3
- package/presets/opencode/ios-swift/rules/language-policy.md +24 -16
- package/presets/opencode/java/REPO_AGENTS.md +1 -3
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/commands/task-continue.md +1 -1
- package/presets/opencode/java/commands/task.md +1 -3
- package/presets/opencode/java/hooks/chain-team-phases.sh +1080 -4
- package/presets/opencode/java/rules/agent-team-intake.md +1 -1
- package/presets/opencode/java/rules/agent-team-orchestrator.md +23 -7
- package/presets/opencode/java/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/java/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/java/rules/java-app-core.md +1 -3
- package/presets/opencode/java/rules/language-policy.md +24 -16
- package/presets/opencode/mcp-ts/REPO_AGENTS.md +1 -3
- package/presets/opencode/mcp-ts/adapter-map.json +1 -1
- package/presets/opencode/mcp-ts/commands/task-continue.md +1 -1
- package/presets/opencode/mcp-ts/commands/task.md +1 -3
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +1080 -4
- package/presets/opencode/mcp-ts/rules/agent-team-intake.md +1 -1
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +23 -7
- package/presets/opencode/mcp-ts/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/mcp-ts/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/mcp-ts/rules/language-policy.md +24 -16
- package/presets/opencode/mcp-ts/rules/mcp-ts-app-core.md +1 -3
- package/presets/opencode/next/REPO_AGENTS.md +2 -4
- package/presets/opencode/next/adapter-map.json +5 -5
- package/presets/opencode/next/agents/build-verifier.md +2 -0
- package/presets/opencode/next/agents/feature-developer.md +9 -0
- package/presets/opencode/next/agents/openspec-author.md +26 -2
- package/presets/opencode/next/agents/task-analyst.md +20 -6
- package/presets/opencode/next/agents/task-router.md +31 -2
- package/presets/opencode/next/ai-local/conventions.md +20 -0
- package/presets/opencode/next/ai-local/rules/task-levels.md +40 -0
- package/presets/opencode/next/commands/task-continue.md +1 -1
- package/presets/opencode/next/commands/task.md +1 -3
- package/presets/opencode/next/hooks/chain-team-phases.sh +1080 -4
- package/presets/opencode/next/rules/agent-team-intake.md +1 -1
- package/presets/opencode/next/rules/agent-team-orchestrator.md +23 -7
- package/presets/opencode/next/rules/ai-local-overlay.md +2 -2
- package/presets/opencode/next/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/next/rules/language-policy.md +24 -16
- package/presets/opencode/next/rules/next-app-core.md +1 -3
- package/presets/opencode/nuxt/REPO_AGENTS.md +1 -3
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/commands/task-continue.md +1 -1
- package/presets/opencode/nuxt/commands/task.md +1 -3
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +1080 -4
- package/presets/opencode/nuxt/rules/agent-team-intake.md +1 -1
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +23 -7
- package/presets/opencode/nuxt/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/nuxt/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/nuxt/rules/language-policy.md +24 -16
- package/presets/opencode/nuxt/rules/nuxt-app-core.md +1 -3
- package/presets/opencode/php-hexagonal/REPO_AGENTS.md +1 -3
- package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
- package/presets/opencode/php-hexagonal/commands/task-continue.md +1 -1
- package/presets/opencode/php-hexagonal/commands/task.md +1 -3
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +1080 -4
- package/presets/opencode/php-hexagonal/rules/agent-team-intake.md +1 -1
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +23 -7
- package/presets/opencode/php-hexagonal/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/php-hexagonal/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/php-hexagonal/rules/language-policy.md +24 -16
- package/presets/opencode/php-hexagonal/rules/php-app-core.md +1 -3
- package/presets/opencode/php-laravel/REPO_AGENTS.md +1 -3
- package/presets/opencode/php-laravel/adapter-map.json +1 -1
- package/presets/opencode/php-laravel/commands/task-continue.md +1 -1
- package/presets/opencode/php-laravel/commands/task.md +1 -3
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +1080 -4
- package/presets/opencode/php-laravel/rules/agent-team-intake.md +1 -1
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +23 -7
- package/presets/opencode/php-laravel/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/php-laravel/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/php-laravel/rules/language-policy.md +24 -16
- package/presets/opencode/php-laravel/rules/laravel-app-core.md +1 -3
- package/presets/opencode/svelte/REPO_AGENTS.md +1 -3
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/commands/task-continue.md +1 -1
- package/presets/opencode/svelte/commands/task.md +1 -3
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +1080 -4
- package/presets/opencode/svelte/rules/agent-team-intake.md +1 -1
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +23 -7
- package/presets/opencode/svelte/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/svelte/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/svelte/rules/language-policy.md +24 -16
- package/presets/opencode/svelte/rules/svelte-app-core.md +1 -3
|
@@ -14,7 +14,7 @@ When the user message looks like a **work request** (implement, add, fix, refact
|
|
|
14
14
|
3. Pure questions (“how does X work”, “explain”) — prefer agent **`codebase-analyzer`** (explain-as-is); trivial one-liners may be answered inline. Do not open `/task`.
|
|
15
15
|
4. A work request now runs the planning workflow — **goal frame → requirements → information-sufficiency → decompose** (dependency graph / epics); see **task-framing** and **plan-graph**.
|
|
16
16
|
5. Every **work request** — with or without `/task`, and even when the user says “no pipeline” / “just do it” — persists the **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md`. Prefer `/task` (its **Slug** step writes it). If handling inline without `/task`, first create the slug dir and write `prompt.md` (write-if-absent), then proceed. Pure questions and trivial one-liners are not work requests → no file. On an inline follow-up for an existing slug (no `/task`) where the user authors new text, append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; create on first append; exclude machine-generated and empty/argument-less invocations).
|
|
17
|
-
6. **
|
|
17
|
+
6. **Reuse the dialogue language already resolved on this turn** (always-on `ai-local-overlay` / **language-policy**). A question and a message without a slash command still resolve before you speak. When this request writes `prompt.md`, persist that tag once in the header (`language: <BCP-47>`) + a `.memlog.md` `event:` line. Development, reasoning, and artifacts stay English. The setting wins over a mid-task prompt switch (surface it once, never ask). See **language-policy**.
|
|
18
18
|
|
|
19
19
|
Exceptions: user explicitly says “no pipeline”, “just do it”, or continues an active slug.
|
|
20
20
|
|
|
@@ -169,20 +169,13 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
169
169
|
8. When all steps complete, suggest `/technical-retro <slug>`.
|
|
170
170
|
9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
|
|
171
171
|
10. **Persist the verbatim original prompt.** Every `/task` and every routed work request writes the user's raw prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). Not a manifest `artifacts[]` body — register the path on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact. Also append every **subsequent user-authored** prompt for the same slug — a new user message while the slug is active, `/task-continue` arguments, human-gate feedback, a clarification answer — to the append-only `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; never rewrite or duplicate an entry; never log machine-generated hook `followup_message` or empty/argument-less invocations). Register its path on the `routing` entry. See **agent-artifact-contracts** § Prompt log.
|
|
172
|
-
11. **Answer the user in the resolved dialogue language for the whole task.**
|
|
173
|
-
(`.ai.local` `## Language` → prompt language → English) and pass it to every step; `/task-continue` keeps
|
|
174
|
-
it. Never ask the user to pick a language. Development, reasoning, and artifacts stay English. See
|
|
175
|
-
**language-policy**.
|
|
172
|
+
11. **Answer the user in the resolved dialogue language for the whole task.** The always-on language rule already resolved it on this turn (`.ai.local` `## Language` → prompt language → English). Pass that tag to every step; `/task-continue` keeps it. Never ask the user to pick a language. Development, reasoning, and artifacts stay English. See **language-policy**.
|
|
176
173
|
|
|
177
174
|
## Team artifact I/O (Cursor Shell sandbox)
|
|
178
175
|
|
|
179
176
|
- **Persist the original prompt.** For **every** task — `/task` or a routed work request — write the user's **verbatim** prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). The header is additive provenance only; the fenced text block holds the user's words unchanged. Not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact.
|
|
180
177
|
- **Append follow-up prompts.** When a user-authored prompt arrives for an active slug (new message, `/task-continue` args, gate feedback, clarification), append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` — `seq` = current max + 1, create on first append, never rewrite or duplicate an entry, never touch `prompt.md`. Exclude hook `followup_message` and empty/argument-less invocations. Not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt log.
|
|
181
|
-
- **Answer in the resolved dialogue language.**
|
|
182
|
-
prompt language → English; mixed → dominant; nearest `.ai.local` wins) and reuse it for every user-facing
|
|
183
|
-
message and `/task-continue`. Record the tag in the `prompt.md` header (`language: <BCP-47>`) + a
|
|
184
|
-
`.memlog.md` `event:` line; a later correction is an append-only memlog event. Development, reasoning, and
|
|
185
|
-
artifacts stay **English**. See **language-policy**.
|
|
178
|
+
- **Answer in the resolved dialogue language.** The always-on language rule already resolved it on this turn (`.ai.local` `## Language` → prompt language → English; mixed → dominant; nearest `.ai.local` wins). Reuse it for every user-facing message and `/task-continue`. Record the tag in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line; a later correction is an append-only memlog event. Development, reasoning, and artifacts stay **English**. See **language-policy**.
|
|
186
179
|
|
|
187
180
|
- Create/update team task dirs with the **Write** tool (parents are created automatically). Do **not** bootstrap slug dirs with Shell `mkdir -p` — default sandbox returns `Operation not permitted` (worse on macOS Desktop/Documents with TCC).
|
|
188
181
|
- If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
|
|
@@ -16,7 +16,7 @@ This rule is mandatory. **You MUST** obey it on every turn, without exception.
|
|
|
16
16
|
4. **Activate seeds** — if `.ai.local/rules-library/<seed>.md` on the active chain matches the task, treat it as the applicable local rule and tell the owner to move it into that overlay's `rules/`. Seeds stay inactive until moved. Do not read the whole library up front.
|
|
17
17
|
5. **Conflict** — if a local rule conflicts with a preset rule, **the local rule wins**. If a local rule body contains `override: kill <preset-rule-name>`, drop that preset rule from your context window entirely.
|
|
18
18
|
6. **Acknowledge** — when answering a user question, briefly state which `.ai.local/` rules apply to the current task (one line is enough). Format: `Using .ai.local: <rule-name>(, <rule-name>)*`. If the probe prints `overlays=0`, do NOT mention this rule.
|
|
19
|
-
7. **Language** —
|
|
19
|
+
7. **Language** — on every user message, before you answer, resolve the dialogue language and reply in the user's **native language**. Order: `language:` already stored for an active task; else the `## Language` section of the nearest `conventions.md`; else infer from the prompt (mixed → dominant); else English. A question and a message without a slash command still resolve. Commands reuse this resolution. A newly entered overlay does not switch the task language. Development, reasoning, and all artifacts stay **English**. See `language-policy`.
|
|
20
20
|
8. **Re-read** — before answering a question that touches a local rule, re-read that file.
|
|
21
21
|
|
|
22
22
|
If the script is missing, read the root `.ai.local/rules/*.md` and `.ai.local/conventions.md` only.
|
|
@@ -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
|
+
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
|
+
|
|
22
24
|
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.
|
|
23
25
|
|
|
24
26
|
Status claims follow `verification-before-completion`. Procedural rules stay in `anti-sycophancy-discipline`. Stack floors stay in their own stems.
|
|
@@ -33,6 +33,4 @@ Boundaries — **`architecture-boundaries.mdc`**. Tooling — requestable **`go-
|
|
|
33
33
|
|
|
34
34
|
## Language
|
|
35
35
|
|
|
36
|
-
Development, reasoning, and artifacts stay **English
|
|
37
|
-
status, summaries, escalations) uses the user's **native language** — resolved from `.ai.local`
|
|
38
|
-
(`## Language`) or the prompt, else English. See `language-policy`.
|
|
36
|
+
On every user message, before you answer, resolve the dialogue language and reply in the user's **native language**, including a question and a message without a slash command. Order: stored task `language:`, else `.ai.local` (`## Language`), else the prompt, else English. Development, reasoning, and artifacts stay **English**. Commands reuse this resolution. See `language-policy`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "Native-language dialogue policy: development/reasoning/artifacts stay English; every user-facing
|
|
2
|
+
description: "Native-language dialogue policy: development/reasoning/artifacts stay English; every user-facing message, including one without a command, uses the user's native language, resolved on every turn from .ai.local."
|
|
3
3
|
globs:
|
|
4
4
|
- .ai.local/**/*
|
|
5
5
|
- AGENTS.md
|
|
@@ -11,9 +11,10 @@ alwaysApply: false
|
|
|
11
11
|
|
|
12
12
|
# Language policy
|
|
13
13
|
|
|
14
|
-
Behavior contract for **every agent
|
|
15
|
-
preset-authoring meta rule.
|
|
16
|
-
|
|
14
|
+
Behavior contract for **every agent in any consumer repo** — stack-agnostic. Not a
|
|
15
|
+
preset-authoring meta rule. Resolve the dialogue language on every user message from the
|
|
16
|
+
always-on surfaces (`ai-local-overlay`, the stack app-core, root `AGENTS.md`). This file
|
|
17
|
+
is the detailed reference. A slash command does not gate resolution.
|
|
17
18
|
|
|
18
19
|
## Two halves (mandatory)
|
|
19
20
|
|
|
@@ -23,30 +24,37 @@ detailed reference.
|
|
|
23
24
|
code, identifiers, logs, or artifacts.
|
|
24
25
|
2. **Every user-facing interaction is in the user's native language.** Clarifying questions, plan /
|
|
25
26
|
human-gate prompts, `/task-continue` prompts, status answers, plan/progress summaries, and error
|
|
26
|
-
escalations are written in the resolved language. Every such message —
|
|
27
|
+
escalations are written in the resolved language. Every such message — a question, a one-liner, or a
|
|
28
|
+
slash command — no exception.
|
|
27
29
|
|
|
28
|
-
## Resolution (
|
|
30
|
+
## Resolution (every user message)
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
Resolve on every user message, before you answer. Do not wait for `/task`, `/update`, or any other
|
|
33
|
+
command. Those commands reuse the language this step already resolved.
|
|
34
|
+
|
|
35
|
+
1. **Active task tag** — when a task is in progress, the `language:` value already stored in that task's
|
|
36
|
+
`prompt.md`.
|
|
37
|
+
2. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
|
|
31
38
|
**nearest** `.ai.local` wins in a monorepo.
|
|
32
|
-
|
|
39
|
+
3. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
|
|
33
40
|
the request.
|
|
34
|
-
|
|
41
|
+
4. Otherwise **English** (English-only / ambiguous prompt).
|
|
35
42
|
|
|
36
|
-
The `.ai.local` setting **wins over** a
|
|
43
|
+
The `.ai.local` setting **wins over** a later prompt in another language. On a disagreement, follow the
|
|
37
44
|
setting and surface the mismatch **once in one sentence** — never block, and **never ask a
|
|
38
|
-
language-confirmation question**.
|
|
45
|
+
language-confirmation question**. A message with no task still resolves on this turn.
|
|
39
46
|
|
|
40
47
|
## Per-task persistence
|
|
41
48
|
|
|
42
|
-
|
|
43
|
-
`/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
44
|
-
append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
45
|
-
verbatim block is frozen). Never store it in `status.json`,
|
|
49
|
+
When a task artifact is created, record the language already resolved above and reuse it for the whole
|
|
50
|
+
task — every pipeline agent and every `/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
51
|
+
(`language: <BCP-47>`) and an append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
52
|
+
append-only memlog event (the fenced verbatim block is frozen). Never store it in `status.json`,
|
|
53
|
+
`metrics.json`, or an `artifacts[]` body.
|
|
46
54
|
|
|
47
55
|
## See also
|
|
48
56
|
|
|
49
|
-
- `ai-local-overlay` —
|
|
50
|
-
- `agent-team-intake` —
|
|
57
|
+
- `ai-local-overlay` — always-on; resolves the language on every user message.
|
|
58
|
+
- `agent-team-intake` — persists the already-resolved language when a work request starts.
|
|
51
59
|
- `agent-team-orchestrator` — carries the resolved language across steps.
|
|
52
60
|
- `agent-artifact-contracts` — the `prompt.md` header contract.
|
|
@@ -7,9 +7,7 @@ Cross-tool repo-root guide. Tool-specific maps stay under `.cursor/AGENTS.md`, `
|
|
|
7
7
|
- Treat this file as the **shared** entry for any agent (Cursor, Claude Code, Mavis, OpenCode, or other).
|
|
8
8
|
- All four platforms ship **the same** root file. `init` overwrites it; content does not depend on which tool ran last.
|
|
9
9
|
- Tool maps (agent-team tables, slash commands) live in `.cursor/AGENTS.md` / `.claude/CLAUDE.md` / `.mavis/AGENTS.md` / `.opencode/AGENTS.md` — use them when that tool is installed.
|
|
10
|
-
- **Language.**
|
|
11
|
-
**native language** (`.ai.local/conventions.md` `## Language`, else the prompt language, else English) for
|
|
12
|
-
every question, gate prompt, status, and summary — see the `language-policy` rule.
|
|
10
|
+
- **Language.** On every user message, before you answer, resolve the dialogue language and answer in the user's **native language** (`.ai.local/conventions.md` `## Language`, else the prompt language, else English), including a question and a message without a slash command. Commands reuse this resolution. Development, reasoning, and artifacts stay **English**. See the `language-policy` rule.
|
|
13
11
|
- Install:
|
|
14
12
|
|
|
15
13
|
```bash
|
|
@@ -39,7 +39,7 @@ printf '%s\n' '{"status":"completed","action":"end_human_gate","activateNext":tr
|
|
|
39
39
|
|
|
40
40
|
## Checkpoint & resume
|
|
41
41
|
|
|
42
|
-
Resume from the on-disk checkpoint, not from chat: read `.ai.local/team/tasks/<slug>/artifact-manifest.json` (authoritative paths per producer) and `.memlog.md` (`## <date>` + `event:` entries), skip completed waves, and continue at the first stage whose exit criteria are unmet. Record produced paths on the `implementation` manifest entry as you go. Do **not** overwrite or duplicate `.ai.local/team/tasks/<slug>/prompt.md` — it records the original ask (write-if-absent). Append the `/task-continue` arguments (when present) and any gate feedback verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; skip when the invocation carries no new user words).
|
|
42
|
+
Resume from the on-disk checkpoint, not from chat: read `.ai.local/team/tasks/<slug>/focus.md` first (a view, not the system of record), then `artifact-manifest.json` (authoritative paths per producer) and `.memlog.md` (`## <date>` + `event:` entries), skip completed waves, and continue at the first stage whose exit criteria are unmet. Record produced paths on the `implementation` manifest entry as you go. Do **not** overwrite or duplicate `.ai.local/team/tasks/<slug>/prompt.md` — it records the original ask (write-if-absent). Append the `/task-continue` arguments (when present) and any gate feedback verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; skip when the invocation carries no new user words).
|
|
43
43
|
|
|
44
44
|
Plan revision during execution is a named, auditable operation: an evaluation oracle failing twice, a scope/requirement change, or a newly discovered dependency triggers `decision: replan rev N → N+1` in `.memlog.md`, an edit to `decomposition.md` (+ optional `planRevision`), and a **re-run of the affected gate**.
|
|
45
45
|
|
|
@@ -65,9 +65,7 @@ Before any specialist runs, `goal.md` is written and shown with the plan. When t
|
|
|
65
65
|
|
|
66
66
|
## Dialogue language
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
mixed → dominant) and record it in the `prompt.md` header (`language: <BCP-47>`). Reuse it for every
|
|
70
|
-
user-facing message and `/task-continue`. See `language-policy`.
|
|
68
|
+
The always-on language rule already resolved the user-facing language on this turn (`.ai.local` `## Language` → prompt language → English; mixed → dominant). Record that tag in the `prompt.md` header (`language: <BCP-47>`) and reuse it for every user-facing message and `/task-continue`. This command records the tag. See `language-policy`.
|
|
71
69
|
|
|
72
70
|
|
|
73
71
|
## Metrics
|