Skip to content

fix(agents): align permissionMode acceptEdits across plugin and project layers#732

Merged
kcenon merged 1 commit into
developfrom
fix/issue-729-permissionmode-plugin-alignment
Jun 13, 2026
Merged

fix(agents): align permissionMode acceptEdits across plugin and project layers#732
kcenon merged 1 commit into
developfrom
fix/issue-729-permissionmode-plugin-alignment

Conversation

@kcenon

@kcenon kcenon commented Jun 13, 2026

Copy link
Copy Markdown
Owner

변경 내용

plugin/agents/ 의 두 write 에이전트(documentation-writer, refactor-assistant) frontmatter에 permissionMode: acceptEdits를 추가하여 project/.claude/agents/ 사본과 정렬하고, docs/CUSTOM_EXTENSIONS.md에 이 필드가 두 레이어에서 동일하게 유지됨을 명문화했다.

배경

permissionMode는 런타임이 honor하는 공식 frontmatter 필드다. 그러나 permissionMode: acceptEditsproject/.claude/agents/documentation-writer.mdrefactor-assistant.md 에만 선언되어 있고, 대응하는 plugin/agents/ 사본에는 누락되어 있었다.

docs/CUSTOM_EXTENSIONS.md의 의도된 레이어 차이 목록은 colortemperature만 명시하고 permissionMode는 언급하지 않으므로, 이 누락은 의도된 차이가 아니라 조용한 권한 드리프트(silent capability drift)였다. 그 결과 standalone plugin 배포본에서는 동일한 write 에이전트가 매 편집마다 권한 프롬프트를 받아 무인·배치 문서/리팩터링 작업 흐름이 끊겼다. 또한 scripts/check_agents.sh는 frontmatter를 제거하고 본문만 비교하므로 이 차이가 CI에서 잡히지 않고 출하되었다.

구현

  • plugin/agents/documentation-writer.md frontmatter의 effort: high 다음에 permissionMode: acceptEdits 추가.
  • plugin/agents/refactor-assistant.md frontmatter에 동일하게 추가.
  • docs/CUSTOM_EXTENSIONS.md의 레이어-차이 설명 문장에 permissionMode: acceptEdits가 두 write 에이전트에 대해 양 레이어 동일하게 유지됨을 명문화.

검증

  • grep "permissionMode" plugin/agents/{documentation-writer,refactor-assistant}.md → 각 1건(effort: high 다음 줄)
  • scripts/check_agents.shcheck_agents: OK (8 agent pairs in sync) (본문 parity 영향 없음; frontmatter는 비교 대상 아님)

비고

refactor-assistant는 직전 PR(#731, 옵션 B)에서 tools를 변경하지 않고 본문만 재서술했으므로, 이 PR에서 acceptEdits를 추가해도 "미검증 자동편집 + 자동 셸 실행" 동시 개방 문제는 발생하지 않는다.

후속(epic #726의 P2): scripts/check_agents.shpermissionMode/tools 같은 동작 필드의 레이어 간 정합성 검사를 추가하여(의도된 차이인 color는 allowlist) 재발을 CI에서 차단하는 작업이 남아 있다.

Closes #729
Part of #726

…ct layers

permissionMode: acceptEdits was declared only in the project copies of the documentation-writer and refactor-assistant write agents; the plugin copies omitted it, so the same write agents prompted on every edit in the standalone plugin distribution. Add the field to both plugin copies to align the layers, and document in CUSTOM_EXTENSIONS.md that permissionMode is kept identical across layers (it was previously missing from the intended-layer-diff list, making the gap a silent capability drift).
@kcenon kcenon merged commit 639129c into develop Jun 13, 2026
1 check passed
@kcenon kcenon deleted the fix/issue-729-permissionmode-plugin-alignment branch June 13, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant