@bonesofspring/ai-rules 0.2.43 → 0.2.45
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 +40 -2
- package/bin/lib/engine-scripts.js +6 -1
- package/docs/LOCAL-OVERLAY.md +3 -3
- package/docs/MAVIS.md +1 -1
- package/docs/OPENCODE.md +1 -1
- 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/ai-local/scripts/efficacy-oracle.mjs +10 -2
- package/presets/_shared/ai-local/scripts/manifest.mjs +341 -0
- package/presets/_shared/core/agent-team/agent-artifact-contracts.md +23 -1
- package/presets/_shared/core/agent-team/agent-team-intake.md +1 -1
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +13 -4
- package/presets/_shared/core/agent-team/language-policy.md +24 -16
- package/presets/_shared/core/review/code-review-mr.md +9 -0
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +2 -2
- package/presets/claude/android-kotlin/REPO_AGENTS.md +1 -3
- package/presets/claude/android-kotlin/agents/build-verifier.md +1 -1
- package/presets/claude/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/claude/android-kotlin/agents/debugger.md +1 -1
- package/presets/claude/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/claude/android-kotlin/agents/qa-tester.md +1 -1
- package/presets/claude/android-kotlin/commands/task.md +1 -3
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +2 -2
- 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 +13 -4
- package/presets/claude/android-kotlin/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +9 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/android-kotlin/team/README.md +17 -0
- package/presets/claude/go/REPO_AGENTS.md +1 -3
- package/presets/claude/go/agents/build-verifier.md +1 -1
- package/presets/claude/go/agents/code-reviewer.md +1 -1
- package/presets/claude/go/agents/debugger.md +1 -1
- package/presets/claude/go/agents/feature-developer.md +1 -1
- package/presets/claude/go/agents/qa-tester.md +1 -1
- package/presets/claude/go/commands/task.md +1 -3
- package/presets/claude/go/hooks/chain-team-phases.sh +2 -2
- 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 +13 -4
- package/presets/claude/go/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/go/rules/tooling-and-review/code-review.md +9 -0
- package/presets/claude/go/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/go/team/README.md +17 -0
- package/presets/claude/ios-swift/REPO_AGENTS.md +1 -3
- package/presets/claude/ios-swift/agents/build-verifier.md +1 -1
- package/presets/claude/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/claude/ios-swift/agents/debugger.md +1 -1
- package/presets/claude/ios-swift/agents/feature-developer.md +1 -1
- package/presets/claude/ios-swift/agents/qa-tester.md +1 -1
- package/presets/claude/ios-swift/commands/task.md +1 -3
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +2 -2
- 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 +13 -4
- package/presets/claude/ios-swift/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +9 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/ios-swift/team/README.md +17 -0
- package/presets/claude/java/REPO_AGENTS.md +1 -3
- package/presets/claude/java/agents/build-verifier.md +1 -1
- package/presets/claude/java/agents/code-reviewer.md +1 -1
- package/presets/claude/java/agents/debugger.md +1 -1
- package/presets/claude/java/agents/feature-developer.md +1 -1
- package/presets/claude/java/agents/qa-tester.md +1 -1
- package/presets/claude/java/commands/task.md +1 -3
- package/presets/claude/java/hooks/chain-team-phases.sh +2 -2
- 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 +13 -4
- package/presets/claude/java/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/java/rules/tooling-and-review/code-review.md +9 -0
- package/presets/claude/java/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/java/team/README.md +17 -0
- package/presets/claude/mcp-ts/REPO_AGENTS.md +1 -3
- package/presets/claude/mcp-ts/agents/build-verifier.md +1 -1
- package/presets/claude/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/claude/mcp-ts/commands/task.md +1 -3
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +2 -2
- 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 +13 -4
- package/presets/claude/mcp-ts/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +9 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/mcp-ts/team/README.md +17 -0
- package/presets/claude/next/REPO_AGENTS.md +1 -3
- package/presets/claude/next/agents/build-verifier.md +1 -1
- package/presets/claude/next/agents/code-reviewer.md +1 -1
- package/presets/claude/next/agents/debugger.md +1 -1
- package/presets/claude/next/agents/feature-developer.md +1 -1
- package/presets/claude/next/agents/qa-tester.md +1 -1
- package/presets/claude/next/agents/security-reviewer.md +5 -0
- package/presets/claude/next/commands/task.md +1 -3
- package/presets/claude/next/hooks/chain-team-phases.sh +2 -2
- 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 +13 -4
- package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +9 -0
- package/presets/claude/next/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/next/team/README.md +17 -0
- package/presets/claude/nuxt/REPO_AGENTS.md +1 -3
- package/presets/claude/nuxt/agents/build-verifier.md +1 -1
- package/presets/claude/nuxt/agents/code-reviewer.md +1 -1
- package/presets/claude/nuxt/agents/debugger.md +1 -1
- package/presets/claude/nuxt/agents/feature-developer.md +1 -1
- package/presets/claude/nuxt/agents/qa-tester.md +1 -1
- package/presets/claude/nuxt/commands/task.md +1 -3
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +2 -2
- 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 +13 -4
- package/presets/claude/nuxt/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +9 -0
- package/presets/claude/nuxt/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/nuxt/team/README.md +17 -0
- package/presets/claude/php-hexagonal/REPO_AGENTS.md +1 -3
- package/presets/claude/php-hexagonal/agents/build-verifier.md +1 -1
- package/presets/claude/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/claude/php-hexagonal/agents/debugger.md +1 -1
- package/presets/claude/php-hexagonal/agents/feature-developer.md +1 -1
- package/presets/claude/php-hexagonal/agents/qa-tester.md +1 -1
- package/presets/claude/php-hexagonal/commands/task.md +1 -3
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +2 -2
- 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 +13 -4
- package/presets/claude/php-hexagonal/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +9 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/php-hexagonal/team/README.md +17 -0
- package/presets/claude/php-laravel/REPO_AGENTS.md +1 -3
- package/presets/claude/php-laravel/agents/build-verifier.md +1 -1
- package/presets/claude/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/claude/php-laravel/agents/debugger.md +1 -1
- package/presets/claude/php-laravel/agents/feature-developer.md +1 -1
- package/presets/claude/php-laravel/agents/qa-tester.md +1 -1
- package/presets/claude/php-laravel/commands/task.md +1 -3
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +2 -2
- 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 +13 -4
- package/presets/claude/php-laravel/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +9 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/php-laravel/team/README.md +17 -0
- package/presets/claude/svelte/REPO_AGENTS.md +1 -3
- package/presets/claude/svelte/agents/build-verifier.md +1 -1
- package/presets/claude/svelte/agents/code-reviewer.md +1 -1
- package/presets/claude/svelte/agents/debugger.md +1 -1
- package/presets/claude/svelte/agents/feature-developer.md +1 -1
- package/presets/claude/svelte/agents/qa-tester.md +1 -1
- package/presets/claude/svelte/commands/task.md +1 -3
- package/presets/claude/svelte/hooks/chain-team-phases.sh +2 -2
- 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 +13 -4
- package/presets/claude/svelte/rules/tooling-and-review/ai-local-overlay.md +1 -1
- package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +9 -0
- package/presets/claude/svelte/rules/tooling-and-review/language-policy.md +25 -17
- package/presets/claude/svelte/team/README.md +17 -0
- package/presets/cursor/android-kotlin/REPO_AGENTS.md +1 -3
- package/presets/cursor/android-kotlin/agents/build-verifier.md +1 -1
- package/presets/cursor/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/cursor/android-kotlin/agents/debugger.md +1 -1
- package/presets/cursor/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/cursor/android-kotlin/agents/qa-tester.md +1 -1
- package/presets/cursor/android-kotlin/commands/task.md +1 -3
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +2 -2
- package/presets/cursor/android-kotlin/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +3 -10
- 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/code-review-mr.mdc +9 -0
- package/presets/cursor/android-kotlin/rules/language-policy.mdc +25 -17
- package/presets/cursor/android-kotlin/team/README.md +17 -0
- package/presets/cursor/go/REPO_AGENTS.md +1 -3
- package/presets/cursor/go/agents/build-verifier.md +1 -1
- package/presets/cursor/go/agents/code-reviewer.md +1 -1
- package/presets/cursor/go/agents/debugger.md +1 -1
- package/presets/cursor/go/agents/feature-developer.md +1 -1
- package/presets/cursor/go/agents/qa-tester.md +1 -1
- package/presets/cursor/go/commands/task.md +1 -3
- package/presets/cursor/go/hooks/chain-team-phases.sh +2 -2
- package/presets/cursor/go/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/go/rules/agent-team-orchestrator.mdc +3 -10
- package/presets/cursor/go/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/go/rules/code-review-mr.mdc +9 -0
- package/presets/cursor/go/rules/go-app-core.mdc +1 -3
- package/presets/cursor/go/rules/language-policy.mdc +25 -17
- package/presets/cursor/go/team/README.md +17 -0
- package/presets/cursor/ios-swift/REPO_AGENTS.md +1 -3
- package/presets/cursor/ios-swift/agents/build-verifier.md +1 -1
- package/presets/cursor/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/cursor/ios-swift/agents/debugger.md +1 -1
- package/presets/cursor/ios-swift/agents/feature-developer.md +1 -1
- package/presets/cursor/ios-swift/agents/qa-tester.md +1 -1
- package/presets/cursor/ios-swift/commands/task.md +1 -3
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +2 -2
- package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +3 -10
- package/presets/cursor/ios-swift/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/ios-swift/rules/code-review-mr.mdc +9 -0
- package/presets/cursor/ios-swift/rules/ios-app-core.mdc +1 -3
- package/presets/cursor/ios-swift/rules/language-policy.mdc +25 -17
- package/presets/cursor/ios-swift/team/README.md +17 -0
- package/presets/cursor/java/REPO_AGENTS.md +1 -3
- package/presets/cursor/java/agents/build-verifier.md +1 -1
- package/presets/cursor/java/agents/code-reviewer.md +1 -1
- package/presets/cursor/java/agents/debugger.md +1 -1
- package/presets/cursor/java/agents/feature-developer.md +1 -1
- package/presets/cursor/java/agents/qa-tester.md +1 -1
- package/presets/cursor/java/commands/task.md +1 -3
- package/presets/cursor/java/hooks/chain-team-phases.sh +2 -2
- package/presets/cursor/java/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/java/rules/agent-team-orchestrator.mdc +3 -10
- package/presets/cursor/java/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/java/rules/code-review-mr.mdc +9 -0
- package/presets/cursor/java/rules/java-app-core.mdc +1 -3
- package/presets/cursor/java/rules/language-policy.mdc +25 -17
- package/presets/cursor/java/team/README.md +17 -0
- package/presets/cursor/mcp-ts/REPO_AGENTS.md +1 -3
- package/presets/cursor/mcp-ts/agents/build-verifier.md +1 -1
- package/presets/cursor/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/cursor/mcp-ts/commands/task.md +1 -3
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +2 -2
- package/presets/cursor/mcp-ts/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +3 -10
- package/presets/cursor/mcp-ts/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +9 -0
- package/presets/cursor/mcp-ts/rules/language-policy.mdc +25 -17
- package/presets/cursor/mcp-ts/rules/mcp-ts-app-core.mdc +1 -3
- package/presets/cursor/mcp-ts/team/README.md +17 -0
- package/presets/cursor/next/REPO_AGENTS.md +1 -3
- package/presets/cursor/next/agents/build-verifier.md +1 -1
- package/presets/cursor/next/agents/code-reviewer.md +1 -1
- package/presets/cursor/next/agents/debugger.md +1 -1
- package/presets/cursor/next/agents/feature-developer.md +1 -1
- package/presets/cursor/next/agents/qa-tester.md +1 -1
- package/presets/cursor/next/agents/security-reviewer.md +5 -0
- package/presets/cursor/next/commands/task.md +1 -3
- package/presets/cursor/next/hooks/chain-team-phases.sh +2 -2
- package/presets/cursor/next/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +3 -10
- package/presets/cursor/next/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/next/rules/code-review-mr.mdc +9 -0
- package/presets/cursor/next/rules/language-policy.mdc +25 -17
- package/presets/cursor/next/rules/next-app-core.mdc +1 -3
- package/presets/cursor/next/team/README.md +17 -0
- package/presets/cursor/nuxt/REPO_AGENTS.md +1 -3
- package/presets/cursor/nuxt/agents/build-verifier.md +1 -1
- package/presets/cursor/nuxt/agents/code-reviewer.md +1 -1
- package/presets/cursor/nuxt/agents/debugger.md +1 -1
- package/presets/cursor/nuxt/agents/feature-developer.md +1 -1
- package/presets/cursor/nuxt/agents/qa-tester.md +1 -1
- package/presets/cursor/nuxt/commands/task.md +1 -3
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +2 -2
- package/presets/cursor/nuxt/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +3 -10
- package/presets/cursor/nuxt/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/nuxt/rules/code-review-mr.mdc +9 -0
- package/presets/cursor/nuxt/rules/language-policy.mdc +25 -17
- package/presets/cursor/nuxt/rules/nuxt-app-core.mdc +1 -3
- package/presets/cursor/nuxt/team/README.md +17 -0
- package/presets/cursor/php-hexagonal/REPO_AGENTS.md +1 -3
- package/presets/cursor/php-hexagonal/agents/build-verifier.md +1 -1
- package/presets/cursor/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/cursor/php-hexagonal/agents/debugger.md +1 -1
- package/presets/cursor/php-hexagonal/agents/feature-developer.md +1 -1
- package/presets/cursor/php-hexagonal/agents/qa-tester.md +1 -1
- package/presets/cursor/php-hexagonal/commands/task.md +1 -3
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +2 -2
- package/presets/cursor/php-hexagonal/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +3 -10
- package/presets/cursor/php-hexagonal/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +9 -0
- package/presets/cursor/php-hexagonal/rules/language-policy.mdc +25 -17
- package/presets/cursor/php-hexagonal/rules/php-app-core.mdc +1 -3
- package/presets/cursor/php-hexagonal/team/README.md +17 -0
- package/presets/cursor/php-laravel/REPO_AGENTS.md +1 -3
- package/presets/cursor/php-laravel/agents/build-verifier.md +1 -1
- package/presets/cursor/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/cursor/php-laravel/agents/debugger.md +1 -1
- package/presets/cursor/php-laravel/agents/feature-developer.md +1 -1
- package/presets/cursor/php-laravel/agents/qa-tester.md +1 -1
- package/presets/cursor/php-laravel/commands/task.md +1 -3
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +2 -2
- package/presets/cursor/php-laravel/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +3 -10
- package/presets/cursor/php-laravel/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/php-laravel/rules/code-review-mr.mdc +9 -0
- package/presets/cursor/php-laravel/rules/language-policy.mdc +25 -17
- package/presets/cursor/php-laravel/rules/laravel-app-core.mdc +1 -3
- package/presets/cursor/php-laravel/team/README.md +17 -0
- package/presets/cursor/svelte/REPO_AGENTS.md +1 -3
- package/presets/cursor/svelte/agents/build-verifier.md +1 -1
- package/presets/cursor/svelte/agents/code-reviewer.md +1 -1
- package/presets/cursor/svelte/agents/debugger.md +1 -1
- package/presets/cursor/svelte/agents/feature-developer.md +1 -1
- package/presets/cursor/svelte/agents/qa-tester.md +1 -1
- package/presets/cursor/svelte/commands/task.md +1 -3
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +2 -2
- package/presets/cursor/svelte/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +3 -10
- package/presets/cursor/svelte/rules/ai-local-overlay.mdc +1 -1
- package/presets/cursor/svelte/rules/code-review-mr.mdc +9 -0
- package/presets/cursor/svelte/rules/language-policy.mdc +25 -17
- package/presets/cursor/svelte/rules/svelte-app-core.mdc +1 -3
- package/presets/cursor/svelte/team/README.md +17 -0
- 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/agents/build-verifier.md +1 -1
- package/presets/mavis/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/mavis/android-kotlin/agents/debugger.md +1 -1
- package/presets/mavis/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/mavis/android-kotlin/agents/qa-tester.md +1 -1
- package/presets/mavis/android-kotlin/commands/task.md +1 -3
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +2 -2
- package/presets/mavis/android-kotlin/rules/agent-team-intake.md +1 -1
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +13 -4
- 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/code-review-mr.md +9 -0
- package/presets/mavis/android-kotlin/rules/language-policy.md +24 -16
- package/presets/mavis/android-kotlin/team/README.md +17 -0
- package/presets/mavis/go/REPO_AGENTS.md +1 -3
- package/presets/mavis/go/adapter-map.json +1 -1
- package/presets/mavis/go/agents/build-verifier.md +1 -1
- package/presets/mavis/go/agents/code-reviewer.md +1 -1
- package/presets/mavis/go/agents/debugger.md +1 -1
- package/presets/mavis/go/agents/feature-developer.md +1 -1
- package/presets/mavis/go/agents/qa-tester.md +1 -1
- package/presets/mavis/go/commands/task.md +1 -3
- package/presets/mavis/go/hooks/chain-team-phases.sh +2 -2
- package/presets/mavis/go/rules/agent-team-intake.md +1 -1
- package/presets/mavis/go/rules/agent-team-orchestrator.md +13 -4
- package/presets/mavis/go/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/go/rules/code-review-mr.md +9 -0
- package/presets/mavis/go/rules/go-app-core.md +1 -3
- package/presets/mavis/go/rules/language-policy.md +24 -16
- package/presets/mavis/go/team/README.md +17 -0
- 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/agents/build-verifier.md +1 -1
- package/presets/mavis/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/mavis/ios-swift/agents/debugger.md +1 -1
- package/presets/mavis/ios-swift/agents/feature-developer.md +1 -1
- package/presets/mavis/ios-swift/agents/qa-tester.md +1 -1
- package/presets/mavis/ios-swift/commands/task.md +1 -3
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +2 -2
- package/presets/mavis/ios-swift/rules/agent-team-intake.md +1 -1
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +13 -4
- package/presets/mavis/ios-swift/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/ios-swift/rules/code-review-mr.md +9 -0
- package/presets/mavis/ios-swift/rules/ios-app-core.md +1 -3
- package/presets/mavis/ios-swift/rules/language-policy.md +24 -16
- package/presets/mavis/ios-swift/team/README.md +17 -0
- package/presets/mavis/java/REPO_AGENTS.md +1 -3
- package/presets/mavis/java/adapter-map.json +1 -1
- package/presets/mavis/java/agents/build-verifier.md +1 -1
- package/presets/mavis/java/agents/code-reviewer.md +1 -1
- package/presets/mavis/java/agents/debugger.md +1 -1
- package/presets/mavis/java/agents/feature-developer.md +1 -1
- package/presets/mavis/java/agents/qa-tester.md +1 -1
- package/presets/mavis/java/commands/task.md +1 -3
- package/presets/mavis/java/hooks/chain-team-phases.sh +2 -2
- package/presets/mavis/java/rules/agent-team-intake.md +1 -1
- package/presets/mavis/java/rules/agent-team-orchestrator.md +13 -4
- package/presets/mavis/java/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/java/rules/code-review-mr.md +9 -0
- package/presets/mavis/java/rules/java-app-core.md +1 -3
- package/presets/mavis/java/rules/language-policy.md +24 -16
- package/presets/mavis/java/team/README.md +17 -0
- 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/agents/build-verifier.md +1 -1
- package/presets/mavis/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/mavis/mcp-ts/commands/task.md +1 -3
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +2 -2
- package/presets/mavis/mcp-ts/rules/agent-team-intake.md +1 -1
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +13 -4
- package/presets/mavis/mcp-ts/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/mcp-ts/rules/code-review-mr.md +9 -0
- package/presets/mavis/mcp-ts/rules/language-policy.md +24 -16
- package/presets/mavis/mcp-ts/rules/mcp-ts-app-core.md +1 -3
- package/presets/mavis/mcp-ts/team/README.md +17 -0
- package/presets/mavis/next/REPO_AGENTS.md +1 -3
- package/presets/mavis/next/adapter-map.json +1 -1
- package/presets/mavis/next/agents/build-verifier.md +1 -1
- package/presets/mavis/next/agents/code-reviewer.md +1 -1
- package/presets/mavis/next/agents/debugger.md +1 -1
- package/presets/mavis/next/agents/feature-developer.md +1 -1
- package/presets/mavis/next/agents/qa-tester.md +1 -1
- package/presets/mavis/next/agents/security-reviewer.md +5 -0
- package/presets/mavis/next/commands/task.md +1 -3
- package/presets/mavis/next/hooks/chain-team-phases.sh +2 -2
- package/presets/mavis/next/rules/agent-team-intake.md +1 -1
- package/presets/mavis/next/rules/agent-team-orchestrator.md +13 -4
- package/presets/mavis/next/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/next/rules/code-review-mr.md +9 -0
- package/presets/mavis/next/rules/language-policy.md +24 -16
- package/presets/mavis/next/rules/next-app-core.md +1 -3
- package/presets/mavis/next/team/README.md +17 -0
- package/presets/mavis/nuxt/REPO_AGENTS.md +1 -3
- package/presets/mavis/nuxt/adapter-map.json +1 -1
- package/presets/mavis/nuxt/agents/build-verifier.md +1 -1
- package/presets/mavis/nuxt/agents/code-reviewer.md +1 -1
- package/presets/mavis/nuxt/agents/debugger.md +1 -1
- package/presets/mavis/nuxt/agents/feature-developer.md +1 -1
- package/presets/mavis/nuxt/agents/qa-tester.md +1 -1
- package/presets/mavis/nuxt/commands/task.md +1 -3
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +2 -2
- package/presets/mavis/nuxt/rules/agent-team-intake.md +1 -1
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +13 -4
- package/presets/mavis/nuxt/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/nuxt/rules/code-review-mr.md +9 -0
- package/presets/mavis/nuxt/rules/language-policy.md +24 -16
- package/presets/mavis/nuxt/rules/nuxt-app-core.md +1 -3
- package/presets/mavis/nuxt/team/README.md +17 -0
- 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/agents/build-verifier.md +1 -1
- package/presets/mavis/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/mavis/php-hexagonal/agents/debugger.md +1 -1
- package/presets/mavis/php-hexagonal/agents/feature-developer.md +1 -1
- package/presets/mavis/php-hexagonal/agents/qa-tester.md +1 -1
- package/presets/mavis/php-hexagonal/commands/task.md +1 -3
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +2 -2
- package/presets/mavis/php-hexagonal/rules/agent-team-intake.md +1 -1
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +13 -4
- package/presets/mavis/php-hexagonal/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/php-hexagonal/rules/code-review-mr.md +9 -0
- package/presets/mavis/php-hexagonal/rules/language-policy.md +24 -16
- package/presets/mavis/php-hexagonal/rules/php-app-core.md +1 -3
- package/presets/mavis/php-hexagonal/team/README.md +17 -0
- 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/agents/build-verifier.md +1 -1
- package/presets/mavis/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/mavis/php-laravel/agents/debugger.md +1 -1
- package/presets/mavis/php-laravel/agents/feature-developer.md +1 -1
- package/presets/mavis/php-laravel/agents/qa-tester.md +1 -1
- package/presets/mavis/php-laravel/commands/task.md +1 -3
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +2 -2
- package/presets/mavis/php-laravel/rules/agent-team-intake.md +1 -1
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +13 -4
- package/presets/mavis/php-laravel/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/php-laravel/rules/code-review-mr.md +9 -0
- package/presets/mavis/php-laravel/rules/language-policy.md +24 -16
- package/presets/mavis/php-laravel/rules/laravel-app-core.md +1 -3
- package/presets/mavis/php-laravel/team/README.md +17 -0
- package/presets/mavis/svelte/REPO_AGENTS.md +1 -3
- package/presets/mavis/svelte/adapter-map.json +1 -1
- package/presets/mavis/svelte/agents/build-verifier.md +1 -1
- package/presets/mavis/svelte/agents/code-reviewer.md +1 -1
- package/presets/mavis/svelte/agents/debugger.md +1 -1
- package/presets/mavis/svelte/agents/feature-developer.md +1 -1
- package/presets/mavis/svelte/agents/qa-tester.md +1 -1
- package/presets/mavis/svelte/commands/task.md +1 -3
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +2 -2
- package/presets/mavis/svelte/rules/agent-team-intake.md +1 -1
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +13 -4
- package/presets/mavis/svelte/rules/ai-local-overlay.md +1 -1
- package/presets/mavis/svelte/rules/code-review-mr.md +9 -0
- package/presets/mavis/svelte/rules/language-policy.md +24 -16
- package/presets/mavis/svelte/rules/svelte-app-core.md +1 -3
- package/presets/mavis/svelte/team/README.md +17 -0
- 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/agents/build-verifier.md +1 -1
- package/presets/opencode/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/opencode/android-kotlin/agents/debugger.md +1 -1
- package/presets/opencode/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/opencode/android-kotlin/agents/qa-tester.md +1 -1
- package/presets/opencode/android-kotlin/commands/task.md +1 -3
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +2 -2
- package/presets/opencode/android-kotlin/rules/agent-team-intake.md +1 -1
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +13 -4
- 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/code-review-mr.md +9 -0
- package/presets/opencode/android-kotlin/rules/language-policy.md +24 -16
- package/presets/opencode/android-kotlin/team/README.md +17 -0
- package/presets/opencode/go/REPO_AGENTS.md +1 -3
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/agents/build-verifier.md +1 -1
- package/presets/opencode/go/agents/code-reviewer.md +1 -1
- package/presets/opencode/go/agents/debugger.md +1 -1
- package/presets/opencode/go/agents/feature-developer.md +1 -1
- package/presets/opencode/go/agents/qa-tester.md +1 -1
- package/presets/opencode/go/commands/task.md +1 -3
- package/presets/opencode/go/hooks/chain-team-phases.sh +2 -2
- package/presets/opencode/go/rules/agent-team-intake.md +1 -1
- package/presets/opencode/go/rules/agent-team-orchestrator.md +13 -4
- package/presets/opencode/go/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/go/rules/code-review-mr.md +9 -0
- package/presets/opencode/go/rules/go-app-core.md +1 -3
- package/presets/opencode/go/rules/language-policy.md +24 -16
- package/presets/opencode/go/team/README.md +17 -0
- 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/agents/build-verifier.md +1 -1
- package/presets/opencode/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/opencode/ios-swift/agents/debugger.md +1 -1
- package/presets/opencode/ios-swift/agents/feature-developer.md +1 -1
- package/presets/opencode/ios-swift/agents/qa-tester.md +1 -1
- package/presets/opencode/ios-swift/commands/task.md +1 -3
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +2 -2
- package/presets/opencode/ios-swift/rules/agent-team-intake.md +1 -1
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +13 -4
- package/presets/opencode/ios-swift/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/ios-swift/rules/code-review-mr.md +9 -0
- package/presets/opencode/ios-swift/rules/ios-app-core.md +1 -3
- package/presets/opencode/ios-swift/rules/language-policy.md +24 -16
- package/presets/opencode/ios-swift/team/README.md +17 -0
- package/presets/opencode/java/REPO_AGENTS.md +1 -3
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/agents/build-verifier.md +1 -1
- package/presets/opencode/java/agents/code-reviewer.md +1 -1
- package/presets/opencode/java/agents/debugger.md +1 -1
- package/presets/opencode/java/agents/feature-developer.md +1 -1
- package/presets/opencode/java/agents/qa-tester.md +1 -1
- package/presets/opencode/java/commands/task.md +1 -3
- package/presets/opencode/java/hooks/chain-team-phases.sh +2 -2
- package/presets/opencode/java/rules/agent-team-intake.md +1 -1
- package/presets/opencode/java/rules/agent-team-orchestrator.md +13 -4
- package/presets/opencode/java/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/java/rules/code-review-mr.md +9 -0
- package/presets/opencode/java/rules/java-app-core.md +1 -3
- package/presets/opencode/java/rules/language-policy.md +24 -16
- package/presets/opencode/java/team/README.md +17 -0
- 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/agents/build-verifier.md +1 -1
- package/presets/opencode/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/opencode/mcp-ts/commands/task.md +1 -3
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +2 -2
- package/presets/opencode/mcp-ts/rules/agent-team-intake.md +1 -1
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +13 -4
- package/presets/opencode/mcp-ts/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/mcp-ts/rules/code-review-mr.md +9 -0
- package/presets/opencode/mcp-ts/rules/language-policy.md +24 -16
- package/presets/opencode/mcp-ts/rules/mcp-ts-app-core.md +1 -3
- package/presets/opencode/mcp-ts/team/README.md +17 -0
- package/presets/opencode/next/REPO_AGENTS.md +1 -3
- package/presets/opencode/next/adapter-map.json +1 -1
- package/presets/opencode/next/agents/build-verifier.md +1 -1
- package/presets/opencode/next/agents/code-reviewer.md +1 -1
- package/presets/opencode/next/agents/debugger.md +1 -1
- package/presets/opencode/next/agents/feature-developer.md +1 -1
- package/presets/opencode/next/agents/qa-tester.md +1 -1
- package/presets/opencode/next/agents/security-reviewer.md +5 -0
- package/presets/opencode/next/commands/task.md +1 -3
- package/presets/opencode/next/hooks/chain-team-phases.sh +2 -2
- package/presets/opencode/next/rules/agent-team-intake.md +1 -1
- package/presets/opencode/next/rules/agent-team-orchestrator.md +13 -4
- package/presets/opencode/next/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/next/rules/code-review-mr.md +9 -0
- package/presets/opencode/next/rules/language-policy.md +24 -16
- package/presets/opencode/next/rules/next-app-core.md +1 -3
- package/presets/opencode/next/team/README.md +17 -0
- package/presets/opencode/nuxt/REPO_AGENTS.md +1 -3
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/agents/build-verifier.md +1 -1
- package/presets/opencode/nuxt/agents/code-reviewer.md +1 -1
- package/presets/opencode/nuxt/agents/debugger.md +1 -1
- package/presets/opencode/nuxt/agents/feature-developer.md +1 -1
- package/presets/opencode/nuxt/agents/qa-tester.md +1 -1
- package/presets/opencode/nuxt/commands/task.md +1 -3
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +2 -2
- package/presets/opencode/nuxt/rules/agent-team-intake.md +1 -1
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +13 -4
- package/presets/opencode/nuxt/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/nuxt/rules/code-review-mr.md +9 -0
- package/presets/opencode/nuxt/rules/language-policy.md +24 -16
- package/presets/opencode/nuxt/rules/nuxt-app-core.md +1 -3
- package/presets/opencode/nuxt/team/README.md +17 -0
- 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/agents/build-verifier.md +1 -1
- package/presets/opencode/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/opencode/php-hexagonal/agents/debugger.md +1 -1
- package/presets/opencode/php-hexagonal/agents/feature-developer.md +1 -1
- package/presets/opencode/php-hexagonal/agents/qa-tester.md +1 -1
- package/presets/opencode/php-hexagonal/commands/task.md +1 -3
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +2 -2
- package/presets/opencode/php-hexagonal/rules/agent-team-intake.md +1 -1
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +13 -4
- package/presets/opencode/php-hexagonal/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/php-hexagonal/rules/code-review-mr.md +9 -0
- package/presets/opencode/php-hexagonal/rules/language-policy.md +24 -16
- package/presets/opencode/php-hexagonal/rules/php-app-core.md +1 -3
- package/presets/opencode/php-hexagonal/team/README.md +17 -0
- 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/agents/build-verifier.md +1 -1
- package/presets/opencode/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/opencode/php-laravel/agents/debugger.md +1 -1
- package/presets/opencode/php-laravel/agents/feature-developer.md +1 -1
- package/presets/opencode/php-laravel/agents/qa-tester.md +1 -1
- package/presets/opencode/php-laravel/commands/task.md +1 -3
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +2 -2
- package/presets/opencode/php-laravel/rules/agent-team-intake.md +1 -1
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +13 -4
- package/presets/opencode/php-laravel/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/php-laravel/rules/code-review-mr.md +9 -0
- package/presets/opencode/php-laravel/rules/language-policy.md +24 -16
- package/presets/opencode/php-laravel/rules/laravel-app-core.md +1 -3
- package/presets/opencode/php-laravel/team/README.md +17 -0
- package/presets/opencode/svelte/REPO_AGENTS.md +1 -3
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/agents/build-verifier.md +1 -1
- package/presets/opencode/svelte/agents/code-reviewer.md +1 -1
- package/presets/opencode/svelte/agents/debugger.md +1 -1
- package/presets/opencode/svelte/agents/feature-developer.md +1 -1
- package/presets/opencode/svelte/agents/qa-tester.md +1 -1
- package/presets/opencode/svelte/commands/task.md +1 -3
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +2 -2
- package/presets/opencode/svelte/rules/agent-team-intake.md +1 -1
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +13 -4
- package/presets/opencode/svelte/rules/ai-local-overlay.md +1 -1
- package/presets/opencode/svelte/rules/code-review-mr.md +9 -0
- package/presets/opencode/svelte/rules/language-policy.md +24 -16
- package/presets/opencode/svelte/rules/svelte-app-core.md +1 -3
- package/presets/opencode/svelte/team/README.md +17 -0
|
@@ -129,12 +129,21 @@ Each slug has one `artifact-manifest.json` at `.ai.local/team/tasks/<slug>/`. Th
|
|
|
129
129
|
|
|
130
130
|
- Read the manifest before broad prior-artifact discovery. Each step receives authoritative input entry IDs, owns named output entry IDs, and finishes with one terminal receipt linked to AC/task IDs.
|
|
131
131
|
- Markdown remains detailed evidence; the manifest points to authoritative paths and records producer, status, timestamps, outcome, and evidence paths.
|
|
132
|
-
- Agents upsert only the items they own in `manifest.artifacts[]` and preserve all foreign items in that array. Parallel agents use distinct IDs; the parent/
|
|
132
|
+
- Agents upsert only the items they own in `manifest.artifacts[]` and preserve all foreign items in that array. Parallel agents use distinct IDs. Every write is a whole-file merge through `node .ai.local/scripts/manifest.mjs upsert …` under `.manifest.lock` (see the installed `team/README.md` § artifact-manifest.json — write protocol); the parent does not need to serialize merges, and a fragment/replace edit of the JSON is forbidden. The top-level array key is `artifacts` — not `entries`; see `agent-artifact-contracts.md` for the schema callout.
|
|
133
133
|
- The orchestration runtime/hook is the single writer for `status.json` lifecycle fields and `metrics.json`. Agents read status for eligibility but never rewrite unrelated state, gate, retry, attempt, timestamp, or metrics fields.
|
|
134
134
|
- Missing/stale manifests are reported as a handoff gap; fall back to `brief.md`, `decomposition.md`, and `pipeline.json` rather than inventing authority.
|
|
135
135
|
|
|
136
|
-
##
|
|
136
|
+
## Out-of-band producer passes
|
|
137
|
+
|
|
138
|
+
A producer invoked outside `pipeline.json.steps` — a remediation pass after a reviewer finding, a manual fix, a re-run of one agent — is still a run artifact, not an informal turn.
|
|
137
139
|
|
|
140
|
+
- Record it as one `event:` line in `.memlog.md`: the trigger, the agent, the files touched, and the gate that was re-run.
|
|
141
|
+
- Upsert its receipt into `artifact-manifest.json` as its own owned entry, never folded into the previous step's entry, with `outcome` and `evidencePaths`.
|
|
142
|
+
- Do not invent an `attemptId` for it. An id the hook did not allocate cannot be reconciled by the metrics ledger; leave the receipt unbound and let the `.memlog.md` line carry the provenance.
|
|
143
|
+
- Re-run the affected gate (the step's `build-verifier` or the owned check) after the pass. An unverified pass is not a delivery.
|
|
144
|
+
- Prefer the routed path: a `changes_requested` receipt already re-dispatches the developer and keeps the ledger intact. Out-of-band work is the fallback, used when the finding arrives after the gate or comes from a human.
|
|
145
|
+
|
|
146
|
+
## Plan revision (replanning)
|
|
138
147
|
Replanning is a **named, auditable operation** — never a silent reorder. Trigger it when an evaluation oracle fails twice on the same task, when scope or requirements change, or when a previously unknown dependency/consumer is discovered. Procedure: append `decision: replan rev N → N+1` (with the reason) to `.memlog.md`, update `decomposition.md` (task add/remove or dependency change) and any optional plan fields, then **re-run the affected gate**. Scope-changing revisions return to the human gate.
|
|
139
148
|
|
|
140
149
|
## Context budget & checkpoint/resume
|
|
@@ -221,7 +230,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
221
230
|
8. When all steps complete, suggest `/technical-retro <slug>`.
|
|
222
231
|
9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
|
|
223
232
|
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.**
|
|
233
|
+
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
234
|
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
235
|
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
236
|
|
|
@@ -229,7 +238,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
229
238
|
|
|
230
239
|
- **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
240
|
- **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.**
|
|
241
|
+
- **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
242
|
- 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
243
|
- If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
|
|
235
244
|
- 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.
|
|
@@ -24,6 +24,4 @@ Place new files next to analogs. Boundaries/DI — **`architecture-boundaries`**
|
|
|
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`.
|
|
@@ -39,6 +39,15 @@ Procedure details live in skill `code-review`. Required shape:
|
|
|
39
39
|
- Vague («looks risky») is not a finding — cite evidence or ask for surrounding file context.
|
|
40
40
|
- End with a verdict on its own line: **`Safe to merge | needs changes | reject`**.
|
|
41
41
|
|
|
42
|
+
## Verdict and terminal receipt
|
|
43
|
+
|
|
44
|
+
The verdict and the receipt are the same decision expressed twice — never let a fixable defect hide behind "notes".
|
|
45
|
+
|
|
46
|
+
- Any `blocker` or `important` finding (a scale that names `high`/`medium` maps them here) means the MR is **not** mergeable as-is: emit receipt outcome `changes_requested` so the orchestrator runs its existing developer retry, not `completed`.
|
|
47
|
+
- Reserve a notes-only verdict for `nit`/informational items. Reporting a non-cosmetic fixable defect as a note converts it into unplanned out-of-band work and leaves it unrecorded in the run ledger.
|
|
48
|
+
- A divergence between the frozen spec/design and the shipped code is a finding, never a note: cite the spec line and the code line in the same finding.
|
|
49
|
+
- Before freezing a wire contract, confirm the stated behaviour against the repository's existing handler/decoder convention; a spec that contradicts the codebase convention is the same finding class.
|
|
50
|
+
|
|
42
51
|
## Stack notes
|
|
43
52
|
|
|
44
53
|
On-demand rule for review flows (not always-on).
|
|
@@ -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.
|
|
@@ -56,6 +56,23 @@ Bootstrap a slug by **writing** `pipeline.json` (editor Write tool). Do not `mkd
|
|
|
56
56
|
|
|
57
57
|
Prefer `phase: executing`. States: `in_progress`, `completed`, `awaiting_approval` (`/task-continue`), `changes_requested`, `validation_failed`, `blocked` (graph mode still dispatches independent ready steps), `awaiting_artifact_receipt`.
|
|
58
58
|
|
|
59
|
+
## artifact-manifest.json — write protocol
|
|
60
|
+
|
|
61
|
+
The manifest is a **whole-file merge target**. Producers rewrite it, and every write refreshes `updatedAt`, so a fragment/replace edit of the JSON fails its match and aborts the receipt. Merge by entry `id` and rewrite the file:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
node .ai.local/scripts/manifest.mjs upsert --slug <slug> --id <id> --producer <agent> \
|
|
65
|
+
--outcome completed --paths brief.md,decomposition.md --acs AC-1 --tasks T1 --attempt <attemptId>
|
|
66
|
+
node .ai.local/scripts/manifest.mjs check --slug <slug>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
- Absent file → `manifest.mjs init --slug <slug>` (the hook seeds the same skeleton).
|
|
70
|
+
- Never patch the JSON with a fragment/replace edit (`edit`, `str_replace`, `apply_patch`): a foreign parallel write or a refreshed `updatedAt` breaks the match, the produced artifact ends up without a receipt, and the step stalls in `awaiting_artifact_receipt`.
|
|
71
|
+
- Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
|
|
72
|
+
- Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
|
|
73
|
+
- Plan closure → tick (`- [ ]` → `- [x]`) every `tasks.md` row this receipt closes, in the same turn. An unticked row makes `openspec list` report stale progress and hides the exit criteria from the next agent.
|
|
74
|
+
- Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
|
|
75
|
+
|
|
59
76
|
## Commands
|
|
60
77
|
|
|
61
78
|
```bash
|
|
@@ -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": "go",
|
|
5
5
|
"semanticSource": "cursor/go",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "34b0cac8997790bec2c5218df8c1f26dedefebeadb7d5df8c70c2d8d2b989606",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -74,4 +74,4 @@ A self-review defect that changes the output appends one `review-ledger.md` row
|
|
|
74
74
|
|
|
75
75
|
## Receipt binding
|
|
76
76
|
|
|
77
|
-
> **Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`.
|
|
77
|
+
> **Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`. A missing or stale attemptId causes `awaiting_artifact_receipt` stalls. Write the receipt as a whole-file merge — `node .ai.local/scripts/manifest.mjs upsert --slug <slug> --id <id> --producer <agent> --outcome <outcome> --attempt <attemptId> …` — and never patch the JSON with a fragment/replace edit: a foreign parallel write or a refreshed `updatedAt` breaks the match and aborts the receipt mid-task. If the merge or parse fails, re-read and merge again (at most twice), then report `blocked` with the error. <!-- shared-core: receipt-binding -->
|
|
@@ -95,4 +95,4 @@ Write `.ai.local/team/tasks/<slug>/review.md` with verdict APPROVE | REQUEST_CHA
|
|
|
95
95
|
|
|
96
96
|
## Receipt binding
|
|
97
97
|
|
|
98
|
-
> **Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`.
|
|
98
|
+
> **Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`. A missing or stale attemptId causes `awaiting_artifact_receipt` stalls. Write the receipt as a whole-file merge — `node .ai.local/scripts/manifest.mjs upsert --slug <slug> --id <id> --producer <agent> --outcome <outcome> --attempt <attemptId> …` — and never patch the JSON with a fragment/replace edit: a foreign parallel write or a refreshed `updatedAt` breaks the match and aborts the receipt mid-task. If the merge or parse fails, re-read and merge again (at most twice), then report `blocked` with the error. <!-- shared-core: receipt-binding -->
|
|
@@ -98,4 +98,4 @@ If a Sentry/Datadog (or similar) MCP is ready and the task is a production error
|
|
|
98
98
|
|
|
99
99
|
## Receipt binding
|
|
100
100
|
|
|
101
|
-
> **Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`.
|
|
101
|
+
> **Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`. A missing or stale attemptId causes `awaiting_artifact_receipt` stalls. Write the receipt as a whole-file merge — `node .ai.local/scripts/manifest.mjs upsert --slug <slug> --id <id> --producer <agent> --outcome <outcome> --attempt <attemptId> …` — and never patch the JSON with a fragment/replace edit: a foreign parallel write or a refreshed `updatedAt` breaks the match and aborts the receipt mid-task. If the merge or parse fails, re-read and merge again (at most twice), then report `blocked` with the error. <!-- shared-core: receipt-binding -->
|
|
@@ -144,4 +144,4 @@ Load requestable rule `mcp-usage` when verifying third-party library APIs (Conte
|
|
|
144
144
|
|
|
145
145
|
## Receipt binding
|
|
146
146
|
|
|
147
|
-
> **Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`.
|
|
147
|
+
> **Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`. A missing or stale attemptId causes `awaiting_artifact_receipt` stalls. Write the receipt as a whole-file merge — `node .ai.local/scripts/manifest.mjs upsert --slug <slug> --id <id> --producer <agent> --outcome <outcome> --attempt <attemptId> …` — and never patch the JSON with a fragment/replace edit: a foreign parallel write or a refreshed `updatedAt` breaks the match and aborts the receipt mid-task. If the merge or parse fails, re-read and merge again (at most twice), then report `blocked` with the error. <!-- shared-core: receipt-binding -->
|
|
@@ -53,4 +53,4 @@ Coordinate with existing plans under `.ai.local/team/tasks/<slug>/`.
|
|
|
53
53
|
|
|
54
54
|
## Receipt binding
|
|
55
55
|
|
|
56
|
-
> **Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`.
|
|
56
|
+
> **Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`. A missing or stale attemptId causes `awaiting_artifact_receipt` stalls. Write the receipt as a whole-file merge — `node .ai.local/scripts/manifest.mjs upsert --slug <slug> --id <id> --producer <agent> --outcome <outcome> --attempt <attemptId> …` — and never patch the JSON with a fragment/replace edit: a foreign parallel write or a refreshed `updatedAt` breaks the match and aborts the receipt mid-task. If the merge or parse fails, re-read and merge again (at most twice), then report `blocked` with the error. <!-- shared-core: receipt-binding -->
|
|
@@ -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
|
|
@@ -742,9 +742,9 @@ function readBoundReceiptOutcome(agent, step, resolved) {
|
|
|
742
742
|
const seeded = writeSkeletonManifest(manifestPath);
|
|
743
743
|
const stepIndex = typeof resolved.entry.stepIndex === 'number' ? resolved.entry.stepIndex : 0;
|
|
744
744
|
if (seeded) {
|
|
745
|
-
return { outcome: null, receiptRequired: true, stallMessage: `[chain-team-phases] ${slug}: artifact-manifest.json is missing and the skeleton could not be written (${seeded}). Create .ai.local/
|
|
745
|
+
return { outcome: null, receiptRequired: true, stallMessage: `[chain-team-phases] ${slug}: artifact-manifest.json is missing and the skeleton could not be written (${seeded}). Create it with "node .ai.local/scripts/manifest.mjs init --slug ${slug}", then merge the receipt for artifactOutputId "${expectedOutputId}" with "node .ai.local/scripts/manifest.mjs upsert --slug ${slug} --id ${expectedOutputId} --producer ${agent} --outcome completed --paths <artifact>.md" (whole-file merge; never patch the JSON), then resume with: /task-continue ${slug}` };
|
|
746
746
|
}
|
|
747
|
-
return { outcome: null, receiptRequired: true, stallMessage: `[chain-team-phases] ${slug}: no artifact-manifest.json for step ${stepIndex} (${agent}). Wrote a skeleton {schemaVersion:1, slug, artifacts:[]}. Expected artifactOutputId "${expectedOutputId}". Write the artifact
|
|
747
|
+
return { outcome: null, receiptRequired: true, stallMessage: `[chain-team-phases] ${slug}: no artifact-manifest.json for step ${stepIndex} (${agent}). Wrote a skeleton {schemaVersion:1, slug, artifacts:[]}. Expected artifactOutputId "${expectedOutputId}". Write the artifact, then merge its receipt with "node .ai.local/scripts/manifest.mjs upsert --slug ${slug} --id ${expectedOutputId} --producer ${agent} --outcome completed --paths <artifact>.md" (whole-file merge; never patch the JSON), then resume with: /task-continue ${slug}` };
|
|
748
748
|
}
|
|
749
749
|
try {
|
|
750
750
|
const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
|
|
@@ -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
|
|
|
@@ -129,12 +129,21 @@ Each slug has one `artifact-manifest.json` at `.ai.local/team/tasks/<slug>/`. Th
|
|
|
129
129
|
|
|
130
130
|
- Read the manifest before broad prior-artifact discovery. Each step receives authoritative input entry IDs, owns named output entry IDs, and finishes with one terminal receipt linked to AC/task IDs.
|
|
131
131
|
- Markdown remains detailed evidence; the manifest points to authoritative paths and records producer, status, timestamps, outcome, and evidence paths.
|
|
132
|
-
- Agents upsert only the items they own in `manifest.artifacts[]` and preserve all foreign items in that array. Parallel agents use distinct IDs; the parent/
|
|
132
|
+
- Agents upsert only the items they own in `manifest.artifacts[]` and preserve all foreign items in that array. Parallel agents use distinct IDs. Every write is a whole-file merge through `node .ai.local/scripts/manifest.mjs upsert …` under `.manifest.lock` (see the installed `team/README.md` § artifact-manifest.json — write protocol); the parent does not need to serialize merges, and a fragment/replace edit of the JSON is forbidden. The top-level array key is `artifacts` — not `entries`; see `agent-artifact-contracts.md` for the schema callout.
|
|
133
133
|
- The orchestration runtime/hook is the single writer for `status.json` lifecycle fields and `metrics.json`. Agents read status for eligibility but never rewrite unrelated state, gate, retry, attempt, timestamp, or metrics fields.
|
|
134
134
|
- Missing/stale manifests are reported as a handoff gap; fall back to `brief.md`, `decomposition.md`, and `pipeline.json` rather than inventing authority.
|
|
135
135
|
|
|
136
|
-
##
|
|
136
|
+
## Out-of-band producer passes
|
|
137
|
+
|
|
138
|
+
A producer invoked outside `pipeline.json.steps` — a remediation pass after a reviewer finding, a manual fix, a re-run of one agent — is still a run artifact, not an informal turn.
|
|
137
139
|
|
|
140
|
+
- Record it as one `event:` line in `.memlog.md`: the trigger, the agent, the files touched, and the gate that was re-run.
|
|
141
|
+
- Upsert its receipt into `artifact-manifest.json` as its own owned entry, never folded into the previous step's entry, with `outcome` and `evidencePaths`.
|
|
142
|
+
- Do not invent an `attemptId` for it. An id the hook did not allocate cannot be reconciled by the metrics ledger; leave the receipt unbound and let the `.memlog.md` line carry the provenance.
|
|
143
|
+
- Re-run the affected gate (the step's `build-verifier` or the owned check) after the pass. An unverified pass is not a delivery.
|
|
144
|
+
- Prefer the routed path: a `changes_requested` receipt already re-dispatches the developer and keeps the ledger intact. Out-of-band work is the fallback, used when the finding arrives after the gate or comes from a human.
|
|
145
|
+
|
|
146
|
+
## Plan revision (replanning)
|
|
138
147
|
Replanning is a **named, auditable operation** — never a silent reorder. Trigger it when an evaluation oracle fails twice on the same task, when scope or requirements change, or when a previously unknown dependency/consumer is discovered. Procedure: append `decision: replan rev N → N+1` (with the reason) to `.memlog.md`, update `decomposition.md` (task add/remove or dependency change) and any optional plan fields, then **re-run the affected gate**. Scope-changing revisions return to the human gate.
|
|
139
148
|
|
|
140
149
|
## Context budget & checkpoint/resume
|
|
@@ -221,7 +230,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
221
230
|
8. When all steps complete, suggest `/technical-retro <slug>`.
|
|
222
231
|
9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
|
|
223
232
|
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.**
|
|
233
|
+
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
234
|
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
235
|
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
236
|
|
|
@@ -229,7 +238,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
229
238
|
|
|
230
239
|
- **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
240
|
- **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.**
|
|
241
|
+
- **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
242
|
- 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
243
|
- If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
|
|
235
244
|
- 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.
|
|
@@ -39,6 +39,15 @@ Procedure details live in skill `code-review`. Required shape:
|
|
|
39
39
|
- Vague («looks risky») is not a finding — cite evidence or ask for surrounding file context.
|
|
40
40
|
- End with a verdict on its own line: **`Safe to merge | needs changes | reject`**.
|
|
41
41
|
|
|
42
|
+
## Verdict and terminal receipt
|
|
43
|
+
|
|
44
|
+
The verdict and the receipt are the same decision expressed twice — never let a fixable defect hide behind "notes".
|
|
45
|
+
|
|
46
|
+
- Any `blocker` or `important` finding (a scale that names `high`/`medium` maps them here) means the MR is **not** mergeable as-is: emit receipt outcome `changes_requested` so the orchestrator runs its existing developer retry, not `completed`.
|
|
47
|
+
- Reserve a notes-only verdict for `nit`/informational items. Reporting a non-cosmetic fixable defect as a note converts it into unplanned out-of-band work and leaves it unrecorded in the run ledger.
|
|
48
|
+
- A divergence between the frozen spec/design and the shipped code is a finding, never a note: cite the spec line and the code line in the same finding.
|
|
49
|
+
- Before freezing a wire contract, confirm the stated behaviour against the repository's existing handler/decoder convention; a spec that contradicts the codebase convention is the same finding class.
|
|
50
|
+
|
|
42
51
|
## Stack notes
|
|
43
52
|
|
|
44
53
|
- Hexagonal boundaries: `architecture-boundaries`, `domain-layer`, ports vs adapters.
|
|
@@ -28,6 +28,4 @@ Boundaries — **`architecture-boundaries.md`**. Tooling — requestable **`go-t
|
|
|
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`.
|
|
@@ -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.
|
|
@@ -56,6 +56,23 @@ Bootstrap a slug by **writing** `pipeline.json` (editor Write tool). Do not `mkd
|
|
|
56
56
|
|
|
57
57
|
Prefer `phase: executing`. States: `in_progress`, `completed`, `awaiting_approval` (`/task-continue`), `changes_requested`, `validation_failed`, `blocked` (graph mode still dispatches independent ready steps), `awaiting_artifact_receipt`.
|
|
58
58
|
|
|
59
|
+
## artifact-manifest.json — write protocol
|
|
60
|
+
|
|
61
|
+
The manifest is a **whole-file merge target**. Producers rewrite it, and every write refreshes `updatedAt`, so a fragment/replace edit of the JSON fails its match and aborts the receipt. Merge by entry `id` and rewrite the file:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
node .ai.local/scripts/manifest.mjs upsert --slug <slug> --id <id> --producer <agent> \
|
|
65
|
+
--outcome completed --paths brief.md,decomposition.md --acs AC-1 --tasks T1 --attempt <attemptId>
|
|
66
|
+
node .ai.local/scripts/manifest.mjs check --slug <slug>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
- Absent file → `manifest.mjs init --slug <slug>` (the hook seeds the same skeleton).
|
|
70
|
+
- Never patch the JSON with a fragment/replace edit (`edit`, `str_replace`, `apply_patch`): a foreign parallel write or a refreshed `updatedAt` breaks the match, the produced artifact ends up without a receipt, and the step stalls in `awaiting_artifact_receipt`.
|
|
71
|
+
- Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
|
|
72
|
+
- Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
|
|
73
|
+
- Plan closure → tick (`- [ ]` → `- [x]`) every `tasks.md` row this receipt closes, in the same turn. An unticked row makes `openspec list` report stale progress and hides the exit criteria from the next agent.
|
|
74
|
+
- Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
|
|
75
|
+
|
|
59
76
|
## Commands
|
|
60
77
|
|
|
61
78
|
```bash
|
|
@@ -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": "ios-swift",
|
|
5
5
|
"semanticSource": "cursor/ios-swift",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "a87ff507eb6fe5f8c05bec9b891d2c90b24cc971d8a3ab955160383c65d18f07",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -97,7 +97,7 @@ PASS | FAIL
|
|
|
97
97
|
|
|
98
98
|
Write the owned validation receipt (`completed` or `validation_failed`). Do not fix code — report only; the runtime owns `status.json`.
|
|
99
99
|
|
|
100
|
-
**Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`.
|
|
100
|
+
**Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`. A missing or stale attemptId causes `awaiting_artifact_receipt` stalls. Write the receipt as a whole-file merge — `node .ai.local/scripts/manifest.mjs upsert --slug <slug> --id <id> --producer <agent> --outcome <outcome> --attempt <attemptId> …` — and never patch the JSON with a fragment/replace edit: a foreign parallel write or a refreshed `updatedAt` breaks the match and aborts the receipt mid-task. If the merge or parse fails, re-read and merge again (at most twice), then report `blocked` with the error. <!-- shared-core: receipt-binding -->
|
|
101
101
|
|
|
102
102
|
## Artifact contract
|
|
103
103
|
|
|
@@ -109,7 +109,7 @@ Write the owned terminal receipt described under **Artifact contract**. If **REQ
|
|
|
109
109
|
|
|
110
110
|
Do not mix this output with retrospective facilitation — keep review and retro separate.
|
|
111
111
|
|
|
112
|
-
**Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`.
|
|
112
|
+
**Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`. A missing or stale attemptId causes `awaiting_artifact_receipt` stalls. Write the receipt as a whole-file merge — `node .ai.local/scripts/manifest.mjs upsert --slug <slug> --id <id> --producer <agent> --outcome <outcome> --attempt <attemptId> …` — and never patch the JSON with a fragment/replace edit: a foreign parallel write or a refreshed `updatedAt` breaks the match and aborts the receipt mid-task. If the merge or parse fails, re-read and merge again (at most twice), then report `blocked` with the error. <!-- shared-core: receipt-binding -->
|
|
113
113
|
|
|
114
114
|
## Design guidance
|
|
115
115
|
|
|
@@ -95,7 +95,7 @@ Handoff summary: root cause, recommended fix, files touched (if any), `fixApplie
|
|
|
95
95
|
|
|
96
96
|
Do not perform formal code review or write XCUITest plans — those are separate agents.
|
|
97
97
|
|
|
98
|
-
**Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`.
|
|
98
|
+
**Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`. A missing or stale attemptId causes `awaiting_artifact_receipt` stalls. Write the receipt as a whole-file merge — `node .ai.local/scripts/manifest.mjs upsert --slug <slug> --id <id> --producer <agent> --outcome <outcome> --attempt <attemptId> …` — and never patch the JSON with a fragment/replace edit: a foreign parallel write or a refreshed `updatedAt` breaks the match and aborts the receipt mid-task. If the merge or parse fails, re-read and merge again (at most twice), then report `blocked` with the error. <!-- shared-core: receipt-binding -->
|
|
99
99
|
|
|
100
100
|
## 3-fix architecture gate
|
|
101
101
|
|
|
@@ -81,7 +81,7 @@ When copying from `next` into `ios-swift` (or another stack):
|
|
|
81
81
|
|
|
82
82
|
Emit the owned implementation receipt with outcome `completed`. Handoff by layer + gaps for verifier/reviewer. No formal code review.
|
|
83
83
|
|
|
84
|
-
**Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`.
|
|
84
|
+
**Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`. A missing or stale attemptId causes `awaiting_artifact_receipt` stalls. Write the receipt as a whole-file merge — `node .ai.local/scripts/manifest.mjs upsert --slug <slug> --id <id> --producer <agent> --outcome <outcome> --attempt <attemptId> …` — and never patch the JSON with a fragment/replace edit: a foreign parallel write or a refreshed `updatedAt` breaks the match and aborts the receipt mid-task. If the merge or parse fails, re-read and merge again (at most twice), then report `blocked` with the error. <!-- shared-core: receipt-binding -->
|
|
85
85
|
|
|
86
86
|
## Design guidance
|
|
87
87
|
|
|
@@ -81,7 +81,7 @@ Provide summary:
|
|
|
81
81
|
- Gaps vs acceptance criteria
|
|
82
82
|
- Suggest `/technical-retro` with the slug when done
|
|
83
83
|
|
|
84
|
-
**Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`.
|
|
84
|
+
**Receipt binding.** When writing the terminal receipt to `artifact-manifest.json`, set `entry.receipt.attemptId = <attemptId supplied by the orchestrator>` (the orchestrator provides this via `attemptId` on invocation). The hook at `chain-team-phases.sh:readBoundReceiptOutcome` rejects entries whose `attemptId` does not match the current attempt, or whose `Date.parse(timestamps.completedAt) < Date.parse(attemptStartedAt)`. A missing or stale attemptId causes `awaiting_artifact_receipt` stalls. Write the receipt as a whole-file merge — `node .ai.local/scripts/manifest.mjs upsert --slug <slug> --id <id> --producer <agent> --outcome <outcome> --attempt <attemptId> …` — and never patch the JSON with a fragment/replace edit: a foreign parallel write or a refreshed `updatedAt` breaks the match and aborts the receipt mid-task. If the merge or parse fails, re-read and merge again (at most twice), then report `blocked` with the error. <!-- shared-core: receipt-binding -->
|
|
85
85
|
|
|
86
86
|
## Design guidance
|
|
87
87
|
|
|
@@ -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
|