@remnic/core 10.0.162 → 10.0.164

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 (170) hide show
  1. package/dist/access-admin-ops-surface.js +39 -39
  2. package/dist/access-cli.js +39 -39
  3. package/dist/access-extraction-force-flush-preempt.js +39 -39
  4. package/dist/access-extraction-force-flush.js +39 -39
  5. package/dist/access-http-briefing.js +39 -39
  6. package/dist/access-http-query.js +39 -39
  7. package/dist/access-http.js +39 -39
  8. package/dist/access-identity-continuity-surface.js +39 -39
  9. package/dist/access-lcm-surface.js +39 -39
  10. package/dist/access-mcp.js +39 -39
  11. package/dist/access-observe-write-surface.js +39 -39
  12. package/dist/access-operations-batch.js +39 -39
  13. package/dist/access-operations.js +39 -39
  14. package/dist/access-recall-concurrency.js +39 -39
  15. package/dist/access-recall-diagnostics.js +2 -2
  16. package/dist/access-recall-response.js +39 -39
  17. package/dist/access-recall-surface.js +39 -39
  18. package/dist/access-service.js +39 -39
  19. package/dist/active-recall.js +3 -3
  20. package/dist/briefing.js +3 -3
  21. package/dist/causal-consolidation.js +4 -4
  22. package/dist/{chunk-D2EJNBZS.js → chunk-22VXXA67.js} +2 -2
  23. package/dist/{chunk-23ODHEVS.js → chunk-3QLAOYBL.js} +2 -2
  24. package/dist/{chunk-HG4OCRKD.js → chunk-4HKK5HUI.js} +2 -2
  25. package/dist/{chunk-6POF4N2J.js → chunk-4LPTSB5V.js} +2 -2
  26. package/dist/{chunk-6HGN4OEA.js → chunk-5D4NBANY.js} +2 -2
  27. package/dist/{chunk-6HGN4OEA.js.map → chunk-5D4NBANY.js.map} +1 -1
  28. package/dist/{chunk-FDR5YW6B.js → chunk-5LTXYM7D.js} +2 -2
  29. package/dist/{chunk-ZZZT6OR2.js → chunk-6ARSFTLD.js} +2 -2
  30. package/dist/{chunk-SC7GUUGO.js → chunk-6S4DM53Y.js} +3 -3
  31. package/dist/{chunk-ZVK6TWGF.js → chunk-ARJ3KCX4.js} +2 -2
  32. package/dist/{chunk-LW5MFJBC.js → chunk-AU6AEUFD.js} +2 -2
  33. package/dist/{chunk-A6E54ILI.js → chunk-DBVSU3HE.js} +8 -8
  34. package/dist/{chunk-PZSVAVQW.js → chunk-E5RJPLNL.js} +2 -2
  35. package/dist/{chunk-S3QTZMSD.js → chunk-EI2M2CFJ.js} +2 -2
  36. package/dist/{chunk-6RW6I6X4.js → chunk-FSI45NUK.js} +2 -2
  37. package/dist/{chunk-IF5YAXBY.js → chunk-IHOKB3L3.js} +34 -34
  38. package/dist/{chunk-IF5YAXBY.js.map → chunk-IHOKB3L3.js.map} +1 -1
  39. package/dist/{chunk-MATBXHXU.js → chunk-JJEQRSYU.js} +2 -2
  40. package/dist/{chunk-SHFN2RW5.js → chunk-JVIWVJ2A.js} +2 -2
  41. package/dist/{chunk-Q2WMKMMX.js → chunk-KR6PEAM4.js} +7 -7
  42. package/dist/{chunk-R4HZOXUY.js → chunk-L6BLTV4D.js} +2 -2
  43. package/dist/{chunk-2S3M2GLC.js → chunk-M7Q7Z6V5.js} +34 -1
  44. package/dist/chunk-M7Q7Z6V5.js.map +1 -0
  45. package/dist/{chunk-T4V3GVX3.js → chunk-OAGTKS73.js} +2 -2
  46. package/dist/{chunk-FEHCP2ZN.js → chunk-PCUDFWX5.js} +2 -2
  47. package/dist/{chunk-DQATNC34.js → chunk-QBREZ4QL.js} +2 -2
  48. package/dist/{chunk-WE7WPSUA.js → chunk-RDO6AMDL.js} +2 -2
  49. package/dist/{chunk-UGTLRFN4.js → chunk-RH6XWXMA.js} +3 -3
  50. package/dist/{chunk-QRGJLMH7.js → chunk-SBU5GDOT.js} +3 -3
  51. package/dist/{chunk-YCOHRQWO.js → chunk-SOGOHLWN.js} +1 -1
  52. package/dist/chunk-SOGOHLWN.js.map +1 -0
  53. package/dist/{chunk-SHLEP3HN.js → chunk-SRN5M4LQ.js} +3 -3
  54. package/dist/{chunk-JAPUF4X7.js → chunk-TFNZXOXK.js} +2 -2
  55. package/dist/{chunk-6CXSNIEP.js → chunk-UGQEJWR3.js} +2 -2
  56. package/dist/{chunk-QUC4S2D2.js → chunk-V4ASAWRP.js} +10 -2
  57. package/dist/chunk-V4ASAWRP.js.map +1 -0
  58. package/dist/{chunk-VEPXXXTO.js → chunk-V6M6N3EE.js} +2 -2
  59. package/dist/{chunk-QQPXWVRX.js → chunk-VXMWTRQX.js} +2 -2
  60. package/dist/{chunk-SMAXKFKS.js → chunk-WAJL65KW.js} +3 -3
  61. package/dist/{chunk-SOO75MET.js → chunk-WRAK5LLB.js} +2 -2
  62. package/dist/{chunk-IVZNNRBF.js → chunk-XE4UYWW3.js} +2 -2
  63. package/dist/{chunk-JGIRGWS6.js → chunk-YMC4AYJK.js} +2 -2
  64. package/dist/{chunk-D67DA4DI.js → chunk-YWPCDR3I.js} +2 -2
  65. package/dist/{chunk-UVEHXFSC.js → chunk-Z3SXC3MP.js} +2 -2
  66. package/dist/{chunk-NFL4LC22.js → chunk-ZRLTQ2Y7.js} +2 -2
  67. package/dist/cli.js +39 -39
  68. package/dist/coding/export-okf-codegraph.js +2 -2
  69. package/dist/compounding/engine.js +4 -4
  70. package/dist/config.js +3 -3
  71. package/dist/connectors/codex-materialize-runner.js +3 -3
  72. package/dist/connectors/index.js +3 -3
  73. package/dist/convergence-refresh.js +5 -5
  74. package/dist/corpus-watermark.js +5 -5
  75. package/dist/entity-retrieval.js +3 -3
  76. package/dist/explicit-capture.js +39 -39
  77. package/dist/extraction-error-classification.d.ts +23 -1
  78. package/dist/extraction-error-classification.d.ts.map +1 -1
  79. package/dist/extraction-error-classification.js +7 -1
  80. package/dist/extraction.d.ts.map +1 -1
  81. package/dist/extraction.js +5 -5
  82. package/dist/harmonic-retrieval.js +3 -3
  83. package/dist/index.js +39 -39
  84. package/dist/location/index.js +4 -4
  85. package/dist/maintenance/memory-governance.js +3 -3
  86. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +3 -3
  87. package/dist/maintenance/rebuild-memory-projection-runner.js +5 -5
  88. package/dist/maintenance/rebuild-memory-projection.js +4 -4
  89. package/dist/namespaces/migrate.js +4 -4
  90. package/dist/namespaces/storage.js +3 -3
  91. package/dist/operator-doctor-corpus.js +6 -6
  92. package/dist/operator-toolkit.js +10 -10
  93. package/dist/orchestration/backlog-scheduler.js +40 -40
  94. package/dist/orchestration/buffer-drain-runner.js +40 -40
  95. package/dist/orchestration/maintenance.js +11 -11
  96. package/dist/orchestrator.js +39 -39
  97. package/dist/recall-explain-renderer.js +3 -3
  98. package/dist/recall-navigate-access.js +2 -2
  99. package/dist/recall-navigate-disclosure.js +2 -2
  100. package/dist/recall-navigate.js +2 -2
  101. package/dist/recall-navigation.js +39 -39
  102. package/dist/recall-xray-cli.js +4 -4
  103. package/dist/recall-xray-renderer.js +3 -3
  104. package/dist/recall-xray.js +2 -2
  105. package/dist/resume-bundles.js +4 -4
  106. package/dist/semantic-consolidation.js +4 -4
  107. package/dist/semantic-rule-promotion.js +3 -3
  108. package/dist/semantic-rule-verifier.js +3 -3
  109. package/dist/source-agent-qualifier.js +3 -3
  110. package/dist/standup/build.js +3 -3
  111. package/dist/storage.js +2 -2
  112. package/dist/transfer/export-okf.js +3 -3
  113. package/dist/types.d.ts +1 -1
  114. package/dist/types.d.ts.map +1 -1
  115. package/dist/types.js +1 -1
  116. package/dist/verified-recall.js +3 -3
  117. package/dist/who-knows-cli.js +4 -4
  118. package/dist/who-knows.js +3 -3
  119. package/package.json +2 -2
  120. package/src/access-observe-replay-durability.test.ts +23 -3
  121. package/src/buffer-admission-idempotency.test.ts +1 -1
  122. package/src/buffer-ingress-invariant.test.ts +1 -1
  123. package/src/config.test.ts +3 -2
  124. package/src/config.ts +1 -1
  125. package/src/extraction-direct-input-too-large.test.ts +141 -0
  126. package/src/extraction-error-classification.ts +61 -1
  127. package/src/extraction-queue-concurrency-default.test.ts +107 -0
  128. package/src/extraction.ts +7 -1
  129. package/src/orchestration/extraction-queue-coordinator.ts +1 -1
  130. package/src/orchestrator-extraction-queue.test.ts +3 -3
  131. package/src/orchestrator-flush.test.ts +12 -12
  132. package/src/types.ts +1 -1
  133. package/dist/chunk-2S3M2GLC.js.map +0 -1
  134. package/dist/chunk-QUC4S2D2.js.map +0 -1
  135. package/dist/chunk-YCOHRQWO.js.map +0 -1
  136. /package/dist/{chunk-D2EJNBZS.js.map → chunk-22VXXA67.js.map} +0 -0
  137. /package/dist/{chunk-23ODHEVS.js.map → chunk-3QLAOYBL.js.map} +0 -0
  138. /package/dist/{chunk-HG4OCRKD.js.map → chunk-4HKK5HUI.js.map} +0 -0
  139. /package/dist/{chunk-6POF4N2J.js.map → chunk-4LPTSB5V.js.map} +0 -0
  140. /package/dist/{chunk-FDR5YW6B.js.map → chunk-5LTXYM7D.js.map} +0 -0
  141. /package/dist/{chunk-ZZZT6OR2.js.map → chunk-6ARSFTLD.js.map} +0 -0
  142. /package/dist/{chunk-SC7GUUGO.js.map → chunk-6S4DM53Y.js.map} +0 -0
  143. /package/dist/{chunk-ZVK6TWGF.js.map → chunk-ARJ3KCX4.js.map} +0 -0
  144. /package/dist/{chunk-LW5MFJBC.js.map → chunk-AU6AEUFD.js.map} +0 -0
  145. /package/dist/{chunk-A6E54ILI.js.map → chunk-DBVSU3HE.js.map} +0 -0
  146. /package/dist/{chunk-PZSVAVQW.js.map → chunk-E5RJPLNL.js.map} +0 -0
  147. /package/dist/{chunk-S3QTZMSD.js.map → chunk-EI2M2CFJ.js.map} +0 -0
  148. /package/dist/{chunk-6RW6I6X4.js.map → chunk-FSI45NUK.js.map} +0 -0
  149. /package/dist/{chunk-MATBXHXU.js.map → chunk-JJEQRSYU.js.map} +0 -0
  150. /package/dist/{chunk-SHFN2RW5.js.map → chunk-JVIWVJ2A.js.map} +0 -0
  151. /package/dist/{chunk-Q2WMKMMX.js.map → chunk-KR6PEAM4.js.map} +0 -0
  152. /package/dist/{chunk-R4HZOXUY.js.map → chunk-L6BLTV4D.js.map} +0 -0
  153. /package/dist/{chunk-T4V3GVX3.js.map → chunk-OAGTKS73.js.map} +0 -0
  154. /package/dist/{chunk-FEHCP2ZN.js.map → chunk-PCUDFWX5.js.map} +0 -0
  155. /package/dist/{chunk-DQATNC34.js.map → chunk-QBREZ4QL.js.map} +0 -0
  156. /package/dist/{chunk-WE7WPSUA.js.map → chunk-RDO6AMDL.js.map} +0 -0
  157. /package/dist/{chunk-UGTLRFN4.js.map → chunk-RH6XWXMA.js.map} +0 -0
  158. /package/dist/{chunk-QRGJLMH7.js.map → chunk-SBU5GDOT.js.map} +0 -0
  159. /package/dist/{chunk-SHLEP3HN.js.map → chunk-SRN5M4LQ.js.map} +0 -0
  160. /package/dist/{chunk-JAPUF4X7.js.map → chunk-TFNZXOXK.js.map} +0 -0
  161. /package/dist/{chunk-6CXSNIEP.js.map → chunk-UGQEJWR3.js.map} +0 -0
  162. /package/dist/{chunk-VEPXXXTO.js.map → chunk-V6M6N3EE.js.map} +0 -0
  163. /package/dist/{chunk-QQPXWVRX.js.map → chunk-VXMWTRQX.js.map} +0 -0
  164. /package/dist/{chunk-SMAXKFKS.js.map → chunk-WAJL65KW.js.map} +0 -0
  165. /package/dist/{chunk-SOO75MET.js.map → chunk-WRAK5LLB.js.map} +0 -0
  166. /package/dist/{chunk-IVZNNRBF.js.map → chunk-XE4UYWW3.js.map} +0 -0
  167. /package/dist/{chunk-JGIRGWS6.js.map → chunk-YMC4AYJK.js.map} +0 -0
  168. /package/dist/{chunk-D67DA4DI.js.map → chunk-YWPCDR3I.js.map} +0 -0
  169. /package/dist/{chunk-UVEHXFSC.js.map → chunk-Z3SXC3MP.js.map} +0 -0
  170. /package/dist/{chunk-NFL4LC22.js.map → chunk-ZRLTQ2Y7.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runPostConsolidationMaterialize
3
- } from "./chunk-R4HZOXUY.js";
3
+ } from "./chunk-L6BLTV4D.js";
4
4
  import {
5
5
  discoverMemoryExtensions,
6
6
  renderExtensionsBlock,
@@ -220,4 +220,4 @@ export {
220
220
  buildExtensionsBlockForConsolidation,
221
221
  materializeAfterSemanticConsolidation
222
222
  };
223
- //# sourceMappingURL=chunk-MATBXHXU.js.map
223
+ //# sourceMappingURL=chunk-JJEQRSYU.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseFrontmatter
3
- } from "./chunk-JGIRGWS6.js";
3
+ } from "./chunk-YMC4AYJK.js";
4
4
  import {
5
5
  activityDigestPath,
6
6
  isValidActivityDate
@@ -199,4 +199,4 @@ export {
199
199
  buildStandup,
200
200
  standupHelp
201
201
  };
202
- //# sourceMappingURL=chunk-SHFN2RW5.js.map
202
+ //# sourceMappingURL=chunk-JVIWVJ2A.js.map
@@ -9,26 +9,26 @@ import {
9
9
  } from "./chunk-666A3MOW.js";
10
10
  import {
11
11
  rebuildMemoryLifecycleLedger
12
- } from "./chunk-T4V3GVX3.js";
12
+ } from "./chunk-OAGTKS73.js";
13
13
  import {
14
14
  PROJECTION_REBUILD_RUNNER_FLAG
15
- } from "./chunk-6RW6I6X4.js";
15
+ } from "./chunk-FSI45NUK.js";
16
16
  import {
17
17
  startLocationAutoSync
18
- } from "./chunk-SHLEP3HN.js";
18
+ } from "./chunk-SRN5M4LQ.js";
19
19
  import {
20
20
  CompoundingEngine,
21
21
  isIsoWeekId,
22
22
  msUntilNextIsoWeek,
23
23
  previousIsoWeekId
24
- } from "./chunk-QRGJLMH7.js";
24
+ } from "./chunk-SBU5GDOT.js";
25
25
  import {
26
26
  planNamespaceMaintenance,
27
27
  runNamespaceMaintenanceBatchPlan
28
- } from "./chunk-D67DA4DI.js";
28
+ } from "./chunk-YWPCDR3I.js";
29
29
  import {
30
30
  rebuildMemoryProjection
31
- } from "./chunk-SMAXKFKS.js";
31
+ } from "./chunk-WAJL65KW.js";
32
32
  import {
33
33
  LocalLlmClient
34
34
  } from "./chunk-YOR5QBEU.js";
@@ -2874,4 +2874,4 @@ export {
2874
2874
  ActivitySyncScheduler,
2875
2875
  MaintenanceScheduler
2876
2876
  };
2877
- //# sourceMappingURL=chunk-Q2WMKMMX.js.map
2877
+ //# sourceMappingURL=chunk-KR6PEAM4.js.map
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-ZCUTSMR2.js";
14
14
  import {
15
15
  StorageManager
16
- } from "./chunk-JGIRGWS6.js";
16
+ } from "./chunk-YMC4AYJK.js";
17
17
  import {
18
18
  excludeSupportPassportPrivateMemories
19
19
  } from "./chunk-TSUSHXBW.js";
@@ -134,4 +134,4 @@ export {
134
134
  runCodexMaterialize,
135
135
  runPostConsolidationMaterialize
136
136
  };
137
- //# sourceMappingURL=chunk-R4HZOXUY.js.map
137
+ //# sourceMappingURL=chunk-L6BLTV4D.js.map
@@ -21,6 +21,36 @@ function classifyExtractionThrownError(err) {
21
21
  return "provider_retryable";
22
22
  }
23
23
  }
24
+ var CONTEXT_LIMIT_MESSAGE = /maximum context|context length|context window|request entity/i;
25
+ var SIZE_LIMIT_PHRASE = /too large|too long|exceed/i;
26
+ var INPUT_SUBJECT_TERM = /\b(?:input|prompt|request|payload|body|messages?|content|context|size|length|tokens?)\b/i;
27
+ var REQUEST_TOO_LARGE_EXCLUDE = /\b(?:max_tokens|max_completion_tokens|temperature|top_p|quota|rate limit|spending|billing)\b/i;
28
+ function isRequestTooLargeError(err) {
29
+ try {
30
+ const status = httpStatusFromError(err);
31
+ if (status === 413) return true;
32
+ if (status !== 400 || !(err instanceof Error)) return false;
33
+ const message = err.message;
34
+ if (CONTEXT_LIMIT_MESSAGE.test(message)) return true;
35
+ if (REQUEST_TOO_LARGE_EXCLUDE.test(message)) return false;
36
+ return SIZE_LIMIT_PHRASE.test(message) && INPUT_SUBJECT_TERM.test(message);
37
+ } catch {
38
+ return false;
39
+ }
40
+ }
41
+ function directInputTooLargeResult() {
42
+ return {
43
+ facts: [],
44
+ profileUpdates: [],
45
+ entities: [],
46
+ questions: [],
47
+ extractionFailure: "direct_input_too_large",
48
+ extractionFailureClass: "provider_retryable"
49
+ };
50
+ }
51
+ function formatDirectInputTooLargeLog(chars) {
52
+ return `extraction: direct client refused a ${chars}-char request as too large; an atomic flush is never split, so any turns the gateway fallback does not extract stay buffered for \`remnic buffer drain\``;
53
+ }
24
54
  function classifyFallbackParseFailure(reason) {
25
55
  switch (reason) {
26
56
  case "no_models":
@@ -66,10 +96,13 @@ function localRejectionStatus(diag) {
66
96
 
67
97
  export {
68
98
  classifyExtractionThrownError,
99
+ isRequestTooLargeError,
100
+ directInputTooLargeResult,
101
+ formatDirectInputTooLargeLog,
69
102
  classifyFallbackParseFailure,
70
103
  formatExtractionParseFailureLog,
71
104
  LocalLlmRejectedError,
72
105
  classifyLocalLlmRejected,
73
106
  localRejectionStatus
74
107
  };
75
- //# sourceMappingURL=chunk-2S3M2GLC.js.map
108
+ //# sourceMappingURL=chunk-M7Q7Z6V5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/extraction-error-classification.ts"],"sourcesContent":["import type { ExtractionFailureClass, ExtractionResult } from \"./types.js\";\nimport { isTransientHttpError } from \"./connectors/live/transient-errors.js\";\n\n/**\n * Read a numeric HTTP status off a thrown error without re-implementing the\n * shared transient classifier. Uses `in`/typeof narrowing (no inline casts).\n */\nfunction httpStatusFromError(err: unknown): number | undefined {\n if (!err || typeof err !== \"object\") return undefined;\n if (\"status\" in err && typeof err.status === \"number\" && Number.isFinite(err.status)) return err.status;\n if (\"statusCode\" in err && typeof err.statusCode === \"number\" && Number.isFinite(err.statusCode)) {\n return err.statusCode;\n }\n return undefined;\n}\n\n/**\n * Map a thrown extraction error to a coarse failure class for the retry/breaker\n * layer. 401/403 → `auth_config` (misconfigured provider, open the breaker);\n * transient (429/5xx/network, per the shared `isTransientHttpError`) → back off;\n * anything else defaults to `provider_retryable` (fail-open toward retry, but\n * capped by the per-fingerprint attempt budget). Never throws.\n */\nexport function classifyExtractionThrownError(err: unknown): ExtractionFailureClass {\n try {\n const status = httpStatusFromError(err);\n if (status === 401 || status === 403) return \"auth_config\";\n if (isTransientHttpError(err)) return \"provider_retryable\";\n return \"provider_retryable\";\n } catch {\n return \"provider_retryable\";\n }\n}\n\nconst CONTEXT_LIMIT_MESSAGE = /maximum context|context length|context window|request entity/i;\nconst SIZE_LIMIT_PHRASE = /too large|too long|exceed/i;\nconst INPUT_SUBJECT_TERM =\n /\\b(?:input|prompt|request|payload|body|messages?|content|context|size|length|tokens?)\\b/i;\nconst REQUEST_TOO_LARGE_EXCLUDE =\n /\\b(?:max_tokens|max_completion_tokens|temperature|top_p|quota|rate limit|spending|billing)\\b/i;\n\n/**\n * True when a provider refused the request because the input is too big: HTTP\n * 413, or HTTP 400 whose message names a size or context limit (OpenAI-style\n * \"maximum context length\", \"total text input size exceeds 8 MB\"). \"too large\",\n * \"too long\" and \"exceed\" count only beside an input subject and never beside\n * an output, quota or sampling term (`max_tokens exceeds limit`,\n * `temperature is too large`, `quota exceeded` are different failures).\n * Resending the same atomic request can never succeed (#3531). Never throws.\n */\n\n/** An Error or SDK error object; the HTTP status is sniffed off it when present. */\nexport interface HttpThrowable {\n readonly status?: number;\n readonly message?: string;\n}\n\nexport function isRequestTooLargeError(err: HttpThrowable): boolean {\n try {\n const status = httpStatusFromError(err);\n if (status === 413) return true;\n if (status !== 400 || !(err instanceof Error)) return false;\n const message = err.message;\n if (CONTEXT_LIMIT_MESSAGE.test(message)) return true;\n if (REQUEST_TOO_LARGE_EXCLUDE.test(message)) return false;\n return SIZE_LIMIT_PHRASE.test(message) && INPUT_SUBJECT_TERM.test(message);\n } catch {\n return false;\n }\n}\n\n/**\n * Result when the provider refused the window as too large (#3531). Retryable\n * on purpose: the retained turns are never parked or dropped, and\n * `remnic buffer drain` can still extract them in budget-sized chunks.\n */\nexport function directInputTooLargeResult(): ExtractionResult {\n return {\n facts: [],\n profileUpdates: [],\n entities: [],\n questions: [],\n extractionFailure: \"direct_input_too_large\",\n extractionFailureClass: \"provider_retryable\",\n };\n}\n\nexport function formatDirectInputTooLargeLog(chars: number): string {\n return (\n `extraction: direct client refused a ${chars}-char request as too large; an atomic flush is never ` +\n \"split, so any turns the gateway fallback does not extract stay buffered for `remnic buffer drain`\"\n );\n}\n\n/**\n * Map the gateway fallback's discriminated parse-failure reason to a coarse\n * extraction failure class. \"no models configured\" is an auth/config problem;\n * an HTTP/transport failure backs off; an unparseable-but-present response is a\n * genuine empty-parse.\n */\nexport function classifyFallbackParseFailure(\n reason: \"no_models\" | \"empty\" | \"http_error\" | \"schema_rejection\" | \"timeout\",\n): ExtractionFailureClass {\n switch (reason) {\n case \"no_models\":\n return \"auth_config\";\n case \"http_error\":\n case \"timeout\":\n return \"provider_retryable\";\n case \"empty\":\n case \"schema_rejection\":\n return \"parse_empty\";\n }\n}\n\n/**\n * Operator-visible extraction parse-failure line. Keeps the historical\n * greppable prefix and appends the fields that used to live only at debug.\n */\nexport function formatExtractionParseFailureLog(input: {\n failureReason: string;\n attemptedModel?: string;\n httpStatus?: number;\n errorClass?: string;\n traceId: string;\n}): string {\n const modelUsed =\n typeof input.attemptedModel === \"string\" && input.attemptedModel.length > 0\n ? input.attemptedModel\n : \"unknown\";\n const errorClass =\n typeof input.errorClass === \"string\" && input.errorClass.length > 0\n ? input.errorClass\n : \"none\";\n const httpStatus =\n typeof input.httpStatus === \"number\" && Number.isFinite(input.httpStatus)\n ? String(input.httpStatus)\n : \"none\";\n return [\n \"extraction fallback returned no parsed output\",\n `failureReason=${input.failureReason}`,\n `modelUsed=${modelUsed}`,\n `errorClass=${errorClass}`,\n `httpStatus=${httpStatus}`,\n `traceId=${input.traceId}`,\n ].join(\" \");\n}\n\n/**\n * The local endpoint answered, and what it said rejects this input (unusable content, or a client error that is not\n * auth, timeout or rate limiting): the chunk's problem, not an outage. A `finish_reason=length` reply classifies as\n * `output_truncated` (#3521); every other rejection retries like an empty parse, and a trigger-drain\n * chunk that keeps drawing it is dropped after its recovery copy is saved.\n */\nexport class LocalLlmRejectedError extends Error {\n constructor(readonly httpStatus?: number, readonly finishReason?: string) {\n super(httpStatus === undefined ? \"local LLM answered with unusable content\" : `local LLM rejected the input (HTTP ${httpStatus})`);\n this.name = \"LocalLlmRejectedError\";\n }\n}\n\n/**\n * Map a local-endpoint rejection to its failure class: a reply cut off at the\n * output ceiling (`finish_reason=length`) is `output_truncated` — retries at\n * the same `maxOutputTokens` can never complete (#3521). Every other unusable\n * or refused reply stays `parse_empty`.\n */\nexport function classifyLocalLlmRejected(err: LocalLlmRejectedError): ExtractionFailureClass {\n return err.finishReason === \"length\" ? \"output_truncated\" : \"parse_empty\";\n}\n\n/** What the local client recorded about a failed call (`failureDiag`). */\nexport interface LocalFailureDiag {\n lastError?: unknown;\n /** The completion's `finish_reason` as the client received it (validated before it is logged). */\n finishReason?: string;\n}\n\n/** The HTTP status when the local endpoint answered and refuses this input (400, 413, 422); else undefined. A wrong model name or route (404, 405, 410), auth, timeout and rate limiting are the setup's problem, not the chunk's. */\nexport function localRejectionStatus(diag: LocalFailureDiag): number | undefined {\n const status = httpStatusFromError(diag.lastError);\n return status !== undefined && [400, 413, 422].includes(status) ? status : undefined;\n}\n"],"mappings":";;;;;AAOA,SAAS,oBAAoB,KAAkC;AAC7D,MAAI,CAAC,OAAO,OAAO,QAAQ,SAAU,QAAO;AAC5C,MAAI,YAAY,OAAO,OAAO,IAAI,WAAW,YAAY,OAAO,SAAS,IAAI,MAAM,EAAG,QAAO,IAAI;AACjG,MAAI,gBAAgB,OAAO,OAAO,IAAI,eAAe,YAAY,OAAO,SAAS,IAAI,UAAU,GAAG;AAChG,WAAO,IAAI;AAAA,EACb;AACA,SAAO;AACT;AASO,SAAS,8BAA8B,KAAsC;AAClF,MAAI;AACF,UAAM,SAAS,oBAAoB,GAAG;AACtC,QAAI,WAAW,OAAO,WAAW,IAAK,QAAO;AAC7C,QAAI,qBAAqB,GAAG,EAAG,QAAO;AACtC,WAAO;AAAA,EACT,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAEA,IAAM,wBAAwB;AAC9B,IAAM,oBAAoB;AAC1B,IAAM,qBACJ;AACF,IAAM,4BACJ;AAkBK,SAAS,uBAAuB,KAA6B;AAClE,MAAI;AACF,UAAM,SAAS,oBAAoB,GAAG;AACtC,QAAI,WAAW,IAAK,QAAO;AAC3B,QAAI,WAAW,OAAO,EAAE,eAAe,OAAQ,QAAO;AACtD,UAAM,UAAU,IAAI;AACpB,QAAI,sBAAsB,KAAK,OAAO,EAAG,QAAO;AAChD,QAAI,0BAA0B,KAAK,OAAO,EAAG,QAAO;AACpD,WAAO,kBAAkB,KAAK,OAAO,KAAK,mBAAmB,KAAK,OAAO;AAAA,EAC3E,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAOO,SAAS,4BAA8C;AAC5D,SAAO;AAAA,IACL,OAAO,CAAC;AAAA,IACR,gBAAgB,CAAC;AAAA,IACjB,UAAU,CAAC;AAAA,IACX,WAAW,CAAC;AAAA,IACZ,mBAAmB;AAAA,IACnB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAAS,6BAA6B,OAAuB;AAClE,SACE,uCAAuC,KAAK;AAGhD;AAQO,SAAS,6BACd,QACwB;AACxB,UAAQ,QAAQ;AAAA,IACd,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,EACX;AACF;AAMO,SAAS,gCAAgC,OAMrC;AACT,QAAM,YACJ,OAAO,MAAM,mBAAmB,YAAY,MAAM,eAAe,SAAS,IACtE,MAAM,iBACN;AACN,QAAM,aACJ,OAAO,MAAM,eAAe,YAAY,MAAM,WAAW,SAAS,IAC9D,MAAM,aACN;AACN,QAAM,aACJ,OAAO,MAAM,eAAe,YAAY,OAAO,SAAS,MAAM,UAAU,IACpE,OAAO,MAAM,UAAU,IACvB;AACN,SAAO;AAAA,IACL;AAAA,IACA,iBAAiB,MAAM,aAAa;AAAA,IACpC,aAAa,SAAS;AAAA,IACtB,cAAc,UAAU;AAAA,IACxB,cAAc,UAAU;AAAA,IACxB,WAAW,MAAM,OAAO;AAAA,EAC1B,EAAE,KAAK,GAAG;AACZ;AAQO,IAAM,wBAAN,cAAoC,MAAM;AAAA,EAC/C,YAAqB,YAA8B,cAAuB;AACxE,UAAM,eAAe,SAAY,6CAA6C,sCAAsC,UAAU,GAAG;AAD9G;AAA8B;AAEjD,SAAK,OAAO;AAAA,EACd;AAAA,EAHqB;AAAA,EAA8B;AAIrD;AAQO,SAAS,yBAAyB,KAAoD;AAC3F,SAAO,IAAI,iBAAiB,WAAW,qBAAqB;AAC9D;AAUO,SAAS,qBAAqB,MAA4C;AAC/E,QAAM,SAAS,oBAAoB,KAAK,SAAS;AACjD,SAAO,WAAW,UAAa,CAAC,KAAK,KAAK,GAAG,EAAE,SAAS,MAAM,IAAI,SAAS;AAC7E;","names":[]}
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-KJTKLXTH.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-JGIRGWS6.js";
6
+ } from "./chunk-YMC4AYJK.js";
7
7
  import {
8
8
  assertInjectedStorageRooted
9
9
  } from "./chunk-BNZAR6PO.js";
@@ -260,4 +260,4 @@ export {
260
260
  backupExistingLedger,
261
261
  rebuildMemoryLifecycleLedger
262
262
  };
263
- //# sourceMappingURL=chunk-T4V3GVX3.js.map
263
+ //# sourceMappingURL=chunk-OAGTKS73.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rebuildMemoryProjection
3
- } from "./chunk-SMAXKFKS.js";
3
+ } from "./chunk-WAJL65KW.js";
4
4
 
5
5
  // src/convergence-refresh.ts
6
6
  async function refreshConvergedNamespaces(namespaces, namespaceSearchRouter, getStorage, searchEnabled) {
@@ -32,4 +32,4 @@ async function refreshConvergedNamespaces(namespaces, namespaceSearchRouter, get
32
32
  export {
33
33
  refreshConvergedNamespaces
34
34
  };
35
- //# sourceMappingURL=chunk-FEHCP2ZN.js.map
35
+ //# sourceMappingURL=chunk-PCUDFWX5.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorageManager
3
- } from "./chunk-JGIRGWS6.js";
3
+ } from "./chunk-YMC4AYJK.js";
4
4
  import {
5
5
  countRecallTokenOverlap,
6
6
  normalizeRecallTokens
@@ -119,4 +119,4 @@ export {
119
119
  compareVerifiedSemanticRuleResults,
120
120
  searchVerifiedSemanticRules
121
121
  };
122
- //# sourceMappingURL=chunk-DQATNC34.js.map
122
+ //# sourceMappingURL=chunk-QBREZ4QL.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-TBBDFYXW.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-JGIRGWS6.js";
6
+ } from "./chunk-YMC4AYJK.js";
7
7
  import {
8
8
  requestEntityCanonicalIdReconcile
9
9
  } from "./chunk-KM4QO4LN.js";
@@ -769,4 +769,4 @@ export {
769
769
  listMemoryGovernanceRuns,
770
770
  readMemoryGovernanceRunArtifact
771
771
  };
772
- //# sourceMappingURL=chunk-WE7WPSUA.js.map
772
+ //# sourceMappingURL=chunk-RDO6AMDL.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  parseXrayFormat
3
- } from "./chunk-VEPXXXTO.js";
3
+ } from "./chunk-V6M6N3EE.js";
4
4
  import {
5
5
  RECALL_DISCLOSURE_LEVELS,
6
6
  isRecallDisclosure
7
- } from "./chunk-YCOHRQWO.js";
7
+ } from "./chunk-SOGOHLWN.js";
8
8
 
9
9
  // src/recall-xray-cli.ts
10
10
  function parseXrayDisclosureFlag(value) {
@@ -50,4 +50,4 @@ export {
50
50
  parseXrayBudgetFlag,
51
51
  parseXrayCliOptions
52
52
  };
53
- //# sourceMappingURL=chunk-UGTLRFN4.js.map
53
+ //# sourceMappingURL=chunk-RH6XWXMA.js.map
@@ -8,11 +8,11 @@ import {
8
8
  } from "./chunk-5CO5G4MN.js";
9
9
  import {
10
10
  resolveDefaultNamespaceRoot
11
- } from "./chunk-UVEHXFSC.js";
11
+ } from "./chunk-Z3SXC3MP.js";
12
12
  import {
13
13
  StorageManager,
14
14
  readRawMemoryDocument
15
- } from "./chunk-JGIRGWS6.js";
15
+ } from "./chunk-YMC4AYJK.js";
16
16
  import {
17
17
  parseContinuityImprovementLoops
18
18
  } from "./chunk-LDXUBPMO.js";
@@ -1869,4 +1869,4 @@ export {
1869
1869
  defaultTierMigrationCycleBudget,
1870
1870
  CompoundingEngine
1871
1871
  };
1872
- //# sourceMappingURL=chunk-QRGJLMH7.js.map
1872
+ //# sourceMappingURL=chunk-SBU5GDOT.js.map
@@ -19,4 +19,4 @@ export {
19
19
  confidenceTier,
20
20
  SPECULATIVE_TTL_DAYS
21
21
  };
22
- //# sourceMappingURL=chunk-YCOHRQWO.js.map
22
+ //# sourceMappingURL=chunk-SOGOHLWN.js.map