Skip to main content

Module continuation

Module continuation 

Source
Expand description

Opt-in context windows within a stable logical session. Rollover seals eligible source evidence before changing the next request; never calls an LLM summarizer or clears environment state. A durable successor starts fresh elapsed time; cumulative resource/cost budgets remain unchanged.

Structs§

ContinuationState
PreparedRollover
SuccessorBudget
Size budget for successor selection, in conservative-estimator tokens for the successor’s MESSAGES (fixed system/tool-schema overhead subtracted).
TokenCalibration
Provider-reported vs conservatively estimated footprint of ONE request. The user-visible context number is the provider’s; the policy’s is the estimate. Their ratio converts a target into estimator units.

Constants§

ARCHIVE_NAMESPACE
GUIDANCE

Functions§

archive_store
restore_window
Resume restores only window metadata from a verified source reference. It never enables mode or reconstructs capability/consent from model text.
rollover
successor_budget
Convert the configured successor footprint (target_tokens, in the units the user sees — provider-reported when calibration is known) into a conservative-estimator budget for the retained messages.
validate_restored_history
Host-only async pre-inference barrier for resumed Axel context heads. Call even when automatic management is off: mode is not evidence of durability. No hidden note is fetched or injected during validation. A failed lookup leaves the barrier pending, and resetting the binding invalidates late work.

Type Aliases§

SharedContinuation