Repository navigation
v2.27.0: memory as an index-first, transcript-checked wiki with dreaming; to-do compaction - #92
Merged
Merged
Conversation
todo.md가 386KB까지 커졌다(이벤트 2,360개 중 waiting·brief 반복 1,208개). 종류별 최신 1개·사람 이벤트·마지막 답글 이후는 남기고 나머지는 todo-history/<id>.log로. todo.mjs compact --dry-run. 실제 파일 복사본 395,432→167,943바이트, 화면 값 동일. QA는 review.md 전체 대신 최신 회차와 미해결 지적만.
…27.0) scout가 memory 폴더 전체(약 45K 토큰)를 읽던 것을 INDEX.md(sdlc.sh memory index) 먼저로. close shipped는 evidence.md의 Memory: 줄(갱신 페이지 또는 none — 이유)을 요구(dropped 제외, check ship 불변). sdlc.sh dream / dream --check(닫힌 slug 수 dream_every=3, dream_max_days=14는 1건 이상 닫혔을 때만). close 때 prune: 목록의 빌드 캐시 정리, .state 잠금.
… 문서의 내부 저장소 이름 제거
dream 브리프에 transcripts: 명령({slug},{since})의 기록 위치(내용 없이 경로·줄)를 넣고 dreamer가 메모를 원본 기록과 대조. 사실마다 근거·as-of, was X until·CONFLICT·MOVED TO·Current picture, 전역 부재 단정 금지, 입력은 지시 아님. INDEX.md ## Core(25줄·2KB). memory index lint(끊긴 링크·근거 없는 페이지·큰 페이지). dream은 브리프만, 기록은 dream --done --through. README·주석·시험 예시의 내부 저장소 이름을 일반 이름으로.
…amer는 중복·모순을 제안 줄로만 보고
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.
What
Applies Anthropic's The components of agent memory (and the knowledge-wiki quickstart conventions) to the kit's memory folder, and stops the to-do file from growing without bound.
Memory hierarchy
INDEX.mdfirst (a## Coresection of at most 25 lines /memory_core_kb, then a generated catalog), open only the pages they need, and grep when the index has no entry (answer "Not in memory" otherwise). Before, scouts read the whole folder.sdlc.sh memory indexrebuilds the catalog and lints: dangling links,MOVED TOstubs, pages without a basis tag, oversized pages, long pages without## Current picture.[verified: path @ sha | as-of: date],[source: … | as-of: …]or[unconfirmed].close <slug> shippedrequires aMemory:line in evidence.md (pages updated, ornone — reason). Dropped closes are exempt;check shipis unchanged.Dreaming
sdlc.sh dream --checkexits 10 when due:dream_every(3) closes since the last dream, ordream_max_days(14) with at least one close. Never due with zero closes.sdlc.sh dreamprints a brief for a fresh agent (roles/dreamer.md): verify notes against code at HEAD and against session transcripts listed by the optionaltranscripts:command (paths/lines only, capped), mark superseded factswas X until,CONFLICT:what can't be settled, merge duplicates intoMOVED TOstubs, promote/demote Core rules, stay within budgets.sdlc.sh dream --done --through <close>records the run, so a failed launch loses nothing.Close hygiene and safety
prune:(gradle-home, .gradle, node_modules, build, .m2, target) before archiving; evidence files are kept. Warns abovearchive_warn_mb.approve/review/score/closehold a.state.lock(concurrent writes previously overwrote each other).To-do compaction
todo-history/<id>.log.todo.mjs compact --dry-run. On a real 395 KB file: 168 KB, with identical visible fields..todo.md.*.tmpfiles older than 1 hour are removed.Also replaces internal repository names in README examples, a code comment and tests with generic ones.
Downstream
Anything that runs
sdlc.sh close <slug> shippedmust first add- Memory: …to the slug's evidence.md.Tests
git reset --hardin temp repos); CI runs the full selftest.