@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
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
### Dialogue language resolves on every user message
|
|
6
|
+
|
|
7
|
+
- **Always-on.** `ai-local-overlay`, each stack app-core, and root `AGENTS.md` resolve the user-facing language on every user message, including a question and a message without a slash command. `/task` and the other commands reuse that tag and, when a task exists, record `language:` in `prompt.md`.
|
|
8
|
+
- **Requestable detail.** `language-policy` stays requestable. `next` keeps its four always-on rules. The structural gate requires the `every user message` anchor on the always-on surfaces.
|
|
6
9
|
|
|
7
10
|
## 0.2.43
|
|
8
11
|
|
package/docs/LOCAL-OVERLAY.md
CHANGED
|
@@ -172,9 +172,9 @@ A single markdown file (no header conventions). The `## Language` setting is opt
|
|
|
172
172
|
`conventions.md` also carries the optional **dialogue-language setting** for agents:
|
|
173
173
|
|
|
174
174
|
- **`## Language` section** — a bullet whose value is a **BCP-47** tag (default `en`). Every user-facing interaction the agent sends (clarifying questions, plan/human-gate prompts, `/task-continue`, status answers, summaries, escalations) uses that language. Development, reasoning, and all artifacts (including `prompt.md` and `review.md`) stay **English**.
|
|
175
|
-
- **Resolution order** — the `.ai.local` setting
|
|
176
|
-
- **Conflict** — a `.ai.local` setting wins over a
|
|
177
|
-
- **Persistence** — the resolved tag is recorded
|
|
175
|
+
- **Resolution order** — on every user message, before the reply, including a question and a message without a slash command. An active task's stored tag wins; else the `.ai.local` setting; else the agent infers the language from the prompt; else English. A mixed-language prompt uses the **dominant** language. In a monorepo the **nearest** `.ai.local` wins. Commands reuse that resolution.
|
|
176
|
+
- **Conflict** — a `.ai.local` setting wins over a later prompt in another language; the mismatch is surfaced once, never as a blocking question. Agents never ask you to confirm a language.
|
|
177
|
+
- **Persistence** — when a task exists, the resolved tag is recorded as an additive `language: <BCP-47>` line in `.ai.local/team/tasks/<slug>/prompt.md` (plus a `.memlog.md` `event:`) and reused for the whole task. A message with no task still resolves. Reference rule: `agent-team/language-policy`.
|
|
178
178
|
|
|
179
179
|
**Behavior-change note (existing consumers):** an English-only prompt with no `## Language` setting still resolves to **English**, so default behavior is unchanged. The setting pins a language explicitly; adding it is opt-in and needs no other config. The change is about the agent's **runtime output** language only — preset prose and all artifacts remain English (`docs/PRESET-ENGLISH-STYLE.md`).
|
|
180
180
|
|
|
@@ -99,7 +99,7 @@ Sync marker (after frontmatter in platform files):
|
|
|
99
99
|
|
|
100
100
|
**Prompt-persistence contract (always-on behavior):** every task persists the user's **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md` (write-if-absent) — written by the `/task` **Slug** bootstrap and, for non-`/task` work requests, by `agent-team-intake`. Every **subsequent user-authored** prompt for the same slug (a new message while the slug is active, `/task-continue` arguments, human-gate feedback, a clarification answer) is appended verbatim by the orchestrator only to the **append-only** `.ai.local/team/tasks/<slug>/prompt-log.md` ledger — `seq` = current max + 1, created on the first follow-up (absence is valid), never rewritten or duplicated; machine-generated hook `followup_message` and empty/argument-less invocations are excluded. It rides existing bodies (`agent-team-orchestrator` + `agent-team-intake` rules, `commands/task.md` + `commands/task-continue.md`) and adds **no** always-on rule. Register both paths on the manifest `routing` entry — never in `artifacts[]` bodies (`core/agent-team/agent-artifact-contracts.md` § Prompt artifact / § Prompt log). The obligation is anchored on the **always-on** root entry `REPO_AGENTS.md` → `AGENTS.md` (native always-on for every platform), because the A–D consumers (`commands/task.md`, `agent-team-intake`, `agent-team-orchestrator`) are all `referenced`/lazy and only fire under `/task`. Enforced by `scripts/check-preset-prompt-persistence.sh` (wired into `check-preset-structure.sh`), which now also asserts the `REPO_AGENTS.md` clause (check **E**).
|
|
101
101
|
|
|
102
|
-
**Native-language policy (always-on behavior):** development, reasoning, and every artifact stay **English**; every user-facing interaction (clarifying questions, plan/human-gate prompts, `/task-continue`, status answers, summaries, escalations) is written in the user's **native language**.
|
|
102
|
+
**Native-language policy (always-on behavior):** development, reasoning, and every artifact stay **English**; every user-facing interaction (clarifying questions, plan/human-gate prompts, `/task-continue`, status answers, summaries, escalations) is written in the user's **native language**. Resolution runs on every user message, including a question and a message without a slash command, from the always-on surfaces before any command runs. Order: an active task's `language:` tag, else `.ai.local/conventions.md` `## Language` (nearest `.ai.local` wins), else the prompt language (mixed → dominant), else English. When a task exists, that tag is persisted as an additive `language: <BCP-47>` line in the `prompt.md` header (+ a `.memlog.md` `event:`; never `status.json` / `metrics.json` / an `artifacts[]` body). Commands reuse the tag; they do not own resolution. The detailed rule is a **requestable** EMBED stem (`core/agent-team/language-policy.md`); the resolution clause rides existing always-on bodies (`ai-local-overlay`, the stack `<stack>-app-core`, root `REPO_AGENTS.md` → `AGENTS.md`) and adds **no** new always-on slot. Enforced by `scripts/check-preset-language-policy.sh` (wired into `check-preset-structure.sh`), which requires the `every user message` anchor on those always-on bodies. Runtime output language is **orthogonal** to preset prose language — the prose stays English (`docs/PRESET-ENGLISH-STYLE.md`).
|
|
103
103
|
|
|
104
104
|
Intentional fork / mode change: document in PR (and optionally in validation-report).
|
|
105
105
|
|
|
@@ -391,7 +391,7 @@ Load these when editing files under `packages/ai-rules/presets/**`, `.cursor/**`
|
|
|
391
391
|
| `scripts/check-preset-leakage.sh` / `yarn check:preset-leakage` | **FAIL** on forbidden stems in `hooks/**/*.sh` (recursive), wrong-stack agent filenames, or **positive** (non-negation) agent body mentions; **FAIL** if chain scripts are byte-identical across stacks. Explicit **negation** of forbidden stems in agent bodies is **suppressed** (INFO summary count only — not a merge blocker). Non-negation mentions in `build-verifier` → **WARN only**. |
|
|
392
392
|
| `scripts/check-preset-prompt-persistence.sh` / `yarn check:preset-structure` | **FAIL** if the prompt-persistence contract (`prompt.md` + the append-only `prompt-log.md` ledger, both on the `routing` entry) is missing from any platform × stack command (`task.md` + `task-continue.md`), orchestrator, or intake body, from the **always-on** root `REPO_AGENTS.md` entry (check **E** — reachability without `/task`), or a core `agent-artifact-contracts` anchor (`## Prompt artifact` / `## Prompt log`) is gone; **refuses vacuous PASS** when the iteration set is empty. Wired into `check-preset-structure.sh` next to `goal-contract`; fixture `test-preset-prompt-persistence-fixtures.mjs`. |
|
|
393
393
|
| `scripts/check-preset-reachability.sh` / `yarn check:preset-reachability` | **FAIL** if a non-`preset-*` OpenCode/Mavis rule is reachable by neither a direct reference (entry / agent / command / skill) nor the transitive closure of rule→rule references from the `root-entry` rules. `preset-*` meta rules are exempt as preset-authoring-only. **Refuses vacuous PASS** on an empty iteration set. Wired into `check-preset-structure.sh` next to `prompt-persistence`. |
|
|
394
|
-
| `scripts/check-preset-language-policy.sh` / `yarn check:preset-structure` | **FAIL** if the native-language policy is absent: the core `_shared/core/agent-team/language-policy.md` tokens, the `language-policy` consumer + `<!-- shared-core -->` marker, the Cursor `globs:`/`alwaysApply: false` + Claude `paths:` shape, the `## Language` setting home (with a BCP-47 marker) in `ai-local/conventions.md`, the always-on anchors (`ai-local-overlay` + `<app-core>`
|
|
394
|
+
| `scripts/check-preset-language-policy.sh` / `yarn check:preset-structure` | **FAIL** if the native-language policy is absent: the core `_shared/core/agent-team/language-policy.md` tokens, the `language-policy` consumer + `<!-- shared-core -->` marker, the Cursor `globs:`/`alwaysApply: false` + Claude `paths:` shape, the `## Language` setting home (with a BCP-47 marker) in `ai-local/conventions.md`, the always-on anchors (`ai-local-overlay` + `<app-core>` + `REPO_AGENTS.md` must contain `native language` and `every user message`), or the `language:` persistence token in `commands/task.md`; **refuses vacuous PASS** when the iteration set is empty. Wired into `check-preset-structure.sh` next to `goal-contract` / `prompt-persistence`; fixture `test-preset-language-policy-fixtures.mjs`. |
|
|
395
395
|
| `scripts/check-preset-self-review-contract.sh` / `yarn check:preset-structure` | **FAIL** if the producer-side self-review / context-hygiene contract is absent: the core `_shared/core/quality/self-review-and-context-hygiene.md` tokens (G0 non-vacuous guard), the `<!-- shared-core: quality/self-review-and-context-hygiene.md -->` marker on `task-analyst` / `feature-developer` / `build-verifier` (×10) and on `debugger` / `code-reviewer` where present (skip-if-absent → `mcp-ts`), the `Self-review` + `re-anchor` tokens on every orchestrator rule, `Self-review` in `team/README.md` + `commands/task.md`, and leakage-free core + docs; **refuses vacuous PASS** when the iteration set is empty. Wired into `check-preset-structure.sh` next to `goal-contract`; fixture `test-preset-self-review-contract-fixtures.mjs`. |
|
|
396
396
|
| `scripts/check-anti-hallucination-coverage.mjs` | **FAIL** when the shared contract, a Cursor load-line embed, a writer stack floor, or a generated Rules-to-load stem is missing. Writer roles are `implementer`, `unit-test`, `e2e`, `qa`, and `reviewer` (`code-reviewer` loads `STACK_FLOOR_STEMS` plus the contract). `/task` and the orchestrator must not name a floor stem. Does not scan consumer `app/**` and does not call Context7. Fixture `test-anti-hallucination-coverage.mjs` deletes `anti-hallucination-contract` from `next.reviewer` in memory and expects FAIL mentioning `next` and `reviewer`. Wired into `check-preset-structure.sh` immediately after `check-claude-agent-blocks.mjs`. |
|
|
397
397
|
| `scripts/check-preset-structure.sh` / `yarn check:preset-structure` | Orchestrator: twin-map + token-budget + leakage + shared-core drift + anti-hallucination coverage (**all hard**; drift via `AI_RULES_DRIFT_FAIL=1`). Does **not** run rule-eval. |
|
|
@@ -24,7 +24,7 @@ The same rule covers code comments and agent-produced artifacts (see `quality/co
|
|
|
24
24
|
Two languages are **orthogonal** and must not be conflated:
|
|
25
25
|
|
|
26
26
|
- **Preset prose language** — the text inside `packages/ai-rules/presets/**` is **English** (this guide). Rule bodies, agents, skills, commands, and package docs are never translated.
|
|
27
|
-
- **Runtime output language** — the language an agent uses to *talk to the user* at run time. The `language-policy` contract makes every user-facing interaction (questions, gate prompts, `/task-continue`, status, summaries, escalations) use the user's native language
|
|
27
|
+
- **Runtime output language** — the language an agent uses to *talk to the user* at run time. The `language-policy` contract makes every user-facing interaction (questions, gate prompts, `/task-continue`, status, summaries, escalations) use the user's native language. Resolution runs on every user message from the always-on surfaces (`.ai.local/conventions.md` `## Language`, else the prompt language, else English), including a message that is not a slash command, and is persisted per task in the `prompt.md` header when a task exists.
|
|
28
28
|
|
|
29
29
|
Consequence: a non-English speaker is answered in their language while the code, reasoning, and every artifact (`brief.md`, `review.md`, the `prompt.md` header, and this preset prose) stay **English**. The policy does **not** introduce non-English text into preset files — runtime dialogue never lives in the presets. The i18n audit below still applies: a retained non-English *example* inside a rule needs an `<!-- i18n-keep: … -->` marker.
|
|
30
30
|
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ Every core file is classified in `scripts/_lib/embed-stems.json` as **embed**, *
|
|
|
24
24
|
|
|
25
25
|
Every task persists the user’s **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md` (write-if-absent), and every **subsequent user-authored** prompt is appended verbatim to the **append-only** `.ai.local/team/tasks/<slug>/prompt-log.md` ledger (orchestrator-only, `seq` = max + 1, created on first follow-up; hook `followup_message` excluded). The contract lives in `core/agent-team/` (orchestrator + intake rules and `agent-artifact-contracts.md` § Prompt artifact / § Prompt log); both paths are registered on the `routing` manifest entry — never in `artifacts[]` bodies.
|
|
26
26
|
|
|
27
|
-
Every user-facing interaction runs in the user's **native language
|
|
27
|
+
Every user-facing interaction runs in the user's **native language**. Resolution happens on every user message — a question, a one-liner, or a slash command — from the always-on surfaces, before any command runs. Order: an active task's `language:` tag, else the `.ai.local/conventions.md` `## Language` setting (nearest `.ai.local` wins), else the prompt language (mixed → dominant), else English. When a task exists, that tag is persisted as an additive `language: <BCP-47>` line in the `prompt.md` header (+ a `.memlog.md` `event:`). Development, reasoning, and all artifacts stay **English**. The detailed contract is the requestable EMBED stem `core/agent-team/language-policy.md`; the resolution clause rides the always-on `ai-local-overlay`, `<stack>-app-core`, and root `REPO_AGENTS.md` → `AGENTS.md` surfaces (no new always-on slot). Commands reuse the resolved tag; they do not own resolution.
|
|
28
28
|
|
|
29
29
|
## Folders
|
|
30
30
|
|
|
@@ -126,7 +126,7 @@ Every task persists the **verbatim original user prompt** — whether or not `/t
|
|
|
126
126
|
|
|
127
127
|
**Verbatim semantics:** the fenced `text` block is the source of truth. The header is additive only and must never alter, translate, or paraphrase the user's words (the requester's language is preserved; the header stays English). The persisted prompt is a task-folder artifact subject to the no-local-paths discipline — any redaction is an explicit owner decision, never silent.
|
|
128
128
|
|
|
129
|
-
**Dialogue language (`language: <BCP-47>`):** the header also carries the task's resolved user-facing language (see **language-policy**).
|
|
129
|
+
**Dialogue language (`language: <BCP-47>`):** the header also carries the task's resolved user-facing language (see **language-policy**). The always-on rule resolves it on every user message (`.ai.local` `## Language` → prompt language → English; mixed → dominant; nearest `.ai.local` wins). When a task starts, that tag is recorded once and reused by every later step and `/task-continue`. A later correction is an append-only `.memlog.md` `event:` line — the fenced verbatim block stays frozen. The value never lives in `status.json`, `metrics.json`, or an `artifacts[]` body (see Context index conventions 7 and the hook-only lifecycle contract).
|
|
130
130
|
|
|
131
131
|
## Prompt log
|
|
132
132
|
|
|
@@ -7,6 +7,6 @@ When the user message looks like a **work request** (implement, add, fix, refact
|
|
|
7
7
|
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`.
|
|
8
8
|
4. A work request now runs the planning workflow — **goal frame → requirements → information-sufficiency → decompose** (dependency graph / epics); see **task-framing** and **plan-graph**.
|
|
9
9
|
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).
|
|
10
|
-
6. **
|
|
10
|
+
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**.
|
|
11
11
|
|
|
12
12
|
Exceptions: user explicitly says “no pipeline”, “just do it”, or continues an active slug.
|
|
@@ -215,7 +215,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
215
215
|
8. When all steps complete, suggest `/technical-retro <slug>`.
|
|
216
216
|
9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
|
|
217
217
|
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.
|
|
218
|
-
11. **Answer the user in the resolved dialogue language for the whole task.**
|
|
218
|
+
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**.
|
|
219
219
|
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.
|
|
220
220
|
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.
|
|
221
221
|
|
|
@@ -223,7 +223,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
223
223
|
|
|
224
224
|
- **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.
|
|
225
225
|
- **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.
|
|
226
|
-
- **Answer in the resolved dialogue language.**
|
|
226
|
+
- **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**.
|
|
227
227
|
- 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).
|
|
228
228
|
- If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
|
|
229
229
|
- Prefer repo under `~/Projects` / `WebstormProjects` over `~/Desktop` when using agent team heavily.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# Language policy
|
|
2
2
|
|
|
3
|
-
Behavior contract for **every agent
|
|
4
|
-
preset-authoring meta rule.
|
|
5
|
-
|
|
3
|
+
Behavior contract for **every agent in any consumer repo** — stack-agnostic. Not a
|
|
4
|
+
preset-authoring meta rule. Resolve the dialogue language on every user message from the
|
|
5
|
+
always-on surfaces (`ai-local-overlay`, the stack app-core, root `AGENTS.md`). This file
|
|
6
|
+
is the detailed reference. A slash command does not gate resolution.
|
|
6
7
|
|
|
7
8
|
## Two halves (mandatory)
|
|
8
9
|
|
|
@@ -12,30 +13,37 @@ detailed reference.
|
|
|
12
13
|
code, identifiers, logs, or artifacts.
|
|
13
14
|
2. **Every user-facing interaction is in the user's native language.** Clarifying questions, plan /
|
|
14
15
|
human-gate prompts, `/task-continue` prompts, status answers, plan/progress summaries, and error
|
|
15
|
-
escalations are written in the resolved language. Every such message —
|
|
16
|
+
escalations are written in the resolved language. Every such message — a question, a one-liner, or a
|
|
17
|
+
slash command — no exception.
|
|
16
18
|
|
|
17
|
-
## Resolution (
|
|
19
|
+
## Resolution (every user message)
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
Resolve on every user message, before you answer. Do not wait for `/task`, `/update`, or any other
|
|
22
|
+
command. Those commands reuse the language this step already resolved.
|
|
23
|
+
|
|
24
|
+
1. **Active task tag** — when a task is in progress, the `language:` value already stored in that task's
|
|
25
|
+
`prompt.md`.
|
|
26
|
+
2. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
|
|
20
27
|
**nearest** `.ai.local` wins in a monorepo.
|
|
21
|
-
|
|
28
|
+
3. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
|
|
22
29
|
the request.
|
|
23
|
-
|
|
30
|
+
4. Otherwise **English** (English-only / ambiguous prompt).
|
|
24
31
|
|
|
25
|
-
The `.ai.local` setting **wins over** a
|
|
32
|
+
The `.ai.local` setting **wins over** a later prompt in another language. On a disagreement, follow the
|
|
26
33
|
setting and surface the mismatch **once in one sentence** — never block, and **never ask a
|
|
27
|
-
language-confirmation question**.
|
|
34
|
+
language-confirmation question**. A message with no task still resolves on this turn.
|
|
28
35
|
|
|
29
36
|
## Per-task persistence
|
|
30
37
|
|
|
31
|
-
|
|
32
|
-
`/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
33
|
-
append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
34
|
-
verbatim block is frozen). Never store it in `status.json`,
|
|
38
|
+
When a task artifact is created, record the language already resolved above and reuse it for the whole
|
|
39
|
+
task — every pipeline agent and every `/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
40
|
+
(`language: <BCP-47>`) and an append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
41
|
+
append-only memlog event (the fenced verbatim block is frozen). Never store it in `status.json`,
|
|
42
|
+
`metrics.json`, or an `artifacts[]` body.
|
|
35
43
|
|
|
36
44
|
## See also
|
|
37
45
|
|
|
38
|
-
- `ai-local-overlay` —
|
|
39
|
-
- `agent-team-intake` —
|
|
46
|
+
- `ai-local-overlay` — always-on; resolves the language on every user message.
|
|
47
|
+
- `agent-team-intake` — persists the already-resolved language when a work request starts.
|
|
40
48
|
- `agent-team-orchestrator` — carries the resolved language across steps.
|
|
41
49
|
- `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
|
|
@@ -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
|
|
@@ -28,6 +28,4 @@ Place new files next to analogs. Boundaries/DI — **`architecture-boundaries`**
|
|
|
28
28
|
|
|
29
29
|
## Language
|
|
30
30
|
|
|
31
|
-
Development, reasoning, and artifacts stay **English
|
|
32
|
-
status, summaries, escalations) uses the user's **native language** — resolved from `.ai.local`
|
|
33
|
-
(`## Language`) or the prompt, else English. See `language-policy`.
|
|
31
|
+
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`.
|
|
@@ -14,6 +14,6 @@ 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.
|
|
@@ -226,7 +226,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
226
226
|
8. When all steps complete, suggest `/technical-retro <slug>`.
|
|
227
227
|
9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
|
|
228
228
|
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.
|
|
229
|
-
11. **Answer the user in the resolved dialogue language for the whole task.**
|
|
229
|
+
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**.
|
|
230
230
|
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.
|
|
231
231
|
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.
|
|
232
232
|
|
|
@@ -234,7 +234,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
234
234
|
|
|
235
235
|
- **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.
|
|
236
236
|
- **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.
|
|
237
|
-
- **Answer in the resolved dialogue language.**
|
|
237
|
+
- **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**.
|
|
238
238
|
- 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).
|
|
239
239
|
- If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
|
|
240
240
|
- Prefer repo under `~/Projects` / `WebstormProjects` over `~/Desktop` when using agent team heavily.
|
|
@@ -15,7 +15,7 @@ This rule is mandatory. **You MUST** obey it on every turn, without exception.
|
|
|
15
15
|
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.
|
|
16
16
|
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.
|
|
17
17
|
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.
|
|
18
|
-
7. **Language** —
|
|
18
|
+
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`.
|
|
19
19
|
8. **Re-read** — before answering a question that touches a local rule, re-read that file.
|
|
20
20
|
|
|
21
21
|
If the script is missing, read the root `.ai.local/rules/*.md` and `.ai.local/conventions.md` only.
|
|
@@ -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
|
paths:
|
|
4
4
|
- .ai.local/**/*
|
|
5
5
|
- AGENTS.md
|
|
@@ -10,9 +10,10 @@ paths:
|
|
|
10
10
|
|
|
11
11
|
# Language policy
|
|
12
12
|
|
|
13
|
-
Behavior contract for **every agent
|
|
14
|
-
preset-authoring meta rule.
|
|
15
|
-
|
|
13
|
+
Behavior contract for **every agent in any consumer repo** — stack-agnostic. Not a
|
|
14
|
+
preset-authoring meta rule. Resolve the dialogue language on every user message from the
|
|
15
|
+
always-on surfaces (`ai-local-overlay`, the stack app-core, root `AGENTS.md`). This file
|
|
16
|
+
is the detailed reference. A slash command does not gate resolution.
|
|
16
17
|
|
|
17
18
|
## Two halves (mandatory)
|
|
18
19
|
|
|
@@ -22,30 +23,37 @@ detailed reference.
|
|
|
22
23
|
code, identifiers, logs, or artifacts.
|
|
23
24
|
2. **Every user-facing interaction is in the user's native language.** Clarifying questions, plan /
|
|
24
25
|
human-gate prompts, `/task-continue` prompts, status answers, plan/progress summaries, and error
|
|
25
|
-
escalations are written in the resolved language. Every such message —
|
|
26
|
+
escalations are written in the resolved language. Every such message — a question, a one-liner, or a
|
|
27
|
+
slash command — no exception.
|
|
26
28
|
|
|
27
|
-
## Resolution (
|
|
29
|
+
## Resolution (every user message)
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
Resolve on every user message, before you answer. Do not wait for `/task`, `/update`, or any other
|
|
32
|
+
command. Those commands reuse the language this step already resolved.
|
|
33
|
+
|
|
34
|
+
1. **Active task tag** — when a task is in progress, the `language:` value already stored in that task's
|
|
35
|
+
`prompt.md`.
|
|
36
|
+
2. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
|
|
30
37
|
**nearest** `.ai.local` wins in a monorepo.
|
|
31
|
-
|
|
38
|
+
3. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
|
|
32
39
|
the request.
|
|
33
|
-
|
|
40
|
+
4. Otherwise **English** (English-only / ambiguous prompt).
|
|
34
41
|
|
|
35
|
-
The `.ai.local` setting **wins over** a
|
|
42
|
+
The `.ai.local` setting **wins over** a later prompt in another language. On a disagreement, follow the
|
|
36
43
|
setting and surface the mismatch **once in one sentence** — never block, and **never ask a
|
|
37
|
-
language-confirmation question**.
|
|
44
|
+
language-confirmation question**. A message with no task still resolves on this turn.
|
|
38
45
|
|
|
39
46
|
## Per-task persistence
|
|
40
47
|
|
|
41
|
-
|
|
42
|
-
`/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
43
|
-
append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
44
|
-
verbatim block is frozen). Never store it in `status.json`,
|
|
48
|
+
When a task artifact is created, record the language already resolved above and reuse it for the whole
|
|
49
|
+
task — every pipeline agent and every `/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
50
|
+
(`language: <BCP-47>`) and an append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
51
|
+
append-only memlog event (the fenced verbatim block is frozen). Never store it in `status.json`,
|
|
52
|
+
`metrics.json`, or an `artifacts[]` body.
|
|
45
53
|
|
|
46
54
|
## See also
|
|
47
55
|
|
|
48
|
-
- `ai-local-overlay` —
|
|
49
|
-
- `agent-team-intake` —
|
|
56
|
+
- `ai-local-overlay` — always-on; resolves the language on every user message.
|
|
57
|
+
- `agent-team-intake` — persists the already-resolved language when a work request starts.
|
|
50
58
|
- `agent-team-orchestrator` — carries the resolved language across steps.
|
|
51
59
|
- `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
|
|
@@ -63,9 +63,7 @@ Before any specialist runs, `goal.md` is written and shown with the plan. When t
|
|
|
63
63
|
|
|
64
64
|
## Dialogue language
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
mixed → dominant) and record it in the `prompt.md` header (`language: <BCP-47>`). Reuse it for every
|
|
68
|
-
user-facing message and `/task-continue`. See `language-policy`.
|
|
66
|
+
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`.
|
|
69
67
|
|
|
70
68
|
|
|
71
69
|
## Metrics
|
|
@@ -32,6 +32,4 @@ Boundaries — **`architecture/boundaries.md`**. Tooling — requestable **`tool
|
|
|
32
32
|
|
|
33
33
|
## Language
|
|
34
34
|
|
|
35
|
-
Development, reasoning, and artifacts stay **English
|
|
36
|
-
status, summaries, escalations) uses the user's **native language** — resolved from `.ai.local`
|
|
37
|
-
(`## Language`) or the prompt, else English. See `language-policy`.
|
|
35
|
+
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`.
|
|
@@ -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
|
|
|
@@ -226,7 +226,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
226
226
|
8. When all steps complete, suggest `/technical-retro <slug>`.
|
|
227
227
|
9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
|
|
228
228
|
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.
|
|
229
|
-
11. **Answer the user in the resolved dialogue language for the whole task.**
|
|
229
|
+
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**.
|
|
230
230
|
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.
|
|
231
231
|
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.
|
|
232
232
|
|
|
@@ -234,7 +234,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
234
234
|
|
|
235
235
|
- **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.
|
|
236
236
|
- **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.
|
|
237
|
-
- **Answer in the resolved dialogue language.**
|
|
237
|
+
- **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**.
|
|
238
238
|
- 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).
|
|
239
239
|
- If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
|
|
240
240
|
- Prefer repo under `~/Projects` / `WebstormProjects` over `~/Desktop` when using agent team heavily.
|
|
@@ -15,7 +15,7 @@ This rule is mandatory. **You MUST** obey it on every turn, without exception.
|
|
|
15
15
|
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.
|
|
16
16
|
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.
|
|
17
17
|
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.
|
|
18
|
-
7. **Language** —
|
|
18
|
+
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`.
|
|
19
19
|
8. **Re-read** — before answering a question that touches a local rule, re-read that file.
|
|
20
20
|
|
|
21
21
|
If the script is missing, read the root `.ai.local/rules/*.md` and `.ai.local/conventions.md` only.
|
|
@@ -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
|
paths:
|
|
4
4
|
- .ai.local/**/*
|
|
5
5
|
- AGENTS.md
|
|
@@ -10,9 +10,10 @@ paths:
|
|
|
10
10
|
|
|
11
11
|
# Language policy
|
|
12
12
|
|
|
13
|
-
Behavior contract for **every agent
|
|
14
|
-
preset-authoring meta rule.
|
|
15
|
-
|
|
13
|
+
Behavior contract for **every agent in any consumer repo** — stack-agnostic. Not a
|
|
14
|
+
preset-authoring meta rule. Resolve the dialogue language on every user message from the
|
|
15
|
+
always-on surfaces (`ai-local-overlay`, the stack app-core, root `AGENTS.md`). This file
|
|
16
|
+
is the detailed reference. A slash command does not gate resolution.
|
|
16
17
|
|
|
17
18
|
## Two halves (mandatory)
|
|
18
19
|
|
|
@@ -22,30 +23,37 @@ detailed reference.
|
|
|
22
23
|
code, identifiers, logs, or artifacts.
|
|
23
24
|
2. **Every user-facing interaction is in the user's native language.** Clarifying questions, plan /
|
|
24
25
|
human-gate prompts, `/task-continue` prompts, status answers, plan/progress summaries, and error
|
|
25
|
-
escalations are written in the resolved language. Every such message —
|
|
26
|
+
escalations are written in the resolved language. Every such message — a question, a one-liner, or a
|
|
27
|
+
slash command — no exception.
|
|
26
28
|
|
|
27
|
-
## Resolution (
|
|
29
|
+
## Resolution (every user message)
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
Resolve on every user message, before you answer. Do not wait for `/task`, `/update`, or any other
|
|
32
|
+
command. Those commands reuse the language this step already resolved.
|
|
33
|
+
|
|
34
|
+
1. **Active task tag** — when a task is in progress, the `language:` value already stored in that task's
|
|
35
|
+
`prompt.md`.
|
|
36
|
+
2. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
|
|
30
37
|
**nearest** `.ai.local` wins in a monorepo.
|
|
31
|
-
|
|
38
|
+
3. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
|
|
32
39
|
the request.
|
|
33
|
-
|
|
40
|
+
4. Otherwise **English** (English-only / ambiguous prompt).
|
|
34
41
|
|
|
35
|
-
The `.ai.local` setting **wins over** a
|
|
42
|
+
The `.ai.local` setting **wins over** a later prompt in another language. On a disagreement, follow the
|
|
36
43
|
setting and surface the mismatch **once in one sentence** — never block, and **never ask a
|
|
37
|
-
language-confirmation question**.
|
|
44
|
+
language-confirmation question**. A message with no task still resolves on this turn.
|
|
38
45
|
|
|
39
46
|
## Per-task persistence
|
|
40
47
|
|
|
41
|
-
|
|
42
|
-
`/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
43
|
-
append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
44
|
-
verbatim block is frozen). Never store it in `status.json`,
|
|
48
|
+
When a task artifact is created, record the language already resolved above and reuse it for the whole
|
|
49
|
+
task — every pipeline agent and every `/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
|
|
50
|
+
(`language: <BCP-47>`) and an append-only `.memlog.md` `event:` checkpoint. A later correction is an
|
|
51
|
+
append-only memlog event (the fenced verbatim block is frozen). Never store it in `status.json`,
|
|
52
|
+
`metrics.json`, or an `artifacts[]` body.
|
|
45
53
|
|
|
46
54
|
## See also
|
|
47
55
|
|
|
48
|
-
- `ai-local-overlay` —
|
|
49
|
-
- `agent-team-intake` —
|
|
56
|
+
- `ai-local-overlay` — always-on; resolves the language on every user message.
|
|
57
|
+
- `agent-team-intake` — persists the already-resolved language when a work request starts.
|
|
50
58
|
- `agent-team-orchestrator` — carries the resolved language across steps.
|
|
51
59
|
- `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
|
|
@@ -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
|
|
@@ -21,6 +21,4 @@ API Design Guidelines + the repo’s SwiftLint/SwiftFormat; no `!`/`try!` in pro
|
|
|
21
21
|
|
|
22
22
|
## Language
|
|
23
23
|
|
|
24
|
-
Development, reasoning, and artifacts stay **English
|
|
25
|
-
status, summaries, escalations) uses the user's **native language** — resolved from `.ai.local`
|
|
26
|
-
(`## Language`) or the prompt, else English. See `language-policy`.
|
|
24
|
+
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`.
|