Skip to content

Fold small session, chrome, and compaction helpers into owning modules - #1036

Merged
TheGreatAxios merged 7 commits into
mainfrom
cl-7953-collapse-doubled-session-chrome-delivery-and-compaction
Sep 14, 2026
Merged

TheGreatAxios merged 7 commits into
mainfrom
cl-7953-collapse-doubled-session-chrome-delivery-and-compaction

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary: Four verbatim micro-folds (summary-excerpt into summarizer, archive-uri into compaction-archive, session-chrome into chrome-state; delivery fold reverted to avoid colliding with the delivery-queue lane), orphan test files renamed to owning modules, dropped doc sentences restored. Verification: per-seam suites 218/0 plus runtime-bridge/telemetry 92/0; typecheck shows only known pre-existing errors. Related to CL-7953 (micro-folds; boxes remain open)

summary-excerpt.ts was a 100-line companion to summarizer.ts with a single caller. summarizer.ts now owns the budgeted archive excerpt directly.
deliver-agent-message.ts had one entry point and one caller family; queued-delivery.ts now owns the guard, the result type, and the operator copy.
session-chrome.ts duplicated the chrome zone model's vocabulary: TurnStatus, ACTIVITY_STATES, and the ticker's leak-prevention contract now live in chrome-state.ts alongside the zone content they describe. All importers follow; no behavior change.
archive-uri.ts owned the archive:// addressing scheme apart from the store that honors it. The ref helpers now live on compaction-archive.ts verbatim; plugins and session importers follow. No behavior change.
IMPLEMENTATION.md lists the excerpt and archive refs on their owning modules; TELEMETRY.md points at chrome-state.ts.
Revert 974e96d: sibling cl-7949-tui-micro-inlines renames queued-delivery.ts, so this branch keeps deliver-agent-message.ts separate to merge cleanly.
session-chrome, summary-excerpt, and archive-uri tests now ride with chrome-state, summarizer, and compaction-archive; the excerpt rationale header returns to summarizer.ts.
@linear-code

linear-code Bot commented Sep 14, 2026

Copy link
Copy Markdown

CL-7953

@TheGreatAxios
TheGreatAxios merged commit 50a6b16 into main Sep 14, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant