@bonesofspring/ai-rules 0.2.80 → 0.2.84
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 +50 -0
- package/bin/lib/merged-config.js +49 -0
- package/bin/lib/seed-ai-local-team.js +2 -0
- package/bin/mavis-install.js +53 -3
- package/docs/MAVIS-COMPATIBILITY.md +136 -8
- package/docs/PRESET-CONTRIBUTION.md +9 -0
- package/package.json +4 -1
- package/presets/_shared/ai-local/scripts/check-task-repositories.mjs +20 -2
- package/presets/_shared/ai-local/scripts/check-verification.mjs +13 -6
- package/presets/_shared/ai-local/scripts/rr-migrate-repositories.mjs +66 -16
- package/presets/_shared/ai-local/scripts/run-compact.mjs +38 -10
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +1 -0
- package/presets/_shared/core/review/code-review-mr.md +19 -4
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +40 -0
- package/presets/_shared/hooks/compact-shell-output.mjs +16 -1
- package/presets/claude/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/claude/android-kotlin/commands/update.md +1 -0
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/claude/go/agents/code-reviewer.md +5 -1
- package/presets/claude/go/commands/update.md +1 -0
- package/presets/claude/go/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/go/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/go/skills/code-review/SKILL.md +2 -1
- package/presets/claude/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/claude/ios-swift/commands/update.md +1 -0
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/claude/java/agents/code-reviewer.md +5 -1
- package/presets/claude/java/commands/update.md +1 -0
- package/presets/claude/java/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/java/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/java/skills/code-review/SKILL.md +2 -1
- package/presets/claude/mcp-ts/commands/update.md +1 -0
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/mol/REPO_AGENTS.md +1 -1
- package/presets/claude/mol/agents/code-reviewer.md +5 -1
- package/presets/claude/mol/agents/task-router.md +1 -1
- package/presets/claude/mol/commands/update.md +1 -0
- package/presets/claude/mol/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/mol/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/mol/skills/code-review/SKILL.md +2 -1
- package/presets/claude/next/REPO_AGENTS.md +1 -1
- package/presets/claude/next/agents/code-reviewer.md +5 -1
- package/presets/claude/next/agents/task-router.md +1 -1
- package/presets/claude/next/commands/update.md +1 -0
- package/presets/claude/next/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/next/skills/code-review/SKILL.md +2 -1
- package/presets/claude/nuxt/agents/code-reviewer.md +5 -1
- package/presets/claude/nuxt/agents/task-router.md +1 -1
- package/presets/claude/nuxt/commands/update.md +1 -0
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/claude/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/claude/php-hexagonal/commands/update.md +1 -0
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/claude/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/claude/php-laravel/commands/update.md +1 -0
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/claude/svelte/agents/code-reviewer.md +5 -1
- package/presets/claude/svelte/agents/task-router.md +1 -1
- package/presets/claude/svelte/commands/update.md +1 -0
- package/presets/claude/svelte/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/cursor/android-kotlin/commands/update.md +1 -0
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/android-kotlin/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/android-kotlin/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/go/agents/code-reviewer.md +5 -1
- package/presets/cursor/go/commands/update.md +1 -0
- package/presets/cursor/go/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/go/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/go/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/go/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/cursor/ios-swift/commands/update.md +1 -0
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/ios-swift/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/ios-swift/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/java/agents/code-reviewer.md +5 -1
- package/presets/cursor/java/commands/update.md +1 -0
- package/presets/cursor/java/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/java/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/java/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/java/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/mcp-ts/commands/update.md +1 -0
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/mcp-ts/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/mol/REPO_AGENTS.md +1 -1
- package/presets/cursor/mol/agents/code-reviewer.md +5 -1
- package/presets/cursor/mol/agents/task-router.md +1 -1
- package/presets/cursor/mol/commands/update.md +1 -0
- package/presets/cursor/mol/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/mol/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/mol/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/mol/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/next/REPO_AGENTS.md +1 -1
- package/presets/cursor/next/agents/code-reviewer.md +5 -1
- package/presets/cursor/next/agents/task-router.md +1 -1
- package/presets/cursor/next/commands/update.md +1 -0
- package/presets/cursor/next/hooks/README.md +2 -0
- package/presets/cursor/next/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/next/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/next/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/next/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/nuxt/agents/code-reviewer.md +5 -1
- package/presets/cursor/nuxt/agents/task-router.md +1 -1
- package/presets/cursor/nuxt/commands/update.md +1 -0
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/nuxt/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/nuxt/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/cursor/php-hexagonal/commands/update.md +1 -0
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/php-hexagonal/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/cursor/php-laravel/commands/update.md +1 -0
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/php-laravel/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/php-laravel/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/svelte/agents/code-reviewer.md +5 -1
- package/presets/cursor/svelte/agents/task-router.md +1 -1
- package/presets/cursor/svelte/commands/update.md +1 -0
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/svelte/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/svelte/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/android-kotlin/MAVIS.md +9 -3
- package/presets/mavis/android-kotlin/README.md +3 -1
- package/presets/mavis/android-kotlin/adapter-map.json +104 -44
- package/presets/mavis/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/mavis/android-kotlin/commands/update.md +1 -0
- package/presets/mavis/android-kotlin/hooks/README.md +29 -7
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/android-kotlin/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/android-kotlin/hooks/run-hook.mjs +103 -0
- package/presets/mavis/android-kotlin/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/android-kotlin/native-skills/README.md +15 -0
- package/presets/mavis/android-kotlin/native-skills/ci-investigation/SKILL.md +53 -0
- package/presets/mavis/android-kotlin/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/android-kotlin/native-skills/debug-investigation/SKILL.md +72 -0
- package/presets/mavis/android-kotlin/native-skills/feature-delivery/SKILL.md +51 -0
- package/presets/mavis/android-kotlin/native-skills/instrumentation-ui-e2e/SKILL.md +23 -0
- package/presets/mavis/android-kotlin/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/android-kotlin/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/android-kotlin/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/android-kotlin/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/android-kotlin/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/android-kotlin/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/android-kotlin/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/android-kotlin/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/android-kotlin/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/android-kotlin/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/android-kotlin/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/android-kotlin/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/android-kotlin/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/android-kotlin/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/mavis/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/go/MAVIS.md +9 -3
- package/presets/mavis/go/README.md +3 -1
- package/presets/mavis/go/adapter-map.json +94 -40
- package/presets/mavis/go/agents/code-reviewer.md +5 -1
- package/presets/mavis/go/commands/update.md +1 -0
- package/presets/mavis/go/hooks/README.md +29 -7
- package/presets/mavis/go/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/go/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/go/hooks/run-hook.mjs +103 -0
- package/presets/mavis/go/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/go/native-skills/README.md +15 -0
- package/presets/mavis/go/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/go/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/go/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/go/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/go/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/go/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/go/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/go/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/go/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/go/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/go/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/go/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/go/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/go/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/go/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/go/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/go/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/go/rules/code-review-mr.md +19 -4
- package/presets/mavis/go/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/ios-swift/MAVIS.md +9 -3
- package/presets/mavis/ios-swift/README.md +3 -1
- package/presets/mavis/ios-swift/adapter-map.json +104 -44
- package/presets/mavis/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/mavis/ios-swift/commands/update.md +1 -0
- package/presets/mavis/ios-swift/hooks/README.md +29 -7
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/ios-swift/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/ios-swift/hooks/run-hook.mjs +103 -0
- package/presets/mavis/ios-swift/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/ios-swift/native-skills/README.md +15 -0
- package/presets/mavis/ios-swift/native-skills/ci-investigation/SKILL.md +53 -0
- package/presets/mavis/ios-swift/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/ios-swift/native-skills/debug-investigation/SKILL.md +72 -0
- package/presets/mavis/ios-swift/native-skills/feature-delivery/SKILL.md +51 -0
- package/presets/mavis/ios-swift/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/ios-swift/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/ios-swift/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/ios-swift/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/ios-swift/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/ios-swift/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/ios-swift/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/ios-swift/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/ios-swift/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/ios-swift/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/ios-swift/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/ios-swift/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/ios-swift/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/ios-swift/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/ios-swift/native-skills/xcuitest-e2e/SKILL.md +39 -0
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/mavis/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/java/MAVIS.md +9 -3
- package/presets/mavis/java/README.md +3 -1
- package/presets/mavis/java/adapter-map.json +94 -40
- package/presets/mavis/java/agents/code-reviewer.md +5 -1
- package/presets/mavis/java/commands/update.md +1 -0
- package/presets/mavis/java/hooks/README.md +29 -7
- package/presets/mavis/java/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/java/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/java/hooks/run-hook.mjs +103 -0
- package/presets/mavis/java/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/java/native-skills/README.md +15 -0
- package/presets/mavis/java/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/java/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/java/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/java/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/java/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/java/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/java/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/java/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/java/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/java/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/java/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/java/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/java/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/java/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/java/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/java/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/java/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/java/rules/code-review-mr.md +19 -4
- package/presets/mavis/java/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/mcp-ts/MAVIS.md +9 -3
- package/presets/mavis/mcp-ts/README.md +3 -1
- package/presets/mavis/mcp-ts/adapter-map.json +77 -32
- package/presets/mavis/mcp-ts/commands/update.md +1 -0
- package/presets/mavis/mcp-ts/hooks/README.md +29 -7
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/mcp-ts/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/mcp-ts/hooks/run-hook.mjs +103 -0
- package/presets/mavis/mcp-ts/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/mcp-ts/native-skills/README.md +15 -0
- package/presets/mavis/mcp-ts/native-skills/code-review/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/debug-investigation/SKILL.md +51 -0
- package/presets/mavis/mcp-ts/native-skills/feature-delivery/SKILL.md +42 -0
- package/presets/mavis/mcp-ts/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/mcp-ts/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/mcp-ts/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/mcp-ts/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/mcp-ts/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/mcp-ts/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/mcp-ts/native-skills/technical-retro/SKILL.md +95 -0
- package/presets/mavis/mcp-ts/native-skills/unit-testing/SKILL.md +22 -0
- package/presets/mavis/mcp-ts/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/mavis/mol/MAVIS.md +9 -3
- package/presets/mavis/mol/README.md +3 -1
- package/presets/mavis/mol/REPO_AGENTS.md +1 -1
- package/presets/mavis/mol/adapter-map.json +94 -40
- package/presets/mavis/mol/agents/code-reviewer.md +5 -1
- package/presets/mavis/mol/agents/task-router.md +1 -1
- package/presets/mavis/mol/commands/update.md +1 -0
- package/presets/mavis/mol/hooks/README.md +29 -7
- package/presets/mavis/mol/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/mol/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/mol/hooks/run-hook.mjs +103 -0
- package/presets/mavis/mol/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/mol/native-skills/README.md +15 -0
- package/presets/mavis/mol/native-skills/ci-investigation/SKILL.md +49 -0
- package/presets/mavis/mol/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/mol/native-skills/debug-investigation/SKILL.md +63 -0
- package/presets/mavis/mol/native-skills/feature-delivery/SKILL.md +44 -0
- package/presets/mavis/mol/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/mol/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/mol/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/mol/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/mol/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/mol/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/mol/native-skills/task/SKILL.md +82 -0
- package/presets/mavis/mol/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/mol/native-skills/task-evil/SKILL.md +89 -0
- package/presets/mavis/mol/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/mol/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/mol/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/mol/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/mol/rules/code-review-mr.md +19 -4
- package/presets/mavis/mol/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/next/MAVIS.md +9 -3
- package/presets/mavis/next/README.md +3 -1
- package/presets/mavis/next/REPO_AGENTS.md +1 -1
- package/presets/mavis/next/adapter-map.json +128 -53
- package/presets/mavis/next/agents/code-reviewer.md +5 -1
- package/presets/mavis/next/agents/task-router.md +1 -1
- package/presets/mavis/next/commands/update.md +1 -0
- package/presets/mavis/next/hooks/README.md +29 -7
- package/presets/mavis/next/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/next/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/next/hooks/run-hook.mjs +103 -0
- package/presets/mavis/next/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/next/native-skills/README.md +15 -0
- package/presets/mavis/next/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/next/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/next/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/next/native-skills/feature-delivery/SKILL.md +45 -0
- package/presets/mavis/next/native-skills/figma-fidelity/SKILL.md +131 -0
- package/presets/mavis/next/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/next/native-skills/mockup-review/SKILL.md +44 -0
- package/presets/mavis/next/native-skills/playwright-e2e/SKILL.md +39 -0
- package/presets/mavis/next/native-skills/react-performance/SKILL.md +49 -0
- package/presets/mavis/next/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/next/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/next/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/next/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/next/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/next/native-skills/task/SKILL.md +88 -0
- package/presets/mavis/next/native-skills/task-continue/SKILL.md +87 -0
- package/presets/mavis/next/native-skills/task-evil/SKILL.md +89 -0
- package/presets/mavis/next/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/next/native-skills/ui-start/SKILL.md +64 -0
- package/presets/mavis/next/native-skills/ui-stop/SKILL.md +48 -0
- package/presets/mavis/next/native-skills/unit-testing/SKILL.md +40 -0
- package/presets/mavis/next/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/next/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/next/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/next/rules/code-review-mr.md +19 -4
- package/presets/mavis/next/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/nuxt/MAVIS.md +9 -3
- package/presets/mavis/nuxt/README.md +3 -1
- package/presets/mavis/nuxt/adapter-map.json +109 -46
- package/presets/mavis/nuxt/agents/code-reviewer.md +5 -1
- package/presets/mavis/nuxt/agents/task-router.md +1 -1
- package/presets/mavis/nuxt/commands/update.md +1 -0
- package/presets/mavis/nuxt/hooks/README.md +29 -7
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/nuxt/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/nuxt/hooks/run-hook.mjs +103 -0
- package/presets/mavis/nuxt/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/nuxt/native-skills/README.md +15 -0
- package/presets/mavis/nuxt/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/nuxt/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/nuxt/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/nuxt/native-skills/feature-delivery/SKILL.md +52 -0
- package/presets/mavis/nuxt/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/nuxt/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/nuxt/native-skills/playwright-e2e/SKILL.md +43 -0
- package/presets/mavis/nuxt/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/nuxt/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/nuxt/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/nuxt/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/nuxt/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/nuxt/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/nuxt/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/nuxt/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/nuxt/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/nuxt/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/nuxt/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/nuxt/native-skills/vue-performance/SKILL.md +58 -0
- package/presets/mavis/nuxt/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/nuxt/rules/code-review-mr.md +19 -4
- package/presets/mavis/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/php-hexagonal/MAVIS.md +9 -3
- package/presets/mavis/php-hexagonal/README.md +3 -1
- package/presets/mavis/php-hexagonal/adapter-map.json +94 -40
- package/presets/mavis/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/mavis/php-hexagonal/commands/update.md +1 -0
- package/presets/mavis/php-hexagonal/hooks/README.md +29 -7
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/php-hexagonal/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/php-hexagonal/hooks/run-hook.mjs +103 -0
- package/presets/mavis/php-hexagonal/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/php-hexagonal/native-skills/README.md +15 -0
- package/presets/mavis/php-hexagonal/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/php-hexagonal/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/php-hexagonal/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/php-hexagonal/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/php-hexagonal/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/php-hexagonal/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/php-hexagonal/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/php-hexagonal/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/php-hexagonal/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/php-hexagonal/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/php-hexagonal/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/php-hexagonal/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/php-hexagonal/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/php-hexagonal/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/mavis/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/php-laravel/MAVIS.md +9 -3
- package/presets/mavis/php-laravel/README.md +3 -1
- package/presets/mavis/php-laravel/adapter-map.json +94 -40
- package/presets/mavis/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/mavis/php-laravel/commands/update.md +1 -0
- package/presets/mavis/php-laravel/hooks/README.md +29 -7
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/php-laravel/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/php-laravel/hooks/run-hook.mjs +103 -0
- package/presets/mavis/php-laravel/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/php-laravel/native-skills/README.md +15 -0
- package/presets/mavis/php-laravel/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/php-laravel/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/php-laravel/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/php-laravel/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/php-laravel/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/php-laravel/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/php-laravel/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/php-laravel/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/php-laravel/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/php-laravel/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/php-laravel/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/php-laravel/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/php-laravel/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/php-laravel/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/php-laravel/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/php-laravel/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/php-laravel/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/mavis/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/platform-contract.json +18 -5
- package/presets/mavis/svelte/MAVIS.md +9 -3
- package/presets/mavis/svelte/README.md +3 -1
- package/presets/mavis/svelte/adapter-map.json +109 -46
- package/presets/mavis/svelte/agents/code-reviewer.md +5 -1
- package/presets/mavis/svelte/agents/task-router.md +1 -1
- package/presets/mavis/svelte/commands/update.md +1 -0
- package/presets/mavis/svelte/hooks/README.md +29 -7
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/svelte/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/svelte/hooks/run-hook.mjs +103 -0
- package/presets/mavis/svelte/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/svelte/native-skills/README.md +15 -0
- package/presets/mavis/svelte/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/svelte/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/svelte/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/svelte/native-skills/feature-delivery/SKILL.md +52 -0
- package/presets/mavis/svelte/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/svelte/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/svelte/native-skills/playwright-e2e/SKILL.md +43 -0
- package/presets/mavis/svelte/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/svelte/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/svelte/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/svelte/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/svelte/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/svelte/native-skills/svelte-performance/SKILL.md +57 -0
- package/presets/mavis/svelte/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/svelte/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/svelte/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/svelte/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/svelte/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/svelte/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/svelte/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/svelte/rules/code-review-mr.md +19 -4
- package/presets/mavis/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/android-kotlin/adapter-map.json +1 -1
- package/presets/opencode/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/opencode/android-kotlin/commands/update.md +1 -0
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/opencode/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/agents/code-reviewer.md +5 -1
- package/presets/opencode/go/commands/update.md +1 -0
- package/presets/opencode/go/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/go/rules/code-review-mr.md +19 -4
- package/presets/opencode/go/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/ios-swift/adapter-map.json +1 -1
- package/presets/opencode/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/opencode/ios-swift/commands/update.md +1 -0
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/opencode/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/agents/code-reviewer.md +5 -1
- package/presets/opencode/java/commands/update.md +1 -0
- package/presets/opencode/java/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/java/rules/code-review-mr.md +19 -4
- package/presets/opencode/java/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/mcp-ts/adapter-map.json +1 -1
- package/presets/opencode/mcp-ts/commands/update.md +1 -0
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/opencode/mol/REPO_AGENTS.md +1 -1
- package/presets/opencode/mol/adapter-map.json +1 -1
- package/presets/opencode/mol/agents/code-reviewer.md +5 -1
- package/presets/opencode/mol/agents/task-router.md +1 -1
- package/presets/opencode/mol/commands/update.md +1 -0
- package/presets/opencode/mol/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/mol/rules/code-review-mr.md +19 -4
- package/presets/opencode/mol/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/next/REPO_AGENTS.md +1 -1
- package/presets/opencode/next/adapter-map.json +1 -1
- package/presets/opencode/next/agents/code-reviewer.md +5 -1
- package/presets/opencode/next/agents/task-router.md +1 -1
- package/presets/opencode/next/commands/update.md +1 -0
- package/presets/opencode/next/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/next/rules/code-review-mr.md +19 -4
- package/presets/opencode/next/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/agents/code-reviewer.md +5 -1
- package/presets/opencode/nuxt/agents/task-router.md +1 -1
- package/presets/opencode/nuxt/commands/update.md +1 -0
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/nuxt/rules/code-review-mr.md +19 -4
- package/presets/opencode/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
- package/presets/opencode/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/opencode/php-hexagonal/commands/update.md +1 -0
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/opencode/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/php-laravel/adapter-map.json +1 -1
- package/presets/opencode/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/opencode/php-laravel/commands/update.md +1 -0
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/opencode/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/plugins/task-status/README.md +3 -2
- package/presets/opencode/plugins/task-status/deepseek.ts +58 -34
- package/presets/opencode/plugins/task-status/tui.tsx +17 -17
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/agents/code-reviewer.md +5 -1
- package/presets/opencode/svelte/agents/task-router.md +1 -1
- package/presets/opencode/svelte/commands/update.md +1 -0
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/svelte/rules/code-review-mr.md +19 -4
- package/presets/opencode/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/android-kotlin/adapter-map.json +1 -1
- package/presets/zcode/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/zcode/android-kotlin/commands/update.md +1 -0
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/zcode/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/go/adapter-map.json +1 -1
- package/presets/zcode/go/agents/code-reviewer.md +5 -1
- package/presets/zcode/go/commands/update.md +1 -0
- package/presets/zcode/go/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/go/rules/code-review-mr.md +19 -4
- package/presets/zcode/go/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/ios-swift/adapter-map.json +1 -1
- package/presets/zcode/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/zcode/ios-swift/commands/update.md +1 -0
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/zcode/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/java/adapter-map.json +1 -1
- package/presets/zcode/java/agents/code-reviewer.md +5 -1
- package/presets/zcode/java/commands/update.md +1 -0
- package/presets/zcode/java/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/java/rules/code-review-mr.md +19 -4
- package/presets/zcode/java/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/mcp-ts/adapter-map.json +1 -1
- package/presets/zcode/mcp-ts/commands/update.md +1 -0
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/zcode/mol/REPO_AGENTS.md +1 -1
- package/presets/zcode/mol/adapter-map.json +1 -1
- package/presets/zcode/mol/agents/code-reviewer.md +5 -1
- package/presets/zcode/mol/agents/task-router.md +1 -1
- package/presets/zcode/mol/commands/update.md +1 -0
- package/presets/zcode/mol/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/mol/rules/code-review-mr.md +19 -4
- package/presets/zcode/mol/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/next/REPO_AGENTS.md +1 -1
- package/presets/zcode/next/adapter-map.json +1 -1
- package/presets/zcode/next/agents/code-reviewer.md +5 -1
- package/presets/zcode/next/agents/task-router.md +1 -1
- package/presets/zcode/next/commands/update.md +1 -0
- package/presets/zcode/next/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/next/rules/code-review-mr.md +19 -4
- package/presets/zcode/next/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/nuxt/adapter-map.json +1 -1
- package/presets/zcode/nuxt/agents/code-reviewer.md +5 -1
- package/presets/zcode/nuxt/agents/task-router.md +1 -1
- package/presets/zcode/nuxt/commands/update.md +1 -0
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/nuxt/rules/code-review-mr.md +19 -4
- package/presets/zcode/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/php-hexagonal/adapter-map.json +1 -1
- package/presets/zcode/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/zcode/php-hexagonal/commands/update.md +1 -0
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/zcode/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/php-laravel/adapter-map.json +1 -1
- package/presets/zcode/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/zcode/php-laravel/commands/update.md +1 -0
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/zcode/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/svelte/adapter-map.json +1 -1
- package/presets/zcode/svelte/agents/code-reviewer.md +5 -1
- package/presets/zcode/svelte/agents/task-router.md +1 -1
- package/presets/zcode/svelte/commands/update.md +1 -0
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/svelte/rules/code-review-mr.md +19 -4
- package/presets/zcode/svelte/skills/code-review/SKILL.md +2 -1
|
@@ -15,9 +15,13 @@
|
|
|
15
15
|
* submodule or a linked worktree, not a repository of its own, and is skipped;
|
|
16
16
|
* - hidden directories, `node_modules`, and symlinked directories are skipped;
|
|
17
17
|
* - repositories with one remote are collapsed to the shallowest clone.
|
|
18
|
+
* - a remote URL is stored without its clone-time credentials, so a token in
|
|
19
|
+
* `remote.origin.url` never reaches the registry or the projection.
|
|
18
20
|
*
|
|
19
21
|
* Records are never deleted: a repository absent from the current scan may have
|
|
20
|
-
* been moved, or the scan may cover only part of the disk.
|
|
22
|
+
* been moved, or the scan may cover only part of the disk. An absent record's id
|
|
23
|
+
* is reused only with `--reuse-orphan-ids`: a same-named clone can just as well
|
|
24
|
+
* be a different repository, and a silent reuse re-points every task link.
|
|
21
25
|
*
|
|
22
26
|
* Usage:
|
|
23
27
|
* node .ai.local/scripts/rr-migrate-repositories.mjs [options]
|
|
@@ -29,6 +33,7 @@
|
|
|
29
33
|
* --repo-root <dir> repository whose parent is scanned by default (default: git toplevel, else cwd)
|
|
30
34
|
* --dry-run print the plan and write nothing
|
|
31
35
|
* --no-update create missing records only; never update an existing one
|
|
36
|
+
* --reuse-orphan-ids reuse an absent record's id for a same-named clone (a renamed remote)
|
|
32
37
|
* --json machine-readable summary
|
|
33
38
|
* --help
|
|
34
39
|
*
|
|
@@ -57,6 +62,7 @@ export const USAGE = `Usage: node .ai.local/scripts/rr-migrate-repositories.mjs
|
|
|
57
62
|
--repo-root <dir> repository whose parent is scanned by default
|
|
58
63
|
--dry-run print the plan and write nothing
|
|
59
64
|
--no-update create missing records only; never update an existing one
|
|
65
|
+
--reuse-orphan-ids reuse an absent record's id for a same-named clone (a renamed remote)
|
|
60
66
|
--json machine-readable summary
|
|
61
67
|
--help this text`;
|
|
62
68
|
|
|
@@ -75,10 +81,18 @@ export const normaliseLocator = (locator) =>
|
|
|
75
81
|
.replace(/^git\+/, '')
|
|
76
82
|
.replace(/^ssh:\/\/git@/, '')
|
|
77
83
|
.replace(/^git@([^:]+):/, '$1/')
|
|
84
|
+
// A clone-time credential is not part of a repository's identity.
|
|
85
|
+
.replace(/^(?:https?|ssh|git):\/\/[^/@]*@/, '')
|
|
78
86
|
.replace(/^(?:https?|ssh|git):\/\//, '')
|
|
79
87
|
.replace(/\.git\/?$/, '')
|
|
80
88
|
.replace(/\/+$/, '');
|
|
81
89
|
|
|
90
|
+
/** The same locator with any clone-time credential removed. */
|
|
91
|
+
export const redactCredentials = (locator) =>
|
|
92
|
+
String(locator)
|
|
93
|
+
.trim()
|
|
94
|
+
.replace(/^(git\+)?(https?|ssh|git):\/\/[^/@]*@/i, '$1$2://');
|
|
95
|
+
|
|
82
96
|
/** A stable registry key for a remote URL or an absolute path. */
|
|
83
97
|
export const locatorKey = (locator) => {
|
|
84
98
|
const value = String(locator).trim();
|
|
@@ -140,7 +154,7 @@ export const collectFromRoot = (root, depth) => {
|
|
|
140
154
|
skipped.push({ path: directory, reason: 'submodule-or-worktree' });
|
|
141
155
|
return;
|
|
142
156
|
}
|
|
143
|
-
const remote = gitValue(directory, ['config', '--get', 'remote.origin.url']);
|
|
157
|
+
const remote = redactCredentials(gitValue(directory, ['config', '--get', 'remote.origin.url']));
|
|
144
158
|
found.push({
|
|
145
159
|
path: directory,
|
|
146
160
|
real,
|
|
@@ -190,11 +204,13 @@ export const dedupeRepositories = (found) => {
|
|
|
190
204
|
return { repositories, duplicates };
|
|
191
205
|
};
|
|
192
206
|
|
|
207
|
+
const limitId = (value) => value.slice(0, MAX_ID_LENGTH).replace(/-+$/, '') || 'repository';
|
|
208
|
+
|
|
193
209
|
/**
|
|
194
210
|
* Assign an id to every scanned repository. A record whose locator already
|
|
195
211
|
* exists keeps its id, so a re-run never renames or duplicates a record.
|
|
196
212
|
*/
|
|
197
|
-
export const assignIds = (repositories, existingRecords) => {
|
|
213
|
+
export const assignIds = (repositories, existingRecords, { reuseOrphanIds = false } = {}) => {
|
|
198
214
|
const existingByKey = new Map();
|
|
199
215
|
const existingById = new Map();
|
|
200
216
|
for (const record of existingRecords) {
|
|
@@ -214,27 +230,36 @@ export const assignIds = (repositories, existingRecords) => {
|
|
|
214
230
|
const key = locatorKey(entry.locator);
|
|
215
231
|
const known = existingByKey.get(key);
|
|
216
232
|
let id = known ? known.id : slugify(entry.name);
|
|
233
|
+
let orphanCandidate = null;
|
|
217
234
|
if (!known) {
|
|
218
|
-
//
|
|
219
|
-
//
|
|
235
|
+
// An absent record whose directory name matches is a candidate for a
|
|
236
|
+
// renamed remote — reported, and reused only on request, because the same
|
|
237
|
+
// name can just as well be a different repository.
|
|
220
238
|
const orphan = existingById.get(id);
|
|
221
|
-
|
|
222
|
-
|
|
239
|
+
if (orphan !== undefined && !matched.has(id) && !reused.has(id)) {
|
|
240
|
+
orphanCandidate = { id: orphan.id, locator: orphan.locator };
|
|
241
|
+
}
|
|
242
|
+
if (orphanCandidate !== null && reuseOrphanIds) {
|
|
223
243
|
reused.add(id);
|
|
224
244
|
} else if (used.has(id)) {
|
|
225
245
|
const parent = slugify(path.basename(path.dirname(entry.path)));
|
|
226
|
-
let candidate = `${parent}-${id}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
candidate = `${id
|
|
246
|
+
let candidate = limitId(`${parent}-${id}`);
|
|
247
|
+
let counter = 2;
|
|
248
|
+
while (used.has(candidate)) {
|
|
249
|
+
const suffix = `-${counter}`;
|
|
250
|
+
candidate = limitId(`${id.slice(0, MAX_ID_LENGTH - suffix.length)}${suffix}`);
|
|
251
|
+
counter += 1;
|
|
231
252
|
}
|
|
232
253
|
id = candidate;
|
|
233
|
-
used.add(id);
|
|
234
254
|
}
|
|
235
255
|
}
|
|
236
256
|
used.add(id);
|
|
237
|
-
planned.push({
|
|
257
|
+
planned.push({
|
|
258
|
+
...entry,
|
|
259
|
+
id,
|
|
260
|
+
orphanCandidate,
|
|
261
|
+
orphanReused: orphanCandidate !== null && reuseOrphanIds,
|
|
262
|
+
});
|
|
238
263
|
}
|
|
239
264
|
return planned;
|
|
240
265
|
};
|
|
@@ -266,7 +291,11 @@ export const derivePlan = (planned, existingRecords, { update = true } = {}) =>
|
|
|
266
291
|
continue;
|
|
267
292
|
}
|
|
268
293
|
const same =
|
|
269
|
-
prior.name === name &&
|
|
294
|
+
prior.name === name &&
|
|
295
|
+
locatorKey(prior.locator) === locatorKey(entry.locator) &&
|
|
296
|
+
// A credential-bearing locator written by an older run is rewritten.
|
|
297
|
+
prior.locator === entry.locator &&
|
|
298
|
+
prior.status === 'active';
|
|
270
299
|
if (same) {
|
|
271
300
|
unchanged.push(entry.id);
|
|
272
301
|
continue;
|
|
@@ -299,6 +328,7 @@ const parseArgs = (argv) => {
|
|
|
299
328
|
repoRoot: null,
|
|
300
329
|
dryRun: false,
|
|
301
330
|
update: true,
|
|
331
|
+
reuseOrphanIds: false,
|
|
302
332
|
json: false,
|
|
303
333
|
};
|
|
304
334
|
const value = (token, index) => {
|
|
@@ -326,6 +356,8 @@ const parseArgs = (argv) => {
|
|
|
326
356
|
options.dryRun = true;
|
|
327
357
|
} else if (token === '--no-update') {
|
|
328
358
|
options.update = false;
|
|
359
|
+
} else if (token === '--reuse-orphan-ids') {
|
|
360
|
+
options.reuseOrphanIds = true;
|
|
329
361
|
} else if (token === '--json') {
|
|
330
362
|
options.json = true;
|
|
331
363
|
} else if (token === '--help' || token === '-h') {
|
|
@@ -416,8 +448,17 @@ function main() {
|
|
|
416
448
|
|
|
417
449
|
const listed = runTeamDb(['repositories', 'list', '--root', teamRoot]).summary;
|
|
418
450
|
const existing = Array.isArray(listed?.repositories) ? listed.repositories : [];
|
|
419
|
-
const planned = assignIds(repositories, existing);
|
|
451
|
+
const planned = assignIds(repositories, existing, { reuseOrphanIds: options.reuseOrphanIds });
|
|
420
452
|
const plan = derivePlan(planned, existing, { update: options.update });
|
|
453
|
+
const orphanCandidates = planned
|
|
454
|
+
.filter((entry) => entry.orphanCandidate !== null)
|
|
455
|
+
.map((entry) => ({
|
|
456
|
+
id: entry.orphanCandidate.id,
|
|
457
|
+
previousLocator: entry.orphanCandidate.locator,
|
|
458
|
+
locator: entry.locator,
|
|
459
|
+
path: entry.path,
|
|
460
|
+
reused: entry.orphanReused,
|
|
461
|
+
}));
|
|
421
462
|
|
|
422
463
|
const disabled = isDisabled(process.env.AI_RULES_TEAM_DB_DISABLE);
|
|
423
464
|
const summary = {
|
|
@@ -430,6 +471,7 @@ function main() {
|
|
|
430
471
|
repositories: planned.length,
|
|
431
472
|
duplicates: duplicates.length,
|
|
432
473
|
skipped: skipped.length,
|
|
474
|
+
orphanCandidates,
|
|
433
475
|
registry: {
|
|
434
476
|
existing: existing.length,
|
|
435
477
|
create: plan.create.length,
|
|
@@ -464,6 +506,14 @@ function main() {
|
|
|
464
506
|
console.log(
|
|
465
507
|
`registry: existing=${summary.registry.existing} create=${summary.registry.create} update=${summary.registry.update} unchanged=${summary.registry.unchanged} not-on-disk=${summary.registry.notOnDisk}`,
|
|
466
508
|
);
|
|
509
|
+
for (const candidate of orphanCandidates) {
|
|
510
|
+
console.log(
|
|
511
|
+
`orphan-id: ${candidate.id} ${candidate.reused ? 'reused' : 'available'} was=${candidate.previousLocator} now=${candidate.locator} path=${candidate.path}`,
|
|
512
|
+
);
|
|
513
|
+
}
|
|
514
|
+
if (!options.reuseOrphanIds && orphanCandidates.length > 0) {
|
|
515
|
+
console.log('orphan-id: pass --reuse-orphan-ids to treat a same-named clone as a renamed remote');
|
|
516
|
+
}
|
|
467
517
|
if (summary.dryRun) {
|
|
468
518
|
console.log(disabled ? DISABLED_LINE : 'dry-run: nothing written');
|
|
469
519
|
if (disabled) console.log('run with AI_RULES_TEAM_DB_DISABLE unset to write');
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Run a command, store its combined output, and print a short view.
|
|
3
3
|
// Exit with the child status so a passing store cannot hide a failing test.
|
|
4
|
+
// The child writes straight into a file: a buffer cap here would kill a verbose
|
|
5
|
+
// run and report a failure the command never produced.
|
|
4
6
|
|
|
5
7
|
import { spawnSync } from 'node:child_process';
|
|
6
8
|
import fs from 'node:fs';
|
|
@@ -12,7 +14,7 @@ import { resolveTeamRoot } from './dump-output.mjs';
|
|
|
12
14
|
const PASS_THROUGH_BYTES = 4096;
|
|
13
15
|
const HEAD_LINES = 40;
|
|
14
16
|
const HEAD_BYTES = 8 * 1024;
|
|
15
|
-
const
|
|
17
|
+
const SCAN_BYTES = 8 * 1024 * 1024;
|
|
16
18
|
const FAIL_LINE = /\b(FAIL|ERROR|Error|AssertionError)\b|✗|×/u;
|
|
17
19
|
|
|
18
20
|
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
@@ -50,6 +52,24 @@ const footerOf = (dumpStdout) =>
|
|
|
50
52
|
.filter((line) => line.startsWith('bytes: ') || line.startsWith('path: ') || line.startsWith('grep -n '))
|
|
51
53
|
.join('\n');
|
|
52
54
|
|
|
55
|
+
/** First `limit` bytes of a file, so a multi-gigabyte dump never lands in memory. */
|
|
56
|
+
const readHead = (file, limit) => {
|
|
57
|
+
const fd = fs.openSync(file, 'r');
|
|
58
|
+
try {
|
|
59
|
+
const size = Math.min(fs.fstatSync(fd).size, limit);
|
|
60
|
+
const buffer = Buffer.alloc(size);
|
|
61
|
+
let read = 0;
|
|
62
|
+
while (read < size) {
|
|
63
|
+
const chunk = fs.readSync(fd, buffer, read, size - read, read);
|
|
64
|
+
if (chunk === 0) break;
|
|
65
|
+
read += chunk;
|
|
66
|
+
}
|
|
67
|
+
return buffer.subarray(0, read).toString('utf8');
|
|
68
|
+
} finally {
|
|
69
|
+
fs.closeSync(fd);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
53
73
|
const failureLines = (text) => {
|
|
54
74
|
const lines = text.split('\n');
|
|
55
75
|
if (lines.length > 0 && lines[lines.length - 1] === '') lines.pop();
|
|
@@ -81,16 +101,24 @@ const viewFor = ({ dumpStdout, storedText, storedBytes }) => {
|
|
|
81
101
|
const run = ({ task, root, child }) => {
|
|
82
102
|
const teamRoot = root ? path.resolve(root) : resolveTeamRoot(process.cwd());
|
|
83
103
|
if (!teamRoot) usageFail('no .ai.local/team found above the current directory; pass --root <team-dir>');
|
|
84
|
-
const captured = spawnSync(child[0], child.slice(1), {
|
|
85
|
-
cwd: process.cwd(),
|
|
86
|
-
maxBuffer: CAPTURE_BYTES,
|
|
87
|
-
});
|
|
88
|
-
const status = captured.status ?? 128;
|
|
89
|
-
const body = Buffer.concat([captured.stdout ?? Buffer.alloc(0), captured.stderr ?? Buffer.alloc(0)]);
|
|
90
104
|
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'run-compact-'));
|
|
91
105
|
const input = path.join(dir, 'output.bin');
|
|
92
106
|
try {
|
|
93
|
-
fs.
|
|
107
|
+
const fd = fs.openSync(input, 'w');
|
|
108
|
+
let captured;
|
|
109
|
+
try {
|
|
110
|
+
captured = spawnSync(child[0], child.slice(1), {
|
|
111
|
+
cwd: process.cwd(),
|
|
112
|
+
stdio: ['ignore', fd, fd],
|
|
113
|
+
});
|
|
114
|
+
} finally {
|
|
115
|
+
fs.closeSync(fd);
|
|
116
|
+
}
|
|
117
|
+
if (captured.error) {
|
|
118
|
+
process.stderr.write(`run-compact: ${captured.error.message}\n`);
|
|
119
|
+
return 127;
|
|
120
|
+
}
|
|
121
|
+
const status = captured.status ?? 128;
|
|
94
122
|
const stored = spawnSync(
|
|
95
123
|
process.execPath,
|
|
96
124
|
[dumpScript, '--input', input, '--task', task, '--label', 'compact', '--root', teamRoot],
|
|
@@ -101,8 +129,8 @@ const run = ({ task, root, child }) => {
|
|
|
101
129
|
return status;
|
|
102
130
|
}
|
|
103
131
|
const storedBytesMatch = stored.stdout.match(/^bytes: (\d+)/m);
|
|
104
|
-
const storedBytes = storedBytesMatch ? Number(storedBytesMatch[1]) :
|
|
105
|
-
const storedText =
|
|
132
|
+
const storedBytes = storedBytesMatch ? Number(storedBytesMatch[1]) : fs.statSync(input).size;
|
|
133
|
+
const storedText = readHead(input, SCAN_BYTES);
|
|
106
134
|
const view = viewFor({ dumpStdout: stored.stdout, storedText, storedBytes });
|
|
107
135
|
const shownBytes = Buffer.byteLength(view);
|
|
108
136
|
process.stdout.write(view);
|
|
@@ -126,6 +126,7 @@ Each slug has one `artifact-manifest.json` at `.ai.local/team/tasks/<slug>/`. Th
|
|
|
126
126
|
- 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.
|
|
127
127
|
- 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.
|
|
128
128
|
- Missing/stale manifests are reported as a handoff gap; fall back to `brief.md`, `decomposition.md`, and `pipeline.json` rather than inventing authority.
|
|
129
|
+
- A step that names a gate agent (`build-verifier`, `code-reviewer`, `mockup-reviewer`, `security-reviewer`, `accessibility-reviewer`, `api-contract-reviewer`, `performance-auditor`) is a promise the plan made to the diff: the hook blocks `completed` while its receipt is missing, with or without `.ai.local/pipeline-gates.json`. An intentional skip is recorded in `status.skippedSteps` with its reason — never by dropping the step quietly.
|
|
129
130
|
|
|
130
131
|
## Out-of-band producer passes
|
|
131
132
|
|
|
@@ -25,7 +25,7 @@ Concrete rule stems — in **Stack notes**.
|
|
|
25
25
|
|
|
26
26
|
## Depth passes
|
|
27
27
|
|
|
28
|
-
A diff-shaped read is a floor, not a review. Run these
|
|
28
|
+
A diff-shaped read is a floor, not a review. Run these six passes on every non-trivial review and record each one under `## Depth passes` in the review artifact as exactly one of:
|
|
29
29
|
|
|
30
30
|
- **`finding`** — reported like any other finding, with `path:line`.
|
|
31
31
|
- **`no finding`** — with one line of evidence: what was searched or read.
|
|
@@ -39,10 +39,11 @@ An outcome word alone is not a record: `no finding` without its evidence line, o
|
|
|
39
39
|
3. **Trust boundary** — which data crosses a trust boundary in this change, and where is it validated. Data reaching storage, logs, HTML, SQL, shell, or an outbound request without an edge check is a finding.
|
|
40
40
|
4. **Test gap** — not "is there a test" but "which behaviour change would still pass every existing test". That gap is the finding.
|
|
41
41
|
5. **Half-life** — what breaks in six months: hidden coupling, implicit contract, missing migration, an unowned copy of the same rule.
|
|
42
|
+
6. **Executable surface** — when the diff touches anything that runs outside app code (`*.mjs`, hooks, `scripts/`, CI steps): state the working directory the code assumes, quote every path spliced into a shell string, and check that a spawn cannot kill or truncate the command it wraps. A config-derived value written into storage carries no credential, and a migration or scan re-runs with a stable id.
|
|
42
43
|
|
|
43
44
|
## Review breadth budget
|
|
44
45
|
|
|
45
|
-
- Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The
|
|
46
|
+
- Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The six depth passes still run on what was read.
|
|
46
47
|
- Budget: the changed exports, types, routes, and events in the diff, plus one hop of their consumers. Read no consumer that neither the diff nor a recorded finding names.
|
|
47
48
|
- Stop when either limit is reached: 40 changed-symbol call sites, or 15 minutes of breadth reads on one review.
|
|
48
49
|
- When the budget is exhausted, stop the sweep and record `partial` in `## Depth passes` for the call-site sweep, with every unread path or glob named inline.
|
|
@@ -65,8 +66,22 @@ Procedure details live in skill `code-review`. Required shape:
|
|
|
65
66
|
- Confidence is not a second severity: the verdict and the receipt still map from severity alone. A `blocker` at `low` confidence stands only with that confirming check named.
|
|
66
67
|
- Rank by severity: **`blocker` | `important` | `nit`** (list blocker → nit).
|
|
67
68
|
- Vague («looks risky») is not a finding — cite evidence or ask for surrounding file context.
|
|
68
|
-
-
|
|
69
|
-
-
|
|
69
|
+
- A behaviour you cannot settle by reading is a **question, not silence**. Put it under `## Open questions` as `- <question> — check: <the one check that would settle it> — blocker-candidate: yes | no`. A question needs no `path:line` and no `confidence`; leaving it out because it is unproven is the failure this section exists to prevent.
|
|
70
|
+
- End with a verdict on its own line: **`Safe to merge | safe to merge with questions | needs changes | reject`**. `safe to merge with questions` is allowed only with no `blocker`/`important` finding and at least one open question; the terminal receipt stays `completed`. A silent `Safe to merge` over an open question is not a verdict.
|
|
71
|
+
- Close with `## Not verified` — what was read shallowly, which pass could not run, which assumption went unchecked. An empty section reads `none`; never omit it. A depth pass recorded `unable to run` or `partial` over an executable surface (scripts, hooks, CI, migrations) forbids `Safe to merge` until the check runs or a human accepts it in writing.
|
|
72
|
+
|
|
73
|
+
## Review without an acceptance criterion
|
|
74
|
+
|
|
75
|
+
A change-set that no brief, decomposition, or plan names is still reviewable: the diff is the scope, and the verdict rests on it alone. State in `## Not verified` that no AC existed; absence of an AC is a scope fact, never a review exemption. When the plan is missing, review against these classes; a class you cannot settle by reading becomes an `## Open question`:
|
|
76
|
+
|
|
77
|
+
- null/undefined after `JSON.parse`, a missing key, or a shape the producer never promised;
|
|
78
|
+
- empty, boundary, repeated, and concurrent inputs;
|
|
79
|
+
- resource limits: buffers, timeouts, retries, exit codes, stdio;
|
|
80
|
+
- secrets and credentials reaching logs, files, URLs, or an outbound request;
|
|
81
|
+
- path resolution that assumes a cwd; quoting of argv and of interpolated shell;
|
|
82
|
+
- idempotency of migrations, re-runs, and partial failures;
|
|
83
|
+
- machine-local runtime state that a commit would carry;
|
|
84
|
+
- a second unowned copy of a rule that already exists elsewhere.
|
|
70
85
|
|
|
71
86
|
## Verdict and terminal receipt
|
|
72
87
|
|
|
@@ -1375,6 +1375,40 @@ function missingConsumerArtifacts() {
|
|
|
1375
1375
|
);
|
|
1376
1376
|
return ids.filter((id) => !done.has(id));
|
|
1377
1377
|
}
|
|
1378
|
+
// A step that names a gate agent is a promise the plan made to the diff. The
|
|
1379
|
+
// consumer config is optional, but a declared gate is not: an unreviewed diff
|
|
1380
|
+
// completed while the plan said "code-reviewer" reads as a passed review.
|
|
1381
|
+
// A step the run skipped (status.skippedSteps) or skipIf-matched never promised
|
|
1382
|
+
// anything, so it is not required here.
|
|
1383
|
+
const GATE_AGENTS = new Set([
|
|
1384
|
+
'build-verifier',
|
|
1385
|
+
'code-reviewer',
|
|
1386
|
+
'mockup-reviewer',
|
|
1387
|
+
'security-reviewer',
|
|
1388
|
+
'accessibility-reviewer',
|
|
1389
|
+
'api-contract-reviewer',
|
|
1390
|
+
'performance-auditor',
|
|
1391
|
+
]);
|
|
1392
|
+
function missingDeclaredGateArtifacts() {
|
|
1393
|
+
if (steps.length === 0) return [];
|
|
1394
|
+
let manifest = { artifacts: [] };
|
|
1395
|
+
try { manifest = JSON.parse(fs.readFileSync(path.join(taskDir, 'artifact-manifest.json'), 'utf8')); } catch {}
|
|
1396
|
+
const done = new Set(
|
|
1397
|
+
(manifest.artifacts || [])
|
|
1398
|
+
.filter((artifact) => artifact && artifact.status === 'completed')
|
|
1399
|
+
.map((artifact) => artifact.id),
|
|
1400
|
+
);
|
|
1401
|
+
const missing = [];
|
|
1402
|
+
steps.forEach((step, index) => {
|
|
1403
|
+
if (!step || isStepSkipped(index)) return;
|
|
1404
|
+
for (const agent of getStepAgents(step)) {
|
|
1405
|
+
if (!GATE_AGENTS.has(agent)) continue;
|
|
1406
|
+
const id = artifactOutputIdFor(step, agent);
|
|
1407
|
+
if (!done.has(id)) missing.push(`${id} (${agent}${step.id ? `, step ${step.id}` : ''})`);
|
|
1408
|
+
}
|
|
1409
|
+
});
|
|
1410
|
+
return [...new Set(missing)];
|
|
1411
|
+
}
|
|
1378
1412
|
function completePipeline(statusPatch) {
|
|
1379
1413
|
const missing = missingConsumerArtifacts();
|
|
1380
1414
|
if (missing.length > 0) {
|
|
@@ -1382,6 +1416,12 @@ function completePipeline(statusPatch) {
|
|
|
1382
1416
|
out(`Pipeline blocked for "${slug}": .ai.local/pipeline-gates.json requireArtifacts missing completed receipt(s): ${missing.join(', ')}.`);
|
|
1383
1417
|
process.exit(0);
|
|
1384
1418
|
}
|
|
1419
|
+
const missingGates = missingDeclaredGateArtifacts();
|
|
1420
|
+
if (missingGates.length > 0) {
|
|
1421
|
+
writeStatus({ ...statusPatch, phase: 'blocked', state: 'blocked', currentAgent: null, awaitingHumanGate: false });
|
|
1422
|
+
out(`Pipeline blocked for "${slug}": pipeline.json declares gate step(s) with no completed receipt: ${missingGates.join(', ')}. Run the step, or record it under status.skippedSteps with its reason, then resume with /task-continue ${slug}.`);
|
|
1423
|
+
process.exit(0);
|
|
1424
|
+
}
|
|
1385
1425
|
// task_completed is written only on this branch. A missing receipt blocks
|
|
1386
1426
|
// above and must not be counted as a finished task.
|
|
1387
1427
|
status.state = 'completed';
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// the generator copies it into each Cursor stack.
|
|
5
5
|
|
|
6
6
|
import fs from 'node:fs';
|
|
7
|
+
import path from 'node:path';
|
|
7
8
|
import { fileURLToPath } from 'node:url';
|
|
8
9
|
|
|
9
10
|
const SLUG_MAX = 48;
|
|
@@ -12,6 +13,18 @@ const ELIGIBLE =
|
|
|
12
13
|
/^(?:(?:yarn|pnpm|npm|npx|bun)\s+(?:run\s+)?(?:test|lint)(?::\S+)?|git\s+(?:log|diff)|go\s+test|cargo\s+test|pytest|phpunit)\b/;
|
|
13
14
|
const META = /[|&;<>()\n`]|\$\(/;
|
|
14
15
|
|
|
16
|
+
// The rewritten command runs in the agent shell's cwd, which may be a package
|
|
17
|
+
// directory (`app/`); a repo-relative wrapper path breaks there.
|
|
18
|
+
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
19
|
+
const WRAPPER = path.join(here, '..', '..', '.ai.local', 'scripts', 'run-compact.mjs');
|
|
20
|
+
|
|
21
|
+
/** POSIX-quote the wrapper path; a path a shell cannot quote stays unrewritten. */
|
|
22
|
+
const shellQuote = (value) => {
|
|
23
|
+
if (/^[A-Za-z0-9_@%+=:,./-]+$/.test(value)) return value;
|
|
24
|
+
if (value.includes("'") || value.includes('\n')) return null;
|
|
25
|
+
return `'${value}'`;
|
|
26
|
+
};
|
|
27
|
+
|
|
15
28
|
const slugOf = (env) => {
|
|
16
29
|
const value = typeof env?.TEAM_TASK_SLUG === 'string' ? env.TEAM_TASK_SLUG : '';
|
|
17
30
|
if (value.length === 0 || value.length > SLUG_MAX || !SLUG_RE.test(value)) return '';
|
|
@@ -27,7 +40,9 @@ export const rewriteCommand = (command, env) => {
|
|
|
27
40
|
if (text.split(/\s+/).some((token) => token.includes("'") || token.includes('"'))) return null;
|
|
28
41
|
if (text.includes('dump-output.mjs') || text.includes('run-compact.mjs')) return null;
|
|
29
42
|
if (!ELIGIBLE.test(text)) return null;
|
|
30
|
-
|
|
43
|
+
const wrapper = shellQuote(WRAPPER);
|
|
44
|
+
if (wrapper === null) return null;
|
|
45
|
+
return `node ${wrapper} --task ${slug} -- ${text}`;
|
|
31
46
|
};
|
|
32
47
|
|
|
33
48
|
const allow = () => {
|
|
@@ -76,8 +76,9 @@ Write `.ai.local/team/tasks/<slug>/review.md` with this format:
|
|
|
76
76
|
# Code review: <slug>
|
|
77
77
|
|
|
78
78
|
## Verdict
|
|
79
|
-
APPROVE | APPROVE_WITH_NOTES | REQUEST_CHANGES
|
|
79
|
+
APPROVE | APPROVE_WITH_QUESTIONS | APPROVE_WITH_NOTES | REQUEST_CHANGES
|
|
80
80
|
Findings carry `path:line`, severity, `confidence`, and a fix direction — rules in `code-review-mr` § Output contract.
|
|
81
|
+
`APPROVE_WITH_QUESTIONS` needs no `blocker`/`important` finding and at least one open question below.
|
|
81
82
|
|
|
82
83
|
## Critical (must fix)
|
|
83
84
|
- ...
|
|
@@ -88,6 +89,9 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
|
|
|
88
89
|
## Suggestions (nice to have)
|
|
89
90
|
- ...
|
|
90
91
|
|
|
92
|
+
## Open questions
|
|
93
|
+
- <question> — check: <what would settle it> — blocker-candidate: yes | no
|
|
94
|
+
|
|
91
95
|
## Depth passes
|
|
92
96
|
| Pass | Outcome | Evidence or reason |
|
|
93
97
|
|------|---------|--------------------|
|
|
@@ -18,6 +18,7 @@ npx @bonesofspring/ai-rules update
|
|
|
18
18
|
2. Report the CLI summary to the user in their native language. It names each tool and the preset it kept.
|
|
19
19
|
3. State the outcome in plain words. Exit code 0 means the update finished successfully. Any other exit means it did not finish successfully: quote stderr and stop.
|
|
20
20
|
4. Do not report the numeric exit code.
|
|
21
|
+
5. Commit the update on its own. Managed trees (`.cursor/`, `.claude/`, `.mavis/`, `.opencode/`, `.zcode/`, `.ai.local/scripts/`) and app work never share a commit or a merge request.
|
|
21
22
|
|
|
22
23
|
## Record
|
|
23
24
|
|
|
@@ -1412,6 +1412,40 @@ function missingConsumerArtifacts() {
|
|
|
1412
1412
|
);
|
|
1413
1413
|
return ids.filter((id) => !done.has(id));
|
|
1414
1414
|
}
|
|
1415
|
+
// A step that names a gate agent is a promise the plan made to the diff. The
|
|
1416
|
+
// consumer config is optional, but a declared gate is not: an unreviewed diff
|
|
1417
|
+
// completed while the plan said "code-reviewer" reads as a passed review.
|
|
1418
|
+
// A step the run skipped (status.skippedSteps) or skipIf-matched never promised
|
|
1419
|
+
// anything, so it is not required here.
|
|
1420
|
+
const GATE_AGENTS = new Set([
|
|
1421
|
+
'build-verifier',
|
|
1422
|
+
'code-reviewer',
|
|
1423
|
+
'mockup-reviewer',
|
|
1424
|
+
'security-reviewer',
|
|
1425
|
+
'accessibility-reviewer',
|
|
1426
|
+
'api-contract-reviewer',
|
|
1427
|
+
'performance-auditor',
|
|
1428
|
+
]);
|
|
1429
|
+
function missingDeclaredGateArtifacts() {
|
|
1430
|
+
if (steps.length === 0) return [];
|
|
1431
|
+
let manifest = { artifacts: [] };
|
|
1432
|
+
try { manifest = JSON.parse(fs.readFileSync(path.join(taskDir, 'artifact-manifest.json'), 'utf8')); } catch {}
|
|
1433
|
+
const done = new Set(
|
|
1434
|
+
(manifest.artifacts || [])
|
|
1435
|
+
.filter((artifact) => artifact && artifact.status === 'completed')
|
|
1436
|
+
.map((artifact) => artifact.id),
|
|
1437
|
+
);
|
|
1438
|
+
const missing = [];
|
|
1439
|
+
steps.forEach((step, index) => {
|
|
1440
|
+
if (!step || isStepSkipped(index)) return;
|
|
1441
|
+
for (const agent of getStepAgents(step)) {
|
|
1442
|
+
if (!GATE_AGENTS.has(agent)) continue;
|
|
1443
|
+
const id = artifactOutputIdFor(step, agent);
|
|
1444
|
+
if (!done.has(id)) missing.push(`${id} (${agent}${step.id ? `, step ${step.id}` : ''})`);
|
|
1445
|
+
}
|
|
1446
|
+
});
|
|
1447
|
+
return [...new Set(missing)];
|
|
1448
|
+
}
|
|
1415
1449
|
function completePipeline(statusPatch) {
|
|
1416
1450
|
const missing = missingConsumerArtifacts();
|
|
1417
1451
|
if (missing.length > 0) {
|
|
@@ -1419,6 +1453,12 @@ function completePipeline(statusPatch) {
|
|
|
1419
1453
|
out(`Pipeline blocked for "${slug}": .ai.local/pipeline-gates.json requireArtifacts missing completed receipt(s): ${missing.join(', ')}.`);
|
|
1420
1454
|
process.exit(0);
|
|
1421
1455
|
}
|
|
1456
|
+
const missingGates = missingDeclaredGateArtifacts();
|
|
1457
|
+
if (missingGates.length > 0) {
|
|
1458
|
+
writeStatus({ ...statusPatch, phase: 'blocked', state: 'blocked', currentAgent: null, awaitingHumanGate: false });
|
|
1459
|
+
out(`Pipeline blocked for "${slug}": pipeline.json declares gate step(s) with no completed receipt: ${missingGates.join(', ')}. Run the step, or record it under status.skippedSteps with its reason, then resume with /task-continue ${slug}.`);
|
|
1460
|
+
process.exit(0);
|
|
1461
|
+
}
|
|
1422
1462
|
// task_completed is written only on this branch. A missing receipt blocks
|
|
1423
1463
|
// above and must not be counted as a finished task.
|
|
1424
1464
|
status.state = 'completed';
|
|
@@ -137,6 +137,7 @@ Each slug has one `artifact-manifest.json` at `.ai.local/team/tasks/<slug>/`. Th
|
|
|
137
137
|
- 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.
|
|
138
138
|
- 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.
|
|
139
139
|
- Missing/stale manifests are reported as a handoff gap; fall back to `brief.md`, `decomposition.md`, and `pipeline.json` rather than inventing authority.
|
|
140
|
+
- A step that names a gate agent (`build-verifier`, `code-reviewer`, `mockup-reviewer`, `security-reviewer`, `accessibility-reviewer`, `api-contract-reviewer`, `performance-auditor`) is a promise the plan made to the diff: the hook blocks `completed` while its receipt is missing, with or without `.ai.local/pipeline-gates.json`. An intentional skip is recorded in `status.skippedSteps` with its reason — never by dropping the step quietly.
|
|
140
141
|
|
|
141
142
|
## Out-of-band producer passes
|
|
142
143
|
|
|
@@ -32,7 +32,7 @@ Concrete rule stems — in **Stack notes**.
|
|
|
32
32
|
|
|
33
33
|
## Depth passes
|
|
34
34
|
|
|
35
|
-
A diff-shaped read is a floor, not a review. Run these
|
|
35
|
+
A diff-shaped read is a floor, not a review. Run these six passes on every non-trivial review and record each one under `## Depth passes` in the review artifact as exactly one of:
|
|
36
36
|
|
|
37
37
|
- **`finding`** — reported like any other finding, with `path:line`.
|
|
38
38
|
- **`no finding`** — with one line of evidence: what was searched or read.
|
|
@@ -46,10 +46,11 @@ An outcome word alone is not a record: `no finding` without its evidence line, o
|
|
|
46
46
|
3. **Trust boundary** — which data crosses a trust boundary in this change, and where is it validated. Data reaching storage, logs, HTML, SQL, shell, or an outbound request without an edge check is a finding.
|
|
47
47
|
4. **Test gap** — not "is there a test" but "which behaviour change would still pass every existing test". That gap is the finding.
|
|
48
48
|
5. **Half-life** — what breaks in six months: hidden coupling, implicit contract, missing migration, an unowned copy of the same rule.
|
|
49
|
+
6. **Executable surface** — when the diff touches anything that runs outside app code (`*.mjs`, hooks, `scripts/`, CI steps): state the working directory the code assumes, quote every path spliced into a shell string, and check that a spawn cannot kill or truncate the command it wraps. A config-derived value written into storage carries no credential, and a migration or scan re-runs with a stable id.
|
|
49
50
|
|
|
50
51
|
## Review breadth budget
|
|
51
52
|
|
|
52
|
-
- Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The
|
|
53
|
+
- Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The six depth passes still run on what was read.
|
|
53
54
|
- Budget: the changed exports, types, routes, and events in the diff, plus one hop of their consumers. Read no consumer that neither the diff nor a recorded finding names.
|
|
54
55
|
- Stop when either limit is reached: 40 changed-symbol call sites, or 15 minutes of breadth reads on one review.
|
|
55
56
|
- When the budget is exhausted, stop the sweep and record `partial` in `## Depth passes` for the call-site sweep, with every unread path or glob named inline.
|
|
@@ -72,8 +73,22 @@ Procedure details live in skill `code-review`. Required shape:
|
|
|
72
73
|
- Confidence is not a second severity: the verdict and the receipt still map from severity alone. A `blocker` at `low` confidence stands only with that confirming check named.
|
|
73
74
|
- Rank by severity: **`blocker` | `important` | `nit`** (list blocker → nit).
|
|
74
75
|
- Vague («looks risky») is not a finding — cite evidence or ask for surrounding file context.
|
|
75
|
-
-
|
|
76
|
-
-
|
|
76
|
+
- A behaviour you cannot settle by reading is a **question, not silence**. Put it under `## Open questions` as `- <question> — check: <the one check that would settle it> — blocker-candidate: yes | no`. A question needs no `path:line` and no `confidence`; leaving it out because it is unproven is the failure this section exists to prevent.
|
|
77
|
+
- End with a verdict on its own line: **`Safe to merge | safe to merge with questions | needs changes | reject`**. `safe to merge with questions` is allowed only with no `blocker`/`important` finding and at least one open question; the terminal receipt stays `completed`. A silent `Safe to merge` over an open question is not a verdict.
|
|
78
|
+
- Close with `## Not verified` — what was read shallowly, which pass could not run, which assumption went unchecked. An empty section reads `none`; never omit it. A depth pass recorded `unable to run` or `partial` over an executable surface (scripts, hooks, CI, migrations) forbids `Safe to merge` until the check runs or a human accepts it in writing.
|
|
79
|
+
|
|
80
|
+
## Review without an acceptance criterion
|
|
81
|
+
|
|
82
|
+
A change-set that no brief, decomposition, or plan names is still reviewable: the diff is the scope, and the verdict rests on it alone. State in `## Not verified` that no AC existed; absence of an AC is a scope fact, never a review exemption. When the plan is missing, review against these classes; a class you cannot settle by reading becomes an `## Open question`:
|
|
83
|
+
|
|
84
|
+
- null/undefined after `JSON.parse`, a missing key, or a shape the producer never promised;
|
|
85
|
+
- empty, boundary, repeated, and concurrent inputs;
|
|
86
|
+
- resource limits: buffers, timeouts, retries, exit codes, stdio;
|
|
87
|
+
- secrets and credentials reaching logs, files, URLs, or an outbound request;
|
|
88
|
+
- path resolution that assumes a cwd; quoting of argv and of interpolated shell;
|
|
89
|
+
- idempotency of migrations, re-runs, and partial failures;
|
|
90
|
+
- machine-local runtime state that a commit would carry;
|
|
91
|
+
- a second unowned copy of a rule that already exists elsewhere.
|
|
77
92
|
|
|
78
93
|
## Verdict and terminal receipt
|
|
79
94
|
|
|
@@ -31,7 +31,8 @@ Lead with findings ordered by severity. Required shape (also in `code-review`):
|
|
|
31
31
|
- Each finding: **`path:line`** — problem — impact — concrete fix direction.
|
|
32
32
|
- Severity: **`blocker` | `important` | `nit`** (list blocker → nit).
|
|
33
33
|
- Vague («looks risky») is not a finding — cite evidence or ask for surrounding context.
|
|
34
|
-
-
|
|
34
|
+
- A behaviour you cannot settle by reading is a question, not silence: list it under `## Open questions` as `- <question> — check: <what would settle it> — blocker-candidate: yes | no`. A question needs no `path:line` and no `confidence`.
|
|
35
|
+
- End with a verdict line: **`Safe to merge | safe to merge with questions | needs changes | reject`**. `safe to merge with questions` requires no `blocker`/`important` finding and at least one open question.
|
|
35
36
|
- If there are no findings, say so and call out remaining test or validation risk.
|
|
36
37
|
- Carry `confidence` on every finding and close with `## Not verified` (see `code-review-mr` § Output contract).
|
|
37
38
|
|
|
@@ -75,8 +75,9 @@ Write `.ai.local/team/tasks/<slug>/review.md` with this format:
|
|
|
75
75
|
# Code review: <slug>
|
|
76
76
|
|
|
77
77
|
## Verdict
|
|
78
|
-
APPROVE | APPROVE_WITH_NOTES | REQUEST_CHANGES
|
|
78
|
+
APPROVE | APPROVE_WITH_QUESTIONS | APPROVE_WITH_NOTES | REQUEST_CHANGES
|
|
79
79
|
Findings carry `path:line`, severity, `confidence`, and a fix direction — rules in `code-review-mr` § Output contract.
|
|
80
|
+
`APPROVE_WITH_QUESTIONS` needs no `blocker`/`important` finding and at least one open question below.
|
|
80
81
|
|
|
81
82
|
## Critical (must fix)
|
|
82
83
|
- ...
|
|
@@ -87,6 +88,9 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
|
|
|
87
88
|
## Suggestions (nice to have)
|
|
88
89
|
- ...
|
|
89
90
|
|
|
91
|
+
## Open questions
|
|
92
|
+
- <question> — check: <what would settle it> — blocker-candidate: yes | no
|
|
93
|
+
|
|
90
94
|
## Depth passes
|
|
91
95
|
| Pass | Outcome | Evidence or reason |
|
|
92
96
|
|------|---------|--------------------|
|
|
@@ -18,6 +18,7 @@ npx @bonesofspring/ai-rules update
|
|
|
18
18
|
2. Report the CLI summary to the user in their native language. It names each tool and the preset it kept.
|
|
19
19
|
3. State the outcome in plain words. Exit code 0 means the update finished successfully. Any other exit means it did not finish successfully: quote stderr and stop.
|
|
20
20
|
4. Do not report the numeric exit code.
|
|
21
|
+
5. Commit the update on its own. Managed trees (`.cursor/`, `.claude/`, `.mavis/`, `.opencode/`, `.zcode/`, `.ai.local/scripts/`) and app work never share a commit or a merge request.
|
|
21
22
|
|
|
22
23
|
## Record
|
|
23
24
|
|