persona_providers 設定の導入により不要になった hybrid-codex ピースと生成ツールを削除
This commit is contained in:
parent
dd71c408c4
commit
32f1334769
@ -21,20 +21,6 @@ piece_categories:
|
|||||||
Refactoring:
|
Refactoring:
|
||||||
pieces:
|
pieces:
|
||||||
- structural-reform
|
- structural-reform
|
||||||
🔀 Hybrid (Codex Coding):
|
|
||||||
🚀 Quick Start:
|
|
||||||
pieces:
|
|
||||||
- coding-hybrid-codex
|
|
||||||
- default-hybrid-codex
|
|
||||||
- minimal-hybrid-codex
|
|
||||||
- passthrough-hybrid-codex
|
|
||||||
🔧 Expert:
|
|
||||||
pieces:
|
|
||||||
- expert-cqrs-hybrid-codex
|
|
||||||
- expert-hybrid-codex
|
|
||||||
🔍 Review & Fix:
|
|
||||||
pieces:
|
|
||||||
- review-fix-minimal-hybrid-codex
|
|
||||||
Others:
|
Others:
|
||||||
pieces:
|
pieces:
|
||||||
- research
|
- research
|
||||||
|
|||||||
@ -1,158 +0,0 @@
|
|||||||
# Auto-generated from coding.yaml by tools/generate-hybrid-codex.mjs
|
|
||||||
# Do not edit manually. Edit the source piece and re-run the generator.
|
|
||||||
|
|
||||||
name: coding-hybrid-codex
|
|
||||||
description: Lightweight development piece with planning and parallel reviews (plan -> implement -> parallel review -> complete)
|
|
||||||
max_iterations: 20
|
|
||||||
knowledge:
|
|
||||||
architecture: ../knowledge/architecture.md
|
|
||||||
personas:
|
|
||||||
planner: ../personas/planner.md
|
|
||||||
coder: ../personas/coder.md
|
|
||||||
ai-antipattern-reviewer: ../personas/ai-antipattern-reviewer.md
|
|
||||||
architecture-reviewer: ../personas/architecture-reviewer.md
|
|
||||||
instructions:
|
|
||||||
plan: ../instructions/plan.md
|
|
||||||
implement: ../instructions/implement.md
|
|
||||||
ai-review: ../instructions/ai-review.md
|
|
||||||
review-arch: ../instructions/review-arch.md
|
|
||||||
fix: ../instructions/fix.md
|
|
||||||
report_formats:
|
|
||||||
plan: ../output-contracts/plan.md
|
|
||||||
ai-review: ../output-contracts/ai-review.md
|
|
||||||
architecture-review: ../output-contracts/architecture-review.md
|
|
||||||
initial_movement: plan
|
|
||||||
movements:
|
|
||||||
- name: plan
|
|
||||||
edit: false
|
|
||||||
persona: planner
|
|
||||||
knowledge: architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: Requirements are clear and implementable
|
|
||||||
next: implement
|
|
||||||
- condition: User is asking a question (not an implementation task)
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: Requirements are unclear, insufficient information
|
|
||||||
next: ABORT
|
|
||||||
instruction: plan
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 00-plan.md
|
|
||||||
format: plan
|
|
||||||
- name: implement
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
session: refresh
|
|
||||||
knowledge: architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: Implementation complete
|
|
||||||
next: reviewers
|
|
||||||
- condition: Implementation not started (report only)
|
|
||||||
next: reviewers
|
|
||||||
- condition: Cannot determine, insufficient information
|
|
||||||
next: reviewers
|
|
||||||
- condition: User input required
|
|
||||||
next: implement
|
|
||||||
requires_user_input: true
|
|
||||||
interactive_only: true
|
|
||||||
instruction: implement
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Scope: 02-coder-scope.md
|
|
||||||
- Decisions: 03-coder-decisions.md
|
|
||||||
- name: reviewers
|
|
||||||
parallel:
|
|
||||||
- name: ai_review
|
|
||||||
edit: false
|
|
||||||
persona: ai-antipattern-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- ai-antipattern
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: No AI-specific issues
|
|
||||||
- condition: AI-specific issues found
|
|
||||||
instruction: ai-review
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 04-ai-review.md
|
|
||||||
format: ai-review
|
|
||||||
- name: arch-review
|
|
||||||
edit: false
|
|
||||||
persona: architecture-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge: architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-arch
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 05-architect-review.md
|
|
||||||
format: architecture-review
|
|
||||||
rules:
|
|
||||||
- condition: all("No AI-specific issues", "approved")
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: any("AI-specific issues found", "needs_fix")
|
|
||||||
next: fix
|
|
||||||
- name: fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
knowledge: architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: Fix complete
|
|
||||||
next: reviewers
|
|
||||||
- condition: Cannot determine, insufficient information
|
|
||||||
next: ABORT
|
|
||||||
instruction: fix
|
|
||||||
policies:
|
|
||||||
coding: ../policies/coding.md
|
|
||||||
review: ../policies/review.md
|
|
||||||
testing: ../policies/testing.md
|
|
||||||
ai-antipattern: ../policies/ai-antipattern.md
|
|
||||||
@ -1,290 +0,0 @@
|
|||||||
# Auto-generated from default.yaml by tools/generate-hybrid-codex.mjs
|
|
||||||
# Do not edit manually. Edit the source piece and re-run the generator.
|
|
||||||
|
|
||||||
name: default-hybrid-codex
|
|
||||||
description: Standard development piece with planning and specialized reviews
|
|
||||||
max_iterations: 30
|
|
||||||
knowledge:
|
|
||||||
backend: ../knowledge/backend.md
|
|
||||||
architecture: ../knowledge/architecture.md
|
|
||||||
personas:
|
|
||||||
planner: ../personas/planner.md
|
|
||||||
coder: ../personas/coder.md
|
|
||||||
ai-antipattern-reviewer: ../personas/ai-antipattern-reviewer.md
|
|
||||||
architecture-reviewer: ../personas/architecture-reviewer.md
|
|
||||||
qa-reviewer: ../personas/qa-reviewer.md
|
|
||||||
supervisor: ../personas/supervisor.md
|
|
||||||
instructions:
|
|
||||||
plan: ../instructions/plan.md
|
|
||||||
implement: ../instructions/implement.md
|
|
||||||
ai-review: ../instructions/ai-review.md
|
|
||||||
ai-fix: ../instructions/ai-fix.md
|
|
||||||
arbitrate: ../instructions/arbitrate.md
|
|
||||||
review-arch: ../instructions/review-arch.md
|
|
||||||
review-qa: ../instructions/review-qa.md
|
|
||||||
fix: ../instructions/fix.md
|
|
||||||
supervise: ../instructions/supervise.md
|
|
||||||
report_formats:
|
|
||||||
plan: ../output-contracts/plan.md
|
|
||||||
ai-review: ../output-contracts/ai-review.md
|
|
||||||
architecture-review: ../output-contracts/architecture-review.md
|
|
||||||
qa-review: ../output-contracts/qa-review.md
|
|
||||||
validation: ../output-contracts/validation.md
|
|
||||||
summary: ../output-contracts/summary.md
|
|
||||||
initial_movement: plan
|
|
||||||
loop_monitors:
|
|
||||||
- cycle:
|
|
||||||
- ai_review
|
|
||||||
- ai_fix
|
|
||||||
threshold: 3
|
|
||||||
judge:
|
|
||||||
persona: supervisor
|
|
||||||
instruction_template: |
|
|
||||||
The ai_review ↔ ai_fix loop has repeated {cycle_count} times.
|
|
||||||
|
|
||||||
Review the reports from each cycle and determine whether this loop
|
|
||||||
is healthy (making progress) or unproductive (repeating the same issues).
|
|
||||||
|
|
||||||
**Reports to reference:**
|
|
||||||
- AI Review results: {report:04-ai-review.md}
|
|
||||||
|
|
||||||
**Judgment criteria:**
|
|
||||||
- Are new issues being found/fixed in each cycle?
|
|
||||||
- Are the same findings being repeated?
|
|
||||||
- Are fixes actually being applied?
|
|
||||||
rules:
|
|
||||||
- condition: Healthy (making progress)
|
|
||||||
next: ai_review
|
|
||||||
- condition: Unproductive (no improvement)
|
|
||||||
next: reviewers
|
|
||||||
movements:
|
|
||||||
- name: plan
|
|
||||||
edit: false
|
|
||||||
persona: planner
|
|
||||||
knowledge: architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: Requirements are clear and implementable
|
|
||||||
next: implement
|
|
||||||
- condition: User is asking a question (not an implementation task)
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: Requirements unclear, insufficient info
|
|
||||||
next: ABORT
|
|
||||||
appendix: |
|
|
||||||
Clarifications needed:
|
|
||||||
- {Question 1}
|
|
||||||
- {Question 2}
|
|
||||||
instruction: plan
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 00-plan.md
|
|
||||||
format: plan
|
|
||||||
- name: implement
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
session: refresh
|
|
||||||
knowledge:
|
|
||||||
- backend
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: Implementation complete
|
|
||||||
next: ai_review
|
|
||||||
- condition: No implementation (report only)
|
|
||||||
next: ai_review
|
|
||||||
- condition: Cannot proceed, insufficient info
|
|
||||||
next: ai_review
|
|
||||||
- condition: User input required
|
|
||||||
next: implement
|
|
||||||
requires_user_input: true
|
|
||||||
interactive_only: true
|
|
||||||
instruction: implement
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Scope: 02-coder-scope.md
|
|
||||||
- Decisions: 03-coder-decisions.md
|
|
||||||
- name: ai_review
|
|
||||||
edit: false
|
|
||||||
persona: ai-antipattern-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- ai-antipattern
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: No AI-specific issues
|
|
||||||
next: reviewers
|
|
||||||
- condition: AI-specific issues found
|
|
||||||
next: ai_fix
|
|
||||||
instruction: ai-review
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 04-ai-review.md
|
|
||||||
format: ai-review
|
|
||||||
- name: ai_fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
session: refresh
|
|
||||||
knowledge:
|
|
||||||
- backend
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: AI issues fixed
|
|
||||||
next: ai_review
|
|
||||||
- condition: No fix needed (verified target files/spec)
|
|
||||||
next: ai_no_fix
|
|
||||||
- condition: Cannot proceed, insufficient info
|
|
||||||
next: ai_no_fix
|
|
||||||
instruction: ai-fix
|
|
||||||
- name: ai_no_fix
|
|
||||||
edit: false
|
|
||||||
persona: architecture-reviewer
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
rules:
|
|
||||||
- condition: ai_review's findings are valid (fix required)
|
|
||||||
next: ai_fix
|
|
||||||
- condition: ai_fix's judgment is valid (no fix needed)
|
|
||||||
next: reviewers
|
|
||||||
instruction: arbitrate
|
|
||||||
- name: reviewers
|
|
||||||
parallel:
|
|
||||||
- name: arch-review
|
|
||||||
edit: false
|
|
||||||
persona: architecture-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge:
|
|
||||||
- architecture
|
|
||||||
- backend
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-arch
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 05-architect-review.md
|
|
||||||
format: architecture-review
|
|
||||||
- name: qa-review
|
|
||||||
edit: false
|
|
||||||
persona: qa-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- qa
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-qa
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 06-qa-review.md
|
|
||||||
format: qa-review
|
|
||||||
rules:
|
|
||||||
- condition: all("approved")
|
|
||||||
next: supervise
|
|
||||||
- condition: any("needs_fix")
|
|
||||||
next: fix
|
|
||||||
- name: fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
knowledge:
|
|
||||||
- backend
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: Fix complete
|
|
||||||
next: reviewers
|
|
||||||
- condition: Cannot proceed, insufficient info
|
|
||||||
next: plan
|
|
||||||
instruction: fix
|
|
||||||
- name: supervise
|
|
||||||
edit: false
|
|
||||||
persona: supervisor
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: All checks passed
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: Requirements unmet, tests failing, build errors
|
|
||||||
next: plan
|
|
||||||
instruction: supervise
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Validation: 07-supervisor-validation.md
|
|
||||||
- Summary: summary.md
|
|
||||||
policies:
|
|
||||||
coding: ../policies/coding.md
|
|
||||||
review: ../policies/review.md
|
|
||||||
testing: ../policies/testing.md
|
|
||||||
ai-antipattern: ../policies/ai-antipattern.md
|
|
||||||
qa: ../policies/qa.md
|
|
||||||
@ -1,341 +0,0 @@
|
|||||||
# Auto-generated from expert-cqrs.yaml by tools/generate-hybrid-codex.mjs
|
|
||||||
# Do not edit manually. Edit the source piece and re-run the generator.
|
|
||||||
|
|
||||||
name: expert-cqrs-hybrid-codex
|
|
||||||
description: CQRS+ES, Frontend, Security, QA Expert Review
|
|
||||||
max_iterations: 30
|
|
||||||
knowledge:
|
|
||||||
frontend: ../knowledge/frontend.md
|
|
||||||
backend: ../knowledge/backend.md
|
|
||||||
cqrs-es: ../knowledge/cqrs-es.md
|
|
||||||
security: ../knowledge/security.md
|
|
||||||
architecture: ../knowledge/architecture.md
|
|
||||||
personas:
|
|
||||||
planner: ../personas/planner.md
|
|
||||||
coder: ../personas/coder.md
|
|
||||||
ai-antipattern-reviewer: ../personas/ai-antipattern-reviewer.md
|
|
||||||
architecture-reviewer: ../personas/architecture-reviewer.md
|
|
||||||
cqrs-es-reviewer: ../personas/cqrs-es-reviewer.md
|
|
||||||
frontend-reviewer: ../personas/frontend-reviewer.md
|
|
||||||
security-reviewer: ../personas/security-reviewer.md
|
|
||||||
qa-reviewer: ../personas/qa-reviewer.md
|
|
||||||
expert-supervisor: ../personas/expert-supervisor.md
|
|
||||||
instructions:
|
|
||||||
plan: ../instructions/plan.md
|
|
||||||
implement: ../instructions/implement.md
|
|
||||||
ai-review: ../instructions/ai-review.md
|
|
||||||
ai-fix: ../instructions/ai-fix.md
|
|
||||||
arbitrate: ../instructions/arbitrate.md
|
|
||||||
review-cqrs-es: ../instructions/review-cqrs-es.md
|
|
||||||
review-frontend: ../instructions/review-frontend.md
|
|
||||||
review-security: ../instructions/review-security.md
|
|
||||||
review-qa: ../instructions/review-qa.md
|
|
||||||
fix: ../instructions/fix.md
|
|
||||||
supervise: ../instructions/supervise.md
|
|
||||||
fix-supervisor: ../instructions/fix-supervisor.md
|
|
||||||
report_formats:
|
|
||||||
plan: ../output-contracts/plan.md
|
|
||||||
ai-review: ../output-contracts/ai-review.md
|
|
||||||
cqrs-es-review: ../output-contracts/cqrs-es-review.md
|
|
||||||
frontend-review: ../output-contracts/frontend-review.md
|
|
||||||
security-review: ../output-contracts/security-review.md
|
|
||||||
qa-review: ../output-contracts/qa-review.md
|
|
||||||
validation: ../output-contracts/validation.md
|
|
||||||
summary: ../output-contracts/summary.md
|
|
||||||
initial_movement: plan
|
|
||||||
movements:
|
|
||||||
- name: plan
|
|
||||||
edit: false
|
|
||||||
persona: planner
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: plan
|
|
||||||
rules:
|
|
||||||
- condition: Task analysis and planning is complete
|
|
||||||
next: implement
|
|
||||||
- condition: Requirements are unclear and planning cannot proceed
|
|
||||||
next: ABORT
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 00-plan.md
|
|
||||||
format: plan
|
|
||||||
- name: implement
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
session: refresh
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- cqrs-es
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: implement
|
|
||||||
rules:
|
|
||||||
- condition: Implementation is complete
|
|
||||||
next: ai_review
|
|
||||||
- condition: No implementation (report only)
|
|
||||||
next: ai_review
|
|
||||||
- condition: Cannot proceed with implementation
|
|
||||||
next: ai_review
|
|
||||||
- condition: User input required
|
|
||||||
next: implement
|
|
||||||
requires_user_input: true
|
|
||||||
interactive_only: true
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Scope: 01-coder-scope.md
|
|
||||||
- Decisions: 02-coder-decisions.md
|
|
||||||
- name: ai_review
|
|
||||||
edit: false
|
|
||||||
persona: ai-antipattern-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- ai-antipattern
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: ai-review
|
|
||||||
rules:
|
|
||||||
- condition: No AI-specific issues found
|
|
||||||
next: reviewers
|
|
||||||
- condition: AI-specific issues detected
|
|
||||||
next: ai_fix
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 03-ai-review.md
|
|
||||||
format: ai-review
|
|
||||||
- name: ai_fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
session: refresh
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- cqrs-es
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: ai-fix
|
|
||||||
rules:
|
|
||||||
- condition: AI Reviewer's issues have been fixed
|
|
||||||
next: ai_review
|
|
||||||
- condition: No fix needed (verified target files/spec)
|
|
||||||
next: ai_no_fix
|
|
||||||
- condition: Unable to proceed with fixes
|
|
||||||
next: ai_no_fix
|
|
||||||
- name: ai_no_fix
|
|
||||||
edit: false
|
|
||||||
persona: architecture-reviewer
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
rules:
|
|
||||||
- condition: ai_review's findings are valid (fix required)
|
|
||||||
next: ai_fix
|
|
||||||
- condition: ai_fix's judgment is valid (no fix needed)
|
|
||||||
next: reviewers
|
|
||||||
instruction: arbitrate
|
|
||||||
- name: reviewers
|
|
||||||
parallel:
|
|
||||||
- name: cqrs-es-review
|
|
||||||
edit: false
|
|
||||||
persona: cqrs-es-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge:
|
|
||||||
- cqrs-es
|
|
||||||
- backend
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-cqrs-es
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 04-cqrs-es-review.md
|
|
||||||
format: cqrs-es-review
|
|
||||||
- name: frontend-review
|
|
||||||
edit: false
|
|
||||||
persona: frontend-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge: frontend
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-frontend
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 05-frontend-review.md
|
|
||||||
format: frontend-review
|
|
||||||
- name: security-review
|
|
||||||
edit: false
|
|
||||||
persona: security-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge: security
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-security
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 06-security-review.md
|
|
||||||
format: security-review
|
|
||||||
- name: qa-review
|
|
||||||
edit: false
|
|
||||||
persona: qa-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- qa
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-qa
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 07-qa-review.md
|
|
||||||
format: qa-review
|
|
||||||
rules:
|
|
||||||
- condition: all("approved")
|
|
||||||
next: supervise
|
|
||||||
- condition: any("needs_fix")
|
|
||||||
next: fix
|
|
||||||
- name: fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- cqrs-es
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: Fix complete
|
|
||||||
next: reviewers
|
|
||||||
- condition: Cannot proceed, insufficient info
|
|
||||||
next: plan
|
|
||||||
instruction: fix
|
|
||||||
- name: supervise
|
|
||||||
edit: false
|
|
||||||
persona: expert-supervisor
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: supervise
|
|
||||||
rules:
|
|
||||||
- condition: All validations pass and ready to merge
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: Issues detected during final review
|
|
||||||
next: fix_supervisor
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Validation: 08-supervisor-validation.md
|
|
||||||
- Summary: summary.md
|
|
||||||
- name: fix_supervisor
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- cqrs-es
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: fix-supervisor
|
|
||||||
rules:
|
|
||||||
- condition: Supervisor's issues have been fixed
|
|
||||||
next: supervise
|
|
||||||
- condition: Unable to proceed with fixes
|
|
||||||
next: plan
|
|
||||||
policies:
|
|
||||||
coding: ../policies/coding.md
|
|
||||||
review: ../policies/review.md
|
|
||||||
testing: ../policies/testing.md
|
|
||||||
ai-antipattern: ../policies/ai-antipattern.md
|
|
||||||
qa: ../policies/qa.md
|
|
||||||
@ -1,335 +0,0 @@
|
|||||||
# Auto-generated from expert.yaml by tools/generate-hybrid-codex.mjs
|
|
||||||
# Do not edit manually. Edit the source piece and re-run the generator.
|
|
||||||
|
|
||||||
name: expert-hybrid-codex
|
|
||||||
description: Architecture, Frontend, Security, QA Expert Review
|
|
||||||
max_iterations: 30
|
|
||||||
knowledge:
|
|
||||||
frontend: ../knowledge/frontend.md
|
|
||||||
backend: ../knowledge/backend.md
|
|
||||||
security: ../knowledge/security.md
|
|
||||||
architecture: ../knowledge/architecture.md
|
|
||||||
personas:
|
|
||||||
planner: ../personas/planner.md
|
|
||||||
coder: ../personas/coder.md
|
|
||||||
ai-antipattern-reviewer: ../personas/ai-antipattern-reviewer.md
|
|
||||||
architecture-reviewer: ../personas/architecture-reviewer.md
|
|
||||||
frontend-reviewer: ../personas/frontend-reviewer.md
|
|
||||||
security-reviewer: ../personas/security-reviewer.md
|
|
||||||
qa-reviewer: ../personas/qa-reviewer.md
|
|
||||||
expert-supervisor: ../personas/expert-supervisor.md
|
|
||||||
instructions:
|
|
||||||
plan: ../instructions/plan.md
|
|
||||||
implement: ../instructions/implement.md
|
|
||||||
ai-review: ../instructions/ai-review.md
|
|
||||||
ai-fix: ../instructions/ai-fix.md
|
|
||||||
arbitrate: ../instructions/arbitrate.md
|
|
||||||
review-arch: ../instructions/review-arch.md
|
|
||||||
review-frontend: ../instructions/review-frontend.md
|
|
||||||
review-security: ../instructions/review-security.md
|
|
||||||
review-qa: ../instructions/review-qa.md
|
|
||||||
fix: ../instructions/fix.md
|
|
||||||
supervise: ../instructions/supervise.md
|
|
||||||
fix-supervisor: ../instructions/fix-supervisor.md
|
|
||||||
report_formats:
|
|
||||||
plan: ../output-contracts/plan.md
|
|
||||||
ai-review: ../output-contracts/ai-review.md
|
|
||||||
architecture-review: ../output-contracts/architecture-review.md
|
|
||||||
frontend-review: ../output-contracts/frontend-review.md
|
|
||||||
security-review: ../output-contracts/security-review.md
|
|
||||||
qa-review: ../output-contracts/qa-review.md
|
|
||||||
validation: ../output-contracts/validation.md
|
|
||||||
summary: ../output-contracts/summary.md
|
|
||||||
initial_movement: plan
|
|
||||||
movements:
|
|
||||||
- name: plan
|
|
||||||
edit: false
|
|
||||||
persona: planner
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: plan
|
|
||||||
rules:
|
|
||||||
- condition: Task analysis and planning is complete
|
|
||||||
next: implement
|
|
||||||
- condition: Requirements are unclear and planning cannot proceed
|
|
||||||
next: ABORT
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 00-plan.md
|
|
||||||
format: plan
|
|
||||||
- name: implement
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
session: refresh
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: implement
|
|
||||||
rules:
|
|
||||||
- condition: Implementation is complete
|
|
||||||
next: ai_review
|
|
||||||
- condition: No implementation (report only)
|
|
||||||
next: ai_review
|
|
||||||
- condition: Cannot proceed with implementation
|
|
||||||
next: ai_review
|
|
||||||
- condition: User input required
|
|
||||||
next: implement
|
|
||||||
requires_user_input: true
|
|
||||||
interactive_only: true
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Scope: 01-coder-scope.md
|
|
||||||
- Decisions: 02-coder-decisions.md
|
|
||||||
- name: ai_review
|
|
||||||
edit: false
|
|
||||||
persona: ai-antipattern-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- ai-antipattern
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: ai-review
|
|
||||||
rules:
|
|
||||||
- condition: No AI-specific issues found
|
|
||||||
next: reviewers
|
|
||||||
- condition: AI-specific issues detected
|
|
||||||
next: ai_fix
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 03-ai-review.md
|
|
||||||
format: ai-review
|
|
||||||
- name: ai_fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
session: refresh
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: ai-fix
|
|
||||||
rules:
|
|
||||||
- condition: AI Reviewer's issues have been fixed
|
|
||||||
next: ai_review
|
|
||||||
- condition: No fix needed (verified target files/spec)
|
|
||||||
next: ai_no_fix
|
|
||||||
- condition: Unable to proceed with fixes
|
|
||||||
next: ai_no_fix
|
|
||||||
- name: ai_no_fix
|
|
||||||
edit: false
|
|
||||||
persona: architecture-reviewer
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
rules:
|
|
||||||
- condition: ai_review's findings are valid (fix required)
|
|
||||||
next: ai_fix
|
|
||||||
- condition: ai_fix's judgment is valid (no fix needed)
|
|
||||||
next: reviewers
|
|
||||||
instruction: arbitrate
|
|
||||||
- name: reviewers
|
|
||||||
parallel:
|
|
||||||
- name: arch-review
|
|
||||||
edit: false
|
|
||||||
persona: architecture-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge:
|
|
||||||
- architecture
|
|
||||||
- backend
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-arch
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 04-architect-review.md
|
|
||||||
format: architecture-review
|
|
||||||
- name: frontend-review
|
|
||||||
edit: false
|
|
||||||
persona: frontend-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge: frontend
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-frontend
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 05-frontend-review.md
|
|
||||||
format: frontend-review
|
|
||||||
- name: security-review
|
|
||||||
edit: false
|
|
||||||
persona: security-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge: security
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-security
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 06-security-review.md
|
|
||||||
format: security-review
|
|
||||||
- name: qa-review
|
|
||||||
edit: false
|
|
||||||
persona: qa-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- qa
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-qa
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 07-qa-review.md
|
|
||||||
format: qa-review
|
|
||||||
rules:
|
|
||||||
- condition: all("approved")
|
|
||||||
next: supervise
|
|
||||||
- condition: any("needs_fix")
|
|
||||||
next: fix
|
|
||||||
- name: fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: Fix complete
|
|
||||||
next: reviewers
|
|
||||||
- condition: Cannot proceed, insufficient info
|
|
||||||
next: plan
|
|
||||||
instruction: fix
|
|
||||||
- name: supervise
|
|
||||||
edit: false
|
|
||||||
persona: expert-supervisor
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: supervise
|
|
||||||
rules:
|
|
||||||
- condition: All validations pass and ready to merge
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: Issues detected during final review
|
|
||||||
next: fix_supervisor
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Validation: 08-supervisor-validation.md
|
|
||||||
- Summary: summary.md
|
|
||||||
- name: fix_supervisor
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: fix-supervisor
|
|
||||||
rules:
|
|
||||||
- condition: Supervisor's issues have been fixed
|
|
||||||
next: supervise
|
|
||||||
- condition: Unable to proceed with fixes
|
|
||||||
next: plan
|
|
||||||
policies:
|
|
||||||
coding: ../policies/coding.md
|
|
||||||
review: ../policies/review.md
|
|
||||||
testing: ../policies/testing.md
|
|
||||||
ai-antipattern: ../policies/ai-antipattern.md
|
|
||||||
qa: ../policies/qa.md
|
|
||||||
@ -1,202 +0,0 @@
|
|||||||
# Auto-generated from minimal.yaml by tools/generate-hybrid-codex.mjs
|
|
||||||
# Do not edit manually. Edit the source piece and re-run the generator.
|
|
||||||
|
|
||||||
name: minimal-hybrid-codex
|
|
||||||
description: Minimal development piece (implement -> parallel review -> fix if needed -> complete)
|
|
||||||
max_iterations: 20
|
|
||||||
personas:
|
|
||||||
coder: ../personas/coder.md
|
|
||||||
ai-antipattern-reviewer: ../personas/ai-antipattern-reviewer.md
|
|
||||||
supervisor: ../personas/supervisor.md
|
|
||||||
instructions:
|
|
||||||
implement: ../instructions/implement.md
|
|
||||||
review-ai: ../instructions/review-ai.md
|
|
||||||
ai-fix: ../instructions/ai-fix.md
|
|
||||||
supervise: ../instructions/supervise.md
|
|
||||||
fix-supervisor: ../instructions/fix-supervisor.md
|
|
||||||
report_formats:
|
|
||||||
ai-review: ../output-contracts/ai-review.md
|
|
||||||
initial_movement: implement
|
|
||||||
movements:
|
|
||||||
- name: implement
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
instruction: implement
|
|
||||||
rules:
|
|
||||||
- condition: Implementation complete
|
|
||||||
next: reviewers
|
|
||||||
- condition: Cannot proceed, insufficient info
|
|
||||||
next: ABORT
|
|
||||||
- condition: User input required because there are items to confirm with the user
|
|
||||||
next: implement
|
|
||||||
requires_user_input: true
|
|
||||||
interactive_only: true
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Scope: 01-coder-scope.md
|
|
||||||
- Decisions: 02-coder-decisions.md
|
|
||||||
- name: reviewers
|
|
||||||
parallel:
|
|
||||||
- name: ai_review
|
|
||||||
edit: false
|
|
||||||
persona: ai-antipattern-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- ai-antipattern
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: review-ai
|
|
||||||
rules:
|
|
||||||
- condition: No AI-specific issues
|
|
||||||
- condition: AI-specific issues found
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 03-ai-review.md
|
|
||||||
format: ai-review
|
|
||||||
- name: supervise
|
|
||||||
edit: false
|
|
||||||
persona: supervisor
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: supervise
|
|
||||||
rules:
|
|
||||||
- condition: All checks passed
|
|
||||||
- condition: Requirements unmet, tests failing
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Validation: 05-supervisor-validation.md
|
|
||||||
- Summary: summary.md
|
|
||||||
rules:
|
|
||||||
- condition: all("No AI-specific issues", "All checks passed")
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: all("AI-specific issues found", "Requirements unmet, tests failing")
|
|
||||||
next: fix_both
|
|
||||||
- condition: any("AI-specific issues found")
|
|
||||||
next: ai_fix
|
|
||||||
- condition: any("Requirements unmet, tests failing")
|
|
||||||
next: supervise_fix
|
|
||||||
- name: fix_both
|
|
||||||
parallel:
|
|
||||||
- name: ai_fix_parallel
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: AI Reviewer's issues fixed
|
|
||||||
- condition: No fix needed (verified target files/spec)
|
|
||||||
- condition: Cannot proceed, insufficient info
|
|
||||||
instruction: ai-fix
|
|
||||||
- name: supervise_fix_parallel
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: Supervisor's issues fixed
|
|
||||||
- condition: Cannot proceed, insufficient info
|
|
||||||
instruction: fix-supervisor
|
|
||||||
rules:
|
|
||||||
- condition: all("AI Reviewer's issues fixed", "Supervisor's issues fixed")
|
|
||||||
next: reviewers
|
|
||||||
- condition: any("No fix needed (verified target files/spec)", "Cannot proceed, insufficient info")
|
|
||||||
next: implement
|
|
||||||
- name: ai_fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: AI Reviewer's issues fixed
|
|
||||||
next: reviewers
|
|
||||||
- condition: No fix needed (verified target files/spec)
|
|
||||||
next: implement
|
|
||||||
- condition: Cannot proceed, insufficient info
|
|
||||||
next: implement
|
|
||||||
instruction: ai-fix
|
|
||||||
- name: supervise_fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: Supervisor's issues fixed
|
|
||||||
next: reviewers
|
|
||||||
- condition: Cannot proceed, insufficient info
|
|
||||||
next: implement
|
|
||||||
instruction: fix-supervisor
|
|
||||||
policies:
|
|
||||||
coding: ../policies/coding.md
|
|
||||||
review: ../policies/review.md
|
|
||||||
testing: ../policies/testing.md
|
|
||||||
ai-antipattern: ../policies/ai-antipattern.md
|
|
||||||
@ -1,44 +0,0 @@
|
|||||||
# Auto-generated from passthrough.yaml by tools/generate-hybrid-codex.mjs
|
|
||||||
# Do not edit manually. Edit the source piece and re-run the generator.
|
|
||||||
|
|
||||||
name: passthrough-hybrid-codex
|
|
||||||
description: Single-agent thin wrapper. Pass task directly to coder as-is.
|
|
||||||
max_iterations: 10
|
|
||||||
personas:
|
|
||||||
coder: ../personas/coder.md
|
|
||||||
initial_movement: execute
|
|
||||||
movements:
|
|
||||||
- name: execute
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: Task complete
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: Cannot proceed
|
|
||||||
next: ABORT
|
|
||||||
- condition: User input required
|
|
||||||
next: execute
|
|
||||||
requires_user_input: true
|
|
||||||
interactive_only: true
|
|
||||||
instruction_template: |
|
|
||||||
Do the task.
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Summary: summary.md
|
|
||||||
policies:
|
|
||||||
coding: ../policies/coding.md
|
|
||||||
testing: ../policies/testing.md
|
|
||||||
@ -1,202 +0,0 @@
|
|||||||
# Auto-generated from review-fix-minimal.yaml by tools/generate-hybrid-codex.mjs
|
|
||||||
# Do not edit manually. Edit the source piece and re-run the generator.
|
|
||||||
|
|
||||||
name: review-fix-minimal-hybrid-codex
|
|
||||||
description: Review and fix piece for existing code (starts with review, no implementation)
|
|
||||||
max_iterations: 20
|
|
||||||
personas:
|
|
||||||
coder: ../personas/coder.md
|
|
||||||
ai-antipattern-reviewer: ../personas/ai-antipattern-reviewer.md
|
|
||||||
supervisor: ../personas/supervisor.md
|
|
||||||
instructions:
|
|
||||||
implement: ../instructions/implement.md
|
|
||||||
review-ai: ../instructions/review-ai.md
|
|
||||||
ai-fix: ../instructions/ai-fix.md
|
|
||||||
supervise: ../instructions/supervise.md
|
|
||||||
fix-supervisor: ../instructions/fix-supervisor.md
|
|
||||||
report_formats:
|
|
||||||
ai-review: ../output-contracts/ai-review.md
|
|
||||||
initial_movement: reviewers
|
|
||||||
movements:
|
|
||||||
- name: implement
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
instruction: implement
|
|
||||||
rules:
|
|
||||||
- condition: Implementation complete
|
|
||||||
next: reviewers
|
|
||||||
- condition: Cannot proceed, insufficient info
|
|
||||||
next: ABORT
|
|
||||||
- condition: User input required because there are items to confirm with the user
|
|
||||||
next: implement
|
|
||||||
requires_user_input: true
|
|
||||||
interactive_only: true
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Scope: 01-coder-scope.md
|
|
||||||
- Decisions: 02-coder-decisions.md
|
|
||||||
- name: reviewers
|
|
||||||
parallel:
|
|
||||||
- name: ai_review
|
|
||||||
edit: false
|
|
||||||
persona: ai-antipattern-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- ai-antipattern
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: review-ai
|
|
||||||
rules:
|
|
||||||
- condition: No AI-specific issues
|
|
||||||
- condition: AI-specific issues found
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 03-ai-review.md
|
|
||||||
format: ai-review
|
|
||||||
- name: supervise
|
|
||||||
edit: false
|
|
||||||
persona: supervisor
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: supervise
|
|
||||||
rules:
|
|
||||||
- condition: All checks passed
|
|
||||||
- condition: Requirements unmet, tests failing
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Validation: 05-supervisor-validation.md
|
|
||||||
- Summary: summary.md
|
|
||||||
rules:
|
|
||||||
- condition: all("No AI-specific issues", "All checks passed")
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: all("AI-specific issues found", "Requirements unmet, tests failing")
|
|
||||||
next: fix_both
|
|
||||||
- condition: any("AI-specific issues found")
|
|
||||||
next: ai_fix
|
|
||||||
- condition: any("Requirements unmet, tests failing")
|
|
||||||
next: supervise_fix
|
|
||||||
- name: fix_both
|
|
||||||
parallel:
|
|
||||||
- name: ai_fix_parallel
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: AI Reviewer's issues fixed
|
|
||||||
- condition: No fix needed (verified target files/spec)
|
|
||||||
- condition: Cannot proceed, insufficient info
|
|
||||||
instruction: ai-fix
|
|
||||||
- name: supervise_fix_parallel
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: Supervisor's issues fixed
|
|
||||||
- condition: Cannot proceed, insufficient info
|
|
||||||
instruction: fix-supervisor
|
|
||||||
rules:
|
|
||||||
- condition: all("AI Reviewer's issues fixed", "Supervisor's issues fixed")
|
|
||||||
next: reviewers
|
|
||||||
- condition: any("No fix needed (verified target files/spec)", "Cannot proceed, insufficient info")
|
|
||||||
next: implement
|
|
||||||
- name: ai_fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: AI Reviewer's issues fixed
|
|
||||||
next: reviewers
|
|
||||||
- condition: No fix needed (verified target files/spec)
|
|
||||||
next: implement
|
|
||||||
- condition: Cannot proceed, insufficient info
|
|
||||||
next: implement
|
|
||||||
instruction: ai-fix
|
|
||||||
- name: supervise_fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: Supervisor's issues fixed
|
|
||||||
next: reviewers
|
|
||||||
- condition: Cannot proceed, insufficient info
|
|
||||||
next: implement
|
|
||||||
instruction: fix-supervisor
|
|
||||||
policies:
|
|
||||||
coding: ../policies/coding.md
|
|
||||||
review: ../policies/review.md
|
|
||||||
testing: ../policies/testing.md
|
|
||||||
ai-antipattern: ../policies/ai-antipattern.md
|
|
||||||
@ -21,20 +21,6 @@ piece_categories:
|
|||||||
リファクタリング:
|
リファクタリング:
|
||||||
pieces:
|
pieces:
|
||||||
- structural-reform
|
- structural-reform
|
||||||
🔀 ハイブリッド (Codex Coding):
|
|
||||||
🚀 クイックスタート:
|
|
||||||
pieces:
|
|
||||||
- coding-hybrid-codex
|
|
||||||
- default-hybrid-codex
|
|
||||||
- minimal-hybrid-codex
|
|
||||||
- passthrough-hybrid-codex
|
|
||||||
🔧 フルスタック:
|
|
||||||
pieces:
|
|
||||||
- expert-cqrs-hybrid-codex
|
|
||||||
- expert-hybrid-codex
|
|
||||||
🔍 レビュー&修正:
|
|
||||||
pieces:
|
|
||||||
- review-fix-minimal-hybrid-codex
|
|
||||||
その他:
|
その他:
|
||||||
pieces:
|
pieces:
|
||||||
- research
|
- research
|
||||||
|
|||||||
@ -1,158 +0,0 @@
|
|||||||
# Auto-generated from coding.yaml by tools/generate-hybrid-codex.mjs
|
|
||||||
# Do not edit manually. Edit the source piece and re-run the generator.
|
|
||||||
|
|
||||||
name: coding-hybrid-codex
|
|
||||||
description: Lightweight development piece with planning and parallel reviews (plan -> implement -> parallel review -> complete)
|
|
||||||
max_iterations: 20
|
|
||||||
knowledge:
|
|
||||||
architecture: ../knowledge/architecture.md
|
|
||||||
personas:
|
|
||||||
planner: ../personas/planner.md
|
|
||||||
coder: ../personas/coder.md
|
|
||||||
ai-antipattern-reviewer: ../personas/ai-antipattern-reviewer.md
|
|
||||||
architecture-reviewer: ../personas/architecture-reviewer.md
|
|
||||||
instructions:
|
|
||||||
plan: ../instructions/plan.md
|
|
||||||
implement: ../instructions/implement.md
|
|
||||||
ai-review: ../instructions/ai-review.md
|
|
||||||
review-arch: ../instructions/review-arch.md
|
|
||||||
fix: ../instructions/fix.md
|
|
||||||
report_formats:
|
|
||||||
plan: ../output-contracts/plan.md
|
|
||||||
ai-review: ../output-contracts/ai-review.md
|
|
||||||
architecture-review: ../output-contracts/architecture-review.md
|
|
||||||
initial_movement: plan
|
|
||||||
movements:
|
|
||||||
- name: plan
|
|
||||||
edit: false
|
|
||||||
persona: planner
|
|
||||||
knowledge: architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: 要件が明確で実装可能
|
|
||||||
next: implement
|
|
||||||
- condition: ユーザーが質問をしている(実装タスクではない)
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: 要件が不明確、情報不足
|
|
||||||
next: ABORT
|
|
||||||
instruction: plan
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 00-plan.md
|
|
||||||
format: plan
|
|
||||||
- name: implement
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
session: refresh
|
|
||||||
knowledge: architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: 実装完了
|
|
||||||
next: reviewers
|
|
||||||
- condition: 実装未着手(レポートのみ)
|
|
||||||
next: reviewers
|
|
||||||
- condition: 判断できない、情報不足
|
|
||||||
next: reviewers
|
|
||||||
- condition: ユーザー入力が必要
|
|
||||||
next: implement
|
|
||||||
requires_user_input: true
|
|
||||||
interactive_only: true
|
|
||||||
instruction: implement
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Scope: 02-coder-scope.md
|
|
||||||
- Decisions: 03-coder-decisions.md
|
|
||||||
- name: reviewers
|
|
||||||
parallel:
|
|
||||||
- name: ai_review
|
|
||||||
edit: false
|
|
||||||
persona: ai-antipattern-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- ai-antipattern
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: AI特有の問題なし
|
|
||||||
- condition: AI特有の問題あり
|
|
||||||
instruction: ai-review
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 04-ai-review.md
|
|
||||||
format: ai-review
|
|
||||||
- name: arch-review
|
|
||||||
edit: false
|
|
||||||
persona: architecture-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge: architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-arch
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 05-architect-review.md
|
|
||||||
format: architecture-review
|
|
||||||
rules:
|
|
||||||
- condition: all("AI特有の問題なし", "approved")
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: any("AI特有の問題あり", "needs_fix")
|
|
||||||
next: fix
|
|
||||||
- name: fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
knowledge: architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: 修正完了
|
|
||||||
next: reviewers
|
|
||||||
- condition: 判断できない、情報不足
|
|
||||||
next: ABORT
|
|
||||||
instruction: fix
|
|
||||||
policies:
|
|
||||||
coding: ../policies/coding.md
|
|
||||||
review: ../policies/review.md
|
|
||||||
testing: ../policies/testing.md
|
|
||||||
ai-antipattern: ../policies/ai-antipattern.md
|
|
||||||
@ -1,290 +0,0 @@
|
|||||||
# Auto-generated from default.yaml by tools/generate-hybrid-codex.mjs
|
|
||||||
# Do not edit manually. Edit the source piece and re-run the generator.
|
|
||||||
|
|
||||||
name: default-hybrid-codex
|
|
||||||
description: Standard development piece with planning and specialized reviews
|
|
||||||
max_iterations: 30
|
|
||||||
knowledge:
|
|
||||||
architecture: ../knowledge/architecture.md
|
|
||||||
backend: ../knowledge/backend.md
|
|
||||||
personas:
|
|
||||||
planner: ../personas/planner.md
|
|
||||||
coder: ../personas/coder.md
|
|
||||||
ai-antipattern-reviewer: ../personas/ai-antipattern-reviewer.md
|
|
||||||
architecture-reviewer: ../personas/architecture-reviewer.md
|
|
||||||
qa-reviewer: ../personas/qa-reviewer.md
|
|
||||||
supervisor: ../personas/supervisor.md
|
|
||||||
instructions:
|
|
||||||
plan: ../instructions/plan.md
|
|
||||||
implement: ../instructions/implement.md
|
|
||||||
ai-review: ../instructions/ai-review.md
|
|
||||||
ai-fix: ../instructions/ai-fix.md
|
|
||||||
arbitrate: ../instructions/arbitrate.md
|
|
||||||
review-arch: ../instructions/review-arch.md
|
|
||||||
review-qa: ../instructions/review-qa.md
|
|
||||||
fix: ../instructions/fix.md
|
|
||||||
supervise: ../instructions/supervise.md
|
|
||||||
report_formats:
|
|
||||||
plan: ../output-contracts/plan.md
|
|
||||||
ai-review: ../output-contracts/ai-review.md
|
|
||||||
architecture-review: ../output-contracts/architecture-review.md
|
|
||||||
qa-review: ../output-contracts/qa-review.md
|
|
||||||
validation: ../output-contracts/validation.md
|
|
||||||
summary: ../output-contracts/summary.md
|
|
||||||
initial_movement: plan
|
|
||||||
loop_monitors:
|
|
||||||
- cycle:
|
|
||||||
- ai_review
|
|
||||||
- ai_fix
|
|
||||||
threshold: 3
|
|
||||||
judge:
|
|
||||||
persona: supervisor
|
|
||||||
instruction_template: |
|
|
||||||
ai_review と ai_fix のループが {cycle_count} 回繰り返されました。
|
|
||||||
|
|
||||||
各サイクルのレポートを確認し、このループが健全(進捗がある)か、
|
|
||||||
非生産的(同じ問題を繰り返している)かを判断してください。
|
|
||||||
|
|
||||||
**参照するレポート:**
|
|
||||||
- AIレビュー結果: {report:04-ai-review.md}
|
|
||||||
|
|
||||||
**判断基準:**
|
|
||||||
- 各サイクルで新しい問題が発見・修正されているか
|
|
||||||
- 同じ指摘が繰り返されていないか
|
|
||||||
- 修正が実際に反映されているか
|
|
||||||
rules:
|
|
||||||
- condition: 健全(進捗あり)
|
|
||||||
next: ai_review
|
|
||||||
- condition: 非生産的(改善なし)
|
|
||||||
next: reviewers
|
|
||||||
movements:
|
|
||||||
- name: plan
|
|
||||||
edit: false
|
|
||||||
persona: planner
|
|
||||||
knowledge: architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: 要件が明確で実装可能
|
|
||||||
next: implement
|
|
||||||
- condition: ユーザーが質問をしている(実装タスクではない)
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: 要件が不明確、情報不足
|
|
||||||
next: ABORT
|
|
||||||
appendix: |
|
|
||||||
確認事項:
|
|
||||||
- {質問1}
|
|
||||||
- {質問2}
|
|
||||||
instruction: plan
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 00-plan.md
|
|
||||||
format: plan
|
|
||||||
- name: implement
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
session: refresh
|
|
||||||
knowledge:
|
|
||||||
- backend
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: 実装完了
|
|
||||||
next: ai_review
|
|
||||||
- condition: 実装未着手(レポートのみ)
|
|
||||||
next: ai_review
|
|
||||||
- condition: 判断できない、情報不足
|
|
||||||
next: ai_review
|
|
||||||
- condition: ユーザー入力が必要
|
|
||||||
next: implement
|
|
||||||
requires_user_input: true
|
|
||||||
interactive_only: true
|
|
||||||
instruction: implement
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Scope: 02-coder-scope.md
|
|
||||||
- Decisions: 03-coder-decisions.md
|
|
||||||
- name: ai_review
|
|
||||||
edit: false
|
|
||||||
persona: ai-antipattern-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- ai-antipattern
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: AI特有の問題なし
|
|
||||||
next: reviewers
|
|
||||||
- condition: AI特有の問題あり
|
|
||||||
next: ai_fix
|
|
||||||
instruction: ai-review
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 04-ai-review.md
|
|
||||||
format: ai-review
|
|
||||||
- name: ai_fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
session: refresh
|
|
||||||
knowledge:
|
|
||||||
- backend
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: AI問題の修正完了
|
|
||||||
next: ai_review
|
|
||||||
- condition: 修正不要(指摘対象ファイル/仕様の確認済み)
|
|
||||||
next: ai_no_fix
|
|
||||||
- condition: 判断できない、情報不足
|
|
||||||
next: ai_no_fix
|
|
||||||
instruction: ai-fix
|
|
||||||
- name: ai_no_fix
|
|
||||||
edit: false
|
|
||||||
persona: architecture-reviewer
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
rules:
|
|
||||||
- condition: ai_reviewの指摘が妥当(修正すべき)
|
|
||||||
next: ai_fix
|
|
||||||
- condition: ai_fixの判断が妥当(修正不要)
|
|
||||||
next: reviewers
|
|
||||||
instruction: arbitrate
|
|
||||||
- name: reviewers
|
|
||||||
parallel:
|
|
||||||
- name: arch-review
|
|
||||||
edit: false
|
|
||||||
persona: architecture-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge:
|
|
||||||
- architecture
|
|
||||||
- backend
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-arch
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 05-architect-review.md
|
|
||||||
format: architecture-review
|
|
||||||
- name: qa-review
|
|
||||||
edit: false
|
|
||||||
persona: qa-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- qa
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-qa
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 06-qa-review.md
|
|
||||||
format: qa-review
|
|
||||||
rules:
|
|
||||||
- condition: all("approved")
|
|
||||||
next: supervise
|
|
||||||
- condition: any("needs_fix")
|
|
||||||
next: fix
|
|
||||||
- name: fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
knowledge:
|
|
||||||
- backend
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: 修正完了
|
|
||||||
next: reviewers
|
|
||||||
- condition: 判断できない、情報不足
|
|
||||||
next: plan
|
|
||||||
instruction: fix
|
|
||||||
- name: supervise
|
|
||||||
edit: false
|
|
||||||
persona: supervisor
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: すべて問題なし
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: 要求未達成、テスト失敗、ビルドエラー
|
|
||||||
next: plan
|
|
||||||
instruction: supervise
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Validation: 07-supervisor-validation.md
|
|
||||||
- Summary: summary.md
|
|
||||||
policies:
|
|
||||||
coding: ../policies/coding.md
|
|
||||||
review: ../policies/review.md
|
|
||||||
testing: ../policies/testing.md
|
|
||||||
ai-antipattern: ../policies/ai-antipattern.md
|
|
||||||
qa: ../policies/qa.md
|
|
||||||
@ -1,341 +0,0 @@
|
|||||||
# Auto-generated from expert-cqrs.yaml by tools/generate-hybrid-codex.mjs
|
|
||||||
# Do not edit manually. Edit the source piece and re-run the generator.
|
|
||||||
|
|
||||||
name: expert-cqrs-hybrid-codex
|
|
||||||
description: CQRS+ES・フロントエンド・セキュリティ・QA専門家レビュー
|
|
||||||
max_iterations: 30
|
|
||||||
knowledge:
|
|
||||||
frontend: ../knowledge/frontend.md
|
|
||||||
backend: ../knowledge/backend.md
|
|
||||||
cqrs-es: ../knowledge/cqrs-es.md
|
|
||||||
security: ../knowledge/security.md
|
|
||||||
architecture: ../knowledge/architecture.md
|
|
||||||
personas:
|
|
||||||
planner: ../personas/planner.md
|
|
||||||
coder: ../personas/coder.md
|
|
||||||
ai-antipattern-reviewer: ../personas/ai-antipattern-reviewer.md
|
|
||||||
architecture-reviewer: ../personas/architecture-reviewer.md
|
|
||||||
cqrs-es-reviewer: ../personas/cqrs-es-reviewer.md
|
|
||||||
frontend-reviewer: ../personas/frontend-reviewer.md
|
|
||||||
security-reviewer: ../personas/security-reviewer.md
|
|
||||||
qa-reviewer: ../personas/qa-reviewer.md
|
|
||||||
expert-supervisor: ../personas/expert-supervisor.md
|
|
||||||
instructions:
|
|
||||||
plan: ../instructions/plan.md
|
|
||||||
implement: ../instructions/implement.md
|
|
||||||
ai-review: ../instructions/ai-review.md
|
|
||||||
ai-fix: ../instructions/ai-fix.md
|
|
||||||
arbitrate: ../instructions/arbitrate.md
|
|
||||||
review-cqrs-es: ../instructions/review-cqrs-es.md
|
|
||||||
review-frontend: ../instructions/review-frontend.md
|
|
||||||
review-security: ../instructions/review-security.md
|
|
||||||
review-qa: ../instructions/review-qa.md
|
|
||||||
fix: ../instructions/fix.md
|
|
||||||
supervise: ../instructions/supervise.md
|
|
||||||
fix-supervisor: ../instructions/fix-supervisor.md
|
|
||||||
report_formats:
|
|
||||||
plan: ../output-contracts/plan.md
|
|
||||||
ai-review: ../output-contracts/ai-review.md
|
|
||||||
cqrs-es-review: ../output-contracts/cqrs-es-review.md
|
|
||||||
frontend-review: ../output-contracts/frontend-review.md
|
|
||||||
security-review: ../output-contracts/security-review.md
|
|
||||||
qa-review: ../output-contracts/qa-review.md
|
|
||||||
validation: ../output-contracts/validation.md
|
|
||||||
summary: ../output-contracts/summary.md
|
|
||||||
initial_movement: plan
|
|
||||||
movements:
|
|
||||||
- name: plan
|
|
||||||
edit: false
|
|
||||||
persona: planner
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: plan
|
|
||||||
rules:
|
|
||||||
- condition: タスク分析と計画が完了した
|
|
||||||
next: implement
|
|
||||||
- condition: 要件が不明確で計画を立てられない
|
|
||||||
next: ABORT
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 00-plan.md
|
|
||||||
format: plan
|
|
||||||
- name: implement
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
session: refresh
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- cqrs-es
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: implement
|
|
||||||
rules:
|
|
||||||
- condition: 実装が完了した
|
|
||||||
next: ai_review
|
|
||||||
- condition: 実装未着手(レポートのみ)
|
|
||||||
next: ai_review
|
|
||||||
- condition: 実装を進行できない
|
|
||||||
next: ai_review
|
|
||||||
- condition: ユーザー入力が必要
|
|
||||||
next: implement
|
|
||||||
requires_user_input: true
|
|
||||||
interactive_only: true
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Scope: 01-coder-scope.md
|
|
||||||
- Decisions: 02-coder-decisions.md
|
|
||||||
- name: ai_review
|
|
||||||
edit: false
|
|
||||||
persona: ai-antipattern-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- ai-antipattern
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: ai-review
|
|
||||||
rules:
|
|
||||||
- condition: AI特有の問題が見つからない
|
|
||||||
next: reviewers
|
|
||||||
- condition: AI特有の問題が検出された
|
|
||||||
next: ai_fix
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 03-ai-review.md
|
|
||||||
format: ai-review
|
|
||||||
- name: ai_fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
session: refresh
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- cqrs-es
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: ai-fix
|
|
||||||
rules:
|
|
||||||
- condition: AI Reviewerの指摘に対する修正が完了した
|
|
||||||
next: ai_review
|
|
||||||
- condition: 修正不要(指摘対象ファイル/仕様の確認済み)
|
|
||||||
next: ai_no_fix
|
|
||||||
- condition: 修正を進行できない
|
|
||||||
next: ai_no_fix
|
|
||||||
- name: ai_no_fix
|
|
||||||
edit: false
|
|
||||||
persona: architecture-reviewer
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
rules:
|
|
||||||
- condition: ai_reviewの指摘が妥当(修正すべき)
|
|
||||||
next: ai_fix
|
|
||||||
- condition: ai_fixの判断が妥当(修正不要)
|
|
||||||
next: reviewers
|
|
||||||
instruction: arbitrate
|
|
||||||
- name: reviewers
|
|
||||||
parallel:
|
|
||||||
- name: cqrs-es-review
|
|
||||||
edit: false
|
|
||||||
persona: cqrs-es-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge:
|
|
||||||
- cqrs-es
|
|
||||||
- backend
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-cqrs-es
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 04-cqrs-es-review.md
|
|
||||||
format: cqrs-es-review
|
|
||||||
- name: frontend-review
|
|
||||||
edit: false
|
|
||||||
persona: frontend-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge: frontend
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-frontend
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 05-frontend-review.md
|
|
||||||
format: frontend-review
|
|
||||||
- name: security-review
|
|
||||||
edit: false
|
|
||||||
persona: security-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge: security
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-security
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 06-security-review.md
|
|
||||||
format: security-review
|
|
||||||
- name: qa-review
|
|
||||||
edit: false
|
|
||||||
persona: qa-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- qa
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-qa
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 07-qa-review.md
|
|
||||||
format: qa-review
|
|
||||||
rules:
|
|
||||||
- condition: all("approved")
|
|
||||||
next: supervise
|
|
||||||
- condition: any("needs_fix")
|
|
||||||
next: fix
|
|
||||||
- name: fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- cqrs-es
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: 修正が完了した
|
|
||||||
next: reviewers
|
|
||||||
- condition: 修正を進行できない
|
|
||||||
next: plan
|
|
||||||
instruction: fix
|
|
||||||
- name: supervise
|
|
||||||
edit: false
|
|
||||||
persona: expert-supervisor
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: supervise
|
|
||||||
rules:
|
|
||||||
- condition: すべての検証が完了し、マージ可能な状態である
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: 問題が検出された
|
|
||||||
next: fix_supervisor
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Validation: 08-supervisor-validation.md
|
|
||||||
- Summary: summary.md
|
|
||||||
- name: fix_supervisor
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- cqrs-es
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: fix-supervisor
|
|
||||||
rules:
|
|
||||||
- condition: 監督者の指摘に対する修正が完了した
|
|
||||||
next: supervise
|
|
||||||
- condition: 修正を進行できない
|
|
||||||
next: plan
|
|
||||||
policies:
|
|
||||||
coding: ../policies/coding.md
|
|
||||||
review: ../policies/review.md
|
|
||||||
testing: ../policies/testing.md
|
|
||||||
ai-antipattern: ../policies/ai-antipattern.md
|
|
||||||
qa: ../policies/qa.md
|
|
||||||
@ -1,335 +0,0 @@
|
|||||||
# Auto-generated from expert.yaml by tools/generate-hybrid-codex.mjs
|
|
||||||
# Do not edit manually. Edit the source piece and re-run the generator.
|
|
||||||
|
|
||||||
name: expert-hybrid-codex
|
|
||||||
description: アーキテクチャ・フロントエンド・セキュリティ・QA専門家レビュー
|
|
||||||
max_iterations: 30
|
|
||||||
knowledge:
|
|
||||||
frontend: ../knowledge/frontend.md
|
|
||||||
backend: ../knowledge/backend.md
|
|
||||||
security: ../knowledge/security.md
|
|
||||||
architecture: ../knowledge/architecture.md
|
|
||||||
personas:
|
|
||||||
planner: ../personas/planner.md
|
|
||||||
coder: ../personas/coder.md
|
|
||||||
ai-antipattern-reviewer: ../personas/ai-antipattern-reviewer.md
|
|
||||||
architecture-reviewer: ../personas/architecture-reviewer.md
|
|
||||||
frontend-reviewer: ../personas/frontend-reviewer.md
|
|
||||||
security-reviewer: ../personas/security-reviewer.md
|
|
||||||
qa-reviewer: ../personas/qa-reviewer.md
|
|
||||||
expert-supervisor: ../personas/expert-supervisor.md
|
|
||||||
instructions:
|
|
||||||
plan: ../instructions/plan.md
|
|
||||||
implement: ../instructions/implement.md
|
|
||||||
ai-review: ../instructions/ai-review.md
|
|
||||||
ai-fix: ../instructions/ai-fix.md
|
|
||||||
arbitrate: ../instructions/arbitrate.md
|
|
||||||
review-arch: ../instructions/review-arch.md
|
|
||||||
review-frontend: ../instructions/review-frontend.md
|
|
||||||
review-security: ../instructions/review-security.md
|
|
||||||
review-qa: ../instructions/review-qa.md
|
|
||||||
fix: ../instructions/fix.md
|
|
||||||
supervise: ../instructions/supervise.md
|
|
||||||
fix-supervisor: ../instructions/fix-supervisor.md
|
|
||||||
report_formats:
|
|
||||||
plan: ../output-contracts/plan.md
|
|
||||||
ai-review: ../output-contracts/ai-review.md
|
|
||||||
architecture-review: ../output-contracts/architecture-review.md
|
|
||||||
frontend-review: ../output-contracts/frontend-review.md
|
|
||||||
security-review: ../output-contracts/security-review.md
|
|
||||||
qa-review: ../output-contracts/qa-review.md
|
|
||||||
validation: ../output-contracts/validation.md
|
|
||||||
summary: ../output-contracts/summary.md
|
|
||||||
initial_movement: plan
|
|
||||||
movements:
|
|
||||||
- name: plan
|
|
||||||
edit: false
|
|
||||||
persona: planner
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: plan
|
|
||||||
rules:
|
|
||||||
- condition: タスク分析と計画が完了した
|
|
||||||
next: implement
|
|
||||||
- condition: 要件が不明確で計画を立てられない
|
|
||||||
next: ABORT
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 00-plan.md
|
|
||||||
format: plan
|
|
||||||
- name: implement
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
session: refresh
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: implement
|
|
||||||
rules:
|
|
||||||
- condition: 実装が完了した
|
|
||||||
next: ai_review
|
|
||||||
- condition: 実装未着手(レポートのみ)
|
|
||||||
next: ai_review
|
|
||||||
- condition: 実装を進行できない
|
|
||||||
next: ai_review
|
|
||||||
- condition: ユーザー入力が必要
|
|
||||||
next: implement
|
|
||||||
requires_user_input: true
|
|
||||||
interactive_only: true
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Scope: 01-coder-scope.md
|
|
||||||
- Decisions: 02-coder-decisions.md
|
|
||||||
- name: ai_review
|
|
||||||
edit: false
|
|
||||||
persona: ai-antipattern-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- ai-antipattern
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: ai-review
|
|
||||||
rules:
|
|
||||||
- condition: AI特有の問題が見つからない
|
|
||||||
next: reviewers
|
|
||||||
- condition: AI特有の問題が検出された
|
|
||||||
next: ai_fix
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 03-ai-review.md
|
|
||||||
format: ai-review
|
|
||||||
- name: ai_fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
session: refresh
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: ai-fix
|
|
||||||
rules:
|
|
||||||
- condition: AI Reviewerの指摘に対する修正が完了した
|
|
||||||
next: ai_review
|
|
||||||
- condition: 修正不要(指摘対象ファイル/仕様の確認済み)
|
|
||||||
next: ai_no_fix
|
|
||||||
- condition: 修正を進行できない
|
|
||||||
next: ai_no_fix
|
|
||||||
- name: ai_no_fix
|
|
||||||
edit: false
|
|
||||||
persona: architecture-reviewer
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
rules:
|
|
||||||
- condition: ai_reviewの指摘が妥当(修正すべき)
|
|
||||||
next: ai_fix
|
|
||||||
- condition: ai_fixの判断が妥当(修正不要)
|
|
||||||
next: reviewers
|
|
||||||
instruction: arbitrate
|
|
||||||
- name: reviewers
|
|
||||||
parallel:
|
|
||||||
- name: arch-review
|
|
||||||
edit: false
|
|
||||||
persona: architecture-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge:
|
|
||||||
- architecture
|
|
||||||
- backend
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-arch
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 04-architect-review.md
|
|
||||||
format: architecture-review
|
|
||||||
- name: frontend-review
|
|
||||||
edit: false
|
|
||||||
persona: frontend-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge: frontend
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-frontend
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 05-frontend-review.md
|
|
||||||
format: frontend-review
|
|
||||||
- name: security-review
|
|
||||||
edit: false
|
|
||||||
persona: security-reviewer
|
|
||||||
policy: review
|
|
||||||
knowledge: security
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-security
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 06-security-review.md
|
|
||||||
format: security-review
|
|
||||||
- name: qa-review
|
|
||||||
edit: false
|
|
||||||
persona: qa-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- qa
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
rules:
|
|
||||||
- condition: approved
|
|
||||||
- condition: needs_fix
|
|
||||||
instruction: review-qa
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 07-qa-review.md
|
|
||||||
format: qa-review
|
|
||||||
rules:
|
|
||||||
- condition: all("approved")
|
|
||||||
next: supervise
|
|
||||||
- condition: any("needs_fix")
|
|
||||||
next: fix
|
|
||||||
- name: fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: 修正が完了した
|
|
||||||
next: reviewers
|
|
||||||
- condition: 修正を進行できない
|
|
||||||
next: plan
|
|
||||||
instruction: fix
|
|
||||||
- name: supervise
|
|
||||||
edit: false
|
|
||||||
persona: expert-supervisor
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: supervise
|
|
||||||
rules:
|
|
||||||
- condition: すべての検証が完了し、マージ可能な状態である
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: 問題が検出された
|
|
||||||
next: fix_supervisor
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Validation: 08-supervisor-validation.md
|
|
||||||
- Summary: summary.md
|
|
||||||
- name: fix_supervisor
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
knowledge:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
- security
|
|
||||||
- architecture
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: fix-supervisor
|
|
||||||
rules:
|
|
||||||
- condition: 監督者の指摘に対する修正が完了した
|
|
||||||
next: supervise
|
|
||||||
- condition: 修正を進行できない
|
|
||||||
next: plan
|
|
||||||
policies:
|
|
||||||
coding: ../policies/coding.md
|
|
||||||
review: ../policies/review.md
|
|
||||||
testing: ../policies/testing.md
|
|
||||||
ai-antipattern: ../policies/ai-antipattern.md
|
|
||||||
qa: ../policies/qa.md
|
|
||||||
@ -1,202 +0,0 @@
|
|||||||
# Auto-generated from minimal.yaml by tools/generate-hybrid-codex.mjs
|
|
||||||
# Do not edit manually. Edit the source piece and re-run the generator.
|
|
||||||
|
|
||||||
name: minimal-hybrid-codex
|
|
||||||
description: Minimal development piece (implement -> parallel review -> fix if needed -> complete)
|
|
||||||
max_iterations: 20
|
|
||||||
personas:
|
|
||||||
coder: ../personas/coder.md
|
|
||||||
ai-antipattern-reviewer: ../personas/ai-antipattern-reviewer.md
|
|
||||||
supervisor: ../personas/supervisor.md
|
|
||||||
instructions:
|
|
||||||
implement: ../instructions/implement.md
|
|
||||||
review-ai: ../instructions/review-ai.md
|
|
||||||
ai-fix: ../instructions/ai-fix.md
|
|
||||||
supervise: ../instructions/supervise.md
|
|
||||||
fix-supervisor: ../instructions/fix-supervisor.md
|
|
||||||
report_formats:
|
|
||||||
ai-review: ../output-contracts/ai-review.md
|
|
||||||
initial_movement: implement
|
|
||||||
movements:
|
|
||||||
- name: implement
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
instruction: implement
|
|
||||||
rules:
|
|
||||||
- condition: 実装が完了した
|
|
||||||
next: reviewers
|
|
||||||
- condition: 実装を進行できない
|
|
||||||
next: ABORT
|
|
||||||
- condition: ユーザーへの確認事項があるためユーザー入力が必要
|
|
||||||
next: implement
|
|
||||||
requires_user_input: true
|
|
||||||
interactive_only: true
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Scope: 01-coder-scope.md
|
|
||||||
- Decisions: 02-coder-decisions.md
|
|
||||||
- name: reviewers
|
|
||||||
parallel:
|
|
||||||
- name: ai_review
|
|
||||||
edit: false
|
|
||||||
persona: ai-antipattern-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- ai-antipattern
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: review-ai
|
|
||||||
rules:
|
|
||||||
- condition: AI特有の問題なし
|
|
||||||
- condition: AI特有の問題あり
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 03-ai-review.md
|
|
||||||
format: ai-review
|
|
||||||
- name: supervise
|
|
||||||
edit: false
|
|
||||||
persona: supervisor
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: supervise
|
|
||||||
rules:
|
|
||||||
- condition: すべて問題なし
|
|
||||||
- condition: 要求未達成、テスト失敗、ビルドエラー
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Validation: 05-supervisor-validation.md
|
|
||||||
- Summary: summary.md
|
|
||||||
rules:
|
|
||||||
- condition: all("AI特有の問題なし", "すべて問題なし")
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: all("AI特有の問題あり", "要求未達成、テスト失敗、ビルドエラー")
|
|
||||||
next: fix_both
|
|
||||||
- condition: any("AI特有の問題あり")
|
|
||||||
next: ai_fix
|
|
||||||
- condition: any("要求未達成、テスト失敗、ビルドエラー")
|
|
||||||
next: supervise_fix
|
|
||||||
- name: fix_both
|
|
||||||
parallel:
|
|
||||||
- name: ai_fix_parallel
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: AI問題の修正完了
|
|
||||||
- condition: 修正不要(指摘対象ファイル/仕様の確認済み)
|
|
||||||
- condition: 判断できない、情報不足
|
|
||||||
instruction: ai-fix
|
|
||||||
- name: supervise_fix_parallel
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: 監督者の指摘に対する修正が完了した
|
|
||||||
- condition: 修正を進行できない
|
|
||||||
instruction: fix-supervisor
|
|
||||||
rules:
|
|
||||||
- condition: all("AI問題の修正完了", "監督者の指摘に対する修正が完了した")
|
|
||||||
next: reviewers
|
|
||||||
- condition: any("修正不要(指摘対象ファイル/仕様の確認済み)", "判断できない、情報不足", "修正を進行できない")
|
|
||||||
next: implement
|
|
||||||
- name: ai_fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: AI問題の修正完了
|
|
||||||
next: reviewers
|
|
||||||
- condition: 修正不要(指摘対象ファイル/仕様の確認済み)
|
|
||||||
next: implement
|
|
||||||
- condition: 判断できない、情報不足
|
|
||||||
next: implement
|
|
||||||
instruction: ai-fix
|
|
||||||
- name: supervise_fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: 監督者の指摘に対する修正が完了した
|
|
||||||
next: reviewers
|
|
||||||
- condition: 修正を進行できない
|
|
||||||
next: implement
|
|
||||||
instruction: fix-supervisor
|
|
||||||
policies:
|
|
||||||
coding: ../policies/coding.md
|
|
||||||
review: ../policies/review.md
|
|
||||||
testing: ../policies/testing.md
|
|
||||||
ai-antipattern: ../policies/ai-antipattern.md
|
|
||||||
@ -1,44 +0,0 @@
|
|||||||
# Auto-generated from passthrough.yaml by tools/generate-hybrid-codex.mjs
|
|
||||||
# Do not edit manually. Edit the source piece and re-run the generator.
|
|
||||||
|
|
||||||
name: passthrough-hybrid-codex
|
|
||||||
description: Single-agent thin wrapper. Pass task directly to coder as-is.
|
|
||||||
max_iterations: 10
|
|
||||||
personas:
|
|
||||||
coder: ../personas/coder.md
|
|
||||||
initial_movement: execute
|
|
||||||
movements:
|
|
||||||
- name: execute
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: タスク完了
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: 進行できない
|
|
||||||
next: ABORT
|
|
||||||
- condition: ユーザー入力が必要
|
|
||||||
next: execute
|
|
||||||
requires_user_input: true
|
|
||||||
interactive_only: true
|
|
||||||
instruction_template: |
|
|
||||||
タスクをこなしてください。
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Summary: summary.md
|
|
||||||
policies:
|
|
||||||
coding: ../policies/coding.md
|
|
||||||
testing: ../policies/testing.md
|
|
||||||
@ -1,202 +0,0 @@
|
|||||||
# Auto-generated from review-fix-minimal.yaml by tools/generate-hybrid-codex.mjs
|
|
||||||
# Do not edit manually. Edit the source piece and re-run the generator.
|
|
||||||
|
|
||||||
name: review-fix-minimal-hybrid-codex
|
|
||||||
description: 既存コードのレビューと修正ピース(レビュー開始、実装なし)
|
|
||||||
max_iterations: 20
|
|
||||||
personas:
|
|
||||||
coder: ../personas/coder.md
|
|
||||||
ai-antipattern-reviewer: ../personas/ai-antipattern-reviewer.md
|
|
||||||
supervisor: ../personas/supervisor.md
|
|
||||||
instructions:
|
|
||||||
implement: ../instructions/implement.md
|
|
||||||
review-ai: ../instructions/review-ai.md
|
|
||||||
ai-fix: ../instructions/ai-fix.md
|
|
||||||
supervise: ../instructions/supervise.md
|
|
||||||
fix-supervisor: ../instructions/fix-supervisor.md
|
|
||||||
report_formats:
|
|
||||||
ai-review: ../output-contracts/ai-review.md
|
|
||||||
initial_movement: reviewers
|
|
||||||
movements:
|
|
||||||
- name: implement
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
instruction: implement
|
|
||||||
rules:
|
|
||||||
- condition: 実装が完了した
|
|
||||||
next: reviewers
|
|
||||||
- condition: 実装を進行できない
|
|
||||||
next: ABORT
|
|
||||||
- condition: ユーザーへの確認事項があるためユーザー入力が必要
|
|
||||||
next: implement
|
|
||||||
requires_user_input: true
|
|
||||||
interactive_only: true
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Scope: 01-coder-scope.md
|
|
||||||
- Decisions: 02-coder-decisions.md
|
|
||||||
- name: reviewers
|
|
||||||
parallel:
|
|
||||||
- name: ai_review
|
|
||||||
edit: false
|
|
||||||
persona: ai-antipattern-reviewer
|
|
||||||
policy:
|
|
||||||
- review
|
|
||||||
- ai-antipattern
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: review-ai
|
|
||||||
rules:
|
|
||||||
- condition: AI特有の問題なし
|
|
||||||
- condition: AI特有の問題あり
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- name: 03-ai-review.md
|
|
||||||
format: ai-review
|
|
||||||
- name: supervise
|
|
||||||
edit: false
|
|
||||||
persona: supervisor
|
|
||||||
policy: review
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
instruction: supervise
|
|
||||||
rules:
|
|
||||||
- condition: すべて問題なし
|
|
||||||
- condition: 要求未達成、テスト失敗、ビルドエラー
|
|
||||||
output_contracts:
|
|
||||||
report:
|
|
||||||
- Validation: 05-supervisor-validation.md
|
|
||||||
- Summary: summary.md
|
|
||||||
rules:
|
|
||||||
- condition: all("AI特有の問題なし", "すべて問題なし")
|
|
||||||
next: COMPLETE
|
|
||||||
- condition: all("AI特有の問題あり", "要求未達成、テスト失敗、ビルドエラー")
|
|
||||||
next: fix_both
|
|
||||||
- condition: any("AI特有の問題あり")
|
|
||||||
next: ai_fix
|
|
||||||
- condition: any("要求未達成、テスト失敗、ビルドエラー")
|
|
||||||
next: supervise_fix
|
|
||||||
- name: fix_both
|
|
||||||
parallel:
|
|
||||||
- name: ai_fix_parallel
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: AI問題の修正完了
|
|
||||||
- condition: 修正不要(指摘対象ファイル/仕様の確認済み)
|
|
||||||
- condition: 判断できない、情報不足
|
|
||||||
instruction: ai-fix
|
|
||||||
- name: supervise_fix_parallel
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: 監督者の指摘に対する修正が完了した
|
|
||||||
- condition: 修正を進行できない
|
|
||||||
instruction: fix-supervisor
|
|
||||||
rules:
|
|
||||||
- condition: all("AI問題の修正完了", "監督者の指摘に対する修正が完了した")
|
|
||||||
next: reviewers
|
|
||||||
- condition: any("修正不要(指摘対象ファイル/仕様の確認済み)", "判断できない、情報不足", "修正を進行できない")
|
|
||||||
next: implement
|
|
||||||
- name: ai_fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: AI問題の修正完了
|
|
||||||
next: reviewers
|
|
||||||
- condition: 修正不要(指摘対象ファイル/仕様の確認済み)
|
|
||||||
next: implement
|
|
||||||
- condition: 判断できない、情報不足
|
|
||||||
next: implement
|
|
||||||
instruction: ai-fix
|
|
||||||
- name: supervise_fix
|
|
||||||
edit: true
|
|
||||||
persona: coder
|
|
||||||
provider: codex
|
|
||||||
policy:
|
|
||||||
- coding
|
|
||||||
- testing
|
|
||||||
allowed_tools:
|
|
||||||
- Read
|
|
||||||
- Glob
|
|
||||||
- Grep
|
|
||||||
- Edit
|
|
||||||
- Write
|
|
||||||
- Bash
|
|
||||||
- WebSearch
|
|
||||||
- WebFetch
|
|
||||||
permission_mode: edit
|
|
||||||
rules:
|
|
||||||
- condition: 監督者の指摘に対する修正が完了した
|
|
||||||
next: reviewers
|
|
||||||
- condition: 修正を進行できない
|
|
||||||
next: implement
|
|
||||||
instruction: fix-supervisor
|
|
||||||
policies:
|
|
||||||
coding: ../policies/coding.md
|
|
||||||
review: ../policies/review.md
|
|
||||||
testing: ../policies/testing.md
|
|
||||||
ai-antipattern: ../policies/ai-antipattern.md
|
|
||||||
@ -1,260 +0,0 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
/**
|
|
||||||
* Generate hybrid-codex piece variants from standard pieces.
|
|
||||||
*
|
|
||||||
* For each standard piece (not already -hybrid-codex, not in skip list):
|
|
||||||
* 1. Parse the YAML
|
|
||||||
* 2. Add `provider: codex` to all coder movements (including parallel sub-movements)
|
|
||||||
* 3. Change name to {name}-hybrid-codex
|
|
||||||
* 4. Write the hybrid-codex YAML file
|
|
||||||
* 5. Update piece-categories.yaml to include generated hybrids
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* node tools/generate-hybrid-codex.mjs # Generate all
|
|
||||||
* node tools/generate-hybrid-codex.mjs --dry-run # Preview only
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { readFileSync, writeFileSync, readdirSync } from 'node:fs';
|
|
||||||
import { join, basename, dirname } from 'node:path';
|
|
||||||
import { parse, stringify } from 'yaml';
|
|
||||||
import { fileURLToPath } from 'node:url';
|
|
||||||
|
|
||||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
||||||
const ROOT = join(__dirname, '..');
|
|
||||||
const BUILTINS = join(ROOT, 'builtins');
|
|
||||||
const LANGUAGES = ['en', 'ja'];
|
|
||||||
|
|
||||||
/** Pieces that should NOT get hybrid variants (no coder involvement or special purpose) */
|
|
||||||
const SKIP_PIECES = new Set(['magi', 'research', 'review-only']);
|
|
||||||
|
|
||||||
const CODER_PERSONA = 'coder';
|
|
||||||
const dryRun = process.argv.includes('--dry-run');
|
|
||||||
|
|
||||||
// ─────────────────────────────────────────
|
|
||||||
// Movement transformation
|
|
||||||
// ─────────────────────────────────────────
|
|
||||||
|
|
||||||
function hasCoderPersona(movement) {
|
|
||||||
if (movement.persona === CODER_PERSONA) return true;
|
|
||||||
if (movement.parallel) return movement.parallel.some(sub => sub.persona === CODER_PERSONA);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Insert a field into an object after specified anchor fields (preserves key order).
|
|
||||||
* If anchor not found, appends at end.
|
|
||||||
*/
|
|
||||||
function insertFieldAfter(obj, key, value, anchorFields) {
|
|
||||||
if (obj[key] === value) return obj;
|
|
||||||
const result = {};
|
|
||||||
let inserted = false;
|
|
||||||
for (const [k, v] of Object.entries(obj)) {
|
|
||||||
if (k === key) continue; // Remove existing (will re-insert)
|
|
||||||
result[k] = v;
|
|
||||||
if (!inserted && anchorFields.includes(k)) {
|
|
||||||
result[key] = value;
|
|
||||||
inserted = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!inserted) result[key] = value;
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Add `provider: codex` to all coder movements (recursively handles parallel).
|
|
||||||
*/
|
|
||||||
function addCodexToCoders(movements) {
|
|
||||||
return movements.map(m => {
|
|
||||||
if (m.parallel) {
|
|
||||||
return { ...m, parallel: addCodexToCoders(m.parallel) };
|
|
||||||
}
|
|
||||||
if (m.persona === CODER_PERSONA) {
|
|
||||||
return insertFieldAfter(m, 'provider', 'codex', ['knowledge', 'stance', 'persona']);
|
|
||||||
}
|
|
||||||
return m;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// ─────────────────────────────────────────
|
|
||||||
// Hybrid piece builder
|
|
||||||
// ─────────────────────────────────────────
|
|
||||||
|
|
||||||
/** Top-level field order for readable output */
|
|
||||||
const TOP_FIELD_ORDER = [
|
|
||||||
'name', 'description', 'max_iterations',
|
|
||||||
'stances', 'knowledge', 'personas', 'instructions', 'report_formats',
|
|
||||||
'initial_movement', 'loop_monitors', 'answer_agent', 'movements',
|
|
||||||
];
|
|
||||||
|
|
||||||
function buildHybrid(parsed) {
|
|
||||||
const hybrid = {};
|
|
||||||
for (const field of TOP_FIELD_ORDER) {
|
|
||||||
if (field === 'name') {
|
|
||||||
hybrid.name = `${parsed.name}-hybrid-codex`;
|
|
||||||
} else if (field === 'movements') {
|
|
||||||
hybrid.movements = addCodexToCoders(parsed.movements);
|
|
||||||
} else if (parsed[field] != null) {
|
|
||||||
hybrid[field] = parsed[field];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Carry over any extra top-level fields not in the order list
|
|
||||||
for (const key of Object.keys(parsed)) {
|
|
||||||
if (!(key in hybrid) && key !== 'name') {
|
|
||||||
hybrid[key] = parsed[key];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return hybrid;
|
|
||||||
}
|
|
||||||
|
|
||||||
function generateHeader(sourceFile) {
|
|
||||||
return [
|
|
||||||
`# Auto-generated from ${sourceFile} by tools/generate-hybrid-codex.mjs`,
|
|
||||||
'# Do not edit manually. Edit the source piece and re-run the generator.',
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
].join('\n');
|
|
||||||
}
|
|
||||||
|
|
||||||
// ─────────────────────────────────────────
|
|
||||||
// Category handling
|
|
||||||
// ─────────────────────────────────────────
|
|
||||||
|
|
||||||
/** Recursively collect all piece names from a category tree */
|
|
||||||
function collectPieces(obj) {
|
|
||||||
const pieces = [];
|
|
||||||
if (!obj || typeof obj !== 'object') return pieces;
|
|
||||||
if (Array.isArray(obj.pieces)) pieces.push(...obj.pieces);
|
|
||||||
for (const [key, val] of Object.entries(obj)) {
|
|
||||||
if (key === 'pieces') continue;
|
|
||||||
if (typeof val === 'object' && val !== null && !Array.isArray(val)) {
|
|
||||||
pieces.push(...collectPieces(val));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return pieces;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Find the key for the hybrid top-level category */
|
|
||||||
function findHybridTopKey(categories) {
|
|
||||||
for (const key of Object.keys(categories)) {
|
|
||||||
if (key.includes('Hybrid') || key.includes('ハイブリッド')) return key;
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Build mapping: standard piece name → top-level category key.
|
|
||||||
* Excludes the hybrid category and "Others" category.
|
|
||||||
*/
|
|
||||||
function getTopLevelMapping(categories, hybridKey, othersKey) {
|
|
||||||
const map = new Map();
|
|
||||||
for (const [key, val] of Object.entries(categories)) {
|
|
||||||
if (key === hybridKey) continue;
|
|
||||||
if (othersKey && key === othersKey) continue;
|
|
||||||
if (typeof val !== 'object' || val === null) continue;
|
|
||||||
const pieces = collectPieces(val);
|
|
||||||
for (const p of pieces) map.set(p, key);
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Build the hybrid category section by mirroring standard categories.
|
|
||||||
*/
|
|
||||||
function buildHybridCategories(generatedNames, topMap) {
|
|
||||||
// Group hybrids by their source piece's top-level category
|
|
||||||
const grouped = new Map();
|
|
||||||
for (const hybridName of generatedNames) {
|
|
||||||
const sourceName = hybridName.replace('-hybrid-codex', '');
|
|
||||||
const topCat = topMap.get(sourceName);
|
|
||||||
if (!topCat) continue;
|
|
||||||
if (!grouped.has(topCat)) grouped.set(topCat, []);
|
|
||||||
grouped.get(topCat).push(hybridName);
|
|
||||||
}
|
|
||||||
|
|
||||||
const section = {};
|
|
||||||
for (const [catKey, hybrids] of grouped) {
|
|
||||||
section[catKey] = { pieces: hybrids.sort() };
|
|
||||||
}
|
|
||||||
return section;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ─────────────────────────────────────────
|
|
||||||
// Main
|
|
||||||
// ─────────────────────────────────────────
|
|
||||||
|
|
||||||
console.log('=== Generating hybrid-codex pieces ===\n');
|
|
||||||
|
|
||||||
for (const lang of LANGUAGES) {
|
|
||||||
console.log(`[${lang}]`);
|
|
||||||
const generatedNames = [];
|
|
||||||
|
|
||||||
const piecesDir = join(BUILTINS, lang, 'pieces');
|
|
||||||
const files = readdirSync(piecesDir)
|
|
||||||
.filter(f => f.endsWith('.yaml') && !f.includes('-hybrid-codex'))
|
|
||||||
.sort();
|
|
||||||
|
|
||||||
for (const file of files) {
|
|
||||||
const name = basename(file, '.yaml');
|
|
||||||
if (SKIP_PIECES.has(name)) {
|
|
||||||
console.log(` Skip: ${name} (in skip list)`);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
const content = readFileSync(join(piecesDir, file), 'utf-8');
|
|
||||||
const parsed = parse(content);
|
|
||||||
|
|
||||||
if (!parsed.movements?.some(hasCoderPersona)) {
|
|
||||||
console.log(` Skip: ${name} (no coder movements)`);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
const hybrid = buildHybrid(parsed);
|
|
||||||
const header = generateHeader(file);
|
|
||||||
const yamlOutput = stringify(hybrid, { lineWidth: 120, indent: 2 });
|
|
||||||
const outputPath = join(piecesDir, `${name}-hybrid-codex.yaml`);
|
|
||||||
|
|
||||||
if (dryRun) {
|
|
||||||
console.log(` Would generate: ${name}-hybrid-codex.yaml`);
|
|
||||||
} else {
|
|
||||||
writeFileSync(outputPath, header + yamlOutput, 'utf-8');
|
|
||||||
console.log(` Generated: ${name}-hybrid-codex.yaml`);
|
|
||||||
}
|
|
||||||
|
|
||||||
generatedNames.push(`${name}-hybrid-codex`);
|
|
||||||
}
|
|
||||||
|
|
||||||
// ─── Update piece-categories.yaml ───
|
|
||||||
const catPath = join(BUILTINS, lang, 'piece-categories.yaml');
|
|
||||||
const catRaw = readFileSync(catPath, 'utf-8');
|
|
||||||
const catParsed = parse(catRaw);
|
|
||||||
const cats = catParsed.piece_categories;
|
|
||||||
|
|
||||||
if (cats) {
|
|
||||||
const hybridKey = findHybridTopKey(cats);
|
|
||||||
const othersKey = Object.keys(cats).find(k =>
|
|
||||||
k === 'Others' || k === 'その他'
|
|
||||||
);
|
|
||||||
|
|
||||||
if (hybridKey) {
|
|
||||||
const topMap = getTopLevelMapping(cats, hybridKey, othersKey);
|
|
||||||
const newSection = buildHybridCategories(generatedNames, topMap);
|
|
||||||
cats[hybridKey] = newSection;
|
|
||||||
|
|
||||||
if (dryRun) {
|
|
||||||
console.log(` Would update: piece-categories.yaml`);
|
|
||||||
console.log(` Hybrid pieces: ${generatedNames.join(', ')}`);
|
|
||||||
} else {
|
|
||||||
const catOut = stringify(catParsed, { lineWidth: 120, indent: 2 });
|
|
||||||
writeFileSync(catPath, catOut, 'utf-8');
|
|
||||||
console.log(` Updated: piece-categories.yaml`);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
console.log(` Warning: No hybrid category found in piece-categories.yaml`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log();
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log('Done!');
|
|
||||||
if (dryRun) console.log('(dry-run mode, no files were written)');
|
|
||||||
Loading…
x
Reference in New Issue
Block a user