Repository navigation
feat(memory): TASK 기억, 여러 단계·여러 턴 일을 하나의 기억 단위로 (4.98.0) - #170
Merged
Merged
Conversation
….98.0) - memory.tasks: Task / TaskEvent, the TaskStore contract (host-scoped per person, spanning conversations), InMemoryTaskStore, provider_tasks(); the ephemeral provider has the layer. - Judged by the model and completed by the host: the Task tool (open, update, switch, close, list); at the end of each turn the host records the turn on the current task (request, answer, tools, files, outcome), turns TodoWrite's list into its plan, keeps a compaction's summary on it, and opens a task from the request when the turn was clearly multi-step work (an unfinished plan of two or more steps, or a turn that ended before it finished after using tools). Quick unrelated questions are not put on the current task. - Recalled every turn: the task board (TaskBoardBlock, volatile) carries this conversation's current task in full and the other open tasks in one line each, sized as a share of the window, with markers naming TaskRecall when it has to leave entries out; memory search adds the current task's title and goal; TaskRecall reads a task's card, history and one turn word for word (this conversation through ConversationHistory, another through provider.session_stm). Each task is rendered to a tasks/ note so memory search finds it. - Event context.task_board (catalogue v19). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…hed twice Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…-to-end test Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…iders), list finds tasks by words Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
무엇을 더했나
TASK 기억이다. 여러 단계·여러 턴 일을 사실·원문과 따로 두는 기억 층이다. 설계: Agent-Geny 메모리와 TASK 구조 분석의 1~3단계(기록·판단·회상)를 런타임 쪽에 구현했다. 판단 주체는 "모델 선언 + 호스트 보완", 범위는 "사람별" 이다.
Task,TaskEvent, 저장 계약TaskStore, 참조 구현InMemoryTaskStore,provider_tasks()memory/tasks.pyTask(open·update·switch·close·list),TaskRecall(card·history·turn)host/task_tools.py_preload_task_boardTaskBoardBlock,build_pipelinerunner._record_task_turncore.compaction._keep_checkpoint_on_taskTaskRecall을 적는다.tasks/task-<id>.md노트를 만들어 기억 검색과 메모리 화면에 오른다.tasks()가 없으면 아무것도 바뀌지 않는다. XGEN 의 DB 저장소는 xgen-core 표 + workflow 구현으로 따로 붙는다.확인
tests/unit/test_task_memory.py19개(저장소, 도구, 판·카드 표식, 턴 기록·보완, 체크포인트, Stage 2 판·질의, 다른 대화 원문).gen_event_docs --check통과.🤖 Generated with Claude Code