Pre-flight assets prepared on the main machine before the new-machine rewrite of my-deepagent in Python. - poc/: BudgetTracker + CostMiddleware + MockChatModel PoC. Validates wrap_model_call pattern, SQLite WAL + ON CONFLICT upsert, per-scope cap accounting. 5/5 pytest PASS in isolated uv venv. - schemas/: 10 personas (Anthropic Sonnet/Opus/Haiku + DeepSeek mix), 3 workflows (spec-and-review, bug-fix-with-reproduction, code-investigation), 4 artifact JSON Schemas (dev/spec@1, dev/phase-plan@1, dev/review-finding-batch@1, common/final-report@1). - schemas/validate.py: pydantic + Draft202012 cross-validation. 18/18 assets verified. - README.md: new-machine bootstrap instructions. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
77 lines
2.4 KiB
YAML
77 lines
2.4 KiB
YAML
name: spec-and-review
|
|
version: 1
|
|
description: "요구사항 → spec → 리뷰 → verifier 검증"
|
|
roles:
|
|
- id: spec_writer
|
|
required_capabilities:
|
|
- spec_write
|
|
- phase_planning
|
|
preferred_backends:
|
|
- openrouter
|
|
fallback_personas:
|
|
- "openrouter-claude-spec-writer@1"
|
|
- id: reviewer
|
|
required_capabilities:
|
|
- code_review
|
|
- evidence_check
|
|
preferred_backends:
|
|
- openrouter
|
|
fallback_personas:
|
|
- "openrouter-claude-code-reviewer@1"
|
|
- id: verifier
|
|
required_capabilities:
|
|
- evidence_check
|
|
- objective_eval
|
|
preferred_backends:
|
|
- openrouter
|
|
fallback_personas:
|
|
- "openrouter-deepseek-verifier@1"
|
|
phases:
|
|
- key: spec
|
|
title: "요구사항 분석 및 Spec 작성"
|
|
risk: low
|
|
role: spec_writer
|
|
expected_artifact:
|
|
path: artifacts/spec.json
|
|
schema: dev/spec@1
|
|
gates:
|
|
- spec_approved
|
|
timeout_seconds: 300
|
|
instructions: |
|
|
사용자 요구사항을 분석해 dev/spec@1 schema에 맞는 spec.json을 작성하세요.
|
|
기존 코드는 read_file/glob/grep으로 탐색합니다.
|
|
완성된 spec.json은 write_file로 artifacts/spec.json에 저장합니다.
|
|
max_budget_usd: 0.50
|
|
- key: review
|
|
title: "Spec 리뷰"
|
|
risk: low
|
|
role: reviewer
|
|
expected_artifact:
|
|
path: artifacts/review.json
|
|
schema: dev/review-finding-batch@1
|
|
gates:
|
|
- review_approved
|
|
timeout_seconds: 300
|
|
instructions: |
|
|
artifacts/spec.json을 read_file로 읽고 dev/review-finding-batch@1 형식으로 review.json을 작성하세요.
|
|
각 finding은 severity, category, summary를 반드시 포함합니다.
|
|
완성된 review.json은 write_file로 artifacts/review.json에 저장합니다.
|
|
max_budget_usd: 0.50
|
|
- key: verify
|
|
title: "리뷰 결과 검증"
|
|
risk: low
|
|
role: verifier
|
|
expected_artifact:
|
|
path: artifacts/verification.json
|
|
schema: dev/review-finding-batch@1
|
|
gates:
|
|
- verify_approved
|
|
timeout_seconds: 180
|
|
instructions: |
|
|
artifacts/review.json을 read_file로 읽고 각 finding을 코드에서 직접 확인합니다.
|
|
verifierStatus를 confirmed 또는 rejected로 판정하고 근거를 evidence 필드에 기록합니다.
|
|
결과를 write_file로 artifacts/verification.json에 저장합니다.
|
|
max_budget_usd: 0.10
|
|
default_gates: []
|
|
max_total_budget_usd: 2.0
|