From bbc5b0f1f8eda92969f1c1996e5fef5a5483b9b7 Mon Sep 17 00:00:00 2001 From: toki Date: Wed, 20 May 2026 10:10:18 +0900 Subject: [PATCH] fix: limit agent-ops sync commit scope --- agent-ops/bin/sync.sh | 5 ++++- agent-ops/skills/common/sync-push/SKILL.md | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/agent-ops/bin/sync.sh b/agent-ops/bin/sync.sh index e4e7e1e..dbde37f 100755 --- a/agent-ops/bin/sync.sh +++ b/agent-ops/bin/sync.sh @@ -103,7 +103,10 @@ discover_agent_ops_targets() { } agent_ops_git_paths() { - printf '%s\n' "agent-ops" + printf '%s\n' "agent-ops/.version" + printf '%s\n' "agent-ops/bin" + printf '%s\n' "agent-ops/rules/common" + printf '%s\n' "agent-ops/skills/common" local f for f in "${AGENT_OPS_ENTRY_FILES[@]}"; do diff --git a/agent-ops/skills/common/sync-push/SKILL.md b/agent-ops/skills/common/sync-push/SKILL.md index 15b4242..12c9c5b 100644 --- a/agent-ops/skills/common/sync-push/SKILL.md +++ b/agent-ops/skills/common/sync-push/SKILL.md @@ -34,7 +34,7 @@ description: 현재 프로젝트의 agent-ops를 agentic-framework로 올리거 3. **명시되지 않은 경우**: `agent-ops/bin/sync.sh` 실행 4. target이 없으면 `sync.sh`가 현재 프로젝트 기준 상위 폴더(`../`)의 하위 디렉터리 중 `agent-ops/` 폴더가 있는 프로젝트를 모두 대상으로 삼는다 5. `sync.sh`는 현재 agentic-framework의 `agent-ops/rules/common/rules.md` 내용을 대상 프로젝트 루트의 진입 파일에 덮어쓴다 -6. 적용 후 각 대상 repo에서 `agent-ops/`와 진입 파일만 stage 하여 commit/push 한다 +6. 적용 후 각 대상 repo에서 agent-ops 공통 관리 경로와 진입 파일만 stage 하여 commit/push 한다 덮어쓰기 대상은 `init-agent-ops` 초기 세팅과 동일하며, 실제 목록은 `agent-ops/bin/entry-files.sh`의 `AGENT_OPS_ENTRY_FILES`를 단일 기준으로 사용한다. @@ -52,14 +52,14 @@ description: 현재 프로젝트의 agent-ops를 agentic-framework로 올리거 agent-ops/bin/sync.sh [target] ``` -푸시 대상 path는 항상 `agent-ops/`와 `AGENT_OPS_ENTRY_FILES`의 진입 파일로 제한한다. +푸시 대상 path는 항상 `agent-ops/.version`, `agent-ops/bin`, `agent-ops/rules/common`, `agent-ops/skills/common`과 `AGENT_OPS_ENTRY_FILES`의 진입 파일로 제한한다. ## 실행 결과 검증 - [ ] sync.sh 가 오류 없이 완료됐는가 - [ ] 버전 충돌 경고가 없었는가 — 있었다면 사용자에게 수동 머지 필요함을 알린다 - [ ] agentic-framework에서 대상 프로젝트로 push한 경우, `agent-ops/bin/entry-files.sh`의 모든 진입 파일 내용이 현재 agentic-framework의 `agent-ops/rules/common/rules.md`와 일치하는가 -- [ ] 대상 repo에 commit/push 된 path가 `agent-ops/`와 진입 파일로 제한되었는가 +- [ ] 대상 repo에 commit/push 된 path가 agent-ops 공통 관리 경로와 진입 파일로 제한되었는가 ## 금지 사항