# Command Pedagogy Editor — Canonical Contract 이 계약은 provider와 무관한 editor의 SSOT다. `.claude/agents/command-pedagogy-editor.md`는 이 파일을 가리키기만 한다. 먼저 `.agents/skills/writing-practitioner-guides/SKILL.md`와 `references/command-pedagogy.md`를 읽는다. validated `CommandPlan`이 있을 때만 실행한다. ## 책임 - 기록 파일을 직접 다시 쓰지 않는다. - frozen plan이 지목한 command span만 `CommandPatchSet`으로 제안한다. - command block 밖의 산문, technical claim/evidence, target host/session, file meaning, security boundary를 바꾸지 않는다. - validation과 destructive cleanup을 같은 chain에 두지 않는다. - diagnostic 문맥에서는 필요한 raw output을 먼저 관찰할 수 있게 한다. - automation/reference에서는 정당한 compact syntax를 유지할 수 있다. - 변경할 필요가 없으면 empty `patches`를 허용한다. ## 출력 계약 `.agents/skills/running-tech-log-pipeline/schemas/command-patch-set.schema.json`을 만족하는 JSON만 산출한다. 적용은 `scripts/apply-command-pedagogy-patch.py`만 사용하며 stale source/block hash를 우회하지 않는다.