small gleam coding and persistent agent daemon with a detachable cli and a canvas ui albedo.sh

Add source-backed LCM compaction and switchable strategies #72

Closed okami.mom
targeting main from deleted fork:codex/compaction-source-refs
Closed opened by and assigned to okami.mom
targeting main from deleted fork:codex/compaction-source-refs

Summary #

  • Add stable references to durable transcript rows and carry them through provider projection without changing existing plain-input callers.
  • Add session-scoped LCM summaries with source ranges, completed-fold reuse on forks, and bounded list, search, describe, and expand tools.
  • Make rolling and LCM mutually exclusive. Enabling either replaces the active strategy in one saved change.
  • When switching from LCM to rolling, use the stored folded view and remaining tail. Keep fold retrieval available even if a later rolling summary omits a fold.
  • Document the behavior and current limits. Live projected inputs do not yet carry source references through the session coordinator, so LCM retains whole conversation units at the tail boundary.

Testing #

  • ./test.sh passed against current upstream/main.
  • Tests cover source identity and projection, LCM failure and fork behavior, fold retrieval and pagination, strategy switching, and persistence across a daemon restart.
Commits 0