CompactionHostWiring class final

The resolved compaction wiring of ONE host: everything the host needs to gate, size and run a compaction, in the exact shape the parity test compares across hosts.

Constructors

CompactionHostWiring({required int window, required int conversationWindow, required CompactionSettings settings, required Model? smolModel, required bool enabled, int maxAttempts = compactionSummarizerMaxAttempts, Duration baseBackoff = compactionSummarizerBaseBackoff})
const

Properties

baseBackoff → Duration
First backoff step of the shared ladder (doubled per attempt).
final
conversationWindow → int
What is left of window after the host's fixed request overhead (system prompt / tool instructions). The CLI carries none (0); the app subtracts its measured on-device overhead. This — not window — is what the compaction thresholds are scaled to and gated on.
final
enabled → bool
Whether compaction runs at all (compactionEnabledByDefault on both hosts today).
final
hashCode → int
The hash code for this object.
no setterinherited
maxAttempts → int
Bounded summarizer retry attempts per pass (shared ladder).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
settings → CompactionSettings
Compaction thresholds (CompactionSettings.forWindow of conversationWindow, or the host's explicit override).
final
smolModel → Model?
The resolved smol summarizer model, when one is configured AND distinct from the main model (a smol equal to the main model is normalized to null — the AutoCompactor skips the smol→main fallback for a same-model pair, so the wiring says so up front). null = the main stream summarizes (main-model fallback as last resort, gh-1077 fix contract 1).
final
window → int
The EFFECTIVE context window of the main model (owner cap applied via effectiveContextWindow) — the basis the loop's over-window guard and the ctx meter also use.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sameResolutionAs(CompactionHostWiring other) → bool
Whether other resolves the same compaction SEMANTICS as this wiring — the AC5 parity assertion. Models compare by provider/model identity (Model has no structural equality), settings by their threshold fields.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited