@genesislcap/ai-assistant 15.15.1 → 15.15.2
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.
- package/dist/ai-assistant.api.json +367 -0
- package/dist/ai-assistant.d.ts +129 -1
- package/dist/chat-driver.cjs +3 -0
- package/dist/chat-driver.cjs.map +2 -2
- package/dist/chat-driver.mjs +3 -0
- package/dist/chat-driver.mjs.map +2 -2
- package/dist/custom-elements.json +232 -3
- package/dist/dts/main/main.d.ts +129 -0
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts +0 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/main/persistence-broken-sources.test.d.ts +2 -0
- package/dist/dts/main/persistence-broken-sources.test.d.ts.map +1 -0
- package/dist/dts/state/debug-event-log.d.ts +1 -1
- package/dist/dts/state/debug-event-log.d.ts.map +1 -1
- package/dist/dts/state/persistence/session-persister.d.ts +76 -0
- package/dist/dts/state/persistence/session-persister.d.ts.map +1 -1
- package/dist/esm/main/main.js +205 -0
- package/dist/esm/main/main.template.js +89 -0
- package/dist/esm/main/persistence-broken-sources.test.js +180 -0
- package/dist/esm/state/debug-event-log.js +3 -0
- package/dist/esm/state/persistence/session-persister.js +224 -43
- package/dist/esm/state/persistence/session-persister.test.js +237 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -17
- package/src/main/main.template.ts +101 -0
- package/src/main/main.ts +230 -0
- package/src/main/persistence-broken-sources.test.ts +219 -0
- package/src/state/debug-event-log.ts +4 -0
- package/src/state/persistence/session-persister.test.ts +302 -33
- package/src/state/persistence/session-persister.ts +260 -52
|
@@ -1722,8 +1722,35 @@
|
|
|
1722
1722
|
{
|
|
1723
1723
|
"kind": "javascript-module",
|
|
1724
1724
|
"path": "src/main/main.template.ts",
|
|
1725
|
-
"declarations": [
|
|
1726
|
-
|
|
1725
|
+
"declarations": [
|
|
1726
|
+
{
|
|
1727
|
+
"kind": "function",
|
|
1728
|
+
"name": "FoundationAiAssistantTemplate",
|
|
1729
|
+
"return": {
|
|
1730
|
+
"type": {
|
|
1731
|
+
"text": "ViewTemplate<FoundationAiAssistant>"
|
|
1732
|
+
}
|
|
1733
|
+
},
|
|
1734
|
+
"parameters": [
|
|
1735
|
+
{
|
|
1736
|
+
"name": "designSystemPrefix",
|
|
1737
|
+
"type": {
|
|
1738
|
+
"text": "string"
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
]
|
|
1742
|
+
}
|
|
1743
|
+
],
|
|
1744
|
+
"exports": [
|
|
1745
|
+
{
|
|
1746
|
+
"kind": "js",
|
|
1747
|
+
"name": "FoundationAiAssistantTemplate",
|
|
1748
|
+
"declaration": {
|
|
1749
|
+
"name": "FoundationAiAssistantTemplate",
|
|
1750
|
+
"module": "src/main/main.template.ts"
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
]
|
|
1727
1754
|
},
|
|
1728
1755
|
{
|
|
1729
1756
|
"kind": "javascript-module",
|
|
@@ -2790,6 +2817,117 @@
|
|
|
2790
2817
|
},
|
|
2791
2818
|
"description": "Bound to the design-system modal via the template ref."
|
|
2792
2819
|
},
|
|
2820
|
+
{
|
|
2821
|
+
"kind": "field",
|
|
2822
|
+
"name": "persistenceBroken",
|
|
2823
|
+
"type": {
|
|
2824
|
+
"text": "boolean"
|
|
2825
|
+
},
|
|
2826
|
+
"default": "false",
|
|
2827
|
+
"description": "GENC-1511 — persistence has failed repeatedly and it is no longer saving. Drives a BLOCKING\nmodal with a single Reload action: the whole failure class this ticket exists for is one the\nuser cannot see, and a passive indicator is close to invisible (Will worked for 3h17m past\nthe point his session stopped saving, with nothing on screen to tell him).\n\nSet only at a moment when reloading is SAFE — the persister gates it on the active agent\nbeing resumable, so we never advise a reload while an agent's in-flight work would be lost."
|
|
2828
|
+
},
|
|
2829
|
+
{
|
|
2830
|
+
"kind": "field",
|
|
2831
|
+
"name": "brokenSources",
|
|
2832
|
+
"privacy": "private",
|
|
2833
|
+
"readonly": true,
|
|
2834
|
+
"default": "new Map<string, { message?: string; detail?: string }>()",
|
|
2835
|
+
"description": "Which reporters currently consider persistence broken, newest last, each with the copy it\nasked for. FoundationAiAssistant.persistenceBroken is DERIVED from this (`size > 0`) rather than being the\nsource of truth.\n\nA plain boolean was wrong the moment there was more than one reporter, and review caught it:\nthis element's own persister covers `sessions/<key>`, while a host reports its own keyspaces\n(Create's `projects/<id>.json`). With one flag, a SESSION save landing after its own broken\nepisode called `reportPersistenceRecovered()` and closed the modal while the PROJECT store\nwas still refusing writes — and because Create's own re-entry guard only clears on a\nsuccessful project write, the warning could then never be raised again for the life of the\npage. The user carried on against a dead store with the warning cancelled by an unrelated\nsubsystem: the exact failure this modal exists to prevent, on the keyspace that holds the app\nrather than the transcript.\n\nA `Map` and not a `Set` because the copy has to survive the same collision. The winner is the\nmost recently reported still-broken source (insertion order, so it is deterministic), and when\none recovers the copy falls back to whoever is left instead of reverting to the session\ndefault — which would otherwise state something untrue of the failure still in progress."
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
"kind": "method",
|
|
2839
|
+
"name": "persistenceBrokenChanged",
|
|
2840
|
+
"return": {
|
|
2841
|
+
"type": {
|
|
2842
|
+
"text": "void"
|
|
2843
|
+
}
|
|
2844
|
+
},
|
|
2845
|
+
"parameters": [
|
|
2846
|
+
{
|
|
2847
|
+
"name": "_old",
|
|
2848
|
+
"type": {
|
|
2849
|
+
"text": "boolean"
|
|
2850
|
+
}
|
|
2851
|
+
},
|
|
2852
|
+
{
|
|
2853
|
+
"name": "broken",
|
|
2854
|
+
"type": {
|
|
2855
|
+
"text": "boolean"
|
|
2856
|
+
}
|
|
2857
|
+
}
|
|
2858
|
+
],
|
|
2859
|
+
"description": "Showing and hiding the modal hangs off the PROPERTY, so `persistenceBroken` is the single\nentry point — for this element's own persister callback and for a host reporting a failure in\na keyspace this element knows nothing about (Create's project payload, GENC-1511 §17).\n\nIt has to be here rather than at the call site because of the `cancel` listener: `cancel`\ndoes not bubble, so it cannot be bound from the template, and a caller that shows the modal\nwithout attaching it gets a modal Escape closes — which defeats the whole point. Routing\nevery path through one place makes a dismissible variant unreachable."
|
|
2860
|
+
},
|
|
2861
|
+
{
|
|
2862
|
+
"kind": "field",
|
|
2863
|
+
"name": "onPersistenceModalCancel",
|
|
2864
|
+
"privacy": "private",
|
|
2865
|
+
"readonly": true,
|
|
2866
|
+
"description": "Swallows the native dialog's Escape route. Stored, not inline, so it can be removed again."
|
|
2867
|
+
},
|
|
2868
|
+
{
|
|
2869
|
+
"kind": "field",
|
|
2870
|
+
"name": "persistenceEscapeGuardTarget",
|
|
2871
|
+
"type": {
|
|
2872
|
+
"text": "HTMLDialogElement | undefined"
|
|
2873
|
+
},
|
|
2874
|
+
"privacy": "private",
|
|
2875
|
+
"description": "The node the guard above is bound to, so removal targets the same one it was added to."
|
|
2876
|
+
},
|
|
2877
|
+
{
|
|
2878
|
+
"kind": "method",
|
|
2879
|
+
"name": "attachPersistenceEscapeGuard",
|
|
2880
|
+
"privacy": "private",
|
|
2881
|
+
"return": {
|
|
2882
|
+
"type": {
|
|
2883
|
+
"text": "void"
|
|
2884
|
+
}
|
|
2885
|
+
},
|
|
2886
|
+
"parameters": [
|
|
2887
|
+
{
|
|
2888
|
+
"name": "modal",
|
|
2889
|
+
"type": {
|
|
2890
|
+
"text": "Modal"
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2893
|
+
],
|
|
2894
|
+
"description": "Make the modal survive Escape. Bound imperatively because `cancel` does not bubble.\n\nAttach/detach rather than fire-and-forget: a broken → recovered → broken cycle is reachable\n(that is what FoundationAiAssistant.reportPersistenceRecovered is for), and re-showing previously added a\nfresh anonymous closure each time, accumulating duplicate listeners on the dialog.\n\nA missing `mainElement` is LOGGED rather than ignored. `Dialog` declares it non-optional, so\nif it is ever absent the old optional-chain quietly produced an Escape-dismissible modal —\nfailing open on the one property this modal must never lose."
|
|
2895
|
+
},
|
|
2896
|
+
{
|
|
2897
|
+
"kind": "method",
|
|
2898
|
+
"name": "detachPersistenceEscapeGuard",
|
|
2899
|
+
"privacy": "private",
|
|
2900
|
+
"return": {
|
|
2901
|
+
"type": {
|
|
2902
|
+
"text": "void"
|
|
2903
|
+
}
|
|
2904
|
+
},
|
|
2905
|
+
"description": "Remove the Escape guard, if one is bound. Safe to call when there is none."
|
|
2906
|
+
},
|
|
2907
|
+
{
|
|
2908
|
+
"kind": "field",
|
|
2909
|
+
"name": "persistenceBrokenMessage",
|
|
2910
|
+
"type": {
|
|
2911
|
+
"text": "string | undefined"
|
|
2912
|
+
},
|
|
2913
|
+
"description": "Body copy for the modal; `undefined` uses the session-oriented default in the template. A\nhost reporting a different keyspace overrides it — \"this session has stopped saving\" is\nsimply untrue of a failed project write."
|
|
2914
|
+
},
|
|
2915
|
+
{
|
|
2916
|
+
"kind": "field",
|
|
2917
|
+
"name": "persistenceBrokenDetail",
|
|
2918
|
+
"type": {
|
|
2919
|
+
"text": "string | undefined"
|
|
2920
|
+
},
|
|
2921
|
+
"description": "Optional second line, already composed. A STRING rather than the message-count fields it\nreplaces: quantifying is caller-specific (\"N messages\", \"your last N changes\"), and keeping\nthe template ignorant of what is being counted is what makes it reusable."
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
"kind": "field",
|
|
2925
|
+
"name": "persistenceModal",
|
|
2926
|
+
"type": {
|
|
2927
|
+
"text": "Modal | undefined"
|
|
2928
|
+
},
|
|
2929
|
+
"description": "The modal itself, so it can be shown and made non-dismissible."
|
|
2930
|
+
},
|
|
2793
2931
|
{
|
|
2794
2932
|
"kind": "field",
|
|
2795
2933
|
"name": "settingsTabsEl",
|
|
@@ -4221,6 +4359,97 @@
|
|
|
4221
4359
|
],
|
|
4222
4360
|
"description": "The `SessionPersister` dependency getters bound to THIS element + `key`.\nThe host-owned getters (`getPersistence`/`getAgentNames`/`getDiagnosticEntries`)\nread the live element; `getDriver`/`getStore` resolve by key from the registries.\nRebound onto the shared persister on every activation (see `activateSession`) so\na remounted element becomes the live source, not the torn-down creator (GENC-1351 §5.10 / #7)."
|
|
4223
4361
|
},
|
|
4362
|
+
{
|
|
4363
|
+
"kind": "method",
|
|
4364
|
+
"name": "reportPersistenceBroken",
|
|
4365
|
+
"return": {
|
|
4366
|
+
"type": {
|
|
4367
|
+
"text": "void"
|
|
4368
|
+
}
|
|
4369
|
+
},
|
|
4370
|
+
"parameters": [
|
|
4371
|
+
{
|
|
4372
|
+
"name": "overrides",
|
|
4373
|
+
"optional": true,
|
|
4374
|
+
"type": {
|
|
4375
|
+
"text": "{\n message?: string;\n detail?: string;\n source?: string;\n }"
|
|
4376
|
+
},
|
|
4377
|
+
"description": "`message` replaces the body; `detail` adds/replaces the second line;\n`source` identifies the reporter so its own recovery withdraws only its own warning. Give\neach independent keyspace its own id — see `brokenSources` for what sharing one costs."
|
|
4378
|
+
}
|
|
4379
|
+
],
|
|
4380
|
+
"description": "Tell the user their work is no longer being saved, and block until they reload (GENC-1511).\n\nPublic because the assistant is not the only thing that persists. Its own persister covers\n`sessions/<key>`; a host may own other keyspaces whose failure is just as costly — Create's\n`projects/<id>.json` holds the entity model, handlers and VFS, i.e. the app itself — and had\nno way to reach this modal (§17 of the GENC-1511 plan).\n\nBoth copy fields are optional and default to the session wording in the template, so the\ncommon case stays a bare call. Idempotent per source while already broken: re-reporting the\nsame source refreshes its copy, and the property change only shows a modal that is not open."
|
|
4381
|
+
},
|
|
4382
|
+
{
|
|
4383
|
+
"kind": "method",
|
|
4384
|
+
"name": "reportPersistenceRecovered",
|
|
4385
|
+
"return": {
|
|
4386
|
+
"type": {
|
|
4387
|
+
"text": "void"
|
|
4388
|
+
}
|
|
4389
|
+
},
|
|
4390
|
+
"parameters": [
|
|
4391
|
+
{
|
|
4392
|
+
"name": "source",
|
|
4393
|
+
"default": "DEFAULT_PERSISTENCE_SOURCE",
|
|
4394
|
+
"type": {
|
|
4395
|
+
"text": "string"
|
|
4396
|
+
},
|
|
4397
|
+
"description": "must match the id the failure was reported under."
|
|
4398
|
+
}
|
|
4399
|
+
],
|
|
4400
|
+
"description": "Withdraw one reporter's warning — its save landed, or the host's own store recovered.\n\nOnly `source`'s entry is removed, so a session recovery cannot cancel a host's still-live\nproject failure (GENC-1511, caught in review; see `brokenSources`). The modal closes\nonly once nothing is broken; while anything remains, the copy falls back to the newest\nsurvivor."
|
|
4401
|
+
},
|
|
4402
|
+
{
|
|
4403
|
+
"kind": "method",
|
|
4404
|
+
"name": "syncPersistenceBrokenCopy",
|
|
4405
|
+
"privacy": "private",
|
|
4406
|
+
"return": {
|
|
4407
|
+
"type": {
|
|
4408
|
+
"text": "void"
|
|
4409
|
+
}
|
|
4410
|
+
},
|
|
4411
|
+
"description": "Recompute the derived flag and the displayed copy from `brokenSources`.\n\nCopy order is last-in-wins, which is both deterministic (`Map` iterates in insertion order)\nand the behaviour a reader expects — the most recent failure is the one described. Setting\n`persistenceBroken` last means the modal is only ever shown or closed once the copy backing\nit is already correct."
|
|
4412
|
+
},
|
|
4413
|
+
{
|
|
4414
|
+
"kind": "method",
|
|
4415
|
+
"name": "onPersistenceBroken",
|
|
4416
|
+
"privacy": "private",
|
|
4417
|
+
"return": {
|
|
4418
|
+
"type": {
|
|
4419
|
+
"text": "void"
|
|
4420
|
+
}
|
|
4421
|
+
},
|
|
4422
|
+
"parameters": [
|
|
4423
|
+
{
|
|
4424
|
+
"name": "d",
|
|
4425
|
+
"type": {
|
|
4426
|
+
"text": "{\n unsavedMessages: number;\n lastSavedAt?: string;\n reason: string;\n }"
|
|
4427
|
+
}
|
|
4428
|
+
}
|
|
4429
|
+
],
|
|
4430
|
+
"description": "This element's own persister said the session snapshot is not landing (GENC-1511)."
|
|
4431
|
+
},
|
|
4432
|
+
{
|
|
4433
|
+
"kind": "method",
|
|
4434
|
+
"name": "onPersistenceRecovered",
|
|
4435
|
+
"privacy": "private",
|
|
4436
|
+
"return": {
|
|
4437
|
+
"type": {
|
|
4438
|
+
"text": "void"
|
|
4439
|
+
}
|
|
4440
|
+
},
|
|
4441
|
+
"description": "A session save landed after a broken episode — withdraw OUR warning only (GENC-1511).\n\nThe explicit source is the whole point: a host's project store may still be failing, and\nbefore this was per-source a session recovery closed that modal too."
|
|
4442
|
+
},
|
|
4443
|
+
{
|
|
4444
|
+
"kind": "method",
|
|
4445
|
+
"name": "reloadForPersistence",
|
|
4446
|
+
"return": {
|
|
4447
|
+
"type": {
|
|
4448
|
+
"text": "void"
|
|
4449
|
+
}
|
|
4450
|
+
},
|
|
4451
|
+
"description": "The modal's only action. A reload re-reads the stored snapshot, which is plain data parsed\nfrom the server, so it also clears the serialisation fault that is the most likely cause."
|
|
4452
|
+
},
|
|
4224
4453
|
{
|
|
4225
4454
|
"kind": "method",
|
|
4226
4455
|
"name": "initPersistenceForNewStore",
|
|
@@ -4837,7 +5066,7 @@
|
|
|
4837
5066
|
"type": {
|
|
4838
5067
|
"text": "Record<MetaEventType, MetaEventImportance>"
|
|
4839
5068
|
},
|
|
4840
|
-
"default": "{\n 'turn.error': 'high',\n 'tool.failed': 'high',\n 'subagent.failed': 'high',\n 'file.read-failed': 'high',\n 'suggestions.failed': 'high',\n 'context.threshold-crossed': 'high',\n 'context.compacted': 'high',\n 'persistence.restore-orphan': 'high',\n\n 'assistant.connected': 'normal',\n 'assistant.disconnected': 'normal',\n 'assistant.popout': 'normal',\n 'assistant.popin': 'normal',\n 'driver.created': 'normal',\n 'state.changed': 'normal',\n 'turn.start': 'normal',\n 'turn.end': 'normal',\n 'turn.retry': 'normal',\n 'tool.unresolved': 'normal',\n 'subagent.started': 'normal',\n 'subagent.completed': 'normal',\n 'agent.handoff': 'normal',\n 'agent.pinned': 'normal',\n 'agent.unpinned': 'normal',\n 'provider.selected': 'normal',\n 'interaction.requested': 'normal',\n 'interaction.resolved': 'normal',\n 'external-diagnostics.folded': 'normal',\n 'session.cleared': 'normal',\n 'session.switched': 'low',\n 'session.switch-deferred': 'low',\n 'persistence.restored': 'normal',\n 'persistence.suppressed': 'normal',\n 'persistence.not-resumable': 'normal',\n\n 'driver.wired': 'low',\n 'driver.unwired': 'low',\n 'context.updated': 'low',\n 'context.condensed': 'low',\n 'panel.toggled': 'low',\n 'persistence.toggled': 'low',\n 'persistence.saved': 'low',\n 'attachment.added': 'low',\n}",
|
|
5069
|
+
"default": "{\n 'turn.error': 'high',\n 'tool.failed': 'high',\n 'subagent.failed': 'high',\n 'file.read-failed': 'high',\n 'suggestions.failed': 'high',\n 'context.threshold-crossed': 'high',\n 'context.compacted': 'high',\n 'persistence.restore-orphan': 'high',\n // A save that did not land is silent data loss in progress: the transcript on screen\n // is no longer backed by the store, and every later turn widens the gap. GENC-1511.\n 'persistence.save-failed': 'high',\n\n 'assistant.connected': 'normal',\n 'assistant.disconnected': 'normal',\n 'assistant.popout': 'normal',\n 'assistant.popin': 'normal',\n 'driver.created': 'normal',\n 'state.changed': 'normal',\n 'turn.start': 'normal',\n 'turn.end': 'normal',\n 'turn.retry': 'normal',\n 'tool.unresolved': 'normal',\n 'subagent.started': 'normal',\n 'subagent.completed': 'normal',\n 'agent.handoff': 'normal',\n 'agent.pinned': 'normal',\n 'agent.unpinned': 'normal',\n 'provider.selected': 'normal',\n 'interaction.requested': 'normal',\n 'interaction.resolved': 'normal',\n 'external-diagnostics.folded': 'normal',\n 'session.cleared': 'normal',\n 'session.switched': 'low',\n 'session.switch-deferred': 'low',\n 'persistence.restored': 'normal',\n 'persistence.suppressed': 'normal',\n 'persistence.not-resumable': 'normal',\n\n 'driver.wired': 'low',\n 'driver.unwired': 'low',\n 'context.updated': 'low',\n 'context.condensed': 'low',\n 'panel.toggled': 'low',\n 'persistence.toggled': 'low',\n 'persistence.saved': 'low',\n 'attachment.added': 'low',\n}",
|
|
4841
5070
|
"description": "Importance is intrinsic to the event *type*, not the instance, so it's\ndefined once here and stamped automatically by recordMetaEvent — call\nsites never pass it. The `Record` is exhaustive: adding a `MetaEventType`\nwithout a level here is a compile error.\n\n- `high` — failures and hard limits you almost always want to see.\n- `normal` — meaningful session flow you read to follow what happened.\n- `low` — frequent UI / bookkeeping noise, usually safe to skip."
|
|
4842
5071
|
},
|
|
4843
5072
|
{
|
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -984,6 +984,80 @@ export declare class FoundationAiAssistant extends GenesisElement {
|
|
|
984
984
|
settingsModalTab: SettingsModalTab;
|
|
985
985
|
/** Bound to the design-system modal via the template ref. */
|
|
986
986
|
settingsModal?: Modal;
|
|
987
|
+
/**
|
|
988
|
+
* GENC-1511 — persistence has failed repeatedly and it is no longer saving. Drives a BLOCKING
|
|
989
|
+
* modal with a single Reload action: the whole failure class this ticket exists for is one the
|
|
990
|
+
* user cannot see, and a passive indicator is close to invisible (Will worked for 3h17m past
|
|
991
|
+
* the point his session stopped saving, with nothing on screen to tell him).
|
|
992
|
+
*
|
|
993
|
+
* Set only at a moment when reloading is SAFE — the persister gates it on the active agent
|
|
994
|
+
* being resumable, so we never advise a reload while an agent's in-flight work would be lost.
|
|
995
|
+
*/
|
|
996
|
+
persistenceBroken: boolean;
|
|
997
|
+
/**
|
|
998
|
+
* Which reporters currently consider persistence broken, newest last, each with the copy it
|
|
999
|
+
* asked for. {@link FoundationAiAssistant.persistenceBroken} is DERIVED from this (`size > 0`) rather than being the
|
|
1000
|
+
* source of truth.
|
|
1001
|
+
*
|
|
1002
|
+
* A plain boolean was wrong the moment there was more than one reporter, and review caught it:
|
|
1003
|
+
* this element's own persister covers `sessions/<key>`, while a host reports its own keyspaces
|
|
1004
|
+
* (Create's `projects/<id>.json`). With one flag, a SESSION save landing after its own broken
|
|
1005
|
+
* episode called `reportPersistenceRecovered()` and closed the modal while the PROJECT store
|
|
1006
|
+
* was still refusing writes — and because Create's own re-entry guard only clears on a
|
|
1007
|
+
* successful project write, the warning could then never be raised again for the life of the
|
|
1008
|
+
* page. The user carried on against a dead store with the warning cancelled by an unrelated
|
|
1009
|
+
* subsystem: the exact failure this modal exists to prevent, on the keyspace that holds the app
|
|
1010
|
+
* rather than the transcript.
|
|
1011
|
+
*
|
|
1012
|
+
* A `Map` and not a `Set` because the copy has to survive the same collision. The winner is the
|
|
1013
|
+
* most recently reported still-broken source (insertion order, so it is deterministic), and when
|
|
1014
|
+
* one recovers the copy falls back to whoever is left instead of reverting to the session
|
|
1015
|
+
* default — which would otherwise state something untrue of the failure still in progress.
|
|
1016
|
+
*/
|
|
1017
|
+
private readonly brokenSources;
|
|
1018
|
+
/**
|
|
1019
|
+
* Showing and hiding the modal hangs off the PROPERTY, so `persistenceBroken` is the single
|
|
1020
|
+
* entry point — for this element's own persister callback and for a host reporting a failure in
|
|
1021
|
+
* a keyspace this element knows nothing about (Create's project payload, GENC-1511 §17).
|
|
1022
|
+
*
|
|
1023
|
+
* It has to be here rather than at the call site because of the `cancel` listener: `cancel`
|
|
1024
|
+
* does not bubble, so it cannot be bound from the template, and a caller that shows the modal
|
|
1025
|
+
* without attaching it gets a modal Escape closes — which defeats the whole point. Routing
|
|
1026
|
+
* every path through one place makes a dismissible variant unreachable.
|
|
1027
|
+
*/
|
|
1028
|
+
persistenceBrokenChanged(_old: boolean, broken: boolean): void;
|
|
1029
|
+
/** Swallows the native dialog's Escape route. Stored, not inline, so it can be removed again. */
|
|
1030
|
+
private readonly onPersistenceModalCancel;
|
|
1031
|
+
/** The node the guard above is bound to, so removal targets the same one it was added to. */
|
|
1032
|
+
private persistenceEscapeGuardTarget?;
|
|
1033
|
+
/**
|
|
1034
|
+
* Make the modal survive Escape. Bound imperatively because `cancel` does not bubble.
|
|
1035
|
+
*
|
|
1036
|
+
* Attach/detach rather than fire-and-forget: a broken → recovered → broken cycle is reachable
|
|
1037
|
+
* (that is what {@link FoundationAiAssistant.reportPersistenceRecovered} is for), and re-showing previously added a
|
|
1038
|
+
* fresh anonymous closure each time, accumulating duplicate listeners on the dialog.
|
|
1039
|
+
*
|
|
1040
|
+
* A missing `mainElement` is LOGGED rather than ignored. `Dialog` declares it non-optional, so
|
|
1041
|
+
* if it is ever absent the old optional-chain quietly produced an Escape-dismissible modal —
|
|
1042
|
+
* failing open on the one property this modal must never lose.
|
|
1043
|
+
*/
|
|
1044
|
+
private attachPersistenceEscapeGuard;
|
|
1045
|
+
/** Remove the Escape guard, if one is bound. Safe to call when there is none. */
|
|
1046
|
+
private detachPersistenceEscapeGuard;
|
|
1047
|
+
/**
|
|
1048
|
+
* Body copy for the modal; `undefined` uses the session-oriented default in the template. A
|
|
1049
|
+
* host reporting a different keyspace overrides it — "this session has stopped saving" is
|
|
1050
|
+
* simply untrue of a failed project write.
|
|
1051
|
+
*/
|
|
1052
|
+
persistenceBrokenMessage?: string;
|
|
1053
|
+
/**
|
|
1054
|
+
* Optional second line, already composed. A STRING rather than the message-count fields it
|
|
1055
|
+
* replaces: quantifying is caller-specific ("N messages", "your last N changes"), and keeping
|
|
1056
|
+
* the template ignorant of what is being counted is what makes it reusable.
|
|
1057
|
+
*/
|
|
1058
|
+
persistenceBrokenDetail?: string;
|
|
1059
|
+
/** The modal itself, so it can be shown and made non-dismissible. */
|
|
1060
|
+
persistenceModal?: Modal;
|
|
987
1061
|
/** Bound to the settings modal tab bar — used to resync selection after reopen. */
|
|
988
1062
|
settingsTabsEl?: SettingsModalTabsElement;
|
|
989
1063
|
/** Light-DOM nodes assigned to settings modal slots (via `slotted()` bindings). */
|
|
@@ -1585,6 +1659,61 @@ export declare class FoundationAiAssistant extends GenesisElement {
|
|
|
1585
1659
|
* a remounted element becomes the live source, not the torn-down creator (GENC-1351 §5.10 / #7).
|
|
1586
1660
|
*/
|
|
1587
1661
|
private buildPersisterDeps;
|
|
1662
|
+
/**
|
|
1663
|
+
* Tell the user their work is no longer being saved, and block until they reload (GENC-1511).
|
|
1664
|
+
*
|
|
1665
|
+
* Public because the assistant is not the only thing that persists. Its own persister covers
|
|
1666
|
+
* `sessions/<key>`; a host may own other keyspaces whose failure is just as costly — Create's
|
|
1667
|
+
* `projects/<id>.json` holds the entity model, handlers and VFS, i.e. the app itself — and had
|
|
1668
|
+
* no way to reach this modal (§17 of the GENC-1511 plan).
|
|
1669
|
+
*
|
|
1670
|
+
* Both copy fields are optional and default to the session wording in the template, so the
|
|
1671
|
+
* common case stays a bare call. Idempotent per source while already broken: re-reporting the
|
|
1672
|
+
* same source refreshes its copy, and the property change only shows a modal that is not open.
|
|
1673
|
+
*
|
|
1674
|
+
* @param overrides - `message` replaces the body; `detail` adds/replaces the second line;
|
|
1675
|
+
* `source` identifies the reporter so its own recovery withdraws only its own warning. Give
|
|
1676
|
+
* each independent keyspace its own id — see `brokenSources` for what sharing one costs.
|
|
1677
|
+
*/
|
|
1678
|
+
reportPersistenceBroken(overrides?: {
|
|
1679
|
+
message?: string;
|
|
1680
|
+
detail?: string;
|
|
1681
|
+
source?: string;
|
|
1682
|
+
}): void;
|
|
1683
|
+
/**
|
|
1684
|
+
* Withdraw one reporter's warning — its save landed, or the host's own store recovered.
|
|
1685
|
+
*
|
|
1686
|
+
* Only `source`'s entry is removed, so a session recovery cannot cancel a host's still-live
|
|
1687
|
+
* project failure (GENC-1511, caught in review; see `brokenSources`). The modal closes
|
|
1688
|
+
* only once nothing is broken; while anything remains, the copy falls back to the newest
|
|
1689
|
+
* survivor.
|
|
1690
|
+
*
|
|
1691
|
+
* @param source - must match the id the failure was reported under.
|
|
1692
|
+
*/
|
|
1693
|
+
reportPersistenceRecovered(source?: string): void;
|
|
1694
|
+
/**
|
|
1695
|
+
* Recompute the derived flag and the displayed copy from `brokenSources`.
|
|
1696
|
+
*
|
|
1697
|
+
* Copy order is last-in-wins, which is both deterministic (`Map` iterates in insertion order)
|
|
1698
|
+
* and the behaviour a reader expects — the most recent failure is the one described. Setting
|
|
1699
|
+
* `persistenceBroken` last means the modal is only ever shown or closed once the copy backing
|
|
1700
|
+
* it is already correct.
|
|
1701
|
+
*/
|
|
1702
|
+
private syncPersistenceBrokenCopy;
|
|
1703
|
+
/** This element's own persister said the session snapshot is not landing (GENC-1511). */
|
|
1704
|
+
private onPersistenceBroken;
|
|
1705
|
+
/**
|
|
1706
|
+
* A session save landed after a broken episode — withdraw OUR warning only (GENC-1511).
|
|
1707
|
+
*
|
|
1708
|
+
* The explicit source is the whole point: a host's project store may still be failing, and
|
|
1709
|
+
* before this was per-source a session recovery closed that modal too.
|
|
1710
|
+
*/
|
|
1711
|
+
private onPersistenceRecovered;
|
|
1712
|
+
/**
|
|
1713
|
+
* The modal's only action. A reload re-reads the stored snapshot, which is plain data parsed
|
|
1714
|
+
* from the server, so it also clears the serialisation fault that is the most likely cause.
|
|
1715
|
+
*/
|
|
1716
|
+
reloadForPersistence(): void;
|
|
1588
1717
|
/**
|
|
1589
1718
|
* First-load persistence init for a freshly created store (GENC-1351). Restores
|
|
1590
1719
|
* the user's remembered persistence-toggle choice — kept independently of the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EACV,cAAc,EACd,6BAA6B,EAC7B,cAAc,EACd,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,4BAA4B,EAC5B,WAAW,EAEZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,kBAAkB,EAMnB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAIL,cAAc,EAIf,MAAM,uBAAuB,CAAC;AAc/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,4BAA4B,EAC5B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAChC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAgBvE,OAAO,KAAK,EAAE,QAAQ,EAAmB,MAAM,kCAAkC,CAAC;AAUlF,OAAO,KAAK,EACV,wBAAwB,EAEzB,MAAM,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AGiD;IACjD,oBAAoB,CAAC,CAAC,EAAE,YAAY,GAAG,IAAI;IAS3C,yDAAyD;IACzD,mBAAmB,CAAC,CAAC,EAAE,YAAY,GAAG,IAAI;CAI3C"}
|
|
@@ -69,6 +69,5 @@ export declare const BLOCKED_BANNER_ID = "blocked-banner";
|
|
|
69
69
|
* @internal
|
|
70
70
|
*/
|
|
71
71
|
export declare const composerDescribedBy: (x: FoundationAiAssistant) => string | null;
|
|
72
|
-
/** @internal */
|
|
73
72
|
export declare const FoundationAiAssistantTemplate: (designSystemPrefix: string) => ViewTemplate<FoundationAiAssistant>;
|
|
74
73
|
//# sourceMappingURL=main.template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AASH,OAAO,EAAuC,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAG1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AA2QpD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,oBAAoB,GAAI,GAAG,qBAAqB,KAAG,MAOlD,CAAC;AAEf;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,mBAAmB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,mBAAmB,GAAI,GAAG,qBAAqB,KAAG,MAAM,GAAG,IAC5B,CAAC;
|
|
1
|
+
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AASH,OAAO,EAAuC,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAG1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AA2QpD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,oBAAoB,GAAI,GAAG,qBAAqB,KAAG,MAOlD,CAAC;AAEf;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,mBAAmB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,mBAAmB,GAAI,GAAG,qBAAqB,KAAG,MAAM,GAAG,IAC5B,CAAC;AAyJ7C,eAAO,MAAM,6BAA6B,GACxC,oBAAoB,MAAM,KACzB,YAAY,CAAC,qBAAqB,CAyhBpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persistence-broken-sources.test.d.ts","sourceRoot":"","sources":["../../../src/main/persistence-broken-sources.test.ts"],"names":[],"mappings":""}
|
|
@@ -28,7 +28,7 @@ import type { TurnFailureReason } from '@genesislcap/foundation-ai';
|
|
|
28
28
|
* Catalogue of meta event names. This is the documented surface — extend it as
|
|
29
29
|
* new events are wired in (Tier 2/3 lifecycle, interaction, provider events).
|
|
30
30
|
*/
|
|
31
|
-
export type MetaEventType = 'assistant.connected' | 'assistant.disconnected' | 'assistant.popout' | 'assistant.popin' | 'driver.created' | 'driver.wired' | 'driver.unwired' | 'state.changed' | 'turn.start' | 'turn.end' | 'turn.retry' | 'turn.error' | 'tool.failed' | 'tool.unresolved' | 'subagent.started' | 'subagent.completed' | 'subagent.failed' | 'agent.handoff' | 'agent.pinned' | 'agent.unpinned' | 'provider.selected' | 'interaction.requested' | 'interaction.resolved' | 'external-diagnostics.folded' | 'context.updated' | 'context.threshold-crossed' | 'context.compacted' | 'context.condensed' | 'panel.toggled' | 'attachment.added' | 'file.read-failed' | 'suggestions.failed' | 'session.cleared' | 'session.switched' | 'session.switch-deferred' | 'persistence.toggled' | 'persistence.saved' | 'persistence.suppressed' | 'persistence.not-resumable' | 'persistence.restored' | 'persistence.restore-orphan';
|
|
31
|
+
export type MetaEventType = 'assistant.connected' | 'assistant.disconnected' | 'assistant.popout' | 'assistant.popin' | 'driver.created' | 'driver.wired' | 'driver.unwired' | 'state.changed' | 'turn.start' | 'turn.end' | 'turn.retry' | 'turn.error' | 'tool.failed' | 'tool.unresolved' | 'subagent.started' | 'subagent.completed' | 'subagent.failed' | 'agent.handoff' | 'agent.pinned' | 'agent.unpinned' | 'provider.selected' | 'interaction.requested' | 'interaction.resolved' | 'external-diagnostics.folded' | 'context.updated' | 'context.threshold-crossed' | 'context.compacted' | 'context.condensed' | 'panel.toggled' | 'attachment.added' | 'file.read-failed' | 'suggestions.failed' | 'session.cleared' | 'session.switched' | 'session.switch-deferred' | 'persistence.toggled' | 'persistence.saved' | 'persistence.save-failed' | 'persistence.suppressed' | 'persistence.not-resumable' | 'persistence.restored' | 'persistence.restore-orphan';
|
|
32
32
|
/**
|
|
33
33
|
* How much a reader should care about an event — lets a consumer (or an AI
|
|
34
34
|
* agent) filter the timeline: skip `low` UI/bookkeeping noise, skim `normal`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-event-log.d.ts","sourceRoot":"","sources":["../../../src/state/debug-event-log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE;;;GAGG;AACH,MAAM,MAAM,aAAa,GAErB,qBAAqB,GACrB,wBAAwB,GACxB,kBAAkB,GAClB,iBAAiB,GAEjB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAEhB,eAAe,GACf,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,iBAAiB,GACjB,kBAAkB,GAClB,oBAAoB,GACpB,iBAAiB,GAEjB,eAAe,GACf,cAAc,GACd,gBAAgB,GAChB,mBAAmB,GAEnB,uBAAuB,GACvB,sBAAsB,GAEtB,6BAA6B,GAE7B,iBAAiB,GACjB,2BAA2B,GAC3B,mBAAmB,GACnB,mBAAmB,GAEnB,eAAe,GACf,kBAAkB,GAClB,kBAAkB,GAClB,oBAAoB,GAEpB,iBAAiB,GACjB,kBAAkB,GAClB,yBAAyB,GACzB,qBAAqB,GACrB,mBAAmB,GACnB,wBAAwB,GACxB,2BAA2B,GAC3B,sBAAsB,GACtB,4BAA4B,CAAC;AAEjC;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE5D;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,aAAa,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"debug-event-log.d.ts","sourceRoot":"","sources":["../../../src/state/debug-event-log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE;;;GAGG;AACH,MAAM,MAAM,aAAa,GAErB,qBAAqB,GACrB,wBAAwB,GACxB,kBAAkB,GAClB,iBAAiB,GAEjB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAEhB,eAAe,GACf,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,iBAAiB,GACjB,kBAAkB,GAClB,oBAAoB,GACpB,iBAAiB,GAEjB,eAAe,GACf,cAAc,GACd,gBAAgB,GAChB,mBAAmB,GAEnB,uBAAuB,GACvB,sBAAsB,GAEtB,6BAA6B,GAE7B,iBAAiB,GACjB,2BAA2B,GAC3B,mBAAmB,GACnB,mBAAmB,GAEnB,eAAe,GACf,kBAAkB,GAClB,kBAAkB,GAClB,oBAAoB,GAEpB,iBAAiB,GACjB,kBAAkB,GAClB,yBAAyB,GACzB,qBAAqB,GACrB,mBAAmB,GACnB,yBAAyB,GACzB,wBAAwB,GACxB,2BAA2B,GAC3B,sBAAsB,GACtB,4BAA4B,CAAC;AAEjC;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE5D;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAq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AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,MAAM,EAmB7C,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAE7C"}
|
|
@@ -27,6 +27,22 @@ export interface SessionPersisterDeps {
|
|
|
27
27
|
* events, etc. — and is diffed against the shared cursors here (GENC-1351 §5.10).
|
|
28
28
|
*/
|
|
29
29
|
getDiagnosticEntries: () => DiagnosticEntry[];
|
|
30
|
+
/**
|
|
31
|
+
* Persistence has failed repeatedly and it is now a safe moment to tell the user (GENC-1511).
|
|
32
|
+
* Called at most once per broken episode — see {@link SessionPersister.persistSession} for the
|
|
33
|
+
* gating, which waits for the active agent to be RESUMABLE so we never advise a reload at a
|
|
34
|
+
* moment when reloading would throw away in-flight work the snapshot cannot carry.
|
|
35
|
+
*/
|
|
36
|
+
onPersistenceBroken?: (detail: {
|
|
37
|
+
/** Messages in the live transcript that the store does not have. */
|
|
38
|
+
unsavedMessages: number;
|
|
39
|
+
/** `savedAt` of the last snapshot that landed, if one ever did. */
|
|
40
|
+
lastSavedAt?: string;
|
|
41
|
+
/** Why the writes are failing, as reported by the provider. */
|
|
42
|
+
reason: string;
|
|
43
|
+
}) => void;
|
|
44
|
+
/** A save landed after a broken episode — the warning can be withdrawn (GENC-1511). */
|
|
45
|
+
onPersistenceRecovered?: () => void;
|
|
30
46
|
}
|
|
31
47
|
/**
|
|
32
48
|
* Owns **restore-core** persistence for one session (GENC-1351 §5.10) — the
|
|
@@ -55,6 +71,30 @@ export declare class SessionPersister {
|
|
|
55
71
|
* empty). Seeded on restore. See {@link reconcileAgentSnapshots}.
|
|
56
72
|
*/
|
|
57
73
|
private _cache;
|
|
74
|
+
/**
|
|
75
|
+
* How many messages the last SUCCESSFUL write persisted. Two jobs, both GENC-1511:
|
|
76
|
+
* it is the monotonic floor for a freeze boundary (the stored transcript must never
|
|
77
|
+
* shrink), and it is what lets a running flow skip a re-write when its boundary has
|
|
78
|
+
* not moved. Content-keyed, so unlike the `interrupted` latch it replaces it can never
|
|
79
|
+
* become a one-way "never write again" state.
|
|
80
|
+
*/
|
|
81
|
+
private _persistedMessages;
|
|
82
|
+
/**
|
|
83
|
+
* Whether the CURRENT non-resumable episode has already stamped its `interrupted`
|
|
84
|
+
* marker. Reset by every resumable save, so each new episode stamps exactly once and
|
|
85
|
+
* the "boundary unmoved" skip below can never swallow the stamp itself (GENC-1511).
|
|
86
|
+
*/
|
|
87
|
+
private _interruptedStamped;
|
|
88
|
+
/** Consecutive failed saves; reset by any success. GENC-1511. */
|
|
89
|
+
private _saveFailures;
|
|
90
|
+
/** When the failure count crossed {@link SAVE_FAILURES_BEFORE_BROKEN}; `undefined` = healthy. */
|
|
91
|
+
private _brokenSince?;
|
|
92
|
+
/** Whether this broken episode has already been reported to the host. */
|
|
93
|
+
private _brokenReported;
|
|
94
|
+
/** `savedAt` of the last snapshot that actually landed, for the host's message. */
|
|
95
|
+
private _lastSavedAt?;
|
|
96
|
+
/** Provider's reason for the most recent failure, for the host's message. */
|
|
97
|
+
private _lastFailureReason;
|
|
58
98
|
/**
|
|
59
99
|
* The loaded preferences blob (GENC-1351 §5.10 Phase 2), owned here so it's
|
|
60
100
|
* **shared per session** — the element's `applyPreferenceBaseline` reconciler reads
|
|
@@ -102,6 +142,42 @@ export declare class SessionPersister {
|
|
|
102
142
|
* guard for in-place project switching.
|
|
103
143
|
*/
|
|
104
144
|
cancelPendingSave(): void;
|
|
145
|
+
/**
|
|
146
|
+
* Record a save outcome and, when persistence has been failing, decide whether now is the
|
|
147
|
+
* moment to tell the user (GENC-1511).
|
|
148
|
+
*
|
|
149
|
+
* The gate is `resumable`, NOT "is a turn running". `busy` was the obvious choice and it is
|
|
150
|
+
* useless here: a bootstrap journey is ONE turn — measured at 2817 s containing 82 widget
|
|
151
|
+
* interactions — so waiting for a turn boundary would hold the warning for 47 minutes. What
|
|
152
|
+
* actually matters is whether a reload can be resumed from the stored snapshot, and that is
|
|
153
|
+
* exactly what `resumable` already answers for the freeze. Bootstrap keeps everything in its
|
|
154
|
+
* machine context, so it is always resumable and gets told immediately; UI Builder keeps
|
|
155
|
+
* in-flight work in an out-of-band VFS buffer, so it waits for `idle`/`done` — which is also
|
|
156
|
+
* the point at which its files have been flushed and a reload costs nothing.
|
|
157
|
+
*/
|
|
158
|
+
private recordSaveOutcome;
|
|
159
|
+
/**
|
|
160
|
+
* Surface a broken episode if it is now safe to advise a reload.
|
|
161
|
+
*
|
|
162
|
+
* Gated on `resumable` and NOTHING else. An earlier draft added a 90 s backstop so a flow that
|
|
163
|
+
* errored and stuck mid-state could not hold the warning forever — that was wrong, and the
|
|
164
|
+
* review caught it: the modal's only action is a reload, so firing it while the agent is
|
|
165
|
+
* non-resumable forces the user to destroy exactly the out-of-band, in-flight work the gate
|
|
166
|
+
* exists to protect. Being told late is bad; being told to do the damaging thing is worse.
|
|
167
|
+
* Surfacing a stuck flow earlier needs non-blocking warning UI, not this modal.
|
|
168
|
+
*/
|
|
169
|
+
private maybeReportBroken;
|
|
170
|
+
/**
|
|
171
|
+
* Non-resumable-workflow gate (GENC-1351 §5.9): consult the active agent (the flow-owner
|
|
172
|
+
* during a locked flow, like `serialize`). A thrown predicate fails safe to persisting; no
|
|
173
|
+
* live active agent (e.g. the post-restore, pre-reactivation save) leaves it resumable and
|
|
174
|
+
* persists normally.
|
|
175
|
+
*
|
|
176
|
+
* Extracted from `persistSession` so that method stays under the complexity cap, and because
|
|
177
|
+
* this answer now has two consumers: the freeze decision, and whether it is safe to advise the
|
|
178
|
+
* user to reload (GENC-1511).
|
|
179
|
+
*/
|
|
180
|
+
private resolveResumable;
|
|
105
181
|
/**
|
|
106
182
|
* Capture the current session to durable storage (GENC-1351 §5.1). Reads the
|
|
107
183
|
* full transcript from the driver and the restorable scalars from the store, and
|