@remnic/core 10.0.178 → 10.0.180

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 (47) hide show
  1. package/dist/access-admin-ops-surface.js +4 -4
  2. package/dist/access-cli.js +4 -4
  3. package/dist/access-extraction-force-flush-preempt.js +4 -4
  4. package/dist/access-extraction-force-flush.js +4 -4
  5. package/dist/access-http-briefing.js +4 -4
  6. package/dist/access-http-query.js +4 -4
  7. package/dist/access-http.js +4 -4
  8. package/dist/access-identity-continuity-surface.js +4 -4
  9. package/dist/access-lcm-surface.js +4 -4
  10. package/dist/access-mcp.js +4 -4
  11. package/dist/access-observe-write-surface.js +4 -4
  12. package/dist/access-operations-batch.js +4 -4
  13. package/dist/access-operations.js +4 -4
  14. package/dist/access-recall-concurrency.js +4 -4
  15. package/dist/access-recall-response.js +4 -4
  16. package/dist/access-recall-surface.js +4 -4
  17. package/dist/access-service.js +4 -4
  18. package/dist/{auto-sync-IUKNPMNI.js → auto-sync-24ATHF7G.js} +2 -2
  19. package/dist/buffer-ingress-counters.d.ts.map +1 -1
  20. package/dist/buffer-ingress-counters.js +1 -1
  21. package/dist/buffer.js +2 -2
  22. package/dist/{chunk-BIUHAA2L.js → chunk-2UGHUFIO.js} +2 -2
  23. package/dist/{chunk-TQ4BQ6Q6.js → chunk-37ACBHVF.js} +4 -4
  24. package/dist/{chunk-WHKE2JCE.js → chunk-CUZVWNSV.js} +3 -3
  25. package/dist/{chunk-NWZEDYHT.js → chunk-OELN4JIO.js} +42 -22
  26. package/dist/chunk-OELN4JIO.js.map +1 -0
  27. package/dist/{chunk-RADARJEC.js → chunk-V5UYOA4Q.js} +1 -1
  28. package/dist/{chunk-RADARJEC.js.map → chunk-V5UYOA4Q.js.map} +1 -1
  29. package/dist/cli.js +4 -4
  30. package/dist/explicit-capture.js +4 -4
  31. package/dist/index.js +4 -4
  32. package/dist/orchestration/backlog-scheduler.js +5 -5
  33. package/dist/orchestration/buffer-drain-runner.js +5 -5
  34. package/dist/orchestrator.js +4 -4
  35. package/dist/recall-navigation.js +4 -4
  36. package/dist/wearables/memory-gen.d.ts.map +1 -1
  37. package/dist/wearables/pipeline.d.ts.map +1 -1
  38. package/package.json +2 -2
  39. package/src/buffer-ingress-counters.ts +7 -15
  40. package/src/wearables/memory-gen.ts +18 -5
  41. package/src/wearables/pipeline.test.ts +105 -0
  42. package/src/wearables/pipeline.ts +31 -16
  43. package/dist/chunk-NWZEDYHT.js.map +0 -1
  44. /package/dist/{auto-sync-IUKNPMNI.js.map → auto-sync-24ATHF7G.js.map} +0 -0
  45. /package/dist/{chunk-BIUHAA2L.js.map → chunk-2UGHUFIO.js.map} +0 -0
  46. /package/dist/{chunk-TQ4BQ6Q6.js.map → chunk-37ACBHVF.js.map} +0 -0
  47. /package/dist/{chunk-WHKE2JCE.js.map → chunk-CUZVWNSV.js.map} +0 -0
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  BufferDrainRunner,
3
3
  ClaimBufferStorage
4
- } from "../chunk-WHKE2JCE.js";
5
- import "../chunk-TQ4BQ6Q6.js";
4
+ } from "../chunk-CUZVWNSV.js";
5
+ import "../chunk-37ACBHVF.js";
6
6
  import "../chunk-PQM3B54K.js";
7
- import "../chunk-NWZEDYHT.js";
7
+ import "../chunk-OELN4JIO.js";
8
8
  import "../chunk-GOZXQNIM.js";
9
9
  import "../chunk-H4CKS5B2.js";
10
10
  import "../chunk-W4F3C7N7.js";
@@ -298,7 +298,7 @@ import "../chunk-2LSZVONP.js";
298
298
  import "../chunk-DEUNUKTD.js";
299
299
  import "../chunk-LXY5VVGM.js";
300
300
  import "../chunk-GKCXTSFF.js";
301
- import "../chunk-BIUHAA2L.js";
301
+ import "../chunk-2UGHUFIO.js";
302
302
  import "../chunk-3SP7EZWA.js";
303
303
  import "../chunk-FDLPNFKE.js";
304
304
  import "../chunk-CSAKJVXW.js";
@@ -314,7 +314,7 @@ import "../chunk-FE43YKNJ.js";
314
314
  import "../chunk-WWUQ6CP3.js";
315
315
  import "../chunk-ZY2MNJR6.js";
316
316
  import "../chunk-XAIRTELU.js";
317
- import "../chunk-RADARJEC.js";
317
+ import "../chunk-V5UYOA4Q.js";
318
318
  import "../chunk-TRFSTCQK.js";
319
319
  import "../chunk-YBPYIAA5.js";
320
320
  import "../chunk-HK6KYIF6.js";
@@ -6,9 +6,9 @@ import {
6
6
  mergeGraphExpandedResults,
7
7
  qmdStartupCollectionChecksWithTimeout,
8
8
  resolveEffectiveIdentityInjectionMode
9
- } from "./chunk-TQ4BQ6Q6.js";
9
+ } from "./chunk-37ACBHVF.js";
10
10
  import "./chunk-PQM3B54K.js";
11
- import "./chunk-NWZEDYHT.js";
11
+ import "./chunk-OELN4JIO.js";
12
12
  import "./chunk-GOZXQNIM.js";
13
13
  import "./chunk-H4CKS5B2.js";
14
14
  import "./chunk-W4F3C7N7.js";
@@ -306,7 +306,7 @@ import "./chunk-2LSZVONP.js";
306
306
  import "./chunk-DEUNUKTD.js";
307
307
  import "./chunk-LXY5VVGM.js";
308
308
  import "./chunk-GKCXTSFF.js";
309
- import "./chunk-BIUHAA2L.js";
309
+ import "./chunk-2UGHUFIO.js";
310
310
  import {
311
311
  deriveTopicsFromExtraction
312
312
  } from "./chunk-3SP7EZWA.js";
@@ -361,7 +361,7 @@ import "./chunk-FE43YKNJ.js";
361
361
  import "./chunk-WWUQ6CP3.js";
362
362
  import "./chunk-ZY2MNJR6.js";
363
363
  import "./chunk-XAIRTELU.js";
364
- import "./chunk-RADARJEC.js";
364
+ import "./chunk-V5UYOA4Q.js";
365
365
  import "./chunk-TRFSTCQK.js";
366
366
  import "./chunk-YBPYIAA5.js";
367
367
  import "./chunk-HK6KYIF6.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  runRecallNavigation
3
- } from "./chunk-TQ4BQ6Q6.js";
3
+ } from "./chunk-37ACBHVF.js";
4
4
  import "./chunk-PQM3B54K.js";
5
- import "./chunk-NWZEDYHT.js";
5
+ import "./chunk-OELN4JIO.js";
6
6
  import "./chunk-GOZXQNIM.js";
7
7
  import "./chunk-H4CKS5B2.js";
8
8
  import "./chunk-W4F3C7N7.js";
@@ -296,7 +296,7 @@ import "./chunk-2LSZVONP.js";
296
296
  import "./chunk-DEUNUKTD.js";
297
297
  import "./chunk-LXY5VVGM.js";
298
298
  import "./chunk-GKCXTSFF.js";
299
- import "./chunk-BIUHAA2L.js";
299
+ import "./chunk-2UGHUFIO.js";
300
300
  import "./chunk-3SP7EZWA.js";
301
301
  import "./chunk-FDLPNFKE.js";
302
302
  import "./chunk-CSAKJVXW.js";
@@ -312,7 +312,7 @@ import "./chunk-FE43YKNJ.js";
312
312
  import "./chunk-WWUQ6CP3.js";
313
313
  import "./chunk-ZY2MNJR6.js";
314
314
  import "./chunk-XAIRTELU.js";
315
- import "./chunk-RADARJEC.js";
315
+ import "./chunk-V5UYOA4Q.js";
316
316
  import "./chunk-TRFSTCQK.js";
317
317
  import "./chunk-YBPYIAA5.js";
318
318
  import "./chunk-HK6KYIF6.js";
@@ -1 +1 @@
1
- {"version":3,"file":"memory-gen.d.ts","sourceRoot":"","sources":["../../src/wearables/memory-gen.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAGL,KAAK,oBAAoB,EAE1B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG/E,OAAO,EAIL,KAAK,oBAAoB,EAE1B,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACV,UAAU,EAEV,gBAAgB,EAEhB,eAAe,EAEf,YAAY,EACb,MAAM,aAAa,CAAC;AACrB,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,KAAK,EACV,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EAC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KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAC;IACxE,iCAAiC;IACjC,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,8DAA8D;AAC9D,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAcnE;AAED,sDAAsD;AACtD,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,IAAI,GACR,MAAM,EAAE,CAiCV;AAoID,uBAAuB;AACvB,wBAAsB,kBAAkB,CACtC,SAAS,EAAE,uBAAuB,EAClC,QAAQ,EAAE,sBAAsB,EAChC,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,mBAAmB,EAC5B,IAAI,EAAE,gBAAgB,GACrB,OAAO,CAAC,mBAAmB,CAAC,CA0W9B;AA6BD,wBAAgB,eAAe,IAAI,MAAM,CAMxC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnic/core",
3
- "version": "10.0.178",
3
+ "version": "10.0.180",
4
4
  "description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -3416,7 +3416,7 @@
3416
3416
  "core"
3417
3417
  ],
3418
3418
  "peerDependencies": {
3419
- "@remnic/coding-graph": "^10.0.178"
3419
+ "@remnic/coding-graph": "^10.0.180"
3420
3420
  },
3421
3421
  "peerDependenciesMeta": {
3422
3422
  "@remnic/coding-graph": {
@@ -244,22 +244,14 @@ export class BufferIngressCounters {
244
244
  private memoFor(entry: BufferEntryState): EntryDigestMemo {
245
245
  const retained = entry.retainedTurns;
246
246
  const memo = this.memos.get(entry);
247
- // --- Fix 3: bound the rebuild to the digest cap. A restored entry can
248
- // hold more unique turns than DUPLICATE_DIGEST_CAP; inserting all of them
249
- // would leave the set permanently above the cap (later appends evict one
250
- // each). Keep the most recent turns, matching the FIFO order of the
251
- // steady-state path, so recognition degrades to "not a duplicate".
252
- // Distinguish "built with no retained array" (retainedRef undefined) from
253
- // "built with one that was since collected" (deref undefined but the entry
254
- // still has none... no: if the entry has none NOW and the memo was built
255
- // with one, the entry changed shape -> rebuild). Reuse only when both sides
256
- // agree on presence AND identity.
247
+ // Rebuild bound to the digest cap: a restored entry can hold more unique
248
+ // turns than DUPLICATE_DIGEST_CAP, so keep the most recent turns (FIFO
249
+ // order, matching the steady-state path) — inserting all of them would
250
+ // leave the set permanently above the cap.
257
251
  // Reuse only when both sides agree on presence AND identity: a memo built
258
- // with a retained array that the buffer later deleted (entry.retainedTurns
259
- // now undefined) must rebuild, and a collected WeakRef must never read as
260
- // "absent" (that would reuse a memo whose digests still include removed
261
- // content). Any memo built with a retained array therefore requires a
262
- // live identical array now; a memo built without one requires none now.
252
+ // with a retained array requires a live identical array now (a collected
253
+ // WeakRef must never read as "absent"); a memo built without one requires
254
+ // none now.
263
255
  const retainedMatch =
264
256
  memo?.retainedRef === undefined
265
257
  ? memo !== undefined && retained === undefined
@@ -871,11 +871,24 @@ export async function importNativeMemories(
871
871
  },
872
872
  { source: `${wearableSourceLabel(sourceId)}:native` },
873
873
  );
874
- const nativeWriteResult = await deps.writer.writeSealedMemory(nativeEnvelope, {
875
- importance: scoreImportance(content, "fact", memory.tags ?? []),
876
- contentHashSource: content,
877
- status,
878
- });
874
+ // Per-item isolation: one rejected write must not discard the items
875
+ // already stored on this page — the caller can only account for what
876
+ // this function returns, so a mid-page throw would hide completed
877
+ // writes from the summary and skip their reindex. The failed item is
878
+ // left out of importedIds and retries on the next sync.
879
+ let nativeWriteResult;
880
+ try {
881
+ nativeWriteResult = await deps.writer.writeSealedMemory(nativeEnvelope, {
882
+ importance: scoreImportance(content, "fact", memory.tags ?? []),
883
+ contentHashSource: content,
884
+ status,
885
+ });
886
+ } catch (err) {
887
+ warnings.push(
888
+ `${sourceId}: native memory ${memory.id} failed to import: ${describeErrorForOperator(err)} — it retries on the next sync`,
889
+ );
890
+ continue;
891
+ }
879
892
  // #1645: a tombstone-blocked native import lands pending_review (no active
880
893
  // copy) — count it as blocked, NOT imported. Still record the provider id in
881
894
  // importedIds so the next sync doesn't re-import and duplicate the pending
@@ -432,6 +432,111 @@ test("native memories import once and are tracked across syncs", async () => {
432
432
  }
433
433
  });
434
434
 
435
+ test("a native-memory import failure warns and lets the sync complete", async () => {
436
+ const memoryDir = mkdtempSync(path.join(tmpdir(), "remnic-pipeline-"));
437
+ try {
438
+ const byDate = {
439
+ "2026-06-11": [
440
+ makeConversation("c1", "2026-06-11", [
441
+ { speaker: "user", isWearer: true, text: "A durable fact about the new vendor agreement emerged." },
442
+ { speaker: "Speaker 2", text: "The vendor agreement now covers support through next year." },
443
+ ]),
444
+ ],
445
+ };
446
+ const { deps } = makeDeps(memoryDir);
447
+ const connector = fakeConnector(byDate);
448
+ connector.fetchNativeMemories = async () => {
449
+ throw new Error("provider rejected the scope grant");
450
+ };
451
+ const run = await syncWearableSource(
452
+ connector,
453
+ settings({ importNativeMemories: "review" }),
454
+ config(),
455
+ { days: 1 },
456
+ deps,
457
+ );
458
+ assert.equal(run.transcriptsWritten.length, 1, "transcript still stored");
459
+ assert.ok(
460
+ run.warnings.some((warning) => warning.includes("native-memory import failed")),
461
+ `expected native-import warning, got: ${run.warnings.join(" | ")}`,
462
+ );
463
+ const state = await loadSyncState(memoryDir);
464
+ assert.equal(
465
+ state.sources.testsource.lastDateSynced,
466
+ "2026-06-11",
467
+ "watermark still advances past a failed native import",
468
+ );
469
+ assert.ok(state.sources.testsource.dayHashes?.["2026-06-11"]);
470
+
471
+ // Caller cancellation still propagates: an aborted fetch must not be
472
+ // converted into a completed sync with a stale-but-successful state.
473
+ const abortingConnector = fakeConnector(byDate);
474
+ abortingConnector.fetchNativeMemories = async () => {
475
+ throw new DOMException("The operation was aborted.", "AbortError");
476
+ };
477
+ await assert.rejects(
478
+ syncWearableSource(abortingConnector, settings({ importNativeMemories: "review" }), config(), { days: 1 }, deps),
479
+ );
480
+ } finally {
481
+ rmSync(memoryDir, { recursive: true, force: true });
482
+ }
483
+ });
484
+
485
+ test("a single failed native-memory write keeps the rest of the page", async () => {
486
+ const memoryDir = mkdtempSync(path.join(tmpdir(), "remnic-pipeline-"));
487
+ try {
488
+ const native = [
489
+ { id: "nat-1", content: "User volunteers at the food bank monthly." },
490
+ { id: "nat-2", content: "User prefers the window seat on evening flights." },
491
+ { id: "nat-3", content: "User rotates the car tires every spring." },
492
+ ];
493
+ const { deps, memoryWrites } = makeDeps(memoryDir);
494
+ assert.ok(deps.memoryGen);
495
+ const healthyWrite = deps.memoryGen.writer.writeSealedMemory;
496
+ deps.memoryGen.writer.writeSealedMemory = async (envelope, extras) => {
497
+ const { content } = sealedWriteToLegacyArgs(envelope, extras);
498
+ if (String(content).includes("window seat")) throw new Error("storage exploded mid-page");
499
+ return healthyWrite(envelope, extras);
500
+ };
501
+ const connector = fakeConnector({}, native);
502
+ const first = await syncWearableSource(
503
+ connector,
504
+ settings({ importNativeMemories: "review" }),
505
+ config(),
506
+ { days: 1 },
507
+ deps,
508
+ );
509
+ assert.equal(first.nativeMemoriesImported, 2, "items around the failure still count");
510
+ assert.ok(
511
+ first.warnings.some((warning) => warning.includes("nat-2 failed to import")),
512
+ `expected per-item warning, got: ${first.warnings.join(" | ")}`,
513
+ );
514
+ assert.equal(memoryWrites.length, 2);
515
+ const state = await loadSyncState(memoryDir);
516
+ const importedIds = state.sources.testsource.importedNativeMemoryIds ?? [];
517
+ assert.ok(importedIds.includes("nat-1") && importedIds.includes("nat-3"));
518
+ assert.ok(!importedIds.includes("nat-2"), "failed item retries on the next sync");
519
+
520
+ // Next sync: healthy writer, nat-2 imports, nothing duplicates.
521
+ deps.memoryGen.writer.writeSealedMemory = healthyWrite;
522
+ const second = await syncWearableSource(
523
+ connector,
524
+ settings({ importNativeMemories: "review" }),
525
+ config(),
526
+ { days: 1 },
527
+ deps,
528
+ );
529
+ assert.equal(second.nativeMemoriesImported, 1, "only the failed item re-imports");
530
+ assert.equal(memoryWrites.length, 3);
531
+ const state2 = await loadSyncState(memoryDir);
532
+ const ids2 = state2.sources.testsource.importedNativeMemoryIds ?? [];
533
+ assert.ok(ids2.includes("nat-2"));
534
+ assert.equal(new Set(ids2).size, ids2.length, "no duplicate ids");
535
+ } finally {
536
+ rmSync(memoryDir, { recursive: true, force: true });
537
+ }
538
+ });
539
+
435
540
  test("a failed memory pass retries on the next sync even when the day is unchanged", async () => {
436
541
  const memoryDir = mkdtempSync(path.join(tmpdir(), "remnic-pipeline-"));
437
542
  try {
@@ -16,6 +16,7 @@
16
16
  */
17
17
 
18
18
  import { fillWearableConversationLocations } from "../location/tagging.js";
19
+ import { isAbortError } from "../abort-error.js";
19
20
  import { cleanConversation } from "./cleanup.js";
20
21
  import { describeErrorForOperator, WearablesInputError } from "./errors.js";
21
22
  import {
@@ -583,22 +584,36 @@ export async function syncWearableSource(
583
584
  let cursor: string | null | undefined = undefined;
584
585
  const seenNativeCursors = new Set<string>();
585
586
  for (let page = 0; page < PAGE_SAFETY_CEILING; page++) {
586
- const result = await connector.fetchNativeMemories({
587
- cursor,
588
- signal: options.signal,
589
- });
590
- const imported = await importNativeMemories(
591
- connector.id,
592
- result.memories,
593
- alreadyImported,
594
- settings,
595
- nativeMemoryGen,
596
- );
597
- summary.warnings.push(...imported.warnings);
598
- summary.nativeMemoriesImported += imported.imported;
599
- summary.memoriesBlocked += imported.tombstoneBlocked;
600
- importedNativeIds.push(...imported.importedIds);
601
- for (const id of imported.importedIds) alreadyImported.add(id);
587
+ // Native memories are derived content: transcripts and the memory
588
+ // pass are already stored, and the watermark only advances at the
589
+ // end of the run. A provider rejection here (expired scope grant,
590
+ // API outage) must skip the import, not abort the run — otherwise
591
+ // every later sync replays the same failure and never advances.
592
+ let result;
593
+ try {
594
+ result = await connector.fetchNativeMemories({
595
+ cursor,
596
+ signal: options.signal,
597
+ });
598
+ const imported = await importNativeMemories(
599
+ connector.id,
600
+ result.memories,
601
+ alreadyImported,
602
+ settings,
603
+ nativeMemoryGen,
604
+ );
605
+ summary.warnings.push(...imported.warnings);
606
+ summary.nativeMemoriesImported += imported.imported;
607
+ summary.memoriesBlocked += imported.tombstoneBlocked;
608
+ importedNativeIds.push(...imported.importedIds);
609
+ for (const id of imported.importedIds) alreadyImported.add(id);
610
+ } catch (err) {
611
+ if (isAbortError(err)) throw err;
612
+ summary.warnings.push(
613
+ `${connector.id}: native-memory import failed: ${describeErrorForOperator(err)} — skipped; it retries on the next sync`,
614
+ );
615
+ break;
616
+ }
602
617
  if (!result.nextCursor) break;
603
618
  if (seenNativeCursors.has(result.nextCursor)) {
604
619
  summary.warnings.push(