Repository navigation
실행별 capability 범위를 고정해 계획 입력과 실행 허용 도구를 함께 제한 - #144
Draft
SonAIengine wants to merge 1 commit into
Draft
SonAIengine wants to merge 1 commit into
SonAIengine wants to merge 1 commit into
Conversation
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.
전체 도구 카탈로그가 필요 없는 실행에서도 모든 capability 정의를 모델에 전송하던 문제를 해결한다.
run --capability ID를 반복 지정하면 선택한 정의와 instance만 계획 및 admission에 등록하고, 범위를 manifest와 실행 digest에 결속해resume에서도 유지한다. 옵션 생략 시 기존 동작을 유지하며, 알 수 없는 ID와 중복 ID는 provider 호출 전에 거절한다. 기존 읽기·쓰기 권한을 추가로 부여하지 않는다.매매나 업무별 판단 규칙은 엔진에 넣지 않았다. HTTP 도구만 선택한 로컬 재현 2건에서 동일한 본문을 유지한 채 요청이 각각 38,678→23,435 bytes, 37,967→22,724 bytes로 줄었다. 이는 요청 크기 개선이며 실제 모델 판단 품질을 검증한 결과는 아니다. 더 긴 기억과 큰 본문은 여전히 요청 제한을 넘을 수 있다.
검증: CLI library 109개와 workspace integration 22개 통과. 읽기·stat의 승인/재개, 범위 밖 쓰기 차단, 알 수 없는 ID·중복 ID, manifest 변조, 기본 동작을 확인했다.
cargo clippy -p xgen-cli --lib --bin xgen --locked -- -D warnings통과.추가 확인: 별도 호스트에서 과거 자료와 합성 기억/도구 출력을 사용한120슬롯 중103완료·3요청크기차단·14입력문제미실행. 구현 검증에 따로 남긴100슬롯은84완료·2차단·14미실행이었다. 실제 모델 호출과 수익 계산은0이다. 필요 없는 catalog를 줄이는 효과는 확인했지만 큰 본문과 누적 기억이 모든 요청 한도 안에 들어간다는 보장은 하지 않는다. 원문형은 실행 가능한53슬롯 전부, 합성 도구형은53중50슬롯이 완료됐다.