feat: freeze Host Journal context across compaction

This commit is contained in:
2026-10-17 12:19:37 +09:00
parent 10d200d9ba
commit 956aeed6b2
18 changed files with 357 additions and 15 deletions
@@ -10,7 +10,9 @@ The conversation input contains a bounded overview/index, not the full transcrip
- Apply explicit changes or retractions in later user messages. The initial summary is not more authoritative than the original user text. Preserve uncertainty when conflict, completion or continued applicability cannot be established.
- When shrinking or near the budget limit, compress duplicate explanations and stale work details first. Do not replace ongoing goals and directives with recent procedures. Do not copy the whole transcript or accumulate expired directives unconditionally.
- The retained tail stays verbatim in the next session and is outside the summarized prefix. Preserve directives from the compacted prefix in the summary so they do not disappear from both summary and tail; integrate them with the continuing goals from the initial summary.
- A separately labelled frozen Journal reference, when available, is automatically included unchanged in the new segment. Do not copy it into the summary: supplement it and the retained tail with missing continuation information. Its processing checkpoint, not open/fixed event boundaries, determines the accepted recording range. Preserve unrecorded or partly recorded actions, unverified results and uncertainties from actual conversation and the full initial summary. An absent/disabled/unavailable Journal is not evidence that anything is recorded. Never wait for generation or treat derived Journal/summary context as new independent evidence.
- Previous Journal references are historical context, not current snapshots and not automatically retained. Use them to recover load-bearing continuation information missing from the current frozen reference, especially on an absent/disabled/unavailable read. Do not recopy their full text or treat them as new evidence. Only the newly frozen reference is automatically carried forward.
## Workflow