takt 0.46.0 → 0.47.0
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/README.md +55 -2
- package/builtins/en/config.yaml +28 -12
- package/builtins/en/facets/instructions/findings-manager.md +13 -0
- package/builtins/en/facets/instructions/fix.md +9 -4
- package/builtins/en/facets/instructions/implement-maintenance.md +3 -32
- package/builtins/en/facets/instructions/loop-monitor-reviewers-fix.md +5 -1
- package/builtins/en/facets/instructions/plan-test.md +4 -3
- package/builtins/en/facets/instructions/review-coding.md +11 -6
- package/builtins/en/facets/instructions/review-pure.md +8 -0
- package/builtins/en/facets/instructions/review-qa.md +2 -1
- package/builtins/en/facets/instructions/review-test.md +2 -1
- package/builtins/en/facets/instructions/supervise-maintenance.md +3 -75
- package/builtins/en/facets/instructions/supervise.md +8 -68
- package/builtins/en/facets/instructions/write-tests-first.md +1 -0
- package/builtins/en/facets/knowledge/architecture.md +31 -0
- package/builtins/en/facets/knowledge/backend.md +25 -1
- package/builtins/en/facets/knowledge/cqrs-es.md +57 -0
- package/builtins/en/facets/output-contracts/ai-antipattern-review-finding-contract.md +31 -0
- package/builtins/en/facets/output-contracts/architecture-review-finding-contract.md +35 -0
- package/builtins/en/facets/output-contracts/coding-review-finding-contract.md +25 -0
- package/builtins/en/facets/output-contracts/coding-review.md +11 -4
- package/builtins/en/facets/output-contracts/cqrs-es-review-finding-contract.md +31 -0
- package/builtins/en/facets/output-contracts/findings-manager.md +45 -0
- package/builtins/en/facets/output-contracts/frontend-review-finding-contract.md +30 -0
- package/builtins/en/facets/output-contracts/pure-review-finding-contract.md +45 -0
- package/builtins/en/facets/output-contracts/pure-review.md +6 -6
- package/builtins/en/facets/output-contracts/qa-review-finding-contract.md +35 -0
- package/builtins/en/facets/output-contracts/qa-review.md +10 -3
- package/builtins/en/facets/output-contracts/security-review-finding-contract.md +36 -0
- package/builtins/en/facets/output-contracts/supervisor-validation.md +34 -10
- package/builtins/en/facets/output-contracts/terraform-review-finding-contract.md +31 -0
- package/builtins/en/facets/output-contracts/testing-review-finding-contract.md +41 -0
- package/builtins/en/facets/personas/findings-manager.md +18 -0
- package/builtins/en/facets/policies/ai-antipattern.md +31 -0
- package/builtins/en/facets/policies/review.md +64 -16
- package/builtins/en/facets/policies/testing.md +24 -0
- package/builtins/en/workflow-categories.yaml +1 -0
- package/builtins/en/workflows/audit-architecture-backend.yaml +8 -0
- package/builtins/en/workflows/audit-architecture-dual.yaml +8 -0
- package/builtins/en/workflows/audit-architecture-frontend.yaml +8 -0
- package/builtins/en/workflows/audit-architecture.yaml +8 -0
- package/builtins/en/workflows/audit-e2e.yaml +8 -0
- package/builtins/en/workflows/audit-security.yaml +8 -0
- package/builtins/en/workflows/audit-unit.yaml +8 -0
- package/builtins/en/workflows/auto-improvement-loop.yaml +6 -0
- package/builtins/en/workflows/backend-cqrs-mini.yaml +20 -0
- package/builtins/en/workflows/backend-cqrs.yaml +39 -1
- package/builtins/en/workflows/backend-mini.yaml +20 -0
- package/builtins/en/workflows/backend.yaml +39 -1
- package/builtins/en/workflows/compound-eye.yaml +8 -0
- package/builtins/en/workflows/deep-research.yaml +8 -0
- package/builtins/en/workflows/default-draft.yaml +6 -0
- package/builtins/en/workflows/default-high.yaml +6 -0
- package/builtins/en/workflows/default-mini.yaml +2 -0
- package/builtins/en/workflows/default-peer-review.yaml +17 -1
- package/builtins/en/workflows/default.yaml +4 -0
- package/builtins/en/workflows/draft.yaml +12 -4
- package/builtins/en/workflows/dual-cqrs-mini.yaml +20 -0
- package/builtins/en/workflows/dual-cqrs.yaml +35 -1
- package/builtins/en/workflows/dual-mini.yaml +20 -0
- package/builtins/en/workflows/dual.yaml +39 -1
- package/builtins/en/workflows/frontend-maintenance.yaml +41 -1
- package/builtins/en/workflows/frontend-mini.yaml +20 -0
- package/builtins/en/workflows/frontend.yaml +41 -1
- package/builtins/en/workflows/magi.yaml +6 -0
- package/builtins/en/workflows/peer-review-with-fc.yaml +206 -0
- package/builtins/en/workflows/peer-review.yaml +30 -10
- package/builtins/en/workflows/research.yaml +6 -0
- package/builtins/en/workflows/review-backend-cqrs.yaml +21 -1
- package/builtins/en/workflows/review-backend.yaml +19 -1
- package/builtins/en/workflows/review-default.yaml +21 -1
- package/builtins/en/workflows/review-dual-cqrs.yaml +23 -1
- package/builtins/en/workflows/review-dual.yaml +21 -1
- package/builtins/en/workflows/review-fix-backend-cqrs.yaml +25 -1
- package/builtins/en/workflows/review-fix-backend.yaml +23 -1
- package/builtins/en/workflows/review-fix-default.yaml +25 -1
- package/builtins/en/workflows/review-fix-dual-cqrs.yaml +27 -1
- package/builtins/en/workflows/review-fix-dual.yaml +25 -1
- package/builtins/en/workflows/review-fix-frontend.yaml +25 -1
- package/builtins/en/workflows/review-fix-takt-default.yaml +33 -1
- package/builtins/en/workflows/review-frontend.yaml +21 -1
- package/builtins/en/workflows/review-takt-default.yaml +23 -1
- package/builtins/en/workflows/takt-default-refresh-all.yaml +30 -0
- package/builtins/en/workflows/takt-default-refresh-fast.yaml +30 -0
- package/builtins/en/workflows/takt-default-with-fc.yaml +110 -0
- package/builtins/en/workflows/takt-default.yaml +9 -3
- package/builtins/en/workflows/terraform.yaml +29 -1
- package/builtins/ja/config.yaml +28 -12
- package/builtins/ja/facets/instructions/findings-manager.md +13 -0
- package/builtins/ja/facets/instructions/fix.md +9 -4
- package/builtins/ja/facets/instructions/implement-maintenance.md +3 -32
- package/builtins/ja/facets/instructions/loop-monitor-reviewers-fix.md +5 -1
- package/builtins/ja/facets/instructions/plan-test.md +4 -3
- package/builtins/ja/facets/instructions/review-coding.md +11 -6
- package/builtins/ja/facets/instructions/review-pure.md +8 -0
- package/builtins/ja/facets/instructions/review-qa.md +2 -1
- package/builtins/ja/facets/instructions/review-test.md +2 -1
- package/builtins/ja/facets/instructions/supervise-maintenance.md +3 -75
- package/builtins/ja/facets/instructions/supervise.md +8 -69
- package/builtins/ja/facets/instructions/write-tests-first.md +1 -0
- package/builtins/ja/facets/knowledge/architecture.md +31 -0
- package/builtins/ja/facets/knowledge/backend.md +25 -1
- package/builtins/ja/facets/knowledge/cqrs-es.md +31 -0
- package/builtins/ja/facets/output-contracts/ai-antipattern-review-finding-contract.md +31 -0
- package/builtins/ja/facets/output-contracts/architecture-review-finding-contract.md +35 -0
- package/builtins/ja/facets/output-contracts/coding-review-finding-contract.md +25 -0
- package/builtins/ja/facets/output-contracts/coding-review.md +11 -4
- package/builtins/ja/facets/output-contracts/cqrs-es-review-finding-contract.md +31 -0
- package/builtins/ja/facets/output-contracts/findings-manager.md +45 -0
- package/builtins/ja/facets/output-contracts/frontend-review-finding-contract.md +30 -0
- package/builtins/ja/facets/output-contracts/pure-review-finding-contract.md +45 -0
- package/builtins/ja/facets/output-contracts/pure-review.md +6 -6
- package/builtins/ja/facets/output-contracts/qa-review-finding-contract.md +35 -0
- package/builtins/ja/facets/output-contracts/qa-review.md +10 -3
- package/builtins/ja/facets/output-contracts/security-review-finding-contract.md +36 -0
- package/builtins/ja/facets/output-contracts/supervisor-validation.md +34 -10
- package/builtins/ja/facets/output-contracts/terraform-review-finding-contract.md +31 -0
- package/builtins/ja/facets/output-contracts/testing-review-finding-contract.md +41 -0
- package/builtins/ja/facets/personas/findings-manager.md +18 -0
- package/builtins/ja/facets/policies/ai-antipattern.md +15 -0
- package/builtins/ja/facets/policies/review.md +62 -16
- package/builtins/ja/facets/policies/testing.md +24 -0
- package/builtins/ja/workflow-categories.yaml +1 -0
- package/builtins/ja/workflows/audit-architecture-backend.yaml +8 -0
- package/builtins/ja/workflows/audit-architecture-dual.yaml +8 -0
- package/builtins/ja/workflows/audit-architecture-frontend.yaml +8 -0
- package/builtins/ja/workflows/audit-architecture.yaml +8 -0
- package/builtins/ja/workflows/audit-e2e.yaml +8 -0
- package/builtins/ja/workflows/audit-security.yaml +8 -0
- package/builtins/ja/workflows/audit-unit.yaml +8 -0
- package/builtins/ja/workflows/auto-improvement-loop.yaml +6 -0
- package/builtins/ja/workflows/backend-cqrs-mini.yaml +20 -0
- package/builtins/ja/workflows/backend-cqrs.yaml +39 -1
- package/builtins/ja/workflows/backend-mini.yaml +20 -0
- package/builtins/ja/workflows/backend.yaml +39 -1
- package/builtins/ja/workflows/compound-eye.yaml +8 -0
- package/builtins/ja/workflows/deep-research.yaml +8 -0
- package/builtins/ja/workflows/default-draft.yaml +6 -0
- package/builtins/ja/workflows/default-high.yaml +6 -0
- package/builtins/ja/workflows/default-mini.yaml +2 -0
- package/builtins/ja/workflows/default-peer-review.yaml +17 -1
- package/builtins/ja/workflows/default.yaml +4 -0
- package/builtins/ja/workflows/draft.yaml +12 -4
- package/builtins/ja/workflows/dual-cqrs-mini.yaml +20 -0
- package/builtins/ja/workflows/dual-cqrs.yaml +35 -1
- package/builtins/ja/workflows/dual-mini.yaml +20 -0
- package/builtins/ja/workflows/dual.yaml +39 -1
- package/builtins/ja/workflows/frontend-maintenance.yaml +41 -1
- package/builtins/ja/workflows/frontend-mini.yaml +20 -0
- package/builtins/ja/workflows/frontend.yaml +41 -1
- package/builtins/ja/workflows/magi.yaml +6 -0
- package/builtins/ja/workflows/peer-review-with-fc.yaml +206 -0
- package/builtins/ja/workflows/peer-review.yaml +30 -10
- package/builtins/ja/workflows/research.yaml +6 -0
- package/builtins/ja/workflows/review-backend-cqrs.yaml +21 -1
- package/builtins/ja/workflows/review-backend.yaml +19 -1
- package/builtins/ja/workflows/review-default.yaml +21 -1
- package/builtins/ja/workflows/review-dual-cqrs.yaml +23 -1
- package/builtins/ja/workflows/review-dual.yaml +21 -1
- package/builtins/ja/workflows/review-fix-backend-cqrs.yaml +25 -1
- package/builtins/ja/workflows/review-fix-backend.yaml +23 -1
- package/builtins/ja/workflows/review-fix-default.yaml +25 -1
- package/builtins/ja/workflows/review-fix-dual-cqrs.yaml +27 -1
- package/builtins/ja/workflows/review-fix-dual.yaml +25 -1
- package/builtins/ja/workflows/review-fix-frontend.yaml +25 -1
- package/builtins/ja/workflows/review-fix-takt-default.yaml +33 -1
- package/builtins/ja/workflows/review-frontend.yaml +21 -1
- package/builtins/ja/workflows/review-takt-default.yaml +23 -1
- package/builtins/ja/workflows/takt-default-refresh-all.yaml +30 -0
- package/builtins/ja/workflows/takt-default-refresh-fast.yaml +30 -0
- package/builtins/ja/workflows/takt-default-with-fc.yaml +110 -0
- package/builtins/ja/workflows/takt-default.yaml +9 -3
- package/builtins/ja/workflows/terraform.yaml +29 -1
- package/builtins/skill/references/yaml-schema.md +4 -0
- package/builtins/skill-codex/references/yaml-schema.md +4 -0
- package/dist/app/cli/routing-inputs.d.ts +1 -0
- package/dist/app/cli/routing-inputs.d.ts.map +1 -1
- package/dist/app/cli/routing-inputs.js +5 -2
- package/dist/app/cli/routing-inputs.js.map +1 -1
- package/dist/app/cli/routing.d.ts.map +1 -1
- package/dist/app/cli/routing.js +14 -0
- package/dist/app/cli/routing.js.map +1 -1
- package/dist/commands/repertoire/add.d.ts.map +1 -1
- package/dist/commands/repertoire/add.js +45 -4
- package/dist/commands/repertoire/add.js.map +1 -1
- package/dist/commands/repertoire/remove.d.ts.map +1 -1
- package/dist/commands/repertoire/remove.js +19 -3
- package/dist/commands/repertoire/remove.js.map +1 -1
- package/dist/core/models/config-schemas.d.ts +771 -0
- package/dist/core/models/config-schemas.d.ts.map +1 -1
- package/dist/core/models/config-schemas.js +6 -0
- package/dist/core/models/config-schemas.js.map +1 -1
- package/dist/core/models/config-types.d.ts +8 -0
- package/dist/core/models/config-types.d.ts.map +1 -1
- package/dist/core/models/finding-schemas.d.ts +447 -0
- package/dist/core/models/finding-schemas.d.ts.map +1 -0
- package/dist/core/models/finding-schemas.js +234 -0
- package/dist/core/models/finding-schemas.js.map +1 -0
- package/dist/core/models/finding-types.d.ts +146 -0
- package/dist/core/models/finding-types.d.ts.map +1 -0
- package/dist/core/models/finding-types.js +5 -0
- package/dist/core/models/finding-types.js.map +1 -0
- package/dist/core/models/index.d.ts +1 -1
- package/dist/core/models/index.d.ts.map +1 -1
- package/dist/core/models/index.js.map +1 -1
- package/dist/core/models/types.d.ts +2 -2
- package/dist/core/models/types.d.ts.map +1 -1
- package/dist/core/models/workflow-condition-expression.d.ts +3 -0
- package/dist/core/models/workflow-condition-expression.d.ts.map +1 -1
- package/dist/core/models/workflow-condition-expression.js +223 -4
- package/dist/core/models/workflow-condition-expression.js.map +1 -1
- package/dist/core/models/workflow-schemas.d.ts +58 -36
- package/dist/core/models/workflow-schemas.d.ts.map +1 -1
- package/dist/core/models/workflow-schemas.js +11 -6
- package/dist/core/models/workflow-schemas.js.map +1 -1
- package/dist/core/models/workflow-system-schemas.d.ts.map +1 -1
- package/dist/core/models/workflow-system-schemas.js +1 -0
- package/dist/core/models/workflow-system-schemas.js.map +1 -1
- package/dist/core/models/workflow-types.d.ts +13 -0
- package/dist/core/models/workflow-types.d.ts.map +1 -1
- package/dist/core/models/workflow-types.js.map +1 -1
- package/dist/core/workflow/engine/OptionsBuilder.d.ts +4 -1
- package/dist/core/workflow/engine/OptionsBuilder.d.ts.map +1 -1
- package/dist/core/workflow/engine/OptionsBuilder.js +21 -8
- package/dist/core/workflow/engine/OptionsBuilder.js.map +1 -1
- package/dist/core/workflow/engine/ParallelRunner.d.ts +14 -0
- package/dist/core/workflow/engine/ParallelRunner.d.ts.map +1 -1
- package/dist/core/workflow/engine/ParallelRunner.js +152 -18
- package/dist/core/workflow/engine/ParallelRunner.js.map +1 -1
- package/dist/core/workflow/engine/StepExecutor.d.ts +4 -2
- package/dist/core/workflow/engine/StepExecutor.d.ts.map +1 -1
- package/dist/core/workflow/engine/StepExecutor.js +10 -3
- package/dist/core/workflow/engine/StepExecutor.js.map +1 -1
- package/dist/core/workflow/engine/WorkflowCallExecutor.d.ts +3 -1
- package/dist/core/workflow/engine/WorkflowCallExecutor.d.ts.map +1 -1
- package/dist/core/workflow/engine/WorkflowCallExecutor.js +23 -5
- package/dist/core/workflow/engine/WorkflowCallExecutor.js.map +1 -1
- package/dist/core/workflow/engine/WorkflowCallRunner.d.ts +1 -0
- package/dist/core/workflow/engine/WorkflowCallRunner.d.ts.map +1 -1
- package/dist/core/workflow/engine/WorkflowCallRunner.js +5 -1
- package/dist/core/workflow/engine/WorkflowCallRunner.js.map +1 -1
- package/dist/core/workflow/engine/WorkflowEngine.d.ts +7 -1
- package/dist/core/workflow/engine/WorkflowEngine.d.ts.map +1 -1
- package/dist/core/workflow/engine/WorkflowEngine.js +63 -9
- package/dist/core/workflow/engine/WorkflowEngine.js.map +1 -1
- package/dist/core/workflow/engine/WorkflowEngineSetup.d.ts +3 -0
- package/dist/core/workflow/engine/WorkflowEngineSetup.d.ts.map +1 -1
- package/dist/core/workflow/engine/WorkflowEngineSetup.js +27 -1
- package/dist/core/workflow/engine/WorkflowEngineSetup.js.map +1 -1
- package/dist/core/workflow/engine/WorkflowRunLoop.d.ts +10 -7
- package/dist/core/workflow/engine/WorkflowRunLoop.d.ts.map +1 -1
- package/dist/core/workflow/engine/WorkflowRunLoop.js +63 -33
- package/dist/core/workflow/engine/WorkflowRunLoop.js.map +1 -1
- package/dist/core/workflow/engine/WorkflowValidator.d.ts.map +1 -1
- package/dist/core/workflow/engine/WorkflowValidator.js +78 -1
- package/dist/core/workflow/engine/WorkflowValidator.js.map +1 -1
- package/dist/core/workflow/engine/team-leader-common.d.ts.map +1 -1
- package/dist/core/workflow/engine/team-leader-common.js +11 -0
- package/dist/core/workflow/engine/team-leader-common.js.map +1 -1
- package/dist/core/workflow/engine/team-leader-part-runner.d.ts.map +1 -1
- package/dist/core/workflow/engine/team-leader-part-runner.js +22 -1
- package/dist/core/workflow/engine/team-leader-part-runner.js.map +1 -1
- package/dist/core/workflow/evaluation/AggregateEvaluator.d.ts.map +1 -1
- package/dist/core/workflow/evaluation/AggregateEvaluator.js +7 -4
- package/dist/core/workflow/evaluation/AggregateEvaluator.js.map +1 -1
- package/dist/core/workflow/evaluation/RuleEvaluator.d.ts +1 -0
- package/dist/core/workflow/evaluation/RuleEvaluator.d.ts.map +1 -1
- package/dist/core/workflow/evaluation/RuleEvaluator.js +15 -1
- package/dist/core/workflow/evaluation/RuleEvaluator.js.map +1 -1
- package/dist/core/workflow/evaluation/rule-utils.d.ts +5 -1
- package/dist/core/workflow/evaluation/rule-utils.d.ts.map +1 -1
- package/dist/core/workflow/evaluation/rule-utils.js +34 -1
- package/dist/core/workflow/evaluation/rule-utils.js.map +1 -1
- package/dist/core/workflow/evaluation/when-evaluator.d.ts.map +1 -1
- package/dist/core/workflow/evaluation/when-evaluator.js +4 -1
- package/dist/core/workflow/evaluation/when-evaluator.js.map +1 -1
- package/dist/core/workflow/findings/context.d.ts +5 -0
- package/dist/core/workflow/findings/context.d.ts.map +1 -0
- package/dist/core/workflow/findings/context.js +82 -0
- package/dist/core/workflow/findings/context.js.map +1 -0
- package/dist/core/workflow/findings/ledger-validation.d.ts +3 -0
- package/dist/core/workflow/findings/ledger-validation.d.ts.map +1 -0
- package/dist/core/workflow/findings/ledger-validation.js +26 -0
- package/dist/core/workflow/findings/ledger-validation.js.map +1 -0
- package/dist/core/workflow/findings/manager-output-validation.d.ts +15 -0
- package/dist/core/workflow/findings/manager-output-validation.d.ts.map +1 -0
- package/dist/core/workflow/findings/manager-output-validation.js +221 -0
- package/dist/core/workflow/findings/manager-output-validation.js.map +1 -0
- package/dist/core/workflow/findings/manager-runner.d.ts +89 -0
- package/dist/core/workflow/findings/manager-runner.d.ts.map +1 -0
- package/dist/core/workflow/findings/manager-runner.js +291 -0
- package/dist/core/workflow/findings/manager-runner.js.map +1 -0
- package/dist/core/workflow/findings/reconciler.d.ts +10 -0
- package/dist/core/workflow/findings/reconciler.d.ts.map +1 -0
- package/dist/core/workflow/findings/reconciler.js +413 -0
- package/dist/core/workflow/findings/reconciler.js.map +1 -0
- package/dist/core/workflow/findings/schemas.d.ts +2 -0
- package/dist/core/workflow/findings/schemas.d.ts.map +1 -0
- package/dist/core/workflow/findings/schemas.js +2 -0
- package/dist/core/workflow/findings/schemas.js.map +1 -0
- package/dist/core/workflow/findings/store.d.ts +33 -0
- package/dist/core/workflow/findings/store.d.ts.map +1 -0
- package/dist/core/workflow/findings/store.js +169 -0
- package/dist/core/workflow/findings/store.js.map +1 -0
- package/dist/core/workflow/findings/types.d.ts +3 -0
- package/dist/core/workflow/findings/types.d.ts.map +1 -0
- package/dist/core/workflow/findings/types.js +2 -0
- package/dist/core/workflow/findings/types.js.map +1 -0
- package/dist/core/workflow/instruction/InstructionBuilder.d.ts +1 -0
- package/dist/core/workflow/instruction/InstructionBuilder.d.ts.map +1 -1
- package/dist/core/workflow/instruction/InstructionBuilder.js +35 -11
- package/dist/core/workflow/instruction/InstructionBuilder.js.map +1 -1
- package/dist/core/workflow/instruction/ReportInstructionBuilder.d.ts +4 -0
- package/dist/core/workflow/instruction/ReportInstructionBuilder.d.ts.map +1 -1
- package/dist/core/workflow/instruction/ReportInstructionBuilder.js +22 -1
- package/dist/core/workflow/instruction/ReportInstructionBuilder.js.map +1 -1
- package/dist/core/workflow/instruction/fenced-json.d.ts +2 -0
- package/dist/core/workflow/instruction/fenced-json.d.ts.map +1 -0
- package/dist/core/workflow/instruction/fenced-json.js +11 -0
- package/dist/core/workflow/instruction/fenced-json.js.map +1 -0
- package/dist/core/workflow/instruction/instruction-context.d.ts +8 -0
- package/dist/core/workflow/instruction/instruction-context.d.ts.map +1 -1
- package/dist/core/workflow/instruction/instruction-context.js.map +1 -1
- package/dist/core/workflow/observability/traceDiscovery.d.ts +33 -0
- package/dist/core/workflow/observability/traceDiscovery.d.ts.map +1 -0
- package/dist/core/workflow/observability/traceDiscovery.js +104 -0
- package/dist/core/workflow/observability/traceDiscovery.js.map +1 -0
- package/dist/core/workflow/observability/workflowSpans.d.ts +5 -2
- package/dist/core/workflow/observability/workflowSpans.d.ts.map +1 -1
- package/dist/core/workflow/observability/workflowSpans.js +33 -4
- package/dist/core/workflow/observability/workflowSpans.js.map +1 -1
- package/dist/core/workflow/phase-runner.d.ts +2 -0
- package/dist/core/workflow/phase-runner.d.ts.map +1 -1
- package/dist/core/workflow/phase-runner.js.map +1 -1
- package/dist/core/workflow/provider-options-trace.d.ts +3 -2
- package/dist/core/workflow/provider-options-trace.d.ts.map +1 -1
- package/dist/core/workflow/provider-resolution.d.ts +11 -3
- package/dist/core/workflow/provider-resolution.d.ts.map +1 -1
- package/dist/core/workflow/provider-resolution.js +68 -2
- package/dist/core/workflow/provider-resolution.js.map +1 -1
- package/dist/core/workflow/report-phase-runner.d.ts.map +1 -1
- package/dist/core/workflow/report-phase-runner.js +59 -44
- package/dist/core/workflow/report-phase-runner.js.map +1 -1
- package/dist/core/workflow/report-writer.d.ts +2 -0
- package/dist/core/workflow/report-writer.d.ts.map +1 -0
- package/dist/core/workflow/report-writer.js +42 -0
- package/dist/core/workflow/report-writer.js.map +1 -0
- package/dist/core/workflow/run/run-meta.d.ts +5 -0
- package/dist/core/workflow/run/run-meta.d.ts.map +1 -1
- package/dist/core/workflow/run/run-meta.js.map +1 -1
- package/dist/core/workflow/state/workflow-state-access.d.ts +2 -2
- package/dist/core/workflow/state/workflow-state-access.d.ts.map +1 -1
- package/dist/core/workflow/state/workflow-state-access.js +17 -2
- package/dist/core/workflow/state/workflow-state-access.js.map +1 -1
- package/dist/core/workflow/types.d.ts +25 -1
- package/dist/core/workflow/types.d.ts.map +1 -1
- package/dist/features/analytics/events.d.ts +1 -1
- package/dist/features/analytics/events.d.ts.map +1 -1
- package/dist/features/analytics/index.d.ts +1 -1
- package/dist/features/analytics/index.d.ts.map +1 -1
- package/dist/features/analytics/index.js +1 -1
- package/dist/features/analytics/index.js.map +1 -1
- package/dist/features/analytics/report-parser.d.ts +5 -3
- package/dist/features/analytics/report-parser.d.ts.map +1 -1
- package/dist/features/analytics/report-parser.js +42 -7
- package/dist/features/analytics/report-parser.js.map +1 -1
- package/dist/features/pipeline/execute.d.ts.map +1 -1
- package/dist/features/pipeline/execute.js +2 -3
- package/dist/features/pipeline/execute.js.map +1 -1
- package/dist/features/pipeline/steps.d.ts +4 -3
- package/dist/features/pipeline/steps.d.ts.map +1 -1
- package/dist/features/pipeline/steps.js +46 -8
- package/dist/features/pipeline/steps.js.map +1 -1
- package/dist/features/repertoire/file-filter.d.ts +3 -3
- package/dist/features/repertoire/file-filter.d.ts.map +1 -1
- package/dist/features/repertoire/file-filter.js +3 -3
- package/dist/features/repertoire/file-filter.js.map +1 -1
- package/dist/features/repertoire/pack-summary.d.ts +21 -7
- package/dist/features/repertoire/pack-summary.d.ts.map +1 -1
- package/dist/features/repertoire/pack-summary.js +156 -24
- package/dist/features/repertoire/pack-summary.js.map +1 -1
- package/dist/features/repertoire/remove.d.ts +5 -2
- package/dist/features/repertoire/remove.d.ts.map +1 -1
- package/dist/features/repertoire/remove.js +9 -2
- package/dist/features/repertoire/remove.js.map +1 -1
- package/dist/features/repertoire/takt-repertoire-config.d.ts +3 -3
- package/dist/features/repertoire/takt-repertoire-config.d.ts.map +1 -1
- package/dist/features/repertoire/takt-repertoire-config.js +31 -16
- package/dist/features/repertoire/takt-repertoire-config.js.map +1 -1
- package/dist/features/tasks/add/index.d.ts +1 -0
- package/dist/features/tasks/add/index.d.ts.map +1 -1
- package/dist/features/tasks/add/index.js +1 -0
- package/dist/features/tasks/add/index.js.map +1 -1
- package/dist/features/tasks/execute/analyticsEmitter.d.ts +4 -1
- package/dist/features/tasks/execute/analyticsEmitter.d.ts.map +1 -1
- package/dist/features/tasks/execute/analyticsEmitter.js +30 -3
- package/dist/features/tasks/execute/analyticsEmitter.js.map +1 -1
- package/dist/features/tasks/execute/runAllTasks.d.ts.map +1 -1
- package/dist/features/tasks/execute/runAllTasks.js +2 -2
- package/dist/features/tasks/execute/runAllTasks.js.map +1 -1
- package/dist/features/tasks/execute/runMeta.d.ts +5 -1
- package/dist/features/tasks/execute/runMeta.d.ts.map +1 -1
- package/dist/features/tasks/execute/runMeta.js +6 -1
- package/dist/features/tasks/execute/runMeta.js.map +1 -1
- package/dist/features/tasks/execute/selectAndExecute.d.ts.map +1 -1
- package/dist/features/tasks/execute/selectAndExecute.js +12 -0
- package/dist/features/tasks/execute/selectAndExecute.js.map +1 -1
- package/dist/features/tasks/execute/slackSummaryAdapter.d.ts +0 -1
- package/dist/features/tasks/execute/slackSummaryAdapter.d.ts.map +1 -1
- package/dist/features/tasks/execute/slackSummaryAdapter.js +0 -5
- package/dist/features/tasks/execute/slackSummaryAdapter.js.map +1 -1
- package/dist/features/tasks/execute/taskExecution.d.ts.map +1 -1
- package/dist/features/tasks/execute/taskExecution.js +9 -0
- package/dist/features/tasks/execute/taskExecution.js.map +1 -1
- package/dist/features/tasks/execute/taskWorkflowExecution.d.ts.map +1 -1
- package/dist/features/tasks/execute/taskWorkflowExecution.js +20 -1
- package/dist/features/tasks/execute/taskWorkflowExecution.js.map +1 -1
- package/dist/features/tasks/execute/traceTaskMetadata.d.ts +20 -0
- package/dist/features/tasks/execute/traceTaskMetadata.d.ts.map +1 -0
- package/dist/features/tasks/execute/traceTaskMetadata.js +54 -0
- package/dist/features/tasks/execute/traceTaskMetadata.js.map +1 -0
- package/dist/features/tasks/execute/types.d.ts +13 -1
- package/dist/features/tasks/execute/types.d.ts.map +1 -1
- package/dist/features/tasks/execute/workflowExecution.d.ts.map +1 -1
- package/dist/features/tasks/execute/workflowExecution.js +14 -1
- package/dist/features/tasks/execute/workflowExecution.js.map +1 -1
- package/dist/features/tasks/execute/workflowExecutionBootstrap.d.ts +2 -0
- package/dist/features/tasks/execute/workflowExecutionBootstrap.d.ts.map +1 -1
- package/dist/features/tasks/execute/workflowExecutionBootstrap.js +16 -2
- package/dist/features/tasks/execute/workflowExecutionBootstrap.js.map +1 -1
- package/dist/features/tasks/execute/workflowExecutionEvents.d.ts +2 -0
- package/dist/features/tasks/execute/workflowExecutionEvents.d.ts.map +1 -1
- package/dist/features/tasks/execute/workflowExecutionEvents.js +10 -2
- package/dist/features/tasks/execute/workflowExecutionEvents.js.map +1 -1
- package/dist/features/tasks/execute/workflowExecutionReporting.d.ts +3 -2
- package/dist/features/tasks/execute/workflowExecutionReporting.d.ts.map +1 -1
- package/dist/features/tasks/execute/workflowExecutionReporting.js +14 -2
- package/dist/features/tasks/execute/workflowExecutionReporting.js.map +1 -1
- package/dist/features/tasks/index.d.ts +1 -1
- package/dist/features/tasks/index.d.ts.map +1 -1
- package/dist/features/tasks/index.js.map +1 -1
- package/dist/features/tasks/resume/index.d.ts.map +1 -1
- package/dist/features/tasks/resume/index.js +5 -0
- package/dist/features/tasks/resume/index.js.map +1 -1
- package/dist/infra/config/configNormalizers.d.ts +18 -7
- package/dist/infra/config/configNormalizers.d.ts.map +1 -1
- package/dist/infra/config/configNormalizers.js +46 -13
- package/dist/infra/config/configNormalizers.js.map +1 -1
- package/dist/infra/config/env/global-current-env-specs.d.ts.map +1 -1
- package/dist/infra/config/env/global-current-env-specs.js +1 -0
- package/dist/infra/config/env/global-current-env-specs.js.map +1 -1
- package/dist/infra/config/env/project-current-env-specs.d.ts.map +1 -1
- package/dist/infra/config/env/project-current-env-specs.js +1 -0
- package/dist/infra/config/env/project-current-env-specs.js.map +1 -1
- package/dist/infra/config/global/globalConfigCore.d.ts.map +1 -1
- package/dist/infra/config/global/globalConfigCore.js +2 -1
- package/dist/infra/config/global/globalConfigCore.js.map +1 -1
- package/dist/infra/config/global/globalConfigSerializer.d.ts.map +1 -1
- package/dist/infra/config/global/globalConfigSerializer.js +5 -1
- package/dist/infra/config/global/globalConfigSerializer.js.map +1 -1
- package/dist/infra/config/loaders/namedResourceResolver.d.ts +18 -0
- package/dist/infra/config/loaders/namedResourceResolver.d.ts.map +1 -0
- package/dist/infra/config/loaders/namedResourceResolver.js +49 -0
- package/dist/infra/config/loaders/namedResourceResolver.js.map +1 -0
- package/dist/infra/config/loaders/providerOptionsLookupDirectories.d.ts +13 -0
- package/dist/infra/config/loaders/providerOptionsLookupDirectories.d.ts.map +1 -0
- package/dist/infra/config/loaders/providerOptionsLookupDirectories.js +61 -0
- package/dist/infra/config/loaders/providerOptionsLookupDirectories.js.map +1 -0
- package/dist/infra/config/loaders/workflowParser.d.ts.map +1 -1
- package/dist/infra/config/loaders/workflowParser.js +64 -3
- package/dist/infra/config/loaders/workflowParser.js.map +1 -1
- package/dist/infra/config/loaders/workflowPreview.d.ts.map +1 -1
- package/dist/infra/config/loaders/workflowPreview.js +8 -3
- package/dist/infra/config/loaders/workflowPreview.js.map +1 -1
- package/dist/infra/config/loaders/workflowProviderOptionsResolver.d.ts +20 -2
- package/dist/infra/config/loaders/workflowProviderOptionsResolver.d.ts.map +1 -1
- package/dist/infra/config/loaders/workflowProviderOptionsResolver.js +115 -33
- package/dist/infra/config/loaders/workflowProviderOptionsResolver.js.map +1 -1
- package/dist/infra/config/loaders/workflowRuleNormalizer.d.ts.map +1 -1
- package/dist/infra/config/loaders/workflowRuleNormalizer.js +5 -16
- package/dist/infra/config/loaders/workflowRuleNormalizer.js.map +1 -1
- package/dist/infra/config/loaders/workflowStepNormalizer.d.ts +3 -2
- package/dist/infra/config/loaders/workflowStepNormalizer.d.ts.map +1 -1
- package/dist/infra/config/loaders/workflowStepNormalizer.js +33 -12
- package/dist/infra/config/loaders/workflowStepNormalizer.js.map +1 -1
- package/dist/infra/config/paths.d.ts +4 -0
- package/dist/infra/config/paths.d.ts.map +1 -1
- package/dist/infra/config/paths.js +13 -0
- package/dist/infra/config/paths.js.map +1 -1
- package/dist/infra/config/project/projectConfig.d.ts.map +1 -1
- package/dist/infra/config/project/projectConfig.js +12 -3
- package/dist/infra/config/project/projectConfig.js.map +1 -1
- package/dist/infra/config/providerOptions.d.ts +19 -7
- package/dist/infra/config/providerOptions.d.ts.map +1 -1
- package/dist/infra/config/providerOptions.js +56 -10
- package/dist/infra/config/providerOptions.js.map +1 -1
- package/dist/infra/config/traced/tracedConfigSchema.d.ts.map +1 -1
- package/dist/infra/config/traced/tracedConfigSchema.js +8 -0
- package/dist/infra/config/traced/tracedConfigSchema.js.map +1 -1
- package/dist/infra/cursor/client.d.ts.map +1 -1
- package/dist/infra/cursor/client.js +113 -47
- package/dist/infra/cursor/client.js.map +1 -1
- package/dist/infra/opencode/client.d.ts.map +1 -1
- package/dist/infra/opencode/client.js +21 -0
- package/dist/infra/opencode/client.js.map +1 -1
- package/dist/infra/opencode/unavailable-tool-loop.d.ts +7 -0
- package/dist/infra/opencode/unavailable-tool-loop.d.ts.map +1 -0
- package/dist/infra/opencode/unavailable-tool-loop.js +33 -0
- package/dist/infra/opencode/unavailable-tool-loop.js.map +1 -0
- package/dist/infra/providers/provider-capabilities.d.ts.map +1 -1
- package/dist/infra/providers/provider-capabilities.js +0 -1
- package/dist/infra/providers/provider-capabilities.js.map +1 -1
- package/dist/infra/task/clone-base-branch.d.ts +1 -0
- package/dist/infra/task/clone-base-branch.d.ts.map +1 -1
- package/dist/infra/task/clone-base-branch.js +22 -14
- package/dist/infra/task/clone-base-branch.js.map +1 -1
- package/dist/infra/task/clone.d.ts +2 -0
- package/dist/infra/task/clone.d.ts.map +1 -1
- package/dist/infra/task/clone.js +7 -1
- package/dist/infra/task/clone.js.map +1 -1
- package/dist/infra/task/index.d.ts +1 -1
- package/dist/infra/task/index.d.ts.map +1 -1
- package/dist/infra/task/index.js +1 -1
- package/dist/infra/task/index.js.map +1 -1
- package/dist/infra/task/mapper.d.ts.map +1 -1
- package/dist/infra/task/mapper.js +1 -0
- package/dist/infra/task/mapper.js.map +1 -1
- package/dist/infra/task/taskExecutionSchemas.d.ts +3 -3
- package/dist/infra/task/taskRecordSchemas.d.ts +2 -2
- package/dist/infra/task/types.d.ts +1 -0
- package/dist/infra/task/types.d.ts.map +1 -1
- package/dist/shared/prompts/en/perform_phase2_message.md +1 -0
- package/dist/shared/prompts/ja/perform_phase2_message.md +1 -0
- package/dist/shared/ui/StreamDisplay.js +1 -1
- package/dist/shared/ui/StreamDisplay.js.map +1 -1
- package/dist/shared/utils/index.d.ts +1 -0
- package/dist/shared/utils/index.d.ts.map +1 -1
- package/dist/shared/utils/index.js +1 -0
- package/dist/shared/utils/index.js.map +1 -1
- package/dist/shared/utils/runId.d.ts +2 -0
- package/dist/shared/utils/runId.d.ts.map +1 -0
- package/dist/shared/utils/runId.js +18 -0
- package/dist/shared/utils/runId.js.map +1 -0
- package/package.json +24 -12
- /package/builtins/en/{workflows/provider-options → provider-options}/edit.yaml +0 -0
- /package/builtins/en/{workflows/provider-options → provider-options}/review-files.yaml +0 -0
- /package/builtins/en/{workflows/provider-options → provider-options}/review-readonly.yaml +0 -0
- /package/builtins/en/{workflows/provider-options → provider-options}/review-web.yaml +0 -0
- /package/builtins/ja/{workflows/provider-options → provider-options}/edit.yaml +0 -0
- /package/builtins/ja/{workflows/provider-options → provider-options}/review-files.yaml +0 -0
- /package/builtins/ja/{workflows/provider-options → provider-options}/review-readonly.yaml +0 -0
- /package/builtins/ja/{workflows/provider-options → provider-options}/review-web.yaml +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Findings Manager
|
|
2
|
+
|
|
3
|
+
You manage Finding Contract reconciliation.
|
|
4
|
+
|
|
5
|
+
Compare reviewer raw findings with the existing ledger, then classify each issue as an existing match, new finding, resolved finding, or reopened finding. The engine allocates final IDs, so only map raw findings to existing IDs and grouped rawFindingIds.
|
|
6
|
+
|
|
7
|
+
Responsibilities:
|
|
8
|
+
- Reconcile the prior integrated ledger with current raw findings.
|
|
9
|
+
- Classify raw findings as existing matches, new findings, resolved findings, or reopened findings.
|
|
10
|
+
- Group rawFindingIds into structured data that lets the engine allocate final IDs.
|
|
11
|
+
|
|
12
|
+
Rules:
|
|
13
|
+
- Do not make semantic severity or priority judgments.
|
|
14
|
+
- Do not merge findings with different `family_tag`, location, or issue meaning.
|
|
15
|
+
- Do not blame reviewers.
|
|
16
|
+
- Do not allocate final `finding_id` values.
|
|
17
|
+
- Treat identical location + `family_tag` + issue meaning as the existing-match standard.
|
|
18
|
+
- Treat ambiguous or merely similar findings as distinct.
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# AI Antipattern Detection Criteria
|
|
2
2
|
|
|
3
|
+
Detect assumptions, over-implementation, and superficial fixes that AI-generated changes commonly introduce.
|
|
4
|
+
|
|
5
|
+
## Principles
|
|
6
|
+
|
|
7
|
+
| Principle | Criteria |
|
|
8
|
+
|-----------|----------|
|
|
9
|
+
| Requirement fit | Verify that the implementation answers the actual request |
|
|
10
|
+
| Reality check | Do not infer APIs, settings, fields, or wiring paths |
|
|
11
|
+
| Context fit | Match existing naming, structure, error handling, logging, and tests |
|
|
12
|
+
| Minimal diff | Do not mix in unnecessary features, abstractions, settings, or compatibility code |
|
|
13
|
+
| Contract preservation | Do not change UI copy, public APIs, return values, errors, or test expectations out of scope |
|
|
14
|
+
| Direct fixes | Do not replace a fix with tests or documentation explaining the issue |
|
|
15
|
+
| Reachability | Confirm that added or retained code is used by current call paths |
|
|
16
|
+
| Verifiability | Check code paths, usage sites, and execution results instead of explanations |
|
|
17
|
+
|
|
3
18
|
## Assumption Verification
|
|
4
19
|
|
|
5
20
|
AI often makes assumptions. Verify them.
|
|
@@ -136,6 +151,22 @@ Questions to ask:
|
|
|
136
151
|
- Does it feel like it belongs here?
|
|
137
152
|
- Are there unexplained deviations from project conventions?
|
|
138
153
|
|
|
154
|
+
## Integration Pattern Consistency
|
|
155
|
+
|
|
156
|
+
Check whether the same kind of API connection, such as REST calls, is implemented in inconsistent ways within the project.
|
|
157
|
+
|
|
158
|
+
| Pattern | Example | Verdict |
|
|
159
|
+
|---------|---------|---------|
|
|
160
|
+
| Mixed generated and hand-written clients | Screen A uses Orval-generated hooks, screen B calls axiosInstance directly | REJECT |
|
|
161
|
+
| Different implementations for the same data-fetching pattern | Screen A uses useQuery + axios, screen B uses generated hooks | REJECT |
|
|
162
|
+
| Mixed data type definition styles | Screen A uses generated types, screen B uses hand-written types | REJECT |
|
|
163
|
+
|
|
164
|
+
Verification approach:
|
|
165
|
+
1. Check the API calling style in the diff
|
|
166
|
+
2. Grep existing code for the style used by code with the same purpose
|
|
167
|
+
3. Check whether the project has API generation config, such as orval.config.ts
|
|
168
|
+
4. If inconsistent, flag unification to the project standard pattern
|
|
169
|
+
|
|
139
170
|
## Scope Creep Detection
|
|
140
171
|
|
|
141
172
|
AI tends to over-deliver. Check for unnecessary additions.
|
|
@@ -11,6 +11,11 @@ Define the shared judgment criteria and behavioral principles for all reviewers.
|
|
|
11
11
|
| Fact-check | Verify against actual code before raising issues. Do not speculate |
|
|
12
12
|
| Practical fixes | Propose implementable solutions, not theoretical ideals |
|
|
13
13
|
| State consistency | For side effects and state changes, verify that success, failure, and interruption paths have no missing, duplicated, or inconsistent effects |
|
|
14
|
+
| Contract coverage | Verify new contracts across normal entries, derived conditions, validation, evaluation, output, and re-injection paths |
|
|
15
|
+
| Contract consistency | Verify that contracts carried by consolidation or abstraction are applied to existing equivalent branches by the same standard |
|
|
16
|
+
| Specification completeness | When changing a user-facing contract, verify that implementation, tests, and documentation describe the same lookup order, override rules, special syntax, and failure conditions |
|
|
17
|
+
| Requirement anchoring | Do not reinterpret required task items as optional, out of scope, or different requirements for implementation convenience |
|
|
18
|
+
| Resolution judgment | Judge `resolved` against the original finding acceptance criteria and original task requirements, not merely against the presence of a fix |
|
|
14
19
|
| Behavior evidence | Verify what behavior the tests or logs prove, not merely that they exist |
|
|
15
20
|
| Boy Scout | Have problems fixed within the task scope when they are in changed code or in areas directly affecting correctness, contracts, or wiring of the change |
|
|
16
21
|
|
|
@@ -48,7 +53,10 @@ REJECT without exception if any of the following apply.
|
|
|
48
53
|
- Internal implementation exported from public API (infrastructure functions or internal classes exposed publicly)
|
|
49
54
|
- Replaced code/exports surviving after refactoring
|
|
50
55
|
- Missing cross-validation of related fields (invariants of semantically coupled config values left unverified)
|
|
51
|
-
- Missing caller, producer,
|
|
56
|
+
- Missing caller, producer, consumer, validator, test data, or derived-entry updates after a contract change
|
|
57
|
+
- User-facing contract changes for configuration, CLI, or file formats where documentation or examples omit priority, first-match/merge behavior, inline overrides, scoped/special references, or failure conditions
|
|
58
|
+
- Existing branches with the same contract remain on the old implementation after adding or changing a shared helper, normalizer, builder, or adapter
|
|
59
|
+
- Fields, attributes, outputs, settings, or identifiers requested by the task are treated as optional, unset, out of scope, or missing for some entry point or execution mode without explicit evidence
|
|
52
60
|
- Missing, duplicated, or incorrectly ordered effects in side-effect or state-change paths
|
|
53
61
|
- Sensitive data exposed in logs, error responses, or test output
|
|
54
62
|
|
|
@@ -129,12 +137,39 @@ Every issue raised must include the following.
|
|
|
129
137
|
|
|
130
138
|
To prevent circular rejections, track findings by ID.
|
|
131
139
|
|
|
140
|
+
Finding Contract applies to the whole review workflow, not to individual findings.
|
|
141
|
+
Treat a workflow as using Finding Contract only when it is declared at workflow level
|
|
142
|
+
with `finding_contract` configuration. A `findings-ledger.json` file, a dedicated
|
|
143
|
+
"Finding Contract" section in the instruction template, or an `Observed Findings`
|
|
144
|
+
table in the output contract is supporting evidence inside an already configured
|
|
145
|
+
Finding Contract workflow; none of these artifacts enables Finding Contract by itself.
|
|
146
|
+
|
|
147
|
+
When Finding Contract is in use, reviewers must not allocate new final `finding_id`
|
|
148
|
+
values and must not classify lifecycle as `new`, `persists`, `resolved`, or
|
|
149
|
+
`reopened`. Report observed problems as raw findings in the `Observed Findings`
|
|
150
|
+
table. Refer to existing IDs only when they are present in the ledger. ID assignment
|
|
151
|
+
and lifecycle matching belong to the findings-manager and engine.
|
|
152
|
+
|
|
153
|
+
When a workflow is configured with Finding Contract and a parseable ledger is available,
|
|
154
|
+
the ledger is the authoritative source for tracked findings. Individual reports and raw
|
|
155
|
+
finding details are supporting evidence. If a ledger exists but is incomplete, follow
|
|
156
|
+
mapped findings from the ledger and treat unmapped raw findings as potential new entries
|
|
157
|
+
pending findings-manager reconciliation. If no parseable ledger is available in a
|
|
158
|
+
configured Finding Contract workflow, use report history only as supporting evidence for
|
|
159
|
+
observed raw findings. Do not assign final `finding_id` values or lifecycle states and
|
|
160
|
+
do not apply the legacy rules; wait for ledger regeneration or findings-manager
|
|
161
|
+
reconciliation.
|
|
162
|
+
|
|
163
|
+
### Legacy Finding ID Rules (for workflows without Finding Contract)
|
|
164
|
+
|
|
165
|
+
When a workflow does not use `finding_contract` configuration, follow these legacy rules.
|
|
166
|
+
|
|
132
167
|
- Every issue raised in a REJECT must include a `finding_id`
|
|
133
168
|
- If the same issue is raised again, reuse the same `finding_id`
|
|
134
169
|
- For repeated issues, set status to `persists` and include concrete evidence (file/line) that it remains unresolved
|
|
135
170
|
- New issues must use status `new`
|
|
136
171
|
- Resolved issues must be listed with status `resolved`
|
|
137
|
-
- Issues without `finding_id` are invalid (cannot be used as rejection grounds)
|
|
172
|
+
- Issues without `finding_id` are invalid (cannot be used as rejection grounds). This legacy rule does not apply to Finding Contract workflows.
|
|
138
173
|
- REJECT is allowed only when there is at least one `new` or `persists` issue
|
|
139
174
|
- Before treating a prior finding as resolved, verify that the fix did not introduce a different structural or contract problem
|
|
140
175
|
|
|
@@ -240,6 +275,7 @@ The review target is the entire cumulative diff from the task's starting point (
|
|
|
240
275
|
- Use `order.md`, `plan.md`, and the actual code as primary sources
|
|
241
276
|
- Treat decisions from earlier steps (prior review results, planning decisions) as supplementary
|
|
242
277
|
- When information conflicts, prioritize `order.md` / `plan.md` / actual code
|
|
278
|
+
- When a user-facing specification changes, treat documentation and configuration examples as part of the contract and verify that every behavior listed in the requirements is present
|
|
243
279
|
|
|
244
280
|
### Referring to Design Decisions
|
|
245
281
|
|
|
@@ -247,6 +283,19 @@ The review target is the entire cumulative diff from the task's starting point (
|
|
|
247
283
|
- Do not dismiss intentional decisions as false positives just because they were recorded. Evaluate validity against `order.md` / `plan.md` / actual code
|
|
248
284
|
- If the design decision itself is flawed, raise it
|
|
249
285
|
|
|
286
|
+
### Full Entry Review for Contract Additions and Changes
|
|
287
|
+
|
|
288
|
+
When the diff adds or changes a contract such as a config value, state, condition expression, file format, event, builder, adapter, or state-transition function, enumerate and reconcile every entry, exit, and re-injection path that can carry that contract.
|
|
289
|
+
|
|
290
|
+
- Verify that definition, production, normalization, validation, evaluation, persistence, output, and event emission all apply the same contract
|
|
291
|
+
- Check derived paths as well as the normal entry: derived conditions, aggregate conditions, parent/child workflows, loop decisions, early exits, and exception paths
|
|
292
|
+
- When persisted data or externally supplied data is re-injected into JSON, Markdown, logs, events, or later instructions, include escaping, boundary handling, and failure behavior in the contract
|
|
293
|
+
- Search for existing returns, throws, catches, early returns, branches, and call sites with the same responsibility
|
|
294
|
+
- If an existing branch does not satisfy the new contract, treat it as related code even if the code itself predates the change
|
|
295
|
+
- If tests cover only the new path and do not verify existing equivalent branches or derived entries, treat it as a coverage gap
|
|
296
|
+
- Treating a required contract as optional, excluded, or a different requirement requires evidence from the task spec, specification, or explicit user instruction
|
|
297
|
+
- "Not explicitly stated in the task requirements" is not a valid reason to mark a contract inconsistency introduced by the diff as non-blocking
|
|
298
|
+
|
|
250
299
|
### Reviewing Side Effects and State Transitions
|
|
251
300
|
|
|
252
301
|
When a change involves side effects or state changes such as external calls, configuration application, sessions, queues, locks, subscriptions, caches, or temporary resources, do not judge from the happy path alone.
|
|
@@ -259,11 +308,18 @@ When a change involves side effects or state changes such as external calls, con
|
|
|
259
308
|
|
|
260
309
|
### Tracking Findings from Previous Reviews
|
|
261
310
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
- `
|
|
265
|
-
|
|
266
|
-
|
|
311
|
+
**Precedence:**
|
|
312
|
+
|
|
313
|
+
1. If a parseable Finding Contract ledger / `findings-ledger.json` is available in a workflow configured with Finding Contract, use the ledger as the authoritative source for tracked findings. Fix only open findings from the ledger (`new`, `persists`, or `reopened`); ignore resolved or closed findings. Treat individual reports as supporting evidence reachable from the ledger.
|
|
314
|
+
2. If a ledger exists but is incomplete, follow mapped findings from the ledger and treat unmapped raw findings as potential new entries pending findings-manager reconciliation.
|
|
315
|
+
3. If the workflow is configured with Finding Contract but no parseable ledger is available, use the latest review reports in the Report Directory only as supporting evidence for observed raw findings. Do not assign final `finding_id` values or lifecycle states and do not apply the legacy rules; wait for ledger regeneration or findings-manager reconciliation.
|
|
316
|
+
4. If the workflow does not use `finding_contract` configuration, use the latest review reports in the Report Directory as the primary evidence and apply the legacy rules:
|
|
317
|
+
- Look in the Report Directory for review reports this step has previously produced, along with their timestamped history
|
|
318
|
+
- Treat the unsuffixed file as the latest result and the most recent `{report-name}.{timestamp}` as the previous result
|
|
319
|
+
- `Previous Response` may be used as supplementary information, but finding state determinations must prioritize the report history
|
|
320
|
+
- Do not drop open findings from the previous report when producing the new report
|
|
321
|
+
- Apply the `finding_id` management rules when classifying each finding as `new` / `persists` / `resolved` / `reopened`
|
|
322
|
+
- Mark `resolved` only when the original expected result and original requirement are satisfied, not merely because a patch exists
|
|
267
323
|
|
|
268
324
|
### Final Decision Steps
|
|
269
325
|
|
|
@@ -273,12 +329,4 @@ When a change involves side effects or state changes such as external calls, con
|
|
|
273
329
|
|
|
274
330
|
## Detecting Circular Arguments
|
|
275
331
|
|
|
276
|
-
When the same kind of issue keeps recurring, reconsider the approach itself rather than repeating
|
|
277
|
-
|
|
278
|
-
### When the Same Problem Recurs
|
|
279
|
-
|
|
280
|
-
1. Check if the same kind of issue is being repeated
|
|
281
|
-
2. If so, propose an alternative approach instead of granular fix instructions
|
|
282
|
-
3. Even when rejecting, include the perspective of "a different approach should be considered"
|
|
283
|
-
|
|
284
|
-
Rather than repeating "fix this again," stop and suggest a different path.
|
|
332
|
+
When the same kind of issue keeps recurring, reconsider the approach itself rather than repeating granular fix instructions.
|
|
@@ -22,6 +22,8 @@ Every behavior change requires a corresponding test, and every bug fix requires
|
|
|
22
22
|
| Bug fix | Regression test required. REJECT if missing |
|
|
23
23
|
| Behavior change | Test update required. REJECT if missing |
|
|
24
24
|
| Side-effect or state-transition change | Successful path and representative failure paths must be verified. REJECT if failure paths are untested |
|
|
25
|
+
| Contract changes through consolidation or abstraction | Must verify that the contract holds on existing equivalent branches, not only on the new shared path |
|
|
26
|
+
| Parser or configuration boundary changes | Must verify syntactically valid inputs with unexpected shapes, missing values, and isolation from personal configuration |
|
|
25
27
|
| Build (type check) | Build must succeed. REJECT if it fails |
|
|
26
28
|
| Edge cases / boundary values | Test recommended (Warning) |
|
|
27
29
|
|
|
@@ -100,6 +102,28 @@ Changes involving side effects or state transitions are not sufficiently verifie
|
|
|
100
102
|
| Mock-verified behavior is not distinguished from unverified real-integration scope | Warning. REJECT when it is a primary requirement |
|
|
101
103
|
| Successful path, representative failure paths, and boundary state transitions are each verified | OK |
|
|
102
104
|
|
|
105
|
+
## Testing Contract Changes and Existing Branches
|
|
106
|
+
|
|
107
|
+
When a change standardizes a contract through a shared helper, normalizer, builder, or adapter, testing only the newly added path is not sufficient. Verify that existing equivalent branches satisfy the same contract.
|
|
108
|
+
|
|
109
|
+
| Criteria | Verdict |
|
|
110
|
+
|----------|---------|
|
|
111
|
+
| Only the new shared path is tested, while existing equivalent branches are not verified for the same return value, side effect, or error contract | REJECT |
|
|
112
|
+
| An existing branch is treated as "preserved behavior" without verifying that it does not conflict with the contract introduced by the diff | REJECT |
|
|
113
|
+
| Return / throw / catch / early return paths in the changed function are not enumerated, causing representative failure paths to be missed | REJECT |
|
|
114
|
+
| Existing branches with the same responsibility have tests for return values, side effects, events, and error classification contracts | OK |
|
|
115
|
+
|
|
116
|
+
## Parser and Configuration Boundary Tests
|
|
117
|
+
|
|
118
|
+
At boundaries that read external files, configuration, YAML/JSON, or CLI input, testing only the ideal typed input is not sufficient.
|
|
119
|
+
|
|
120
|
+
| Criteria | Verdict |
|
|
121
|
+
|----------|---------|
|
|
122
|
+
| Array-like fields are not tested with object/null/missing values | REJECT |
|
|
123
|
+
| File/directory checks are not tested with an existing regular file, broken link, or permission error | REJECT |
|
|
124
|
+
| Tests that can inherit existing user or machine configuration do not isolate with an empty config directory or temporary HOME | REJECT |
|
|
125
|
+
| Syntactically valid but contract-invalid shapes are pinned to ignore, normalize, or explicit-error behavior | OK |
|
|
126
|
+
|
|
103
127
|
## Test Data and Fixtures
|
|
104
128
|
|
|
105
129
|
Test data should explicitly generate the minimum facts needed by each test. Mutating shared fixtures or using mocks that drift from real contracts reduces test reliability.
|
|
@@ -23,6 +23,8 @@ loop_monitors:
|
|
|
23
23
|
|
|
24
24
|
steps:
|
|
25
25
|
- name: plan
|
|
26
|
+
tags:
|
|
27
|
+
- plan
|
|
26
28
|
persona: planner
|
|
27
29
|
knowledge:
|
|
28
30
|
- backend
|
|
@@ -40,6 +42,8 @@ steps:
|
|
|
40
42
|
next: ABORT
|
|
41
43
|
|
|
42
44
|
- name: audit
|
|
45
|
+
tags:
|
|
46
|
+
- review
|
|
43
47
|
persona: architecture-reviewer
|
|
44
48
|
policy: review
|
|
45
49
|
knowledge:
|
|
@@ -60,6 +64,8 @@ steps:
|
|
|
60
64
|
next: supervise
|
|
61
65
|
|
|
62
66
|
- name: supervise
|
|
67
|
+
tags:
|
|
68
|
+
- review
|
|
63
69
|
persona: supervisor
|
|
64
70
|
policy: review
|
|
65
71
|
knowledge:
|
|
@@ -75,6 +81,8 @@ steps:
|
|
|
75
81
|
next: review
|
|
76
82
|
|
|
77
83
|
- name: review
|
|
84
|
+
tags:
|
|
85
|
+
- review
|
|
78
86
|
persona: architecture-reviewer
|
|
79
87
|
policy: review
|
|
80
88
|
knowledge:
|
|
@@ -23,6 +23,8 @@ loop_monitors:
|
|
|
23
23
|
|
|
24
24
|
steps:
|
|
25
25
|
- name: plan
|
|
26
|
+
tags:
|
|
27
|
+
- plan
|
|
26
28
|
persona: planner
|
|
27
29
|
knowledge:
|
|
28
30
|
- frontend
|
|
@@ -41,6 +43,8 @@ steps:
|
|
|
41
43
|
next: ABORT
|
|
42
44
|
|
|
43
45
|
- name: audit
|
|
46
|
+
tags:
|
|
47
|
+
- review
|
|
44
48
|
persona: architecture-reviewer
|
|
45
49
|
policy: review
|
|
46
50
|
knowledge:
|
|
@@ -62,6 +66,8 @@ steps:
|
|
|
62
66
|
next: supervise
|
|
63
67
|
|
|
64
68
|
- name: supervise
|
|
69
|
+
tags:
|
|
70
|
+
- review
|
|
65
71
|
persona: supervisor
|
|
66
72
|
policy: review
|
|
67
73
|
knowledge:
|
|
@@ -78,6 +84,8 @@ steps:
|
|
|
78
84
|
next: review
|
|
79
85
|
|
|
80
86
|
- name: review
|
|
87
|
+
tags:
|
|
88
|
+
- review
|
|
81
89
|
persona: architecture-reviewer
|
|
82
90
|
policy: review
|
|
83
91
|
knowledge:
|
|
@@ -23,6 +23,8 @@ loop_monitors:
|
|
|
23
23
|
|
|
24
24
|
steps:
|
|
25
25
|
- name: plan
|
|
26
|
+
tags:
|
|
27
|
+
- plan
|
|
26
28
|
persona: planner
|
|
27
29
|
knowledge:
|
|
28
30
|
- frontend
|
|
@@ -41,6 +43,8 @@ steps:
|
|
|
41
43
|
next: ABORT
|
|
42
44
|
|
|
43
45
|
- name: audit
|
|
46
|
+
tags:
|
|
47
|
+
- review
|
|
44
48
|
persona: frontend-reviewer
|
|
45
49
|
policy: review
|
|
46
50
|
knowledge:
|
|
@@ -62,6 +66,8 @@ steps:
|
|
|
62
66
|
next: supervise
|
|
63
67
|
|
|
64
68
|
- name: supervise
|
|
69
|
+
tags:
|
|
70
|
+
- review
|
|
65
71
|
persona: supervisor
|
|
66
72
|
policy: review
|
|
67
73
|
knowledge:
|
|
@@ -78,6 +84,8 @@ steps:
|
|
|
78
84
|
next: review
|
|
79
85
|
|
|
80
86
|
- name: review
|
|
87
|
+
tags:
|
|
88
|
+
- review
|
|
81
89
|
persona: frontend-reviewer
|
|
82
90
|
policy: review
|
|
83
91
|
knowledge:
|
|
@@ -23,6 +23,8 @@ loop_monitors:
|
|
|
23
23
|
|
|
24
24
|
steps:
|
|
25
25
|
- name: plan
|
|
26
|
+
tags:
|
|
27
|
+
- plan
|
|
26
28
|
persona: planner
|
|
27
29
|
knowledge: architecture
|
|
28
30
|
instruction: architecture-audit-plan
|
|
@@ -38,6 +40,8 @@ steps:
|
|
|
38
40
|
next: ABORT
|
|
39
41
|
|
|
40
42
|
- name: audit
|
|
43
|
+
tags:
|
|
44
|
+
- review
|
|
41
45
|
persona: architecture-reviewer
|
|
42
46
|
policy: review
|
|
43
47
|
knowledge: architecture
|
|
@@ -56,6 +60,8 @@ steps:
|
|
|
56
60
|
next: supervise
|
|
57
61
|
|
|
58
62
|
- name: supervise
|
|
63
|
+
tags:
|
|
64
|
+
- review
|
|
59
65
|
persona: supervisor
|
|
60
66
|
policy: review
|
|
61
67
|
knowledge: architecture
|
|
@@ -69,6 +75,8 @@ steps:
|
|
|
69
75
|
next: review
|
|
70
76
|
|
|
71
77
|
- name: review
|
|
78
|
+
tags:
|
|
79
|
+
- review
|
|
72
80
|
persona: architecture-reviewer
|
|
73
81
|
policy: review
|
|
74
82
|
knowledge: architecture
|
|
@@ -29,6 +29,8 @@ loop_monitors:
|
|
|
29
29
|
|
|
30
30
|
steps:
|
|
31
31
|
- name: plan
|
|
32
|
+
tags:
|
|
33
|
+
- plan
|
|
32
34
|
persona: test-planner
|
|
33
35
|
policy: testing
|
|
34
36
|
knowledge:
|
|
@@ -47,6 +49,8 @@ steps:
|
|
|
47
49
|
next: ABORT
|
|
48
50
|
|
|
49
51
|
- name: audit
|
|
52
|
+
tags:
|
|
53
|
+
- review
|
|
50
54
|
edit: false
|
|
51
55
|
persona: testing-reviewer
|
|
52
56
|
policy:
|
|
@@ -69,6 +73,8 @@ steps:
|
|
|
69
73
|
next: supervise
|
|
70
74
|
|
|
71
75
|
- name: supervise
|
|
76
|
+
tags:
|
|
77
|
+
- review
|
|
72
78
|
edit: false
|
|
73
79
|
persona: supervisor
|
|
74
80
|
policy: review
|
|
@@ -83,6 +89,8 @@ steps:
|
|
|
83
89
|
next: review
|
|
84
90
|
|
|
85
91
|
- name: review
|
|
92
|
+
tags:
|
|
93
|
+
- review
|
|
86
94
|
edit: false
|
|
87
95
|
persona: testing-reviewer
|
|
88
96
|
policy:
|
|
@@ -23,6 +23,8 @@ loop_monitors:
|
|
|
23
23
|
|
|
24
24
|
steps:
|
|
25
25
|
- name: plan
|
|
26
|
+
tags:
|
|
27
|
+
- plan
|
|
26
28
|
persona: planner
|
|
27
29
|
instruction: audit-security-plan
|
|
28
30
|
edit: false
|
|
@@ -35,6 +37,8 @@ steps:
|
|
|
35
37
|
next: audit
|
|
36
38
|
|
|
37
39
|
- name: audit
|
|
40
|
+
tags:
|
|
41
|
+
- review
|
|
38
42
|
persona: security-reviewer
|
|
39
43
|
knowledge: security
|
|
40
44
|
instruction: audit-security-team-leader
|
|
@@ -52,6 +56,8 @@ steps:
|
|
|
52
56
|
next: supervise
|
|
53
57
|
|
|
54
58
|
- name: supervise
|
|
59
|
+
tags:
|
|
60
|
+
- review
|
|
55
61
|
persona: supervisor
|
|
56
62
|
knowledge: security
|
|
57
63
|
instruction: audit-security-supervise
|
|
@@ -63,6 +69,8 @@ steps:
|
|
|
63
69
|
next: review
|
|
64
70
|
|
|
65
71
|
- name: review
|
|
72
|
+
tags:
|
|
73
|
+
- review
|
|
66
74
|
persona: security-reviewer
|
|
67
75
|
knowledge: security
|
|
68
76
|
instruction: audit-security-review
|
|
@@ -29,6 +29,8 @@ loop_monitors:
|
|
|
29
29
|
|
|
30
30
|
steps:
|
|
31
31
|
- name: plan
|
|
32
|
+
tags:
|
|
33
|
+
- plan
|
|
32
34
|
edit: false
|
|
33
35
|
persona: test-planner
|
|
34
36
|
policy: testing
|
|
@@ -49,6 +51,8 @@ steps:
|
|
|
49
51
|
next: ABORT
|
|
50
52
|
|
|
51
53
|
- name: audit
|
|
54
|
+
tags:
|
|
55
|
+
- review
|
|
52
56
|
edit: false
|
|
53
57
|
persona: testing-reviewer
|
|
54
58
|
policy:
|
|
@@ -71,6 +75,8 @@ steps:
|
|
|
71
75
|
next: supervise
|
|
72
76
|
|
|
73
77
|
- name: supervise
|
|
78
|
+
tags:
|
|
79
|
+
- review
|
|
74
80
|
edit: false
|
|
75
81
|
persona: supervisor
|
|
76
82
|
policy: review
|
|
@@ -85,6 +91,8 @@ steps:
|
|
|
85
91
|
next: review
|
|
86
92
|
|
|
87
93
|
- name: review
|
|
94
|
+
tags:
|
|
95
|
+
- review
|
|
88
96
|
edit: false
|
|
89
97
|
persona: testing-reviewer
|
|
90
98
|
policy:
|
|
@@ -51,6 +51,8 @@ steps:
|
|
|
51
51
|
next: plan_fresh_improvement
|
|
52
52
|
|
|
53
53
|
- name: plan_from_issue
|
|
54
|
+
tags:
|
|
55
|
+
- plan
|
|
54
56
|
persona: supervisor
|
|
55
57
|
knowledge:
|
|
56
58
|
- architecture
|
|
@@ -136,6 +138,8 @@ steps:
|
|
|
136
138
|
next: ABORT
|
|
137
139
|
|
|
138
140
|
- name: plan_fresh_improvement
|
|
141
|
+
tags:
|
|
142
|
+
- plan
|
|
139
143
|
persona: supervisor
|
|
140
144
|
knowledge:
|
|
141
145
|
- architecture
|
|
@@ -210,6 +214,8 @@ steps:
|
|
|
210
214
|
next: ABORT
|
|
211
215
|
|
|
212
216
|
- name: plan_from_existing_pr
|
|
217
|
+
tags:
|
|
218
|
+
- plan
|
|
213
219
|
persona: supervisor
|
|
214
220
|
knowledge:
|
|
215
221
|
- architecture
|
|
@@ -23,6 +23,8 @@ loop_monitors:
|
|
|
23
23
|
next: supervise_fix
|
|
24
24
|
steps:
|
|
25
25
|
- name: plan
|
|
26
|
+
tags:
|
|
27
|
+
- plan
|
|
26
28
|
edit: false
|
|
27
29
|
persona: planner
|
|
28
30
|
knowledge:
|
|
@@ -52,6 +54,8 @@ steps:
|
|
|
52
54
|
- name: plan.md
|
|
53
55
|
format: plan
|
|
54
56
|
- name: implement
|
|
57
|
+
tags:
|
|
58
|
+
- coding
|
|
55
59
|
edit: true
|
|
56
60
|
persona: coder
|
|
57
61
|
policy:
|
|
@@ -91,8 +95,12 @@ steps:
|
|
|
91
95
|
- name: coder-decisions.md
|
|
92
96
|
format: coder-decisions
|
|
93
97
|
- name: reviewers
|
|
98
|
+
tags:
|
|
99
|
+
- review
|
|
94
100
|
parallel:
|
|
95
101
|
- name: ai-antipattern-review-2nd
|
|
102
|
+
tags:
|
|
103
|
+
- review
|
|
96
104
|
edit: false
|
|
97
105
|
persona: ai-antipattern-reviewer
|
|
98
106
|
policy:
|
|
@@ -115,6 +123,8 @@ steps:
|
|
|
115
123
|
- name: ai-antipattern-review.md
|
|
116
124
|
format: ai-antipattern-review
|
|
117
125
|
- name: supervise
|
|
126
|
+
tags:
|
|
127
|
+
- review
|
|
118
128
|
edit: false
|
|
119
129
|
persona: supervisor
|
|
120
130
|
policy: review
|
|
@@ -153,8 +163,12 @@ steps:
|
|
|
153
163
|
- condition: any("Requirements unmet, tests failing")
|
|
154
164
|
next: supervise_fix
|
|
155
165
|
- name: fix_both
|
|
166
|
+
tags:
|
|
167
|
+
- coding
|
|
156
168
|
parallel:
|
|
157
169
|
- name: ai-antipattern-fix-parallel
|
|
170
|
+
tags:
|
|
171
|
+
- coding
|
|
158
172
|
edit: true
|
|
159
173
|
persona: coder
|
|
160
174
|
policy:
|
|
@@ -182,6 +196,8 @@ steps:
|
|
|
182
196
|
- condition: Cannot proceed, insufficient info
|
|
183
197
|
instruction: ai-antipattern-fix
|
|
184
198
|
- name: supervise_fix_parallel
|
|
199
|
+
tags:
|
|
200
|
+
- coding
|
|
185
201
|
edit: true
|
|
186
202
|
persona: coder
|
|
187
203
|
policy:
|
|
@@ -213,6 +229,8 @@ steps:
|
|
|
213
229
|
- condition: any("No fix needed (verified target files/spec)", "Cannot proceed, insufficient info")
|
|
214
230
|
next: implement
|
|
215
231
|
- name: ai-antipattern-fix
|
|
232
|
+
tags:
|
|
233
|
+
- coding
|
|
216
234
|
edit: true
|
|
217
235
|
persona: coder
|
|
218
236
|
policy:
|
|
@@ -245,6 +263,8 @@ steps:
|
|
|
245
263
|
next: implement
|
|
246
264
|
instruction: ai-antipattern-fix
|
|
247
265
|
- name: supervise_fix
|
|
266
|
+
tags:
|
|
267
|
+
- coding
|
|
248
268
|
edit: true
|
|
249
269
|
persona: coder
|
|
250
270
|
policy:
|