chore: 계약 경계 정리 + AGENTS 산출물 최신화#8
Merged
Merged
Conversation
원래 설계 계약("contract=순수 진실 / tools=얇은 글루", "AGENTS=단일 출처")과의
드리프트 2건을 교정.
1. telegram: 파일시스템을 만지는 is_local_file를 contract.py → tools.py로 이동.
contract.py는 엔드포인트 상수 + pydantic 모델(네트워크/MCP 무의존)만 유지.
업로드 헬퍼 테스트도 test_telegram_contract → test_telegram_tools로 이동.
2. AGENTS.md / docs/adding-a-service.md: 서비스 산출물·DoD에
tests/test_<name>_tools.py(도구 런타임 검증, conftest의 FakeMCP/RecordingHTTP) 반영.
(PR #7에서 추가됐으나 계약 문서에 누락돼 있던 것.)
ruff clean. (로컬 pytest는 환경 메모리 포화로 미실행 — CI에서 검증.)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ArcSolver
added a commit
that referenced
this pull request
Jun 4, 2026
원래 설계 계약("contract=순수 진실 / tools=얇은 글루", "AGENTS=단일 출처")과의
드리프트 2건을 교정.
1. telegram: 파일시스템을 만지는 is_local_file를 contract.py → tools.py로 이동.
contract.py는 엔드포인트 상수 + pydantic 모델(네트워크/MCP 무의존)만 유지.
업로드 헬퍼 테스트도 test_telegram_contract → test_telegram_tools로 이동.
2. AGENTS.md / docs/adding-a-service.md: 서비스 산출물·DoD에
tests/test_<name>_tools.py(도구 런타임 검증, conftest의 FakeMCP/RecordingHTTP) 반영.
(PR #7에서 추가됐으나 계약 문서에 누락돼 있던 것.)
ruff clean. (로컬 pytest는 환경 메모리 포화로 미실행 — CI에서 검증.)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
"처음 계약대로 클린한가" 감사에서 발견한 드리프트 2건 교정.
1. contract/tools 경계 (순수성 복원)
telegram/contract.py의is_local_file(파일시스템os.path.isfile사용)를tools.py로 이동. contract.py는 "엔드포인트 상수 + pydantic 모델(네트워크/MCP 무의존)"만 유지.test_telegram_contract.py→test_telegram_tools.py로 이동(레이어 일치).2. AGENTS.md 단일 출처 최신화
PR #7에서 추가된
tests/test_<name>_tools.py(도구 런타임 검증) +tests/conftest.py가 AGENTS.md 산출물·DoD에 누락돼 있던 것을 반영.docs/adding-a-service.md도 동일 갱신.검증
ruff check .clean. 로컬 pytest는 환경 메모리 포화로 미실행 — CI 전체 검증.🤖 Generated with Claude Code