takt 0.41.0 → 0.43.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 +59 -28
- package/builtins/en/config.yaml +9 -1
- package/builtins/en/facets/instructions/dual-team-leader-implement.md +7 -2
- package/builtins/en/facets/instructions/fix-maintenance.md +43 -0
- package/builtins/en/facets/instructions/implement-maintenance.md +72 -0
- package/builtins/en/facets/instructions/plan-maintenance.md +51 -0
- package/builtins/en/facets/instructions/review-coding.md +8 -0
- package/builtins/en/facets/instructions/supervise-maintenance.md +110 -0
- package/builtins/en/facets/instructions/team-leader-implement.md +6 -1
- package/builtins/en/facets/instructions/write-tests-first.md +5 -0
- package/builtins/en/facets/instructions/write-tests-maintenance.md +45 -0
- package/builtins/en/facets/knowledge/architecture.md +18 -13
- package/builtins/en/facets/knowledge/cqrs-es.md +48 -0
- package/builtins/en/facets/knowledge/existing-system.md +70 -0
- package/builtins/en/facets/knowledge/frontend.md +25 -0
- package/builtins/en/facets/knowledge/react.md +35 -0
- package/builtins/en/facets/output-contracts/coding-review.md +41 -0
- package/builtins/en/facets/output-contracts/frontend-review.md +1 -0
- package/builtins/en/facets/output-contracts/maintenance-scope.md +29 -0
- package/builtins/en/facets/personas/coding-reviewer.md +27 -0
- package/builtins/en/facets/personas/dual-supervisor.md +1 -1
- package/builtins/en/facets/policies/ai-antipattern.md +59 -0
- package/builtins/en/facets/policies/coding.md +85 -3
- package/builtins/en/facets/policies/existing-system-respect.md +73 -0
- package/builtins/en/facets/policies/qa.md +3 -1
- package/builtins/en/facets/policies/review.md +25 -12
- package/builtins/en/facets/policies/testing.md +33 -0
- package/builtins/en/workflow-categories.yaml +1 -0
- package/builtins/en/workflows/auto-improvement-loop.yaml +20 -4
- package/builtins/en/workflows/default-peer-review.yaml +25 -3
- package/builtins/en/workflows/frontend-maintenance.yaml +499 -0
- package/builtins/en/workflows/peer-review.yaml +23 -1
- package/builtins/en/workflows/review-fix-takt-default.yaml +30 -2
- package/builtins/ja/config.yaml +9 -1
- package/builtins/ja/facets/instructions/dual-team-leader-implement.md +7 -2
- package/builtins/ja/facets/instructions/fix-maintenance.md +43 -0
- package/builtins/ja/facets/instructions/implement-maintenance.md +72 -0
- package/builtins/ja/facets/instructions/plan-maintenance.md +51 -0
- package/builtins/ja/facets/instructions/review-coding.md +8 -0
- package/builtins/ja/facets/instructions/supervise-maintenance.md +110 -0
- package/builtins/ja/facets/instructions/team-leader-implement.md +6 -1
- package/builtins/ja/facets/instructions/write-tests-first.md +5 -0
- package/builtins/ja/facets/instructions/write-tests-maintenance.md +45 -0
- package/builtins/ja/facets/knowledge/architecture.md +18 -13
- package/builtins/ja/facets/knowledge/cqrs-es.md +48 -0
- package/builtins/ja/facets/knowledge/existing-system.md +70 -0
- package/builtins/ja/facets/knowledge/frontend.md +25 -0
- package/builtins/ja/facets/knowledge/react.md +35 -0
- package/builtins/ja/facets/output-contracts/coding-review.md +41 -0
- package/builtins/ja/facets/output-contracts/frontend-review.md +1 -0
- package/builtins/ja/facets/output-contracts/maintenance-scope.md +29 -0
- package/builtins/ja/facets/personas/coding-reviewer.md +27 -0
- package/builtins/ja/facets/personas/dual-supervisor.md +2 -2
- package/builtins/ja/facets/policies/ai-antipattern.md +59 -0
- package/builtins/ja/facets/policies/coding.md +85 -3
- package/builtins/ja/facets/policies/existing-system-respect.md +73 -0
- package/builtins/ja/facets/policies/qa.md +3 -1
- package/builtins/ja/facets/policies/review.md +25 -12
- package/builtins/ja/facets/policies/testing.md +33 -0
- package/builtins/ja/workflow-categories.yaml +1 -0
- package/builtins/ja/workflows/auto-improvement-loop.yaml +20 -4
- package/builtins/ja/workflows/default-peer-review.yaml +25 -3
- package/builtins/ja/workflows/frontend-maintenance.yaml +499 -0
- package/builtins/ja/workflows/peer-review.yaml +23 -1
- package/builtins/ja/workflows/review-fix-takt-default.yaml +30 -2
- package/builtins/skill/references/yaml-schema.md +8 -3
- package/builtins/skill-codex/references/yaml-schema.md +8 -3
- package/dist/agents/decompose-task-usecase.d.ts.map +1 -1
- package/dist/agents/decompose-task-usecase.js +3 -2
- package/dist/agents/decompose-task-usecase.js.map +1 -1
- package/dist/agents/judge-status-usecase.d.ts.map +1 -1
- package/dist/agents/judge-status-usecase.js +4 -3
- package/dist/agents/judge-status-usecase.js.map +1 -1
- package/dist/agents/provider-call-options.d.ts +4 -0
- package/dist/agents/provider-call-options.d.ts.map +1 -0
- package/dist/agents/provider-call-options.js +9 -0
- package/dist/agents/provider-call-options.js.map +1 -0
- package/dist/agents/runner.js +1 -1
- package/dist/agents/runner.js.map +1 -1
- package/dist/agents/structured-caller/prompt-based-structured-caller.d.ts.map +1 -1
- package/dist/agents/structured-caller/prompt-based-structured-caller.js +5 -4
- package/dist/agents/structured-caller/prompt-based-structured-caller.js.map +1 -1
- package/dist/agents/team-leader-structured-output.d.ts.map +1 -1
- package/dist/agents/team-leader-structured-output.js +21 -0
- package/dist/agents/team-leader-structured-output.js.map +1 -1
- package/dist/app/cli/commands.js +7 -1
- package/dist/app/cli/commands.js.map +1 -1
- package/dist/app/cli/program.js +1 -1
- package/dist/app/cli/program.js.map +1 -1
- package/dist/app/cli/routing.d.ts.map +1 -1
- package/dist/app/cli/routing.js +8 -1
- package/dist/app/cli/routing.js.map +1 -1
- package/dist/core/models/assistant-config.d.ts +4 -0
- package/dist/core/models/assistant-config.d.ts.map +1 -0
- package/dist/core/models/assistant-config.js +4 -0
- package/dist/core/models/assistant-config.js.map +1 -0
- package/dist/core/models/config-schemas.d.ts +160 -9
- package/dist/core/models/config-schemas.d.ts.map +1 -1
- package/dist/core/models/config-schemas.js +12 -2
- package/dist/core/models/config-schemas.js.map +1 -1
- package/dist/core/models/config-types.d.ts +30 -4
- package/dist/core/models/config-types.d.ts.map +1 -1
- 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/provider-profiles.d.ts +1 -1
- package/dist/core/models/provider-profiles.d.ts.map +1 -1
- package/dist/core/models/quality-gate-defaults.d.ts +2 -0
- package/dist/core/models/quality-gate-defaults.d.ts.map +1 -0
- package/dist/core/models/quality-gate-defaults.js +2 -0
- package/dist/core/models/quality-gate-defaults.js.map +1 -0
- package/dist/core/models/response.d.ts +1 -1
- package/dist/core/models/response.d.ts.map +1 -1
- package/dist/core/models/response.js +1 -1
- package/dist/core/models/response.js.map +1 -1
- package/dist/core/models/schema-base.d.ts +80 -3
- package/dist/core/models/schema-base.d.ts.map +1 -1
- package/dist/core/models/schema-base.js +76 -2
- package/dist/core/models/schema-base.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-provider-options.d.ts +7 -0
- package/dist/core/models/workflow-provider-options.d.ts.map +1 -1
- package/dist/core/models/workflow-schemas.d.ts +368 -51
- package/dist/core/models/workflow-schemas.d.ts.map +1 -1
- package/dist/core/models/workflow-system-input-types.d.ts +8 -1
- package/dist/core/models/workflow-system-input-types.d.ts.map +1 -1
- package/dist/core/models/workflow-system-schemas.d.ts +7 -1
- package/dist/core/models/workflow-system-schemas.d.ts.map +1 -1
- package/dist/core/models/workflow-system-schemas.js +12 -1
- package/dist/core/models/workflow-system-schemas.js.map +1 -1
- package/dist/core/models/workflow-types.d.ts +13 -5
- 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 +1 -0
- package/dist/core/workflow/engine/OptionsBuilder.d.ts.map +1 -1
- package/dist/core/workflow/engine/OptionsBuilder.js +9 -4
- package/dist/core/workflow/engine/OptionsBuilder.js.map +1 -1
- package/dist/core/workflow/engine/ParallelRunner.d.ts +11 -0
- package/dist/core/workflow/engine/ParallelRunner.d.ts.map +1 -1
- package/dist/core/workflow/engine/ParallelRunner.js +139 -19
- package/dist/core/workflow/engine/ParallelRunner.js.map +1 -1
- package/dist/core/workflow/engine/TeamLeaderRunner.d.ts.map +1 -1
- package/dist/core/workflow/engine/TeamLeaderRunner.js +55 -23
- package/dist/core/workflow/engine/TeamLeaderRunner.js.map +1 -1
- package/dist/core/workflow/engine/WorkflowEngine.d.ts +1 -0
- package/dist/core/workflow/engine/WorkflowEngine.d.ts.map +1 -1
- package/dist/core/workflow/engine/WorkflowEngine.js +29 -4
- package/dist/core/workflow/engine/WorkflowEngine.js.map +1 -1
- package/dist/core/workflow/engine/WorkflowEngineSetup.d.ts.map +1 -1
- package/dist/core/workflow/engine/WorkflowEngineSetup.js +2 -0
- package/dist/core/workflow/engine/WorkflowEngineSetup.js.map +1 -1
- package/dist/core/workflow/engine/WorkflowRunLoop.d.ts +8 -0
- package/dist/core/workflow/engine/WorkflowRunLoop.d.ts.map +1 -1
- package/dist/core/workflow/engine/WorkflowRunLoop.js +78 -7
- package/dist/core/workflow/engine/WorkflowRunLoop.js.map +1 -1
- package/dist/core/workflow/engine/team-leader-execution.d.ts +1 -0
- package/dist/core/workflow/engine/team-leader-execution.d.ts.map +1 -1
- package/dist/core/workflow/engine/team-leader-execution.js +22 -0
- package/dist/core/workflow/engine/team-leader-execution.js.map +1 -1
- package/dist/core/workflow/engine/team-leader-timeout-fallback.d.ts +13 -0
- package/dist/core/workflow/engine/team-leader-timeout-fallback.d.ts.map +1 -0
- package/dist/core/workflow/engine/team-leader-timeout-fallback.js +125 -0
- package/dist/core/workflow/engine/team-leader-timeout-fallback.js.map +1 -0
- package/dist/core/workflow/instruction/InstructionBuilder.d.ts.map +1 -1
- package/dist/core/workflow/instruction/InstructionBuilder.js +4 -3
- package/dist/core/workflow/instruction/InstructionBuilder.js.map +1 -1
- package/dist/core/workflow/observability/workflowSpans.d.ts +28 -0
- package/dist/core/workflow/observability/workflowSpans.d.ts.map +1 -0
- package/dist/core/workflow/observability/workflowSpans.js +107 -0
- package/dist/core/workflow/observability/workflowSpans.js.map +1 -0
- package/dist/core/workflow/part-definition-validator.d.ts.map +1 -1
- package/dist/core/workflow/part-definition-validator.js +4 -0
- package/dist/core/workflow/part-definition-validator.js.map +1 -1
- package/dist/core/workflow/permission-profile-resolution.d.ts.map +1 -1
- package/dist/core/workflow/permission-profile-resolution.js +1 -0
- package/dist/core/workflow/permission-profile-resolution.js.map +1 -1
- package/dist/core/workflow/phase-runner.d.ts +1 -3
- 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/quality-gates/commandGateMessage.d.ts +4 -0
- package/dist/core/workflow/quality-gates/commandGateMessage.d.ts.map +1 -0
- package/dist/core/workflow/quality-gates/commandGateMessage.js +84 -0
- package/dist/core/workflow/quality-gates/commandGateMessage.js.map +1 -0
- package/dist/core/workflow/quality-gates/commandGateRunner.d.ts +3 -0
- package/dist/core/workflow/quality-gates/commandGateRunner.d.ts.map +1 -0
- package/dist/core/workflow/quality-gates/commandGateRunner.js +242 -0
- package/dist/core/workflow/quality-gates/commandGateRunner.js.map +1 -0
- package/dist/core/workflow/quality-gates/qualityGateRunner.d.ts +3 -0
- package/dist/core/workflow/quality-gates/qualityGateRunner.d.ts.map +1 -0
- package/dist/core/workflow/quality-gates/qualityGateRunner.js +29 -0
- package/dist/core/workflow/quality-gates/qualityGateRunner.js.map +1 -0
- package/dist/core/workflow/quality-gates/types.d.ts +41 -0
- package/dist/core/workflow/quality-gates/types.d.ts.map +1 -0
- package/dist/core/workflow/quality-gates/types.js +2 -0
- package/dist/core/workflow/quality-gates/types.js.map +1 -0
- package/dist/core/workflow/report-phase-runner.d.ts.map +1 -1
- package/dist/core/workflow/report-phase-runner.js +3 -2
- package/dist/core/workflow/report-phase-runner.js.map +1 -1
- package/dist/core/workflow/run/run-meta.d.ts +3 -1
- package/dist/core/workflow/run/run-meta.d.ts.map +1 -1
- package/dist/core/workflow/run/run-meta.js +2 -0
- package/dist/core/workflow/run/run-meta.js.map +1 -1
- package/dist/core/workflow/run/run-slug.d.ts +2 -0
- package/dist/core/workflow/run/run-slug.d.ts.map +1 -0
- package/dist/core/workflow/run/run-slug.js +19 -0
- package/dist/core/workflow/run/run-slug.js.map +1 -0
- package/dist/core/workflow/status-judgment-phase.d.ts.map +1 -1
- package/dist/core/workflow/status-judgment-phase.js +7 -3
- package/dist/core/workflow/status-judgment-phase.js.map +1 -1
- package/dist/core/workflow/system/system-step-effect-runner.d.ts.map +1 -1
- package/dist/core/workflow/system/system-step-effect-runner.js +16 -1
- package/dist/core/workflow/system/system-step-effect-runner.js.map +1 -1
- package/dist/core/workflow/team-leader-continuation-ids.d.ts +3 -0
- package/dist/core/workflow/team-leader-continuation-ids.d.ts.map +1 -0
- package/dist/core/workflow/team-leader-continuation-ids.js +6 -0
- package/dist/core/workflow/team-leader-continuation-ids.js.map +1 -0
- package/dist/core/workflow/types.d.ts +7 -1
- package/dist/core/workflow/types.d.ts.map +1 -1
- package/dist/features/interactive/assistantInitFiles.d.ts +2 -0
- package/dist/features/interactive/assistantInitFiles.d.ts.map +1 -0
- package/dist/features/interactive/assistantInitFiles.js +110 -0
- package/dist/features/interactive/assistantInitFiles.js.map +1 -0
- package/dist/features/interactive/conversationLoop.d.ts +5 -1
- package/dist/features/interactive/conversationLoop.d.ts.map +1 -1
- package/dist/features/interactive/conversationLoop.js +33 -11
- package/dist/features/interactive/conversationLoop.js.map +1 -1
- package/dist/features/interactive/imageAttachments.d.ts +20 -0
- package/dist/features/interactive/imageAttachments.d.ts.map +1 -0
- package/dist/features/interactive/imageAttachments.js +75 -0
- package/dist/features/interactive/imageAttachments.js.map +1 -0
- package/dist/features/interactive/index.d.ts +2 -1
- package/dist/features/interactive/index.d.ts.map +1 -1
- package/dist/features/interactive/index.js +1 -1
- package/dist/features/interactive/index.js.map +1 -1
- package/dist/features/interactive/inlineImagePaste.d.ts +21 -0
- package/dist/features/interactive/inlineImagePaste.d.ts.map +1 -0
- package/dist/features/interactive/inlineImagePaste.js +136 -0
- package/dist/features/interactive/inlineImagePaste.js.map +1 -0
- package/dist/features/interactive/instructModeTypes.d.ts +23 -0
- package/dist/features/interactive/instructModeTypes.d.ts.map +1 -0
- package/dist/features/interactive/instructModeTypes.js +2 -0
- package/dist/features/interactive/instructModeTypes.js.map +1 -0
- package/dist/features/interactive/interactive-summary.d.ts +1 -1
- package/dist/features/interactive/interactive-summary.d.ts.map +1 -1
- package/dist/features/interactive/interactive-summary.js +4 -3
- package/dist/features/interactive/interactive-summary.js.map +1 -1
- package/dist/features/interactive/interactive.d.ts +8 -3
- package/dist/features/interactive/interactive.d.ts.map +1 -1
- package/dist/features/interactive/interactive.js +4 -0
- package/dist/features/interactive/interactive.js.map +1 -1
- package/dist/features/interactive/interactiveInput.d.ts +2 -1
- package/dist/features/interactive/interactiveInput.d.ts.map +1 -1
- package/dist/features/interactive/interactiveInput.js +5 -1
- package/dist/features/interactive/interactiveInput.js.map +1 -1
- package/dist/features/interactive/lineEditor.d.ts +2 -0
- package/dist/features/interactive/lineEditor.d.ts.map +1 -1
- package/dist/features/interactive/lineEditor.js +130 -9
- package/dist/features/interactive/lineEditor.js.map +1 -1
- package/dist/features/interactive/passthroughMode.d.ts.map +1 -1
- package/dist/features/interactive/passthroughMode.js +8 -4
- package/dist/features/interactive/passthroughMode.js.map +1 -1
- package/dist/features/interactive/promptSections.d.ts +2 -0
- package/dist/features/interactive/promptSections.d.ts.map +1 -1
- package/dist/features/interactive/promptSections.js +7 -1
- package/dist/features/interactive/promptSections.js.map +1 -1
- package/dist/features/interactive/quietMode.d.ts.map +1 -1
- package/dist/features/interactive/quietMode.js +12 -8
- package/dist/features/interactive/quietMode.js.map +1 -1
- package/dist/features/interactive/retryMode.d.ts +10 -13
- package/dist/features/interactive/retryMode.d.ts.map +1 -1
- package/dist/features/interactive/retryMode.js +42 -22
- package/dist/features/interactive/retryMode.js.map +1 -1
- package/dist/features/interactive/slashCommandRegistry.d.ts.map +1 -1
- package/dist/features/interactive/slashCommandRegistry.js +1 -0
- package/dist/features/interactive/slashCommandRegistry.js.map +1 -1
- package/dist/features/tasks/add/index.d.ts +4 -0
- package/dist/features/tasks/add/index.d.ts.map +1 -1
- package/dist/features/tasks/add/index.js +12 -29
- package/dist/features/tasks/add/index.js.map +1 -1
- package/dist/features/tasks/attachments.d.ts +19 -0
- package/dist/features/tasks/attachments.d.ts.map +1 -0
- package/dist/features/tasks/attachments.js +129 -0
- package/dist/features/tasks/attachments.js.map +1 -0
- package/dist/features/tasks/execute/resolveTask.d.ts.map +1 -1
- package/dist/features/tasks/execute/resolveTask.js +4 -3
- package/dist/features/tasks/execute/resolveTask.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 +10 -4
- 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 +48 -4
- package/dist/features/tasks/execute/selectAndExecute.js.map +1 -1
- package/dist/features/tasks/execute/taskSpecContext.d.ts +7 -2
- package/dist/features/tasks/execute/taskSpecContext.d.ts.map +1 -1
- package/dist/features/tasks/execute/taskSpecContext.js +23 -36
- package/dist/features/tasks/execute/taskSpecContext.js.map +1 -1
- package/dist/features/tasks/execute/taskWorkflowExecution.d.ts.map +1 -1
- package/dist/features/tasks/execute/taskWorkflowExecution.js +2 -1
- package/dist/features/tasks/execute/taskWorkflowExecution.js.map +1 -1
- package/dist/features/tasks/execute/traceReportRedaction.d.ts +0 -1
- package/dist/features/tasks/execute/traceReportRedaction.d.ts.map +1 -1
- package/dist/features/tasks/execute/traceReportRedaction.js +1 -9
- package/dist/features/tasks/execute/traceReportRedaction.js.map +1 -1
- package/dist/features/tasks/execute/types.d.ts +8 -0
- 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 +12 -1
- package/dist/features/tasks/execute/workflowExecution.js.map +1 -1
- package/dist/features/tasks/execute/workflowExecutionBootstrap.d.ts +5 -1
- package/dist/features/tasks/execute/workflowExecutionBootstrap.d.ts.map +1 -1
- package/dist/features/tasks/execute/workflowExecutionBootstrap.js +7 -2
- package/dist/features/tasks/execute/workflowExecutionBootstrap.js.map +1 -1
- package/dist/features/tasks/index.d.ts +1 -0
- package/dist/features/tasks/index.d.ts.map +1 -1
- package/dist/features/tasks/index.js +1 -0
- package/dist/features/tasks/index.js.map +1 -1
- package/dist/features/tasks/list/instructMode.d.ts +2 -20
- package/dist/features/tasks/list/instructMode.d.ts.map +1 -1
- package/dist/features/tasks/list/instructMode.js +15 -4
- package/dist/features/tasks/list/instructMode.js.map +1 -1
- package/dist/features/tasks/list/retryTaskSpecAttachments.d.ts +8 -0
- package/dist/features/tasks/list/retryTaskSpecAttachments.d.ts.map +1 -0
- package/dist/features/tasks/list/retryTaskSpecAttachments.js +87 -0
- package/dist/features/tasks/list/retryTaskSpecAttachments.js.map +1 -0
- package/dist/features/tasks/list/taskInstructionActions.d.ts.map +1 -1
- package/dist/features/tasks/list/taskInstructionActions.js +20 -2
- package/dist/features/tasks/list/taskInstructionActions.js.map +1 -1
- package/dist/features/tasks/list/taskRetryActions.d.ts.map +1 -1
- package/dist/features/tasks/list/taskRetryActions.js +24 -6
- package/dist/features/tasks/list/taskRetryActions.js.map +1 -1
- package/dist/features/tasks/resume/directInstructMode.d.ts +13 -0
- package/dist/features/tasks/resume/directInstructMode.d.ts.map +1 -0
- package/dist/features/tasks/resume/directInstructMode.js +67 -0
- package/dist/features/tasks/resume/directInstructMode.js.map +1 -0
- package/dist/features/tasks/resume/directRunFinder.d.ts +7 -0
- package/dist/features/tasks/resume/directRunFinder.d.ts.map +1 -0
- package/dist/features/tasks/resume/directRunFinder.js +43 -0
- package/dist/features/tasks/resume/directRunFinder.js.map +1 -0
- package/dist/features/tasks/resume/index.d.ts +3 -0
- package/dist/features/tasks/resume/index.d.ts.map +1 -0
- package/dist/features/tasks/resume/index.js +229 -0
- package/dist/features/tasks/resume/index.js.map +1 -0
- package/dist/features/tasks/taskSpecFile.d.ts +2 -0
- package/dist/features/tasks/taskSpecFile.d.ts.map +1 -0
- package/dist/features/tasks/taskSpecFile.js +38 -0
- package/dist/features/tasks/taskSpecFile.js.map +1 -0
- package/dist/infra/claude/executor.d.ts.map +1 -1
- package/dist/infra/claude/executor.js +27 -6
- package/dist/infra/claude/executor.js.map +1 -1
- package/dist/infra/claude/mcp-config.d.ts +7 -0
- package/dist/infra/claude/mcp-config.d.ts.map +1 -0
- package/dist/infra/claude/mcp-config.js +30 -0
- package/dist/infra/claude/mcp-config.js.map +1 -0
- package/dist/infra/claude-headless/client.d.ts.map +1 -1
- package/dist/infra/claude-headless/client.js +5 -40
- package/dist/infra/claude-headless/client.js.map +1 -1
- package/dist/infra/claude-headless/result-response.js +1 -1
- package/dist/infra/claude-headless/result-response.js.map +1 -1
- package/dist/infra/claude-terminal/client.d.ts +4 -0
- package/dist/infra/claude-terminal/client.d.ts.map +1 -0
- package/dist/infra/claude-terminal/client.js +314 -0
- package/dist/infra/claude-terminal/client.js.map +1 -0
- package/dist/infra/claude-terminal/command.d.ts +4 -0
- package/dist/infra/claude-terminal/command.d.ts.map +1 -0
- package/dist/infra/claude-terminal/command.js +50 -0
- package/dist/infra/claude-terminal/command.js.map +1 -0
- package/dist/infra/claude-terminal/response-normalizer.d.ts +14 -0
- package/dist/infra/claude-terminal/response-normalizer.d.ts.map +1 -0
- package/dist/infra/claude-terminal/response-normalizer.js +118 -0
- package/dist/infra/claude-terminal/response-normalizer.js.map +1 -0
- package/dist/infra/claude-terminal/tmux-backend.d.ts +7 -0
- package/dist/infra/claude-terminal/tmux-backend.d.ts.map +1 -0
- package/dist/infra/claude-terminal/tmux-backend.js +177 -0
- package/dist/infra/claude-terminal/tmux-backend.js.map +1 -0
- package/dist/infra/claude-terminal/transcript-reader.d.ts +13 -0
- package/dist/infra/claude-terminal/transcript-reader.d.ts.map +1 -0
- package/dist/infra/claude-terminal/transcript-reader.js +329 -0
- package/dist/infra/claude-terminal/transcript-reader.js.map +1 -0
- package/dist/infra/claude-terminal/types.d.ts +106 -0
- package/dist/infra/claude-terminal/types.d.ts.map +1 -0
- package/dist/infra/claude-terminal/types.js +2 -0
- package/dist/infra/claude-terminal/types.js.map +1 -0
- package/dist/infra/codex/CodexStreamHandler.d.ts +4 -2
- package/dist/infra/codex/CodexStreamHandler.d.ts.map +1 -1
- package/dist/infra/codex/CodexStreamHandler.js +55 -21
- package/dist/infra/codex/CodexStreamHandler.js.map +1 -1
- package/dist/infra/codex/client.d.ts +2 -0
- package/dist/infra/codex/client.d.ts.map +1 -1
- package/dist/infra/codex/client.js +42 -6
- package/dist/infra/codex/client.js.map +1 -1
- package/dist/infra/config/configNormalizers.d.ts +23 -16
- package/dist/infra/config/configNormalizers.d.ts.map +1 -1
- package/dist/infra/config/configNormalizers.js +69 -7
- 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 +7 -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 +7 -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 +5 -0
- 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 +10 -0
- package/dist/infra/config/global/globalConfigSerializer.js.map +1 -1
- package/dist/infra/config/global/initialization.d.ts +1 -1
- package/dist/infra/config/global/initialization.d.ts.map +1 -1
- package/dist/infra/config/global/initialization.js +1 -0
- package/dist/infra/config/global/initialization.js.map +1 -1
- package/dist/infra/config/loaders/qualityGateOverrides.d.ts +3 -2
- package/dist/infra/config/loaders/qualityGateOverrides.d.ts.map +1 -1
- package/dist/infra/config/loaders/qualityGateOverrides.js +42 -3
- package/dist/infra/config/loaders/qualityGateOverrides.js.map +1 -1
- package/dist/infra/config/loaders/workflowFileLoader.d.ts.map +1 -1
- package/dist/infra/config/loaders/workflowFileLoader.js +2 -2
- package/dist/infra/config/loaders/workflowFileLoader.js.map +1 -1
- package/dist/infra/config/loaders/workflowNormalizationPolicies.d.ts +3 -1
- package/dist/infra/config/loaders/workflowNormalizationPolicies.d.ts.map +1 -1
- package/dist/infra/config/loaders/workflowNormalizationPolicies.js +28 -0
- package/dist/infra/config/loaders/workflowNormalizationPolicies.js.map +1 -1
- package/dist/infra/config/loaders/workflowParser.d.ts +2 -2
- package/dist/infra/config/loaders/workflowParser.d.ts.map +1 -1
- package/dist/infra/config/loaders/workflowParser.js +3 -2
- package/dist/infra/config/loaders/workflowParser.js.map +1 -1
- package/dist/infra/config/loaders/workflowStepNormalizer.d.ts.map +1 -1
- package/dist/infra/config/loaders/workflowStepNormalizer.js +2 -1
- package/dist/infra/config/loaders/workflowStepNormalizer.js.map +1 -1
- package/dist/infra/config/observabilityConfig.d.ts +13 -0
- package/dist/infra/config/observabilityConfig.d.ts.map +1 -0
- package/dist/infra/config/observabilityConfig.js +52 -0
- package/dist/infra/config/observabilityConfig.js.map +1 -0
- package/dist/infra/config/project/projectConfig.d.ts.map +1 -1
- package/dist/infra/config/project/projectConfig.js +23 -5
- package/dist/infra/config/project/projectConfig.js.map +1 -1
- package/dist/infra/config/project/projectConfigTransforms.d.ts +5 -1
- package/dist/infra/config/project/projectConfigTransforms.d.ts.map +1 -1
- package/dist/infra/config/project/projectConfigTransforms.js +8 -0
- package/dist/infra/config/project/projectConfigTransforms.js.map +1 -1
- package/dist/infra/config/providerOptions.d.ts +8 -2
- package/dist/infra/config/providerOptions.d.ts.map +1 -1
- package/dist/infra/config/providerOptions.js +49 -1
- package/dist/infra/config/providerOptions.js.map +1 -1
- package/dist/infra/config/providerOptionsContract.d.ts +3 -3
- package/dist/infra/config/providerOptionsContract.d.ts.map +1 -1
- package/dist/infra/config/providerOptionsContract.js +14 -0
- package/dist/infra/config/providerOptionsContract.js.map +1 -1
- package/dist/infra/config/resolveConfigValue.d.ts.map +1 -1
- package/dist/infra/config/resolveConfigValue.js +18 -0
- package/dist/infra/config/resolveConfigValue.js.map +1 -1
- package/dist/infra/config/resolvedConfig.d.ts +2 -1
- package/dist/infra/config/resolvedConfig.d.ts.map +1 -1
- package/dist/infra/config/traced/tracedConfigSchema.d.ts.map +1 -1
- package/dist/infra/config/traced/tracedConfigSchema.js +16 -0
- package/dist/infra/config/traced/tracedConfigSchema.js.map +1 -1
- package/dist/infra/git/format.d.ts.map +1 -1
- package/dist/infra/git/format.js +75 -8
- package/dist/infra/git/format.js.map +1 -1
- package/dist/infra/git/index.d.ts +1 -1
- package/dist/infra/git/index.d.ts.map +1 -1
- package/dist/infra/git/types.d.ts +5 -0
- package/dist/infra/git/types.d.ts.map +1 -1
- package/dist/infra/github/pr.d.ts.map +1 -1
- package/dist/infra/github/pr.js +174 -28
- package/dist/infra/github/pr.js.map +1 -1
- package/dist/infra/observability/otelFoundation.d.ts +6 -0
- package/dist/infra/observability/otelFoundation.d.ts.map +1 -0
- package/dist/infra/observability/otelFoundation.js +89 -0
- package/dist/infra/observability/otelFoundation.js.map +1 -0
- package/dist/infra/opencode/client.d.ts.map +1 -1
- package/dist/infra/opencode/client.js +19 -15
- package/dist/infra/opencode/client.js.map +1 -1
- package/dist/infra/providers/claude-terminal.d.ts +6 -0
- package/dist/infra/providers/claude-terminal.d.ts.map +1 -0
- package/dist/infra/providers/claude-terminal.js +70 -0
- package/dist/infra/providers/claude-terminal.js.map +1 -0
- package/dist/infra/providers/index.d.ts.map +1 -1
- package/dist/infra/providers/index.js +2 -0
- package/dist/infra/providers/index.js.map +1 -1
- package/dist/infra/providers/provider-capabilities.d.ts +1 -0
- package/dist/infra/providers/provider-capabilities.d.ts.map +1 -1
- package/dist/infra/providers/provider-capabilities.js +16 -0
- package/dist/infra/providers/provider-capabilities.js.map +1 -1
- package/dist/infra/rate-limit/detection.d.ts +2 -0
- package/dist/infra/rate-limit/detection.d.ts.map +1 -1
- package/dist/infra/rate-limit/detection.js +14 -1
- package/dist/infra/rate-limit/detection.js.map +1 -1
- package/dist/infra/task/clone-base-branch.d.ts +11 -0
- package/dist/infra/task/clone-base-branch.d.ts.map +1 -1
- package/dist/infra/task/clone-base-branch.js +34 -4
- package/dist/infra/task/clone-base-branch.js.map +1 -1
- package/dist/infra/task/clone.d.ts +2 -1
- package/dist/infra/task/clone.d.ts.map +1 -1
- package/dist/infra/task/clone.js +20 -3
- 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/projectLocalTaktSync.d.ts.map +1 -1
- package/dist/infra/task/projectLocalTaktSync.js +6 -2
- package/dist/infra/task/projectLocalTaktSync.js.map +1 -1
- package/dist/infra/task/runner.d.ts +2 -2
- package/dist/infra/task/runner.d.ts.map +1 -1
- package/dist/infra/task/runner.js +4 -4
- package/dist/infra/task/runner.js.map +1 -1
- package/dist/infra/task/taskRecordMutations.d.ts +1 -1
- package/dist/infra/task/taskRecordMutations.d.ts.map +1 -1
- package/dist/infra/task/taskRecordMutations.js +5 -1
- package/dist/infra/task/taskRecordMutations.js.map +1 -1
- package/dist/infra/task/taskRetryService.d.ts +2 -2
- package/dist/infra/task/taskRetryService.d.ts.map +1 -1
- package/dist/infra/task/taskRetryService.js +4 -4
- package/dist/infra/task/taskRetryService.js.map +1 -1
- package/dist/infra/workflow/system/system-enqueue-effect.d.ts +2 -2
- package/dist/infra/workflow/system/system-enqueue-effect.d.ts.map +1 -1
- package/dist/infra/workflow/system/system-enqueue-effect.js +5 -2
- package/dist/infra/workflow/system/system-enqueue-effect.js.map +1 -1
- package/dist/shared/constants.d.ts +1 -0
- package/dist/shared/constants.d.ts.map +1 -1
- package/dist/shared/constants.js +1 -0
- package/dist/shared/constants.js.map +1 -1
- package/dist/shared/i18n/labels_en.yaml +3 -1
- package/dist/shared/i18n/labels_ja.yaml +3 -1
- package/dist/shared/prompts/en/score_direct_instruct_system_prompt.md +63 -0
- package/dist/shared/prompts/en/score_retry_system_prompt.md +2 -2
- package/dist/shared/prompts/ja/score_direct_instruct_system_prompt.md +63 -0
- package/dist/shared/prompts/ja/score_retry_system_prompt.md +2 -2
- package/dist/shared/types/provider.d.ts +1 -1
- package/dist/shared/types/provider.d.ts.map +1 -1
- package/dist/shared/utils/debug.d.ts +2 -0
- package/dist/shared/utils/debug.d.ts.map +1 -1
- package/dist/shared/utils/debug.js +1 -0
- package/dist/shared/utils/debug.js.map +1 -1
- package/dist/shared/utils/sensitiveText.d.ts +2 -0
- package/dist/shared/utils/sensitiveText.d.ts.map +1 -0
- package/dist/shared/utils/sensitiveText.js +40 -0
- package/dist/shared/utils/sensitiveText.js.map +1 -0
- package/package.json +4 -2
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Existing System Respect Policy
|
|
2
|
+
|
|
3
|
+
For released or operational systems, make only the minimum changes required by the request and avoid changing existing contracts unnecessarily.
|
|
4
|
+
|
|
5
|
+
## Principles
|
|
6
|
+
|
|
7
|
+
| Principle | Criteria |
|
|
8
|
+
|-----------|----------|
|
|
9
|
+
| Existing contracts first | Preserve contracts relied on by users, tests, and operations |
|
|
10
|
+
| Minimum diff | Keep only changes required to satisfy the request |
|
|
11
|
+
| Necessity over proximity | Do not use nearby code as a reason to change it |
|
|
12
|
+
| Respect existing structure | Do not change file placement, type names, public APIs, or responsibility boundaries without explicit need |
|
|
13
|
+
| Preserve comments | Do not delete comments that explain intent, constraints, or calculation rationale |
|
|
14
|
+
| Tests are contracts | Do not treat behavior asserted by existing tests as incidental |
|
|
15
|
+
| Separate improvements | Style or cleanup improvements must be directly required by the task |
|
|
16
|
+
| Maintenance constraints first | Prefer preserving existing behavior and structure over general quality improvements |
|
|
17
|
+
|
|
18
|
+
## Change Boundary
|
|
19
|
+
|
|
20
|
+
| Criteria | Verdict |
|
|
21
|
+
|----------|---------|
|
|
22
|
+
| Change required to satisfy the request | OK |
|
|
23
|
+
| Call-site update required to wire a necessary change | OK |
|
|
24
|
+
| Local fix required to prevent side effects of a necessary change | OK |
|
|
25
|
+
| Cleanup justified only because the file was touched | REJECT |
|
|
26
|
+
| Moving files, renaming types, or changing public APIs without explicit need | REJECT |
|
|
27
|
+
| Mixing framework-style improvements into the task | REJECT |
|
|
28
|
+
| Including improvements that can be handled in another PR | REJECT |
|
|
29
|
+
|
|
30
|
+
## Priority Against Other Policies
|
|
31
|
+
|
|
32
|
+
In existing-system maintenance, apply general quality policies such as coding, frontend, design-fidelity, and testing only within the scope required by the request.
|
|
33
|
+
|
|
34
|
+
| Conflict | Verdict |
|
|
35
|
+
|----------|---------|
|
|
36
|
+
| General quality criteria suggest an improvement, but the request does not require it | Do not change |
|
|
37
|
+
| Existing structure is imperfect, but can satisfy this request | Preserve existing structure |
|
|
38
|
+
| Satisfying a quality criterion requires changing an existing contract | Requires an explicit user request or plan-level rationale |
|
|
39
|
+
| A minimal structural change is required for a bug fix | Make it with reason and impact scope documented |
|
|
40
|
+
|
|
41
|
+
## Observable Contracts
|
|
42
|
+
|
|
43
|
+
UI, accessibility, tests, logs, APIs, types, file placement, and comments can be contracts observed by users or developers.
|
|
44
|
+
|
|
45
|
+
| Contract | Change condition |
|
|
46
|
+
|----------|------------------|
|
|
47
|
+
| UI copy, accessible names, role/state | Change only when directly required by the request |
|
|
48
|
+
| Hook return values, Props type names, public function names | Change only when caller updates are required to satisfy the request |
|
|
49
|
+
| Test expectations | Change only when the requested behavior changes |
|
|
50
|
+
| Comments | Change only when correcting inaccurate comments or when code makes them truly obsolete |
|
|
51
|
+
| File placement | Change only when the existing structure cannot satisfy the request |
|
|
52
|
+
|
|
53
|
+
## Test Changes
|
|
54
|
+
|
|
55
|
+
Tests should distinguish existing contracts from new requirements, not merely follow the implementation.
|
|
56
|
+
|
|
57
|
+
| Pattern | Verdict |
|
|
58
|
+
|---------|---------|
|
|
59
|
+
| Add tests for new requirements | OK |
|
|
60
|
+
| Add regression tests to preserve existing contracts | OK |
|
|
61
|
+
| Merely weaken existing expectations to match implementation changes | REJECT |
|
|
62
|
+
| Remove tested existing behavior to make tests pass | REJECT |
|
|
63
|
+
| Delete tests because they obstruct the new implementation | REJECT |
|
|
64
|
+
|
|
65
|
+
## Pre-Completion Check
|
|
66
|
+
|
|
67
|
+
Before completion, classify the full diff as required changes, related changes, or unnecessary changes. Do not complete while unnecessary changes remain.
|
|
68
|
+
|
|
69
|
+
| Classification | Criteria |
|
|
70
|
+
|----------------|----------|
|
|
71
|
+
| Required change | The request fails without it |
|
|
72
|
+
| Related change | Needed to connect, verify, or keep a required change consistent |
|
|
73
|
+
| Unnecessary change | Justified only by readability, style, cleanup, or future extensibility |
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
|
|
23
23
|
| Pattern | Verdict |
|
|
24
24
|
|---------|---------|
|
|
25
|
-
|
|
|
25
|
+
| TODO/FIXME without an issue number, external blocker, and removal condition | REJECT |
|
|
26
|
+
| TODO/FIXME with issue number, external blocker, and removal condition | Warning |
|
|
27
|
+
| Empty implementations, stubs, or commented-out old implementations left behind | REJECT |
|
|
26
28
|
| @ts-ignore, @ts-expect-error without reason | Warning |
|
|
27
29
|
| eslint-disable without reason | Warning |
|
|
28
30
|
| Usage of deprecated APIs | Warning |
|
|
@@ -10,7 +10,7 @@ Define the shared judgment criteria and behavioral principles for all reviewers.
|
|
|
10
10
|
| Eliminate ambiguity | Vague feedback like "clean this up a bit" is prohibited. Specify file, line, and proposed fix |
|
|
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
|
-
| Boy Scout |
|
|
13
|
+
| 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 |
|
|
14
14
|
|
|
15
15
|
## Scope Determination
|
|
16
16
|
|
|
@@ -18,9 +18,10 @@ Define the shared judgment criteria and behavioral principles for all reviewers.
|
|
|
18
18
|
|-----------|---------|--------|
|
|
19
19
|
| Problem introduced by this change | Blocking | REJECT |
|
|
20
20
|
| Code made unused by this change (arguments, imports, variables, functions) | Blocking | REJECT (change-induced problem) |
|
|
21
|
-
| Existing problem in
|
|
22
|
-
| Structural problem
|
|
21
|
+
| Existing problem in changed or directly related code | Blocking | REJECT (Boy Scout rule) |
|
|
22
|
+
| Structural problem directly affecting correctness of the change | Blocking | REJECT if within scope |
|
|
23
23
|
| Problem in an unchanged file | Non-blocking | Record only (informational) |
|
|
24
|
+
| Existing problem that merely shares a changed file but does not directly affect correctness of the change | Non-blocking | Record only (informational) |
|
|
24
25
|
| Refactoring that greatly exceeds task scope | Non-blocking | Note as a suggestion |
|
|
25
26
|
|
|
26
27
|
## Judgment Criteria
|
|
@@ -37,13 +38,15 @@ REJECT without exception if any of the following apply.
|
|
|
37
38
|
- Unused code ("just in case" code)
|
|
38
39
|
- Direct mutation of objects/arrays
|
|
39
40
|
- Swallowed errors (empty catch blocks)
|
|
40
|
-
- TODO
|
|
41
|
+
- TODO/FIXME without an issue number, external blocker, and removal condition
|
|
41
42
|
- Essentially identical logic duplicated (DRY violation)
|
|
42
43
|
- Method proliferation doing the same thing (should be absorbed by configuration differences)
|
|
43
44
|
- Specific implementation leaking into generic layers (imports and branching for specific implementations in generic layers)
|
|
44
45
|
- Internal implementation exported from public API (infrastructure functions or internal classes exposed publicly)
|
|
45
46
|
- Replaced code/exports surviving after refactoring
|
|
46
47
|
- Missing cross-validation of related fields (invariants of semantically coupled config values left unverified)
|
|
48
|
+
- Missing caller, producer, or test data updates after a contract change
|
|
49
|
+
- Sensitive data exposed in logs, error responses, or test output
|
|
47
50
|
|
|
48
51
|
A DRY finding is not complete unless the proposed consolidation target is also sound. A consolidation proposal is invalid unless all of the following hold.
|
|
49
52
|
|
|
@@ -59,7 +62,7 @@ Not blocking, but improvement is recommended.
|
|
|
59
62
|
- Tests coupled to implementation details
|
|
60
63
|
- Overly complex functions/files
|
|
61
64
|
- Unclear naming
|
|
62
|
-
-
|
|
65
|
+
- TODO/FIXME with issue number, external blocker, and removal condition
|
|
63
66
|
- `@ts-ignore` or `eslint-disable` without justification
|
|
64
67
|
|
|
65
68
|
### APPROVE
|
|
@@ -73,7 +76,7 @@ Always verify facts before raising an issue.
|
|
|
73
76
|
| Do | Do Not |
|
|
74
77
|
|----|--------|
|
|
75
78
|
| Open the file and check actual code | Assume "it should be fixed already" |
|
|
76
|
-
| Search for call sites and usages
|
|
79
|
+
| Search for call sites and usages | Raise issues based on memory |
|
|
77
80
|
| Cross-reference type definitions and schemas | Guess that code is dead |
|
|
78
81
|
| Distinguish generated files (reports, etc.) from source | Review generated files as if they were source code |
|
|
79
82
|
| Verify tool output is readable and uncorrupted | Raise issues based on garbled or abnormal output |
|
|
@@ -175,19 +178,20 @@ Leave it better than you found it.
|
|
|
175
178
|
|
|
176
179
|
### In Scope
|
|
177
180
|
|
|
178
|
-
- Existing problems in changed
|
|
179
|
-
- Structural problems
|
|
181
|
+
- Existing problems in changed code or in areas directly affecting correctness, contracts, or wiring of the change (unused code, poor naming, broken abstractions)
|
|
182
|
+
- Structural problems directly affecting correctness of the change (mixed responsibilities, unnecessary dependencies)
|
|
180
183
|
|
|
181
184
|
### Out of Scope
|
|
182
185
|
|
|
183
186
|
- Unchanged files (record existing issues only)
|
|
187
|
+
- Existing problems that merely share a changed file but do not directly affect correctness, contracts, or wiring of the change
|
|
184
188
|
- Refactoring that greatly exceeds task scope (note as a suggestion, non-blocking)
|
|
185
189
|
|
|
186
190
|
### Judgment
|
|
187
191
|
|
|
188
192
|
| Situation | Verdict |
|
|
189
193
|
|-----------|---------|
|
|
190
|
-
| Changed
|
|
194
|
+
| Changed or directly related code has an obvious problem | REJECT — have it fixed together |
|
|
191
195
|
| Redundant expression (a shorter equivalent exists) | REJECT |
|
|
192
196
|
| Unnecessary branch/condition (unreachable or always the same result) | REJECT |
|
|
193
197
|
| Fixable in seconds to minutes | REJECT (do not mark as "non-blocking") |
|
|
@@ -198,15 +202,24 @@ Do not tolerate problems just because existing code does the same. If existing c
|
|
|
198
202
|
|
|
199
203
|
## Judgment Rules
|
|
200
204
|
|
|
201
|
-
-
|
|
202
|
-
- Only issues
|
|
203
|
-
- "The code itself existed before" is not a valid reason for non-blocking
|
|
205
|
+
- Issues detected in changed code or in areas directly affecting correctness, contracts, or wiring of the change are blocking (REJECT targets), even if the code existed before the change
|
|
206
|
+
- Only issues not directly related to the change may be classified as "existing problems" or "non-blocking"
|
|
207
|
+
- "The code itself existed before" is not a valid reason for non-blocking when the issue is in changed or directly related code
|
|
204
208
|
- If even one issue exists, REJECT. "APPROVE with warnings" or "APPROVE with suggestions" is prohibited
|
|
205
209
|
|
|
206
210
|
## Basic Review Procedure
|
|
207
211
|
|
|
208
212
|
Common procedure that every reviewer must follow. Do not duplicate this in individual instructions.
|
|
209
213
|
|
|
214
|
+
### Diff Baseline (Anchor to the Base)
|
|
215
|
+
|
|
216
|
+
The review target is the entire cumulative diff from the task's starting point (the base), not just the changes from the most recent iteration.
|
|
217
|
+
|
|
218
|
+
- In the fix ↔ review loop, recompute the diff from the base every time and evaluate the whole. Do not move the baseline to the latest fix
|
|
219
|
+
- The base is the merge-base with the integration branch, or the starting point recorded in `plan` / `order`. Do not treat only the "changes" section of `Previous Response` as the diff
|
|
220
|
+
- Unrequested changes introduced in earlier iterations (unrelated comment deletions, renames, reformatting, contract changes, weakened tests) remain in the cumulative diff even when they no longer appear in the latest fix report. Reconcile against them every time
|
|
221
|
+
- Track finding states (new / persists / resolved) on a fixed baseline. Do not narrow the diff scope and conclude "it is no longer in the diff"
|
|
222
|
+
|
|
210
223
|
### Referring to Primary Sources
|
|
211
224
|
|
|
212
225
|
- Use `order.md`, `plan.md`, and the actual code as primary sources
|
|
@@ -12,6 +12,7 @@ Every behavior change requires a corresponding test, and every bug fix requires
|
|
|
12
12
|
| Independence | Do not depend on other tests or execution order |
|
|
13
13
|
| Type safety | Code must pass the build (type check) |
|
|
14
14
|
| Reproducibility | Do not depend on time or randomness. Same result every run |
|
|
15
|
+
| Do not freeze non-executable assets | Do not make prose or section structure that does not define runtime behavior a CI failure condition |
|
|
15
16
|
|
|
16
17
|
## Coverage Criteria
|
|
17
18
|
|
|
@@ -33,6 +34,23 @@ Every behavior change requires a corresponding test, and every bug fix requires
|
|
|
33
34
|
|
|
34
35
|
**Note:** When a design reference is provided, UI appearance verification is elevated to medium priority. Refer to the Design Fidelity Policy.
|
|
35
36
|
|
|
37
|
+
## Non-Executable Asset Tests
|
|
38
|
+
|
|
39
|
+
Tests that freeze prose, headings, or structure in non-executable assets such as explanations, guides, README files, or Markdown documentation are prohibited by default.
|
|
40
|
+
These assets change often during wording improvements and reorganization, so making prose diffs fail CI creates high maintenance cost.
|
|
41
|
+
|
|
42
|
+
| Criteria | Verdict |
|
|
43
|
+
|----------|---------|
|
|
44
|
+
| Exact prose, heading, or section-structure assertions for non-executable assets | REJECT |
|
|
45
|
+
| Scanning all non-executable assets only to enforce wording or terminology | REJECT |
|
|
46
|
+
| Tests that require explanatory files that may be deleted or consolidated | REJECT |
|
|
47
|
+
| Adding tests for docs-only changes when no executable contract exists | REJECT |
|
|
48
|
+
| Validating executable or machine-processed contracts such as CLI examples, config examples, or generated artifacts | OK |
|
|
49
|
+
| Contract tests for schemas, configuration, code, generators, or runtime behavior | OK |
|
|
50
|
+
| Not adding tests for docs-only changes that have no executable contract | OK |
|
|
51
|
+
|
|
52
|
+
Verify non-executable asset changes with review, Markdown lint, link checks, or sample command execution when needed.
|
|
53
|
+
|
|
36
54
|
## Test Structure: Given-When-Then
|
|
37
55
|
|
|
38
56
|
```typescript
|
|
@@ -57,6 +75,18 @@ test('should return NotFound error when user does not exist', async () => {
|
|
|
57
75
|
| Clarity | Failure cause is obvious | Failure cause is unclear |
|
|
58
76
|
| Focus | One test, one concept | Multiple concerns mixed |
|
|
59
77
|
|
|
78
|
+
## Test Data and Fixtures
|
|
79
|
+
|
|
80
|
+
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.
|
|
81
|
+
|
|
82
|
+
| Criteria | Verdict |
|
|
83
|
+
|----------|---------|
|
|
84
|
+
| Shared fixtures are mutated and reused across tests | REJECT |
|
|
85
|
+
| Mocks, fixtures, or factories return shapes that differ from real types or API contracts | REJECT |
|
|
86
|
+
| Each test hand-writes a huge full-field fixture | Warning. Consider a factory |
|
|
87
|
+
| Factories provide defaults and each test overrides only relevant fields | OK |
|
|
88
|
+
| Contract changes update fixtures, mocks, and snapshots in the same change | OK |
|
|
89
|
+
|
|
60
90
|
### Naming
|
|
61
91
|
|
|
62
92
|
Test names describe expected behavior. Use the `should {expected behavior} when {condition}` pattern.
|
|
@@ -125,8 +155,11 @@ Verify data flow coupling that unit tests alone cannot cover.
|
|
|
125
155
|
|
|
126
156
|
## E2E Test Criteria
|
|
127
157
|
|
|
158
|
+
Design E2E tests from the entry points users actually use. Use code-level entry points such as routes, commands, endpoints, navigation, buttons, or external callbacks, not documentation assumptions alone.
|
|
159
|
+
|
|
128
160
|
| Criteria | Verdict |
|
|
129
161
|
|----------|---------|
|
|
162
|
+
| E2E tests are written for imagined flows without checking real entry points | REJECT |
|
|
130
163
|
| Hitting production APIs without mocking external calls | REJECT. Test reproducibility is lost |
|
|
131
164
|
| Mocking the core logic under test | REJECT. Defeats the purpose of E2E |
|
|
132
165
|
| Using fixed sleep for timing synchronization | REJECT. Use state-based waits |
|
|
@@ -117,7 +117,11 @@ steps:
|
|
|
117
117
|
- type: enqueue_task
|
|
118
118
|
mode: new
|
|
119
119
|
workflow: takt-default
|
|
120
|
-
base_branch:
|
|
120
|
+
base_branch:
|
|
121
|
+
name: improve
|
|
122
|
+
create_if_missing:
|
|
123
|
+
from: main
|
|
124
|
+
push: true
|
|
121
125
|
task: "{structured:plan_from_issue.task_markdown}"
|
|
122
126
|
issue: "{structured:plan_from_issue.issue}"
|
|
123
127
|
worktree:
|
|
@@ -187,7 +191,11 @@ steps:
|
|
|
187
191
|
- type: enqueue_task
|
|
188
192
|
mode: new
|
|
189
193
|
workflow: takt-default
|
|
190
|
-
base_branch:
|
|
194
|
+
base_branch:
|
|
195
|
+
name: improve
|
|
196
|
+
create_if_missing:
|
|
197
|
+
from: main
|
|
198
|
+
push: true
|
|
191
199
|
task: "{structured:plan_fresh_improvement.task_markdown}"
|
|
192
200
|
issue: "{structured:plan_fresh_improvement.issue}"
|
|
193
201
|
worktree:
|
|
@@ -255,7 +263,11 @@ steps:
|
|
|
255
263
|
mode: from_pr
|
|
256
264
|
pr: "{context:route_context.selected_pr.number}"
|
|
257
265
|
workflow: takt-default
|
|
258
|
-
base_branch:
|
|
266
|
+
base_branch:
|
|
267
|
+
name: improve
|
|
268
|
+
create_if_missing:
|
|
269
|
+
from: main
|
|
270
|
+
push: true
|
|
259
271
|
task: "{structured:plan_from_existing_pr.task_markdown}"
|
|
260
272
|
rules:
|
|
261
273
|
- when: effect.enqueue_from_pr.enqueue_task.success == true
|
|
@@ -296,7 +308,11 @@ steps:
|
|
|
296
308
|
mode: from_pr
|
|
297
309
|
pr: "{context:route_context.selected_pr.number}"
|
|
298
310
|
workflow: takt-default
|
|
299
|
-
base_branch:
|
|
311
|
+
base_branch:
|
|
312
|
+
name: improve
|
|
313
|
+
create_if_missing:
|
|
314
|
+
from: main
|
|
315
|
+
push: true
|
|
300
316
|
task: |
|
|
301
317
|
Resolve the conflicts raised while syncing the PR with its base branch.
|
|
302
318
|
Target PR: {context:route_context.selected_pr.number}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
name: default-peer-review
|
|
2
|
-
description: default series Phase 2. Parallel reviewers (arch + ai-antipattern-2nd + supervise) ⇄ fix loop.
|
|
2
|
+
description: default series Phase 2. Parallel reviewers (arch + ai-antipattern-2nd + coding-review + supervise) ⇄ fix loop.
|
|
3
3
|
subworkflow:
|
|
4
4
|
callable: true
|
|
5
5
|
visibility: internal
|
|
@@ -72,6 +72,28 @@ steps:
|
|
|
72
72
|
report:
|
|
73
73
|
- name: ai-antipattern-review.md
|
|
74
74
|
format: ai-antipattern-review
|
|
75
|
+
- name: coding-review
|
|
76
|
+
edit: false
|
|
77
|
+
persona: coding-reviewer
|
|
78
|
+
policy: review
|
|
79
|
+
pass_previous_response: false
|
|
80
|
+
provider_options:
|
|
81
|
+
claude:
|
|
82
|
+
allowed_tools:
|
|
83
|
+
- Read
|
|
84
|
+
- Glob
|
|
85
|
+
- Grep
|
|
86
|
+
- Bash
|
|
87
|
+
- WebSearch
|
|
88
|
+
- WebFetch
|
|
89
|
+
instruction: review-coding
|
|
90
|
+
rules:
|
|
91
|
+
- condition: approved
|
|
92
|
+
- condition: needs_fix
|
|
93
|
+
output_contracts:
|
|
94
|
+
report:
|
|
95
|
+
- name: coding-review.md
|
|
96
|
+
format: coding-review
|
|
75
97
|
- name: supervise
|
|
76
98
|
edit: false
|
|
77
99
|
persona: supervisor
|
|
@@ -97,9 +119,9 @@ steps:
|
|
|
97
119
|
format: summary
|
|
98
120
|
use_judge: false
|
|
99
121
|
rules:
|
|
100
|
-
- condition: all("approved", "No AI-specific issues", "All checks passed")
|
|
122
|
+
- condition: all("approved", "No AI-specific issues", "approved", "All checks passed")
|
|
101
123
|
next: COMPLETE
|
|
102
|
-
- condition: any("needs_fix", "AI-specific issues found", "Requirements unmet, tests failing, build errors")
|
|
124
|
+
- condition: any("needs_fix", "AI-specific issues found", "needs_fix", "Requirements unmet, tests failing, build errors")
|
|
103
125
|
next: fix
|
|
104
126
|
- name: fix
|
|
105
127
|
edit: true
|