@bonesofspring/ai-rules 0.2.43 → 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 +4 -1
- package/docs/LOCAL-OVERLAY.md +3 -3
- package/docs/PRESET-CONTRIBUTION.md +2 -2
- package/docs/PRESET-ENGLISH-STYLE.md +1 -1
- package/package.json +1 -1
- package/presets/_shared/README.md +1 -1
- 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 +2 -2
- package/presets/_shared/core/agent-team/language-policy.md +24 -16
- package/presets/claude/android-kotlin/REPO_AGENTS.md +1 -3
- package/presets/claude/android-kotlin/commands/task.md +1 -3
- 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 +2 -2
- package/presets/claude/android-kotlin/rules/tooling-and-review/ai-local-overlay.md +1 -1
- 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.md +1 -3
- 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 +2 -2
- package/presets/claude/go/rules/tooling-and-review/ai-local-overlay.md +1 -1
- 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.md +1 -3
- 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 +2 -2
- package/presets/claude/ios-swift/rules/tooling-and-review/ai-local-overlay.md +1 -1
- 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.md +1 -3
- 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 +2 -2
- package/presets/claude/java/rules/tooling-and-review/ai-local-overlay.md +1 -1
- 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.md +1 -3
- 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 +2 -2
- package/presets/claude/mcp-ts/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/next/REPO_AGENTS.md +1 -3
- package/presets/claude/next/commands/task.md +1 -3
- 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 +2 -2
- package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +1 -1
- 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/commands/task.md +1 -3
- 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 +2 -2
- package/presets/claude/nuxt/rules/tooling-and-review/ai-local-overlay.md +1 -1
- 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.md +1 -3
- 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 +2 -2
- package/presets/claude/php-hexagonal/rules/tooling-and-review/ai-local-overlay.md +1 -1
- 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.md +1 -3
- 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 +2 -2
- package/presets/claude/php-laravel/rules/tooling-and-review/ai-local-overlay.md +1 -1
- 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/commands/task.md +1 -3
- 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 +2 -2
- package/presets/claude/svelte/rules/tooling-and-review/ai-local-overlay.md +1 -1
- 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.md +1 -3
- 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/language-policy.mdc +25 -17
- package/presets/cursor/go/REPO_AGENTS.md +1 -3
- package/presets/cursor/go/commands/task.md +1 -3
- 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/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.md +1 -3
- 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/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.md +1 -3
- 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/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.md +1 -3
- 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/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 +1 -3
- package/presets/cursor/next/commands/task.md +1 -3
- package/presets/cursor/next/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +2 -9
- package/presets/cursor/next/rules/ai-local-overlay.mdc +1 -1
- 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/commands/task.md +1 -3
- 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/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.md +1 -3
- 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/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.md +1 -3
- 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/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/commands/task.md +1 -3
- 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/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.md +1 -3
- package/presets/mavis/android-kotlin/rules/agent-team-intake.md +1 -1
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +2 -2
- 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/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.md +1 -3
- package/presets/mavis/go/rules/agent-team-intake.md +1 -1
- package/presets/mavis/go/rules/agent-team-orchestrator.md +2 -2
- package/presets/mavis/go/rules/ai-local-overlay.md +1 -1
- 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.md +1 -3
- package/presets/mavis/ios-swift/rules/agent-team-intake.md +1 -1
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +2 -2
- package/presets/mavis/ios-swift/rules/ai-local-overlay.md +1 -1
- 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.md +1 -3
- package/presets/mavis/java/rules/agent-team-intake.md +1 -1
- package/presets/mavis/java/rules/agent-team-orchestrator.md +2 -2
- package/presets/mavis/java/rules/ai-local-overlay.md +1 -1
- 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.md +1 -3
- package/presets/mavis/mcp-ts/rules/agent-team-intake.md +1 -1
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +2 -2
- package/presets/mavis/mcp-ts/rules/ai-local-overlay.md +1 -1
- 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 +1 -3
- package/presets/mavis/next/adapter-map.json +1 -1
- package/presets/mavis/next/commands/task.md +1 -3
- package/presets/mavis/next/rules/agent-team-intake.md +1 -1
- package/presets/mavis/next/rules/agent-team-orchestrator.md +2 -2
- package/presets/mavis/next/rules/ai-local-overlay.md +1 -1
- 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.md +1 -3
- package/presets/mavis/nuxt/rules/agent-team-intake.md +1 -1
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +2 -2
- package/presets/mavis/nuxt/rules/ai-local-overlay.md +1 -1
- 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.md +1 -3
- package/presets/mavis/php-hexagonal/rules/agent-team-intake.md +1 -1
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +2 -2
- package/presets/mavis/php-hexagonal/rules/ai-local-overlay.md +1 -1
- 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.md +1 -3
- package/presets/mavis/php-laravel/rules/agent-team-intake.md +1 -1
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +2 -2
- package/presets/mavis/php-laravel/rules/ai-local-overlay.md +1 -1
- 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.md +1 -3
- package/presets/mavis/svelte/rules/agent-team-intake.md +1 -1
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +2 -2
- package/presets/mavis/svelte/rules/ai-local-overlay.md +1 -1
- 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.md +1 -3
- package/presets/opencode/android-kotlin/rules/agent-team-intake.md +1 -1
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +2 -2
- 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/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.md +1 -3
- package/presets/opencode/go/rules/agent-team-intake.md +1 -1
- package/presets/opencode/go/rules/agent-team-orchestrator.md +2 -2
- package/presets/opencode/go/rules/ai-local-overlay.md +1 -1
- 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.md +1 -3
- package/presets/opencode/ios-swift/rules/agent-team-intake.md +1 -1
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +2 -2
- package/presets/opencode/ios-swift/rules/ai-local-overlay.md +1 -1
- 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.md +1 -3
- package/presets/opencode/java/rules/agent-team-intake.md +1 -1
- package/presets/opencode/java/rules/agent-team-orchestrator.md +2 -2
- package/presets/opencode/java/rules/ai-local-overlay.md +1 -1
- 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.md +1 -3
- package/presets/opencode/mcp-ts/rules/agent-team-intake.md +1 -1
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +2 -2
- package/presets/opencode/mcp-ts/rules/ai-local-overlay.md +1 -1
- 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 +1 -3
- package/presets/opencode/next/adapter-map.json +1 -1
- package/presets/opencode/next/commands/task.md +1 -3
- package/presets/opencode/next/rules/agent-team-intake.md +1 -1
- package/presets/opencode/next/rules/agent-team-orchestrator.md +2 -2
- package/presets/opencode/next/rules/ai-local-overlay.md +1 -1
- 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.md +1 -3
- package/presets/opencode/nuxt/rules/agent-team-intake.md +1 -1
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +2 -2
- package/presets/opencode/nuxt/rules/ai-local-overlay.md +1 -1
- 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.md +1 -3
- package/presets/opencode/php-hexagonal/rules/agent-team-intake.md +1 -1
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +2 -2
- package/presets/opencode/php-hexagonal/rules/ai-local-overlay.md +1 -1
- 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.md +1 -3
- package/presets/opencode/php-laravel/rules/agent-team-intake.md +1 -1
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +2 -2
- package/presets/opencode/php-laravel/rules/ai-local-overlay.md +1 -1
- 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.md +1 -3
- package/presets/opencode/svelte/rules/agent-team-intake.md +1 -1
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +2 -2
- package/presets/opencode/svelte/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/svelte/rules/language-policy.md +24 -16
- package/presets/opencode/svelte/rules/svelte-app-core.md +1 -3
|
@@ -10,7 +10,7 @@ This rule is mandatory. **You MUST** obey it on every turn, without exception.
|
|
|
10
10
|
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.
|
|
11
11
|
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.
|
|
12
12
|
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.
|
|
13
|
-
7. **Language** —
|
|
13
|
+
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`.
|
|
14
14
|
8. **Re-read** — before answering a question that touches a local rule, re-read that file.
|
|
15
15
|
|
|
16
16
|
If the script is missing, read the root `.ai.local/rules/*.md` and `.ai.local/conventions.md` only.
|
|
@@ -29,6 +29,4 @@ Boundaries — **`architecture-boundaries.md`**. Tooling — requestable **`java
|
|
|
29
29
|
|
|
30
30
|
## Language
|
|
31
31
|
|
|
32
|
-
Development, reasoning, and artifacts stay **English
|
|
33
|
-
status, summaries, escalations) uses the user's **native language** — resolved from `.ai.local`
|
|
34
|
-
(`## Language`) or the prompt, else English. See `language-policy`.
|
|
32
|
+
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`.
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
# Language policy
|
|
4
4
|
|
|
5
|
-
Behavior contract for **every agent
|
|
6
|
-
preset-authoring meta rule.
|
|
7
|
-
|
|
5
|
+
Behavior contract for **every agent in any consumer repo** — stack-agnostic. Not a
|
|
6
|
+
preset-authoring meta rule. Resolve the dialogue language on every user message from the
|
|
7
|
+
always-on surfaces (`ai-local-overlay`, the stack app-core, root `AGENTS.md`). This file
|
|
8
|
+
is the detailed reference. A slash command does not gate resolution.
|
|
8
9
|
|
|
9
10
|
## Two halves (mandatory)
|
|
10
11
|
|
|
@@ -14,30 +15,37 @@ detailed reference.
|
|
|
14
15
|
code, identifiers, logs, or artifacts.
|
|
15
16
|
2. **Every user-facing interaction is in the user's native language.** Clarifying questions, plan /
|
|
16
17
|
human-gate prompts, `/task-continue` prompts, status answers, plan/progress summaries, and error
|
|
17
|
-
escalations are written in the resolved language. Every such message —
|
|
18
|
+
escalations are written in the resolved language. Every such message — a question, a one-liner, or a
|
|
19
|
+
slash command — no exception.
|
|
18
20
|
|
|
19
|
-
## Resolution (
|
|
21
|
+
## Resolution (every user message)
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
Resolve on every user message, before you answer. Do not wait for `/task`, `/update`, or any other
|
|
24
|
+
command. Those commands reuse the language this step already resolved.
|
|
25
|
+
|
|
26
|
+
1. **Active task tag** — when a task is in progress, the `language:` value already stored in that task's
|
|
27
|
+
`prompt.md`.
|
|
28
|
+
2. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
|
|
22
29
|
**nearest** `.ai.local` wins in a monorepo.
|
|
23
|
-
|
|
30
|
+
3. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
|
|
24
31
|
the request.
|
|
25
|
-
|
|
32
|
+
4. Otherwise **English** (English-only / ambiguous prompt).
|
|
26
33
|
|
|
27
|
-
The `.ai.local` setting **wins over** a
|
|
34
|
+
The `.ai.local` setting **wins over** a later prompt in another language. On a disagreement, follow the
|
|
28
35
|
setting and surface the mismatch **once in one sentence** — never block, and **never ask a
|
|
29
|
-
language-confirmation question**.
|
|
36
|
+
language-confirmation question**. A message with no task still resolves on this turn.
|
|
30
37
|
|
|
31
38
|
## Per-task persistence
|
|
32
39
|
|
|
33
|
-
|
|
34
|
-
`/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
35
|
-
append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
36
|
-
verbatim block is frozen). Never store it in `status.json`,
|
|
40
|
+
When a task artifact is created, record the language already resolved above and reuse it for the whole
|
|
41
|
+
task — every pipeline agent and every `/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
42
|
+
(`language: <BCP-47>`) and an append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
43
|
+
append-only memlog event (the fenced verbatim block is frozen). Never store it in `status.json`,
|
|
44
|
+
`metrics.json`, or an `artifacts[]` body.
|
|
37
45
|
|
|
38
46
|
## See also
|
|
39
47
|
|
|
40
|
-
- `ai-local-overlay` —
|
|
41
|
-
- `agent-team-intake` —
|
|
48
|
+
- `ai-local-overlay` — always-on; resolves the language on every user message.
|
|
49
|
+
- `agent-team-intake` — persists the already-resolved language when a work request starts.
|
|
42
50
|
- `agent-team-orchestrator` — carries the resolved language across steps.
|
|
43
51
|
- `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
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "opencode",
|
|
4
4
|
"stack": "mcp-ts",
|
|
5
5
|
"semanticSource": "cursor/mcp-ts",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "fbbacb2114f1b92e9bf7059afc3473b5a914c31a721ca242179b22d278fed71a",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -66,9 +66,7 @@ Before any specialist runs, `goal.md` is written and shown with the plan. When t
|
|
|
66
66
|
|
|
67
67
|
## Dialogue language
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
mixed → dominant) and record it in the `prompt.md` header (`language: <BCP-47>`). Reuse it for every
|
|
71
|
-
user-facing message and `/task-continue`. See `language-policy`.
|
|
69
|
+
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`.
|
|
72
70
|
|
|
73
71
|
|
|
74
72
|
## Metrics
|
|
@@ -9,7 +9,7 @@ When the user message looks like a **work request** (implement, add, fix, refact
|
|
|
9
9
|
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`.
|
|
10
10
|
4. A work request now runs the planning workflow — **goal frame → requirements → information-sufficiency → decompose** (dependency graph / epics); see **task-framing** and **plan-graph**.
|
|
11
11
|
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).
|
|
12
|
-
6. **
|
|
12
|
+
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**.
|
|
13
13
|
|
|
14
14
|
Exceptions: user explicitly says “no pipeline”, “just do it”, or continues an active slug.
|
|
15
15
|
|
|
@@ -221,7 +221,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
221
221
|
8. When all steps complete, suggest `/technical-retro <slug>`.
|
|
222
222
|
9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
|
|
223
223
|
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). It is 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.
|
|
224
|
-
11. **Answer the user in the resolved dialogue language for the whole task.**
|
|
224
|
+
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**.
|
|
225
225
|
12. **Invoke the ready set, and never advance before reconciliation.** In graph mode the hook computes the ready queue; invoke exactly the handoff's agent list (a wave in one assistant turn, multiple Task calls) and do not start any next step from your own reasoning until the hook records the join and emits the next handoff. The wave is the join unit; `status.joinedSlots` is the satisfaction ledger. The role pipeline and the engineering graph are two linked objects: `pipeline.json` `steps[].dependsOn` still decides which agent runs; the decomposition ready set only chooses rows inside the active step. Reviewer and QA steps stay on the pipeline.
|
|
226
226
|
13. **Only a proven conflict-free set is `parallel: true`.** Disjoint declared `writeScopes`, distinct agents, distinct `artifactOutputIds`, no shared lifecycle file; `mockup-reviewer` is never parallel (its FAIL gate is serial). See **plan-graph** § Conflict model. Each decomposition task lists the repo paths it may create or modify. That list is a subset of the implementing step's `writeScopes[]` when the step declares `writeScopes`. Tasks with no `dependsOn` path between them keep those lists disjoint; a shared path stays sequential. `docs/specs/**` or `openspec/**` paths and `app/**` paths stay in different lists. `steps[].writeScopes[]` stays the role-level authority. Reviewer steps stay team-artifact only.
|
|
227
227
|
|
|
@@ -229,7 +229,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
229
229
|
|
|
230
230
|
- **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. It is not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact.
|
|
231
231
|
- **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.
|
|
232
|
-
- **Answer in the resolved dialogue language.**
|
|
232
|
+
- **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**.
|
|
233
233
|
- 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).
|
|
234
234
|
- If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
|
|
235
235
|
- Prefer repo under `~/Projects` / `WebstormProjects` over `~/Desktop` when using agent team heavily.
|
|
@@ -10,7 +10,7 @@ This rule is mandatory. **You MUST** obey it on every turn, without exception.
|
|
|
10
10
|
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.
|
|
11
11
|
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.
|
|
12
12
|
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.
|
|
13
|
-
7. **Language** —
|
|
13
|
+
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`.
|
|
14
14
|
8. **Re-read** — before answering a question that touches a local rule, re-read that file.
|
|
15
15
|
|
|
16
16
|
If the script is missing, read the root `.ai.local/rules/*.md` and `.ai.local/conventions.md` only.
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
# Language policy
|
|
4
4
|
|
|
5
|
-
Behavior contract for **every agent
|
|
6
|
-
preset-authoring meta rule.
|
|
7
|
-
|
|
5
|
+
Behavior contract for **every agent in any consumer repo** — stack-agnostic. Not a
|
|
6
|
+
preset-authoring meta rule. Resolve the dialogue language on every user message from the
|
|
7
|
+
always-on surfaces (`ai-local-overlay`, the stack app-core, root `AGENTS.md`). This file
|
|
8
|
+
is the detailed reference. A slash command does not gate resolution.
|
|
8
9
|
|
|
9
10
|
## Two halves (mandatory)
|
|
10
11
|
|
|
@@ -14,30 +15,37 @@ detailed reference.
|
|
|
14
15
|
code, identifiers, logs, or artifacts.
|
|
15
16
|
2. **Every user-facing interaction is in the user's native language.** Clarifying questions, plan /
|
|
16
17
|
human-gate prompts, `/task-continue` prompts, status answers, plan/progress summaries, and error
|
|
17
|
-
escalations are written in the resolved language. Every such message —
|
|
18
|
+
escalations are written in the resolved language. Every such message — a question, a one-liner, or a
|
|
19
|
+
slash command — no exception.
|
|
18
20
|
|
|
19
|
-
## Resolution (
|
|
21
|
+
## Resolution (every user message)
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
Resolve on every user message, before you answer. Do not wait for `/task`, `/update`, or any other
|
|
24
|
+
command. Those commands reuse the language this step already resolved.
|
|
25
|
+
|
|
26
|
+
1. **Active task tag** — when a task is in progress, the `language:` value already stored in that task's
|
|
27
|
+
`prompt.md`.
|
|
28
|
+
2. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
|
|
22
29
|
**nearest** `.ai.local` wins in a monorepo.
|
|
23
|
-
|
|
30
|
+
3. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
|
|
24
31
|
the request.
|
|
25
|
-
|
|
32
|
+
4. Otherwise **English** (English-only / ambiguous prompt).
|
|
26
33
|
|
|
27
|
-
The `.ai.local` setting **wins over** a
|
|
34
|
+
The `.ai.local` setting **wins over** a later prompt in another language. On a disagreement, follow the
|
|
28
35
|
setting and surface the mismatch **once in one sentence** — never block, and **never ask a
|
|
29
|
-
language-confirmation question**.
|
|
36
|
+
language-confirmation question**. A message with no task still resolves on this turn.
|
|
30
37
|
|
|
31
38
|
## Per-task persistence
|
|
32
39
|
|
|
33
|
-
|
|
34
|
-
`/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
35
|
-
append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
36
|
-
verbatim block is frozen). Never store it in `status.json`,
|
|
40
|
+
When a task artifact is created, record the language already resolved above and reuse it for the whole
|
|
41
|
+
task — every pipeline agent and every `/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
42
|
+
(`language: <BCP-47>`) and an append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
43
|
+
append-only memlog event (the fenced verbatim block is frozen). Never store it in `status.json`,
|
|
44
|
+
`metrics.json`, or an `artifacts[]` body.
|
|
37
45
|
|
|
38
46
|
## See also
|
|
39
47
|
|
|
40
|
-
- `ai-local-overlay` —
|
|
41
|
-
- `agent-team-intake` —
|
|
48
|
+
- `ai-local-overlay` — always-on; resolves the language on every user message.
|
|
49
|
+
- `agent-team-intake` — persists the already-resolved language when a work request starts.
|
|
42
50
|
- `agent-team-orchestrator` — carries the resolved language across steps.
|
|
43
51
|
- `agent-artifact-contracts` — the `prompt.md` header contract.
|
|
@@ -24,6 +24,4 @@ Boundaries — **`mcp-server-boundaries`**. Tooling — requestable **`mcp-ts-to
|
|
|
24
24
|
|
|
25
25
|
## Language
|
|
26
26
|
|
|
27
|
-
Development, reasoning, and artifacts stay **English
|
|
28
|
-
status, summaries, escalations) uses the user's **native language** — resolved from `.ai.local`
|
|
29
|
-
(`## Language`) or the prompt, else English. See `language-policy`.
|
|
27
|
+
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`.
|
|
@@ -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
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "opencode",
|
|
4
4
|
"stack": "next",
|
|
5
5
|
"semanticSource": "cursor/next",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "1dcd19ca3118238d10ba684322b90c0072ac7645cddb0a275699a0807c7c5b95",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -71,9 +71,7 @@ Before any specialist runs, `goal.md` is written and shown with the plan. When t
|
|
|
71
71
|
|
|
72
72
|
## Dialogue language
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
mixed → dominant) and record it in the `prompt.md` header (`language: <BCP-47>`). Reuse it for every
|
|
76
|
-
user-facing message and `/task-continue`. See `language-policy`.
|
|
74
|
+
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`.
|
|
77
75
|
|
|
78
76
|
|
|
79
77
|
## Metrics
|
|
@@ -9,6 +9,6 @@ When the user message looks like a **work request** (implement, add, fix, refact
|
|
|
9
9
|
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`.
|
|
10
10
|
4. A work request now runs the planning workflow — **goal frame → requirements → information-sufficiency → decompose** (dependency graph / epics); see **task-framing** and **plan-graph**.
|
|
11
11
|
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).
|
|
12
|
-
6. **
|
|
12
|
+
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**.
|
|
13
13
|
|
|
14
14
|
Exceptions: user explicitly says “no pipeline”, “just do it”, or continues an active slug.
|
|
@@ -221,7 +221,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
221
221
|
8. When all steps complete, suggest `/technical-retro <slug>`.
|
|
222
222
|
9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
|
|
223
223
|
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). It is 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.
|
|
224
|
-
11. **Answer the user in the resolved dialogue language for the whole task.**
|
|
224
|
+
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**.
|
|
225
225
|
12. **Invoke the ready set, and never advance before reconciliation.** In graph mode the hook computes the ready queue; invoke exactly the handoff's agent list (a wave in one assistant turn, multiple Task calls) and do not start any next step from your own reasoning until the hook records the join and emits the next handoff. The wave is the join unit; `status.joinedSlots` is the satisfaction ledger. The role pipeline and the engineering graph are two linked objects: `pipeline.json` `steps[].dependsOn` still decides which agent runs; the decomposition ready set only chooses rows inside the active step. Reviewer and QA steps stay on the pipeline.
|
|
226
226
|
13. **Only a proven conflict-free set is `parallel: true`.** Disjoint declared `writeScopes`, distinct agents, distinct `artifactOutputIds`, no shared lifecycle file; `mockup-reviewer` is never parallel (its FAIL gate is serial). See **plan-graph** § Conflict model. Each decomposition task lists the repo paths it may create or modify. That list is a subset of the implementing step's `writeScopes[]` when the step declares `writeScopes`. Tasks with no `dependsOn` path between them keep those lists disjoint; a shared path stays sequential. `docs/specs/**` or `openspec/**` paths and `app/**` paths stay in different lists. `steps[].writeScopes[]` stays the role-level authority. Reviewer steps stay team-artifact only.
|
|
227
227
|
|
|
@@ -229,7 +229,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
229
229
|
|
|
230
230
|
- **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. It is not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact.
|
|
231
231
|
- **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.
|
|
232
|
-
- **Answer in the resolved dialogue language.**
|
|
232
|
+
- **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**.
|
|
233
233
|
- 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).
|
|
234
234
|
- If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
|
|
235
235
|
- Prefer repo under `~/Projects` / `WebstormProjects` over `~/Desktop` when using agent team heavily.
|
|
@@ -10,7 +10,7 @@ This rule is mandatory. **You MUST** obey it on every turn, without exception.
|
|
|
10
10
|
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/`. Pending drafts and `rules-library/` files stay inactive until a human moves a file into `.ai.local/rules/`. Do not read the whole library up front.
|
|
11
11
|
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.
|
|
12
12
|
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.
|
|
13
|
-
7. **Language** —
|
|
13
|
+
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`.
|
|
14
14
|
8. **Re-read** — before answering a question that touches a local rule, re-read that file.
|
|
15
15
|
|
|
16
16
|
If the script is missing, read the root `.ai.local/rules/*.md` and `.ai.local/conventions.md` only.
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
# Language policy
|
|
4
4
|
|
|
5
|
-
Behavior contract for **every agent
|
|
6
|
-
preset-authoring meta rule.
|
|
7
|
-
|
|
5
|
+
Behavior contract for **every agent in any consumer repo** — stack-agnostic. Not a
|
|
6
|
+
preset-authoring meta rule. Resolve the dialogue language on every user message from the
|
|
7
|
+
always-on surfaces (`ai-local-overlay`, the stack app-core, root `AGENTS.md`). This file
|
|
8
|
+
is the detailed reference. A slash command does not gate resolution.
|
|
8
9
|
|
|
9
10
|
## Two halves (mandatory)
|
|
10
11
|
|
|
@@ -14,30 +15,37 @@ detailed reference.
|
|
|
14
15
|
code, identifiers, logs, or artifacts.
|
|
15
16
|
2. **Every user-facing interaction is in the user's native language.** Clarifying questions, plan /
|
|
16
17
|
human-gate prompts, `/task-continue` prompts, status answers, plan/progress summaries, and error
|
|
17
|
-
escalations are written in the resolved language. Every such message —
|
|
18
|
+
escalations are written in the resolved language. Every such message — a question, a one-liner, or a
|
|
19
|
+
slash command — no exception.
|
|
18
20
|
|
|
19
|
-
## Resolution (
|
|
21
|
+
## Resolution (every user message)
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
Resolve on every user message, before you answer. Do not wait for `/task`, `/update`, or any other
|
|
24
|
+
command. Those commands reuse the language this step already resolved.
|
|
25
|
+
|
|
26
|
+
1. **Active task tag** — when a task is in progress, the `language:` value already stored in that task's
|
|
27
|
+
`prompt.md`.
|
|
28
|
+
2. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
|
|
22
29
|
**nearest** `.ai.local` wins in a monorepo.
|
|
23
|
-
|
|
30
|
+
3. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
|
|
24
31
|
the request.
|
|
25
|
-
|
|
32
|
+
4. Otherwise **English** (English-only / ambiguous prompt).
|
|
26
33
|
|
|
27
|
-
The `.ai.local` setting **wins over** a
|
|
34
|
+
The `.ai.local` setting **wins over** a later prompt in another language. On a disagreement, follow the
|
|
28
35
|
setting and surface the mismatch **once in one sentence** — never block, and **never ask a
|
|
29
|
-
language-confirmation question**.
|
|
36
|
+
language-confirmation question**. A message with no task still resolves on this turn.
|
|
30
37
|
|
|
31
38
|
## Per-task persistence
|
|
32
39
|
|
|
33
|
-
|
|
34
|
-
`/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
35
|
-
append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
36
|
-
verbatim block is frozen). Never store it in `status.json`,
|
|
40
|
+
When a task artifact is created, record the language already resolved above and reuse it for the whole
|
|
41
|
+
task — every pipeline agent and every `/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
42
|
+
(`language: <BCP-47>`) and an append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
43
|
+
append-only memlog event (the fenced verbatim block is frozen). Never store it in `status.json`,
|
|
44
|
+
`metrics.json`, or an `artifacts[]` body.
|
|
37
45
|
|
|
38
46
|
## See also
|
|
39
47
|
|
|
40
|
-
- `ai-local-overlay` —
|
|
41
|
-
- `agent-team-intake` —
|
|
48
|
+
- `ai-local-overlay` — always-on; resolves the language on every user message.
|
|
49
|
+
- `agent-team-intake` — persists the already-resolved language when a work request starts.
|
|
42
50
|
- `agent-team-orchestrator` — carries the resolved language across steps.
|
|
43
51
|
- `agent-artifact-contracts` — the `prompt.md` header contract.
|
|
@@ -34,6 +34,4 @@ Layer boundaries, ports/adapters, UI→API — **`architecture-boundaries.md`**.
|
|
|
34
34
|
|
|
35
35
|
## Language
|
|
36
36
|
|
|
37
|
-
Development, reasoning, and artifacts stay **English
|
|
38
|
-
status, summaries, escalations) uses the user's **native language** — resolved from `.ai.local`
|
|
39
|
-
(`## Language`) or the prompt, else English. See `language-policy`.
|
|
37
|
+
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`.
|
|
@@ -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
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "opencode",
|
|
4
4
|
"stack": "nuxt",
|
|
5
5
|
"semanticSource": "cursor/nuxt",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "d58c27d76e6ffca83e7ed44f8be9d0cfbcdb8cb1980b50c9c8787825039beff4",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -68,9 +68,7 @@ Before any specialist runs, `goal.md` is written and shown with the plan. When t
|
|
|
68
68
|
|
|
69
69
|
## Dialogue language
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
mixed → dominant) and record it in the `prompt.md` header (`language: <BCP-47>`). Reuse it for every
|
|
73
|
-
user-facing message and `/task-continue`. See `language-policy`.
|
|
71
|
+
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`.
|
|
74
72
|
|
|
75
73
|
|
|
76
74
|
## Metrics
|
|
@@ -9,6 +9,6 @@ When the user message looks like a **work request** (implement, add, fix, refact
|
|
|
9
9
|
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`.
|
|
10
10
|
4. A work request now runs the planning workflow — **goal frame → requirements → information-sufficiency → decompose** (dependency graph / epics); see **task-framing** and **plan-graph**.
|
|
11
11
|
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).
|
|
12
|
-
6. **
|
|
12
|
+
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**.
|
|
13
13
|
|
|
14
14
|
Exceptions: user explicitly says “no pipeline”, “just do it”, or continues an active slug.
|
|
@@ -221,7 +221,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
221
221
|
8. When all steps complete, suggest `/technical-retro <slug>`.
|
|
222
222
|
9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
|
|
223
223
|
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). It is 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.
|
|
224
|
-
11. **Answer the user in the resolved dialogue language for the whole task.**
|
|
224
|
+
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**.
|
|
225
225
|
12. **Invoke the ready set, and never advance before reconciliation.** In graph mode the hook computes the ready queue; invoke exactly the handoff's agent list (a wave in one assistant turn, multiple Task calls) and do not start any next step from your own reasoning until the hook records the join and emits the next handoff. The wave is the join unit; `status.joinedSlots` is the satisfaction ledger. The role pipeline and the engineering graph are two linked objects: `pipeline.json` `steps[].dependsOn` still decides which agent runs; the decomposition ready set only chooses rows inside the active step. Reviewer and QA steps stay on the pipeline.
|
|
226
226
|
13. **Only a proven conflict-free set is `parallel: true`.** Disjoint declared `writeScopes`, distinct agents, distinct `artifactOutputIds`, no shared lifecycle file; `mockup-reviewer` is never parallel (its FAIL gate is serial). See **plan-graph** § Conflict model. Each decomposition task lists the repo paths it may create or modify. That list is a subset of the implementing step's `writeScopes[]` when the step declares `writeScopes`. Tasks with no `dependsOn` path between them keep those lists disjoint; a shared path stays sequential. `docs/specs/**` or `openspec/**` paths and `app/**` paths stay in different lists. `steps[].writeScopes[]` stays the role-level authority. Reviewer steps stay team-artifact only.
|
|
227
227
|
|
|
@@ -229,7 +229,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
229
229
|
|
|
230
230
|
- **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. It is not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact.
|
|
231
231
|
- **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.
|
|
232
|
-
- **Answer in the resolved dialogue language.**
|
|
232
|
+
- **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**.
|
|
233
233
|
- 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).
|
|
234
234
|
- If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
|
|
235
235
|
- Prefer repo under `~/Projects` / `WebstormProjects` over `~/Desktop` when using agent team heavily.
|
|
@@ -10,7 +10,7 @@ This rule is mandatory. **You MUST** obey it on every turn, without exception.
|
|
|
10
10
|
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.
|
|
11
11
|
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.
|
|
12
12
|
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.
|
|
13
|
-
7. **Language** —
|
|
13
|
+
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`.
|
|
14
14
|
8. **Re-read** — before answering a question that touches a local rule, re-read that file.
|
|
15
15
|
|
|
16
16
|
If the script is missing, read the root `.ai.local/rules/*.md` and `.ai.local/conventions.md` only.
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
# Language policy
|
|
4
4
|
|
|
5
|
-
Behavior contract for **every agent
|
|
6
|
-
preset-authoring meta rule.
|
|
7
|
-
|
|
5
|
+
Behavior contract for **every agent in any consumer repo** — stack-agnostic. Not a
|
|
6
|
+
preset-authoring meta rule. Resolve the dialogue language on every user message from the
|
|
7
|
+
always-on surfaces (`ai-local-overlay`, the stack app-core, root `AGENTS.md`). This file
|
|
8
|
+
is the detailed reference. A slash command does not gate resolution.
|
|
8
9
|
|
|
9
10
|
## Two halves (mandatory)
|
|
10
11
|
|
|
@@ -14,30 +15,37 @@ detailed reference.
|
|
|
14
15
|
code, identifiers, logs, or artifacts.
|
|
15
16
|
2. **Every user-facing interaction is in the user's native language.** Clarifying questions, plan /
|
|
16
17
|
human-gate prompts, `/task-continue` prompts, status answers, plan/progress summaries, and error
|
|
17
|
-
escalations are written in the resolved language. Every such message —
|
|
18
|
+
escalations are written in the resolved language. Every such message — a question, a one-liner, or a
|
|
19
|
+
slash command — no exception.
|
|
18
20
|
|
|
19
|
-
## Resolution (
|
|
21
|
+
## Resolution (every user message)
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
Resolve on every user message, before you answer. Do not wait for `/task`, `/update`, or any other
|
|
24
|
+
command. Those commands reuse the language this step already resolved.
|
|
25
|
+
|
|
26
|
+
1. **Active task tag** — when a task is in progress, the `language:` value already stored in that task's
|
|
27
|
+
`prompt.md`.
|
|
28
|
+
2. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
|
|
22
29
|
**nearest** `.ai.local` wins in a monorepo.
|
|
23
|
-
|
|
30
|
+
3. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
|
|
24
31
|
the request.
|
|
25
|
-
|
|
32
|
+
4. Otherwise **English** (English-only / ambiguous prompt).
|
|
26
33
|
|
|
27
|
-
The `.ai.local` setting **wins over** a
|
|
34
|
+
The `.ai.local` setting **wins over** a later prompt in another language. On a disagreement, follow the
|
|
28
35
|
setting and surface the mismatch **once in one sentence** — never block, and **never ask a
|
|
29
|
-
language-confirmation question**.
|
|
36
|
+
language-confirmation question**. A message with no task still resolves on this turn.
|
|
30
37
|
|
|
31
38
|
## Per-task persistence
|
|
32
39
|
|
|
33
|
-
|
|
34
|
-
`/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
35
|
-
append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
36
|
-
verbatim block is frozen). Never store it in `status.json`,
|
|
40
|
+
When a task artifact is created, record the language already resolved above and reuse it for the whole
|
|
41
|
+
task — every pipeline agent and every `/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
42
|
+
(`language: <BCP-47>`) and an append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
43
|
+
append-only memlog event (the fenced verbatim block is frozen). Never store it in `status.json`,
|
|
44
|
+
`metrics.json`, or an `artifacts[]` body.
|
|
37
45
|
|
|
38
46
|
## See also
|
|
39
47
|
|
|
40
|
-
- `ai-local-overlay` —
|
|
41
|
-
- `agent-team-intake` —
|
|
48
|
+
- `ai-local-overlay` — always-on; resolves the language on every user message.
|
|
49
|
+
- `agent-team-intake` — persists the already-resolved language when a work request starts.
|
|
42
50
|
- `agent-team-orchestrator` — carries the resolved language across steps.
|
|
43
51
|
- `agent-artifact-contracts` — the `prompt.md` header contract.
|
|
@@ -41,6 +41,4 @@ Boundaries — **`architecture-boundaries`**. Imports `~/types` / `@/types`, `~/
|
|
|
41
41
|
|
|
42
42
|
## Language
|
|
43
43
|
|
|
44
|
-
Development, reasoning, and artifacts stay **English
|
|
45
|
-
status, summaries, escalations) uses the user's **native language** — resolved from `.ai.local`
|
|
46
|
-
(`## Language`) or the prompt, else English. See `language-policy`.
|
|
44
|
+
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`.
|