@@ -279,8 +279,7 @@ export interface SessionGate {
279279/**
280280 * Seed approvals (session → project → global → provider-model) and build the
281281 * permission gate over roots, persist, and log wiring. Runners differ only
282- * in how approval reaches an operator (modal vs stdin) — both arrive as
283- * callbacks.
282+ * in the operator channel (modal vs stdin); approval arrives as a callback.
284283 */
285284export async function assembleSessionGate (
286285 args : SessionGateArgs ,
@@ -378,18 +377,18 @@ export interface AdvertisedToolset {
378377
379378/**
380379 * Fixed built-in prefix plus session-activated tools, family-gated for the
381- * wire. The provider identity is read per call so a live model switch
382- * re-gates without rebuilding the agent .
380+ * wire. Provider identity is read per call, so a live model switch re-gates
381+ * without a rebuild .
383382 *
384383 * Activation and advertisement are split: activating opens the call gate at
385384 * once; flushPromotions commits names onto the wire (promote-on-execute
386- * flushes the one called name, tool_search only the top ranked hits). Fold
387- * breaks the cache prefix — pruneIdlePromotions drops the advertised tail
388- * back to it.
385+ * flushes the called name, tool_search only top- ranked hits). Fold breaks
386+ * the cache prefix — pruneIdlePromotions drops the advertised tail back to
387+ * it.
389388 *
390389 * `pinnedTools` (local settings) merge into the prefix — advertised from the
391- * first turn and exempt from activation state, so resume needs no
392- * tool_search round-trip for the project's hottest integrations .
390+ * first turn, exempt from activation state, so resume skips the tool_search
391+ * round-trip for them .
393392 */
394393export function createAdvertisedToolset ( args : {
395394 sessionMode : SessionMode ;
@@ -566,9 +565,8 @@ export interface ChatAgentWiring {
566565 anthropicCachePrompt ?: ( ) => boolean ;
567566 /**
568567 * Present when a resumed run record has an Anthropic-protocol cache write
569- * and the provider about to be called is the same protocol. Read at each
570- * build so an interrupt rebuild of the same session still folds before the
571- * next infer. Omitted for a new session.
568+ * and the next provider is the same protocol. Read at each build so an
569+ * interrupt rebuild of the same session still folds before the next infer.
572570 */
573571 getCacheWriteSeed ?: ( ) => { at : number ; model : string } | undefined ;
574572 /** Assigns the runner's live agent/storage holders; keeps call sites unchanged. */
@@ -850,9 +848,9 @@ export interface SessionLifecycle {
850848
851849/**
852850 * Hook manager, turn observer, run sink, and in-flight cycle recorder. Pure
853- * construction — every live value (session id, source, context dir) is read
854- * through a getter at event time, so it can assemble before the agent exists
855- * (the TUI builds it early, exec late; same call, different position ).
851+ * construction — live values (session id, source, context dir) are read
852+ * through getters at event time, so it can assemble before the agent exists
853+ * (TUI early, exec late).
856854 */
857855export async function assembleSessionLifecycle (
858856 wiring : SessionLifecycleWiring ,
0 commit comments