@genesislcap/ai-assistant 15.35.1 → 15.35.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/ai-assistant.api.json +483 -0
  2. package/dist/ai-assistant.d.ts +192 -0
  3. package/dist/chat-driver.cjs +221 -4
  4. package/dist/chat-driver.cjs.map +2 -2
  5. package/dist/chat-driver.mjs +221 -4
  6. package/dist/chat-driver.mjs.map +2 -2
  7. package/dist/custom-elements.json +267 -1
  8. package/dist/dts/components/ai-driver/ai-driver.d.ts +31 -0
  9. package/dist/dts/components/ai-driver/ai-driver.d.ts.map +1 -1
  10. package/dist/dts/components/chat-driver/chat-driver.d.ts +93 -0
  11. package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
  12. package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts +17 -0
  13. package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts.map +1 -1
  14. package/dist/dts/state/persistence/index.d.ts +1 -0
  15. package/dist/dts/state/persistence/index.d.ts.map +1 -1
  16. package/dist/dts/state/persistence/session-persister.d.ts +12 -0
  17. package/dist/dts/state/persistence/session-persister.d.ts.map +1 -1
  18. package/dist/dts/state/persistence/session-snapshot.d.ts +14 -0
  19. package/dist/dts/state/persistence/session-snapshot.d.ts.map +1 -1
  20. package/dist/dts/utils/condense-history.d.ts +114 -0
  21. package/dist/dts/utils/condense-history.d.ts.map +1 -1
  22. package/dist/esm/components/chat-driver/chat-driver.js +140 -17
  23. package/dist/esm/components/orchestrating-driver/orchestrating-driver.js +17 -0
  24. package/dist/esm/state/persistence/session-persister.js +63 -15
  25. package/dist/esm/state/persistence/session-snapshot.js +2 -17
  26. package/dist/esm/utils/condense-history.js +123 -0
  27. package/package.json +18 -18
@@ -7101,6 +7101,114 @@
7101
7101
  "default": "'condensed'",
7102
7102
  "description": "Key the collapsed args are stored under — a tool-call's args must stay a Record."
7103
7103
  },
7104
+ {
7105
+ "kind": "function",
7106
+ "name": "isValidCondenseTrigger",
7107
+ "return": {
7108
+ "type": {
7109
+ "text": "boolean"
7110
+ }
7111
+ },
7112
+ "parameters": [
7113
+ {
7114
+ "name": "t",
7115
+ "type": {
7116
+ "text": "CondenseTrigger | undefined"
7117
+ }
7118
+ }
7119
+ ],
7120
+ "description": "Whether `t` is a well-formed trigger — the same rule `condenseWhen` enforces on registration."
7121
+ },
7122
+ {
7123
+ "kind": "function",
7124
+ "name": "toolCallIdsIn",
7125
+ "return": {
7126
+ "type": {
7127
+ "text": "Set<string>"
7128
+ }
7129
+ },
7130
+ "parameters": [
7131
+ {
7132
+ "name": "history",
7133
+ "type": {
7134
+ "text": "readonly ChatMessage[]"
7135
+ }
7136
+ }
7137
+ ],
7138
+ "description": "Every tool-call id carried by an assistant message in `history`. Exported so the save side\n(snapshotCondensePolicies) and the restore side (`ChatDriver.restoreCondensePolicies`)\ncompute \"is this call still present?\" from one definition — GENC-1632 review: the two had drifted\ninto separate copies of the same loop."
7139
+ },
7140
+ {
7141
+ "kind": "function",
7142
+ "name": "snapshotCondensePolicies",
7143
+ "return": {
7144
+ "type": {
7145
+ "text": "PersistedCondensePolicy[]"
7146
+ }
7147
+ },
7148
+ "parameters": [
7149
+ {
7150
+ "name": "policies",
7151
+ "type": {
7152
+ "text": "ReadonlyMap<string, RegisteredCondensePolicy>"
7153
+ }
7154
+ },
7155
+ {
7156
+ "name": "clocks",
7157
+ "type": {
7158
+ "text": "CondenseClocks"
7159
+ }
7160
+ },
7161
+ {
7162
+ "name": "history",
7163
+ "type": {
7164
+ "text": "readonly ChatMessage[]"
7165
+ }
7166
+ }
7167
+ ],
7168
+ "description": "The entries to PERSIST alongside `history` (GENC-1632): every registered policy that has not\nfired yet and whose tool call is still in the transcript being saved, re-expressed as elapsed\nclock counts (see PersistedCondensePolicy).\n\n`history` is the transcript actually being written, not the driver's live one, because the two\ncan differ: a non-resumable save freezes at the last user message, and a compaction may have\nsummarised a call away. An entry whose call is not in the saved transcript has nothing to\ncollapse after a reload, so it is not written.\n\nPure, no writes to the registry — safe on a save path that runs on every autosave."
7169
+ },
7170
+ {
7171
+ "kind": "function",
7172
+ "name": "parsePersistedCondensePolicy",
7173
+ "return": {
7174
+ "type": {
7175
+ "text": "PersistedCondensePolicy | undefined"
7176
+ }
7177
+ },
7178
+ "parameters": [
7179
+ {
7180
+ "name": "value",
7181
+ "type": {
7182
+ "text": "unknown"
7183
+ }
7184
+ }
7185
+ ],
7186
+ "description": "Validate one persisted entry read back from storage. Returns `undefined` for anything that is not\na well-formed PersistedCondensePolicy — the blob came off a disk or a network, and a\npolicy that cannot be evaluated must be dropped rather than reach `applyCondensation`, which\ntrusts its registry. A missing or malformed `elapsed` count reads as `0` (the boundary had not\npassed), which errs towards keeping a payload visible rather than eliding it."
7187
+ },
7188
+ {
7189
+ "kind": "function",
7190
+ "name": "rebaseRestoredCondensePolicy",
7191
+ "return": {
7192
+ "type": {
7193
+ "text": "RegisteredCondensePolicy"
7194
+ }
7195
+ },
7196
+ "parameters": [
7197
+ {
7198
+ "name": "entry",
7199
+ "type": {
7200
+ "text": "PersistedCondensePolicy"
7201
+ }
7202
+ },
7203
+ {
7204
+ "name": "clocks",
7205
+ "type": {
7206
+ "text": "CondenseClocks"
7207
+ }
7208
+ }
7209
+ ],
7210
+ "description": "Re-register a persisted entry against a (typically fresh) driver's clocks (GENC-1632): each\nstamp is the current clock minus the elapsed count, so every trigger stands exactly as far from\nfiring as it did when the session was saved.\n\nPer clock, what that means after a reload:\n- `age` — exact. The model-call distance is preserved, so a result seen twice of its three\n allowed looks gets one more. The rebased `iteration` is usually negative (the call predates\n this driver's first model call), which the trigger arithmetic is indifferent to; it does\n surface as a negative `turn` on the eventual `context.condensed` event.\n- `turnEnd` — a call from the turn that was running at save time collapses on the next\n `sendMessage`. That is the original intent, not an approximation: a reload ends the turn.\n- `phaseEnd` — collapses at the next `endPhase()`, or at once if the phase had already ended.\n- `agentEnd` (and `phaseEnd`'s backstop) — an entry whose activation had already ended collapses\n at once. One owned by the activation live at save time is stamped with the CURRENT\n activation, which reads as live; but the driver will very likely advance its activation clock\n when the agent is re-installed after the reload, so this stamp is provisional and the driver\n must re-stamp it at that point — see `ChatDriver.installAgent`. Leaving it here would collapse\n the payload the moment the flow resumes, which is the failure this whole mechanism exists to\n avoid.\n\nThe `reported*` latches start clear, so the eventual full→stub transition reports once, like any\nother entry. The stored transcript cannot hold a stub for an unfired entry, so there is no\nearlier report to duplicate."
7211
+ },
7104
7212
  {
7105
7213
  "kind": "function",
7106
7214
  "name": "applyCondensation",
@@ -7183,6 +7291,46 @@
7183
7291
  "module": "src/utils/condense-history.ts"
7184
7292
  }
7185
7293
  },
7294
+ {
7295
+ "kind": "js",
7296
+ "name": "isValidCondenseTrigger",
7297
+ "declaration": {
7298
+ "name": "isValidCondenseTrigger",
7299
+ "module": "src/utils/condense-history.ts"
7300
+ }
7301
+ },
7302
+ {
7303
+ "kind": "js",
7304
+ "name": "toolCallIdsIn",
7305
+ "declaration": {
7306
+ "name": "toolCallIdsIn",
7307
+ "module": "src/utils/condense-history.ts"
7308
+ }
7309
+ },
7310
+ {
7311
+ "kind": "js",
7312
+ "name": "snapshotCondensePolicies",
7313
+ "declaration": {
7314
+ "name": "snapshotCondensePolicies",
7315
+ "module": "src/utils/condense-history.ts"
7316
+ }
7317
+ },
7318
+ {
7319
+ "kind": "js",
7320
+ "name": "parsePersistedCondensePolicy",
7321
+ "declaration": {
7322
+ "name": "parsePersistedCondensePolicy",
7323
+ "module": "src/utils/condense-history.ts"
7324
+ }
7325
+ },
7326
+ {
7327
+ "kind": "js",
7328
+ "name": "rebaseRestoredCondensePolicy",
7329
+ "declaration": {
7330
+ "name": "rebaseRestoredCondensePolicy",
7331
+ "module": "src/utils/condense-history.ts"
7332
+ }
7333
+ },
7186
7334
  {
7187
7335
  "kind": "js",
7188
7336
  "name": "applyCondensation",
@@ -10581,7 +10729,15 @@
10581
10729
  "privacy": "private",
10582
10730
  "readonly": true,
10583
10731
  "default": "new Map<string, RegisteredCondensePolicy>()",
10584
- "description": "Tool-declared condensation policies, keyed by tool-call id. Populated by\n`condenseWhen` (first-wins per call); read by `applyCondensation` before each\nprovider call to collapse stale payloads from the model-bound history only.\nAccumulates across agents on a shared driver (a superseded read collapses no\nmatter which agent made it) and is never cleared — it dies with the driver."
10732
+ "description": "Tool-declared condensation policies, keyed by tool-call id. Populated by\n`condenseWhen` (first-wins per call); read by `applyCondensation` before each\nprovider call to collapse stale payloads from the model-bound history only.\nAccumulates across agents on a shared driver (a superseded read collapses no\nmatter which agent made it) and is never cleared — it dies with the driver.\n\n\"Dies with the driver\" used to mean a page reload silently disarmed every policy that had\nnot fired yet: the restored transcript carried the full payload and nothing was left to\ncollapse it, so it rode every later provider call (GENC-1632). The unfired entries are now\npersisted with the session and re-registered on restore — see\nChatDriver.getCondensePoliciesForPersistence and\nChatDriver.restoreCondensePolicies."
10733
+ },
10734
+ {
10735
+ "kind": "field",
10736
+ "name": "condenseAwaitingReactivation",
10737
+ "privacy": "private",
10738
+ "readonly": true,
10739
+ "default": "new Set<string>()",
10740
+ "description": "Restored policies whose owning activation was still live at save time, waiting for that agent\nto be re-installed so they can be stamped with the activation it resumes in (GENC-1632).\n\nThey cannot be stamped at restore time. On a fresh page `activeAgentName` is unset, so the\nfirst `installAgent` after the reload is a \"name change\" and advances `currentActivation` —\nwhich is exactly the `agentEnd` signal. An entry stamped before that bump reads as belonging\nto an activation that has ended, and it and every `phaseEnd` entry (through the `agentEnd`\nbackstop) collapse on the first provider call after the reload, mid-flow. For Create's\nPlanning phase that is the uploaded scope document vanishing the moment the user carries on\ntalking about it — a worse failure than the one being fixed. So the stamp is deferred to that\n`installAgent`, and consumed there once whichever agent it installs."
10585
10741
  },
10586
10742
  {
10587
10743
  "kind": "field",
@@ -11620,6 +11776,72 @@
11620
11776
  },
11621
11777
  "description": "The transcript as it should be **stored**: every tool payload the model has already stopped\nseeing replaced by the same stub it was sent (GENC-1566). Live history is untouched — this\nreturns a copy.\n\nCondensation deliberately spares stored history, because the live transcript and the debug\nexport both read it. A host writing that transcript to durable storage inherits the other\nhalf of that decision: it stores payloads the driver has already retired, on every autosave,\nfor the life of the session. Measured on one small Create session — 58,187 chars, 7.4% of a\n790 KB session object, across five payloads worth 14,434 tokens of context, written 86 times.\n\nOnly already-collapsed payloads are touched, so this can never store a stub for something the\nmodel can still see, and it has no side effects (see `condenseForPersistence`, which is\ninternal). A host that wants the unredacted transcript still calls\nChatDriver.getRawHistory, and a diagnostics stream that keeps full payloads is\nunaffected — which is what makes the elision recoverable."
11622
11778
  },
11779
+ {
11780
+ "kind": "method",
11781
+ "name": "condenseClocks",
11782
+ "privacy": "private",
11783
+ "return": {
11784
+ "type": {
11785
+ "text": "CondenseClocks"
11786
+ }
11787
+ },
11788
+ "description": "The four condensation clocks as they read now."
11789
+ },
11790
+ {
11791
+ "kind": "method",
11792
+ "name": "getCondensePoliciesForPersistence",
11793
+ "return": {
11794
+ "type": {
11795
+ "text": "PersistedCondensePolicy[]"
11796
+ }
11797
+ },
11798
+ "parameters": [
11799
+ {
11800
+ "name": "messages",
11801
+ "type": {
11802
+ "text": "readonly ChatMessage[]"
11803
+ }
11804
+ }
11805
+ ],
11806
+ "description": "The `condenseWhen` policies that have not fired yet, for the calls in `messages`, in the\nclock-independent form ChatDriver.restoreCondensePolicies re-registers. See\nAiDriver.getCondensePoliciesForPersistence.\n\nThe other half of ChatDriver.getHistoryForPersistence (GENC-1632). That stores the\npayloads the model has already stopped seeing as their stubs; this stores the policies for the\nones it has NOT stopped seeing yet, so a reload does not strand them at full size for the rest\nof the session. Only entries whose call is in `messages` — the transcript actually being\nwritten — are returned, so a frozen (non-resumable) or compacted save carries no policy for a\ncall it does not contain."
11807
+ },
11808
+ {
11809
+ "kind": "method",
11810
+ "name": "restoreCondensePolicies",
11811
+ "return": {
11812
+ "type": {
11813
+ "text": "{\n restored: number;\n awaitingReactivation: number;\n }"
11814
+ }
11815
+ },
11816
+ "parameters": [
11817
+ {
11818
+ "name": "entries",
11819
+ "type": {
11820
+ "text": "readonly unknown[] | undefined"
11821
+ }
11822
+ }
11823
+ ],
11824
+ "description": "Re-register policies saved by ChatDriver.getCondensePoliciesForPersistence against\nthe restored transcript. See AiDriver.restoreCondensePolicies.\n\nCall AFTER ChatDriver.loadHistory has seeded the restored transcript: an entry is\nre-registered only if its tool call is in the driver's history, so one whose call the\nrestorable-boundary trim cut away (an orphaned trailing `tool_use`) is dropped rather than\nresurrected against nothing.\n\nFirst-wins still holds per call: an entry is skipped if a policy is already registered for its\ntool call — a restore never overrides what a live handler declared. `superseded` needs no\nspecial handling — survivors are resolved from HISTORY order on every pass, so a restored entry\nand a later call on the same `by` key resolve exactly as two live ones would.\n\nClocks are rebased so each trigger is exactly as far from firing as it was at save time (see\n`rebaseRestoredCondensePolicy`), with one deferral. An entry owned by the activation that was\nlive at save time, whose agent is not the one installed right now — the normal case on a\nfresh page, where nothing is installed yet — is parked in\n`condenseAwaitingReactivation` and stamped by the next `installAgent`: with\nthat agent's resumed activation if it is the same agent, or left behind (so it reads as\nended, which it has) if a different agent took over.\n\nA host with no agent to re-activate (a bare driver built from a static config) loses nothing\nby this: the entry's owner (`undefined`) matches the installed agent (`undefined`), so it is\nstamped live straight away and ends when the driver's single activation does — on\n`releaseAgent` / `completeSubAgent`, exactly as a policy registered live would.\n\nReturns how many entries were actually re-armed, split from how many were merely present in\n`entries` (review follow-up, GENC-1632): a malformed entry, one whose call the restorable-\nboundary trim removed, or a first-wins duplicate is silently dropped, so the caller's own count\nof `entries` can't tell \"all of them came back\" from \"none did\". `restored` is every entry that\nreached `condensePolicies`; `awaitingReactivation` is the subset of those parked pending the\nnext `installAgent` rather than stamped live immediately."
11825
+ },
11826
+ {
11827
+ "kind": "method",
11828
+ "name": "resumeRestoredCondensePolicies",
11829
+ "privacy": "private",
11830
+ "return": {
11831
+ "type": {
11832
+ "text": "void"
11833
+ }
11834
+ },
11835
+ "parameters": [
11836
+ {
11837
+ "name": "agentName",
11838
+ "type": {
11839
+ "text": "string"
11840
+ }
11841
+ }
11842
+ ],
11843
+ "description": "Stamp the restored entries parked in `condenseAwaitingReactivation` now that\n`installAgent` has advanced the activation clock for `agentName` (GENC-1632).\n\nSame agent → the flow the entry belonged to is resuming, so it takes the new activation and\nstays full until THAT activation ends (and, for `phaseEnd`, until the next `endPhase()`).\nDifferent agent → its owner did not come back; its activation is over, so it keeps the stamp\nit was restored with, which is now behind the clock, and collapses on the next provider call\nexactly as a live `agentEnd` payload does on a swap.\n\nOne-shot: the set is emptied whatever the outcome, because only the FIRST activation after the\nrestore can be the resumption. Any later swap is an ordinary activation boundary."
11844
+ },
11623
11845
  {
11624
11846
  "kind": "method",
11625
11847
  "name": "getSuggestions",
@@ -13475,6 +13697,42 @@
13475
13697
  },
13476
13698
  "description": "Delegates to the inner ChatDriver — condensation policies are registered there, so it\nis the only object that knows which payloads the model has stopped seeing (GENC-1566).\n\n**This forward is the whole feature, for any multi-agent host.** `AiDriver` declares\n`getHistoryForPersistence` optional, and `SessionPersister` calls it through `?.`, falling back\nto OrchestratingDriver.getRawHistory. This class does NOT extend `ChatDriver` — it\nwraps one — so without an explicit forward the optional call resolves to `undefined` and every\nhost on an orchestrating driver silently keeps persisting the full payloads. Measured exactly\nthat way on a Create run: 10 `context.condensed` events fired, and the session still stored\nthe two largest `read_context` results at 26,907 and 23,060 chars. The method existed, the\ntests passed, and the feature did nothing."
13477
13699
  },
13700
+ {
13701
+ "kind": "method",
13702
+ "name": "getCondensePoliciesForPersistence",
13703
+ "return": {
13704
+ "type": {
13705
+ "text": "PersistedCondensePolicy[]"
13706
+ }
13707
+ },
13708
+ "parameters": [
13709
+ {
13710
+ "name": "messages",
13711
+ "type": {
13712
+ "text": "readonly ChatMessage[]"
13713
+ }
13714
+ }
13715
+ ],
13716
+ "description": "Delegates to the inner ChatDriver, which owns the condensation registry and clocks\n(GENC-1632). The forward matters for the same reason as `getHistoryForPersistence` above: the\npersister reaches it through `?.`, so a missing forward would compile, pass the ChatDriver\ntests, and do nothing for every orchestrated host — which is every host with an agents array."
13717
+ },
13718
+ {
13719
+ "kind": "method",
13720
+ "name": "restoreCondensePolicies",
13721
+ "return": {
13722
+ "type": {
13723
+ "text": "{\n restored: number;\n awaitingReactivation: number;\n }"
13724
+ }
13725
+ },
13726
+ "parameters": [
13727
+ {
13728
+ "name": "entries",
13729
+ "type": {
13730
+ "text": "readonly unknown[] | undefined"
13731
+ }
13732
+ }
13733
+ ],
13734
+ "description": "Delegates to the inner ChatDriver (GENC-1632). The deferred activation stamp it\nperforms is taken by the inner driver's `installAgent`, which this driver's own\n`installAgent` always reaches, so nothing extra is needed here."
13735
+ },
13478
13736
  {
13479
13737
  "kind": "method",
13480
13738
  "name": "setContextGuard",
@@ -14564,6 +14822,14 @@
14564
14822
  "module": "./session-snapshot"
14565
14823
  }
14566
14824
  },
14825
+ {
14826
+ "kind": "js",
14827
+ "name": "PersistedCondensePolicy",
14828
+ "declaration": {
14829
+ "name": "PersistedCondensePolicy",
14830
+ "module": "../../utils/condense-history"
14831
+ }
14832
+ },
14567
14833
  {
14568
14834
  "kind": "js",
14569
14835
  "name": "WebStorageSessionProvider",
@@ -2,6 +2,7 @@ import type { ChatAttachment, ChatDriverResult, ChatMessage, ChatToolDefinition
2
2
  import type { AgentConfig } from '../../config/config';
3
3
  import type { DiagnosticEntry } from '../../state/persistence/diagnostics';
4
4
  import type { InteractionContext } from '../../types/interaction-context';
5
+ import type { PersistedCondensePolicy } from '../../utils/condense-history';
5
6
  import type { CompactionProjection } from '../../utils/context-tokens';
6
7
  import type { CompactionPlanOptions } from '../../utils/history-transform';
7
8
  import type { ContextGuardPolicy, TurnSnapshot } from '../chat-driver/chat-driver';
@@ -110,6 +111,36 @@ export interface AiDriver extends EventTarget {
110
111
  * to project, and a caller falls back to {@link AiDriver.getRawHistory}.
111
112
  */
112
113
  getHistoryForPersistence?(): ChatMessage[];
114
+ /**
115
+ * The `condenseWhen` policies that have NOT fired yet, for the tool calls in `messages` — the
116
+ * transcript being persisted — in a clock-independent form a later
117
+ * {@link AiDriver.restoreCondensePolicies} can re-register (GENC-1632). The companion of
118
+ * {@link AiDriver.getHistoryForPersistence}: that stores already-collapsed payloads as stubs;
119
+ * this keeps the not-yet-collapsed ones collapsible across a reload, where they would otherwise
120
+ * ride every provider call for the rest of the session. Optional, like its companion — a driver
121
+ * without condensation has none.
122
+ *
123
+ * @beta
124
+ */
125
+ getCondensePoliciesForPersistence?(messages: readonly ChatMessage[]): PersistedCondensePolicy[];
126
+ /**
127
+ * Re-register policies from {@link AiDriver.getCondensePoliciesForPersistence} against a restored
128
+ * transcript (GENC-1632). Call after {@link AiDriver.loadHistory}: entries whose tool call is not
129
+ * in the loaded history are dropped. Tolerates `undefined` and malformed entries (an older or
130
+ * damaged snapshot), which are ignored.
131
+ *
132
+ * Returns how many entries were actually re-armed (`restored`) and how many of those are parked
133
+ * pending the next agent activation (`awaitingReactivation`) — narrower than `entries.length`,
134
+ * which counts what was offered, not what was accepted (a malformed entry, a trimmed-away call, or
135
+ * a first-wins duplicate is dropped silently). A caller logging the outcome needs this split to
136
+ * tell "all re-armed" from "none did".
137
+ *
138
+ * @beta
139
+ */
140
+ restoreCondensePolicies?(entries: readonly unknown[] | undefined): {
141
+ restored: number;
142
+ awaitingReactivation: number;
143
+ };
113
144
  /**
114
145
  * The live `AgentConfig` currently active in the driver — the instance whose
115
146
  * `onActivate` ran, so its `serialize`/`getDebugSnapshot` closures hold live
@@ -1 +1 @@
1
- {"version":3,"file":"ai-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/ai-driver/ai-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EACnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO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,sBAAsB,CAAC,IAAI,aAAa,CAAC,eAAe,CAAC,CAAC;IAE1D;;;;;OAKG;IACH,qBAAqB,IAAI,MAAM,CAAC;IAEhC;;;;OAIG;IACH,OAAO,CAAC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjC;;;;;OAKG;IACH,MAAM,CAAC,IAAI,IAAI,CAAC;CACjB"}
@@ -4,6 +4,7 @@ import { type ActivityBus } from '../../channel/ai-activity-bus';
4
4
  import type { AgentConfig, SystemPromptInput, ToolDefinitionsInput, ToolHandlersInput } from '../../config/config';
5
5
  import type { DiagnosticEntry } from '../../state/persistence/diagnostics';
6
6
  import type { InteractionContext } from '../../types/interaction-context';
7
+ import { type PersistedCondensePolicy } from '../../utils/condense-history';
7
8
  import { type CompactionProjection } from '../../utils/context-tokens';
8
9
  import { type CompactionPlanOptions } from '../../utils/history-transform';
9
10
  import { AgentSession } from '../agent-session/agent-session';
@@ -208,8 +209,29 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
208
209
  * provider call to collapse stale payloads from the model-bound history only.
209
210
  * Accumulates across agents on a shared driver (a superseded read collapses no
210
211
  * matter which agent made it) and is never cleared — it dies with the driver.
212
+ *
213
+ * "Dies with the driver" used to mean a page reload silently disarmed every policy that had
214
+ * not fired yet: the restored transcript carried the full payload and nothing was left to
215
+ * collapse it, so it rode every later provider call (GENC-1632). The unfired entries are now
216
+ * persisted with the session and re-registered on restore — see
217
+ * {@link ChatDriver.getCondensePoliciesForPersistence} and
218
+ * {@link ChatDriver.restoreCondensePolicies}.
211
219
  */
212
220
  private readonly condensePolicies;
221
+ /**
222
+ * Restored policies whose owning activation was still live at save time, waiting for that agent
223
+ * to be re-installed so they can be stamped with the activation it resumes in (GENC-1632).
224
+ *
225
+ * They cannot be stamped at restore time. On a fresh page `activeAgentName` is unset, so the
226
+ * first `installAgent` after the reload is a "name change" and advances `currentActivation` —
227
+ * which is exactly the `agentEnd` signal. An entry stamped before that bump reads as belonging
228
+ * to an activation that has ended, and it and every `phaseEnd` entry (through the `agentEnd`
229
+ * backstop) collapse on the first provider call after the reload, mid-flow. For Create's
230
+ * Planning phase that is the uploaded scope document vanishing the moment the user carries on
231
+ * talking about it — a worse failure than the one being fixed. So the stamp is deferred to that
232
+ * `installAgent`, and consumed there once whichever agent it installs.
233
+ */
234
+ private readonly condenseAwaitingReactivation;
213
235
  /**
214
236
  * Monotonic model-call counter for the driver's whole lifetime — the age clock
215
237
  * for `condenseWhen({ on: { kind: 'age' } })`. The per-`sendMessage` `iterations`
@@ -816,6 +838,77 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
816
838
  * unaffected — which is what makes the elision recoverable.
817
839
  */
818
840
  getHistoryForPersistence(): ChatMessage[];
841
+ /** The four condensation clocks as they read now. */
842
+ private condenseClocks;
843
+ /**
844
+ * The `condenseWhen` policies that have not fired yet, for the calls in `messages`, in the
845
+ * clock-independent form {@link ChatDriver.restoreCondensePolicies} re-registers. See
846
+ * {@link AiDriver.getCondensePoliciesForPersistence}.
847
+ *
848
+ * The other half of {@link ChatDriver.getHistoryForPersistence} (GENC-1632). That stores the
849
+ * payloads the model has already stopped seeing as their stubs; this stores the policies for the
850
+ * ones it has NOT stopped seeing yet, so a reload does not strand them at full size for the rest
851
+ * of the session. Only entries whose call is in `messages` — the transcript actually being
852
+ * written — are returned, so a frozen (non-resumable) or compacted save carries no policy for a
853
+ * call it does not contain.
854
+ *
855
+ * @beta
856
+ */
857
+ getCondensePoliciesForPersistence(messages: readonly ChatMessage[]): PersistedCondensePolicy[];
858
+ /**
859
+ * Re-register policies saved by {@link ChatDriver.getCondensePoliciesForPersistence} against
860
+ * the restored transcript. See {@link AiDriver.restoreCondensePolicies}.
861
+ *
862
+ * Call AFTER {@link ChatDriver.loadHistory} has seeded the restored transcript: an entry is
863
+ * re-registered only if its tool call is in the driver's history, so one whose call the
864
+ * restorable-boundary trim cut away (an orphaned trailing `tool_use`) is dropped rather than
865
+ * resurrected against nothing.
866
+ *
867
+ * First-wins still holds per call: an entry is skipped if a policy is already registered for its
868
+ * tool call — a restore never overrides what a live handler declared. `superseded` needs no
869
+ * special handling — survivors are resolved from HISTORY order on every pass, so a restored entry
870
+ * and a later call on the same `by` key resolve exactly as two live ones would.
871
+ *
872
+ * Clocks are rebased so each trigger is exactly as far from firing as it was at save time (see
873
+ * `rebaseRestoredCondensePolicy`), with one deferral. An entry owned by the activation that was
874
+ * live at save time, whose agent is not the one installed right now — the normal case on a
875
+ * fresh page, where nothing is installed yet — is parked in
876
+ * `condenseAwaitingReactivation` and stamped by the next `installAgent`: with
877
+ * that agent's resumed activation if it is the same agent, or left behind (so it reads as
878
+ * ended, which it has) if a different agent took over.
879
+ *
880
+ * A host with no agent to re-activate (a bare driver built from a static config) loses nothing
881
+ * by this: the entry's owner (`undefined`) matches the installed agent (`undefined`), so it is
882
+ * stamped live straight away and ends when the driver's single activation does — on
883
+ * `releaseAgent` / `completeSubAgent`, exactly as a policy registered live would.
884
+ *
885
+ * Returns how many entries were actually re-armed, split from how many were merely present in
886
+ * `entries` (review follow-up, GENC-1632): a malformed entry, one whose call the restorable-
887
+ * boundary trim removed, or a first-wins duplicate is silently dropped, so the caller's own count
888
+ * of `entries` can't tell "all of them came back" from "none did". `restored` is every entry that
889
+ * reached `condensePolicies`; `awaitingReactivation` is the subset of those parked pending the
890
+ * next `installAgent` rather than stamped live immediately.
891
+ *
892
+ * @beta
893
+ */
894
+ restoreCondensePolicies(entries: readonly unknown[] | undefined): {
895
+ restored: number;
896
+ awaitingReactivation: number;
897
+ };
898
+ /**
899
+ * Stamp the restored entries parked in `condenseAwaitingReactivation` now that
900
+ * `installAgent` has advanced the activation clock for `agentName` (GENC-1632).
901
+ *
902
+ * Same agent → the flow the entry belonged to is resuming, so it takes the new activation and
903
+ * stays full until THAT activation ends (and, for `phaseEnd`, until the next `endPhase()`).
904
+ * Different agent → its owner did not come back; its activation is over, so it keeps the stamp
905
+ * it was restored with, which is now behind the clock, and collapses on the next provider call
906
+ * exactly as a live `agentEnd` payload does on a swap.
907
+ *
908
+ * One-shot: the set is emptied whatever the outcome, because only the FIRST activation after the
909
+ * restore can be the resumption. Any later swap is an ordinary activation boundary.
910
+ */
911
+ private resumeRestoredCondensePolicies;
819
912
  /**
820
913
  * {@inheritDoc AiDriver.getSuggestions}
821
914
  *
@@ -1 +1 @@
1
- {"version":3,"file":"chat-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/chat-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAGlB,cAAc,EACd,gBAAgB,EAGhB,WAAW,EASX,yBAAyB,EACzB,qBAAqB,EAGtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,oBAAoB,EAOrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,+BAA+B,CAAC;AACpF,OAAO,KAAK,EACV,WAAW,EAKX,iBAAiB,EAKjB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAM1E,OAAO,EACL,KAAK,oBAAoB,EAG1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,KAAK,qBAAqB,EAG3B,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAmBxE,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAElE,mEAAmE;AACnE,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;GAGG;AACH,KAAK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B,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,GAAG,EACT,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,CAAC,CAAC;IAIb;;;;;;;;;;;;;;;;;;;OAmBG;IACI,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO;IAI1E;;;OAGG;IACI,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,IAAI;IAInE;;;;OAIG;IACI,qBAAqB,CAAC,aAAa,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAInF;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAU/B;;;OAGG;IACI,WAAW,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAI;IAK3C,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA0D/F;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CAAC,mBAAmB;IAmG3B;;;;;OAKG;YACW,cAAc;IAyP5B;;;OAGG;IACG,mBAAmB,CAAC,eAAe,CAAC,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;YA6DvE,WAAW;IA4lCzB;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,eAAe;IAiBvB,gDAAgD;IAChD,OAAO,CAAC,oBAAoB;CAO7B"}
@@ -3,6 +3,7 @@ import type { ActivityBus } from '../../channel/ai-activity-bus';
3
3
  import type { AgentConfig } from '../../config/config';
4
4
  import type { DiagnosticEntry } from '../../state/persistence/diagnostics';
5
5
  import type { InteractionContext } from '../../types/interaction-context';
6
+ import type { PersistedCondensePolicy } from '../../utils/condense-history';
6
7
  import type { CompactionProjection } from '../../utils/context-tokens';
7
8
  import type { CompactionPlanOptions } from '../../utils/history-transform';
8
9
  import type { AiDriver, AllAgentSummary, ContextReserveResolution } from '../ai-driver/ai-driver';
@@ -185,6 +186,22 @@ export declare class OrchestratingDriver extends EventTarget implements AiDriver
185
186
  * tests passed, and the feature did nothing.
186
187
  */
187
188
  getHistoryForPersistence(): ChatMessage[];
189
+ /**
190
+ * Delegates to the inner {@link ChatDriver}, which owns the condensation registry and clocks
191
+ * (GENC-1632). The forward matters for the same reason as `getHistoryForPersistence` above: the
192
+ * persister reaches it through `?.`, so a missing forward would compile, pass the ChatDriver
193
+ * tests, and do nothing for every orchestrated host — which is every host with an agents array.
194
+ */
195
+ getCondensePoliciesForPersistence(messages: readonly ChatMessage[]): PersistedCondensePolicy[];
196
+ /**
197
+ * Delegates to the inner {@link ChatDriver} (GENC-1632). The deferred activation stamp it
198
+ * performs is taken by the inner driver's `installAgent`, which this driver's own
199
+ * `installAgent` always reaches, so nothing extra is needed here.
200
+ */
201
+ restoreCondensePolicies(entries: readonly unknown[] | undefined): {
202
+ restored: number;
203
+ awaitingReactivation: number;
204
+ };
188
205
  /** {@inheritDoc AiDriver.setContextGuard} */
189
206
  setContextGuard(policy?: ContextGuardPolicy): void;
190
207
  /** {@inheritDoc AiDriver.compact} */
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrating-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/orchestrating-driver/orchestrating-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,WAAW,EAEZ,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EACV,WAAW,EAMZ,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AA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;;;OAGG;IACH,OAAO,CAAC,oBAAoB;YAgCd,QAAQ;IAmMtB;;;;;;;OAOG;IACH,OAAO,CAAC,kBAAkB;IAa1B;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;CAe5B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,mBAAmB,GAAG,SAAS,CAEjF"}
1
+ {"version":3,"file":"orchestrating-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/orchestrating-driver/orchestrating-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,WAAW,EAEZ,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EACV,WAAW,EAMZ,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAK3E,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClG,OAAO,EAEL,KAAK,kBAAkB,EAEvB,KAAK,YAAY,EAClB,MAAM,4BAA4B,CAAC;AAkBpC;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,eAAe;AACzB,kDAAkD;AAChD,YAAY;AACd,6EAA6E;GAC3E,UAAU;AACZ;;;;;GAKG;GACD,kBAAkB;AACpB,+DAA+D;GAC7D,kBAAkB;AACpB,kDAAkD;GAChD,gBAAgB;AAClB,kF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AAgB,cAAc,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,mBAAmB,GAAG,SAAS,CAEjF"}
@@ -1,5 +1,6 @@
1
1
  export { PERSISTED_SESSION_VERSION } from './session-snapshot';
2
2
  export type { PersistedSession } from './session-snapshot';
3
+ export type { PersistedCondensePolicy } from '../../utils/condense-history';
3
4
  export { WebStorageSessionProvider } from './session-persistence-provider';
4
5
  export type { SessionPersistenceProvider, SessionPersistenceConfig, SessionPreferences, } from './session-persistence-provider';
5
6
  export { assembleDebugLog, withFreshMetaSnapshot } from './diagnostics';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/state/persistence/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,YAAY,EACV,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACxE,YAAY,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/state/persistence/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,YAAY,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,YAAY,EACV,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACxE,YAAY,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
@@ -196,6 +196,18 @@ export declare class SessionPersister {
196
196
  * persist or accumulate across reload→save→reload cycles.
197
197
  */
198
198
  private messagesToPersist;
199
+ /**
200
+ * The `condenseWhen` policies still waiting to fire for the calls in `messages` (GENC-1632) —
201
+ * the half of condensation `getHistoryForPersistence` cannot carry, because a payload whose
202
+ * trigger has not fired is stored full and needs its policy to collapse after a reload.
203
+ *
204
+ * `flowDropped` is the frozen (non-resumable) save: its snapshot drops the running flow, so the
205
+ * activation that owned the pending payloads does not resume and they are written as ended.
206
+ *
207
+ * Never throws: a failure here costs a resumed session some context, which is not worth losing
208
+ * the save over.
209
+ */
210
+ private condensePoliciesToPersist;
199
211
  /**
200
212
  * Capture the current session to durable storage (GENC-1351 §5.1). Reads the
201
213
  * full transcript from the driver and the restorable scalars from the store, and