@remnic/core 9.7.10 → 9.7.12

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 (297) hide show
  1. package/dist/access-admin-ops-surface.d.ts +6 -6
  2. package/dist/access-admin-ops-surface.js +7 -7
  3. package/dist/access-boundary.d.ts +7 -7
  4. package/dist/access-boundary.js +8 -8
  5. package/dist/access-cli.js +31 -31
  6. package/dist/access-http.d.ts +8 -7
  7. package/dist/access-http.js +12 -12
  8. package/dist/access-identity-continuity-surface.d.ts +5 -5
  9. package/dist/access-identity-continuity-surface.js +7 -7
  10. package/dist/access-lcm-surface.d.ts +6 -6
  11. package/dist/access-lcm-surface.js +7 -7
  12. package/dist/access-mcp.d.ts +6 -6
  13. package/dist/access-mcp.js +11 -11
  14. package/dist/access-observe-write-surface.d.ts +6 -6
  15. package/dist/access-observe-write-surface.js +7 -7
  16. package/dist/access-operations-batch.js +9 -9
  17. package/dist/access-operations.d.ts +10 -10
  18. package/dist/access-operations.js +10 -10
  19. package/dist/access-recall-surface.d.ts +6 -6
  20. package/dist/access-recall-surface.js +7 -7
  21. package/dist/access-schema.d.ts +64 -64
  22. package/dist/{access-service-DSuzikHQ.d.ts → access-service-tHd3eQpd.d.ts} +4 -4
  23. package/dist/access-service.d.ts +6 -6
  24. package/dist/access-service.js +7 -7
  25. package/dist/access-surface-catalog.d.ts +6 -6
  26. package/dist/access-surface-catalog.js +2 -0
  27. package/dist/access-surface-catalog.js.map +1 -1
  28. package/dist/action-confidence.d.ts +1 -1
  29. package/dist/active-memory-bridge.d.ts +1 -1
  30. package/dist/active-recall.d.ts +1 -1
  31. package/dist/active-recall.js +1 -1
  32. package/dist/behavior-learner.d.ts +1 -1
  33. package/dist/behavior-signals.d.ts +1 -1
  34. package/dist/bootstrap.d.ts +5 -5
  35. package/dist/briefing.d.ts +2 -2
  36. package/dist/briefing.js +3 -3
  37. package/dist/buffer-surprise-report.d.ts +1 -1
  38. package/dist/buffer.d.ts +2 -2
  39. package/dist/bulk-import/index.d.ts +3 -3
  40. package/dist/calibration.d.ts +1 -1
  41. package/dist/capabilities.d.ts +1 -1
  42. package/dist/{catalog-BNwjACa5.d.ts → catalog-DEMiw6HZ.d.ts} +48 -1
  43. package/dist/causal-behavior.d.ts +1 -1
  44. package/dist/causal-consolidation.d.ts +1 -1
  45. package/dist/causal-consolidation.js +4 -4
  46. package/dist/causal-trajectory-graph.d.ts +1 -1
  47. package/dist/{chunk-U4KHQTJ6.js → chunk-2AL7N3BH.js} +4 -2
  48. package/dist/{chunk-U4KHQTJ6.js.map → chunk-2AL7N3BH.js.map} +1 -1
  49. package/dist/{chunk-L4H6MQ7I.js → chunk-2RSL6YRA.js} +2 -2
  50. package/dist/{chunk-7EX4YOKH.js → chunk-2ZPQUTMW.js} +4 -4
  51. package/dist/{chunk-673NPXE3.js → chunk-3SIC3E65.js} +2 -2
  52. package/dist/{chunk-OVMS3DCB.js → chunk-675YU5IK.js} +2 -2
  53. package/dist/{chunk-7LMEY5KZ.js → chunk-6N7R7TR2.js} +34 -1
  54. package/dist/chunk-6N7R7TR2.js.map +1 -0
  55. package/dist/{chunk-7CKS4AXY.js → chunk-AOWPZ7TM.js} +17 -17
  56. package/dist/{chunk-TGBJ2OMK.js → chunk-BQTSGK5Y.js} +2 -2
  57. package/dist/{chunk-UZRIKUFS.js → chunk-CE3GMHT4.js} +4 -2
  58. package/dist/chunk-CE3GMHT4.js.map +1 -0
  59. package/dist/{chunk-YXOAQAH2.js → chunk-CLFY35ED.js} +3 -3
  60. package/dist/{chunk-HQ7QZJM5.js → chunk-D4TLWDYR.js} +2 -2
  61. package/dist/{chunk-LQKITFGB.js → chunk-FUUF7FMX.js} +2 -2
  62. package/dist/{chunk-3ZVFLMFQ.js → chunk-G5PVJJRA.js} +1 -1
  63. package/dist/chunk-G5PVJJRA.js.map +1 -0
  64. package/dist/{chunk-MXRMNKSY.js → chunk-I3GKTDM2.js} +3 -3
  65. package/dist/{chunk-EQF5763Z.js → chunk-IQULRIZM.js} +2 -2
  66. package/dist/{chunk-DJCKXI4M.js → chunk-NVXQTRBL.js} +2 -2
  67. package/dist/{chunk-VDLMAJXS.js → chunk-OCY3CRPG.js} +3 -3
  68. package/dist/{chunk-YLTG6BO4.js → chunk-OIFZII6J.js} +2 -2
  69. package/dist/{chunk-XF4KOVDK.js → chunk-PA6DMYEK.js} +6 -6
  70. package/dist/{chunk-3OQ4IZJN.js → chunk-QPZCAVDC.js} +7 -7
  71. package/dist/{chunk-DLWYAN6A.js → chunk-T6U7HDIY.js} +2 -2
  72. package/dist/chunk-TITSEN2M.js +1794 -0
  73. package/dist/chunk-TITSEN2M.js.map +1 -0
  74. package/dist/{chunk-JZM5QUTE.js → chunk-TMGK6YE7.js} +171 -9
  75. package/dist/chunk-TMGK6YE7.js.map +1 -0
  76. package/dist/{chunk-KXLRMM35.js → chunk-TRH533CA.js} +30 -7
  77. package/dist/chunk-TRH533CA.js.map +1 -0
  78. package/dist/{chunk-UTDA43TB.js → chunk-TWGGNUWJ.js} +2 -2
  79. package/dist/{chunk-SBFDL2EQ.js → chunk-UTZW3X2R.js} +2 -2
  80. package/dist/{chunk-SECMZACR.js → chunk-XUQUBZ7O.js} +2 -2
  81. package/dist/{chunk-N3LWQJ6Y.js → chunk-YI7XUXLX.js} +309 -16
  82. package/dist/chunk-YI7XUXLX.js.map +1 -0
  83. package/dist/{chunk-QVALQE4P.js → chunk-ZASJ53ML.js} +128 -10
  84. package/dist/chunk-ZASJ53ML.js.map +1 -0
  85. package/dist/{chunk-WUDBMLC6.js → chunk-ZC3HG22I.js} +2 -2
  86. package/dist/{chunk-VCEH5UYS.js → chunk-ZRXSHGXT.js} +2 -2
  87. package/dist/{cli-DACyuK8-.d.ts → cli-D8Tsa4Sh.d.ts} +5 -5
  88. package/dist/cli.d.ts +8 -8
  89. package/dist/cli.js +25 -25
  90. package/dist/compounding/engine.d.ts +2 -2
  91. package/dist/compounding/engine.js +3 -3
  92. package/dist/compounding/preference-consolidator.d.ts +1 -1
  93. package/dist/compression-optimizer.d.ts +1 -1
  94. package/dist/config.d.ts +1 -1
  95. package/dist/config.js +1 -1
  96. package/dist/connectors/codex-materialize-runner.d.ts +1 -1
  97. package/dist/connectors/codex-materialize-runner.js +3 -3
  98. package/dist/connectors/codex-materialize.d.ts +1 -1
  99. package/dist/connectors/index.d.ts +1 -1
  100. package/dist/connectors/index.js +3 -3
  101. package/dist/consolidation-provenance-check.d.ts +2 -2
  102. package/dist/consolidation-undo.d.ts +2 -2
  103. package/dist/contradiction/index.d.ts +2 -2
  104. package/dist/conversation-index/backend.d.ts +1 -1
  105. package/dist/conversation-index/chunker.d.ts +1 -1
  106. package/dist/conversation-index/faiss-adapter.d.ts +1 -1
  107. package/dist/conversation-index/indexer.d.ts +1 -1
  108. package/dist/conversation-index/search.d.ts +1 -1
  109. package/dist/day-summary.d.ts +1 -1
  110. package/dist/delinearize.d.ts +1 -1
  111. package/dist/direct-answer-wiring.d.ts +1 -1
  112. package/dist/direct-answer.d.ts +1 -1
  113. package/dist/embedding-fallback.d.ts +1 -1
  114. package/dist/enrichment/index.d.ts +1 -1
  115. package/dist/entity-retrieval.d.ts +2 -2
  116. package/dist/entity-retrieval.js +3 -3
  117. package/dist/entity-schema.d.ts +1 -1
  118. package/dist/explicit-capture.d.ts +5 -5
  119. package/dist/extraction-faithfulness.d.ts +1 -1
  120. package/dist/extraction-judge-telemetry.d.ts +1 -1
  121. package/dist/extraction-judge-training.d.ts +1 -1
  122. package/dist/extraction-judge.d.ts +1 -1
  123. package/dist/extraction.d.ts +1 -1
  124. package/dist/fallback-llm.d.ts +1 -1
  125. package/dist/graph-dashboard-diff.d.ts +1 -1
  126. package/dist/graph-dashboard-key.d.ts +1 -1
  127. package/dist/graph-dashboard-parser.d.ts +1 -1
  128. package/dist/graph-edge-reinforcement.d.ts +1 -1
  129. package/dist/graph-snapshot.d.ts +1 -1
  130. package/dist/graph.d.ts +1 -1
  131. package/dist/identity-continuity.d.ts +1 -1
  132. package/dist/importance.d.ts +1 -1
  133. package/dist/importers/index.d.ts +1 -1
  134. package/dist/in-flight-reads.d.ts +1 -1
  135. package/dist/index.d.ts +4002 -16
  136. package/dist/index.js +78 -31
  137. package/dist/intent.d.ts +1 -1
  138. package/dist/lcm/engine.d.ts +1 -1
  139. package/dist/lcm/index.d.ts +1 -1
  140. package/dist/lcm/tools.d.ts +1 -1
  141. package/dist/lifecycle.d.ts +1 -1
  142. package/dist/live-connectors-runner.d.ts +1 -1
  143. package/dist/local-llm.d.ts +1 -1
  144. package/dist/local-model-endpoint.d.ts +1 -1
  145. package/dist/maintenance/memory-governance.d.ts +1 -1
  146. package/dist/maintenance/memory-governance.js +3 -3
  147. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +3 -3
  148. package/dist/maintenance/rebuild-memory-projection.js +4 -4
  149. package/dist/mcp-memory-inspector-app.d.ts +6 -6
  150. package/dist/memory-action-policy.d.ts +1 -1
  151. package/dist/memory-cache.d.ts +1 -1
  152. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  153. package/dist/memory-projection-store.d.ts +1 -1
  154. package/dist/memory-provenance.d.ts +1 -1
  155. package/dist/memory-worth-outcomes.d.ts +2 -2
  156. package/dist/models-json.d.ts +1 -1
  157. package/dist/namespaces/migrate.d.ts +3 -3
  158. package/dist/namespaces/migrate.js +4 -4
  159. package/dist/namespaces/principal.d.ts +1 -1
  160. package/dist/namespaces/search.d.ts +1 -1
  161. package/dist/namespaces/storage.d.ts +3 -3
  162. package/dist/namespaces/storage.js +3 -3
  163. package/dist/native-knowledge.d.ts +1 -1
  164. package/dist/operator-toolkit.d.ts +2 -2
  165. package/dist/operator-toolkit.js +8 -8
  166. package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
  167. package/dist/orchestration/maintenance.d.ts +2 -2
  168. package/dist/orchestration/maintenance.js +5 -5
  169. package/dist/{orchestrator-D83AvrPf.d.ts → orchestrator-B_WXBmuE.d.ts} +4 -4
  170. package/dist/orchestrator.d.ts +5 -5
  171. package/dist/orchestrator.js +31 -31
  172. package/dist/patterns-cli.d.ts +1 -1
  173. package/dist/{pipeline-BSqGpYl1.d.ts → pipeline-Dvtvt141.d.ts} +1 -1
  174. package/dist/policy-runtime.d.ts +1 -1
  175. package/dist/provenance.d.ts +1 -1
  176. package/dist/{qmd-CutnpRVe.d.ts → qmd-DwBLh_hl.d.ts} +1 -1
  177. package/dist/qmd-preflight.d.ts +2 -2
  178. package/dist/qmd-recall-cache.d.ts +1 -1
  179. package/dist/qmd.d.ts +2 -2
  180. package/dist/recall-disclosure-escalation.d.ts +1 -1
  181. package/dist/recall-explain-renderer.d.ts +1 -1
  182. package/dist/recall-explain-renderer.js +3 -3
  183. package/dist/recall-planner-llm.d.ts +1 -1
  184. package/dist/recall-state.d.ts +1 -1
  185. package/dist/recall-tag-filter.d.ts +1 -1
  186. package/dist/recall-timings.d.ts +1 -1
  187. package/dist/recall-xray-cli.d.ts +1 -1
  188. package/dist/recall-xray-cli.js +4 -4
  189. package/dist/recall-xray-renderer.d.ts +1 -1
  190. package/dist/recall-xray-renderer.js +3 -3
  191. package/dist/recall-xray.d.ts +1 -1
  192. package/dist/recall-xray.js +2 -2
  193. package/dist/replay/normalizers/chatgpt.d.ts +1 -1
  194. package/dist/replay/normalizers/claude.d.ts +1 -1
  195. package/dist/replay/normalizers/openclaw.d.ts +1 -1
  196. package/dist/replay/normalizers/shared.d.ts +1 -1
  197. package/dist/replay/runner.d.ts +1 -1
  198. package/dist/replay/types.d.ts +1 -1
  199. package/dist/resolve-auth-token.d.ts +1 -1
  200. package/dist/resume-bundles.js +2 -2
  201. package/dist/retrieval-agents.d.ts +2 -2
  202. package/dist/retrieval-tiers.d.ts +1 -1
  203. package/dist/routing/engine.d.ts +1 -1
  204. package/dist/routing/store.d.ts +1 -1
  205. package/dist/schemas.d.ts +52 -52
  206. package/dist/search/embed-helper.d.ts +1 -1
  207. package/dist/search/factory.d.ts +1 -1
  208. package/dist/search/index.d.ts +1 -1
  209. package/dist/search/lancedb-backend.d.ts +1 -1
  210. package/dist/search/meilisearch-backend.d.ts +1 -1
  211. package/dist/search/noop-backend.d.ts +1 -1
  212. package/dist/search/orama-backend.d.ts +1 -1
  213. package/dist/search/port.d.ts +1 -1
  214. package/dist/search/remote-backend.d.ts +1 -1
  215. package/dist/{semantic-consolidation-btIVRC4l.d.ts → semantic-consolidation-Dia_6FOn.d.ts} +1 -1
  216. package/dist/semantic-consolidation.d.ts +2 -2
  217. package/dist/semantic-consolidation.js +4 -4
  218. package/dist/semantic-rule-promotion.js +3 -3
  219. package/dist/semantic-rule-verifier.d.ts +1 -1
  220. package/dist/semantic-rule-verifier.js +3 -3
  221. package/dist/session-observer-bands.d.ts +1 -1
  222. package/dist/session-observer-state.d.ts +1 -1
  223. package/dist/shared-context/manager.d.ts +9 -9
  224. package/dist/signal.d.ts +1 -1
  225. package/dist/{storage-BVv_Mqa0.d.ts → storage-RshM7i8-.d.ts} +18 -1
  226. package/dist/storage.d.ts +2 -2
  227. package/dist/storage.js +2 -2
  228. package/dist/summarizer.d.ts +1 -1
  229. package/dist/summary-snapshot.d.ts +1 -1
  230. package/dist/temporal-supersession.d.ts +2 -2
  231. package/dist/temporal-timeline-recall.d.ts +1 -1
  232. package/dist/temporal-validity.d.ts +1 -1
  233. package/dist/threading.d.ts +1 -1
  234. package/dist/tier-migration.d.ts +2 -2
  235. package/dist/tier-routing.d.ts +1 -1
  236. package/dist/topics.d.ts +1 -1
  237. package/dist/transcript.d.ts +1 -1
  238. package/dist/transfer/types.d.ts +66 -66
  239. package/dist/trust-score-stage.d.ts +1 -1
  240. package/dist/trust-score.d.ts +1 -1
  241. package/dist/{types-Cmkz7csa.d.ts → types-CHSXOq7s.d.ts} +34 -0
  242. package/dist/types.d.ts +1 -1
  243. package/dist/types.js +1 -1
  244. package/dist/utility-runtime.d.ts +1 -1
  245. package/dist/verified-recall.js +3 -3
  246. package/package.json +2 -2
  247. package/src/access-boundary.ts +2 -0
  248. package/src/access-http.ts +147 -6
  249. package/src/access-mcp-cancellation.test.ts +2 -2
  250. package/src/access-operations.ts +2 -0
  251. package/src/access-surface-catalog.ts +2 -0
  252. package/src/config.test.ts +44 -0
  253. package/src/config.ts +43 -0
  254. package/src/index.ts +53 -0
  255. package/src/namespaces/catalog.test.ts +258 -0
  256. package/src/namespaces/catalog.ts +235 -10
  257. package/src/namespaces/storage.ts +9 -0
  258. package/src/orchestrator.ts +3 -0
  259. package/src/relay/mission-access.test.ts +379 -0
  260. package/src/relay/mission-access.ts +125 -0
  261. package/src/relay/mission-fixture.ts +301 -0
  262. package/src/relay/mission.test.ts +964 -0
  263. package/src/relay/mission.ts +1725 -0
  264. package/src/storage-catalog-touch-gating.test.ts +70 -0
  265. package/src/storage.ts +31 -5
  266. package/src/types.ts +34 -0
  267. package/dist/chunk-3ZVFLMFQ.js.map +0 -1
  268. package/dist/chunk-7LMEY5KZ.js.map +0 -1
  269. package/dist/chunk-FNJX2O6G.js +0 -467
  270. package/dist/chunk-FNJX2O6G.js.map +0 -1
  271. package/dist/chunk-JZM5QUTE.js.map +0 -1
  272. package/dist/chunk-KXLRMM35.js.map +0 -1
  273. package/dist/chunk-N3LWQJ6Y.js.map +0 -1
  274. package/dist/chunk-QVALQE4P.js.map +0 -1
  275. package/dist/chunk-UZRIKUFS.js.map +0 -1
  276. /package/dist/{chunk-L4H6MQ7I.js.map → chunk-2RSL6YRA.js.map} +0 -0
  277. /package/dist/{chunk-7EX4YOKH.js.map → chunk-2ZPQUTMW.js.map} +0 -0
  278. /package/dist/{chunk-673NPXE3.js.map → chunk-3SIC3E65.js.map} +0 -0
  279. /package/dist/{chunk-OVMS3DCB.js.map → chunk-675YU5IK.js.map} +0 -0
  280. /package/dist/{chunk-7CKS4AXY.js.map → chunk-AOWPZ7TM.js.map} +0 -0
  281. /package/dist/{chunk-TGBJ2OMK.js.map → chunk-BQTSGK5Y.js.map} +0 -0
  282. /package/dist/{chunk-YXOAQAH2.js.map → chunk-CLFY35ED.js.map} +0 -0
  283. /package/dist/{chunk-HQ7QZJM5.js.map → chunk-D4TLWDYR.js.map} +0 -0
  284. /package/dist/{chunk-LQKITFGB.js.map → chunk-FUUF7FMX.js.map} +0 -0
  285. /package/dist/{chunk-MXRMNKSY.js.map → chunk-I3GKTDM2.js.map} +0 -0
  286. /package/dist/{chunk-EQF5763Z.js.map → chunk-IQULRIZM.js.map} +0 -0
  287. /package/dist/{chunk-DJCKXI4M.js.map → chunk-NVXQTRBL.js.map} +0 -0
  288. /package/dist/{chunk-VDLMAJXS.js.map → chunk-OCY3CRPG.js.map} +0 -0
  289. /package/dist/{chunk-YLTG6BO4.js.map → chunk-OIFZII6J.js.map} +0 -0
  290. /package/dist/{chunk-XF4KOVDK.js.map → chunk-PA6DMYEK.js.map} +0 -0
  291. /package/dist/{chunk-3OQ4IZJN.js.map → chunk-QPZCAVDC.js.map} +0 -0
  292. /package/dist/{chunk-DLWYAN6A.js.map → chunk-T6U7HDIY.js.map} +0 -0
  293. /package/dist/{chunk-UTDA43TB.js.map → chunk-TWGGNUWJ.js.map} +0 -0
  294. /package/dist/{chunk-SBFDL2EQ.js.map → chunk-UTZW3X2R.js.map} +0 -0
  295. /package/dist/{chunk-SECMZACR.js.map → chunk-XUQUBZ7O.js.map} +0 -0
  296. /package/dist/{chunk-WUDBMLC6.js.map → chunk-ZC3HG22I.js.map} +0 -0
  297. /package/dist/{chunk-VCEH5UYS.js.map → chunk-ZRXSHGXT.js.map} +0 -0
@@ -0,0 +1,301 @@
1
+ import type { RelayMissionEventInput } from "./mission.js";
2
+
3
+ export const RELAY_DEMO_MISSION_ID = "checkout-token-recovery";
4
+ export const RELAY_DEMO_NAMESPACE = "relay-build-week";
5
+
6
+ const sourceEvidence = {
7
+ kind: "source" as const,
8
+ id: "source-checkout-contract",
9
+ label: "Checkout token contract",
10
+ locator: "fixture://checkout-service/src/token-policy.ts",
11
+ capture: "fixture" as const,
12
+ };
13
+
14
+ const testEvidence = {
15
+ kind: "test" as const,
16
+ id: "test-checkout-contract",
17
+ label: "Checkout integration contract",
18
+ locator: "fixture://checkout-service/test/token-policy.test.ts",
19
+ capture: "fixture" as const,
20
+ };
21
+
22
+ const approvalEvidence = {
23
+ kind: "approval" as const,
24
+ id: "approval-build-week-operator",
25
+ label: "Human approval receipt",
26
+ locator: "fixture://relay/approvals/correction-token-refresh.json",
27
+ capture: "fixture" as const,
28
+ };
29
+
30
+ const correctionEvidence = {
31
+ kind: "correction" as const,
32
+ id: "correction-token-refresh",
33
+ label: "Applied Remnic correction",
34
+ locator: "fixture://remnic/corrections/correction-token-refresh.json",
35
+ capture: "fixture" as const,
36
+ };
37
+
38
+ function at(second: number): string {
39
+ return `2026-07-17T18:00:${String(second).padStart(2, "0")}.000Z`;
40
+ }
41
+
42
+ /**
43
+ * Deterministic evidence stream shared by contract tests, replay, and the
44
+ * judge-facing fixture mode. Every event has a stable idempotency key and
45
+ * source reference so the resulting receipt is complete without fabricated
46
+ * runtime evidence.
47
+ */
48
+ export function createRelayMissionFixture(): RelayMissionEventInput[] {
49
+ return [
50
+ {
51
+ occurredAt: at(0),
52
+ idempotencyKey: "fixture-001",
53
+ payload: {
54
+ kind: "mission_started",
55
+ title: "The checkout token split",
56
+ objective: "Resolve a conflicting token refresh policy and prove a cold agent acts on it.",
57
+ runMode: "fixture",
58
+ evidence: [sourceEvidence],
59
+ },
60
+ },
61
+ {
62
+ occurredAt: at(2),
63
+ idempotencyKey: "fixture-002",
64
+ payload: {
65
+ kind: "agent_status",
66
+ agentId: "agent-atlas",
67
+ sessionId: "session-atlas",
68
+ label: "Atlas",
69
+ role: "Checkout implementation",
70
+ status: "working",
71
+ evidence: [sourceEvidence],
72
+ },
73
+ },
74
+ {
75
+ occurredAt: at(3),
76
+ idempotencyKey: "fixture-003",
77
+ payload: {
78
+ kind: "agent_status",
79
+ agentId: "agent-nova",
80
+ sessionId: "session-nova",
81
+ label: "Nova",
82
+ role: "Integration verification",
83
+ status: "working",
84
+ evidence: [testEvidence],
85
+ },
86
+ },
87
+ {
88
+ occurredAt: at(6),
89
+ idempotencyKey: "fixture-004",
90
+ payload: {
91
+ kind: "agent_output",
92
+ agentId: "agent-atlas",
93
+ sessionId: "session-atlas",
94
+ outputId: "output-atlas-policy",
95
+ summary: "Implemented a new token for every checkout retry.",
96
+ evidence: [
97
+ {
98
+ kind: "agent_output",
99
+ id: "output-atlas-policy",
100
+ label: "Atlas one-shot output",
101
+ locator: "fixture://codex/atlas/final-output.txt",
102
+ capture: "fixture",
103
+ },
104
+ ],
105
+ },
106
+ },
107
+ {
108
+ occurredAt: at(7),
109
+ idempotencyKey: "fixture-005",
110
+ payload: {
111
+ kind: "belief_observed",
112
+ agentId: "agent-atlas",
113
+ sessionId: "session-atlas",
114
+ beliefId: "belief-new-token-every-request",
115
+ decisionId: "decision-new-token-every-request",
116
+ statement: "Mint a new checkout token for every request and retry.",
117
+ confidence: 0.91,
118
+ evidence: [
119
+ {
120
+ kind: "memory",
121
+ id: "memory-stale-token-policy",
122
+ label: "Stale project decision",
123
+ locator: "fixture://remnic/memories/memory-stale-token-policy.md",
124
+ capture: "fixture",
125
+ },
126
+ ],
127
+ },
128
+ },
129
+ {
130
+ occurredAt: at(9),
131
+ idempotencyKey: "fixture-006",
132
+ payload: {
133
+ kind: "agent_output",
134
+ agentId: "agent-nova",
135
+ sessionId: "session-nova",
136
+ outputId: "output-nova-policy",
137
+ summary: "The contract requires one token per checkout session, refreshed only after expiry.",
138
+ evidence: [
139
+ {
140
+ kind: "agent_output",
141
+ id: "output-nova-policy",
142
+ label: "Nova one-shot output",
143
+ locator: "fixture://codex/nova/final-output.txt",
144
+ capture: "fixture",
145
+ },
146
+ sourceEvidence,
147
+ ],
148
+ },
149
+ },
150
+ {
151
+ occurredAt: at(10),
152
+ idempotencyKey: "fixture-007",
153
+ payload: {
154
+ kind: "belief_observed",
155
+ agentId: "agent-nova",
156
+ sessionId: "session-nova",
157
+ beliefId: "belief-refresh-after-expiry",
158
+ decisionId: "decision-refresh-after-expiry",
159
+ statement: "Reuse the checkout-session token and refresh it only after expiry.",
160
+ confidence: 0.98,
161
+ evidence: [sourceEvidence],
162
+ },
163
+ },
164
+ {
165
+ occurredAt: at(12),
166
+ idempotencyKey: "fixture-008",
167
+ payload: {
168
+ kind: "conflict_detected",
169
+ conflictId: "conflict-token-lifecycle",
170
+ decisionIds: ["decision-refresh-after-expiry", "decision-new-token-every-request"],
171
+ agentIds: ["agent-nova", "agent-atlas"],
172
+ summary: "The agents disagree on whether retries reuse or rotate the checkout token.",
173
+ evidence: [sourceEvidence, testEvidence],
174
+ },
175
+ },
176
+ {
177
+ occurredAt: at(14),
178
+ idempotencyKey: "fixture-009",
179
+ payload: {
180
+ kind: "test_result",
181
+ testId: "test-before-correction",
182
+ decisionId: "decision-new-token-every-request",
183
+ command: "npm test -- token-policy.test.ts",
184
+ status: "failed",
185
+ summary: "Retry minted a second token instead of reusing the session token.",
186
+ durationMs: 418,
187
+ evidence: [testEvidence],
188
+ },
189
+ },
190
+ {
191
+ occurredAt: at(18),
192
+ idempotencyKey: "fixture-010",
193
+ payload: {
194
+ kind: "correction_proposed",
195
+ correctionId: "correction-token-refresh",
196
+ conflictId: "conflict-token-lifecycle",
197
+ proposedDecisionId: "decision-refresh-after-expiry",
198
+ supersedesDecisionIds: ["decision-new-token-every-request"],
199
+ statement: "Reuse the checkout-session token and refresh it only after expiry.",
200
+ rationale: "The implementation contract and failing integration test agree on session reuse.",
201
+ proposedBy: "agent-resolver",
202
+ evidence: [sourceEvidence, testEvidence],
203
+ },
204
+ },
205
+ {
206
+ occurredAt: at(21),
207
+ idempotencyKey: "fixture-011",
208
+ payload: {
209
+ kind: "correction_approved",
210
+ correctionId: "correction-token-refresh",
211
+ approvedBy: {
212
+ kind: "human",
213
+ id: "operator-build-week",
214
+ label: "Build Week operator",
215
+ },
216
+ note: "Approve the source-grounded policy and retire the stale decision.",
217
+ evidence: [approvalEvidence],
218
+ },
219
+ },
220
+ {
221
+ occurredAt: at(23),
222
+ idempotencyKey: "fixture-012",
223
+ payload: {
224
+ kind: "decision_superseded",
225
+ decisionId: "decision-new-token-every-request",
226
+ replacementDecisionId: "decision-refresh-after-expiry",
227
+ correctionId: "correction-token-refresh",
228
+ evidence: [correctionEvidence],
229
+ },
230
+ },
231
+ {
232
+ occurredAt: at(27),
233
+ idempotencyKey: "fixture-013",
234
+ payload: {
235
+ kind: "recall_observed",
236
+ agentId: "agent-orbit",
237
+ sessionId: "session-orbit-cold",
238
+ recallReceiptId: "recall-orbit-cold",
239
+ decisionId: "decision-refresh-after-expiry",
240
+ query: "What token lifecycle must checkout retries follow?",
241
+ capturedAtAction: true,
242
+ evidence: [
243
+ {
244
+ kind: "recall_audit",
245
+ id: "recall-orbit-cold",
246
+ label: "Cold-start recall audit",
247
+ locator: "fixture://remnic/recall-audit/recall-orbit-cold.json",
248
+ capture: "fixture",
249
+ },
250
+ ],
251
+ },
252
+ },
253
+ {
254
+ occurredAt: at(29),
255
+ idempotencyKey: "fixture-014",
256
+ payload: {
257
+ kind: "propagation_verified",
258
+ agentId: "agent-orbit",
259
+ sessionId: "session-orbit-cold",
260
+ correctionId: "correction-token-refresh",
261
+ decisionId: "decision-refresh-after-expiry",
262
+ recallReceiptId: "recall-orbit-cold",
263
+ staleDecisionAbsent: true,
264
+ evidence: [
265
+ {
266
+ kind: "recall_audit",
267
+ id: "recall-orbit-cold",
268
+ label: "Cold-start recall audit",
269
+ locator: "fixture://remnic/recall-audit/recall-orbit-cold.json",
270
+ capture: "fixture",
271
+ },
272
+ ],
273
+ },
274
+ },
275
+ {
276
+ occurredAt: at(34),
277
+ idempotencyKey: "fixture-015",
278
+ payload: {
279
+ kind: "test_result",
280
+ testId: "test-after-correction",
281
+ decisionId: "decision-refresh-after-expiry",
282
+ correctionId: "correction-token-refresh",
283
+ command: "npm test -- token-policy.test.ts",
284
+ status: "passed",
285
+ summary: "The cold agent reused the session token and the integration contract passed.",
286
+ durationMs: 391,
287
+ evidence: [testEvidence, correctionEvidence],
288
+ },
289
+ },
290
+ {
291
+ occurredAt: at(36),
292
+ idempotencyKey: "fixture-016",
293
+ payload: {
294
+ kind: "mission_completed",
295
+ outcome: "recovered",
296
+ summary: "One approved correction reached a cold agent and changed the observable outcome.",
297
+ evidence: [testEvidence, approvalEvidence],
298
+ },
299
+ },
300
+ ];
301
+ }