refactor(harness): 계약만 남기고 감축 — 지시문 −20%, 제품 39파일 - #33
Merged
Conversation
프롬프트에서 **모델이 이미 아는 것**을 걷어내고 **우리가 정한 것**만 남겼다. 판단 기준은 문장마다 하나였다 — 이건 모델이 아는 건가, 우리가 정한 건가? 주요 변경: - /prd, /implement, /screen-spec, code-reviewer 지시문 축소. 일반 개발 지식(프레임워크 경로 예시, 도메인 수에 따른 아키텍처 선택표, '코드를 쓰기 전에 기존 코드를 읽어라')은 모델이 이미 한다 -> 삭제 - PRD 골격을 contracts/PRD-CONTRACT.md 단일 정본으로 통합. 생성 쪽과 검증 쪽이 각자 사본을 들고 있었다 - 100점 루브릭 제거 -> 판정을 findings 롤업으로 단일화. 게이트는 애초에 그 점수를 쓰지 않았다(판정은 롤업). 같은 코드에 78/85로 튀는 표시값만 유지비를 먹고 있었다 - 호출처가 0인 대형 병렬 coordinator 2개 삭제 - 존재하지 않는 도구 참조 제거 — 서브에이전트에 없는 도구로 진행 추적을 지시하고 있었다. PLAN 문서 체크박스를 단일 원장으로 - 모델 버전 전용 튜닝 파일 제거(다음 모델마다 재검증해야 하는 부채) - 커밋 게이트를 프롬프트 밖 실행 코드로 이동. 객관 검사 exit code 에 바인딩 감축이 드러낸 결함 2건도 함께 고쳤다: - 죽은 플래그(--verify-vision)가 렌더/캡처 동작에 연결돼 있지 않았다 - /screen-spec 산출물 5종을 만들고 /implement 가 아무것도 읽지 않았다 eval 원자료는 이 PR에서 제외하고 evals/* 브랜치로 분리했다. Co-Authored-By: Claude <noreply@anthropic.com>
HyeonsangKim
force-pushed
the
refactor/prompt-diet-opus5
branch
from
August 4, 2026 02:26
02b6fd8 to
439d35b
Compare
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.
무엇을
프롬프트에서 모델이 이미 아는 것을 걷어내고 우리가 정한 것만 남겼다.
판단 기준은 문장마다 하나였다 — 이건 모델이 아는 건가, 우리가 정한 건가?
commands/prd.mdcommands/implement.mdcommands/screen-spec.md+ SKILLagents/code-reviewer.mdagents/code-reviewer-lean.mdagents/parallel-*-coordinator.mdcontracts/PRD-CONTRACT.md왜
남겨야 하는 것은 어떻게 줄였나
계약 항목은 지우지 않고, 채운 예시를 빈 스키마로 바꿨다. 예:
§5.4.1 Page State Matrix모델에게 필요한 건 "이 표엔 이 칸들이 있고
empty는 정상 응답 0건을 뜻한다" 는 어휘지, "Magic Link 검증 중엔 loading이다" 라는 시범이 아니다. 조건부 규칙(Has FE Components: Yes≥1일 때만 작성)은 우리가 정한 것이라 그대로 유지했다.계약 10항목은
C-1~C-10표로 모으고 채점기와 1:1 대응시켰다 — 계약이 바뀌면 검증이 깨진다.검증
check_contracts.py는 삭제된 에이전트를 여전히 부르는 참조, 실제 환경에 없는 도구 이름, manifest 불일치를 소스에서 직접 찾는다. 죽은 경로는 모델 품질 문제가 아니라 참조 그래프 무결성 문제이므로 모델 호출 없이 검사한다.부수 수정
Quality Score:문자열이라 루브릭을 지울 수 없었다 →Quality Gate: PASS. 레거시도 계속 인식(구버전 설치본).TodoWrite로 진행 추적을 지시했으나 서브에이전트에 그 도구가 없다 → PLAN 문서 체크박스를 단일 원장으로.--verify-vision— 옵션 설명만 있고 렌더·캡처 동작에 연결돼 있지 않았다/screen-spec→/implement끊긴 연결 — 산출물 5종을 만들고 아무도 읽지 않고 있었다아직 주장하지 않는 것
이 PR은 위 두 테스트가 검증하는 범위만 주장한다. 아래는 측정하지 않았거나 재측정 중이다.
/implement·/screen-spec감축의 출력 품질 — 미측정.측정 코드·프로토콜·원자료는 이 PR에 싣지 않고
evals/*브랜치로 분리했다.