Repository navigation
feat(nunchi): managed gotgan refresh lane + Codex harness-prompt exclusion + per-run index budget (#2331 P3-2) - #2377
Merged
Conversation
…sion, per-run index budget (#2331 P3-2) - install-nunchi.sh --verbatim-backend mempalace|gotgan|both (or CCC_NUNCHI_VERBATIM_BACKEND): managed :27 cron for the new hooks/nunchi/gotgan-refresh.sh (mode gate, flock, timeout, owner-only body-free status), retires the hand-installed `# nunchi:gotgan-shadow` line, materializes the flag in the install record, writes $NUNCHI_HOME/verbatim-backend for the SessionStart path, stamps the bench line. `gotgan` skips the MemPalace sweep; default unchanged. - nunchi.py verbatim_backend(): env -> file -> mempalace. - gotgan.py: drop Codex harness preambles written as user turns (# AGENTS.md instructions, <codex_internal_context>, <recommended_plugins>, <environment_context>, ...), `prune` for rows an older indexer admitted, GOTGAN_RUN_BYTES per-run read budget (default 64 MiB, floor 1 MiB) with bytes_read/files_pending reporting; single oversize line still progresses. - tests: gotgan.test.sh +18, install-nunchi.test.sh +22; docs/memory.md section; changelog fragment. Refs #2331 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
seoseo-ai
approved these changes
Oct 22, 2026
seoseo-ai
left a comment
Collaborator
There was a problem hiding this comment.
Approved after exact-head validation and fresh operator authorization using the relay-held seoseo-ai credential.
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.
요약
#2331 P3-2 — 서서 shadow에서 손설치로 돌던 gotgan 레인을 설치기 관리 레인으로 편입하고, 색인 품질(Codex 자기프롬프트 제외)과 메모리 상한(Termux RSS 2.0GB)을 함께 처리.
변경
install-nunchi.sh --verbatim-backend mempalace|gotgan|both(CCC_NUNCHI_VERBATIM_BACKEND도 동일):gotgan|both면:27관리 크론(# nunchi:#816 gen=…)으로 새hooks/nunchi/gotgan-refresh.sh <provider> <dir>실행. MemPalace:17과 어긋나게 배치. 손설치# nunchi:gotgan-shadow라인은 관리 라인 설치 시 제거(--remove·플래그 없는 재적용은 손라인 불간섭). 설치 기록 argv에 플래그 materialize(self-update 재생 시 레인 유지),$NUNCHI_HOME/verbatim-backend파일 기록, bench 라인에CCC_NUNCHI_VERBATIM_BACKEND스탬프, status에verbatim_backend:줄.gotgan은 MemPalace sweep 미설치. 기본mempalace는 동작 불변. gotgan 훅/디렉터리 없으면 exit 2(조용한 mempalace-only 전락 방지). danso는 gotgan 파서가 없어 거부.gotgan-refresh.sh(신규): mempalace-refresh.sh와 같은 규율 —nunchi.mode게이트,flock단일 실행,timeout(기본 1500s), 0600 body-free 상태gotgan-refresh.status.json(chunks_added/bytes_read/files_pending포함).CCC_NUNCHI_GOTGAN_PYTHON으로 venv 인터프리터 핀 가능.nunchi.py verbatim_backend(): env →$NUNCHI_HOME/verbatim-backend→mempalace. SessionStart 훅 경로가 노드 선택을 따름.gotgan.py# AGENTS.md instructions419 ·<codex_internal_context>324 ·<recommended_plugins>170 ·<environment_context>55 (codex 17,487 청크 중). USER 턴이 해당 접두로 시작하면 통째로 드롭(세션은 유지).gotgan.py prune: 구 인덱서가 넣은 하네스/자기프롬프트 행 제거(멱등).GOTGAN_RUN_BYTES1회 실행 읽기 예산(기본 64MiB, 하한 1MiB) — 파일 오프셋으로 다음 실행에 이어서 처리,bytes_read/run_bytes/files_pending보고. 예산보다 큰 단일 줄도 진행 보장.검증
gotgan.test.sh61/61 (+18) ·install-nunchi.test.sh155 pass / 1 fail — 실패 1건("auto provider fallback recognizes a Codex-only transcript tree")은 main에서도 동일 실패(이 노드 환경 의존, 본 PR 무관; CI 결과로 확인)nunchi.test.sh194/194 ·ruff check .clean · shellcheck warning-level clean ·validate-harness.shstatic PASS · changelog fragments ok · canon-node-name-scan ok배포(별도)
머지 후 shadow 노드에서
install-nunchi.sh --apply --verbatim-backend both재적용(손설치 라인 교체) +gotgan.py prune1회 — 노드 변경이라 별도 승인.남김
gotgan단독 노드에서mempalace=missing판정 가능) → 후속 이슈.Refs #2331
🤖 Generated with Claude Code