@bonesofspring/ai-rules 0.2.33 → 0.2.35
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 +33 -0
- package/bin/cli.js +247 -337
- package/bin/lib/fs-utils.js +203 -0
- package/bin/lib/merged-config.js +296 -0
- package/bin/lib/safe-path.js +7 -3
- package/bin/lib/seed-ai-local-team.js +18 -2
- package/bin/mavis-install.js +67 -173
- package/bin/opencode-install.js +120 -227
- package/docs/PRESET-CONTRIBUTION.md +33 -12
- package/package.json +16 -2
- package/presets/_shared/README.md +3 -1
- package/presets/_shared/core/agent-team/agent-artifact-contracts.md +22 -0
- package/presets/_shared/core/agent-team/agent-task-metrics.md +12 -1
- package/presets/_shared/core/agent-team/agent-team-intake.md +1 -1
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +19 -5
- package/presets/_shared/core/agent-team/plan-graph.md +28 -0
- package/presets/_shared/core/agent-team/task-classification.md +2 -0
- package/presets/_shared/core/architecture/feature-delivery-workflow.md +1 -1
- package/presets/_shared/core/meta/preset-no-cross-stack-leakage.md +0 -1
- package/presets/_shared/core/meta/preset-pr-checklist.md +6 -2
- package/presets/_shared/core/meta/preset-token-budget.md +2 -3
- package/presets/_shared/core/meta/preset-twin-sync.md +5 -5
- package/presets/_shared/core/quality/self-review-and-context-hygiene.md +11 -0
- package/presets/_shared/core/review/mockup-review.md +34 -29
- package/presets/claude/android-kotlin/REPO_AGENTS.md +10 -6
- package/presets/claude/android-kotlin/agents/build-verifier.md +3 -37
- package/presets/claude/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/claude/android-kotlin/agents/debugger.md +1 -1
- package/presets/claude/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/claude/android-kotlin/agents/openspec-author.md +1 -1
- package/presets/claude/android-kotlin/agents/task-analyst.md +2 -2
- package/presets/claude/android-kotlin/agents/task-router.md +10 -0
- package/presets/claude/android-kotlin/agents/tech-writer.md +1 -1
- package/presets/claude/android-kotlin/agents/unit-test-generator.md +1 -1
- package/presets/claude/android-kotlin/agents/unit-test-planner.md +1 -1
- package/presets/claude/android-kotlin/commands/task-continue.md +1 -1
- package/presets/claude/android-kotlin/commands/task.md +1 -1
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +418 -33
- package/presets/claude/android-kotlin/rules/api-and-data/networking.md +1 -1
- package/presets/claude/android-kotlin/rules/architecture/boundaries.md +2 -2
- package/presets/claude/android-kotlin/rules/architecture/feature-delivery.md +13 -18
- package/presets/claude/android-kotlin/rules/architecture/module-public-api.md +1 -1
- package/presets/claude/android-kotlin/rules/architecture/product-specs-authoring.md +1 -0
- package/presets/claude/android-kotlin/rules/architecture/product-specs.md +1 -0
- package/presets/claude/android-kotlin/rules/architecture/reference-features.md +1 -2
- package/presets/claude/android-kotlin/rules/stack/android-app-core.md +2 -2
- package/presets/claude/android-kotlin/rules/stack/kotlin-conventions.md +1 -1
- package/presets/claude/android-kotlin/rules/testing/ui.md +1 -1
- package/presets/claude/android-kotlin/rules/testing/unit.md +2 -2
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-intake.md +2 -4
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +248 -12
- package/presets/claude/android-kotlin/rules/tooling-and-review/ai-local-overlay.md +7 -31
- package/presets/claude/android-kotlin/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +1 -5
- package/presets/claude/android-kotlin/rules/tooling-and-review/design-guidance.md +1 -2
- package/presets/claude/android-kotlin/rules/tooling-and-review/language-policy.md +1 -2
- package/presets/claude/android-kotlin/rules/tooling-and-review/mcp-usage.md +1 -2
- package/presets/claude/android-kotlin/rules/tooling-and-review/mockup-review.md +35 -32
- package/presets/claude/android-kotlin/rules/tooling-and-review/post-change-build.md +2 -6
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-goals.md +2 -3
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-layering.md +2 -3
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +8 -5
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-token-budget.md +4 -6
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-twin-sync.md +7 -8
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-writing-style.md +2 -3
- package/presets/claude/android-kotlin/rules/tooling-and-review/technical-retro.md +1 -3
- package/presets/claude/android-kotlin/rules/tooling-and-review/ux-design.md +1 -3
- package/presets/claude/android-kotlin/rules/ui-and-accessibility/compose.md +1 -1
- package/presets/claude/android-kotlin/skills/technical-retro/SKILL.md +13 -2
- package/presets/claude/android-kotlin/skills/unit-testing/SKILL.md +1 -1
- package/presets/claude/android-kotlin/team/README.md +6 -3
- package/presets/claude/go/REPO_AGENTS.md +10 -6
- package/presets/claude/go/agents/build-verifier.md +3 -29
- package/presets/claude/go/agents/ci-investigator.md +2 -2
- package/presets/claude/go/agents/code-reviewer.md +1 -1
- package/presets/claude/go/agents/debugger.md +1 -1
- package/presets/claude/go/agents/feature-developer.md +1 -3
- package/presets/claude/go/agents/openspec-author.md +1 -1
- package/presets/claude/go/agents/task-analyst.md +2 -2
- package/presets/claude/go/agents/task-router.md +10 -0
- package/presets/claude/go/agents/tech-writer.md +1 -1
- package/presets/claude/go/commands/task-continue.md +1 -1
- package/presets/claude/go/commands/task.md +1 -1
- package/presets/claude/go/hooks/chain-team-phases.sh +418 -35
- package/presets/claude/go/rules/api-and-data/adapters-driven.md +1 -1
- package/presets/claude/go/rules/api-and-data/adapters-driving.md +2 -2
- package/presets/claude/go/rules/architecture/boundaries.md +1 -0
- package/presets/claude/go/rules/architecture/feature-delivery.md +45 -41
- package/presets/claude/go/rules/architecture/product-specs-authoring.md +1 -0
- package/presets/claude/go/rules/architecture/product-specs.md +1 -0
- package/presets/claude/go/rules/architecture/reference-features.md +37 -21
- package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +2 -7
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +77 -40
- package/presets/claude/go/rules/tooling-and-review/ai-local-overlay.md +7 -31
- package/presets/claude/go/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
- package/presets/claude/go/rules/tooling-and-review/code-quality.md +1 -1
- package/presets/claude/go/rules/tooling-and-review/code-review.md +1 -6
- package/presets/claude/go/rules/tooling-and-review/design-guidance.md +1 -2
- package/presets/claude/go/rules/tooling-and-review/go-tooling.md +2 -7
- package/presets/claude/go/rules/tooling-and-review/language-policy.md +1 -2
- package/presets/claude/go/rules/tooling-and-review/mcp-usage.md +1 -2
- package/presets/claude/go/rules/tooling-and-review/post-change-test.md +2 -7
- package/presets/claude/go/rules/tooling-and-review/preset-goals.md +2 -3
- package/presets/claude/go/rules/tooling-and-review/preset-layering.md +2 -3
- package/presets/claude/go/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
- package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +8 -5
- package/presets/claude/go/rules/tooling-and-review/preset-token-budget.md +4 -6
- package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +7 -8
- package/presets/claude/go/rules/tooling-and-review/preset-writing-style.md +2 -3
- package/presets/claude/go/rules/tooling-and-review/technical-retro.md +1 -6
- package/presets/claude/go/skills/ci-investigation/SKILL.md +2 -2
- package/presets/claude/go/skills/technical-retro/SKILL.md +13 -2
- package/presets/claude/go/team/README.md +6 -3
- package/presets/claude/ios-swift/REPO_AGENTS.md +10 -6
- package/presets/claude/ios-swift/agents/build-verifier.md +3 -39
- package/presets/claude/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/claude/ios-swift/agents/debugger.md +1 -1
- package/presets/claude/ios-swift/agents/feature-developer.md +1 -1
- package/presets/claude/ios-swift/agents/openspec-author.md +1 -1
- package/presets/claude/ios-swift/agents/task-analyst.md +2 -2
- package/presets/claude/ios-swift/agents/task-router.md +10 -0
- package/presets/claude/ios-swift/agents/tech-writer.md +1 -1
- package/presets/claude/ios-swift/agents/unit-test-generator.md +1 -1
- package/presets/claude/ios-swift/agents/unit-test-planner.md +1 -1
- package/presets/claude/ios-swift/agents/xcuitest-test-generator.md +1 -1
- package/presets/claude/ios-swift/agents/xcuitest-test-planner.md +2 -2
- package/presets/claude/ios-swift/commands/task-continue.md +1 -1
- package/presets/claude/ios-swift/commands/task.md +1 -1
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +418 -33
- package/presets/claude/ios-swift/rules/api-and-data/networking.md +3 -1
- package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +58 -9
- package/presets/claude/ios-swift/rules/architecture/product-specs-authoring.md +1 -0
- package/presets/claude/ios-swift/rules/architecture/product-specs.md +1 -0
- package/presets/claude/ios-swift/rules/architecture/reference-features.md +44 -7
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +2 -4
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +248 -12
- package/presets/claude/ios-swift/rules/tooling-and-review/ai-local-overlay.md +7 -31
- package/presets/claude/ios-swift/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
- package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +1 -5
- package/presets/claude/ios-swift/rules/tooling-and-review/design-guidance.md +1 -2
- package/presets/claude/ios-swift/rules/tooling-and-review/language-policy.md +1 -2
- package/presets/claude/ios-swift/rules/tooling-and-review/mcp-usage.md +1 -2
- package/presets/claude/ios-swift/rules/tooling-and-review/mockup-review.md +35 -32
- package/presets/claude/ios-swift/rules/tooling-and-review/post-change-build.md +2 -6
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-goals.md +2 -3
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-layering.md +2 -3
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +8 -5
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-token-budget.md +4 -6
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +7 -8
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-writing-style.md +2 -3
- package/presets/claude/ios-swift/rules/tooling-and-review/security-ios.md +0 -2
- package/presets/claude/ios-swift/rules/tooling-and-review/technical-retro.md +1 -3
- package/presets/claude/ios-swift/rules/tooling-and-review/ux-design.md +1 -3
- package/presets/claude/ios-swift/rules/tooling-and-review/xcode-tooling.md +1 -5
- package/presets/claude/ios-swift/rules/ui-and-accessibility/swiftui.md +2 -1
- package/presets/claude/ios-swift/rules/ui-and-accessibility/viewmodels.md +2 -1
- package/presets/claude/ios-swift/skills/technical-retro/SKILL.md +13 -2
- package/presets/claude/ios-swift/skills/unit-testing/SKILL.md +1 -1
- package/presets/claude/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
- package/presets/claude/ios-swift/team/README.md +6 -3
- package/presets/claude/java/REPO_AGENTS.md +10 -6
- package/presets/claude/java/agents/build-verifier.md +3 -39
- package/presets/claude/java/agents/ci-investigator.md +2 -2
- package/presets/claude/java/agents/code-reviewer.md +1 -1
- package/presets/claude/java/agents/debugger.md +1 -1
- package/presets/claude/java/agents/feature-developer.md +1 -3
- package/presets/claude/java/agents/openspec-author.md +1 -1
- package/presets/claude/java/agents/task-analyst.md +2 -2
- package/presets/claude/java/agents/task-router.md +10 -0
- package/presets/claude/java/agents/tech-writer.md +1 -1
- package/presets/claude/java/commands/task-continue.md +1 -1
- package/presets/claude/java/commands/task.md +1 -1
- package/presets/claude/java/hooks/chain-team-phases.sh +418 -35
- package/presets/claude/java/rules/api-and-data/adapters-driven.md +2 -1
- package/presets/claude/java/rules/api-and-data/adapters-driving.md +3 -2
- package/presets/claude/java/rules/api-and-data/api-grpc.md +1 -0
- package/presets/claude/java/rules/api-and-data/api-http.md +1 -0
- package/presets/claude/java/rules/api-and-data/messaging-adapters.md +1 -1
- package/presets/claude/java/rules/api-and-data/persistence-adapters.md +1 -0
- package/presets/claude/java/rules/architecture/application-usecases.md +2 -1
- package/presets/claude/java/rules/architecture/boundaries.md +1 -0
- package/presets/claude/java/rules/architecture/composition-root.md +1 -0
- package/presets/claude/java/rules/architecture/domain-layer.md +2 -1
- package/presets/claude/java/rules/architecture/feature-delivery.md +46 -43
- package/presets/claude/java/rules/architecture/module-public-api.md +1 -0
- package/presets/claude/java/rules/architecture/ports-interfaces.md +2 -1
- package/presets/claude/java/rules/architecture/product-specs-authoring.md +1 -0
- package/presets/claude/java/rules/architecture/product-specs.md +1 -0
- package/presets/claude/java/rules/architecture/reference-features.md +38 -22
- package/presets/claude/java/rules/stack/java-conventions.md +1 -0
- package/presets/claude/java/rules/testing/e2e.md +1 -0
- package/presets/claude/java/rules/testing/integration.md +1 -0
- package/presets/claude/java/rules/testing/unit.md +1 -0
- package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +2 -8
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +77 -41
- package/presets/claude/java/rules/tooling-and-review/ai-local-overlay.md +7 -31
- package/presets/claude/java/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
- package/presets/claude/java/rules/tooling-and-review/code-quality.md +1 -1
- package/presets/claude/java/rules/tooling-and-review/code-review.md +1 -7
- package/presets/claude/java/rules/tooling-and-review/design-guidance.md +1 -2
- package/presets/claude/java/rules/tooling-and-review/java-tooling.md +0 -3
- package/presets/claude/java/rules/tooling-and-review/language-policy.md +1 -2
- package/presets/claude/java/rules/tooling-and-review/mcp-usage.md +1 -2
- package/presets/claude/java/rules/tooling-and-review/post-change-test.md +0 -3
- package/presets/claude/java/rules/tooling-and-review/preset-goals.md +2 -3
- package/presets/claude/java/rules/tooling-and-review/preset-layering.md +2 -3
- package/presets/claude/java/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
- package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +8 -5
- package/presets/claude/java/rules/tooling-and-review/preset-token-budget.md +4 -6
- package/presets/claude/java/rules/tooling-and-review/preset-twin-sync.md +7 -8
- package/presets/claude/java/rules/tooling-and-review/preset-writing-style.md +2 -3
- package/presets/claude/java/rules/tooling-and-review/security-java.md +1 -0
- package/presets/claude/java/rules/tooling-and-review/technical-retro.md +1 -7
- package/presets/claude/java/skills/ci-investigation/SKILL.md +2 -2
- package/presets/claude/java/skills/technical-retro/SKILL.md +13 -2
- package/presets/claude/java/team/README.md +6 -3
- package/presets/claude/mcp-ts/REPO_AGENTS.md +10 -6
- package/presets/claude/mcp-ts/agents/README.md +1 -1
- package/presets/claude/mcp-ts/agents/build-verifier.md +3 -32
- package/presets/claude/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/claude/mcp-ts/agents/task-analyst.md +2 -2
- package/presets/claude/mcp-ts/agents/task-router.md +10 -0
- package/presets/claude/mcp-ts/commands/task-continue.md +1 -1
- package/presets/claude/mcp-ts/commands/task.md +1 -1
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +417 -34
- package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +45 -36
- package/presets/claude/mcp-ts/rules/architecture/product-specs-authoring.md +1 -0
- package/presets/claude/mcp-ts/rules/architecture/product-specs.md +1 -0
- package/presets/claude/mcp-ts/rules/architecture/reference-features.md +36 -19
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-intake.md +2 -4
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +79 -39
- package/presets/claude/mcp-ts/rules/tooling-and-review/ai-local-overlay.md +7 -31
- package/presets/claude/mcp-ts/rules/tooling-and-review/anti-sycophancy-discipline.md +2 -4
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +1 -2
- package/presets/claude/mcp-ts/rules/tooling-and-review/design-guidance.md +1 -2
- package/presets/claude/mcp-ts/rules/tooling-and-review/language-policy.md +1 -2
- package/presets/claude/mcp-ts/rules/tooling-and-review/mcp-usage.md +1 -2
- package/presets/claude/mcp-ts/rules/tooling-and-review/post-change-test.md +1 -5
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-goals.md +2 -3
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-layering.md +2 -3
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +8 -5
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-token-budget.md +4 -6
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-twin-sync.md +7 -8
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-writing-style.md +2 -3
- package/presets/claude/mcp-ts/rules/tooling-and-review/technical-retro.md +1 -3
- package/presets/claude/mcp-ts/team/README.md +6 -3
- package/presets/claude/next/REPO_AGENTS.md +11 -7
- package/presets/claude/next/agents/build-verifier.md +2 -42
- package/presets/claude/next/agents/code-reviewer.md +9 -38
- package/presets/claude/next/agents/debugger.md +1 -1
- package/presets/claude/next/agents/feature-developer.md +14 -15
- package/presets/claude/next/agents/mockup-reviewer.md +14 -13
- package/presets/claude/next/agents/openspec-author.md +1 -1
- package/presets/claude/next/agents/task-analyst.md +2 -2
- package/presets/claude/next/agents/task-router.md +10 -0
- package/presets/claude/next/agents/tech-writer.md +1 -1
- package/presets/claude/next/agents/unit-test-generator.md +1 -1
- package/presets/claude/next/agents/unit-test-planner.md +1 -1
- package/presets/claude/next/commands/task-continue.md +1 -1
- package/presets/claude/next/commands/task.md +1 -1
- package/presets/claude/next/hooks/chain-team-phases.sh +418 -33
- package/presets/claude/next/rules/anti-hallucination/react-next-anti-hallucination.md +5 -3
- package/presets/claude/next/rules/api-and-data/api-services.md +1 -1
- package/presets/claude/next/rules/api-and-data/http-client.md +10 -9
- package/presets/claude/next/rules/api-and-data/store-rtk.md +2 -2
- package/presets/claude/next/rules/architecture/architecture-boundaries-ui.md +1 -0
- package/presets/claude/next/rules/architecture/architecture-boundaries.md +17 -24
- package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +89 -42
- package/presets/claude/next/rules/architecture/layer-barrel-exports.md +10 -9
- package/presets/claude/next/rules/architecture/product-specs-authoring.md +1 -0
- package/presets/claude/next/rules/architecture/product-specs.md +2 -1
- package/presets/claude/next/rules/architecture/public-imports.md +4 -3
- package/presets/claude/next/rules/architecture/reference-features.md +47 -7
- package/presets/claude/next/rules/stack/arrow-functions.md +3 -2
- package/presets/claude/next/rules/stack/navigation-router-ui.md +2 -1
- package/presets/claude/next/rules/stack/navigation-router.md +13 -14
- package/presets/claude/next/rules/stack/next-app-core.md +4 -4
- package/presets/claude/next/rules/stack/next-app-router.md +8 -7
- package/presets/claude/next/rules/stack/next-static-export.md +5 -4
- package/presets/claude/next/rules/stack/no-type-assertion.md +13 -13
- package/presets/claude/next/rules/stack/types-jsdoc.md +15 -17
- package/presets/claude/next/rules/testing/playwright-agents.md +3 -4
- package/presets/claude/next/rules/testing/tests-e2e-structure.md +6 -5
- package/presets/claude/next/rules/testing/tests-unit.md +3 -2
- package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +3 -4
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +303 -56
- package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +5 -43
- package/presets/claude/next/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
- package/presets/claude/next/rules/tooling-and-review/code-quality.md +2 -2
- package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +5 -21
- package/presets/claude/next/rules/tooling-and-review/design-guidance.md +1 -2
- package/presets/claude/next/rules/tooling-and-review/language-policy.md +1 -2
- package/presets/claude/next/rules/tooling-and-review/mcp-usage.md +1 -2
- package/presets/claude/next/rules/tooling-and-review/mockup-review.md +45 -48
- package/presets/claude/next/rules/tooling-and-review/package-manager.md +4 -0
- package/presets/claude/next/rules/tooling-and-review/post-change-lint.md +9 -13
- package/presets/claude/next/rules/tooling-and-review/preset-goals.md +2 -3
- package/presets/claude/next/rules/tooling-and-review/preset-layering.md +2 -3
- package/presets/claude/next/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
- package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +8 -5
- package/presets/claude/next/rules/tooling-and-review/preset-token-budget.md +4 -6
- package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +7 -8
- package/presets/claude/next/rules/tooling-and-review/preset-writing-style.md +2 -3
- package/presets/claude/next/rules/tooling-and-review/security-next.md +1 -3
- package/presets/claude/next/rules/tooling-and-review/technical-retro.md +2 -4
- package/presets/claude/next/rules/tooling-and-review/ux-design.md +1 -3
- package/presets/claude/next/rules/ui-and-accessibility/component-catalog-gate.md +4 -3
- package/presets/claude/next/rules/ui-and-accessibility/css-property-order.md +3 -2
- package/presets/claude/next/rules/ui-and-accessibility/design-tokens-binding.md +13 -21
- package/presets/claude/next/rules/ui-and-accessibility/forms-validation.md +1 -1
- package/presets/claude/next/rules/ui-and-accessibility/no-props-spread.md +11 -31
- package/presets/claude/next/rules/ui-and-accessibility/react-a11y-coding.md +5 -4
- package/presets/claude/next/rules/ui-and-accessibility/react-ui.md +9 -14
- package/presets/claude/next/skills/code-review/SKILL.md +1 -1
- package/presets/claude/next/skills/figma-fidelity/SKILL.md +76 -49
- package/presets/claude/next/skills/mockup-review/SKILL.md +4 -2
- package/presets/claude/next/skills/react-performance/SKILL.md +1 -1
- package/presets/claude/next/skills/technical-retro/SKILL.md +13 -2
- package/presets/claude/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/claude/next/team/README.md +6 -3
- package/presets/claude/next/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/claude/next/team/fixtures/feature-parallel.json +84 -0
- package/presets/claude/nuxt/REPO_AGENTS.md +10 -6
- package/presets/claude/nuxt/agents/build-verifier.md +1 -39
- package/presets/claude/nuxt/agents/code-reviewer.md +1 -1
- package/presets/claude/nuxt/agents/debugger.md +1 -1
- package/presets/claude/nuxt/agents/feature-developer.md +1 -1
- package/presets/claude/nuxt/agents/openspec-author.md +1 -1
- package/presets/claude/nuxt/agents/task-analyst.md +2 -2
- package/presets/claude/nuxt/agents/task-router.md +10 -0
- package/presets/claude/nuxt/agents/tech-writer.md +1 -1
- package/presets/claude/nuxt/agents/unit-test-generator.md +1 -1
- package/presets/claude/nuxt/agents/unit-test-planner.md +1 -1
- package/presets/claude/nuxt/commands/task-continue.md +1 -1
- package/presets/claude/nuxt/commands/task.md +1 -1
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +418 -33
- package/presets/claude/nuxt/rules/anti-hallucination/vue-nuxt-anti-hallucination.md +4 -1
- package/presets/claude/nuxt/rules/api-and-data/api-services.md +9 -7
- package/presets/claude/nuxt/rules/api-and-data/http-client.md +1 -0
- package/presets/claude/nuxt/rules/api-and-data/store-pinia.md +1 -0
- package/presets/claude/nuxt/rules/architecture/architecture-boundaries.md +9 -8
- package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +72 -22
- package/presets/claude/nuxt/rules/architecture/layer-barrel-exports.md +9 -7
- package/presets/claude/nuxt/rules/architecture/product-specs-authoring.md +1 -0
- package/presets/claude/nuxt/rules/architecture/product-specs.md +1 -0
- package/presets/claude/nuxt/rules/architecture/public-imports.md +7 -7
- package/presets/claude/nuxt/rules/architecture/reference-features.md +46 -10
- package/presets/claude/nuxt/rules/stack/navigation-router-ui.md +8 -3
- package/presets/claude/nuxt/rules/stack/navigation-router.md +7 -2
- package/presets/claude/nuxt/rules/stack/no-type-assertion.md +2 -5
- package/presets/claude/nuxt/rules/stack/nuxt-pages-routing.md +7 -3
- package/presets/claude/nuxt/rules/stack/script-setup-conventions.md +3 -1
- package/presets/claude/nuxt/rules/stack/types-jsdoc.md +21 -16
- package/presets/claude/nuxt/rules/testing/playwright-agents.md +3 -1
- package/presets/claude/nuxt/rules/testing/tests-e2e-structure.md +5 -4
- package/presets/claude/nuxt/rules/testing/tests-unit.md +3 -1
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +249 -10
- package/presets/claude/nuxt/rules/tooling-and-review/ai-local-overlay.md +7 -31
- package/presets/claude/nuxt/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -7
- package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +7 -13
- package/presets/claude/nuxt/rules/tooling-and-review/design-guidance.md +1 -7
- package/presets/claude/nuxt/rules/tooling-and-review/language-policy.md +1 -2
- package/presets/claude/nuxt/rules/tooling-and-review/mcp-usage.md +1 -7
- package/presets/claude/nuxt/rules/tooling-and-review/mockup-review.md +35 -32
- package/presets/claude/nuxt/rules/tooling-and-review/post-change-lint.md +1 -3
- package/presets/claude/nuxt/rules/tooling-and-review/preset-goals.md +2 -3
- package/presets/claude/nuxt/rules/tooling-and-review/preset-layering.md +4 -1
- package/presets/claude/nuxt/rules/tooling-and-review/preset-no-cross-stack-leakage.md +4 -2
- package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +10 -3
- package/presets/claude/nuxt/rules/tooling-and-review/preset-token-budget.md +4 -3
- package/presets/claude/nuxt/rules/tooling-and-review/preset-twin-sync.md +9 -6
- package/presets/claude/nuxt/rules/tooling-and-review/preset-writing-style.md +2 -3
- package/presets/claude/nuxt/rules/tooling-and-review/security-nuxt.md +1 -0
- package/presets/claude/nuxt/rules/tooling-and-review/technical-retro.md +1 -1
- package/presets/claude/nuxt/rules/tooling-and-review/ux-design.md +1 -3
- package/presets/claude/nuxt/rules/ui-and-accessibility/css-property-order.md +4 -1
- package/presets/claude/nuxt/rules/ui-and-accessibility/no-v-bind-spread.md +4 -1
- package/presets/claude/nuxt/rules/ui-and-accessibility/vue-a11y-coding.md +7 -3
- package/presets/claude/nuxt/rules/ui-and-accessibility/vue-ui.md +6 -3
- package/presets/claude/nuxt/skills/technical-retro/SKILL.md +13 -2
- package/presets/claude/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/claude/nuxt/team/README.md +6 -3
- package/presets/claude/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/claude/php-hexagonal/REPO_AGENTS.md +10 -6
- package/presets/claude/php-hexagonal/agents/build-verifier.md +3 -39
- package/presets/claude/php-hexagonal/agents/ci-investigator.md +2 -2
- package/presets/claude/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/claude/php-hexagonal/agents/debugger.md +1 -1
- package/presets/claude/php-hexagonal/agents/feature-developer.md +1 -3
- package/presets/claude/php-hexagonal/agents/openspec-author.md +1 -1
- package/presets/claude/php-hexagonal/agents/task-analyst.md +2 -2
- package/presets/claude/php-hexagonal/agents/task-router.md +10 -0
- package/presets/claude/php-hexagonal/agents/tech-writer.md +1 -1
- package/presets/claude/php-hexagonal/commands/task-continue.md +1 -1
- package/presets/claude/php-hexagonal/commands/task.md +1 -1
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +418 -35
- package/presets/claude/php-hexagonal/rules/api-and-data/adapters-driven.md +3 -1
- package/presets/claude/php-hexagonal/rules/api-and-data/adapters-driving.md +5 -2
- package/presets/claude/php-hexagonal/rules/api-and-data/api-grpc.md +3 -2
- package/presets/claude/php-hexagonal/rules/api-and-data/api-http.md +4 -1
- package/presets/claude/php-hexagonal/rules/api-and-data/persistence-adapters.md +2 -1
- package/presets/claude/php-hexagonal/rules/architecture/application-usecases.md +2 -1
- package/presets/claude/php-hexagonal/rules/architecture/composition-root.md +5 -2
- package/presets/claude/php-hexagonal/rules/architecture/domain-layer.md +2 -1
- package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +45 -43
- package/presets/claude/php-hexagonal/rules/architecture/ports-interfaces.md +4 -2
- package/presets/claude/php-hexagonal/rules/architecture/product-specs-authoring.md +1 -0
- package/presets/claude/php-hexagonal/rules/architecture/product-specs.md +1 -0
- package/presets/claude/php-hexagonal/rules/architecture/reference-features.md +36 -25
- package/presets/claude/php-hexagonal/rules/stack/php-app-core.md +1 -1
- package/presets/claude/php-hexagonal/rules/stack/php-conventions.md +1 -0
- package/presets/claude/php-hexagonal/rules/testing/integration.md +4 -3
- package/presets/claude/php-hexagonal/rules/testing/unit.md +3 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +2 -8
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +77 -41
- package/presets/claude/php-hexagonal/rules/tooling-and-review/ai-local-overlay.md +7 -31
- package/presets/claude/php-hexagonal/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +1 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +1 -7
- package/presets/claude/php-hexagonal/rules/tooling-and-review/design-guidance.md +1 -2
- package/presets/claude/php-hexagonal/rules/tooling-and-review/language-policy.md +1 -2
- package/presets/claude/php-hexagonal/rules/tooling-and-review/mcp-usage.md +1 -2
- package/presets/claude/php-hexagonal/rules/tooling-and-review/php-tooling.md +1 -3
- package/presets/claude/php-hexagonal/rules/tooling-and-review/post-change-test.md +4 -6
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-goals.md +2 -3
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-layering.md +2 -3
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +8 -5
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-token-budget.md +4 -6
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-twin-sync.md +7 -8
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-writing-style.md +2 -3
- package/presets/claude/php-hexagonal/rules/tooling-and-review/security-php.md +4 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/technical-retro.md +1 -7
- package/presets/claude/php-hexagonal/skills/ci-investigation/SKILL.md +2 -2
- package/presets/claude/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
- package/presets/claude/php-hexagonal/team/README.md +6 -3
- package/presets/claude/php-laravel/REPO_AGENTS.md +10 -6
- package/presets/claude/php-laravel/agents/build-verifier.md +3 -39
- package/presets/claude/php-laravel/agents/ci-investigator.md +2 -2
- package/presets/claude/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/claude/php-laravel/agents/debugger.md +1 -1
- package/presets/claude/php-laravel/agents/feature-developer.md +1 -3
- package/presets/claude/php-laravel/agents/openspec-author.md +1 -1
- package/presets/claude/php-laravel/agents/task-analyst.md +2 -2
- package/presets/claude/php-laravel/agents/task-router.md +10 -0
- package/presets/claude/php-laravel/agents/tech-writer.md +1 -1
- package/presets/claude/php-laravel/commands/task-continue.md +1 -1
- package/presets/claude/php-laravel/commands/task.md +1 -1
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +418 -35
- package/presets/claude/php-laravel/rules/api-and-data/eloquent-persistence.md +2 -0
- package/presets/claude/php-laravel/rules/api-and-data/events-listeners.md +2 -0
- package/presets/claude/php-laravel/rules/api-and-data/form-requests.md +2 -0
- package/presets/claude/php-laravel/rules/api-and-data/http-layer.md +2 -0
- package/presets/claude/php-laravel/rules/api-and-data/jobs-queues.md +2 -0
- package/presets/claude/php-laravel/rules/api-and-data/policies-authorization.md +2 -0
- package/presets/claude/php-laravel/rules/api-and-data/routes-api.md +2 -0
- package/presets/claude/php-laravel/rules/architecture/actions-services.md +2 -0
- package/presets/claude/php-laravel/rules/architecture/boundaries.md +2 -0
- package/presets/claude/php-laravel/rules/architecture/domain-layer.md +2 -0
- package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +46 -43
- package/presets/claude/php-laravel/rules/architecture/module-public-api.md +1 -0
- package/presets/claude/php-laravel/rules/architecture/product-specs-authoring.md +1 -0
- package/presets/claude/php-laravel/rules/architecture/product-specs.md +1 -0
- package/presets/claude/php-laravel/rules/architecture/reference-features.md +37 -27
- package/presets/claude/php-laravel/rules/architecture/service-providers.md +2 -0
- package/presets/claude/php-laravel/rules/stack/laravel-app-core.md +3 -1
- package/presets/claude/php-laravel/rules/stack/laravel-conventions.md +2 -0
- package/presets/claude/php-laravel/rules/testing/e2e.md +1 -0
- package/presets/claude/php-laravel/rules/testing/integration.md +2 -0
- package/presets/claude/php-laravel/rules/testing/unit.md +2 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +2 -4
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +77 -37
- package/presets/claude/php-laravel/rules/tooling-and-review/ai-local-overlay.md +7 -31
- package/presets/claude/php-laravel/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
- package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +1 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +1 -3
- package/presets/claude/php-laravel/rules/tooling-and-review/design-guidance.md +1 -2
- package/presets/claude/php-laravel/rules/tooling-and-review/language-policy.md +1 -2
- package/presets/claude/php-laravel/rules/tooling-and-review/mcp-usage.md +1 -2
- package/presets/claude/php-laravel/rules/tooling-and-review/php-tooling.md +2 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/post-change-test.md +5 -4
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-goals.md +2 -3
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-layering.md +3 -2
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-no-cross-stack-leakage.md +3 -3
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +9 -4
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-token-budget.md +5 -5
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-twin-sync.md +8 -7
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-writing-style.md +2 -3
- package/presets/claude/php-laravel/rules/tooling-and-review/security-php.md +2 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/technical-retro.md +1 -3
- package/presets/claude/php-laravel/skills/ci-investigation/SKILL.md +2 -2
- package/presets/claude/php-laravel/skills/technical-retro/SKILL.md +13 -2
- package/presets/claude/php-laravel/team/README.md +6 -3
- package/presets/claude/svelte/REPO_AGENTS.md +10 -6
- package/presets/claude/svelte/agents/build-verifier.md +1 -39
- package/presets/claude/svelte/agents/code-reviewer.md +1 -1
- package/presets/claude/svelte/agents/debugger.md +1 -1
- package/presets/claude/svelte/agents/feature-developer.md +1 -1
- package/presets/claude/svelte/agents/openspec-author.md +1 -1
- package/presets/claude/svelte/agents/task-analyst.md +2 -2
- package/presets/claude/svelte/agents/task-router.md +10 -0
- package/presets/claude/svelte/agents/tech-writer.md +1 -1
- package/presets/claude/svelte/agents/unit-test-generator.md +1 -1
- package/presets/claude/svelte/agents/unit-test-planner.md +1 -1
- package/presets/claude/svelte/commands/task-continue.md +1 -1
- package/presets/claude/svelte/commands/task.md +1 -1
- package/presets/claude/svelte/hooks/chain-team-phases.sh +418 -33
- package/presets/claude/svelte/rules/anti-hallucination/svelte-sveltekit-anti-hallucination.md +3 -1
- package/presets/claude/svelte/rules/api-and-data/api-services.md +1 -0
- package/presets/claude/svelte/rules/api-and-data/store-svelte.md +1 -0
- package/presets/claude/svelte/rules/architecture/architecture-boundaries.md +1 -0
- package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +58 -8
- package/presets/claude/svelte/rules/architecture/layer-barrel-exports.md +7 -6
- package/presets/claude/svelte/rules/architecture/product-specs-authoring.md +1 -0
- package/presets/claude/svelte/rules/architecture/product-specs.md +1 -0
- package/presets/claude/svelte/rules/architecture/public-imports.md +1 -0
- package/presets/claude/svelte/rules/architecture/reference-features.md +46 -9
- package/presets/claude/svelte/rules/stack/no-type-assertion.md +1 -1
- package/presets/claude/svelte/rules/stack/svelte-script-conventions.md +2 -1
- package/presets/claude/svelte/rules/stack/types-jsdoc.md +19 -15
- package/presets/claude/svelte/rules/testing/tests-e2e-structure.md +5 -4
- package/presets/claude/svelte/rules/testing/tests-unit.md +3 -1
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +2 -3
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +250 -12
- package/presets/claude/svelte/rules/tooling-and-review/ai-local-overlay.md +7 -31
- package/presets/claude/svelte/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
- package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +7 -13
- package/presets/claude/svelte/rules/tooling-and-review/design-guidance.md +1 -2
- package/presets/claude/svelte/rules/tooling-and-review/language-policy.md +1 -2
- package/presets/claude/svelte/rules/tooling-and-review/mcp-usage.md +1 -2
- package/presets/claude/svelte/rules/tooling-and-review/mockup-review.md +35 -32
- package/presets/claude/svelte/rules/tooling-and-review/post-change-lint.md +2 -4
- package/presets/claude/svelte/rules/tooling-and-review/preset-goals.md +2 -3
- package/presets/claude/svelte/rules/tooling-and-review/preset-layering.md +2 -2
- package/presets/claude/svelte/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -3
- package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +8 -4
- package/presets/claude/svelte/rules/tooling-and-review/preset-token-budget.md +4 -5
- package/presets/claude/svelte/rules/tooling-and-review/preset-twin-sync.md +7 -7
- package/presets/claude/svelte/rules/tooling-and-review/preset-writing-style.md +2 -3
- package/presets/claude/svelte/rules/tooling-and-review/technical-retro.md +1 -2
- package/presets/claude/svelte/rules/tooling-and-review/ux-design.md +1 -3
- package/presets/claude/svelte/rules/ui-and-accessibility/css-property-order.md +3 -1
- package/presets/claude/svelte/skills/technical-retro/SKILL.md +13 -2
- package/presets/claude/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/claude/svelte/team/README.md +6 -3
- package/presets/claude/svelte/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/cursor/android-kotlin/REPO_AGENTS.md +10 -6
- package/presets/cursor/android-kotlin/agents/build-verifier.md +3 -37
- package/presets/cursor/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/cursor/android-kotlin/agents/debugger.md +1 -1
- package/presets/cursor/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/cursor/android-kotlin/agents/openspec-author.md +1 -1
- package/presets/cursor/android-kotlin/agents/task-analyst.md +2 -2
- package/presets/cursor/android-kotlin/agents/task-router.md +10 -0
- package/presets/cursor/android-kotlin/agents/tech-writer.md +1 -1
- package/presets/cursor/android-kotlin/agents/unit-test-generator.md +1 -1
- package/presets/cursor/android-kotlin/agents/unit-test-planner.md +1 -1
- package/presets/cursor/android-kotlin/commands/task-continue.md +1 -1
- package/presets/cursor/android-kotlin/commands/task.md +1 -1
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +418 -33
- package/presets/cursor/android-kotlin/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +14 -3
- package/presets/cursor/android-kotlin/rules/ai-local-overlay.mdc +7 -30
- package/presets/cursor/android-kotlin/rules/anti-sycophancy-discipline.mdc +0 -2
- package/presets/cursor/android-kotlin/rules/design-guidance.mdc +0 -2
- package/presets/cursor/android-kotlin/rules/language-policy.mdc +1 -1
- package/presets/cursor/android-kotlin/rules/mockup-review.mdc +34 -29
- package/presets/cursor/android-kotlin/rules/preset-goals.mdc +2 -2
- package/presets/cursor/android-kotlin/rules/preset-layering.mdc +2 -2
- package/presets/cursor/android-kotlin/rules/preset-no-cross-stack-leakage.mdc +2 -3
- package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +8 -4
- package/presets/cursor/android-kotlin/rules/preset-token-budget.mdc +4 -5
- package/presets/cursor/android-kotlin/rules/preset-twin-sync.mdc +7 -7
- package/presets/cursor/android-kotlin/rules/preset-writing-style.mdc +2 -2
- package/presets/cursor/android-kotlin/rules/reference-features.mdc +0 -2
- package/presets/cursor/android-kotlin/skills/technical-retro/SKILL.md +13 -2
- package/presets/cursor/android-kotlin/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/android-kotlin/team/README.md +5 -2
- package/presets/cursor/go/REPO_AGENTS.md +10 -6
- package/presets/cursor/go/agents/build-verifier.md +3 -29
- package/presets/cursor/go/agents/ci-investigator.md +2 -2
- package/presets/cursor/go/agents/code-reviewer.md +1 -1
- package/presets/cursor/go/agents/debugger.md +1 -1
- package/presets/cursor/go/agents/feature-developer.md +1 -3
- package/presets/cursor/go/agents/openspec-author.md +1 -1
- package/presets/cursor/go/agents/task-analyst.md +2 -2
- package/presets/cursor/go/agents/task-router.md +10 -0
- package/presets/cursor/go/agents/tech-writer.md +1 -1
- package/presets/cursor/go/commands/task-continue.md +1 -1
- package/presets/cursor/go/commands/task.md +1 -1
- package/presets/cursor/go/hooks/chain-team-phases.sh +418 -35
- package/presets/cursor/go/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/go/rules/agent-team-orchestrator.mdc +13 -2
- package/presets/cursor/go/rules/ai-local-overlay.mdc +7 -30
- package/presets/cursor/go/rules/anti-sycophancy-discipline.mdc +0 -2
- package/presets/cursor/go/rules/design-guidance.mdc +0 -2
- package/presets/cursor/go/rules/language-policy.mdc +1 -1
- package/presets/cursor/go/rules/preset-goals.mdc +2 -2
- package/presets/cursor/go/rules/preset-layering.mdc +2 -2
- package/presets/cursor/go/rules/preset-no-cross-stack-leakage.mdc +2 -3
- package/presets/cursor/go/rules/preset-pr-checklist.mdc +8 -4
- package/presets/cursor/go/rules/preset-token-budget.mdc +4 -5
- package/presets/cursor/go/rules/preset-twin-sync.mdc +7 -7
- package/presets/cursor/go/rules/preset-writing-style.mdc +2 -2
- package/presets/cursor/go/rules/reference-features.mdc +0 -3
- package/presets/cursor/go/skills/ci-investigation/SKILL.md +2 -2
- package/presets/cursor/go/skills/technical-retro/SKILL.md +13 -2
- package/presets/cursor/go/team/README.md +5 -2
- package/presets/cursor/ios-swift/REPO_AGENTS.md +10 -6
- package/presets/cursor/ios-swift/agents/build-verifier.md +3 -39
- package/presets/cursor/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/cursor/ios-swift/agents/debugger.md +1 -1
- package/presets/cursor/ios-swift/agents/feature-developer.md +1 -1
- package/presets/cursor/ios-swift/agents/openspec-author.md +1 -1
- package/presets/cursor/ios-swift/agents/task-analyst.md +2 -2
- package/presets/cursor/ios-swift/agents/task-router.md +10 -0
- package/presets/cursor/ios-swift/agents/tech-writer.md +1 -1
- package/presets/cursor/ios-swift/agents/unit-test-generator.md +1 -1
- package/presets/cursor/ios-swift/agents/unit-test-planner.md +1 -1
- package/presets/cursor/ios-swift/agents/xcuitest-test-generator.md +1 -1
- package/presets/cursor/ios-swift/agents/xcuitest-test-planner.md +2 -2
- package/presets/cursor/ios-swift/commands/task-continue.md +1 -1
- package/presets/cursor/ios-swift/commands/task.md +1 -1
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +418 -33
- package/presets/cursor/ios-swift/rules/README.md +1 -1
- package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +14 -3
- package/presets/cursor/ios-swift/rules/ai-local-overlay.mdc +7 -30
- package/presets/cursor/ios-swift/rules/anti-sycophancy-discipline.mdc +0 -2
- package/presets/cursor/ios-swift/rules/design-guidance.mdc +0 -2
- package/presets/cursor/ios-swift/rules/language-policy.mdc +1 -1
- package/presets/cursor/ios-swift/rules/mockup-review.mdc +34 -29
- package/presets/cursor/ios-swift/rules/networking-services.mdc +4 -1
- package/presets/cursor/ios-swift/rules/preset-goals.mdc +2 -2
- package/presets/cursor/ios-swift/rules/preset-layering.mdc +2 -2
- package/presets/cursor/ios-swift/rules/preset-no-cross-stack-leakage.mdc +2 -3
- package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +8 -4
- package/presets/cursor/ios-swift/rules/preset-token-budget.mdc +4 -5
- package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +7 -7
- package/presets/cursor/ios-swift/rules/preset-writing-style.mdc +2 -2
- package/presets/cursor/ios-swift/rules/reference-features.mdc +0 -6
- package/presets/cursor/ios-swift/rules/state-and-viewmodels.mdc +3 -1
- package/presets/cursor/ios-swift/rules/swiftui-ui.mdc +3 -1
- package/presets/cursor/ios-swift/skills/technical-retro/SKILL.md +13 -2
- package/presets/cursor/ios-swift/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
- package/presets/cursor/ios-swift/team/README.md +5 -2
- package/presets/cursor/java/REPO_AGENTS.md +10 -6
- package/presets/cursor/java/agents/build-verifier.md +3 -39
- package/presets/cursor/java/agents/ci-investigator.md +2 -2
- package/presets/cursor/java/agents/code-reviewer.md +1 -1
- package/presets/cursor/java/agents/debugger.md +1 -1
- package/presets/cursor/java/agents/feature-developer.md +1 -3
- package/presets/cursor/java/agents/openspec-author.md +1 -1
- package/presets/cursor/java/agents/task-analyst.md +2 -2
- package/presets/cursor/java/agents/task-router.md +10 -0
- package/presets/cursor/java/agents/tech-writer.md +1 -1
- package/presets/cursor/java/commands/task-continue.md +1 -1
- package/presets/cursor/java/commands/task.md +1 -1
- package/presets/cursor/java/hooks/chain-team-phases.sh +418 -35
- package/presets/cursor/java/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/java/rules/agent-team-orchestrator.mdc +13 -2
- package/presets/cursor/java/rules/ai-local-overlay.mdc +7 -30
- package/presets/cursor/java/rules/anti-sycophancy-discipline.mdc +0 -2
- package/presets/cursor/java/rules/design-guidance.mdc +0 -2
- package/presets/cursor/java/rules/language-policy.mdc +1 -1
- package/presets/cursor/java/rules/preset-goals.mdc +2 -2
- package/presets/cursor/java/rules/preset-layering.mdc +2 -2
- package/presets/cursor/java/rules/preset-no-cross-stack-leakage.mdc +2 -3
- package/presets/cursor/java/rules/preset-pr-checklist.mdc +8 -4
- package/presets/cursor/java/rules/preset-token-budget.mdc +4 -5
- package/presets/cursor/java/rules/preset-twin-sync.mdc +7 -7
- package/presets/cursor/java/rules/preset-writing-style.mdc +2 -2
- package/presets/cursor/java/rules/reference-features.mdc +0 -4
- package/presets/cursor/java/skills/ci-investigation/SKILL.md +2 -2
- package/presets/cursor/java/skills/technical-retro/SKILL.md +13 -2
- package/presets/cursor/java/team/README.md +5 -2
- package/presets/cursor/mcp-ts/REPO_AGENTS.md +10 -6
- package/presets/cursor/mcp-ts/agents/README.md +1 -1
- package/presets/cursor/mcp-ts/agents/build-verifier.md +3 -32
- package/presets/cursor/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/cursor/mcp-ts/agents/task-analyst.md +2 -2
- package/presets/cursor/mcp-ts/agents/task-router.md +10 -0
- package/presets/cursor/mcp-ts/commands/task-continue.md +1 -1
- package/presets/cursor/mcp-ts/commands/task.md +1 -1
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +417 -34
- package/presets/cursor/mcp-ts/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +13 -2
- package/presets/cursor/mcp-ts/rules/ai-local-overlay.mdc +7 -30
- package/presets/cursor/mcp-ts/rules/anti-sycophancy-discipline.mdc +0 -3
- package/presets/cursor/mcp-ts/rules/language-policy.mdc +1 -1
- package/presets/cursor/mcp-ts/rules/preset-goals.mdc +2 -2
- package/presets/cursor/mcp-ts/rules/preset-layering.mdc +2 -2
- package/presets/cursor/mcp-ts/rules/preset-no-cross-stack-leakage.mdc +2 -3
- package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +8 -4
- package/presets/cursor/mcp-ts/rules/preset-token-budget.mdc +4 -5
- package/presets/cursor/mcp-ts/rules/preset-twin-sync.mdc +7 -7
- package/presets/cursor/mcp-ts/rules/preset-writing-style.mdc +2 -2
- package/presets/cursor/mcp-ts/rules/reference-features.mdc +0 -2
- package/presets/cursor/mcp-ts/team/README.md +5 -2
- package/presets/cursor/next/REPO_AGENTS.md +11 -7
- package/presets/cursor/next/agents/build-verifier.md +2 -42
- package/presets/cursor/next/agents/code-reviewer.md +9 -38
- package/presets/cursor/next/agents/debugger.md +1 -1
- package/presets/cursor/next/agents/feature-developer.md +14 -25
- package/presets/cursor/next/agents/mockup-reviewer.md +14 -13
- package/presets/cursor/next/agents/openspec-author.md +1 -1
- package/presets/cursor/next/agents/task-analyst.md +2 -2
- package/presets/cursor/next/agents/task-router.md +10 -0
- package/presets/cursor/next/agents/tech-writer.md +1 -1
- package/presets/cursor/next/agents/unit-test-generator.md +1 -1
- package/presets/cursor/next/agents/unit-test-planner.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/analytics-events.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/api-contract-source.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/code-style.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/component-child-decomposition.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/feature-flags-experiments.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/mcp-required-for-ui-layout.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/no-react-fc.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/pwa-service-worker.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/router-pages.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/single-source-copy-constants.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/ui-change-review-gate.md +2 -2
- package/presets/cursor/next/commands/task-continue.md +1 -1
- package/presets/cursor/next/commands/task.md +1 -1
- package/presets/cursor/next/hooks/chain-team-phases.sh +418 -33
- package/presets/cursor/next/rules/README.md +4 -5
- package/presets/cursor/next/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +16 -5
- package/presets/cursor/next/rules/ai-local-overlay.mdc +5 -42
- package/presets/cursor/next/rules/anti-sycophancy-discipline.mdc +0 -2
- package/presets/cursor/next/rules/arrow-functions.mdc +1 -1
- package/presets/cursor/next/rules/code-review-mr.mdc +3 -16
- package/presets/cursor/next/rules/design-guidance.mdc +0 -2
- package/presets/cursor/next/rules/design-tokens-binding.mdc +14 -20
- package/presets/cursor/next/rules/feature-delivery-workflow.mdc +4 -11
- package/presets/cursor/next/rules/language-policy.mdc +1 -1
- package/presets/cursor/next/rules/mockup-review.mdc +44 -45
- package/presets/cursor/next/rules/navigation-router-stack.mdc +1 -1
- package/presets/cursor/next/rules/navigation-router-ui.mdc +1 -1
- package/presets/cursor/next/rules/no-props-spread.mdc +1 -26
- package/presets/cursor/next/rules/preset-goals.mdc +2 -2
- package/presets/cursor/next/rules/preset-layering.mdc +2 -2
- package/presets/cursor/next/rules/preset-no-cross-stack-leakage.mdc +2 -3
- package/presets/cursor/next/rules/preset-pr-checklist.mdc +8 -4
- package/presets/cursor/next/rules/preset-token-budget.mdc +4 -5
- package/presets/cursor/next/rules/preset-twin-sync.mdc +7 -7
- package/presets/cursor/next/rules/preset-writing-style.mdc +2 -2
- package/presets/cursor/next/rules/product-specs.mdc +1 -1
- package/presets/cursor/next/rules/public-imports.mdc +2 -2
- package/presets/cursor/next/rules/react-next-anti-hallucination.mdc +5 -1
- package/presets/cursor/next/rules/react-ui.mdc +1 -7
- package/presets/cursor/next/rules/reference-features.mdc +0 -5
- package/presets/cursor/next/rules/tests-e2e-structure.mdc +0 -1
- package/presets/cursor/next/rules/tests-unit.mdc +0 -1
- package/presets/cursor/next/rules/types-jsdoc.mdc +14 -17
- package/presets/cursor/next/skills/code-review/SKILL.md +1 -1
- package/presets/cursor/next/skills/figma-fidelity/SKILL.md +76 -49
- package/presets/cursor/next/skills/mockup-review/SKILL.md +4 -2
- package/presets/cursor/next/skills/react-performance/SKILL.md +1 -1
- package/presets/cursor/next/skills/technical-retro/SKILL.md +13 -2
- package/presets/cursor/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/next/team/README.md +5 -2
- package/presets/cursor/next/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/cursor/next/team/fixtures/feature-parallel.json +84 -0
- package/presets/cursor/nuxt/REPO_AGENTS.md +10 -6
- package/presets/cursor/nuxt/agents/build-verifier.md +1 -39
- package/presets/cursor/nuxt/agents/code-reviewer.md +1 -1
- package/presets/cursor/nuxt/agents/debugger.md +1 -1
- package/presets/cursor/nuxt/agents/feature-developer.md +1 -1
- package/presets/cursor/nuxt/agents/openspec-author.md +1 -1
- package/presets/cursor/nuxt/agents/task-analyst.md +2 -2
- package/presets/cursor/nuxt/agents/task-router.md +10 -0
- package/presets/cursor/nuxt/agents/tech-writer.md +1 -1
- package/presets/cursor/nuxt/agents/unit-test-generator.md +1 -1
- package/presets/cursor/nuxt/agents/unit-test-planner.md +1 -1
- package/presets/cursor/nuxt/commands/task-continue.md +1 -1
- package/presets/cursor/nuxt/commands/task.md +1 -1
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +418 -33
- package/presets/cursor/nuxt/rules/README.md +3 -3
- package/presets/cursor/nuxt/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +14 -3
- package/presets/cursor/nuxt/rules/ai-local-overlay.mdc +7 -30
- package/presets/cursor/nuxt/rules/anti-sycophancy-discipline.mdc +0 -2
- package/presets/cursor/nuxt/rules/css-property-order-stylelint.mdc +4 -1
- package/presets/cursor/nuxt/rules/design-guidance.mdc +0 -2
- package/presets/cursor/nuxt/rules/language-policy.mdc +1 -1
- package/presets/cursor/nuxt/rules/mockup-review.mdc +34 -29
- package/presets/cursor/nuxt/rules/no-v-bind-spread.mdc +4 -1
- package/presets/cursor/nuxt/rules/nuxt-pages-routing.mdc +8 -1
- package/presets/cursor/nuxt/rules/preset-goals.mdc +2 -2
- package/presets/cursor/nuxt/rules/preset-layering.mdc +2 -2
- package/presets/cursor/nuxt/rules/preset-no-cross-stack-leakage.mdc +2 -3
- package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +8 -4
- package/presets/cursor/nuxt/rules/preset-token-budget.mdc +4 -5
- package/presets/cursor/nuxt/rules/preset-twin-sync.mdc +7 -7
- package/presets/cursor/nuxt/rules/preset-writing-style.mdc +2 -2
- package/presets/cursor/nuxt/rules/public-imports.mdc +2 -2
- package/presets/cursor/nuxt/rules/reference-features.mdc +0 -5
- package/presets/cursor/nuxt/rules/script-setup-conventions.mdc +3 -1
- package/presets/cursor/nuxt/rules/tests-e2e-structure.mdc +0 -1
- package/presets/cursor/nuxt/rules/tests-unit.mdc +0 -1
- package/presets/cursor/nuxt/rules/types-jsdoc.mdc +18 -14
- package/presets/cursor/nuxt/rules/vue-a11y-coding.mdc +7 -1
- package/presets/cursor/nuxt/rules/vue-nuxt-anti-hallucination.mdc +9 -1
- package/presets/cursor/nuxt/rules/vue-ui.mdc +7 -1
- package/presets/cursor/nuxt/skills/technical-retro/SKILL.md +13 -2
- package/presets/cursor/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/nuxt/team/README.md +5 -2
- package/presets/cursor/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/cursor/php-hexagonal/REPO_AGENTS.md +10 -6
- package/presets/cursor/php-hexagonal/agents/build-verifier.md +3 -39
- package/presets/cursor/php-hexagonal/agents/ci-investigator.md +2 -2
- package/presets/cursor/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/cursor/php-hexagonal/agents/debugger.md +1 -1
- package/presets/cursor/php-hexagonal/agents/feature-developer.md +1 -3
- package/presets/cursor/php-hexagonal/agents/openspec-author.md +1 -1
- package/presets/cursor/php-hexagonal/agents/task-analyst.md +2 -2
- package/presets/cursor/php-hexagonal/agents/task-router.md +10 -0
- package/presets/cursor/php-hexagonal/agents/tech-writer.md +1 -1
- package/presets/cursor/php-hexagonal/commands/task-continue.md +1 -1
- package/presets/cursor/php-hexagonal/commands/task.md +1 -1
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +418 -35
- package/presets/cursor/php-hexagonal/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +13 -2
- package/presets/cursor/php-hexagonal/rules/ai-local-overlay.mdc +7 -30
- package/presets/cursor/php-hexagonal/rules/anti-sycophancy-discipline.mdc +0 -2
- package/presets/cursor/php-hexagonal/rules/design-guidance.mdc +0 -2
- package/presets/cursor/php-hexagonal/rules/language-policy.mdc +1 -1
- package/presets/cursor/php-hexagonal/rules/preset-goals.mdc +2 -2
- package/presets/cursor/php-hexagonal/rules/preset-layering.mdc +2 -2
- package/presets/cursor/php-hexagonal/rules/preset-no-cross-stack-leakage.mdc +2 -3
- package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +8 -4
- package/presets/cursor/php-hexagonal/rules/preset-token-budget.mdc +4 -5
- package/presets/cursor/php-hexagonal/rules/preset-twin-sync.mdc +7 -7
- package/presets/cursor/php-hexagonal/rules/preset-writing-style.mdc +2 -2
- package/presets/cursor/php-hexagonal/rules/reference-features.mdc +0 -5
- package/presets/cursor/php-hexagonal/skills/ci-investigation/SKILL.md +2 -2
- package/presets/cursor/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
- package/presets/cursor/php-hexagonal/team/README.md +5 -2
- package/presets/cursor/php-laravel/REPO_AGENTS.md +10 -6
- package/presets/cursor/php-laravel/agents/build-verifier.md +3 -39
- package/presets/cursor/php-laravel/agents/ci-investigator.md +2 -2
- package/presets/cursor/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/cursor/php-laravel/agents/debugger.md +1 -1
- package/presets/cursor/php-laravel/agents/feature-developer.md +1 -3
- package/presets/cursor/php-laravel/agents/openspec-author.md +1 -1
- package/presets/cursor/php-laravel/agents/task-analyst.md +2 -2
- package/presets/cursor/php-laravel/agents/task-router.md +10 -0
- package/presets/cursor/php-laravel/agents/tech-writer.md +1 -1
- package/presets/cursor/php-laravel/commands/task-continue.md +1 -1
- package/presets/cursor/php-laravel/commands/task.md +1 -1
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +418 -35
- package/presets/cursor/php-laravel/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +13 -2
- package/presets/cursor/php-laravel/rules/ai-local-overlay.mdc +7 -30
- package/presets/cursor/php-laravel/rules/anti-sycophancy-discipline.mdc +0 -2
- package/presets/cursor/php-laravel/rules/design-guidance.mdc +0 -2
- package/presets/cursor/php-laravel/rules/language-policy.mdc +1 -1
- package/presets/cursor/php-laravel/rules/preset-goals.mdc +2 -2
- package/presets/cursor/php-laravel/rules/preset-layering.mdc +2 -2
- package/presets/cursor/php-laravel/rules/preset-no-cross-stack-leakage.mdc +2 -3
- package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +8 -4
- package/presets/cursor/php-laravel/rules/preset-token-budget.mdc +4 -5
- package/presets/cursor/php-laravel/rules/preset-twin-sync.mdc +7 -7
- package/presets/cursor/php-laravel/rules/preset-writing-style.mdc +2 -2
- package/presets/cursor/php-laravel/rules/reference-features.mdc +0 -5
- package/presets/cursor/php-laravel/skills/ci-investigation/SKILL.md +2 -2
- package/presets/cursor/php-laravel/skills/technical-retro/SKILL.md +13 -2
- package/presets/cursor/php-laravel/team/README.md +5 -2
- package/presets/cursor/svelte/REPO_AGENTS.md +10 -6
- package/presets/cursor/svelte/agents/build-verifier.md +1 -39
- package/presets/cursor/svelte/agents/code-reviewer.md +1 -1
- package/presets/cursor/svelte/agents/debugger.md +1 -1
- package/presets/cursor/svelte/agents/feature-developer.md +1 -1
- package/presets/cursor/svelte/agents/openspec-author.md +1 -1
- package/presets/cursor/svelte/agents/task-analyst.md +2 -2
- package/presets/cursor/svelte/agents/task-router.md +10 -0
- package/presets/cursor/svelte/agents/tech-writer.md +1 -1
- package/presets/cursor/svelte/agents/unit-test-generator.md +1 -1
- package/presets/cursor/svelte/agents/unit-test-planner.md +1 -1
- package/presets/cursor/svelte/commands/task-continue.md +1 -1
- package/presets/cursor/svelte/commands/task.md +1 -1
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +418 -33
- package/presets/cursor/svelte/rules/README.md +2 -2
- package/presets/cursor/svelte/rules/agent-team-intake.mdc +1 -1
- package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +14 -3
- package/presets/cursor/svelte/rules/ai-local-overlay.mdc +7 -30
- package/presets/cursor/svelte/rules/anti-sycophancy-discipline.mdc +0 -2
- package/presets/cursor/svelte/rules/css-property-order-stylelint.mdc +4 -1
- package/presets/cursor/svelte/rules/design-guidance.mdc +0 -2
- package/presets/cursor/svelte/rules/language-policy.mdc +1 -1
- package/presets/cursor/svelte/rules/mockup-review.mdc +34 -29
- package/presets/cursor/svelte/rules/preset-goals.mdc +2 -2
- package/presets/cursor/svelte/rules/preset-layering.mdc +2 -2
- package/presets/cursor/svelte/rules/preset-no-cross-stack-leakage.mdc +2 -3
- package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +8 -4
- package/presets/cursor/svelte/rules/preset-token-budget.mdc +4 -5
- package/presets/cursor/svelte/rules/preset-twin-sync.mdc +7 -7
- package/presets/cursor/svelte/rules/preset-writing-style.mdc +2 -2
- package/presets/cursor/svelte/rules/reference-features.mdc +0 -6
- package/presets/cursor/svelte/rules/svelte-script-conventions.mdc +3 -1
- package/presets/cursor/svelte/rules/svelte-sveltekit-anti-hallucination.mdc +6 -1
- package/presets/cursor/svelte/rules/tests-e2e-structure.mdc +0 -1
- package/presets/cursor/svelte/rules/tests-unit.mdc +0 -1
- package/presets/cursor/svelte/rules/types-jsdoc.mdc +18 -14
- package/presets/cursor/svelte/skills/technical-retro/SKILL.md +13 -2
- package/presets/cursor/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/svelte/team/README.md +5 -2
- package/presets/cursor/svelte/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/mavis/android-kotlin/REPO_AGENTS.md +10 -6
- package/presets/mavis/android-kotlin/adapter-map.json +1 -1
- package/presets/mavis/android-kotlin/agents/build-verifier.md +2 -36
- package/presets/mavis/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/mavis/android-kotlin/agents/debugger.md +1 -1
- package/presets/mavis/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/mavis/android-kotlin/agents/openspec-author.md +1 -1
- package/presets/mavis/android-kotlin/agents/task-analyst.md +2 -2
- package/presets/mavis/android-kotlin/agents/task-router.md +10 -0
- package/presets/mavis/android-kotlin/agents/tech-writer.md +1 -1
- package/presets/mavis/android-kotlin/agents/unit-test-generator.md +1 -1
- package/presets/mavis/android-kotlin/agents/unit-test-planner.md +1 -1
- package/presets/mavis/android-kotlin/commands/task-continue.md +1 -1
- package/presets/mavis/android-kotlin/commands/task.md +1 -1
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +418 -33
- package/presets/mavis/android-kotlin/rules/agent-team-intake.md +1 -1
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +19 -5
- package/presets/mavis/android-kotlin/rules/ai-local-overlay.md +7 -30
- package/presets/mavis/android-kotlin/rules/mockup-review.md +34 -29
- package/presets/mavis/android-kotlin/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +6 -2
- package/presets/mavis/android-kotlin/rules/preset-token-budget.md +2 -3
- package/presets/mavis/android-kotlin/rules/preset-twin-sync.md +5 -5
- package/presets/mavis/android-kotlin/skills/technical-retro/SKILL.md +13 -2
- package/presets/mavis/android-kotlin/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/android-kotlin/team/README.md +5 -2
- package/presets/mavis/go/REPO_AGENTS.md +10 -6
- package/presets/mavis/go/adapter-map.json +1 -1
- package/presets/mavis/go/agents/build-verifier.md +2 -28
- package/presets/mavis/go/agents/ci-investigator.md +2 -2
- package/presets/mavis/go/agents/code-reviewer.md +1 -1
- package/presets/mavis/go/agents/debugger.md +1 -1
- package/presets/mavis/go/agents/feature-developer.md +1 -3
- package/presets/mavis/go/agents/openspec-author.md +1 -1
- package/presets/mavis/go/agents/task-analyst.md +2 -2
- package/presets/mavis/go/agents/task-router.md +10 -0
- package/presets/mavis/go/agents/tech-writer.md +1 -1
- package/presets/mavis/go/commands/task-continue.md +1 -1
- package/presets/mavis/go/commands/task.md +1 -1
- package/presets/mavis/go/hooks/chain-team-phases.sh +418 -35
- package/presets/mavis/go/rules/agent-team-intake.md +1 -1
- package/presets/mavis/go/rules/agent-team-orchestrator.md +19 -5
- package/presets/mavis/go/rules/ai-local-overlay.md +7 -30
- package/presets/mavis/go/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/go/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/mavis/go/rules/preset-pr-checklist.md +6 -2
- package/presets/mavis/go/rules/preset-token-budget.md +2 -3
- package/presets/mavis/go/rules/preset-twin-sync.md +5 -5
- package/presets/mavis/go/skills/ci-investigation/SKILL.md +1 -1
- package/presets/mavis/go/skills/technical-retro/SKILL.md +13 -2
- package/presets/mavis/go/team/README.md +5 -2
- package/presets/mavis/ios-swift/REPO_AGENTS.md +10 -6
- package/presets/mavis/ios-swift/adapter-map.json +1 -1
- package/presets/mavis/ios-swift/agents/build-verifier.md +2 -38
- package/presets/mavis/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/mavis/ios-swift/agents/debugger.md +1 -1
- package/presets/mavis/ios-swift/agents/feature-developer.md +1 -1
- package/presets/mavis/ios-swift/agents/openspec-author.md +1 -1
- package/presets/mavis/ios-swift/agents/task-analyst.md +2 -2
- package/presets/mavis/ios-swift/agents/task-router.md +10 -0
- package/presets/mavis/ios-swift/agents/tech-writer.md +1 -1
- package/presets/mavis/ios-swift/agents/unit-test-generator.md +1 -1
- package/presets/mavis/ios-swift/agents/unit-test-planner.md +1 -1
- package/presets/mavis/ios-swift/agents/xcuitest-test-generator.md +1 -1
- package/presets/mavis/ios-swift/agents/xcuitest-test-planner.md +2 -2
- package/presets/mavis/ios-swift/commands/task-continue.md +1 -1
- package/presets/mavis/ios-swift/commands/task.md +1 -1
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +418 -33
- package/presets/mavis/ios-swift/rules/agent-team-intake.md +1 -1
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +19 -5
- package/presets/mavis/ios-swift/rules/ai-local-overlay.md +7 -30
- package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/ios-swift/rules/mockup-review.md +34 -29
- package/presets/mavis/ios-swift/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +6 -2
- package/presets/mavis/ios-swift/rules/preset-token-budget.md +2 -3
- package/presets/mavis/ios-swift/rules/preset-twin-sync.md +5 -5
- package/presets/mavis/ios-swift/skills/technical-retro/SKILL.md +13 -2
- package/presets/mavis/ios-swift/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
- package/presets/mavis/ios-swift/team/README.md +5 -2
- package/presets/mavis/java/REPO_AGENTS.md +10 -6
- package/presets/mavis/java/adapter-map.json +1 -1
- package/presets/mavis/java/agents/build-verifier.md +2 -38
- package/presets/mavis/java/agents/ci-investigator.md +2 -2
- package/presets/mavis/java/agents/code-reviewer.md +1 -1
- package/presets/mavis/java/agents/debugger.md +1 -1
- package/presets/mavis/java/agents/feature-developer.md +1 -3
- package/presets/mavis/java/agents/openspec-author.md +1 -1
- package/presets/mavis/java/agents/task-analyst.md +2 -2
- package/presets/mavis/java/agents/task-router.md +10 -0
- package/presets/mavis/java/agents/tech-writer.md +1 -1
- package/presets/mavis/java/commands/task-continue.md +1 -1
- package/presets/mavis/java/commands/task.md +1 -1
- package/presets/mavis/java/hooks/chain-team-phases.sh +418 -35
- package/presets/mavis/java/rules/agent-team-intake.md +1 -1
- package/presets/mavis/java/rules/agent-team-orchestrator.md +19 -5
- package/presets/mavis/java/rules/ai-local-overlay.md +7 -30
- package/presets/mavis/java/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/java/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/mavis/java/rules/preset-pr-checklist.md +6 -2
- package/presets/mavis/java/rules/preset-token-budget.md +2 -3
- package/presets/mavis/java/rules/preset-twin-sync.md +5 -5
- package/presets/mavis/java/skills/ci-investigation/SKILL.md +1 -1
- package/presets/mavis/java/skills/technical-retro/SKILL.md +13 -2
- package/presets/mavis/java/team/README.md +5 -2
- package/presets/mavis/mcp-ts/REPO_AGENTS.md +10 -6
- package/presets/mavis/mcp-ts/adapter-map.json +1 -1
- package/presets/mavis/mcp-ts/agents/README.md +1 -1
- package/presets/mavis/mcp-ts/agents/build-verifier.md +2 -31
- package/presets/mavis/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/mavis/mcp-ts/agents/task-analyst.md +2 -2
- package/presets/mavis/mcp-ts/agents/task-router.md +10 -0
- package/presets/mavis/mcp-ts/commands/task-continue.md +1 -1
- package/presets/mavis/mcp-ts/commands/task.md +1 -1
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +417 -34
- package/presets/mavis/mcp-ts/rules/agent-team-intake.md +1 -1
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +19 -5
- package/presets/mavis/mcp-ts/rules/ai-local-overlay.md +7 -30
- package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/mcp-ts/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +6 -2
- package/presets/mavis/mcp-ts/rules/preset-token-budget.md +2 -3
- package/presets/mavis/mcp-ts/rules/preset-twin-sync.md +5 -5
- package/presets/mavis/mcp-ts/team/README.md +5 -2
- package/presets/mavis/next/REPO_AGENTS.md +11 -7
- package/presets/mavis/next/adapter-map.json +9 -1
- package/presets/mavis/next/agents/build-verifier.md +2 -42
- package/presets/mavis/next/agents/code-reviewer.md +9 -38
- package/presets/mavis/next/agents/debugger.md +1 -1
- package/presets/mavis/next/agents/feature-developer.md +14 -25
- package/presets/mavis/next/agents/mockup-reviewer.md +14 -13
- package/presets/mavis/next/agents/openspec-author.md +1 -1
- package/presets/mavis/next/agents/task-analyst.md +2 -2
- package/presets/mavis/next/agents/task-router.md +10 -0
- package/presets/mavis/next/agents/tech-writer.md +1 -1
- package/presets/mavis/next/agents/unit-test-generator.md +1 -1
- package/presets/mavis/next/agents/unit-test-planner.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/analytics-events.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/api-contract-source.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/code-style.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/component-child-decomposition.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/feature-flags-experiments.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/mcp-required-for-ui-layout.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/no-react-fc.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/pwa-service-worker.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/router-pages.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/single-source-copy-constants.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/ui-change-review-gate.md +2 -2
- package/presets/mavis/next/commands/task-continue.md +1 -1
- package/presets/mavis/next/commands/task.md +1 -1
- package/presets/mavis/next/hooks/chain-team-phases.sh +418 -33
- package/presets/mavis/next/rules/agent-team-intake.md +1 -1
- package/presets/mavis/next/rules/agent-team-orchestrator.md +19 -5
- package/presets/mavis/next/rules/ai-local-overlay.md +5 -42
- package/presets/mavis/next/rules/code-review-mr.md +3 -16
- package/presets/mavis/next/rules/design-tokens-binding.md +6 -19
- package/presets/mavis/next/rules/feature-delivery-workflow.md +5 -12
- package/presets/mavis/next/rules/mockup-review.md +44 -45
- package/presets/mavis/next/rules/navigation-router-stack.md +1 -1
- package/presets/mavis/next/rules/navigation-router-ui.md +1 -1
- package/presets/mavis/next/rules/no-props-spread.md +1 -26
- package/presets/mavis/next/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/mavis/next/rules/preset-pr-checklist.md +6 -2
- package/presets/mavis/next/rules/preset-token-budget.md +2 -3
- package/presets/mavis/next/rules/preset-twin-sync.md +5 -5
- package/presets/mavis/next/rules/product-specs.md +1 -1
- package/presets/mavis/next/rules/public-imports.md +2 -2
- package/presets/mavis/next/rules/react-ui.md +1 -7
- package/presets/mavis/next/rules/tests-e2e-structure.md +0 -1
- package/presets/mavis/next/rules/tests-unit.md +0 -1
- package/presets/mavis/next/rules/types-jsdoc.md +14 -17
- package/presets/mavis/next/skills/code-review/SKILL.md +1 -1
- package/presets/mavis/next/skills/figma-fidelity/SKILL.md +75 -48
- package/presets/mavis/next/skills/mockup-review/SKILL.md +4 -2
- package/presets/mavis/next/skills/react-performance/SKILL.md +1 -1
- package/presets/mavis/next/skills/technical-retro/SKILL.md +13 -2
- package/presets/mavis/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/next/team/README.md +5 -2
- package/presets/mavis/next/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/mavis/next/team/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/nuxt/REPO_AGENTS.md +10 -6
- package/presets/mavis/nuxt/adapter-map.json +1 -1
- package/presets/mavis/nuxt/agents/build-verifier.md +1 -39
- package/presets/mavis/nuxt/agents/code-reviewer.md +1 -1
- package/presets/mavis/nuxt/agents/debugger.md +1 -1
- package/presets/mavis/nuxt/agents/feature-developer.md +1 -1
- package/presets/mavis/nuxt/agents/openspec-author.md +1 -1
- package/presets/mavis/nuxt/agents/task-analyst.md +2 -2
- package/presets/mavis/nuxt/agents/task-router.md +10 -0
- package/presets/mavis/nuxt/agents/tech-writer.md +1 -1
- package/presets/mavis/nuxt/agents/unit-test-generator.md +1 -1
- package/presets/mavis/nuxt/agents/unit-test-planner.md +1 -1
- package/presets/mavis/nuxt/commands/task-continue.md +1 -1
- package/presets/mavis/nuxt/commands/task.md +1 -1
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +418 -33
- package/presets/mavis/nuxt/rules/agent-team-intake.md +1 -1
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +19 -5
- package/presets/mavis/nuxt/rules/ai-local-overlay.md +7 -30
- package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/nuxt/rules/mockup-review.md +34 -29
- package/presets/mavis/nuxt/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/mavis/nuxt/rules/preset-pr-checklist.md +6 -2
- package/presets/mavis/nuxt/rules/preset-token-budget.md +2 -3
- package/presets/mavis/nuxt/rules/preset-twin-sync.md +5 -5
- package/presets/mavis/nuxt/rules/public-imports.md +2 -2
- package/presets/mavis/nuxt/rules/tests-e2e-structure.md +0 -1
- package/presets/mavis/nuxt/rules/tests-unit.md +0 -1
- package/presets/mavis/nuxt/rules/types-jsdoc.md +18 -14
- package/presets/mavis/nuxt/skills/technical-retro/SKILL.md +13 -2
- package/presets/mavis/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/nuxt/team/README.md +5 -2
- package/presets/mavis/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/mavis/php-hexagonal/REPO_AGENTS.md +10 -6
- package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
- package/presets/mavis/php-hexagonal/agents/build-verifier.md +2 -38
- package/presets/mavis/php-hexagonal/agents/ci-investigator.md +2 -2
- package/presets/mavis/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/mavis/php-hexagonal/agents/debugger.md +1 -1
- package/presets/mavis/php-hexagonal/agents/feature-developer.md +1 -3
- package/presets/mavis/php-hexagonal/agents/openspec-author.md +1 -1
- package/presets/mavis/php-hexagonal/agents/task-analyst.md +2 -2
- package/presets/mavis/php-hexagonal/agents/task-router.md +10 -0
- package/presets/mavis/php-hexagonal/agents/tech-writer.md +1 -1
- package/presets/mavis/php-hexagonal/commands/task-continue.md +1 -1
- package/presets/mavis/php-hexagonal/commands/task.md +1 -1
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +418 -35
- package/presets/mavis/php-hexagonal/rules/agent-team-intake.md +1 -1
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +19 -5
- package/presets/mavis/php-hexagonal/rules/ai-local-overlay.md +7 -30
- package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/php-hexagonal/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +6 -2
- package/presets/mavis/php-hexagonal/rules/preset-token-budget.md +2 -3
- package/presets/mavis/php-hexagonal/rules/preset-twin-sync.md +5 -5
- package/presets/mavis/php-hexagonal/skills/ci-investigation/SKILL.md +1 -1
- package/presets/mavis/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
- package/presets/mavis/php-hexagonal/team/README.md +5 -2
- package/presets/mavis/php-laravel/REPO_AGENTS.md +10 -6
- package/presets/mavis/php-laravel/adapter-map.json +1 -1
- package/presets/mavis/php-laravel/agents/build-verifier.md +2 -38
- package/presets/mavis/php-laravel/agents/ci-investigator.md +2 -2
- package/presets/mavis/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/mavis/php-laravel/agents/debugger.md +1 -1
- package/presets/mavis/php-laravel/agents/feature-developer.md +1 -3
- package/presets/mavis/php-laravel/agents/openspec-author.md +1 -1
- package/presets/mavis/php-laravel/agents/task-analyst.md +2 -2
- package/presets/mavis/php-laravel/agents/task-router.md +10 -0
- package/presets/mavis/php-laravel/agents/tech-writer.md +1 -1
- package/presets/mavis/php-laravel/commands/task-continue.md +1 -1
- package/presets/mavis/php-laravel/commands/task.md +1 -1
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +418 -35
- package/presets/mavis/php-laravel/rules/agent-team-intake.md +1 -1
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +19 -5
- package/presets/mavis/php-laravel/rules/ai-local-overlay.md +7 -30
- package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/php-laravel/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +6 -2
- package/presets/mavis/php-laravel/rules/preset-token-budget.md +2 -3
- package/presets/mavis/php-laravel/rules/preset-twin-sync.md +5 -5
- package/presets/mavis/php-laravel/skills/ci-investigation/SKILL.md +1 -1
- package/presets/mavis/php-laravel/skills/technical-retro/SKILL.md +13 -2
- package/presets/mavis/php-laravel/team/README.md +5 -2
- package/presets/mavis/svelte/REPO_AGENTS.md +10 -6
- package/presets/mavis/svelte/adapter-map.json +1 -1
- package/presets/mavis/svelte/agents/build-verifier.md +1 -39
- package/presets/mavis/svelte/agents/code-reviewer.md +1 -1
- package/presets/mavis/svelte/agents/debugger.md +1 -1
- package/presets/mavis/svelte/agents/feature-developer.md +1 -1
- package/presets/mavis/svelte/agents/openspec-author.md +1 -1
- package/presets/mavis/svelte/agents/task-analyst.md +2 -2
- package/presets/mavis/svelte/agents/task-router.md +10 -0
- package/presets/mavis/svelte/agents/tech-writer.md +1 -1
- package/presets/mavis/svelte/agents/unit-test-generator.md +1 -1
- package/presets/mavis/svelte/agents/unit-test-planner.md +1 -1
- package/presets/mavis/svelte/commands/task-continue.md +1 -1
- package/presets/mavis/svelte/commands/task.md +1 -1
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +418 -33
- package/presets/mavis/svelte/rules/agent-team-intake.md +1 -1
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +19 -5
- package/presets/mavis/svelte/rules/ai-local-overlay.md +7 -30
- package/presets/mavis/svelte/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/svelte/rules/mockup-review.md +34 -29
- package/presets/mavis/svelte/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/mavis/svelte/rules/preset-pr-checklist.md +6 -2
- package/presets/mavis/svelte/rules/preset-token-budget.md +2 -3
- package/presets/mavis/svelte/rules/preset-twin-sync.md +5 -5
- package/presets/mavis/svelte/rules/tests-e2e-structure.md +0 -1
- package/presets/mavis/svelte/rules/tests-unit.md +0 -1
- package/presets/mavis/svelte/rules/types-jsdoc.md +18 -14
- package/presets/mavis/svelte/skills/technical-retro/SKILL.md +13 -2
- package/presets/mavis/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/svelte/team/README.md +5 -2
- package/presets/mavis/svelte/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/opencode/android-kotlin/REPO_AGENTS.md +10 -6
- package/presets/opencode/android-kotlin/adapter-map.json +1 -1
- package/presets/opencode/android-kotlin/agents/build-verifier.md +3 -37
- package/presets/opencode/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/opencode/android-kotlin/agents/debugger.md +1 -1
- package/presets/opencode/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/opencode/android-kotlin/agents/openspec-author.md +1 -1
- package/presets/opencode/android-kotlin/agents/task-analyst.md +2 -2
- package/presets/opencode/android-kotlin/agents/task-router.md +10 -0
- package/presets/opencode/android-kotlin/agents/tech-writer.md +1 -1
- package/presets/opencode/android-kotlin/agents/unit-test-generator.md +1 -1
- package/presets/opencode/android-kotlin/agents/unit-test-planner.md +1 -1
- package/presets/opencode/android-kotlin/commands/task-continue.md +1 -1
- package/presets/opencode/android-kotlin/commands/task.md +1 -1
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +418 -33
- package/presets/opencode/android-kotlin/rules/agent-team-intake.md +1 -1
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +19 -5
- package/presets/opencode/android-kotlin/rules/ai-local-overlay.md +7 -30
- package/presets/opencode/android-kotlin/rules/mockup-review.md +34 -29
- package/presets/opencode/android-kotlin/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +6 -2
- package/presets/opencode/android-kotlin/rules/preset-token-budget.md +2 -3
- package/presets/opencode/android-kotlin/rules/preset-twin-sync.md +5 -5
- package/presets/opencode/android-kotlin/skills/technical-retro/SKILL.md +13 -2
- package/presets/opencode/android-kotlin/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/android-kotlin/team/README.md +5 -2
- package/presets/opencode/go/REPO_AGENTS.md +10 -6
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/agents/build-verifier.md +3 -29
- package/presets/opencode/go/agents/ci-investigator.md +2 -2
- package/presets/opencode/go/agents/code-reviewer.md +1 -1
- package/presets/opencode/go/agents/debugger.md +1 -1
- package/presets/opencode/go/agents/feature-developer.md +1 -3
- package/presets/opencode/go/agents/openspec-author.md +1 -1
- package/presets/opencode/go/agents/task-analyst.md +2 -2
- package/presets/opencode/go/agents/task-router.md +10 -0
- package/presets/opencode/go/agents/tech-writer.md +1 -1
- package/presets/opencode/go/commands/task-continue.md +1 -1
- package/presets/opencode/go/commands/task.md +1 -1
- package/presets/opencode/go/hooks/chain-team-phases.sh +418 -35
- package/presets/opencode/go/rules/agent-team-intake.md +1 -1
- package/presets/opencode/go/rules/agent-team-orchestrator.md +19 -5
- package/presets/opencode/go/rules/ai-local-overlay.md +7 -30
- package/presets/opencode/go/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/go/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/opencode/go/rules/preset-pr-checklist.md +6 -2
- package/presets/opencode/go/rules/preset-token-budget.md +2 -3
- package/presets/opencode/go/rules/preset-twin-sync.md +5 -5
- package/presets/opencode/go/skills/ci-investigation/SKILL.md +2 -2
- package/presets/opencode/go/skills/technical-retro/SKILL.md +13 -2
- package/presets/opencode/go/team/README.md +5 -2
- package/presets/opencode/ios-swift/REPO_AGENTS.md +10 -6
- package/presets/opencode/ios-swift/adapter-map.json +1 -1
- package/presets/opencode/ios-swift/agents/build-verifier.md +3 -39
- package/presets/opencode/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/opencode/ios-swift/agents/debugger.md +1 -1
- package/presets/opencode/ios-swift/agents/feature-developer.md +1 -1
- package/presets/opencode/ios-swift/agents/openspec-author.md +1 -1
- package/presets/opencode/ios-swift/agents/task-analyst.md +2 -2
- package/presets/opencode/ios-swift/agents/task-router.md +10 -0
- package/presets/opencode/ios-swift/agents/tech-writer.md +1 -1
- package/presets/opencode/ios-swift/agents/unit-test-generator.md +1 -1
- package/presets/opencode/ios-swift/agents/unit-test-planner.md +1 -1
- package/presets/opencode/ios-swift/agents/xcuitest-test-generator.md +1 -1
- package/presets/opencode/ios-swift/agents/xcuitest-test-planner.md +2 -2
- package/presets/opencode/ios-swift/commands/task-continue.md +1 -1
- package/presets/opencode/ios-swift/commands/task.md +1 -1
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +418 -33
- package/presets/opencode/ios-swift/rules/agent-team-intake.md +1 -1
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +19 -5
- package/presets/opencode/ios-swift/rules/ai-local-overlay.md +7 -30
- package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/ios-swift/rules/mockup-review.md +34 -29
- package/presets/opencode/ios-swift/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +6 -2
- package/presets/opencode/ios-swift/rules/preset-token-budget.md +2 -3
- package/presets/opencode/ios-swift/rules/preset-twin-sync.md +5 -5
- package/presets/opencode/ios-swift/skills/technical-retro/SKILL.md +13 -2
- package/presets/opencode/ios-swift/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
- package/presets/opencode/ios-swift/team/README.md +5 -2
- package/presets/opencode/java/REPO_AGENTS.md +10 -6
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/agents/build-verifier.md +3 -39
- package/presets/opencode/java/agents/ci-investigator.md +2 -2
- package/presets/opencode/java/agents/code-reviewer.md +1 -1
- package/presets/opencode/java/agents/debugger.md +1 -1
- package/presets/opencode/java/agents/feature-developer.md +1 -3
- package/presets/opencode/java/agents/openspec-author.md +1 -1
- package/presets/opencode/java/agents/task-analyst.md +2 -2
- package/presets/opencode/java/agents/task-router.md +10 -0
- package/presets/opencode/java/agents/tech-writer.md +1 -1
- package/presets/opencode/java/commands/task-continue.md +1 -1
- package/presets/opencode/java/commands/task.md +1 -1
- package/presets/opencode/java/hooks/chain-team-phases.sh +418 -35
- package/presets/opencode/java/rules/agent-team-intake.md +1 -1
- package/presets/opencode/java/rules/agent-team-orchestrator.md +19 -5
- package/presets/opencode/java/rules/ai-local-overlay.md +7 -30
- package/presets/opencode/java/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/java/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/opencode/java/rules/preset-pr-checklist.md +6 -2
- package/presets/opencode/java/rules/preset-token-budget.md +2 -3
- package/presets/opencode/java/rules/preset-twin-sync.md +5 -5
- package/presets/opencode/java/skills/ci-investigation/SKILL.md +2 -2
- package/presets/opencode/java/skills/technical-retro/SKILL.md +13 -2
- package/presets/opencode/java/team/README.md +5 -2
- package/presets/opencode/mcp-ts/REPO_AGENTS.md +10 -6
- package/presets/opencode/mcp-ts/adapter-map.json +1 -1
- package/presets/opencode/mcp-ts/agents/README.md +1 -1
- package/presets/opencode/mcp-ts/agents/build-verifier.md +3 -32
- package/presets/opencode/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/opencode/mcp-ts/agents/task-analyst.md +2 -2
- package/presets/opencode/mcp-ts/agents/task-router.md +10 -0
- package/presets/opencode/mcp-ts/commands/task-continue.md +1 -1
- package/presets/opencode/mcp-ts/commands/task.md +1 -1
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +417 -34
- package/presets/opencode/mcp-ts/rules/agent-team-intake.md +1 -1
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +19 -5
- package/presets/opencode/mcp-ts/rules/ai-local-overlay.md +7 -30
- package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/mcp-ts/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +6 -2
- package/presets/opencode/mcp-ts/rules/preset-token-budget.md +2 -3
- package/presets/opencode/mcp-ts/rules/preset-twin-sync.md +5 -5
- package/presets/opencode/mcp-ts/team/README.md +5 -2
- package/presets/opencode/next/REPO_AGENTS.md +11 -7
- package/presets/opencode/next/adapter-map.json +9 -1
- package/presets/opencode/next/agents/build-verifier.md +2 -42
- package/presets/opencode/next/agents/code-reviewer.md +9 -38
- package/presets/opencode/next/agents/debugger.md +1 -1
- package/presets/opencode/next/agents/feature-developer.md +14 -25
- package/presets/opencode/next/agents/mockup-reviewer.md +14 -13
- package/presets/opencode/next/agents/openspec-author.md +1 -1
- package/presets/opencode/next/agents/task-analyst.md +2 -2
- package/presets/opencode/next/agents/task-router.md +10 -0
- package/presets/opencode/next/agents/tech-writer.md +1 -1
- package/presets/opencode/next/agents/unit-test-generator.md +1 -1
- package/presets/opencode/next/agents/unit-test-planner.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/analytics-events.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/api-contract-source.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/code-style.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/component-child-decomposition.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/feature-flags-experiments.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/mcp-required-for-ui-layout.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/no-react-fc.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/pwa-service-worker.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/router-pages.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/single-source-copy-constants.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/ui-change-review-gate.md +2 -2
- package/presets/opencode/next/commands/task-continue.md +1 -1
- package/presets/opencode/next/commands/task.md +1 -1
- package/presets/opencode/next/hooks/chain-team-phases.sh +418 -33
- package/presets/opencode/next/rules/agent-team-intake.md +1 -1
- package/presets/opencode/next/rules/agent-team-orchestrator.md +19 -5
- package/presets/opencode/next/rules/ai-local-overlay.md +5 -42
- package/presets/opencode/next/rules/code-review-mr.md +3 -16
- package/presets/opencode/next/rules/design-tokens-binding.md +6 -19
- package/presets/opencode/next/rules/feature-delivery-workflow.md +5 -12
- package/presets/opencode/next/rules/mockup-review.md +44 -45
- package/presets/opencode/next/rules/navigation-router-stack.md +1 -1
- package/presets/opencode/next/rules/navigation-router-ui.md +1 -1
- package/presets/opencode/next/rules/no-props-spread.md +1 -26
- package/presets/opencode/next/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/opencode/next/rules/preset-pr-checklist.md +6 -2
- package/presets/opencode/next/rules/preset-token-budget.md +2 -3
- package/presets/opencode/next/rules/preset-twin-sync.md +5 -5
- package/presets/opencode/next/rules/product-specs.md +1 -1
- package/presets/opencode/next/rules/public-imports.md +2 -2
- package/presets/opencode/next/rules/react-ui.md +1 -7
- package/presets/opencode/next/rules/tests-e2e-structure.md +0 -1
- package/presets/opencode/next/rules/tests-unit.md +0 -1
- package/presets/opencode/next/rules/types-jsdoc.md +14 -17
- package/presets/opencode/next/skills/code-review/SKILL.md +1 -1
- package/presets/opencode/next/skills/figma-fidelity/SKILL.md +76 -49
- package/presets/opencode/next/skills/mockup-review/SKILL.md +4 -2
- package/presets/opencode/next/skills/react-performance/SKILL.md +1 -1
- package/presets/opencode/next/skills/technical-retro/SKILL.md +13 -2
- package/presets/opencode/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/next/team/README.md +5 -2
- package/presets/opencode/next/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/opencode/next/team/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/nuxt/REPO_AGENTS.md +10 -6
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/agents/build-verifier.md +1 -39
- package/presets/opencode/nuxt/agents/code-reviewer.md +1 -1
- package/presets/opencode/nuxt/agents/debugger.md +1 -1
- package/presets/opencode/nuxt/agents/feature-developer.md +1 -1
- package/presets/opencode/nuxt/agents/openspec-author.md +1 -1
- package/presets/opencode/nuxt/agents/task-analyst.md +2 -2
- package/presets/opencode/nuxt/agents/task-router.md +10 -0
- package/presets/opencode/nuxt/agents/tech-writer.md +1 -1
- package/presets/opencode/nuxt/agents/unit-test-generator.md +1 -1
- package/presets/opencode/nuxt/agents/unit-test-planner.md +1 -1
- package/presets/opencode/nuxt/commands/task-continue.md +1 -1
- package/presets/opencode/nuxt/commands/task.md +1 -1
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +418 -33
- package/presets/opencode/nuxt/rules/agent-team-intake.md +1 -1
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +19 -5
- package/presets/opencode/nuxt/rules/ai-local-overlay.md +7 -30
- package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/nuxt/rules/mockup-review.md +34 -29
- package/presets/opencode/nuxt/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/opencode/nuxt/rules/preset-pr-checklist.md +6 -2
- package/presets/opencode/nuxt/rules/preset-token-budget.md +2 -3
- package/presets/opencode/nuxt/rules/preset-twin-sync.md +5 -5
- package/presets/opencode/nuxt/rules/public-imports.md +2 -2
- package/presets/opencode/nuxt/rules/tests-e2e-structure.md +0 -1
- package/presets/opencode/nuxt/rules/tests-unit.md +0 -1
- package/presets/opencode/nuxt/rules/types-jsdoc.md +18 -14
- package/presets/opencode/nuxt/skills/technical-retro/SKILL.md +13 -2
- package/presets/opencode/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/nuxt/team/README.md +5 -2
- package/presets/opencode/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/opencode/php-hexagonal/REPO_AGENTS.md +10 -6
- package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
- package/presets/opencode/php-hexagonal/agents/build-verifier.md +3 -39
- package/presets/opencode/php-hexagonal/agents/ci-investigator.md +2 -2
- package/presets/opencode/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/opencode/php-hexagonal/agents/debugger.md +1 -1
- package/presets/opencode/php-hexagonal/agents/feature-developer.md +1 -3
- package/presets/opencode/php-hexagonal/agents/openspec-author.md +1 -1
- package/presets/opencode/php-hexagonal/agents/task-analyst.md +2 -2
- package/presets/opencode/php-hexagonal/agents/task-router.md +10 -0
- package/presets/opencode/php-hexagonal/agents/tech-writer.md +1 -1
- package/presets/opencode/php-hexagonal/commands/task-continue.md +1 -1
- package/presets/opencode/php-hexagonal/commands/task.md +1 -1
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +418 -35
- package/presets/opencode/php-hexagonal/rules/agent-team-intake.md +1 -1
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +19 -5
- package/presets/opencode/php-hexagonal/rules/ai-local-overlay.md +7 -30
- package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/php-hexagonal/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +6 -2
- package/presets/opencode/php-hexagonal/rules/preset-token-budget.md +2 -3
- package/presets/opencode/php-hexagonal/rules/preset-twin-sync.md +5 -5
- package/presets/opencode/php-hexagonal/skills/ci-investigation/SKILL.md +2 -2
- package/presets/opencode/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
- package/presets/opencode/php-hexagonal/team/README.md +5 -2
- package/presets/opencode/php-laravel/REPO_AGENTS.md +10 -6
- package/presets/opencode/php-laravel/adapter-map.json +1 -1
- package/presets/opencode/php-laravel/agents/build-verifier.md +3 -39
- package/presets/opencode/php-laravel/agents/ci-investigator.md +2 -2
- package/presets/opencode/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/opencode/php-laravel/agents/debugger.md +1 -1
- package/presets/opencode/php-laravel/agents/feature-developer.md +1 -3
- package/presets/opencode/php-laravel/agents/openspec-author.md +1 -1
- package/presets/opencode/php-laravel/agents/task-analyst.md +2 -2
- package/presets/opencode/php-laravel/agents/task-router.md +10 -0
- package/presets/opencode/php-laravel/agents/tech-writer.md +1 -1
- package/presets/opencode/php-laravel/commands/task-continue.md +1 -1
- package/presets/opencode/php-laravel/commands/task.md +1 -1
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +418 -35
- package/presets/opencode/php-laravel/rules/agent-team-intake.md +1 -1
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +19 -5
- package/presets/opencode/php-laravel/rules/ai-local-overlay.md +7 -30
- package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/php-laravel/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +6 -2
- package/presets/opencode/php-laravel/rules/preset-token-budget.md +2 -3
- package/presets/opencode/php-laravel/rules/preset-twin-sync.md +5 -5
- package/presets/opencode/php-laravel/skills/ci-investigation/SKILL.md +2 -2
- package/presets/opencode/php-laravel/skills/technical-retro/SKILL.md +13 -2
- package/presets/opencode/php-laravel/team/README.md +5 -2
- package/presets/opencode/svelte/REPO_AGENTS.md +10 -6
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/agents/build-verifier.md +1 -39
- package/presets/opencode/svelte/agents/code-reviewer.md +1 -1
- package/presets/opencode/svelte/agents/debugger.md +1 -1
- package/presets/opencode/svelte/agents/feature-developer.md +1 -1
- package/presets/opencode/svelte/agents/openspec-author.md +1 -1
- package/presets/opencode/svelte/agents/task-analyst.md +2 -2
- package/presets/opencode/svelte/agents/task-router.md +10 -0
- package/presets/opencode/svelte/agents/tech-writer.md +1 -1
- package/presets/opencode/svelte/agents/unit-test-generator.md +1 -1
- package/presets/opencode/svelte/agents/unit-test-planner.md +1 -1
- package/presets/opencode/svelte/commands/task-continue.md +1 -1
- package/presets/opencode/svelte/commands/task.md +1 -1
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +418 -33
- package/presets/opencode/svelte/rules/agent-team-intake.md +1 -1
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +19 -5
- package/presets/opencode/svelte/rules/ai-local-overlay.md +7 -30
- package/presets/opencode/svelte/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/svelte/rules/mockup-review.md +34 -29
- package/presets/opencode/svelte/rules/preset-no-cross-stack-leakage.md +0 -1
- package/presets/opencode/svelte/rules/preset-pr-checklist.md +6 -2
- package/presets/opencode/svelte/rules/preset-token-budget.md +2 -3
- package/presets/opencode/svelte/rules/preset-twin-sync.md +5 -5
- package/presets/opencode/svelte/rules/tests-e2e-structure.md +0 -1
- package/presets/opencode/svelte/rules/tests-unit.md +0 -1
- package/presets/opencode/svelte/rules/types-jsdoc.md +18 -14
- package/presets/opencode/svelte/skills/technical-retro/SKILL.md +13 -2
- package/presets/opencode/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/svelte/team/README.md +5 -2
- package/presets/opencode/svelte/team/fixtures/artifact-manifest.example.json +1 -1
- package/scripts/_lib/embed-stems.json +0 -38
- package/scripts/capture-cli-golden.mjs +0 -51
- package/scripts/check-chain-hook-coverage.sh +0 -124
- package/scripts/check-claude-agent-blocks.mjs +0 -82
- package/scripts/check-figma-contract-presence.sh +0 -119
- package/scripts/check-frontmatter.mjs +0 -83
- package/scripts/check-generated-drift.mjs +0 -146
- package/scripts/check-hook-only-lifecycle.sh +0 -46
- package/scripts/check-local-overlay.sh +0 -283
- package/scripts/check-mavis-adapter-map.mjs +0 -306
- package/scripts/check-mavis-local-overlay.mjs +0 -79
- package/scripts/check-mavis-platform-contract.mjs +0 -390
- package/scripts/check-mavis-token-budget.mjs +0 -48
- package/scripts/check-opencode-adapter-map.mjs +0 -306
- package/scripts/check-opencode-local-overlay.mjs +0 -75
- package/scripts/check-opencode-platform-contract.mjs +0 -390
- package/scripts/check-opencode-token-budget.mjs +0 -48
- package/scripts/check-plan-contract.sh +0 -133
- package/scripts/check-preset-goal-contract.sh +0 -214
- package/scripts/check-preset-i18n.sh +0 -61
- package/scripts/check-preset-language-policy.sh +0 -292
- package/scripts/check-preset-leakage.sh +0 -545
- package/scripts/check-preset-prompt-persistence.sh +0 -191
- package/scripts/check-preset-self-review-contract.sh +0 -179
- package/scripts/check-preset-structure.sh +0 -295
- package/scripts/check-preset-token-budget.sh +0 -258
- package/scripts/check-preset-twin-map.sh +0 -122
- package/scripts/check-rule-eval.mjs +0 -165
- package/scripts/check-shared-core-drift.sh +0 -155
- package/scripts/check-task-router-intents.sh +0 -154
- package/scripts/fixtures/cli-golden/claude/next.json +0 -145
- package/scripts/fixtures/cli-golden/cursor/next.json +0 -167
- package/scripts/fixtures/cli-golden/mavis/android-kotlin.json +0 -110
- package/scripts/fixtures/cli-golden/mavis/go.json +0 -103
- package/scripts/fixtures/cli-golden/mavis/ios-swift.json +0 -109
- package/scripts/fixtures/cli-golden/mavis/java.json +0 -103
- package/scripts/fixtures/cli-golden/mavis/mcp-ts.json +0 -74
- package/scripts/fixtures/cli-golden/mavis/next.json +0 -160
- package/scripts/fixtures/cli-golden/mavis/nuxt.json +0 -128
- package/scripts/fixtures/cli-golden/mavis/php-hexagonal.json +0 -103
- package/scripts/fixtures/cli-golden/mavis/php-laravel.json +0 -103
- package/scripts/fixtures/cli-golden/mavis/svelte.json +0 -128
- package/scripts/fixtures/cli-golden/opencode/android-kotlin.json +0 -110
- package/scripts/fixtures/cli-golden/opencode/go.json +0 -103
- package/scripts/fixtures/cli-golden/opencode/ios-swift.json +0 -109
- package/scripts/fixtures/cli-golden/opencode/java.json +0 -103
- package/scripts/fixtures/cli-golden/opencode/mcp-ts.json +0 -74
- package/scripts/fixtures/cli-golden/opencode/next.json +0 -160
- package/scripts/fixtures/cli-golden/opencode/nuxt.json +0 -128
- package/scripts/fixtures/cli-golden/opencode/php-hexagonal.json +0 -103
- package/scripts/fixtures/cli-golden/opencode/php-laravel.json +0 -103
- package/scripts/fixtures/cli-golden/opencode/svelte.json +0 -128
- package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/cursor/AGENTS.md +0 -1
- package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/cursor/rules/extra.mdc +0 -1
- package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/cursor/rules/sample.mdc +0 -2
- package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/mavis/MAVIS.md +0 -1
- package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/mavis/adapter-map.json +0 -26
- package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/mavis/rules/sample.md +0 -2
- package/scripts/fixtures/mavis-adapter-map/valid/cursor/AGENTS.md +0 -1
- package/scripts/fixtures/mavis-adapter-map/valid/cursor/rules/sample.mdc +0 -2
- package/scripts/fixtures/mavis-adapter-map/valid/mavis/MAVIS.md +0 -1
- package/scripts/fixtures/mavis-adapter-map/valid/mavis/adapter-map.json +0 -26
- package/scripts/fixtures/mavis-adapter-map/valid/mavis/rules/sample.md +0 -2
- package/scripts/fixtures/mavis-platform-contract/invalid-minimax-destination.json +0 -131
- package/scripts/fixtures/mavis-platform-contract/invalid-missing-capability.json +0 -126
- package/scripts/fixtures/mavis-platform-contract/invalid-released-unknown-stack.json +0 -133
- package/scripts/fixtures/mavis-platform-contract/invalid-unknown-native-path.json +0 -131
- package/scripts/fixtures/mavis-platform-contract/invalid-version-pin.json +0 -132
- package/scripts/fixtures/mavis-platform-contract/valid.json +0 -127
- package/scripts/fixtures/mavis-probe/AGENTS.md +0 -6
- package/scripts/fixtures/mavis-probe/agents/probe-agent.md +0 -6
- package/scripts/fixtures/mavis-probe/fake-mcode.mjs +0 -98
- package/scripts/fixtures/mavis-probe/output.schema.json +0 -28
- package/scripts/fixtures/mavis-probe/rules/probe.md +0 -5
- package/scripts/fixtures/mavis-probe/skills/probe/SKILL.md +0 -11
- package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/cursor/AGENTS.md +0 -1
- package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/cursor/rules/extra.mdc +0 -1
- package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/cursor/rules/sample.mdc +0 -2
- package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/opencode/OPENCODE.md +0 -1
- package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/opencode/adapter-map.json +0 -26
- package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/opencode/rules/sample.md +0 -2
- package/scripts/fixtures/opencode-adapter-map/valid/cursor/AGENTS.md +0 -1
- package/scripts/fixtures/opencode-adapter-map/valid/cursor/rules/sample.mdc +0 -2
- package/scripts/fixtures/opencode-adapter-map/valid/opencode/OPENCODE.md +0 -1
- package/scripts/fixtures/opencode-adapter-map/valid/opencode/adapter-map.json +0 -26
- package/scripts/fixtures/opencode-adapter-map/valid/opencode/rules/sample.md +0 -2
- package/scripts/fixtures/opencode-platform-contract/invalid-home-destination.json +0 -131
- package/scripts/fixtures/opencode-platform-contract/invalid-missing-capability.json +0 -126
- package/scripts/fixtures/opencode-platform-contract/invalid-released-unknown-stack.json +0 -133
- package/scripts/fixtures/opencode-platform-contract/invalid-unknown-native-path.json +0 -131
- package/scripts/fixtures/opencode-platform-contract/invalid-version-pin.json +0 -132
- package/scripts/fixtures/opencode-platform-contract/valid.json +0 -127
- package/scripts/generate-mavis.mjs +0 -14
- package/scripts/generate-opencode.mjs +0 -14
- package/scripts/inject-claude-agent-rules-block.mjs +0 -83
- package/scripts/lib/cli-golden.mjs +0 -50
- package/scripts/lib/discover-hooks.mjs +0 -94
- package/scripts/lib/generate-adapter-common.mjs +0 -603
- package/scripts/lib/generate-mavis-adapter.mjs +0 -550
- package/scripts/lib/generate-opencode-adapter.mjs +0 -662
- package/scripts/lib/stack-platform-profiles.mjs +0 -468
- package/scripts/probe-mavis-capabilities.mjs +0 -480
- package/scripts/sync-claude-harness-wiring.mjs +0 -56
- package/scripts/sync-claude-settings.mjs +0 -81
- package/scripts/sync-dogfood-claude.sh +0 -62
- package/scripts/sync-dogfood-cursor.sh +0 -50
- package/scripts/sync-dogfood-mavis.sh +0 -69
- package/scripts/sync-dogfood-opencode.sh +0 -67
- package/scripts/sync-shared-core-embeds.sh +0 -103
- package/scripts/test-agent-task-metrics-hooks.mjs +0 -1058
- package/scripts/test-chain-team-phases-coverage.mjs +0 -693
- package/scripts/test-cli-init-clean.mjs +0 -794
- package/scripts/test-cli-mcp-merge.mjs +0 -214
- package/scripts/test-mavis-context-budget.mjs +0 -50
- package/scripts/test-mavis-orchestration.mjs +0 -650
- package/scripts/test-opencode-context-budget.mjs +0 -49
- package/scripts/test-plan-contract-fixtures.mjs +0 -132
- package/scripts/test-preset-goal-contract-fixtures.mjs +0 -162
- package/scripts/test-preset-language-policy-fixtures.mjs +0 -194
- package/scripts/test-preset-prompt-persistence-fixtures.mjs +0 -175
- package/scripts/test-preset-self-review-contract-fixtures.mjs +0 -163
- package/scripts/test-probe-mavis-capabilities.mjs +0 -205
- package/scripts/test-task-router-intents-fixtures.mjs +0 -109
|
@@ -10,6 +10,7 @@ input=$(cat)
|
|
|
10
10
|
INPUT="$input" node <<'NODE'
|
|
11
11
|
const fs = require('fs');
|
|
12
12
|
const path = require('path');
|
|
13
|
+
const crypto = require('crypto');
|
|
13
14
|
|
|
14
15
|
// mcp-ts Phase-1 chain: validation via typecheck/tests + security-reviewer (no contract-test-* handoffs)
|
|
15
16
|
const TEAM_ROOT = path.join(process.cwd(), '.ai.local', 'team');
|
|
@@ -57,6 +58,9 @@ const statusPath = path.join(taskDir, 'status.json');
|
|
|
57
58
|
const pipelinePath = path.join(taskDir, 'pipeline.json');
|
|
58
59
|
const METRICS_PATH = path.join(taskDir, 'metrics.json');
|
|
59
60
|
const METRICS_LOCK = `${METRICS_PATH}.lock`;
|
|
61
|
+
// Pipeline step graph is assigned once pipeline.json is parsed; declared early so the
|
|
62
|
+
// gate-resume branch can schedule from the graph before the main parse point.
|
|
63
|
+
let steps = [];
|
|
60
64
|
|
|
61
65
|
if (!fs.existsSync(statusPath)) {
|
|
62
66
|
process.stdout.write('{}');
|
|
@@ -68,40 +72,71 @@ const now = new Date().toISOString();
|
|
|
68
72
|
const STACK = 'mcp-ts';
|
|
69
73
|
const PLATFORM = 'cursor';
|
|
70
74
|
|
|
75
|
+
let metricsLockToken = null;
|
|
76
|
+
function readMetricsLockToken() {
|
|
77
|
+
try {
|
|
78
|
+
const content = fs.readFileSync(METRICS_LOCK, 'utf8').trim();
|
|
79
|
+
return content.length > 0 ? content : null;
|
|
80
|
+
} catch { return null; }
|
|
81
|
+
}
|
|
82
|
+
function pidFromToken(token) {
|
|
83
|
+
const match = /^(\d+):/.exec(token || '');
|
|
84
|
+
return match ? Number(match[1]) : null;
|
|
85
|
+
}
|
|
86
|
+
function isPidAlive(pid) {
|
|
87
|
+
try { process.kill(pid, 0); return true; } catch (error) { return Boolean(error && error.code === 'EPERM'); }
|
|
88
|
+
}
|
|
71
89
|
function waitForMetricsLock() {
|
|
72
|
-
// OD-1:
|
|
73
|
-
//
|
|
74
|
-
//
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
//
|
|
78
|
-
// than STALE_LOCK_MS, so one crash cannot brick the task forever.
|
|
90
|
+
// OD-1: advisory lock via create-exclusive (fs.openSync(_, 'wx')) carrying an
|
|
91
|
+
// ownership token, backported from .ai.local/scripts/lock.mjs. Two concurrent
|
|
92
|
+
// subagentStop events serialize; release unlinks only when the file still
|
|
93
|
+
// carries our token. A lock left behind by a killed process is reclaimed only
|
|
94
|
+
// once its mtime is older than STALE_LOCK_MS AND the recorded owner pid is no
|
|
95
|
+
// longer alive, so a slow-but-live owner is never stolen.
|
|
79
96
|
const STALE_LOCK_MS = 30000;
|
|
97
|
+
const token = `${process.pid}:${crypto.randomBytes(8).toString('hex')}`;
|
|
80
98
|
for (let attempt = 0; attempt < 200; attempt += 1) {
|
|
99
|
+
let fd;
|
|
81
100
|
try {
|
|
82
|
-
|
|
83
|
-
try { fs.closeSync(fd); } catch {}
|
|
84
|
-
return;
|
|
101
|
+
fd = fs.openSync(METRICS_LOCK, 'wx');
|
|
85
102
|
} catch (error) {
|
|
86
103
|
if (!error || error.code !== 'EEXIST') throw error;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
104
|
+
let stat = null;
|
|
105
|
+
try { stat = fs.statSync(METRICS_LOCK); } catch { /* lock vanished; retry */ }
|
|
106
|
+
const stale = stat !== null && Date.now() - stat.mtimeMs > STALE_LOCK_MS;
|
|
107
|
+
if (stale) {
|
|
108
|
+
const ownerPid = pidFromToken(readMetricsLockToken());
|
|
109
|
+
if (ownerPid === null || !isPidAlive(ownerPid)) {
|
|
110
|
+
try { fs.unlinkSync(METRICS_LOCK); } catch { /* already reclaimed */ }
|
|
91
111
|
continue;
|
|
92
112
|
}
|
|
93
|
-
}
|
|
113
|
+
}
|
|
94
114
|
const until = Date.now() + 10;
|
|
95
115
|
while (Date.now() < until) { /* 10 ms busy-wait */ }
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
try {
|
|
119
|
+
fs.writeSync(fd, token);
|
|
120
|
+
try { fs.fsyncSync(fd); } catch {}
|
|
121
|
+
} finally {
|
|
122
|
+
try { fs.closeSync(fd); } catch {}
|
|
96
123
|
}
|
|
124
|
+
metricsLockToken = token;
|
|
125
|
+
return;
|
|
97
126
|
}
|
|
98
127
|
throw new Error('metrics lock timeout');
|
|
99
128
|
}
|
|
129
|
+
function releaseMetricsLock() {
|
|
130
|
+
if (metricsLockToken != null && readMetricsLockToken() === metricsLockToken) {
|
|
131
|
+
try { fs.unlinkSync(METRICS_LOCK); } catch {}
|
|
132
|
+
}
|
|
133
|
+
metricsLockToken = null;
|
|
134
|
+
}
|
|
100
135
|
let taskLockHeld = false;
|
|
101
136
|
function releaseTaskLock() {
|
|
102
137
|
if (!taskLockHeld) return;
|
|
103
138
|
taskLockHeld = false;
|
|
104
|
-
|
|
139
|
+
releaseMetricsLock();
|
|
105
140
|
}
|
|
106
141
|
waitForMetricsLock();
|
|
107
142
|
taskLockHeld = true;
|
|
@@ -129,7 +164,7 @@ function mutateMetrics(mutator) {
|
|
|
129
164
|
fs.writeFileSync(temporary, JSON.stringify(metrics, null, 2) + '\n');
|
|
130
165
|
fs.renameSync(temporary, METRICS_PATH);
|
|
131
166
|
} finally {
|
|
132
|
-
if (acquiredHere)
|
|
167
|
+
if (acquiredHere) releaseMetricsLock();
|
|
133
168
|
}
|
|
134
169
|
}
|
|
135
170
|
function appendMetric(event) { mutateMetrics((metrics) => metrics.events.push({ eventId: `${metrics.task.runId}:${Date.now()}:${Math.random().toString(16).slice(2)}`, ...event })); }
|
|
@@ -161,15 +196,16 @@ function artifactOutputIdFor(step, agent) {
|
|
|
161
196
|
if (step?.artifactOutputIds && typeof step.artifactOutputIds[agent] === 'string') return step.artifactOutputIds[agent];
|
|
162
197
|
return DEFAULT_ARTIFACT_OUTPUT_IDS[agent] || agent;
|
|
163
198
|
}
|
|
164
|
-
function activateAttempts(step, stepIndex) {
|
|
165
|
-
const active = { ...(status.activeAttempts || {}) };
|
|
166
|
-
const
|
|
199
|
+
function activateAttempts(step, stepIndex, waveId = null, agentsOverride = null) {
|
|
200
|
+
const active = { ...(status.activeAttempts || {}) };
|
|
201
|
+
const agents = Array.isArray(agentsOverride) && agentsOverride.length > 0 ? agentsOverride : getStepAgents(step);
|
|
202
|
+
const parallelGroupId = step.parallel && getStepAgents(step).length > 1 ? `${status.metricsRunId || slug}:step-${stepIndex}` : null;
|
|
167
203
|
for (const agent of agents) {
|
|
168
204
|
const attempt = nextAttemptOrdinal(stepIndex, agent); const runId = status.metricsRunId || `${slug}-${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
169
205
|
status.metricsRunId = runId; const attemptId = `${runId}:step-${stepIndex}:${agent}:attempt-${attempt}`;
|
|
170
206
|
if (active[attemptId]) continue;
|
|
171
|
-
active[attemptId] = { agent, stepIndex, attempt, startedAt: now, parallelGroupId };
|
|
172
|
-
appendMetric({ type: 'attempt_started', at: now, attemptId, stepIndex, stepLabel: step.label || null, agent, role: roleFor(agent), attempt, parallelGroupId, source: 'hook', attributionConfidence: 'high' });
|
|
207
|
+
active[attemptId] = { agent, stepIndex, attempt, startedAt: now, parallelGroupId, waveId: waveId || null };
|
|
208
|
+
appendMetric({ type: 'attempt_started', at: now, attemptId, stepIndex, stepLabel: step.label || null, agent, role: roleFor(agent), attempt, parallelGroupId, waveId: waveId || null, source: 'hook', attributionConfidence: 'high' });
|
|
173
209
|
}
|
|
174
210
|
status.activeAttempts = active;
|
|
175
211
|
}
|
|
@@ -232,8 +268,8 @@ function reconcileStatusFromManifest(agent, step, resolved) {
|
|
|
232
268
|
return status.state;
|
|
233
269
|
}
|
|
234
270
|
|
|
235
|
-
function finishActiveAttempt() {
|
|
236
|
-
const resolved = resolvedAttempt(); if (!resolved) return null;
|
|
271
|
+
function finishActiveAttempt(forced) {
|
|
272
|
+
const resolved = forced || resolvedAttempt(); if (!resolved) return null;
|
|
237
273
|
const durationMs = Date.parse(now) - Date.parse(resolved.entry.startedAt);
|
|
238
274
|
const outcome = ['completed', 'blocked', 'changes_requested', 'validation_failed'].includes(status.state) ? status.state : 'unknown';
|
|
239
275
|
appendMetric({ type: 'attempt_finished', at: now, attemptId: resolved.attemptId, outcome, durationMs: Number.isFinite(durationMs) && durationMs >= 0 ? durationMs : null, retryAfterFix: status.retryAfterFix || null, source: resolved.source || 'hook', attributionConfidence: resolved.confidence });
|
|
@@ -314,6 +350,208 @@ function findNextExecutableStep(steps, startIdx, dir) {
|
|
|
314
350
|
return null;
|
|
315
351
|
}
|
|
316
352
|
|
|
353
|
+
// --- Parallel scheduling & conflict model (mirrors _shared/core/agent-team/plan-graph.md) ---
|
|
354
|
+
function isGraphMode() { return steps.some((step) => step && Array.isArray(step.dependsOn)); }
|
|
355
|
+
function graphSlotKey(stepIndex, agent) { return `${stepIndex}:${agent}`; }
|
|
356
|
+
function readJoinedSlots() { return { ...(status.joinedSlots || {}) }; }
|
|
357
|
+
function isSlotSatisfied(stepIndex, agent) { return Boolean((status.joinedSlots || {})[graphSlotKey(stepIndex, agent)]); }
|
|
358
|
+
function resolveStepIndex(dep) {
|
|
359
|
+
for (let i = 0; i < steps.length; i += 1) if (steps[i] && steps[i].id === dep) return i;
|
|
360
|
+
for (let i = 0; i < steps.length; i += 1) {
|
|
361
|
+
const ids = Array.isArray(steps[i]?.taskIds) ? steps[i].taskIds : [];
|
|
362
|
+
if (ids.includes(dep)) return i;
|
|
363
|
+
}
|
|
364
|
+
return -1;
|
|
365
|
+
}
|
|
366
|
+
function isStepSkipped(stepIndex) {
|
|
367
|
+
if (Array.isArray(status.skippedSteps) && status.skippedSteps.includes(stepIndex)) return true;
|
|
368
|
+
return skipIfMatches(steps[stepIndex]?.skipIf, taskDir);
|
|
369
|
+
}
|
|
370
|
+
function isStepSatisfied(stepIndex) {
|
|
371
|
+
const step = steps[stepIndex];
|
|
372
|
+
if (!step) return false;
|
|
373
|
+
if (isStepSkipped(stepIndex)) return true;
|
|
374
|
+
return getStepAgents(step).every((agent) => isSlotSatisfied(stepIndex, agent));
|
|
375
|
+
}
|
|
376
|
+
function pendingStepIndexes() { return steps.map((_, index) => index).filter((index) => !isStepSatisfied(index)); }
|
|
377
|
+
function unsatisfiedAgents(stepIndex) {
|
|
378
|
+
const step = steps[stepIndex];
|
|
379
|
+
if (!step) return [];
|
|
380
|
+
return getStepAgents(step).filter((agent) => !isSlotSatisfied(stepIndex, agent));
|
|
381
|
+
}
|
|
382
|
+
function declaredScopes(step) {
|
|
383
|
+
return Array.isArray(step?.writeScopes) ? step.writeScopes.filter((scope) => typeof scope === 'string' && scope.length > 0) : [];
|
|
384
|
+
}
|
|
385
|
+
function normalizeScope(scope) { return String(scope).replace(/\/+$/, ''); }
|
|
386
|
+
function scopesOverlap(left, right) {
|
|
387
|
+
const a = normalizeScope(left); const b = normalizeScope(right);
|
|
388
|
+
return a === b || a.startsWith(`${b}/`) || b.startsWith(`${a}/`);
|
|
389
|
+
}
|
|
390
|
+
function stepsConflict(leftIndex, rightIndex) {
|
|
391
|
+
if (leftIndex === rightIndex) return true;
|
|
392
|
+
const leftStep = steps[leftIndex]; const rightStep = steps[rightIndex];
|
|
393
|
+
const leftAgents = getStepAgents(leftStep); const rightAgents = getStepAgents(rightStep);
|
|
394
|
+
if (leftAgents.some((agent) => rightAgents.includes(agent))) return true;
|
|
395
|
+
const leftOutputs = new Set(leftAgents.map((agent) => artifactOutputIdFor(leftStep, agent)));
|
|
396
|
+
if (rightAgents.some((agent) => leftOutputs.has(artifactOutputIdFor(rightStep, agent)))) return true;
|
|
397
|
+
// An undeclared scope is unknown, and an unknown unit conflicts with everything (safe default).
|
|
398
|
+
const leftScopes = declaredScopes(leftStep); const rightScopes = declaredScopes(rightStep);
|
|
399
|
+
if (leftScopes.length === 0 || rightScopes.length === 0) return true;
|
|
400
|
+
for (const a of leftScopes) for (const b of rightScopes) if (scopesOverlap(a, b)) return true;
|
|
401
|
+
return false;
|
|
402
|
+
}
|
|
403
|
+
function selectWave(candidates) {
|
|
404
|
+
const wave = []; const deferred = [];
|
|
405
|
+
for (const index of candidates) {
|
|
406
|
+
if (wave.every((chosen) => !stepsConflict(chosen, index))) wave.push(index);
|
|
407
|
+
else deferred.push(index);
|
|
408
|
+
}
|
|
409
|
+
return { wave, deferred };
|
|
410
|
+
}
|
|
411
|
+
function invalidateFrom(stepIndex, preserveStepIndex) {
|
|
412
|
+
const remove = new Set([stepIndex]);
|
|
413
|
+
let changed = true;
|
|
414
|
+
while (changed) {
|
|
415
|
+
changed = false;
|
|
416
|
+
for (let i = 0; i < steps.length; i += 1) {
|
|
417
|
+
if (remove.has(i)) continue;
|
|
418
|
+
const deps = Array.isArray(steps[i]?.dependsOn) ? steps[i].dependsOn : [];
|
|
419
|
+
if (deps.some((dep) => { const j = resolveStepIndex(dep); return j >= 0 && remove.has(j); })) { remove.add(i); changed = true; }
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
// Preserve the requesting step's satisfied slots so a sibling is never re-invoked.
|
|
423
|
+
if (Number.isInteger(preserveStepIndex)) remove.delete(preserveStepIndex);
|
|
424
|
+
const slots = readJoinedSlots();
|
|
425
|
+
const removedAgents = new Set();
|
|
426
|
+
for (const key of Object.keys(slots)) {
|
|
427
|
+
const index = Number(key.split(':')[0]);
|
|
428
|
+
if (remove.has(index)) { removedAgents.add(slots[key].agent); delete slots[key]; }
|
|
429
|
+
}
|
|
430
|
+
status.joinedSlots = slots;
|
|
431
|
+
status.parallelCompleted = (status.parallelCompleted || []).filter((agent) => !removedAgents.has(agent));
|
|
432
|
+
return remove;
|
|
433
|
+
}
|
|
434
|
+
function computeReadySteps() {
|
|
435
|
+
if (!isGraphMode()) return [];
|
|
436
|
+
const inFlight = new Set(Object.values(status.activeAttempts || {}).map((entry) => entry.stepIndex));
|
|
437
|
+
const blocked = new Set(Array.isArray(status.blockedSteps) ? status.blockedSteps : []);
|
|
438
|
+
const skipped = new Set(Array.isArray(status.skippedSteps) ? status.skippedSteps : []);
|
|
439
|
+
const ready = [];
|
|
440
|
+
for (let i = 0; i < steps.length; i += 1) {
|
|
441
|
+
if (blocked.has(i) || inFlight.has(i)) continue;
|
|
442
|
+
if (skipIfMatches(steps[i].skipIf, taskDir)) {
|
|
443
|
+
if (!skipped.has(i)) { recordSkippedStep(steps[i], i); skipped.add(i); }
|
|
444
|
+
continue;
|
|
445
|
+
}
|
|
446
|
+
if (isStepSatisfied(i)) continue;
|
|
447
|
+
const deps = Array.isArray(steps[i].dependsOn) ? steps[i].dependsOn : [];
|
|
448
|
+
if (deps.every((dep) => { const j = resolveStepIndex(dep); return j >= 0 && isStepSatisfied(j); })) ready.push(i);
|
|
449
|
+
}
|
|
450
|
+
status.skippedSteps = [...skipped];
|
|
451
|
+
return ready;
|
|
452
|
+
}
|
|
453
|
+
function handoffForWave(units, waveId) {
|
|
454
|
+
const labels = units.map((unit) => `${steps[unit.stepIndex].id || `step-${unit.stepIndex}`}=${unit.agent}`);
|
|
455
|
+
const attemptIds = Object.entries(status.activeAttempts || {})
|
|
456
|
+
.filter(([, entry]) => units.some((unit) => unit.stepIndex === entry.stepIndex && unit.agent === entry.agent))
|
|
457
|
+
.map(([attemptId, entry]) => `${entry.agent}=${attemptId}`);
|
|
458
|
+
const outputIds = units.map((unit) => `${unit.agent}=${artifactOutputIdFor(steps[unit.stepIndex], unit.agent)}`);
|
|
459
|
+
const inputIds = [...new Set(units.flatMap((unit) => (Array.isArray(steps[unit.stepIndex].artifactInputIds) ? steps[unit.stepIndex].artifactInputIds : [])))];
|
|
460
|
+
return (
|
|
461
|
+
`Invoke IN PARALLEL (one message, multiple Task calls): ${labels.join(' AND ')} for slug "${slug}"${waveId ? ` (waveId=${waveId})` : ''}. ` +
|
|
462
|
+
`Each agent writes its artifact and owned receipt; the hook records slot joins from stops. Do not mutate status.json lifecycle fields. ` +
|
|
463
|
+
`Artifact inputs: ${inputIds.length > 0 ? inputIds.join(', ') : 'manifest defaults'}; owned output IDs: ${outputIds.join('; ')}. ` +
|
|
464
|
+
`Metrics attemptIds: ${attemptIds.join('; ')}. If the hook cannot identify a parallel stop, append a minimal { attemptId, outcome } receipt to .metrics-receipts.json; do not calculate duration.`
|
|
465
|
+
);
|
|
466
|
+
}
|
|
467
|
+
function blockedNotice(blockedIndex, agent) {
|
|
468
|
+
const gated = [];
|
|
469
|
+
for (let i = 0; i < steps.length; i += 1) {
|
|
470
|
+
if (i === blockedIndex || isStepSatisfied(i)) continue;
|
|
471
|
+
const deps = Array.isArray(steps[i].dependsOn) ? steps[i].dependsOn : [];
|
|
472
|
+
if (deps.some((dep) => resolveStepIndex(dep) === blockedIndex)) gated.push(steps[i].id || `step-${i}`);
|
|
473
|
+
}
|
|
474
|
+
return `Step ${blockedIndex} (${agent}) is blocked for slug "${slug}"${gated.length > 0 ? ` and gates: ${gated.join(', ')}` : ''}. No independent ready step remains. Resume only via /task-continue ${slug}.`;
|
|
475
|
+
}
|
|
476
|
+
function noProgressNotice() {
|
|
477
|
+
const pending = pendingStepIndexes().map((index) => steps[index].id || `step-${index}`);
|
|
478
|
+
return `No schedulable step remains for slug "${slug}" (unsatisfied: ${pending.join(', ')}). Resume only via /task-continue ${slug}.`;
|
|
479
|
+
}
|
|
480
|
+
function dispatchReadyWave(prefixMessage) {
|
|
481
|
+
const ready = computeReadySteps();
|
|
482
|
+
if (ready.length === 0) return false;
|
|
483
|
+
const { wave, deferred } = selectWave(ready);
|
|
484
|
+
if (deferred.length > 0) {
|
|
485
|
+
appendMetric({ type: 'parallel_conflict_deferred', at: now, stepIndex: wave[0], deferredStepIndexes: deferred, reason: 'ready set not conflict-free or writeScopes undeclared', source: 'hook', attributionConfidence: 'fallback' });
|
|
486
|
+
}
|
|
487
|
+
// Slot-filtered dispatch: only unsatisfied (stepIndex, agent) slots are invoked.
|
|
488
|
+
const units = wave.flatMap((stepIndex) => unsatisfiedAgents(stepIndex).map((agent) => ({ stepIndex, agent })));
|
|
489
|
+
if (units.length === 0) return false;
|
|
490
|
+
const first = units[0].stepIndex;
|
|
491
|
+
const waveId = `${status.metricsRunId || slug}:wave-${first}`;
|
|
492
|
+
for (const unit of units) activateAttempts(steps[unit.stepIndex], unit.stepIndex, units.length > 1 ? waveId : null, [unit.agent]);
|
|
493
|
+
writeStatus({
|
|
494
|
+
pipelineIndex: first,
|
|
495
|
+
currentAgent: units[0].agent,
|
|
496
|
+
phase: 'executing',
|
|
497
|
+
state: 'in_progress',
|
|
498
|
+
awaitingHumanGate: false,
|
|
499
|
+
parallelCompleted: [],
|
|
500
|
+
parallelOutcomes: {},
|
|
501
|
+
waveSteps: wave,
|
|
502
|
+
waveId,
|
|
503
|
+
});
|
|
504
|
+
const stepIndexes = [...new Set(units.map((unit) => unit.stepIndex))];
|
|
505
|
+
appendMetric({ type: 'parallel_wave_started', at: now, waveId, stepIndexes, agents: units.map((unit) => unit.agent), source: 'hook', attributionConfidence: 'high' });
|
|
506
|
+
let message;
|
|
507
|
+
if (units.length === 1) message = handoffForAgent(units[0].agent, steps[first]?.scope, steps[first]);
|
|
508
|
+
else if (stepIndexes.length === 1 && steps[first].parallel && units.length === getStepAgents(steps[first]).length) message = handoffForParallelStep(steps[first]);
|
|
509
|
+
else message = handoffForWave(units, waveId);
|
|
510
|
+
out(prefixMessage ? `${prefixMessage} ${message}` : message);
|
|
511
|
+
return true;
|
|
512
|
+
}
|
|
513
|
+
function resolveProducerStepIndex(agent, fromIndex) {
|
|
514
|
+
const seen = new Set([fromIndex]);
|
|
515
|
+
const stack = [fromIndex];
|
|
516
|
+
let best = -1;
|
|
517
|
+
while (stack.length > 0) {
|
|
518
|
+
const node = stack.pop();
|
|
519
|
+
const deps = Array.isArray(steps[node]?.dependsOn) ? steps[node].dependsOn : [];
|
|
520
|
+
for (const dep of deps) {
|
|
521
|
+
const j = resolveStepIndex(dep);
|
|
522
|
+
if (j < 0 || seen.has(j)) continue;
|
|
523
|
+
seen.add(j);
|
|
524
|
+
if (getStepAgents(steps[j]).includes(agent)) best = Math.max(best, j);
|
|
525
|
+
stack.push(j);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
return best >= 0 ? best : -1;
|
|
529
|
+
}
|
|
530
|
+
function repairUnattributableStop() {
|
|
531
|
+
const entries = Object.entries(status.activeAttempts || {});
|
|
532
|
+
if (entries.length === 0) return null;
|
|
533
|
+
const bindByAgent = (agent) => {
|
|
534
|
+
if (!agent) return null;
|
|
535
|
+
const matches = entries.filter(([, entry]) => entry.agent === agent);
|
|
536
|
+
return matches.length === 1 ? { attemptId: matches[0][0], entry: matches[0][1], confidence: 'fallback', repaired: true } : null;
|
|
537
|
+
};
|
|
538
|
+
const payloadAgent = typeof hookInput.agentType === 'string' ? hookInput.agentType : (typeof hookInput.agent_type === 'string' ? hookInput.agent_type : null);
|
|
539
|
+
const byPayload = bindByAgent(payloadAgent);
|
|
540
|
+
if (byPayload) return byPayload;
|
|
541
|
+
if (Array.isArray(status.waveSteps) && status.waveSteps.length > 0) {
|
|
542
|
+
const outcomes = status.parallelOutcomes || {};
|
|
543
|
+
const unrecorded = status.waveSteps.flatMap((index) => getStepAgents(steps[index])).filter((agent) => !outcomes[agent]);
|
|
544
|
+
if (unrecorded.length === 1) { const bySole = bindByAgent(unrecorded[0]); if (bySole) return bySole; }
|
|
545
|
+
}
|
|
546
|
+
const byCurrent = bindByAgent(status.currentAgent);
|
|
547
|
+
if (byCurrent) return byCurrent;
|
|
548
|
+
return null;
|
|
549
|
+
}
|
|
550
|
+
function repairHandoffMessage() {
|
|
551
|
+
const listing = Object.entries(status.activeAttempts || {}).map(([attemptId, entry]) => `${entry.agent}=${attemptId}`).join('; ');
|
|
552
|
+
return `Parallel stop could not be attributed for slug "${slug}": in-flight attempts ${listing}; no payload attemptId and no bound receipt for the finished agent. Resume deterministically: append a minimal { attemptId, outcome } receipt for the agent that just finished to .ai.local/team/tasks/${slug}/.metrics-receipts.json, then re-run the installed hooks/chain-team-phases.sh with that attemptId. Do not edit status.json manually.`;
|
|
553
|
+
}
|
|
554
|
+
|
|
317
555
|
const AGENT_HANDOFF = {
|
|
318
556
|
'task-analyst': (s) =>
|
|
319
557
|
`Invoke task-analyst for slug "${s}". Write brief.md and decomposition.md under .ai.local/team/tasks/${s}/. ` +
|
|
@@ -327,7 +565,7 @@ const AGENT_HANDOFF = {
|
|
|
327
565
|
'build-verifier': (s) =>
|
|
328
566
|
`Invoke build-verifier (readonly) for slug "${s}". Follow mcp-ts-tooling.mdc and post-change-test.mdc. ` +
|
|
329
567
|
`Discover package manager; run typecheck + project tests — never Playwright/XCUITest/Next lint recipes/Go tools as required gates. ` +
|
|
330
|
-
`
|
|
568
|
+
`Write validation-report.md and emit receipt outcome completed or validation_failed. Do not edit production code.`,
|
|
331
569
|
'security-reviewer': (s) =>
|
|
332
570
|
`Invoke security-reviewer (readonly) for slug "${s}". Follow security-mcp.mdc and mcp-auth-secrets.mdc; write security-review.md. Upsert the owned terminal receipt in artifact-manifest.json; do not mutate status.json lifecycle fields.`,
|
|
333
571
|
};
|
|
@@ -483,6 +721,24 @@ if (hookInput.action === 'end_human_gate') {
|
|
|
483
721
|
try { resumePipeline = JSON.parse(fs.readFileSync(pipelinePath, 'utf8')); } catch {}
|
|
484
722
|
if (resumePipeline) {
|
|
485
723
|
const resumeSteps = resumePipeline.steps || [];
|
|
724
|
+
if (resumeSteps.some((step) => step && Array.isArray(step.dependsOn))) {
|
|
725
|
+
steps = resumeSteps;
|
|
726
|
+
status.blockedSteps = [];
|
|
727
|
+
status.parallelCompleted = [];
|
|
728
|
+
status.parallelOutcomes = {};
|
|
729
|
+
status.waveSteps = [];
|
|
730
|
+
status.waveId = null;
|
|
731
|
+
if (dispatchReadyWave()) process.exit(0);
|
|
732
|
+
if (pendingStepIndexes().length === 0) {
|
|
733
|
+
status.state = 'completed';
|
|
734
|
+
completeTaskMetrics();
|
|
735
|
+
writeStatus({ pipelineIndex: resumeSteps.length, phase: 'done', state: 'completed', currentAgent: null, awaitingHumanGate: false });
|
|
736
|
+
out(`Pipeline complete for "${slug}". Run /technical-retro ${slug}.`);
|
|
737
|
+
process.exit(0);
|
|
738
|
+
}
|
|
739
|
+
out(noProgressNotice());
|
|
740
|
+
process.exit(0);
|
|
741
|
+
}
|
|
486
742
|
const resumeStart = (typeof status.pipelineIndex === 'number' ? status.pipelineIndex : 0) + 1;
|
|
487
743
|
const resumeNext = findNextExecutableStep(resumeSteps, resumeStart, taskDir);
|
|
488
744
|
if (resumeNext) {
|
|
@@ -581,7 +837,7 @@ if (pipelineParseError) {
|
|
|
581
837
|
legacyFlow();
|
|
582
838
|
}
|
|
583
839
|
|
|
584
|
-
|
|
840
|
+
steps = pipeline.steps || [];
|
|
585
841
|
const initialIdx = typeof status.pipelineIndex === 'number' ? status.pipelineIndex : 0;
|
|
586
842
|
const initialStep = steps[initialIdx];
|
|
587
843
|
const activeAttemptCountBeforeFinish = Object.keys(status.activeAttempts || {}).length;
|
|
@@ -598,10 +854,23 @@ if (status.state === 'awaiting_artifact_receipt') {
|
|
|
598
854
|
process.stdout.write('{}');
|
|
599
855
|
process.exit(0);
|
|
600
856
|
}
|
|
601
|
-
|
|
602
|
-
if (!finishedAttempt &&
|
|
603
|
-
|
|
604
|
-
|
|
857
|
+
let finishedAttempt = finishActiveAttempt();
|
|
858
|
+
if (!finishedAttempt && activeAttemptCountBeforeFinish > 0) {
|
|
859
|
+
if (!hookInput.attemptId) {
|
|
860
|
+
const repaired = repairUnattributableStop();
|
|
861
|
+
if (repaired) {
|
|
862
|
+
appendMetric({ type: 'parallel_attribution_repair', at: now, attemptIds: [repaired.attemptId], source: 'hook', attributionConfidence: 'fallback' });
|
|
863
|
+
reconcileStatusFromManifest(repaired.entry.agent, steps[repaired.entry.stepIndex], repaired);
|
|
864
|
+
finishedAttempt = finishActiveAttempt(repaired);
|
|
865
|
+
} else {
|
|
866
|
+
writeStatus({});
|
|
867
|
+
out(repairHandoffMessage());
|
|
868
|
+
process.exit(0);
|
|
869
|
+
}
|
|
870
|
+
} else {
|
|
871
|
+
process.stdout.write('{}');
|
|
872
|
+
process.exit(0);
|
|
873
|
+
}
|
|
605
874
|
}
|
|
606
875
|
endHumanGateIfResumed();
|
|
607
876
|
if (steps.length === 0 || pipeline.autoChain === false) {
|
|
@@ -637,9 +906,27 @@ function scheduleRetry(agent, retryAfterFix, predecessor, explicitStepIndex = nu
|
|
|
637
906
|
const idx = typeof status.pipelineIndex === 'number' ? status.pipelineIndex : 0;
|
|
638
907
|
const currentStep = steps[idx];
|
|
639
908
|
const completedAgent = finishedAttempt?.entry?.agent || status.currentAgent || getStepAgents(currentStep)[0];
|
|
909
|
+
const completedStepIndex = Number.isInteger(finishedAttempt?.entry?.stepIndex) ? finishedAttempt.entry.stepIndex : idx;
|
|
640
910
|
const stepAgents = getStepAgents(currentStep);
|
|
641
|
-
|
|
911
|
+
const activeWave = isGraphMode() && Array.isArray(status.waveSteps) && status.waveSteps.filter((i) => Number.isInteger(i) && steps[i]).length > 0
|
|
912
|
+
? status.waveSteps.filter((i) => Number.isInteger(i) && steps[i])
|
|
913
|
+
: null;
|
|
914
|
+
const waveIndexes = activeWave
|
|
915
|
+
? activeWave
|
|
916
|
+
: (currentStep?.parallel && stepAgents.length > 1
|
|
917
|
+
? [idx]
|
|
918
|
+
: (isGraphMode() && finishedAttempt ? [completedStepIndex] : null));
|
|
919
|
+
|
|
920
|
+
if (waveIndexes) {
|
|
921
|
+
const waveAgents = waveIndexes.flatMap((i) => getStepAgents(steps[i]));
|
|
642
922
|
const done = [...(status.parallelCompleted || [])];
|
|
923
|
+
if (isGraphMode()) {
|
|
924
|
+
for (const waveStep of waveIndexes) {
|
|
925
|
+
for (const waveAgent of getStepAgents(steps[waveStep])) {
|
|
926
|
+
if (isSlotSatisfied(waveStep, waveAgent) && !done.includes(waveAgent)) done.push(waveAgent);
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
}
|
|
643
930
|
const outcomes = { ...(status.parallelOutcomes || {}) };
|
|
644
931
|
if (finishedAttempt && completedAgent) {
|
|
645
932
|
if (!done.includes(completedAgent)) done.push(completedAgent);
|
|
@@ -649,22 +936,61 @@ if (currentStep?.parallel && stepAgents.length > 1) {
|
|
|
649
936
|
confidence: finishedAttempt.confidence,
|
|
650
937
|
};
|
|
651
938
|
}
|
|
939
|
+
if (finishedAttempt && completedAgent && isGraphMode() && (finishedAttempt.outcome || status.state) === 'completed') {
|
|
940
|
+
const completedSlots = readJoinedSlots();
|
|
941
|
+
completedSlots[graphSlotKey(completedStepIndex, completedAgent)] = {
|
|
942
|
+
agent: completedAgent,
|
|
943
|
+
stepIndex: completedStepIndex,
|
|
944
|
+
attemptId: finishedAttempt.attemptId,
|
|
945
|
+
outcome: 'completed',
|
|
946
|
+
};
|
|
947
|
+
status.joinedSlots = completedSlots;
|
|
948
|
+
appendMetric({ type: 'step_joined', at: now, stepIndex: completedStepIndex, slotKeys: [graphSlotKey(completedStepIndex, completedAgent)], attemptIds: [finishedAttempt.attemptId], source: 'hook', attributionConfidence: 'high' });
|
|
949
|
+
}
|
|
652
950
|
writeStatus({ parallelCompleted: done, parallelOutcomes: outcomes });
|
|
653
|
-
const remaining =
|
|
951
|
+
const remaining = waveAgents.filter((agent) => !done.includes(agent));
|
|
654
952
|
if (remaining.length > 0) {
|
|
655
953
|
process.stdout.write('{}');
|
|
656
954
|
process.exit(0);
|
|
657
955
|
}
|
|
658
956
|
|
|
659
|
-
const blockedProducer =
|
|
957
|
+
const blockedProducer = waveAgents.find((agent) => outcomes[agent]?.outcome === 'blocked');
|
|
660
958
|
if (blockedProducer) {
|
|
959
|
+
if (isGraphMode()) {
|
|
960
|
+
const blockedStepIndex = waveIndexes.find((i) => getStepAgents(steps[i]).includes(blockedProducer));
|
|
961
|
+
status.blockedSteps = [...new Set([...(status.blockedSteps || []), blockedStepIndex])];
|
|
962
|
+
writeStatus({ state: 'blocked', phase: 'blocked', currentAgent: blockedProducer, parallelCompleted: [], parallelOutcomes: {}, waveSteps: [], waveId: null });
|
|
963
|
+
if (!dispatchReadyWave(`Step ${blockedStepIndex} (${blockedProducer}) is blocked; proceeding with independent ready steps.`)) out(blockedNotice(blockedStepIndex, blockedProducer));
|
|
964
|
+
process.exit(0);
|
|
965
|
+
}
|
|
661
966
|
writeStatus({ parallelCompleted: [], parallelOutcomes: {}, state: 'blocked', phase: 'blocked', currentAgent: blockedProducer });
|
|
662
967
|
process.stdout.write('{}');
|
|
663
968
|
process.exit(0);
|
|
664
969
|
}
|
|
665
970
|
|
|
666
|
-
const retryReviewer =
|
|
971
|
+
const retryReviewer = waveAgents.find((agent) => outcomes[agent]?.outcome === 'changes_requested');
|
|
667
972
|
if (retryReviewer) {
|
|
973
|
+
if (isGraphMode()) {
|
|
974
|
+
const reviewerStepIndex = waveIndexes.find((i) => getStepAgents(steps[i]).includes(retryReviewer));
|
|
975
|
+
const producerIndex = resolveProducerStepIndex('feature-developer', reviewerStepIndex);
|
|
976
|
+
if (producerIndex < 0) {
|
|
977
|
+
beginHumanGate();
|
|
978
|
+
writeStatus({ awaitingHumanGate: true, state: 'awaiting_approval', currentAgent: retryReviewer, parallelCompleted: [], parallelOutcomes: {}, waveSteps: [], waveId: null });
|
|
979
|
+
out(`${retryReviewer} requested changes for slug "${slug}" but no graph ancestor authors fixes. Read the review artifact. Resume only via /task-continue.`);
|
|
980
|
+
process.exit(0);
|
|
981
|
+
}
|
|
982
|
+
const graphPredecessor = outcomes[retryReviewer]
|
|
983
|
+
? { attemptId: outcomes[retryReviewer].attemptId, confidence: outcomes[retryReviewer].confidence }
|
|
984
|
+
: finishedAttempt;
|
|
985
|
+
appendMetric({ type: 'retry_scheduled', at: now, attemptId: graphPredecessor?.attemptId || status.lastCompletedAttempt?.attemptId || null, nextAgent: 'feature-developer', retryAfterFix: retryReviewer, source: 'hook', attributionConfidence: graphPredecessor ? graphPredecessor.confidence : 'unknown' });
|
|
986
|
+
invalidateFrom(producerIndex, reviewerStepIndex);
|
|
987
|
+
const siblingOutcomes = { ...(status.parallelOutcomes || {}) };
|
|
988
|
+
delete siblingOutcomes[retryReviewer];
|
|
989
|
+
status.parallelOutcomes = siblingOutcomes;
|
|
990
|
+
writeStatus({ state: 'in_progress', phase: 'executing', waveSteps: [], waveId: null, retryAfterFix: null, retryAfterFixStepIndex: null });
|
|
991
|
+
if (!dispatchReadyWave(`Step ${reviewerStepIndex} (${retryReviewer}) requested changes; re-dispatching unsatisfied steps.`)) out(noProgressNotice());
|
|
992
|
+
process.exit(0);
|
|
993
|
+
}
|
|
668
994
|
const retryAfterFixStepIndex = idx;
|
|
669
995
|
const predecessor = outcomes[retryReviewer]
|
|
670
996
|
? {
|
|
@@ -699,10 +1025,51 @@ if (currentStep?.parallel && stepAgents.length > 1) {
|
|
|
699
1025
|
process.exit(0);
|
|
700
1026
|
}
|
|
701
1027
|
|
|
1028
|
+
if (isGraphMode()) {
|
|
1029
|
+
const validationProducer = waveAgents.find((agent) => outcomes[agent]?.outcome === 'validation_failed');
|
|
1030
|
+
if (validationProducer) {
|
|
1031
|
+
const verifierStepIndex = waveIndexes.find((i) => getStepAgents(steps[i]).includes(validationProducer));
|
|
1032
|
+
const producerIndex = resolveProducerStepIndex('feature-developer', verifierStepIndex);
|
|
1033
|
+
if (producerIndex >= 0) {
|
|
1034
|
+
appendMetric({ type: 'retry_scheduled', at: now, attemptId: outcomes[validationProducer]?.attemptId || null, nextAgent: 'feature-developer', retryAfterFix: validationProducer, source: 'hook', attributionConfidence: 'fallback' });
|
|
1035
|
+
invalidateFrom(producerIndex, verifierStepIndex);
|
|
1036
|
+
writeStatus({ state: 'in_progress', phase: 'executing', parallelCompleted: [], parallelOutcomes: {}, waveSteps: [], waveId: null });
|
|
1037
|
+
if (dispatchReadyWave(`Step ${verifierStepIndex} (${validationProducer}) failed validation; re-dispatching unsatisfied steps.`)) process.exit(0);
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
const gatedStep = waveIndexes.find((i) => hasGateAfterStep(steps[i], pipeline.humanGates));
|
|
1041
|
+
if (gatedStep !== undefined) {
|
|
1042
|
+
beginHumanGate();
|
|
1043
|
+
writeStatus({ awaitingHumanGate: true, state: 'awaiting_approval', currentAgent: completedAgent, pipelineIndex: gatedStep, parallelCompleted: [], parallelOutcomes: {}, waveSteps: [], waveId: null });
|
|
1044
|
+
process.stdout.write('{}');
|
|
1045
|
+
process.exit(0);
|
|
1046
|
+
}
|
|
1047
|
+
writeStatus({ parallelCompleted: [], parallelOutcomes: {}, waveSteps: [], waveId: null, state: 'completed' });
|
|
1048
|
+
if (dispatchReadyWave()) process.exit(0);
|
|
1049
|
+
if (Object.keys(status.activeAttempts || {}).length > 0) {
|
|
1050
|
+
process.stdout.write('{}');
|
|
1051
|
+
process.exit(0);
|
|
1052
|
+
}
|
|
1053
|
+
if (pendingStepIndexes().length === 0) {
|
|
1054
|
+
completeTaskMetrics();
|
|
1055
|
+
writeStatus({ pipelineIndex: steps.length, phase: 'done', state: 'completed', currentAgent: null, awaitingHumanGate: false });
|
|
1056
|
+
out(`Pipeline complete for "${slug}". Run /technical-retro ${slug}.`);
|
|
1057
|
+
process.exit(0);
|
|
1058
|
+
}
|
|
1059
|
+
out(noProgressNotice());
|
|
1060
|
+
process.exit(0);
|
|
1061
|
+
}
|
|
1062
|
+
|
|
702
1063
|
writeStatus({ parallelCompleted: [], parallelOutcomes: {}, state: 'completed' });
|
|
703
1064
|
}
|
|
704
1065
|
|
|
705
1066
|
if (status.state === 'blocked') {
|
|
1067
|
+
if (isGraphMode()) {
|
|
1068
|
+
status.blockedSteps = [...new Set([...(status.blockedSteps || []), idx])];
|
|
1069
|
+
writeStatus({ state: 'blocked', phase: 'blocked', currentAgent: completedAgent, waveSteps: [], waveId: null, parallelCompleted: [], parallelOutcomes: {} });
|
|
1070
|
+
if (!dispatchReadyWave(`Step ${idx} (${completedAgent}) is blocked; proceeding with independent ready steps.`)) out(blockedNotice(idx, completedAgent));
|
|
1071
|
+
process.exit(0);
|
|
1072
|
+
}
|
|
706
1073
|
writeStatus({ state: 'blocked', phase: 'blocked', currentAgent: completedAgent });
|
|
707
1074
|
process.stdout.write('{}');
|
|
708
1075
|
process.exit(0);
|
|
@@ -784,6 +1151,22 @@ if (hasGateAfterStep(currentStep, pipeline.humanGates)) {
|
|
|
784
1151
|
process.exit(0);
|
|
785
1152
|
}
|
|
786
1153
|
|
|
1154
|
+
if (isGraphMode()) {
|
|
1155
|
+
if (Object.keys(status.activeAttempts || {}).length > 0) {
|
|
1156
|
+
process.stdout.write('{}');
|
|
1157
|
+
process.exit(0);
|
|
1158
|
+
}
|
|
1159
|
+
if (dispatchReadyWave()) process.exit(0);
|
|
1160
|
+
if (pendingStepIndexes().length === 0) {
|
|
1161
|
+
completeTaskMetrics();
|
|
1162
|
+
writeStatus({ pipelineIndex: steps.length, phase: 'done', state: 'completed', currentAgent: null, awaitingHumanGate: false });
|
|
1163
|
+
out(`Pipeline complete for "${slug}". Run /technical-retro ${slug}.`);
|
|
1164
|
+
process.exit(0);
|
|
1165
|
+
}
|
|
1166
|
+
out(noProgressNotice());
|
|
1167
|
+
process.exit(0);
|
|
1168
|
+
}
|
|
1169
|
+
|
|
787
1170
|
const next = findNextExecutableStep(steps, idx + 1, taskDir);
|
|
788
1171
|
if (!next) {
|
|
789
1172
|
completeTaskMetrics();
|
|
@@ -13,7 +13,7 @@ When the user message looks like a **work request** (implement, add, fix, refact
|
|
|
13
13
|
2. Do not jump straight to coding without router + pipeline when scope is non-trivial.
|
|
14
14
|
3. Pure questions (“how does X work”, “explain”) — prefer agent **`codebase-analyzer`** (explain-as-is); trivial one-liners may be answered inline. Do not open `/task`.
|
|
15
15
|
4. A work request now runs the planning workflow — **goal frame → requirements → information-sufficiency → decompose** (dependency graph / epics); see **task-framing** and **plan-graph**.
|
|
16
|
-
5. Every **work request** — with or without `/task`, and even when the user says “no pipeline” / “just do it” — persists the **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md`. Prefer `/task` (its **Slug** step writes it). If handling inline without `/task`, first create the slug dir and write `prompt.md` (write-if-absent), then proceed. Pure questions and trivial one-liners are not work requests → no file.
|
|
16
|
+
5. Every **work request** — with or without `/task`, and even when the user says “no pipeline” / “just do it” — persists the **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md`. Prefer `/task` (its **Slug** step writes it). If handling inline without `/task`, first create the slug dir and write `prompt.md` (write-if-absent), then proceed. Pure questions and trivial one-liners are not work requests → no file. On an inline follow-up for an existing slug (no `/task`) where the user authors new text, append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; create on first append; exclude machine-generated and empty/argument-less invocations).
|
|
17
17
|
6. **Resolve the dialogue language before you speak to the user.** Read the `## Language` section of `.ai.local/conventions.md` (nearest `.ai.local` first); else infer from the prompt language; else English (mixed → dominant). Persist it once in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line, and reuse it for the whole task. Development, reasoning, and artifacts stay English. The setting wins over a mid-task prompt switch (surface it once, never ask). See **language-policy**.
|
|
18
18
|
|
|
19
19
|
Exceptions: user explicitly says “no pipeline”, “just do it”, or continues an active slug.
|
|
@@ -88,7 +88,7 @@ Each producing agent runs a **pre-receipt self-review** of its own output — go
|
|
|
88
88
|
|
|
89
89
|
- **Context loss vs excess/noise.** *Loss* = a dropped/misattributed AC or constraint, a stale plan vs the current request, a forgotten prior decision. *Excess/noise* = irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk.
|
|
90
90
|
- **Re-anchor.** On detected drift, return the run to the framed task: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Re-anchor is a **trigger source of the existing `plan-graph` `replan`** — no second orchestrator, no `status.json`/`metrics.json` field.
|
|
91
|
-
- **Recording & ratchet.** The producer writes a `## Self-review` block in the artifact it owns; the correction lives only in `.memlog.md` (hook-only lifecycle preserved). No self-review, context-health pass, or re-anchor for `bounded`/`spike` tasks (or the `light` profile) — ratchet up for `standard`/`architectural`, never down past a required verification gate. See the requestable `quality/self-review-and-context-hygiene` contract.
|
|
91
|
+
- **Recording & ratchet.** The producer writes a `## Self-review` block in the artifact it owns; the correction lives only in `.memlog.md` (hook-only lifecycle preserved). No self-review, context-health pass, or re-anchor for `bounded`/`spike` tasks (or the `light` profile) — ratchet up for `standard`/`architectural`, never down past a required verification gate. See the requestable `quality/self-review-and-context-hygiene` contract — including the optional rule-improvement loop (append wrong-turn signals to `.ai.local/signals.jsonl` and run `.ai.local/scripts/rule-improver.mjs`) when that script exists.
|
|
92
92
|
|
|
93
93
|
## Context budget & checkpoint/resume
|
|
94
94
|
|
|
@@ -140,6 +140,16 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
140
140
|
| `scope` | e.g. `unit-in-dev`, `e2e-only`, `preset-artifacts-only` — passed to developer/qa |
|
|
141
141
|
| `model` | `cheap` \| `standard` \| `strong` — optional tier override |
|
|
142
142
|
|
|
143
|
+
## Parallel scheduling (graph mode)
|
|
144
|
+
|
|
145
|
+
`pipeline.json` may carry an optional step graph: `steps[].id`, `steps[].taskIds[]`, `steps[].dependsOn[]`, `steps[].writeScopes[]`. While no step declares `dependsOn`, the hook keeps the legacy linear advance; any occurrence switches it to graph mode.
|
|
146
|
+
|
|
147
|
+
- The hook recomputes the **ready queue** on every stop: steps whose `dependsOn` are satisfied, not yet satisfied, not in flight, not skipped, not blocked.
|
|
148
|
+
- The **wave** is the join unit; a single `parallel: true` step is a one-step wave. `status.joinedSlots` is the persistent satisfaction ledger; `status.waveSteps`/`waveId` name the in-flight wave; `status.blockedSteps` excludes a blocked step.
|
|
149
|
+
- Set `parallel: true` only for a set proven conflict-free (disjoint `writeScopes`, distinct agents and `artifactOutputIds`); never place `mockup-reviewer` in a parallel group.
|
|
150
|
+
- **No advance before reconciliation.** Invoke exactly the handoff's agent list (a wave in one turn, multiple Task calls) and do not start a next step from your own reasoning until the hook records the join.
|
|
151
|
+
- A retry re-dispatches only unsatisfied slots: a satisfied sibling keeps its entry and terminal metric and is never re-invoked.
|
|
152
|
+
|
|
143
153
|
## Rules (strict)
|
|
144
154
|
|
|
145
155
|
1. **`/task` always starts with task-router** (except user says "skip router" with documented pipeline).
|
|
@@ -151,7 +161,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
151
161
|
7. On `validation_failed` from `build-verifier`: hook sets `retryAfterFix: build-verifier` → developer → build-verifier.
|
|
152
162
|
8. When all steps complete, suggest `/technical-retro <slug>`.
|
|
153
163
|
9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
|
|
154
|
-
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.
|
|
164
|
+
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.
|
|
155
165
|
11. **Answer the user in the resolved dialogue language for the whole task.** Resolve once at task start
|
|
156
166
|
(`.ai.local` `## Language` → prompt language → English) and pass it to every step; `/task-continue` keeps
|
|
157
167
|
it. Never ask the user to pick a language. Development, reasoning, and artifacts stay English. See
|
|
@@ -160,6 +170,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
160
170
|
## Team artifact I/O (Cursor Shell sandbox)
|
|
161
171
|
|
|
162
172
|
- **Persist the original prompt.** For **every** task — `/task` or a routed work request — write the user's **verbatim** prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). The header is additive provenance only; the fenced text block holds the user's words unchanged. Not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact.
|
|
173
|
+
- **Append follow-up prompts.** When a user-authored prompt arrives for an active slug (new message, `/task-continue` args, gate feedback, clarification), append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` — `seq` = current max + 1, create on first append, never rewrite or duplicate an entry, never touch `prompt.md`. Exclude hook `followup_message` and empty/argument-less invocations. Not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt log.
|
|
163
174
|
- **Answer in the resolved dialogue language.** Resolve once at task start (`.ai.local` `## Language` →
|
|
164
175
|
prompt language → English; mixed → dominant; nearest `.ai.local` wins) and reuse it for every user-facing
|
|
165
176
|
message and `/task-continue`. Record the tag in the `prompt.md` header (`language: <BCP-47>`) + a
|