65 lines
2.7 KiB
Markdown
65 lines
2.7 KiB
Markdown
# Step 0: Coding Style Agent Contract
|
|
|
|
> 과거 개발 계획이다. 아래 작업·상태·예시는 현재 실행 지시가 아니다.
|
|
> 현재 구현과 검증 한계는 [기능 요약](../../docs/cpp-object-oriented-modular-refactoring/README.md)을 따른다.
|
|
|
|
## 읽어야 할 파일
|
|
|
|
- `/AGENTS.md`
|
|
- `../../docs/solver-core/README.md`
|
|
- `../../docs/solver-core/README.md`
|
|
- `../../docs/solver-core/README.md`
|
|
- `../../docs/solver-core/README.md`
|
|
- `/.codex/hooks.json`
|
|
- `/tests/test_agent_skill_workflow_contract.py`
|
|
- `../../docs/cpp-object-oriented-modular-refactoring/README.md`
|
|
- `/phases/cpp-object-oriented-modular-refactoring/index.json`
|
|
- `/phases/cpp-object-oriented-modular-refactoring/step0.md`
|
|
|
|
필수 파일이 없거나 승인 설계와 충돌하면 현재 Step을 `blocked`로 기록하고 중단한다.
|
|
|
|
## 작업
|
|
|
|
Requirement `R-AGENT-001`만 구현한다.
|
|
|
|
1. `tests/test_agent_skill_workflow_contract.py`에 `P-AGENT-001`을 먼저 추가한다.
|
|
2. Test는 `implementation-agent.toml`의 mandatory global input 구간이 literal path
|
|
`../../docs/solver-core/README.md`를 직접 포함하고, C++ Step 시작 전에 읽도록 지시하는지 검증한다.
|
|
3. RED에서 현재 profile이 이 contract를 만족하지 않아 assertion failure가 발생함을 기록한다.
|
|
|
|
```text
|
|
Before every C++ implementation Step, read docs/CODINGSTYLE.md as a mandatory global
|
|
input and apply it to production and test code. Doxygen coverage applies only to
|
|
production code.
|
|
```
|
|
|
|
5. 다른 agent profile, solver 문서, production C++, CMake는 수정하지 않는다.
|
|
|
|
## Acceptance Criteria
|
|
|
|
RED와 GREEN을 다음 명령으로 구분해 기록한다.
|
|
|
|
```powershell
|
|
uv run --with pytest python -m pytest -v -rs `
|
|
tests/test_agent_skill_workflow_contract.py
|
|
uv run --with pytest python -m pytest -v -rs
|
|
```
|
|
|
|
Repository Stop 검증과 동일한 C++ 회귀 확인:
|
|
|
|
과거 도구 실행·출력 지시는 정리했으며, 현재 검증 방법은 기능 요약을 따른다.
|
|
|
|
## 검증 및 상태 갱신
|
|
|
|
- RED assertion, GREEN targeted/full pytest, C++ regression 결과를 summary에 남긴다.
|
|
- 성공 시 현재 Step만 `completed`와 한 줄 `summary`로 갱신한다.
|
|
- 실패면 `error`/`error_message`, 사용자 개입이 필요하면
|
|
`blocked`/`blocked_reason`을 기록한다.
|
|
- timestamp, retry, commit, 다음 Step 선택은 Executor 소유다.
|
|
|
|
## 금지사항
|
|
|
|
- C++ 또는 CMake를 수정하지 마라. 이유: 이 Step은 agent contract만 소유한다.
|
|
- 다른 agent profile에 동일 문구를 일괄 추가하지 마라. 이유: 승인 범위를 넓힌다.
|
|
- 직접 commit하거나 hook script를 수동 실행하지 마라. 이유: Executor와 hook의 소유권이다.
|