@bonesofspring/ai-rules 0.2.67 → 0.2.69
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 +60 -0
- package/README.md +5 -5
- package/bin/lib/engine-scripts.js +3 -6
- package/bin/lib/seed-ai-local-team.js +1 -1
- package/docs/PRESET-CONTRIBUTION.md +15 -8
- package/docs/TEAM-DB.md +105 -105
- package/docs/TOKEN-ECONOMY.md +4 -2
- package/docs/openapi/team-db.v1.json +3905 -1466
- package/package.json +5 -5
- package/presets/_shared/ai-local/scripts/processes.mjs +467 -55
- package/presets/_shared/ai-local/scripts/team-db-api.mjs +564 -10
- package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +816 -47
- package/presets/_shared/ai-local/scripts/team-db-project.mjs +659 -5
- package/presets/_shared/ai-local/scripts/team-db-schema.mjs +135 -0
- package/presets/_shared/ai-local/scripts/team-db-task-runner.mjs +11 -6
- package/presets/_shared/ai-local/scripts/team-db.mjs +16 -54
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +5 -5
- package/presets/_shared/core/architecture/feature-delivery-workflow.md +3 -7
- package/presets/_shared/core/meta/preset-pr-checklist.md +2 -2
- package/presets/_shared/core/quality/code-quality-and-refactoring.md +2 -6
- package/presets/_shared/core/quality/verification-before-completion.md +20 -3
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +149 -5
- package/presets/claude/android-kotlin/REPO_AGENTS.md +7 -47
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +149 -5
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/go/REPO_AGENTS.md +7 -47
- package/presets/claude/go/hooks/chain-team-phases.sh +149 -5
- package/presets/claude/go/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/go/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/ios-swift/REPO_AGENTS.md +7 -47
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +149 -5
- package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/java/REPO_AGENTS.md +7 -47
- package/presets/claude/java/hooks/chain-team-phases.sh +149 -5
- package/presets/claude/java/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/java/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/mcp-ts/REPO_AGENTS.md +7 -47
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +149 -5
- package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/mol/REPO_AGENTS.md +9 -49
- package/presets/claude/mol/hooks/chain-team-phases.sh +149 -5
- package/presets/claude/mol/rules/architecture/feature-delivery-workflow.md +3 -7
- package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/mol/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/mol/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/next/REPO_AGENTS.md +10 -50
- package/presets/claude/next/agents/accessibility-reviewer.md +0 -1
- package/presets/claude/next/agents/api-contract-reviewer.md +0 -1
- package/presets/claude/next/agents/build-verifier.md +12 -8
- package/presets/claude/next/agents/code-reviewer.md +1 -1
- package/presets/claude/next/agents/codebase-analyzer.md +0 -1
- package/presets/claude/next/agents/feature-developer.md +6 -6
- package/presets/claude/next/agents/migration-specialist.md +0 -1
- package/presets/claude/next/agents/mockup-reviewer.md +0 -1
- package/presets/claude/next/agents/openspec-author.md +0 -1
- package/presets/claude/next/agents/performance-auditor.md +0 -1
- package/presets/claude/next/agents/playwright-test-generator.md +0 -1
- package/presets/claude/next/agents/playwright-test-healer.md +0 -1
- package/presets/claude/next/agents/playwright-test-planner.md +0 -1
- package/presets/claude/next/agents/qa-tester.md +3 -3
- package/presets/claude/next/agents/security-reviewer.md +0 -1
- package/presets/claude/next/agents/solution-architect.md +0 -1
- package/presets/claude/next/agents/task-analyst.md +0 -1
- package/presets/claude/next/agents/task-router.md +8 -7
- package/presets/claude/next/agents/tech-writer.md +0 -1
- package/presets/claude/next/agents/unit-test-generator.md +0 -1
- package/presets/claude/next/agents/unit-test-healer.md +0 -1
- package/presets/claude/next/agents/unit-test-planner.md +0 -1
- package/presets/claude/next/commands/README.md +0 -6
- package/presets/claude/next/commands/task-continue.md +17 -6
- package/presets/claude/next/hooks/chain-team-phases.sh +149 -5
- package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +5 -9
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/next/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/next/rules/tooling-and-review/post-change-lint.md +12 -16
- package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/next/skills/feature-delivery/SKILL.md +1 -1
- package/presets/claude/next/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/claude/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/claude/nuxt/REPO_AGENTS.md +8 -48
- package/presets/claude/nuxt/agents/accessibility-reviewer.md +0 -1
- package/presets/claude/nuxt/agents/api-contract-reviewer.md +0 -1
- package/presets/claude/nuxt/agents/build-verifier.md +5 -3
- package/presets/claude/nuxt/agents/ci-investigator.md +1 -1
- package/presets/claude/nuxt/agents/code-reviewer.md +0 -1
- package/presets/claude/nuxt/agents/codebase-analyzer.md +0 -1
- package/presets/claude/nuxt/agents/debugger.md +1 -1
- package/presets/claude/nuxt/agents/feature-developer.md +6 -6
- package/presets/claude/nuxt/agents/migration-specialist.md +0 -1
- package/presets/claude/nuxt/agents/mockup-reviewer.md +0 -1
- package/presets/claude/nuxt/agents/openspec-author.md +0 -1
- package/presets/claude/nuxt/agents/performance-auditor.md +0 -1
- package/presets/claude/nuxt/agents/playwright-test-generator.md +0 -1
- package/presets/claude/nuxt/agents/playwright-test-healer.md +0 -1
- package/presets/claude/nuxt/agents/playwright-test-planner.md +0 -1
- package/presets/claude/nuxt/agents/qa-tester.md +3 -3
- package/presets/claude/nuxt/agents/security-reviewer.md +0 -1
- package/presets/claude/nuxt/agents/solution-architect.md +0 -1
- package/presets/claude/nuxt/agents/task-analyst.md +0 -1
- package/presets/claude/nuxt/agents/task-router.md +8 -7
- package/presets/claude/nuxt/agents/tech-writer.md +0 -1
- package/presets/claude/nuxt/agents/unit-test-generator.md +0 -1
- package/presets/claude/nuxt/agents/unit-test-healer.md +0 -1
- package/presets/claude/nuxt/agents/unit-test-planner.md +0 -1
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +149 -5
- package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +3 -7
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/nuxt/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/nuxt/rules/tooling-and-review/post-change-lint.md +14 -14
- package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/nuxt/skills/feature-delivery/SKILL.md +1 -1
- package/presets/claude/nuxt/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/claude/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/claude/php-hexagonal/REPO_AGENTS.md +7 -47
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +149 -5
- package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/php-laravel/REPO_AGENTS.md +7 -47
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +149 -5
- package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/svelte/REPO_AGENTS.md +8 -48
- package/presets/claude/svelte/agents/accessibility-reviewer.md +0 -1
- package/presets/claude/svelte/agents/api-contract-reviewer.md +0 -1
- package/presets/claude/svelte/agents/build-verifier.md +5 -3
- package/presets/claude/svelte/agents/ci-investigator.md +1 -1
- package/presets/claude/svelte/agents/code-reviewer.md +0 -1
- package/presets/claude/svelte/agents/codebase-analyzer.md +0 -1
- package/presets/claude/svelte/agents/debugger.md +1 -1
- package/presets/claude/svelte/agents/feature-developer.md +6 -6
- package/presets/claude/svelte/agents/migration-specialist.md +0 -1
- package/presets/claude/svelte/agents/mockup-reviewer.md +0 -1
- package/presets/claude/svelte/agents/openspec-author.md +0 -1
- package/presets/claude/svelte/agents/performance-auditor.md +0 -1
- package/presets/claude/svelte/agents/playwright-test-generator.md +0 -1
- package/presets/claude/svelte/agents/playwright-test-healer.md +0 -1
- package/presets/claude/svelte/agents/playwright-test-planner.md +0 -1
- package/presets/claude/svelte/agents/qa-tester.md +3 -3
- package/presets/claude/svelte/agents/security-reviewer.md +0 -1
- package/presets/claude/svelte/agents/solution-architect.md +0 -1
- package/presets/claude/svelte/agents/task-analyst.md +0 -1
- package/presets/claude/svelte/agents/task-router.md +8 -7
- package/presets/claude/svelte/agents/tech-writer.md +0 -1
- package/presets/claude/svelte/agents/unit-test-generator.md +0 -1
- package/presets/claude/svelte/agents/unit-test-healer.md +0 -1
- package/presets/claude/svelte/agents/unit-test-planner.md +0 -1
- package/presets/claude/svelte/hooks/chain-team-phases.sh +149 -5
- package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +3 -7
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/svelte/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/svelte/rules/tooling-and-review/post-change-lint.md +14 -14
- package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/svelte/skills/feature-delivery/SKILL.md +1 -1
- package/presets/claude/svelte/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/claude/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/android-kotlin/AGENTS.md +0 -10
- package/presets/cursor/android-kotlin/REPO_AGENTS.md +7 -47
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +149 -5
- package/presets/cursor/android-kotlin/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/go/AGENTS.md +0 -8
- package/presets/cursor/go/REPO_AGENTS.md +7 -47
- package/presets/cursor/go/hooks/chain-team-phases.sh +149 -5
- package/presets/cursor/go/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/go/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/ios-swift/AGENTS.md +0 -10
- package/presets/cursor/ios-swift/REPO_AGENTS.md +7 -47
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +149 -5
- package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/java/AGENTS.md +0 -8
- package/presets/cursor/java/REPO_AGENTS.md +7 -47
- package/presets/cursor/java/hooks/chain-team-phases.sh +149 -5
- package/presets/cursor/java/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/java/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/mcp-ts/AGENTS.md +0 -6
- package/presets/cursor/mcp-ts/REPO_AGENTS.md +7 -47
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +149 -5
- package/presets/cursor/mcp-ts/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/mol/AGENTS.md +0 -11
- package/presets/cursor/mol/REPO_AGENTS.md +9 -49
- package/presets/cursor/mol/hooks/chain-team-phases.sh +149 -5
- package/presets/cursor/mol/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/mol/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/next/AGENTS.md +1 -12
- package/presets/cursor/next/REPO_AGENTS.md +10 -50
- package/presets/cursor/next/agents/build-verifier.md +11 -7
- package/presets/cursor/next/agents/code-reviewer.md +1 -0
- package/presets/cursor/next/agents/feature-developer.md +6 -6
- package/presets/cursor/next/agents/qa-tester.md +3 -2
- package/presets/cursor/next/agents/task-router.md +8 -6
- package/presets/cursor/next/commands/README.md +0 -6
- package/presets/cursor/next/commands/task-continue.md +17 -6
- package/presets/cursor/next/hooks/chain-team-phases.sh +149 -5
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +4 -4
- package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/next/rules/feature-delivery-workflow.mdc +2 -2
- package/presets/cursor/next/rules/post-change-lint.mdc +12 -16
- package/presets/cursor/next/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/next/skills/feature-delivery/SKILL.md +1 -1
- package/presets/cursor/next/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/cursor/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/nuxt/AGENTS.md +1 -12
- package/presets/cursor/nuxt/REPO_AGENTS.md +8 -48
- package/presets/cursor/nuxt/agents/build-verifier.md +1 -1
- package/presets/cursor/nuxt/agents/feature-developer.md +2 -2
- package/presets/cursor/nuxt/agents/qa-tester.md +3 -2
- package/presets/cursor/nuxt/agents/task-router.md +8 -6
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +149 -5
- package/presets/cursor/nuxt/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/nuxt/rules/post-change-lint.mdc +14 -14
- package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/nuxt/skills/feature-delivery/SKILL.md +1 -1
- package/presets/cursor/nuxt/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/cursor/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/php-hexagonal/AGENTS.md +0 -8
- package/presets/cursor/php-hexagonal/REPO_AGENTS.md +7 -47
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +149 -5
- package/presets/cursor/php-hexagonal/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/php-laravel/AGENTS.md +0 -8
- package/presets/cursor/php-laravel/REPO_AGENTS.md +7 -47
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +149 -5
- package/presets/cursor/php-laravel/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/svelte/AGENTS.md +1 -12
- package/presets/cursor/svelte/REPO_AGENTS.md +8 -48
- package/presets/cursor/svelte/agents/build-verifier.md +1 -1
- package/presets/cursor/svelte/agents/feature-developer.md +2 -2
- package/presets/cursor/svelte/agents/qa-tester.md +3 -2
- package/presets/cursor/svelte/agents/task-router.md +8 -6
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +149 -5
- package/presets/cursor/svelte/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/svelte/rules/post-change-lint.mdc +14 -14
- package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/svelte/skills/feature-delivery/SKILL.md +1 -1
- package/presets/cursor/svelte/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/cursor/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/android-kotlin/MAVIS.md +0 -2
- package/presets/mavis/android-kotlin/REPO_AGENTS.md +7 -47
- package/presets/mavis/android-kotlin/adapter-map.json +1 -1
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +149 -5
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/android-kotlin/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/go/MAVIS.md +8 -0
- package/presets/mavis/go/REPO_AGENTS.md +7 -47
- package/presets/mavis/go/adapter-map.json +1 -1
- package/presets/mavis/go/hooks/chain-team-phases.sh +149 -5
- package/presets/mavis/go/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/go/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/go/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/go/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/ios-swift/MAVIS.md +0 -2
- package/presets/mavis/ios-swift/REPO_AGENTS.md +7 -47
- package/presets/mavis/ios-swift/adapter-map.json +1 -1
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +149 -5
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/ios-swift/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/java/MAVIS.md +14 -0
- package/presets/mavis/java/REPO_AGENTS.md +7 -47
- package/presets/mavis/java/adapter-map.json +1 -1
- package/presets/mavis/java/hooks/chain-team-phases.sh +149 -5
- package/presets/mavis/java/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/java/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/java/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/java/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/mcp-ts/MAVIS.md +6 -0
- package/presets/mavis/mcp-ts/REPO_AGENTS.md +7 -47
- package/presets/mavis/mcp-ts/adapter-map.json +1 -1
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +149 -5
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/mcp-ts/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/mol/MAVIS.md +1 -5
- package/presets/mavis/mol/REPO_AGENTS.md +9 -49
- package/presets/mavis/mol/adapter-map.json +1 -1
- package/presets/mavis/mol/hooks/chain-team-phases.sh +149 -5
- package/presets/mavis/mol/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/mol/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/mol/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/mol/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/next/MAVIS.md +2 -6
- package/presets/mavis/next/REPO_AGENTS.md +10 -50
- package/presets/mavis/next/adapter-map.json +1 -17
- package/presets/mavis/next/agents/accessibility-reviewer.md +0 -1
- package/presets/mavis/next/agents/api-contract-reviewer.md +0 -1
- package/presets/mavis/next/agents/build-verifier.md +12 -8
- package/presets/mavis/next/agents/code-reviewer.md +1 -1
- package/presets/mavis/next/agents/codebase-analyzer.md +0 -1
- package/presets/mavis/next/agents/feature-developer.md +6 -6
- package/presets/mavis/next/agents/migration-specialist.md +0 -1
- package/presets/mavis/next/agents/mockup-reviewer.md +0 -1
- package/presets/mavis/next/agents/openspec-author.md +0 -1
- package/presets/mavis/next/agents/performance-auditor.md +0 -1
- package/presets/mavis/next/agents/playwright-test-generator.md +0 -1
- package/presets/mavis/next/agents/playwright-test-healer.md +0 -1
- package/presets/mavis/next/agents/playwright-test-planner.md +0 -1
- package/presets/mavis/next/agents/qa-tester.md +3 -3
- package/presets/mavis/next/agents/security-reviewer.md +0 -1
- package/presets/mavis/next/agents/solution-architect.md +0 -1
- package/presets/mavis/next/agents/task-analyst.md +0 -1
- package/presets/mavis/next/agents/task-router.md +8 -7
- package/presets/mavis/next/agents/tech-writer.md +0 -1
- package/presets/mavis/next/agents/unit-test-generator.md +0 -1
- package/presets/mavis/next/agents/unit-test-healer.md +0 -1
- package/presets/mavis/next/agents/unit-test-planner.md +0 -1
- package/presets/mavis/next/commands/README.md +0 -6
- package/presets/mavis/next/commands/task-continue.md +16 -5
- package/presets/mavis/next/hooks/chain-team-phases.sh +149 -5
- package/presets/mavis/next/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/next/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/next/rules/feature-delivery-workflow.md +5 -9
- package/presets/mavis/next/rules/post-change-lint.md +11 -15
- package/presets/mavis/next/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/next/skills/feature-delivery/SKILL.md +1 -1
- package/presets/mavis/next/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/mavis/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/nuxt/MAVIS.md +2 -6
- package/presets/mavis/nuxt/REPO_AGENTS.md +8 -48
- package/presets/mavis/nuxt/adapter-map.json +1 -1
- package/presets/mavis/nuxt/agents/accessibility-reviewer.md +0 -1
- package/presets/mavis/nuxt/agents/api-contract-reviewer.md +0 -1
- package/presets/mavis/nuxt/agents/build-verifier.md +2 -2
- package/presets/mavis/nuxt/agents/ci-investigator.md +1 -1
- package/presets/mavis/nuxt/agents/code-reviewer.md +0 -1
- package/presets/mavis/nuxt/agents/codebase-analyzer.md +0 -1
- package/presets/mavis/nuxt/agents/debugger.md +1 -1
- package/presets/mavis/nuxt/agents/feature-developer.md +3 -3
- package/presets/mavis/nuxt/agents/migration-specialist.md +0 -1
- package/presets/mavis/nuxt/agents/mockup-reviewer.md +0 -1
- package/presets/mavis/nuxt/agents/openspec-author.md +0 -1
- package/presets/mavis/nuxt/agents/performance-auditor.md +0 -1
- package/presets/mavis/nuxt/agents/playwright-test-generator.md +0 -1
- package/presets/mavis/nuxt/agents/playwright-test-healer.md +0 -1
- package/presets/mavis/nuxt/agents/playwright-test-planner.md +0 -1
- package/presets/mavis/nuxt/agents/qa-tester.md +3 -3
- package/presets/mavis/nuxt/agents/security-reviewer.md +0 -1
- package/presets/mavis/nuxt/agents/solution-architect.md +0 -1
- package/presets/mavis/nuxt/agents/task-analyst.md +0 -1
- package/presets/mavis/nuxt/agents/task-router.md +8 -7
- package/presets/mavis/nuxt/agents/tech-writer.md +0 -1
- package/presets/mavis/nuxt/agents/unit-test-generator.md +0 -1
- package/presets/mavis/nuxt/agents/unit-test-healer.md +0 -1
- package/presets/mavis/nuxt/agents/unit-test-planner.md +0 -1
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +149 -5
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/nuxt/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/nuxt/rules/post-change-lint.md +13 -13
- package/presets/mavis/nuxt/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/nuxt/skills/feature-delivery/SKILL.md +1 -1
- package/presets/mavis/nuxt/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/mavis/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/php-hexagonal/MAVIS.md +16 -0
- package/presets/mavis/php-hexagonal/REPO_AGENTS.md +7 -47
- package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +149 -5
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/php-hexagonal/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/php-laravel/MAVIS.md +16 -0
- package/presets/mavis/php-laravel/REPO_AGENTS.md +7 -47
- package/presets/mavis/php-laravel/adapter-map.json +1 -1
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +149 -5
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/php-laravel/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/svelte/MAVIS.md +2 -6
- package/presets/mavis/svelte/REPO_AGENTS.md +8 -48
- package/presets/mavis/svelte/adapter-map.json +1 -1
- package/presets/mavis/svelte/agents/accessibility-reviewer.md +0 -1
- package/presets/mavis/svelte/agents/api-contract-reviewer.md +0 -1
- package/presets/mavis/svelte/agents/build-verifier.md +2 -2
- package/presets/mavis/svelte/agents/ci-investigator.md +1 -1
- package/presets/mavis/svelte/agents/code-reviewer.md +0 -1
- package/presets/mavis/svelte/agents/codebase-analyzer.md +0 -1
- package/presets/mavis/svelte/agents/debugger.md +1 -1
- package/presets/mavis/svelte/agents/feature-developer.md +3 -3
- package/presets/mavis/svelte/agents/migration-specialist.md +0 -1
- package/presets/mavis/svelte/agents/mockup-reviewer.md +0 -1
- package/presets/mavis/svelte/agents/openspec-author.md +0 -1
- package/presets/mavis/svelte/agents/performance-auditor.md +0 -1
- package/presets/mavis/svelte/agents/playwright-test-generator.md +0 -1
- package/presets/mavis/svelte/agents/playwright-test-healer.md +0 -1
- package/presets/mavis/svelte/agents/playwright-test-planner.md +0 -1
- package/presets/mavis/svelte/agents/qa-tester.md +3 -3
- package/presets/mavis/svelte/agents/security-reviewer.md +0 -1
- package/presets/mavis/svelte/agents/solution-architect.md +0 -1
- package/presets/mavis/svelte/agents/task-analyst.md +0 -1
- package/presets/mavis/svelte/agents/task-router.md +8 -7
- package/presets/mavis/svelte/agents/tech-writer.md +0 -1
- package/presets/mavis/svelte/agents/unit-test-generator.md +0 -1
- package/presets/mavis/svelte/agents/unit-test-healer.md +0 -1
- package/presets/mavis/svelte/agents/unit-test-planner.md +0 -1
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +149 -5
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/svelte/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/svelte/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/svelte/rules/post-change-lint.md +13 -13
- package/presets/mavis/svelte/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/svelte/skills/feature-delivery/SKILL.md +1 -1
- package/presets/mavis/svelte/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/mavis/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/android-kotlin/OPENCODE.md +1 -43
- package/presets/opencode/android-kotlin/REPO_AGENTS.md +7 -47
- package/presets/opencode/android-kotlin/adapter-map.json +1 -1
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +149 -5
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/android-kotlin/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/go/OPENCODE.md +7 -39
- package/presets/opencode/go/REPO_AGENTS.md +7 -47
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/hooks/chain-team-phases.sh +149 -5
- package/presets/opencode/go/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/go/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/go/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/go/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/ios-swift/OPENCODE.md +1 -43
- package/presets/opencode/ios-swift/REPO_AGENTS.md +7 -47
- package/presets/opencode/ios-swift/adapter-map.json +1 -1
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +149 -5
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/ios-swift/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/java/OPENCODE.md +12 -38
- package/presets/opencode/java/REPO_AGENTS.md +7 -47
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/hooks/chain-team-phases.sh +149 -5
- package/presets/opencode/java/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/java/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/java/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/java/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/mcp-ts/OPENCODE.md +5 -39
- package/presets/opencode/mcp-ts/REPO_AGENTS.md +7 -47
- package/presets/opencode/mcp-ts/adapter-map.json +1 -1
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +149 -5
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/mcp-ts/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/mol/OPENCODE.md +1 -44
- package/presets/opencode/mol/REPO_AGENTS.md +9 -49
- package/presets/opencode/mol/adapter-map.json +1 -1
- package/presets/opencode/mol/hooks/chain-team-phases.sh +149 -5
- package/presets/opencode/mol/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/mol/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/mol/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/mol/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/next/OPENCODE.md +2 -45
- package/presets/opencode/next/REPO_AGENTS.md +10 -50
- package/presets/opencode/next/adapter-map.json +1 -17
- package/presets/opencode/next/agents/accessibility-reviewer.md +0 -1
- package/presets/opencode/next/agents/api-contract-reviewer.md +0 -1
- package/presets/opencode/next/agents/build-verifier.md +12 -8
- package/presets/opencode/next/agents/code-reviewer.md +1 -1
- package/presets/opencode/next/agents/codebase-analyzer.md +0 -1
- package/presets/opencode/next/agents/feature-developer.md +6 -6
- package/presets/opencode/next/agents/migration-specialist.md +0 -1
- package/presets/opencode/next/agents/mockup-reviewer.md +0 -1
- package/presets/opencode/next/agents/openspec-author.md +0 -1
- package/presets/opencode/next/agents/performance-auditor.md +0 -1
- package/presets/opencode/next/agents/playwright-test-generator.md +0 -1
- package/presets/opencode/next/agents/playwright-test-healer.md +0 -1
- package/presets/opencode/next/agents/playwright-test-planner.md +0 -1
- package/presets/opencode/next/agents/qa-tester.md +3 -3
- package/presets/opencode/next/agents/security-reviewer.md +0 -1
- package/presets/opencode/next/agents/solution-architect.md +0 -1
- package/presets/opencode/next/agents/task-analyst.md +0 -1
- package/presets/opencode/next/agents/task-router.md +8 -7
- package/presets/opencode/next/agents/tech-writer.md +0 -1
- package/presets/opencode/next/agents/unit-test-generator.md +0 -1
- package/presets/opencode/next/agents/unit-test-healer.md +0 -1
- package/presets/opencode/next/agents/unit-test-planner.md +0 -1
- package/presets/opencode/next/commands/README.md +0 -6
- package/presets/opencode/next/commands/task-continue.md +17 -6
- package/presets/opencode/next/hooks/chain-team-phases.sh +149 -5
- package/presets/opencode/next/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/next/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/next/rules/feature-delivery-workflow.md +5 -9
- package/presets/opencode/next/rules/post-change-lint.md +11 -15
- package/presets/opencode/next/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/next/skills/feature-delivery/SKILL.md +1 -1
- package/presets/opencode/next/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/opencode/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/nuxt/OPENCODE.md +2 -45
- package/presets/opencode/nuxt/REPO_AGENTS.md +8 -48
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/agents/accessibility-reviewer.md +0 -1
- package/presets/opencode/nuxt/agents/api-contract-reviewer.md +0 -1
- package/presets/opencode/nuxt/agents/build-verifier.md +2 -2
- package/presets/opencode/nuxt/agents/ci-investigator.md +1 -1
- package/presets/opencode/nuxt/agents/code-reviewer.md +0 -1
- package/presets/opencode/nuxt/agents/codebase-analyzer.md +0 -1
- package/presets/opencode/nuxt/agents/debugger.md +1 -1
- package/presets/opencode/nuxt/agents/feature-developer.md +3 -3
- package/presets/opencode/nuxt/agents/migration-specialist.md +0 -1
- package/presets/opencode/nuxt/agents/mockup-reviewer.md +0 -1
- package/presets/opencode/nuxt/agents/openspec-author.md +0 -1
- package/presets/opencode/nuxt/agents/performance-auditor.md +0 -1
- package/presets/opencode/nuxt/agents/playwright-test-generator.md +0 -1
- package/presets/opencode/nuxt/agents/playwright-test-healer.md +0 -1
- package/presets/opencode/nuxt/agents/playwright-test-planner.md +0 -1
- package/presets/opencode/nuxt/agents/qa-tester.md +3 -3
- package/presets/opencode/nuxt/agents/security-reviewer.md +0 -1
- package/presets/opencode/nuxt/agents/solution-architect.md +0 -1
- package/presets/opencode/nuxt/agents/task-analyst.md +0 -1
- package/presets/opencode/nuxt/agents/task-router.md +8 -7
- package/presets/opencode/nuxt/agents/tech-writer.md +0 -1
- package/presets/opencode/nuxt/agents/unit-test-generator.md +0 -1
- package/presets/opencode/nuxt/agents/unit-test-healer.md +0 -1
- package/presets/opencode/nuxt/agents/unit-test-planner.md +0 -1
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +149 -5
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/nuxt/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/nuxt/rules/post-change-lint.md +13 -13
- package/presets/opencode/nuxt/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/nuxt/skills/feature-delivery/SKILL.md +1 -1
- package/presets/opencode/nuxt/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/opencode/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/php-hexagonal/OPENCODE.md +14 -38
- package/presets/opencode/php-hexagonal/REPO_AGENTS.md +7 -47
- package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +149 -5
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/php-hexagonal/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/php-laravel/OPENCODE.md +14 -38
- package/presets/opencode/php-laravel/REPO_AGENTS.md +7 -47
- package/presets/opencode/php-laravel/adapter-map.json +1 -1
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +149 -5
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/php-laravel/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/plugins/output-guard/index.ts +7 -1
- package/presets/opencode/plugins/output-guard/ledger.ts +43 -0
- package/presets/opencode/plugins/task-status/economy.ts +112 -0
- package/presets/opencode/plugins/task-status/task-view.ts +28 -0
- package/presets/opencode/plugins/task-status/tui.tsx +14 -2
- package/presets/opencode/plugins/task-status/types.ts +3 -1
- package/presets/opencode/svelte/OPENCODE.md +2 -45
- package/presets/opencode/svelte/REPO_AGENTS.md +8 -48
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/agents/accessibility-reviewer.md +0 -1
- package/presets/opencode/svelte/agents/api-contract-reviewer.md +0 -1
- package/presets/opencode/svelte/agents/build-verifier.md +2 -2
- package/presets/opencode/svelte/agents/ci-investigator.md +1 -1
- package/presets/opencode/svelte/agents/code-reviewer.md +0 -1
- package/presets/opencode/svelte/agents/codebase-analyzer.md +0 -1
- package/presets/opencode/svelte/agents/debugger.md +1 -1
- package/presets/opencode/svelte/agents/feature-developer.md +3 -3
- package/presets/opencode/svelte/agents/migration-specialist.md +0 -1
- package/presets/opencode/svelte/agents/mockup-reviewer.md +0 -1
- package/presets/opencode/svelte/agents/openspec-author.md +0 -1
- package/presets/opencode/svelte/agents/performance-auditor.md +0 -1
- package/presets/opencode/svelte/agents/playwright-test-generator.md +0 -1
- package/presets/opencode/svelte/agents/playwright-test-healer.md +0 -1
- package/presets/opencode/svelte/agents/playwright-test-planner.md +0 -1
- package/presets/opencode/svelte/agents/qa-tester.md +3 -3
- package/presets/opencode/svelte/agents/security-reviewer.md +0 -1
- package/presets/opencode/svelte/agents/solution-architect.md +0 -1
- package/presets/opencode/svelte/agents/task-analyst.md +0 -1
- package/presets/opencode/svelte/agents/task-router.md +8 -7
- package/presets/opencode/svelte/agents/tech-writer.md +0 -1
- package/presets/opencode/svelte/agents/unit-test-generator.md +0 -1
- package/presets/opencode/svelte/agents/unit-test-healer.md +0 -1
- package/presets/opencode/svelte/agents/unit-test-planner.md +0 -1
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +149 -5
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/svelte/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/svelte/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/svelte/rules/post-change-lint.md +13 -13
- package/presets/opencode/svelte/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/svelte/skills/feature-delivery/SKILL.md +1 -1
- package/presets/opencode/svelte/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/opencode/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/zcode/android-kotlin/REPO_AGENTS.md +7 -47
- package/presets/zcode/android-kotlin/adapter-map.json +1 -1
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +149 -5
- package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/android-kotlin/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/android-kotlin/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/go/REPO_AGENTS.md +7 -47
- package/presets/zcode/go/adapter-map.json +1 -1
- package/presets/zcode/go/hooks/chain-team-phases.sh +149 -5
- package/presets/zcode/go/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/go/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/go/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/go/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/ios-swift/REPO_AGENTS.md +7 -47
- package/presets/zcode/ios-swift/adapter-map.json +1 -1
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +149 -5
- package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/ios-swift/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/ios-swift/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/ios-swift/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/java/REPO_AGENTS.md +7 -47
- package/presets/zcode/java/adapter-map.json +1 -1
- package/presets/zcode/java/hooks/chain-team-phases.sh +149 -5
- package/presets/zcode/java/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/java/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/java/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/java/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/mcp-ts/REPO_AGENTS.md +7 -47
- package/presets/zcode/mcp-ts/adapter-map.json +1 -1
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +149 -5
- package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/mcp-ts/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/mcp-ts/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/mcp-ts/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/mol/REPO_AGENTS.md +9 -49
- package/presets/zcode/mol/adapter-map.json +1 -1
- package/presets/zcode/mol/hooks/chain-team-phases.sh +149 -5
- package/presets/zcode/mol/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/mol/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/mol/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/mol/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/next/REPO_AGENTS.md +10 -50
- package/presets/zcode/next/adapter-map.json +1 -17
- package/presets/zcode/next/agents/accessibility-reviewer.md +0 -1
- package/presets/zcode/next/agents/api-contract-reviewer.md +0 -1
- package/presets/zcode/next/agents/build-verifier.md +12 -8
- package/presets/zcode/next/agents/code-reviewer.md +1 -1
- package/presets/zcode/next/agents/codebase-analyzer.md +0 -1
- package/presets/zcode/next/agents/feature-developer.md +6 -6
- package/presets/zcode/next/agents/migration-specialist.md +0 -1
- package/presets/zcode/next/agents/mockup-reviewer.md +0 -1
- package/presets/zcode/next/agents/openspec-author.md +0 -1
- package/presets/zcode/next/agents/performance-auditor.md +0 -1
- package/presets/zcode/next/agents/playwright-test-generator.md +0 -1
- package/presets/zcode/next/agents/playwright-test-healer.md +0 -1
- package/presets/zcode/next/agents/playwright-test-planner.md +0 -1
- package/presets/zcode/next/agents/qa-tester.md +3 -3
- package/presets/zcode/next/agents/security-reviewer.md +0 -1
- package/presets/zcode/next/agents/solution-architect.md +0 -1
- package/presets/zcode/next/agents/task-analyst.md +0 -1
- package/presets/zcode/next/agents/task-router.md +8 -7
- package/presets/zcode/next/agents/tech-writer.md +0 -1
- package/presets/zcode/next/agents/unit-test-generator.md +0 -1
- package/presets/zcode/next/agents/unit-test-healer.md +0 -1
- package/presets/zcode/next/agents/unit-test-planner.md +0 -1
- package/presets/zcode/next/commands/README.md +0 -6
- package/presets/zcode/next/commands/task-continue.md +17 -6
- package/presets/zcode/next/hooks/chain-team-phases.sh +149 -5
- package/presets/zcode/next/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/next/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/next/rules/feature-delivery-workflow.md +5 -9
- package/presets/zcode/next/rules/post-change-lint.md +11 -15
- package/presets/zcode/next/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/next/skills/feature-delivery/SKILL.md +1 -1
- package/presets/zcode/next/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/zcode/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/zcode/nuxt/REPO_AGENTS.md +8 -48
- package/presets/zcode/nuxt/adapter-map.json +1 -1
- package/presets/zcode/nuxt/agents/accessibility-reviewer.md +0 -1
- package/presets/zcode/nuxt/agents/api-contract-reviewer.md +0 -1
- package/presets/zcode/nuxt/agents/build-verifier.md +2 -2
- package/presets/zcode/nuxt/agents/ci-investigator.md +1 -1
- package/presets/zcode/nuxt/agents/code-reviewer.md +0 -1
- package/presets/zcode/nuxt/agents/codebase-analyzer.md +0 -1
- package/presets/zcode/nuxt/agents/debugger.md +1 -1
- package/presets/zcode/nuxt/agents/feature-developer.md +3 -3
- package/presets/zcode/nuxt/agents/migration-specialist.md +0 -1
- package/presets/zcode/nuxt/agents/mockup-reviewer.md +0 -1
- package/presets/zcode/nuxt/agents/openspec-author.md +0 -1
- package/presets/zcode/nuxt/agents/performance-auditor.md +0 -1
- package/presets/zcode/nuxt/agents/playwright-test-generator.md +0 -1
- package/presets/zcode/nuxt/agents/playwright-test-healer.md +0 -1
- package/presets/zcode/nuxt/agents/playwright-test-planner.md +0 -1
- package/presets/zcode/nuxt/agents/qa-tester.md +3 -3
- package/presets/zcode/nuxt/agents/security-reviewer.md +0 -1
- package/presets/zcode/nuxt/agents/solution-architect.md +0 -1
- package/presets/zcode/nuxt/agents/task-analyst.md +0 -1
- package/presets/zcode/nuxt/agents/task-router.md +8 -7
- package/presets/zcode/nuxt/agents/tech-writer.md +0 -1
- package/presets/zcode/nuxt/agents/unit-test-generator.md +0 -1
- package/presets/zcode/nuxt/agents/unit-test-healer.md +0 -1
- package/presets/zcode/nuxt/agents/unit-test-planner.md +0 -1
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +149 -5
- package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/nuxt/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/nuxt/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/nuxt/rules/post-change-lint.md +13 -13
- package/presets/zcode/nuxt/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/nuxt/skills/feature-delivery/SKILL.md +1 -1
- package/presets/zcode/nuxt/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/zcode/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/zcode/php-hexagonal/REPO_AGENTS.md +7 -47
- package/presets/zcode/php-hexagonal/adapter-map.json +1 -1
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +149 -5
- package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/php-hexagonal/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/php-hexagonal/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/php-hexagonal/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/php-laravel/REPO_AGENTS.md +7 -47
- package/presets/zcode/php-laravel/adapter-map.json +1 -1
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +149 -5
- package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/php-laravel/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/php-laravel/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/php-laravel/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/svelte/REPO_AGENTS.md +8 -48
- package/presets/zcode/svelte/adapter-map.json +1 -1
- package/presets/zcode/svelte/agents/accessibility-reviewer.md +0 -1
- package/presets/zcode/svelte/agents/api-contract-reviewer.md +0 -1
- package/presets/zcode/svelte/agents/build-verifier.md +2 -2
- package/presets/zcode/svelte/agents/ci-investigator.md +1 -1
- package/presets/zcode/svelte/agents/code-reviewer.md +0 -1
- package/presets/zcode/svelte/agents/codebase-analyzer.md +0 -1
- package/presets/zcode/svelte/agents/debugger.md +1 -1
- package/presets/zcode/svelte/agents/feature-developer.md +3 -3
- package/presets/zcode/svelte/agents/migration-specialist.md +0 -1
- package/presets/zcode/svelte/agents/mockup-reviewer.md +0 -1
- package/presets/zcode/svelte/agents/openspec-author.md +0 -1
- package/presets/zcode/svelte/agents/performance-auditor.md +0 -1
- package/presets/zcode/svelte/agents/playwright-test-generator.md +0 -1
- package/presets/zcode/svelte/agents/playwright-test-healer.md +0 -1
- package/presets/zcode/svelte/agents/playwright-test-planner.md +0 -1
- package/presets/zcode/svelte/agents/qa-tester.md +3 -3
- package/presets/zcode/svelte/agents/security-reviewer.md +0 -1
- package/presets/zcode/svelte/agents/solution-architect.md +0 -1
- package/presets/zcode/svelte/agents/task-analyst.md +0 -1
- package/presets/zcode/svelte/agents/task-router.md +8 -7
- package/presets/zcode/svelte/agents/tech-writer.md +0 -1
- package/presets/zcode/svelte/agents/unit-test-generator.md +0 -1
- package/presets/zcode/svelte/agents/unit-test-healer.md +0 -1
- package/presets/zcode/svelte/agents/unit-test-planner.md +0 -1
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +149 -5
- package/presets/zcode/svelte/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/svelte/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/svelte/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/svelte/rules/post-change-lint.md +13 -13
- package/presets/zcode/svelte/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/svelte/skills/feature-delivery/SKILL.md +1 -1
- package/presets/zcode/svelte/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/zcode/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/_shared/ai-local/scripts/team-db-dashboard.mjs +0 -2103
- package/presets/_shared/ai-local/scripts/team-db-ui.mjs +0 -750
- package/presets/claude/next/commands/ui-start.md +0 -78
- package/presets/claude/next/commands/ui-stop.md +0 -71
- package/presets/cursor/next/commands/ui-start.md +0 -78
- package/presets/cursor/next/commands/ui-stop.md +0 -71
- package/presets/mavis/next/commands/ui-start.md +0 -73
- package/presets/mavis/next/commands/ui-stop.md +0 -66
- package/presets/opencode/next/commands/ui-start.md +0 -81
- package/presets/opencode/next/commands/ui-stop.md +0 -74
- package/presets/zcode/next/commands/ui-start.md +0 -81
- package/presets/zcode/next/commands/ui-stop.md +0 -74
|
@@ -5,33 +5,14 @@ Cross-tool repo-root guide. Tool-specific maps stay under `.cursor/AGENTS.md`, `
|
|
|
5
5
|
## Cross-tool setup
|
|
6
6
|
|
|
7
7
|
- Treat this file as the **shared** entry for any agent (Cursor, Claude Code, Mavis, OpenCode, ZCode, or other).
|
|
8
|
-
-
|
|
9
|
-
- Tool maps
|
|
10
|
-
- **Language.** On every user message,
|
|
11
|
-
- Install:
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npx @bonesofspring/ai-rules init multi --preset next
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Refresh tools already installed in this repository, keeping each recorded preset (`/update` runs the same command):
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
npx @bonesofspring/ai-rules update
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Per-tool: `init cursor|claude|mavis|opencode|zcode --preset next`. `init` overwrites this file from the preset (`REPO_AGENTS.md` → `AGENTS.md`). `clean` of one tool leaves this file if another tool install remains. Living gotchas belong in `.ai.local/conventions.md`, not here.
|
|
8
|
+
- Every installed platform ships **the same** root file; `init` overwrites it from the preset (`REPO_AGENTS.md` → `AGENTS.md`). `clean` of one tool leaves it while another install remains.
|
|
9
|
+
- Tool maps — agent team, slash commands, always-on rules — live in `.cursor/AGENTS.md`, `.claude/CLAUDE.md`, `.mavis/AGENTS.md`, `.opencode/AGENTS.md`. ZCode loads this file natively and has no per-tool map. Read the map for the tool you run in; do not read another installed tool's tree.
|
|
10
|
+
- **Language.** On every user message, resolve the dialogue language and answer in the user's **native language**: a `language:` stored for an active task, else `## Language` in the nearest `.ai.local/conventions.md`, else the prompt language, else English. Development, reasoning, and artifacts stay **English** (see `language-policy`).
|
|
11
|
+
- Install / refresh: `npx @bonesofspring/ai-rules init multi --preset next` (`/update` runs `init update`); MCP catalog: `init mcp`.
|
|
24
12
|
|
|
25
13
|
## Presence-based load
|
|
26
14
|
|
|
27
|
-
Read the map and the essential rules for the tool you are running in. Do not preload the full catalog. Do not read
|
|
28
|
-
|
|
29
|
-
- Cursor host: `.cursor/AGENTS.md`. Always-on rules are already injected.
|
|
30
|
-
- Claude Code host: `.claude/CLAUDE.md`. Session-start rules are already injected.
|
|
31
|
-
- Mavis host: read `.mavis/AGENTS.md`, then `.mavis/rules/next-app-core.md`, `.mavis/rules/package-manager.md`, `.mavis/rules/code-quality-and-refactoring.md`, `.mavis/rules/ai-local-overlay.md`.
|
|
32
|
-
- OpenCode host: read `.opencode/AGENTS.md`, then `.opencode/rules/next-app-core.md`, `.opencode/rules/package-manager.md`, `.opencode/rules/code-quality-and-refactoring.md`, `.opencode/rules/ai-local-overlay.md`.
|
|
33
|
-
|
|
34
|
-
Mavis has no native rule discovery without those root paths. OpenCode has no `alwaysApply` engine — those root-entry files are its always-on set.
|
|
15
|
+
Read the map and the essential rules for the tool you are running in; that map lists them. Do not preload the full catalog. Do not read another installed tool's tree — its copies of the same rules belong to that host.
|
|
35
16
|
|
|
36
17
|
## Pipelines are shared
|
|
37
18
|
|
|
@@ -52,7 +33,7 @@ Working directory for app scripts: **`app/`**. Detect the package manager from l
|
|
|
52
33
|
| Unit tests | project unit script under `app/` |
|
|
53
34
|
| Build | project `build` under `app/` |
|
|
54
35
|
|
|
55
|
-
|
|
36
|
+
Gates run **once at implementation closure**, after the last authoring step: `build-verifier` owns `lint:js` + `lint:css` + `type-check` (+ affected tests/build). Do not run project lint/test/build after each edit; the developer authors code and tests only. See `post-change-lint`.
|
|
56
37
|
|
|
57
38
|
Long-lived processes: start, inspect, and stop with `processes.mjs` — `dev-process-lifecycle`.
|
|
58
39
|
|
|
@@ -72,41 +53,20 @@ Empty output or a failed run stays silent.
|
|
|
72
53
|
- Review destructive git (`reset --hard`, force-push) before running; respect shell hooks.
|
|
73
54
|
- Do not weaken CI or skip hooks unless the user explicitly asks.
|
|
74
55
|
|
|
75
|
-
## Tool entry points
|
|
76
|
-
|
|
77
|
-
| Tool | Map |
|
|
78
|
-
|------|-----|
|
|
79
|
-
| Cursor | `.cursor/AGENTS.md` (optional if Cursor not installed) |
|
|
80
|
-
| Claude Code | `.claude/CLAUDE.md` (optional if Claude not installed) |
|
|
81
|
-
| Mavis | `.mavis/AGENTS.md` (optional if Mavis not installed) |
|
|
82
|
-
| OpenCode | `.opencode/AGENTS.md` (optional if OpenCode not installed) |
|
|
83
|
-
| ZCode | this file — loaded natively, no per-tool copy |
|
|
84
|
-
|
|
85
|
-
Rules: `.cursor/rules/`, `.claude/rules/`, `.mavis/rules/`, `.opencode/rules/`, or `.zcode/rules/`.
|
|
86
|
-
Skills: `.cursor/skills/`, `.claude/skills/`, `.mavis/skills/`, `.opencode/skills/`, or `.zcode/skills/`.
|
|
87
|
-
|
|
88
|
-
## ZCode host
|
|
89
|
-
|
|
90
|
-
ZCode loads this file natively and has no per-tool map: this file is the entry. Read the essential rules under `.zcode/rules/` (plain Markdown) when the task scope matches their subject, and use the agents in `.zcode/agents/`, commands in `.zcode/commands/`, and skills in `.zcode/skills/` as the pipeline directs.
|
|
91
|
-
On the first reply of a session, run `node .zcode/hooks/check-preset-update.mjs` when it exists; the notice rules above apply.
|
|
92
|
-
On every turn, run `node .zcode/hooks/list-ai-local.mjs` with the paths this step will touch, apply the printed `.ai.local/rules/*.md` and `.ai.local/conventions.md`, and acknowledge `Using .ai.local: <rule-name>`. Authoring guide: `docs/LOCAL-OVERLAY.md` in the `@bonesofspring/ai-rules` package.
|
|
93
|
-
|
|
94
56
|
## Living conventions
|
|
95
57
|
|
|
96
58
|
Gotchas, local patterns, and team decisions: **`.ai.local/conventions.md`** (fill after init; `init` does not overwrite it).
|
|
97
59
|
|
|
98
60
|
## Seed library (`.ai.local/rules-library/`)
|
|
99
61
|
|
|
100
|
-
`init` copies `ai-local/rules/*.md` into `.ai.local/rules/` and
|
|
62
|
+
`init` copies `ai-local/rules/*.md` into `.ai.local/rules/` and leaves an existing file untouched. It also seeds **staged-inactive** templates into `.ai.local/rules-library/`; they activate only when a human moves a file into `.ai.local/rules/`. Do not read the whole library up front: when a seed on the active chain matches the task scope, apply it and tell the owner to move it. Authoring guide: `docs/LOCAL-OVERLAY.md`. (`forms-validation` is an active preset rule, not a seed.)
|
|
101
63
|
|
|
102
64
|
## Managed vs preserved
|
|
103
65
|
|
|
104
|
-
`init` owns `.cursor/**`, `.claude/**`, `.mavis/**`, `.opencode/**`, `.zcode/**`, root `AGENTS.md`, and the tool MCP config; it
|
|
66
|
+
`init` owns `.cursor/**`, `.claude/**`, `.mavis/**`, `.opencode/**`, `.zcode/**`, root `AGENTS.md`, and the tool MCP config; it overwrites or merges them. Durable project config and authoritative specs belong outside those trees: `.ai.local/**`, `.ai/context/**`, `docs/specs/**`, `openspec/**`, repo-root `.mcp.json`. After a re-init, re-check any consumer-owned block added to a managed file.
|
|
105
67
|
|
|
106
68
|
## Local overlay (`.ai.local/`) — MANDATORY
|
|
107
69
|
|
|
108
|
-
A `.ai.local/` directory MAY exist at the repo root or at any nesting depth in monorepos. **
|
|
109
|
-
|
|
110
|
-
Plain markdown rules under `.ai.local/rules/*.md` are read by the agent with higher priority than preset rules. Living gotchas live in `.ai.local/conventions.md`. Staged seeds live in `.ai.local/rules-library/**`; a matching seed must be moved into `.ai.local/rules/` to activate.
|
|
70
|
+
A `.ai.local/` directory MAY exist at the repo root or at any nesting depth in monorepos. **Every agent MUST read and apply it on every turn.** Rules there override preset rules; `override: kill <preset-rule-name>` drops that preset rule from context entirely.
|
|
111
71
|
|
|
112
|
-
On every turn, run `list-ai-local.mjs` from the host hooks directory (`.cursor`, `.claude`, `.mavis`, `.opencode`, or `.zcode`) with the paths this step will touch, apply the printed `.ai.local/rules/*.md` and `.ai.local/conventions.md
|
|
72
|
+
On every turn, run `list-ai-local.mjs` from the host hooks directory (`.cursor`, `.claude`, `.mavis`, `.opencode`, or `.zcode`) with the paths this step will touch, then apply the printed `.ai.local/rules/*.md` and `.ai.local/conventions.md`. The root overlay applies to every path; a nested one applies only under its directory. Do not read `shadowed` files or `rules-library/**` as rules. Acknowledge `Using .ai.local: <rule-name>` when answering. Authoring guide: `docs/LOCAL-OVERLAY.md`.
|
|
@@ -12,7 +12,7 @@ Load `anti-hallucination-contract` before asserting code, APIs, schemas, tool be
|
|
|
12
12
|
|
|
13
13
|
You are a build verification specialist. You **validate** implementation quality before code review — you do not edit production code or tests.
|
|
14
14
|
|
|
15
|
-
**SSOT for full validation in pipeline:** run complete **`lint:js`**, **`lint:css`**, and **`type-check`** from `app/`
|
|
15
|
+
**Closure gate (SSOT for full validation in pipeline):** run complete **`lint:js`**, **`lint:css`**, and **`type-check`** from `app/` **once**, after the last authoring step. The developer does not run project gates; do not expect a green baseline. A second full pass needs a named reason (gate config/dependency change, rebase, branch change) recorded in `validation-report.md`.
|
|
16
16
|
|
|
17
17
|
## Inputs
|
|
18
18
|
|
|
@@ -28,11 +28,13 @@ Use **`package-manager.mdc`** for the repo package manager.
|
|
|
28
28
|
2. **`lint:css`** — full Stylelint.
|
|
29
29
|
3. **`type-check`** — when TypeScript changed.
|
|
30
30
|
4. **Unit tests** — run specs for changed modules (paths from diff); if unclear, run the narrowest parent suite that covers changed mappers/services/store.
|
|
31
|
-
5. **
|
|
31
|
+
5. **E2E** — run the affected specs once when the AC names e2e. The QA step authors them; this step executes them.
|
|
32
|
+
6. **Component catalog** — when the repo ships a catalog (e.g. `storybook/`) and `app/src/ui/**` or catalog files changed, run the catalog's own test/visual-baseline suite from the catalog package and require green **without** `--update` (`component-catalog-gate`). A green app unit run does not cover catalog stories.
|
|
33
|
+
7. **`build`** — only when the change-set touches routes, `next.config.*`, `output: export`, or the AC requires a production build.
|
|
32
34
|
|
|
33
|
-
Prefer **`lint`** (= js + css + type-check) before handoff on large changes.
|
|
35
|
+
Prefer **`lint`** (= js + css + type-check) before handoff on large changes. Do not re-run a green command with unchanged inputs; record the skipped row and its base.
|
|
34
36
|
|
|
35
|
-
- **Preset twin/golden DoD (preset source repo only).** When the change-set edits Cursor next agents and/or `presets/_shared/hooks/**` (or other generated twin surfaces), require `node scripts/fix-generated.mjs` then `yarn check:changed` and the gates it names from `packages/ai-rules` with exit 0 before validation PASS. The full `yarn release:gate` is release-only.
|
|
37
|
+
- **Preset twin/golden DoD (preset source repo only).** When the change-set edits Cursor next agents and/or `presets/_shared/hooks/**` (or other generated twin surfaces), require `node scripts/fix-generated.mjs` then `yarn check:task <slug>` (or `yarn check:changed` on a clean tree) and the gates it names from `packages/ai-rules` with exit 0 before validation PASS. The full `yarn release:gate` is release-only.
|
|
36
38
|
|
|
37
39
|
## Delta gate policy (retry / carry-forward)
|
|
38
40
|
|
|
@@ -44,10 +46,10 @@ node scripts/check-preset-delta.mjs --base <last-green-ref> --json
|
|
|
44
46
|
```
|
|
45
47
|
|
|
46
48
|
- A gate whose domain the classifier reports as **changed** MUST be re-run.
|
|
47
|
-
- A gate whose domain is **unchanged**
|
|
49
|
+
- A gate whose domain is **unchanged** is **carried forward**; re-running it is a defect. Record the base ref, the classifier output, and the last green command + exit code.
|
|
48
50
|
- Never carry a targeted gate for a changed domain; the full structure composite is release-only (`yarn release:gate`); never carry the team-db suites when the `team-db` domain changed.
|
|
49
51
|
- A test-only app retry may carry the preset and team-db gates, but must still re-run the affected app lint, type-check, unit, and e2e suites.
|
|
50
|
-
- Carry-forward is evidence, not a skip: the final report still quotes every command (carried or fresh)
|
|
52
|
+
- Carry-forward is evidence, not a skip: the final report still quotes every command (carried or fresh) and names `gatePass` (`closure-1`, `delta-2`, ...), `base`, and `changedDomains`.
|
|
51
53
|
|
|
52
54
|
### Consumer app (any repo with `app/src/**`)
|
|
53
55
|
|
|
@@ -58,10 +60,12 @@ git diff --stat <last-green-ref> -- app storybook
|
|
|
58
60
|
```
|
|
59
61
|
|
|
60
62
|
- Re-run a gate only when the retry touched its domain: `lint:js` for `**/*.{ts,tsx,js,jsx}`, `lint:css` for `**/*.styles.ts` / `**/*.css`, `type-check` for any `app/**` change, unit tests for the modules whose paths changed.
|
|
61
|
-
- A gate
|
|
63
|
+
- A gate is carried forward when `validation-report.md` records the base ref, the changed-path list, and the earlier green command + exit code; re-running it is a defect.
|
|
62
64
|
- `code-reviewer` findings that touch only docs or artifacts never re-open a green code gate; a production edit always does.
|
|
63
65
|
- Never carry a gate across a rebase, a dependency bump, or a config change (`eslint`, `stylelint`, `tsconfig`, `jest`/`vitest`).
|
|
64
66
|
|
|
67
|
+
`validation-report.md` is the only gate evidence: one row per command with exit, UTC timestamp, tree, `gatePass`, and the change domain. Never write a gate command or exit into `implementation.md`.
|
|
68
|
+
|
|
65
69
|
## Verification before completion
|
|
66
70
|
|
|
67
71
|
<!-- shared-core: quality/verification-before-completion.md -->
|
|
@@ -25,6 +25,7 @@ You **issue** reviews. Implementers acting on your findings must verify each ite
|
|
|
25
25
|
|
|
26
26
|
## Tests gate
|
|
27
27
|
|
|
28
|
+
- Read `validation-report.md`; do not run lint/test/build to form a verdict. A gate row in `implementation.md`, or a report whose tree does not match the reviewed revision, is a finding.
|
|
28
29
|
- If diff changes mappers, store reducers/thunks, or domain logic **without** new/updated `*.spec.ts` → **REQUEST_CHANGES** unless task scope explicitly excludes tests.
|
|
29
30
|
- If `validation-report.md` exists and verdict is FAIL → **REQUEST_CHANGES** (developer must fix before review passes).
|
|
30
31
|
- User-flow changes without e2e plan/spec updates → note in warnings; REQUEST_CHANGES when AC requires e2e.
|
|
@@ -30,7 +30,7 @@ Load `dev-process-lifecycle` before starting, reusing, or stopping a dev server,
|
|
|
30
30
|
|
|
31
31
|
- Do **not** start blocked tasks or tasks with incomplete dependencies.
|
|
32
32
|
- **Reuse means reuse.** When the brief says to reuse an existing component, do not widen the change into extracting or relocating a shared primitive. If extraction is genuinely required, stop and hand back to the orchestrator: it is a separate task that needs its own gate, because every other call site inherits the blast radius.
|
|
33
|
-
- **Unit tests must
|
|
33
|
+
- **Unit tests must be authored before handoff** for mappers, store logic, and non-trivial pure functions. Do not execute the project test suite; the closure gate runs it.
|
|
34
34
|
- When the strict implementation rail is off or unset, that test-before-handoff rule is the implementation handoff text.
|
|
35
35
|
- When `pipeline.json` `implementationRail` is `on`:
|
|
36
36
|
- Write a failing test before any production edit.
|
|
@@ -40,8 +40,8 @@ Load `dev-process-lifecycle` before starting, reusing, or stopping a dev server,
|
|
|
40
40
|
- Debug retries for this handoff stop at two.
|
|
41
41
|
- L0, docs-only, research, and preset-only tasks do not take the rail. `build-verifier` and `code-reviewer` stay.
|
|
42
42
|
- Mark completed tasks in `decomposition.md`.
|
|
43
|
-
- Validation: **`post-change-lint.mdc
|
|
44
|
-
- **Preset twin/golden DoD (preset source repo only).** When the change-set edits Cursor next agents and/or `presets/_shared/hooks/**` (or other surfaces that require generated twins), from `packages/ai-rules` run `node scripts/fix-generated.mjs` then `yarn check:changed` and the gates it names (exit 0) before implementation handoff. The full `yarn release:gate` is release-only.
|
|
43
|
+
- Validation: **`post-change-lint.mdc`** is the closure gate. Do **not** run project lint/type-check/test/build in this step; hand off with the diff and authored specs. `build-verifier` owns the full run.
|
|
44
|
+
- **Preset twin/golden DoD (preset source repo only).** When the change-set edits Cursor next agents and/or `presets/_shared/hooks/**` (or other surfaces that require generated twins), from `packages/ai-rules` run `node scripts/fix-generated.mjs` then `yarn check:task <slug>` (or `yarn check:changed` on a clean tree) and the gates it names (exit 0) before implementation handoff. The full `yarn release:gate` is release-only.
|
|
45
45
|
|
|
46
46
|
## Zero improvisation
|
|
47
47
|
|
|
@@ -52,13 +52,13 @@ Load `dev-process-lifecycle` before starting, reusing, or stopping a dev server,
|
|
|
52
52
|
|
|
53
53
|
## Will / Will not
|
|
54
54
|
|
|
55
|
-
**Will:** follow layer order and reference features; add required unit tests;
|
|
55
|
+
**Will:** follow layer order and reference features; add required unit tests; hand off to the closure gate; update task artifacts.
|
|
56
56
|
|
|
57
57
|
**Will not:** formal code review; start blocked/dependent tasks; invent AC; auto-continue the next WP when the pipeline expects a human gate or handoff.
|
|
58
58
|
|
|
59
59
|
## On completion
|
|
60
60
|
|
|
61
|
-
Emit the owned implementation receipt with outcome `completed`. Handoff: tasks done, files by layer, unit specs,
|
|
61
|
+
Emit the owned implementation receipt with outcome `completed`. Handoff: tasks done, files by layer, authored unit specs, closure-gate status (not run), gaps for build-verifier/reviewer.
|
|
62
62
|
|
|
63
63
|
Do not perform formal code review — that is the code-reviewer subagent's job.
|
|
64
64
|
|
|
@@ -77,7 +77,7 @@ Do not perform formal code review — that is the code-reviewer subagent's job.
|
|
|
77
77
|
|
|
78
78
|
<!-- shared-core: quality/verification-before-completion.md -->
|
|
79
79
|
|
|
80
|
-
Before handoff,
|
|
80
|
+
Before handoff, verify the change-set: files changed, specs authored, no project gate run. Do not claim green; closure evidence belongs to `build-verifier` (see the gate-cadence rule in `post-change-lint`).
|
|
81
81
|
|
|
82
82
|
## Existing-suite impact check (UI / copy / table / route changes)
|
|
83
83
|
|
|
@@ -41,8 +41,9 @@ When the task is mostly e2e, prefer invoking the dedicated `playwright-test-plan
|
|
|
41
41
|
|
|
42
42
|
## Execution
|
|
43
43
|
|
|
44
|
-
-
|
|
45
|
-
-
|
|
44
|
+
- Author the unit and e2e specs; do **not** run the project gate suite. `build-verifier` executes the affected specs at closure.
|
|
45
|
+
- For a `test-only`, `unit-only`, or `e2e-only` intent, run the targeted spec being authored or healed; that is the test-authoring exception, not a project gate.
|
|
46
|
+
- Do not re-run a unit suite already recorded green in `validation-report.md`; the closure step owns it.
|
|
46
47
|
|
|
47
48
|
## Artifact contract
|
|
48
49
|
|
|
@@ -22,12 +22,12 @@ You are a task router for a Next.js frontend agent team. You **do not** implemen
|
|
|
22
22
|
|
|
23
23
|
| intent | Signals in prompt | Default steps |
|
|
24
24
|
|--------|-------------------|---------------|
|
|
25
|
-
| `feature` | «добавь» (add), «новая» (new), «реализуй» (implement), «сделай» (do/build), new UI/API/store | task-analyst → feature-developer (unit
|
|
26
|
-
| `bugfix` | «баг» (bug), «fix», «не работает» (doesn't work), «падает» (crashes), «ошибка» (error), regression | debugger → feature-developer (skipIf debugger.fixed) →
|
|
27
|
-
| `ci-fix` | «CI», «упал пайплайн» (pipeline failed), «красный PR» (red PR), «failing check», «lint в CI» (lint in CI) | ci-investigator → feature-developer (skipIf ci-investigator.resolved) → build-verifier → code-reviewer | <!-- i18n-keep: E4 -->
|
|
28
|
-
| `migration` | «миграция» (migration), «upgrade», «обнови Next» (upgrade Next), «переход на» (move to), major version | task-analyst → migration-specialist → feature-developer →
|
|
25
|
+
| `feature` | «добавь» (add), «новая» (new), «реализуй» (implement), «сделай» (do/build), new UI/API/store | task-analyst → feature-developer (unit authored) → qa-tester (e2e authored; skip when no e2e AC) → build-verifier (closure) → code-reviewer | <!-- i18n-keep: E4 -->
|
|
26
|
+
| `bugfix` | «баг» (bug), «fix», «не работает» (doesn't work), «падает» (crashes), «ошибка» (error), regression | debugger → feature-developer (skipIf debugger.fixed) → qa-tester (regression authored) → build-verifier (closure) → code-reviewer | <!-- i18n-keep: E4 -->
|
|
27
|
+
| `ci-fix` | «CI», «упал пайплайн» (pipeline failed), «красный PR» (red PR), «failing check», «lint в CI» (lint in CI) | ci-investigator → feature-developer (skipIf ci-investigator.resolved) → build-verifier (closure) → code-reviewer | <!-- i18n-keep: E4 -->
|
|
28
|
+
| `migration` | «миграция» (migration), «upgrade», «обнови Next» (upgrade Next), «переход на» (move to), major version | task-analyst → migration-specialist → feature-developer → qa-tester (regression authored) → build-verifier (closure) → code-reviewer | <!-- i18n-keep: E4 -->
|
|
29
29
|
| `perf-audit` | «производительность» (performance), «perf», «bundle», «LCP», «медленно» (slow), «waterfall» | performance-auditor | <!-- i18n-keep: E4 -->
|
|
30
|
-
| `a11y` | «a11y», «доступность» (accessibility), «accessibility», «WCAG», «screen reader», «клавиатура» (keyboard) | task-analyst → feature-developer →
|
|
30
|
+
| `a11y` | «a11y», «доступность» (accessibility), «accessibility», «WCAG», «screen reader», «клавиатура» (keyboard) | task-analyst → feature-developer → accessibility-reviewer → qa-tester (e2e authored, if AC) → build-verifier (closure) → code-reviewer | <!-- i18n-keep: E4 -->
|
|
31
31
|
| `mockup-review` | «ревью макета» (mockup review), «mockup review», «проверь Figma» (check Figma), «figma review», «макет» (mockup) + review verb, `figma.com` + review-not-implement | mockup-reviewer | <!-- i18n-keep: E4 -->
|
|
32
32
|
| `ux-design` | «разработай UX» (design UX), «спроектируй» (design/plan) flows, «journey», «IA», «state matrix», «ревью UX» (UX review) without Figma | task-analyst | <!-- i18n-keep: E4 -->
|
|
33
33
|
| `review-only` | «ревью» (review), «review MR», «проверь diff» (check diff), «code review» | code-reviewer | <!-- i18n-keep: E4 -->
|
|
@@ -54,10 +54,12 @@ Set optional top-level `"profile": "full" | "standard" | "light"` in `pipeline.j
|
|
|
54
54
|
|
|
55
55
|
| Profile | When | Typical `feature` steps |
|
|
56
56
|
|---------|------|------------------------|
|
|
57
|
-
| `full` | App code with a named risk flag or an e2e AC: multi-layer, new public API, incomplete AC | analyst → [architect] → developer → build-verifier → reviewer
|
|
57
|
+
| `full` | App code with a named risk flag or an e2e AC: multi-layer, new public API, incomplete AC | analyst → [architect] → developer → qa-tester → build-verifier → reviewer |
|
|
58
58
|
| `standard` | Single layer, default work | analyst → developer → build-verifier → reviewer |
|
|
59
59
|
| `light` | Trivial: one file/layer, explicit AC, «просто поправь» (just fix it), «typo», user «без pipeline» (without pipeline) | developer → build-verifier | <!-- i18n-keep: E4 -->
|
|
60
60
|
|
|
61
|
+
**Closure order:** the last authoring step (`feature-developer`, `qa-tester`, a test generator) is always followed by exactly one `build-verifier`; `code-reviewer` reviews the validated tree. A review fix re-enters the delta verifier before the reviewer sees it again.
|
|
62
|
+
|
|
61
63
|
**Light signals:** one file, one layer, explicit AC in prompt, no architectural risk. **Never skip `build-verifier`** after developer when `app/**` changed. **Skip `code-reviewer`** in light only for non-prod preset/docs tasks — for `app/src` changes prefer standard.
|
|
62
64
|
|
|
63
65
|
**Profile caps:** a pipeline that cannot name a risk flag is `standard`, not `full`. Do not raise the profile because the raw file count is large: generated trees, snapshots, CLI goldens, docs, and test fixtures do not count.
|
|
@@ -13,12 +13,6 @@ Slash commands are copied to `.cursor/commands/` on `ai-rules init cursor --pres
|
|
|
13
13
|
| `/update` | Reinstall each installed tool with the preset recorded at init |
|
|
14
14
|
| `/upstream-research` | Repository-only (not in the published package): queue the weekly upstream evolution review; run one `schedule --once` tick when the timer is offline |
|
|
15
15
|
| `/migrate-tasks` | Create or reconcile `.ai.local/team/team.db`; writes only the delta |
|
|
16
|
-
| `/ui-start` | Start the shipped dashboard in the background on loopback; no Docker, no build step |
|
|
17
|
-
| `/ui-stop` | Stop the server this repository started, then clear its marker |
|
|
18
|
-
|
|
19
|
-
Both UI commands ship on the `next` stack only. On every other stack the contract is the verb itself:
|
|
20
|
-
`node .ai.local/scripts/team-db.mjs ui start|status|stop|restart`, with
|
|
21
|
-
`node .ai.local/scripts/team-db.mjs serve` as the foreground fallback for an engine that predates it.
|
|
22
16
|
|
|
23
17
|
`/task-evil` is intentionally autonomous. Use it when you will review the diff and `decisions.md` after the run; use `/task` when the plan or a product decision needs a human gate.
|
|
24
18
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: task-continue
|
|
3
|
-
description: Continue an agent-team task after a human gate, pause, or review changes request using pipeline.json and status.json.
|
|
3
|
+
description: Continue an agent-team task after a human gate, pause, blocked receipt, or review changes request using pipeline.json and status.json.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Task continue — after human gate or
|
|
6
|
+
# Task continue — after human gate, pause, or blocked receipt
|
|
7
7
|
|
|
8
8
|
Resume the pipeline from `pipeline.json`.
|
|
9
9
|
|
|
@@ -17,6 +17,7 @@ Resume the pipeline from `pipeline.json`.
|
|
|
17
17
|
2. Continue if:
|
|
18
18
|
- `awaitingHumanGate: true` or `state: awaiting_approval`, **or**
|
|
19
19
|
- `state: changes_requested` (after review), **or**
|
|
20
|
+
- `state: blocked` (a producer's terminal `blocked` receipt and the owner has resolved the blockers), **or**
|
|
20
21
|
- `state: paused` (the `.ai.local/STOP` / `.ai.local/ESTOP` sentinel is gone), **or**
|
|
21
22
|
- the task was interrupted and must resume from `pipelineIndex`.
|
|
22
23
|
|
|
@@ -34,10 +35,20 @@ printf '%s\n' '{"status":"completed","action":"end_human_gate","activateNext":tr
|
|
|
34
35
|
3. Re-read `status.json` (and the hook `followup_message`).
|
|
35
36
|
4. Invoke the subagent named in `status.currentAgent` / followup — do **not** advance the pipeline a second time.
|
|
36
37
|
3. **Review `changes_requested`** (not a human gate): if `currentAgent` is **`mockup-reviewer`**, this is the FAIL-only mockup gate — do **not** retry `feature-developer`. Read `mockup-review.md` and resume via the human-gate path (`end_human_gate` / `activateNext`). Otherwise: set `currentAgent` to `feature-developer` (same index / find developer in steps), `state: in_progress`, then invoke developer. Do **not** call `end_human_gate` unless `activeHumanGateEventId` is set.
|
|
37
|
-
4. **`blocked` + `currentAgent: mockup-reviewer`** (`BLOCKED_MCP`): skip-forward via the same `end_human_gate`/`activateNext` path (explicit «proceed without MCP»). Do not invent DS claims.
|
|
38
|
-
5. **
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
4. **`blocked` + `currentAgent: mockup-reviewer`** (`BLOCKED_MCP`): skip-forward via the same `end_human_gate`/`activateNext` path (explicit «proceed without MCP»). Do not invent DS claims. This exception keeps precedence: `resume_blocked` refuses this state and names the skip-forward.
|
|
39
|
+
5. **`state: blocked`** (every other producer): re-arm the blocked step through the **installed** hook — it activates attempt N+1 and is the **single authority** for the ledger:
|
|
40
|
+
1. **Do not** manually increment `pipelineIndex` or hand-write `status.json` fields.
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
printf '%s\n' '{"action":"resume_blocked"}' | TEAM_TASK_SLUG=<slug> bash .cursor/hooks/chain-team-phases.sh
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
2. `ok:false` with a `reason` (`is not blocked`, `pipeline.json`, `graph mode`, `already has an active attempt`) means nothing was armed: re-read `status.json` and act on the reason. A refusal carries no `followup_message` — never re-invoke a producer on it.
|
|
47
|
+
3. `ok:true` arms attempt N+1 on the same step: re-read `status.json`, then invoke the subagent named in `status.currentAgent` with the hook `followup_message`. Do **not** open the gate yourself: the retried receipt opens it (`awaiting_approval`) when the step has `after:<agent>` in `humanGates`, and advances the chain otherwise.
|
|
48
|
+
4. Fallback only for an installed hook that predates the action (the call answers `{}`): run `{"status":"completed","action":"bootstrap"}` then `{"status":"completed"}`. The second run opens the gate or advances; the retried producer is not ledgered, so record it in `.memlog.md`.
|
|
49
|
+
6. **Other resume**: restore `pipelineIndex` / `currentAgent` from status and invoke that agent.
|
|
50
|
+
7. **Paused** (`state: paused`, sentinel removed): if `awaitingHumanGate` is still true, use the human-gate resume path above. Otherwise close the pause through the installed hook with `{"status":"completed"}` and no `action`, then re-read `status.json` and the hook `followup_message`; do not advance by hand.
|
|
51
|
+
8. After the invoked agent completes, `chain-team-phases.sh` on `subagentStop` continues the chain when `autoChain: true`.
|
|
41
52
|
|
|
42
53
|
## Checkpoint & resume
|
|
43
54
|
|
|
@@ -23,8 +23,12 @@ try {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
if (hookInput.status !== 'completed') {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
// `resume_blocked` is a lifecycle repair, not a producer receipt: it runs
|
|
27
|
+
// with no `status`, and a `status` it carries is ignored.
|
|
28
|
+
if (hookInput.action !== 'resume_blocked') {
|
|
29
|
+
process.stdout.write('{}');
|
|
30
|
+
process.exit(0);
|
|
31
|
+
}
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
// Slug resolution, strongest first:
|
|
@@ -2095,6 +2099,137 @@ function syncMetricsProfile(pipeline) {
|
|
|
2095
2099
|
});
|
|
2096
2100
|
}
|
|
2097
2101
|
|
|
2102
|
+
function resumeBlockedRefuse(reason) {
|
|
2103
|
+
process.stdout.write(JSON.stringify({ ok: false, action: 'resume_blocked', reason }));
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
/**
|
|
2107
|
+
* Arm attempt N+1 for one linear step. The ordinal read and the append share
|
|
2108
|
+
* one metrics critical section, like `completeTaskMetrics`: a second process
|
|
2109
|
+
* serializes on the lock and sees the first attempt instead of minting the
|
|
2110
|
+
* same ordinal.
|
|
2111
|
+
*/
|
|
2112
|
+
function armResumedAttempt(step, stepIndex, agent) {
|
|
2113
|
+
let attemptId = null;
|
|
2114
|
+
mutateMetrics((metrics) => {
|
|
2115
|
+
const ledgerRunId = metrics.task && typeof metrics.task.runId === 'string' ? metrics.task.runId : '';
|
|
2116
|
+
const runId = ledgerRunId || status.metricsRunId || `${slug}-${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
2117
|
+
metrics.task = { ...(metrics.task || {}), runId };
|
|
2118
|
+
status.metricsRunId = runId;
|
|
2119
|
+
const events = Array.isArray(metrics.events) ? metrics.events : (metrics.events = []);
|
|
2120
|
+
const attempt =
|
|
2121
|
+
events.reduce(
|
|
2122
|
+
(highest, event) =>
|
|
2123
|
+
event && event.type === 'attempt_started' && event.stepIndex === stepIndex && event.agent === agent
|
|
2124
|
+
? Math.max(highest, Number(event.attempt) || 0)
|
|
2125
|
+
: highest,
|
|
2126
|
+
0,
|
|
2127
|
+
) + 1;
|
|
2128
|
+
attemptId = `${runId}:step-${stepIndex}:${agent}:attempt-${attempt}`;
|
|
2129
|
+
status.activeAttempts = {
|
|
2130
|
+
...(status.activeAttempts || {}),
|
|
2131
|
+
[attemptId]: { agent, stepIndex, attempt, startedAt: now, parallelGroupId: null, waveId: null },
|
|
2132
|
+
};
|
|
2133
|
+
events.push({
|
|
2134
|
+
eventId: `${runId}:${Date.now()}:${Math.random().toString(16).slice(2)}`,
|
|
2135
|
+
type: 'attempt_started',
|
|
2136
|
+
at: now,
|
|
2137
|
+
attemptId,
|
|
2138
|
+
stepIndex,
|
|
2139
|
+
stepLabel: step.label || null,
|
|
2140
|
+
agent,
|
|
2141
|
+
role: roleFor(agent),
|
|
2142
|
+
attempt,
|
|
2143
|
+
parallelGroupId: null,
|
|
2144
|
+
waveId: null,
|
|
2145
|
+
source: 'hook',
|
|
2146
|
+
attributionConfidence: 'high',
|
|
2147
|
+
});
|
|
2148
|
+
});
|
|
2149
|
+
return attemptId;
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
// Re-arm the step a producer left `blocked`. It arms the attempt only: a stop
|
|
2153
|
+
// that finds `awaitingHumanGate: true` returns before the stop tail, so an open
|
|
2154
|
+
// gate would swallow the retried receipt. Gate/advance stays receipt-driven.
|
|
2155
|
+
if (hookInput.action === 'resume_blocked') {
|
|
2156
|
+
if (pauseBlocksAdvance()) process.exit(0);
|
|
2157
|
+
const pipeline = readPipeline();
|
|
2158
|
+
if (!pipeline || !Array.isArray(pipeline.steps) || pipeline.steps.length === 0) {
|
|
2159
|
+
resumeBlockedRefuse(
|
|
2160
|
+
`pipeline.json is missing, unparseable, or has no steps for slug "${slug}"; no attempt was armed and status.json is unchanged.`,
|
|
2161
|
+
);
|
|
2162
|
+
process.exit(0);
|
|
2163
|
+
}
|
|
2164
|
+
const stepIndex = typeof status.pipelineIndex === 'number' ? status.pipelineIndex : 0;
|
|
2165
|
+
const step = pipeline.steps[stepIndex];
|
|
2166
|
+
const blockedSteps = Array.isArray(status.blockedSteps) ? status.blockedSteps : [];
|
|
2167
|
+
if (blockedSteps.length > 0 || pipeline.steps.some((entry) => entry && Array.isArray(entry.dependsOn))) {
|
|
2168
|
+
resumeBlockedRefuse(
|
|
2169
|
+
`graph mode is not supported by resume_blocked for slug "${slug}" (status.blockedSteps or a step.dependsOn): nothing was armed; resume the wave by hand.`,
|
|
2170
|
+
);
|
|
2171
|
+
process.exit(0);
|
|
2172
|
+
}
|
|
2173
|
+
const agents = step ? getStepAgents(step).filter((agent) => typeof agent === 'string' && agent.length > 0) : [];
|
|
2174
|
+
if (agents.length === 0) {
|
|
2175
|
+
resumeBlockedRefuse(
|
|
2176
|
+
`pipeline.json has no executable step at pipelineIndex ${stepIndex} for slug "${slug}"; nothing was armed.`,
|
|
2177
|
+
);
|
|
2178
|
+
process.exit(0);
|
|
2179
|
+
}
|
|
2180
|
+
// A parallel wave is not a single linear step: re-arming it would re-run the
|
|
2181
|
+
// agents that already succeeded. Refuse the shape instead of arming the wave.
|
|
2182
|
+
if (agents.length > 1) {
|
|
2183
|
+
resumeBlockedRefuse(
|
|
2184
|
+
`step ${stepIndex} is a parallel wave for slug "${slug}" (${agents.join(', ')}); resume_blocked arms one linear step, so nothing was armed.`,
|
|
2185
|
+
);
|
|
2186
|
+
process.exit(0);
|
|
2187
|
+
}
|
|
2188
|
+
if (status.state !== 'blocked') {
|
|
2189
|
+
resumeBlockedRefuse(
|
|
2190
|
+
`state "${status.state || 'unknown'}" is not blocked for slug "${slug}"; resume_blocked only re-arms the step a producer left blocked.`,
|
|
2191
|
+
);
|
|
2192
|
+
process.exit(0);
|
|
2193
|
+
}
|
|
2194
|
+
if (status.currentAgent === 'mockup-reviewer') {
|
|
2195
|
+
resumeBlockedRefuse(
|
|
2196
|
+
`the mockup-reviewer BLOCKED_MCP skip-forward owns this state for slug "${slug}": run {"action":"end_human_gate","activateNext":true} instead; resume_blocked armed nothing.`,
|
|
2197
|
+
);
|
|
2198
|
+
process.exit(0);
|
|
2199
|
+
}
|
|
2200
|
+
const activeForStep = Object.values(status.activeAttempts || {}).filter(
|
|
2201
|
+
(entry) => entry && entry.stepIndex === stepIndex,
|
|
2202
|
+
);
|
|
2203
|
+
if (activeForStep.length > 0) {
|
|
2204
|
+
resumeBlockedRefuse(
|
|
2205
|
+
`step ${stepIndex} already has an active attempt for slug "${slug}" (${activeForStep.map((entry) => entry.agent).join(', ')}); resume_blocked changed nothing.`,
|
|
2206
|
+
);
|
|
2207
|
+
process.exit(0);
|
|
2208
|
+
}
|
|
2209
|
+
const attemptId = armResumedAttempt(step, stepIndex, agents[0]);
|
|
2210
|
+
// `currentAgent` names the blocked producer; a pipeline blocked without one
|
|
2211
|
+
// (missing consumer artifacts) falls back to the step's agent.
|
|
2212
|
+
const resumedAgent = status.currentAgent || agents[0];
|
|
2213
|
+
writeStatus({
|
|
2214
|
+
pipelineIndex: stepIndex,
|
|
2215
|
+
currentAgent: resumedAgent,
|
|
2216
|
+
phase: 'executing',
|
|
2217
|
+
state: 'in_progress',
|
|
2218
|
+
awaitingHumanGate: false,
|
|
2219
|
+
});
|
|
2220
|
+
process.stdout.write(
|
|
2221
|
+
JSON.stringify({
|
|
2222
|
+
ok: true,
|
|
2223
|
+
action: 'resume_blocked',
|
|
2224
|
+
pipelineIndex: stepIndex,
|
|
2225
|
+
agents,
|
|
2226
|
+
attemptIds: [attemptId],
|
|
2227
|
+
followup_message: handoffForAgent(resumedAgent, step.scope, step),
|
|
2228
|
+
}),
|
|
2229
|
+
);
|
|
2230
|
+
process.exit(0);
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2098
2233
|
if (hookInput.action === 'bootstrap') {
|
|
2099
2234
|
if (pauseBlocksAdvance()) process.exit(0);
|
|
2100
2235
|
const pipeline = readPipeline();
|
|
@@ -2650,7 +2785,16 @@ if (status.state === 'changes_requested') {
|
|
|
2650
2785
|
process.stdout.write('{}');
|
|
2651
2786
|
process.exit(0);
|
|
2652
2787
|
}
|
|
2653
|
-
const
|
|
2788
|
+
const reviewerStepIndex = typeof status.pipelineIndex === 'number' ? status.pipelineIndex : 0;
|
|
2789
|
+
let verifierStepIndex = -1;
|
|
2790
|
+
for (let index = reviewerStepIndex - 1; index >= 0; index -= 1) {
|
|
2791
|
+
if (getStepAgents(steps[index]).includes('build-verifier')) {
|
|
2792
|
+
verifierStepIndex = index;
|
|
2793
|
+
break;
|
|
2794
|
+
}
|
|
2795
|
+
}
|
|
2796
|
+
const retryGate = verifierStepIndex >= 0 ? 'build-verifier' : reviewer;
|
|
2797
|
+
const retryAfterFixStepIndex = verifierStepIndex >= 0 ? verifierStepIndex : reviewerStepIndex;
|
|
2654
2798
|
const developerIndex = scheduleRetry('feature-developer', reviewer, finishedAttempt);
|
|
2655
2799
|
if (developerIndex < 0) {
|
|
2656
2800
|
beginHumanGate();
|
|
@@ -2663,10 +2807,10 @@ if (status.state === 'changes_requested') {
|
|
|
2663
2807
|
currentAgent: 'feature-developer',
|
|
2664
2808
|
state: 'in_progress',
|
|
2665
2809
|
phase: 'executing',
|
|
2666
|
-
retryAfterFix:
|
|
2810
|
+
retryAfterFix: retryGate,
|
|
2667
2811
|
retryAfterFixStepIndex,
|
|
2668
2812
|
});
|
|
2669
|
-
out(handoffForAgent('feature-developer', steps[developerIndex]?.scope, steps[developerIndex]) + ` After fixes, re-run ${
|
|
2813
|
+
out(handoffForAgent('feature-developer', steps[developerIndex]?.scope, steps[developerIndex]) + ` After fixes, re-run ${retryGate}.`);
|
|
2670
2814
|
process.exit(0);
|
|
2671
2815
|
}
|
|
2672
2816
|
|
|
@@ -176,8 +176,8 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
176
176
|
| `in_progress` | Current step running |
|
|
177
177
|
| `completed` | Current step done; hook advances |
|
|
178
178
|
| `awaiting_approval` | Human gate; wait for `/task-continue` |
|
|
179
|
-
| `changes_requested` | Reviewer blocked; re-run developer
|
|
180
|
-
| `validation_failed` | build-verifier failed; re-run developer then build-verifier |
|
|
179
|
+
| `changes_requested` | Reviewer blocked; re-run developer → `build-verifier` (delta) → same reviewer when the fix touches code/tests; docs/artifacts only → same reviewer |
|
|
180
|
+
| `validation_failed` | build-verifier failed; re-run developer then `build-verifier` (delta) |
|
|
181
181
|
| `blocked` | Pipeline / step cannot proceed (e.g. `pipeline_parse_error`, completion of a parallel step whose producer's receipt was missing — see `agent-artifact-contracts.md` § Completion receipts) |
|
|
182
182
|
| `awaiting_artifact_receipt` | Producer stopped but the bound or assigned-output receipt was missing or stale; hook keeps the attempt active and does not advance. See `agent-artifact-contracts.md` (Schema field name + Receipt binding) for the silent-bug class that lands here. |
|
|
183
183
|
|
|
@@ -209,8 +209,8 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
209
209
|
3. One role per Task call — **except** parallel steps: multiple Task calls in one message.
|
|
210
210
|
4. **Never** skip `humanGates` without `/task-continue` or explicit user approval.
|
|
211
211
|
5. Persist handoffs to disk (including `mockup-review.md` and `ux-design.md` when those producers ran) and update the producer-owned terminal receipt in `artifact-manifest.json`; Markdown remains detailed evidence.
|
|
212
|
-
6. On `changes_requested` from reviewers: hook sets `retryAfterFix` → developer → same reviewer. Exception: embedded `mockup-reviewer` FAIL → `awaiting_approval` / `/task-continue` only — do **not** retry `feature-developer`.
|
|
213
|
-
7. On `validation_failed` from `build-verifier`: hook sets `retryAfterFix: build-verifier` → developer → build-verifier.
|
|
212
|
+
6. On `changes_requested` from reviewers: hook sets `retryAfterFix` → developer → `build-verifier` (delta) → same reviewer when the fix touches code/tests; a docs/artifacts-only fix returns to the same reviewer without a code gate. Exception: embedded `mockup-reviewer` FAIL → `awaiting_approval` / `/task-continue` only — do **not** retry `feature-developer`.
|
|
213
|
+
7. On `validation_failed` from `build-verifier`: hook sets `retryAfterFix: build-verifier` → developer → build-verifier (delta).
|
|
214
214
|
8. When all steps complete, suggest `/technical-retro <slug>`.
|
|
215
215
|
9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
|
|
216
216
|
10. **Persist the verbatim original prompt.** Every `/task` and every routed work request writes the user's raw prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). Not a manifest `artifacts[]` body — register the path on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact. Also append every **subsequent user-authored** prompt for the same slug — a new user message while the slug is active, `/task-continue` arguments, human-gate feedback, a clarification answer — to the append-only `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; never rewrite or duplicate an entry; never log machine-generated hook `followup_message` or empty/argument-less invocations). Register its path on the `routing` entry. See **agent-artifact-contracts** § Prompt log. A message that explicitly addresses a **closed** slug follows the same ledger with the `post-terminal` marker — append-only, no reopen, one bounded `sync --slug`; see § Team artifact I/O.
|
|
@@ -12,12 +12,8 @@ alwaysApply: true
|
|
|
12
12
|
|
|
13
13
|
# Principles
|
|
14
14
|
|
|
15
|
-
- **KISS:** the simplest change in the repository’s patterns.
|
|
16
|
-
- **
|
|
17
|
-
- **YAGNI:** no APIs, flags, or “for later” layers without a current requirement.
|
|
18
|
-
- **SOLID:** S — one reason to change; O — composition/new implementations; L — subtype contract; I — narrow ports; D — abstractions (ports), details in stack adapters.
|
|
19
|
-
- **CUPID:** Composable; Unix philosophy (one responsibility); Predictable; Idiomatic (repo); Domain-based.
|
|
20
|
-
- **Composition over inheritance;** Law of Demeter — no `a.b.c.d` chains; via public API / facade.
|
|
15
|
+
- **KISS / YAGNI / DRY (Rule of Three):** the simplest change in the repository’s patterns; share after the 3rd repetition; no “for later” APIs, flags, or layers.
|
|
16
|
+
- **SOLID / CUPID, applied:** composition over inheritance; one reason to change; narrow ports; no `a.b.c.d` chains — go through a public API or facade.
|
|
21
17
|
|
|
22
18
|
# Over-abstraction guardrails
|
|
23
19
|
|
|
@@ -45,7 +45,7 @@ Typical feature with backend data and shared state. Layer details — `architect
|
|
|
45
45
|
6. **UI** — types from `@/types`, no DTOs (`react-ui.mdc`, `architecture-boundaries-ui.mdc`, `no-props-spread.mdc`).
|
|
46
46
|
7. **Mocks** — per repo layout; register in `app/src/mocks/handlers.ts` (see below).
|
|
47
47
|
8. **Tests** — unit for mappers (`tests-unit.mdc`); e2e from `*.cases.md` (`tests-e2e-structure.mdc`, `playwright-agents.mdc`).
|
|
48
|
-
9. **Completion** — **`post-change-lint.mdc
|
|
48
|
+
9. **Completion** — closure gate: **`post-change-lint.mdc`** runs **once**, after the last authoring step (`build-verifier` owns it): `lint:js` + `lint:css` + `type-check`; package manager — `package-manager.mdc`. Do not run project lint/test/build in steps 1–8; author code and tests only. When the current WP spans **more than one** layer or module, `implementation.md` includes a **Code Map** (3–8 annotated paths) and **Suggested Review Order** (`concern | path:line | ≤15 word note`). Omit both for a single-file or single-layer WP.
|
|
49
49
|
|
|
50
50
|
## Context hygiene
|
|
51
51
|
|
|
@@ -112,7 +112,7 @@ When adding or extending a feature, **walk the checklist** and the rules from th
|
|
|
112
112
|
|
|
113
113
|
## Iterative refinement loop
|
|
114
114
|
|
|
115
|
-
Every stage runs the named loop **draft →
|
|
115
|
+
Every stage runs the named loop **draft → structural evaluation → refine** against a named oracle: reference-feature parity, layer/import shape, schema/contract parity, or review. The oracle is **not** a project test run. Tests are authored in the stage and executed by the closure gate (`build-verifier`); a failing test is closure evidence, not a per-stage trigger. When `implementationRail: tdd` is explicitly on, targeted tests are the documented cadence exception. **Exit criteria:** a layer or stage is complete only when its structural criteria hold (reference parity, barrel/import shape, authored test present); do not advance past a failing oracle. A repeatedly failing oracle triggers **plan revision**.
|
|
116
116
|
|
|
117
117
|
## Related
|
|
118
118
|
|