Repository navigation
실행별 capability 범위를 고정해 계획 입력과 실행 허용 도구를 함께 제한 - #144
Merged
Merged
Conversation
SonAIengine
marked this pull request as ready for review
November 19, 2026 03:29
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.
전체 도구가 필요 없는 Run에도 모든 capability schema를 보내던 문제를 해결한다.
run --capability ID를 반복 지정하면 선택한 정의·instance만 같은 CapabilityRegistry에 등록해 모델 카탈로그와 proposal admission을 함께 제한한다. 범위는 manifest·authority·execution profile에 고정하고 resume에서 그대로 복원한다. 옵션 생략 시 기존 전체 카탈로그를 유지하며 선택 자체는 실행 승인을 부여하지 않는다.실제 등록된 도구·resource selector에 맞춰 workspace/process/search/describe 안내를 구성한다. 필수 completion 검사가 요구하는 process.execute를 제외하면 모델 호출 전에 거절한다. 정확한 allow-file 모드에서도 제약 context 계약을 유지한다. API 입력·응답 본문·Receipt는 축약하지 않는다. ADR-0087과 docs/development/capability-scope.md 참조.
검증: Rust798 passed/4 ignored, system Python3.14+pinned graph-tool-call0.47.0+컴파일 CLI Python162 tests/9 skipped, Clippy·fmt·protocol·문서·workflow 검사 통과. read/stat 승인·재개, 선택 write의 별도 승인·범위 밖 write 차단, 미등록/중복 ID·manifest 변조·필수 검사 모순, partial/기본 안내, allow-file과 제외된 process 설정의 조합을 확인했다. 별도 shipment/sensor fixture에서 요청 크기가 줄면서 API 입력·본문은 같았고, 기존 rc.6 바이너리에서 시작한 Run도 같은 catalog digest로 재개됐다.
실제 모델 판단 품질·토큰 금액 절감은 미측정이다. 큰 본문·누적 기록은 별도로 요청 한도를 넘을 수 있다. 독립 diff 검토 도구는 인증 오류로 실행하지 못해 직접 코드 검토와 실행 검증으로 확인했다. Python3.14에서는 SQLite ResourceWarning이 출력됐으나 검사 실패는 없었다.