fix(memory): pass CCC_PIRI_REAL_CLI_PATH through the distill extractor environment - #978
Merged
Merged
Conversation
seoseo-ai
approved these changes
Aug 6, 2026
seoseo-ai
left a comment
Collaborator
There was a problem hiding this comment.
Approved after explicit operator authorization using the local seoseo-ai credential.
…r environment The Piri extraction backend builds a minimal environment; dropping CCC_PIRI_REAL_CLI_PATH left ccc-piri wrapper launches without a real CLI (bare 'piri' is not on the default PATH on fleet nodes), failing every extraction with exit 127 (distill_nonzero_exit, retryable).
jinon86
force-pushed
the
fix/piri-distill-real-cli-passthrough
branch
from
August 6, 2026 02:42
4983e77 to
c30dbda
Compare
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.
문제
RuntimeCliDistillBackend의 최소 환경 화이트리스트(_PIRI_ENV_NAMES)가CCC_PIRI_REAL_CLI_PATH를 떨어뜨립니다.CCC_PIRI_CLI_PATH가 ccc-piri 래퍼를 가리키는 노드에서 추출기가 래퍼를 호출하면, 래퍼는 real CLI를 이 변수로만 해석하는데 변수가 없어 barepiriPATH 검색으로 폴백 → fleet 노드의 기본 PATH에는piri가 없어 **모든 추출이 exit 127(distill_nonzero_exit)**로 실패합니다.실측(2026-08-06, dungae): #974 배포 후 스냅샷은 성공하지만 추출 단계에서 3/3
provider_exit_status=127. 최소 환경 재현으로 확인.수정
_PIRI_ENV_NAMES에CCC_PIRI_REAL_CLI_PATH추가 (값 passthrough만, 신규 시크릿 아님 — 실행 경로)검증
pytest대상 파일 12 passed, ruff/mypy clean, format diff는 베이스라인과 동일CCC_PIRI_REAL_CLI_PATH설정 시 래퍼 경유 추출 정상(ec=0)