Skip to content

신뢰 모드 goal에 workspace 경계·shell 경로 안내 (ADR-0063) - #115

Merged
SonAIengine merged 1 commit into
mainfrom
feat/trusted-environment-note
Oct 26, 2026
Merged

SonAIengine merged 1 commit into
mainfrom
feat/trusted-environment-note

Conversation

@SonAIengine

Copy link
Copy Markdown
Contributor

요약

  • 신뢰 모드 REPL이 shell을 catalog에 넣을 때 goal 뒤에 host 안내 한 단락을 붙인다: workspace 절대 경로, xgeny.fs/*는 그 안의 상대 경로만 받고 밖은 not_found, 밖은 <shell> -c(pwsh는 -Command)로, home 경로.
  • 경로는 JSON 인용, control character나 goal 상한 초과면 생략. 승인 모드·headless에는 붙이지 않는다.
  • protocol·schema·journal·planner prompt 변경 없음.

근거 (deepseek flash, --trust)

작업 안내 없음 안내 있음
~/projects/app 저장소 상태 조회 (설계) shell 0/3, 답 0/3 shell 2/2, 답 1/2
/etc/os-release (검증용) 1/2 2/2
~/.config 항목 수 (검증용) 2/2 2/2

답하지 못한 1회는 같은 결과를 받고도 비슷한 명령을 96번 반복했다. 안내 전에도 list-directory를 93번 반복했으므로 별도 과제로 남긴다.

테스트

  • 단위: 안내 내용·shell별 인자·control character 거부. e2e: 신뢰 모드 첫 요청의 goal에 안내가 실린다.
  • cargo test --workspace 737 통과, clippy·fmt 통과.

🤖 Generated with Claude Code

파일 capability는 workspace 상대 경로만 받는데 모델은 workspace가 어디인지 몰라서,
~/projects/app 같은 밖의 경로를 workspace 안 경로로 해석해 not_found를 되풀이했다.
24 turn 2회는 shell을 한 번도 안 썼고, 96 turn 1회는 call 96개 중 93개가 같은
list-directory였다.

- 신뢰 모드에서 shell을 catalog에 넣을 때 goal 뒤에 workspace 절대 경로, home,
  workspace 밖은 shell(-c 또는 -Command)로 실행하라는 안내 한 단락을 붙인다.
- 경로는 JSON 문자열로 인용하고, control character가 있거나 goal 상한을 넘으면 붙이지 않는다.
- 저장소 조회(설계): shell 사용 0/3 -> 2/2, 답 0/3 -> 1/2(16/24, worktree 누락).
- 검증용 /etc/os-release 1/2 -> 2/2, ~/.config 항목 수 2/2 -> 2/2.
- 같은 명령을 96번 되풀이한 1회는 안내 전에도 있던 반복 문제라 별도로 다룬다.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SonAIengine
SonAIengine merged commit eaddf34 into main Oct 26, 2026
3 checks passed
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