@engramx/idl 0.16.0-rc.23 → 0.16.0-rc.24

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/engram.did CHANGED
@@ -78,6 +78,11 @@ type TimerHealth =
78
78
  sessionExpiryArmed: bool;
79
79
  upkeepRejected: opt nat;
80
80
  };
81
+ type TextAppendReceipt =
82
+ record {
83
+ receipt: WriteReceipt;
84
+ sent: blob;
85
+ };
81
86
  type StorageReport =
82
87
  record {
83
88
  auditLogSize: nat;
@@ -283,50 +288,70 @@ type ResyncReport =
283
288
  };
284
289
  startsAcknowledged: nat;
285
290
  };
286
- type Result_90 =
291
+ type Result_94 =
287
292
  variant {
288
293
  Err: Error;
289
294
  Ok: AgentRecord;
290
295
  };
296
+ type Result_92 =
297
+ variant {
298
+ Err: Error;
299
+ Ok: Eip712Registration;
300
+ };
301
+ type Result_90 =
302
+ variant {
303
+ Err: Error;
304
+ Ok: Conversion;
305
+ };
291
306
  type Result_9 =
292
307
  variant {
293
308
  Err: Error;
294
309
  Ok: vec Seat;
295
310
  };
311
+ type Result_89 =
312
+ variant {
313
+ Err: Error;
314
+ Ok: CondenseResult;
315
+ };
296
316
  type Result_88 =
297
317
  variant {
298
318
  Err: Error;
299
- Ok: Eip712Registration;
319
+ Ok: MemoryRangeExport;
300
320
  };
301
321
  type Result_86 =
302
322
  variant {
303
323
  Err: Error;
304
- Ok: Conversion;
324
+ Ok: Page_27;
305
325
  };
306
326
  type Result_85 =
307
327
  variant {
308
328
  Err: Error;
309
- Ok: CondenseResult;
329
+ Ok: AgentWriteReview;
310
330
  };
311
331
  type Result_84 =
312
332
  variant {
313
333
  Err: Error;
314
- Ok: MemoryRangeExport;
334
+ Ok: BackupMetadata;
335
+ };
336
+ type Result_83 =
337
+ variant {
338
+ Err: Error;
339
+ Ok: BackupRetention;
315
340
  };
316
341
  type Result_82 =
317
342
  variant {
318
343
  Err: Error;
319
- Ok: Page_26;
344
+ Ok: vec BirthRecord;
320
345
  };
321
346
  type Result_81 =
322
347
  variant {
323
348
  Err: Error;
324
- Ok: AgentWriteReview;
349
+ Ok: Brakes;
325
350
  };
326
351
  type Result_80 =
327
352
  variant {
328
353
  Err: Error;
329
- Ok: BackupMetadata;
354
+ Ok: ChildAllowanceRow;
330
355
  };
331
356
  type Result_8 =
332
357
  variant {
@@ -336,52 +361,52 @@ type Result_8 =
336
361
  type Result_79 =
337
362
  variant {
338
363
  Err: Error;
339
- Ok: BackupRetention;
364
+ Ok: ChildOpening;
340
365
  };
341
366
  type Result_78 =
342
367
  variant {
343
368
  Err: Error;
344
- Ok: vec BirthRecord;
369
+ Ok: EvmAddresses;
345
370
  };
346
371
  type Result_77 =
347
372
  variant {
348
373
  Err: Error;
349
- Ok: Brakes;
374
+ Ok: AlertStatus;
350
375
  };
351
376
  type Result_76 =
352
377
  variant {
353
378
  Err: Error;
354
- Ok: ChildAllowanceRow;
379
+ Ok: blob;
355
380
  };
356
381
  type Result_75 =
357
382
  variant {
358
383
  Err: Error;
359
- Ok: ChildOpening;
384
+ Ok: KeyBackupStatus;
360
385
  };
361
386
  type Result_74 =
362
387
  variant {
363
388
  Err: Error;
364
- Ok: EvmAddresses;
389
+ Ok: MemoryHistory;
365
390
  };
366
391
  type Result_73 =
367
392
  variant {
368
393
  Err: Error;
369
- Ok: AlertStatus;
394
+ Ok: MemoryRetentionPolicy;
370
395
  };
371
396
  type Result_72 =
372
397
  variant {
373
398
  Err: Error;
374
- Ok: blob;
399
+ Ok: OwnerConsole;
375
400
  };
376
401
  type Result_71 =
377
402
  variant {
378
403
  Err: Error;
379
- Ok: KeyBackupStatus;
404
+ Ok: OwnerSignInView;
380
405
  };
381
406
  type Result_70 =
382
407
  variant {
383
408
  Err: Error;
384
- Ok: MemoryHistory;
409
+ Ok: ProfileRead;
385
410
  };
386
411
  type Result_7 =
387
412
  variant {
@@ -391,52 +416,52 @@ type Result_7 =
391
416
  type Result_69 =
392
417
  variant {
393
418
  Err: Error;
394
- Ok: MemoryRetentionPolicy;
419
+ Ok: record {paths: vec text;};
395
420
  };
396
421
  type Result_68 =
397
422
  variant {
398
423
  Err: Error;
399
- Ok: OwnerConsole;
424
+ Ok: RecipientHistory;
400
425
  };
401
426
  type Result_67 =
402
427
  variant {
403
428
  Err: Error;
404
- Ok: OwnerSignInView;
429
+ Ok: SigningFloorStatus;
405
430
  };
406
431
  type Result_66 =
407
432
  variant {
408
433
  Err: Error;
409
- Ok: record {paths: vec text;};
434
+ Ok: SpendCeiling;
410
435
  };
411
436
  type Result_65 =
412
437
  variant {
413
438
  Err: Error;
414
- Ok: RecipientHistory;
439
+ Ok: SpendingPolicy;
415
440
  };
416
441
  type Result_64 =
417
442
  variant {
418
443
  Err: Error;
419
- Ok: SigningFloorStatus;
444
+ Ok: StorageReport;
420
445
  };
421
446
  type Result_63 =
422
447
  variant {
423
448
  Err: Error;
424
- Ok: SpendCeiling;
449
+ Ok: WalletBalances;
425
450
  };
426
451
  type Result_62 =
427
452
  variant {
428
453
  Err: Error;
429
- Ok: SpendingPolicy;
454
+ Ok: WorldIdConfig;
430
455
  };
431
456
  type Result_61 =
432
457
  variant {
433
458
  Err: Error;
434
- Ok: StorageReport;
459
+ Ok: WorldIdRpContext;
435
460
  };
436
461
  type Result_60 =
437
462
  variant {
438
463
  Err: Error;
439
- Ok: WalletBalances;
464
+ Ok: opt text;
440
465
  };
441
466
  type Result_6 =
442
467
  variant {
@@ -446,52 +471,52 @@ type Result_6 =
446
471
  type Result_59 =
447
472
  variant {
448
473
  Err: Error;
449
- Ok: WorldIdConfig;
474
+ Ok: bool;
450
475
  };
451
476
  type Result_58 =
452
477
  variant {
453
478
  Err: Error;
454
- Ok: WorldIdRpContext;
479
+ Ok: text;
455
480
  };
456
481
  type Result_57 =
457
482
  variant {
458
483
  Err: Error;
459
- Ok: opt text;
484
+ Ok: Page_26;
460
485
  };
461
486
  type Result_56 =
462
487
  variant {
463
488
  Err: Error;
464
- Ok: bool;
489
+ Ok: Page_25;
465
490
  };
466
491
  type Result_55 =
467
492
  variant {
468
493
  Err: Error;
469
- Ok: text;
494
+ Ok: AgentSpendToday;
470
495
  };
471
496
  type Result_54 =
472
497
  variant {
473
498
  Err: Error;
474
- Ok: Page_25;
499
+ Ok: Page_23;
475
500
  };
476
501
  type Result_53 =
477
502
  variant {
478
503
  Err: Error;
479
- Ok: AgentSpendToday;
504
+ Ok: Page_22;
480
505
  };
481
506
  type Result_52 =
482
507
  variant {
483
508
  Err: Error;
484
- Ok: Page_23;
509
+ Ok: RecordPage;
485
510
  };
486
511
  type Result_51 =
487
512
  variant {
488
513
  Err: Error;
489
- Ok: Page_22;
514
+ Ok: Page_21;
490
515
  };
491
516
  type Result_50 =
492
517
  variant {
493
518
  Err: Error;
494
- Ok: RecordPage;
519
+ Ok: Page_20;
495
520
  };
496
521
  type Result_5 =
497
522
  variant {
@@ -501,52 +526,52 @@ type Result_5 =
501
526
  type Result_49 =
502
527
  variant {
503
528
  Err: Error;
504
- Ok: Page_21;
529
+ Ok: CheckpointPage;
505
530
  };
506
531
  type Result_48 =
507
532
  variant {
508
533
  Err: Error;
509
- Ok: Page_20;
534
+ Ok: Page_18;
510
535
  };
511
536
  type Result_47 =
512
537
  variant {
513
538
  Err: Error;
514
- Ok: CheckpointPage;
539
+ Ok: Page_17;
515
540
  };
516
541
  type Result_46 =
517
542
  variant {
518
543
  Err: Error;
519
- Ok: Page_18;
544
+ Ok: Page_16;
520
545
  };
521
546
  type Result_45 =
522
547
  variant {
523
548
  Err: Error;
524
- Ok: Page_17;
549
+ Ok: Page_15;
525
550
  };
526
551
  type Result_44 =
527
552
  variant {
528
553
  Err: Error;
529
- Ok: Page_16;
554
+ Ok: Page_14;
530
555
  };
531
556
  type Result_43 =
532
557
  variant {
533
558
  Err: Error;
534
- Ok: Page_15;
559
+ Ok: Page_13;
535
560
  };
536
561
  type Result_42 =
537
562
  variant {
538
563
  Err: Error;
539
- Ok: Page_14;
564
+ Ok: ReceiptPage;
540
565
  };
541
566
  type Result_41 =
542
567
  variant {
543
568
  Err: Error;
544
- Ok: Page_13;
569
+ Ok: Page_11;
545
570
  };
546
571
  type Result_40 =
547
572
  variant {
548
573
  Err: Error;
549
- Ok: ReceiptPage;
574
+ Ok: LogPage;
550
575
  };
551
576
  type Result_4 =
552
577
  variant {
@@ -556,52 +581,52 @@ type Result_4 =
556
581
  type Result_39 =
557
582
  variant {
558
583
  Err: Error;
559
- Ok: Page_11;
584
+ Ok: Page_9;
560
585
  };
561
586
  type Result_38 =
562
587
  variant {
563
588
  Err: Error;
564
- Ok: LogPage;
589
+ Ok: Page_8;
565
590
  };
566
591
  type Result_37 =
567
592
  variant {
568
593
  Err: Error;
569
- Ok: Page_9;
594
+ Ok: Page_7;
570
595
  };
571
596
  type Result_36 =
572
597
  variant {
573
598
  Err: Error;
574
- Ok: Page_8;
599
+ Ok: PaymentSignatureCounts;
575
600
  };
576
601
  type Result_35 =
577
602
  variant {
578
603
  Err: Error;
579
- Ok: Page_7;
604
+ Ok: Page_5;
580
605
  };
581
606
  type Result_34 =
582
607
  variant {
583
608
  Err: Error;
584
- Ok: PaymentSignatureCounts;
609
+ Ok: Page_4;
585
610
  };
586
611
  type Result_33 =
587
612
  variant {
588
613
  Err: Error;
589
- Ok: Page_5;
614
+ Ok: Page_3;
590
615
  };
591
616
  type Result_32 =
592
617
  variant {
593
618
  Err: Error;
594
- Ok: Page_4;
619
+ Ok: Page_2;
595
620
  };
596
621
  type Result_31 =
597
622
  variant {
598
623
  Err: Error;
599
- Ok: Page_3;
624
+ Ok: Page_1;
600
625
  };
601
626
  type Result_30 =
602
627
  variant {
603
628
  Err: Error;
604
- Ok: Page_2;
629
+ Ok: Page;
605
630
  };
606
631
  type Result_3 =
607
632
  variant {
@@ -611,52 +636,52 @@ type Result_3 =
611
636
  type Result_29 =
612
637
  variant {
613
638
  Err: Error;
614
- Ok: Page_1;
639
+ Ok: AgentGrant;
615
640
  };
616
641
  type Result_28 =
617
642
  variant {
618
643
  Err: Error;
619
- Ok: Page;
644
+ Ok: principal;
620
645
  };
621
646
  type Result_27 =
622
647
  variant {
623
648
  Err: Error;
624
- Ok: AgentGrant;
649
+ Ok: EngramSessionState;
625
650
  };
626
651
  type Result_26 =
627
652
  variant {
628
653
  Err: Error;
629
- Ok: principal;
654
+ Ok: Pairing;
630
655
  };
631
656
  type Result_25 =
632
657
  variant {
633
658
  Err: Error;
634
- Ok: EngramSessionState;
659
+ Ok: Plan;
635
660
  };
636
661
  type Result_24 =
637
662
  variant {
638
663
  Err: Error;
639
- Ok: Pairing;
664
+ Ok: CondensePreview;
640
665
  };
641
666
  type Result_23 =
642
667
  variant {
643
668
  Err: Error;
644
- Ok: CondensePreview;
669
+ Ok: RetentionPreview;
645
670
  };
646
671
  type Result_22 =
647
672
  variant {
648
673
  Err: Error;
649
- Ok: RetentionPreview;
674
+ Ok: vec BatchReadItem;
650
675
  };
651
676
  type Result_21 =
652
677
  variant {
653
678
  Err: Error;
654
- Ok: vec BatchReadItem;
679
+ Ok: MemoryByteChunk;
655
680
  };
656
681
  type Result_20 =
657
682
  variant {
658
683
  Err: Error;
659
- Ok: MemoryByteChunk;
684
+ Ok: EngramEscrowRecovery;
660
685
  };
661
686
  type Result_2 =
662
687
  variant {
@@ -666,22 +691,22 @@ type Result_2 =
666
691
  type Result_19 =
667
692
  variant {
668
693
  Err: Error;
669
- Ok: EngramEscrowRecovery;
694
+ Ok: GuardianRecord;
670
695
  };
671
696
  type Result_18 =
672
697
  variant {
673
698
  Err: Error;
674
- Ok: GuardianRecord;
699
+ Ok: ResetReport;
675
700
  };
676
701
  type Result_17 =
677
702
  variant {
678
703
  Err: Error;
679
- Ok: ResetReport;
704
+ Ok: ResyncReport;
680
705
  };
681
706
  type Result_16 =
682
707
  variant {
683
708
  Err: Error;
684
- Ok: ResyncReport;
709
+ Ok: TextAppendReceipt;
685
710
  };
686
711
  type Result_15 =
687
712
  variant {
@@ -730,6 +755,15 @@ type ResetReport =
730
755
  filesCleared: nat;
731
756
  guardiansRemoved: nat;
732
757
  };
758
+ type Request =
759
+ variant {
760
+ metadata: opt text;
761
+ read: record {
762
+ end: End;
763
+ excludePlatform: opt text;
764
+ platform: opt text;
765
+ };
766
+ };
733
767
  type Repudiation =
734
768
  record {
735
769
  atNs: int;
@@ -796,6 +830,19 @@ type PurgedAgent =
796
830
  purgedAtNs: int;
797
831
  root: principal;
798
832
  };
833
+ type ProfileRead =
834
+ record {
835
+ lessons: Result_13;
836
+ preferences: Result_13;
837
+ soul: Result_13;
838
+ user: Result_13;
839
+ };
840
+ type Plan =
841
+ variant {
842
+ batchOriginal: vec Entry;
843
+ individualCanonical: vec CanonicalRead;
844
+ metadata: vec Entry;
845
+ };
799
846
  type PaymentsStop =
800
847
  variant {
801
848
  dailySignatureLimit;
@@ -882,18 +929,24 @@ type Page_3 =
882
929
  total: nat;
883
930
  withheld: nat;
884
931
  };
885
- type Page_26 =
932
+ type Page_27 =
886
933
  record {
887
934
  items: vec OwnerRow;
888
935
  total: nat;
889
936
  withheld: nat;
890
937
  };
891
- type Page_25 =
938
+ type Page_26 =
892
939
  record {
893
940
  items: vec ActivitySnapshot;
894
941
  total: nat;
895
942
  withheld: nat;
896
943
  };
944
+ type Page_25 =
945
+ record {
946
+ items: vec Entry__1;
947
+ total: nat;
948
+ withheld: nat;
949
+ };
897
950
  type Page_24 =
898
951
  record {
899
952
  items: vec AgentSpendRow;
@@ -1217,6 +1270,23 @@ type MemoryEviction =
1217
1270
  thinTail;
1218
1271
  };
1219
1272
  };
1273
+ type MemoryEntry =
1274
+ variant {
1275
+ decision: record {
1276
+ decision: text;
1277
+ rationale: text;
1278
+ };
1279
+ insight: record {
1280
+ content: text;
1281
+ topic: opt text;
1282
+ };
1283
+ preference: text;
1284
+ sessionSummary: record {
1285
+ date: opt text;
1286
+ platform: text;
1287
+ summary: text;
1288
+ };
1289
+ };
1220
1290
  type MemoryByteChunk =
1221
1291
  record {
1222
1292
  bytes: blob;
@@ -1361,6 +1431,22 @@ type Error =
1361
1431
  Refused: text;
1362
1432
  Unavailable: text;
1363
1433
  };
1434
+ type Entry__1 =
1435
+ record {
1436
+ active: bool;
1437
+ grant: variant {
1438
+ connected: SignIn;
1439
+ paired: AgentRecord;
1440
+ };
1441
+ inactiveReason: opt text;
1442
+ };
1443
+ type Entry =
1444
+ record {
1445
+ date: text;
1446
+ lastModifiedAtNs: int;
1447
+ path: text;
1448
+ platform: text;
1449
+ };
1364
1450
  type EnrolmentProof =
1365
1451
  record {
1366
1452
  enrolledKey: principal;
@@ -1431,7 +1517,7 @@ type Engram =
1431
1517
  /// nomination names. That check compares the caller inside the module, where
1432
1518
  /// test/key-replacement.test.mo runs it; this body names no roster gate, because the caller holds
1433
1519
  /// no role here until the move.
1434
- acceptAgentKeyNomination: (agentKey: principal) -> (Result_90);
1520
+ acceptAgentKeyNomination: (agentKey: principal) -> (Result_94);
1435
1521
  /// The person the owner asked again ACCEPTS: they become this engram's sign-in, and the sealed copy
1436
1522
  /// that came with the ask becomes the engram's (sealed for them). Until this call they have no power
1437
1523
  /// at all. Callable only by that person while the ask waits; refused (as at birth) if they are now
@@ -1515,7 +1601,7 @@ type Engram =
1515
1601
  };
1516
1602
  primaryType: text;
1517
1603
  verifyingContract: text;
1518
- }) -> (Result_88);
1604
+ }) -> (Result_92);
1519
1605
  /// ⟨0.16.0, L1⟩ THE ROLE-CONFLICT ARM, and why three refusals here are not the same refusal.
1520
1606
  ///
1521
1607
  /// This method had five distinct ways to say no through one `text`, and a caller could only tell
@@ -1567,7 +1653,7 @@ type Engram =
1567
1653
  /// owner's next Convert). THE RESIDUAL, stated: a removal landing DURING the cashier's own conversion call
1568
1654
  /// cannot stop that call — it finishes, and the reply (`finishedBeforeRemovalSeen`) and the record row say
1569
1655
  /// so. One inter-canister call, bounded by one cap.
1570
- agentConvertBalance: (token: text, amountE6: opt nat) -> (Result_86);
1656
+ agentConvertBalance: (token: text, amountE6: opt nat) -> (Result_90);
1571
1657
  /// Returns the write RECEIPT, not just the version.
1572
1658
  ///
1573
1659
  /// The receipt was always computed and then thrown away: MemoryRouter hands back
@@ -1584,6 +1670,15 @@ type Engram =
1584
1670
  /// subset rule, so it can only ride an interface break; this release is one.
1585
1671
  appendMemory: (path: text, content: blob, source: opt MemorySource) ->
1586
1672
  (Result);
1673
+ /// Append plaintext with a newline when the live file already has content. The separator and
1674
+ /// write are decided in one message, without requiring permission to read the existing file.
1675
+ /// Returns the write receipt and exact appended bytes so the writer can rebuild its evidence.
1676
+ /// Refuses encrypted memory; key-holding clients send their framed bytes through appendMemory.
1677
+ /// Same append permission, path rules, rate limit and writes-pause as appendMemory. No await.
1678
+ /// Callers: EngramClient.appendMemory for plaintext memory, and through it the local MCP server's
1679
+ /// append tool; the hosted MCP append calls the same private operation.
1680
+ appendMemoryText: (path: text, content: text, source: opt MemorySource) ->
1681
+ (Result_16);
1587
1682
  /// Replace the retained log prefix through `toSeq` with a single checkpoint.
1588
1683
  ///
1589
1684
  /// PREFIX-ONLY: there is no `fromSeq`, because the library made that unrepresentable rather than
@@ -1599,7 +1694,7 @@ type Engram =
1599
1694
  /// Gated on requireWritesNotPaused — unlike the export. This one destroys retained entries, which
1600
1695
  /// is exactly what a guardian pause exists to hold. No action alert is raised: the operation is
1601
1696
  /// owner-initiated, owner-only, and already chained into the audit log.
1602
- applyCondense: (toSeq: nat) -> (Result_85);
1697
+ applyCondense: (toSeq: nat) -> (Result_89);
1603
1698
  /// Owner-only: activate a guardian who has registered against an invite.
1604
1699
  ///
1605
1700
  /// Until this call the guardian is `#Pending` and can do NOTHING — registering is a claim, this
@@ -1680,13 +1775,13 @@ type Engram =
1680
1775
  ///
1681
1776
  /// The write half also refuses while writes are PAUSED.
1682
1777
  backupInit: (dbType: text, backupType: BackupType, parentBackupId:
1683
- opt text, sha256: text, backupLabel: opt text) -> (Result_55);
1778
+ opt text, sha256: text, backupLabel: opt text) -> (Result_58);
1684
1779
  /// Read one chunk of a finalized backup, by index.
1685
1780
  ///
1686
1781
  /// ⚠ GATED ON `read_backup`, which is NOT the permission the upload half uses — that one is
1687
1782
  /// `canAppendMemory`. Holding one says nothing about the other, deliberately: taking a backup and
1688
1783
  /// carrying it away are different authorities.
1689
- backupPullChunk: (backupId: text, chunkIndex: nat) -> (Result_72) query;
1784
+ backupPullChunk: (backupId: text, chunkIndex: nat) -> (Result_76) query;
1690
1785
  backupPushChunk: (backupId: text, chunkIndex: nat, data: blob) ->
1691
1786
  (Result_2);
1692
1787
  /// The OWNER cancels an agent's pending key nomination; the agent keeps its current key. Refused
@@ -1762,7 +1857,7 @@ type Engram =
1762
1857
  /// ⟨2026-10-29, review F7⟩ A name the owner gives meets the rule `renameAgent` applies: a line break
1763
1858
  /// or another control character is `#Invalid` (`People.nameRefusal`), as a rename to it would be.
1764
1859
  createAgentInvite: (name: text, permissions: AgentPermissions) ->
1765
- (Result_55);
1860
+ (Result_58);
1766
1861
  /// Owner-only: mint an invite for a GUARDIAN — an independent check on agents, not a
1767
1862
  /// co-owner and not a recovery agent.
1768
1863
  ///
@@ -1785,7 +1880,7 @@ type Engram =
1785
1880
  /// So an invite that fails to redeem for that reason is not a bad code. The rule exists because
1786
1881
  /// a check must be independent of the thing it checks.
1787
1882
  createGuardianInvite: (name: text, permissions: GuardianPermissions) ->
1788
- (Result_55);
1883
+ (Result_58);
1789
1884
  /// The sign-in GIVES ITSELF UP, or the person the owner asked again says no. ⟨the owner's ruling "1
1790
1885
  /// yes, but the child can ask again" — the child build's Challenge C3.1: whoever the kit names cannot
1791
1886
  /// otherwise refuse a seat they never agreed to⟩
@@ -1857,7 +1952,7 @@ type Engram =
1857
1952
  /// situation rather than a safety measure. It IS gated on requireMemoryAttached: a store that
1858
1953
  /// failed its integrity check must not attest anything it cannot vouch for.
1859
1954
  exportMemoryRange: (fromSeq: nat, toSeq: nat, authorFilter:
1860
- opt principal) -> (Result_84);
1955
+ opt principal) -> (Result_88);
1861
1956
  /// ⟨0.16.0, L2.2 — renamed from `guardianFreezePayments`⟩ The prefix LIED about who may call it.
1862
1957
  /// The gate is `requireOwnerOrGuardian`, and an owner freezing their own payments is the ordinary
1863
1958
  /// case — the guardian is the exceptional one. A name that says otherwise sends an owner looking
@@ -1905,7 +2000,7 @@ type Engram =
1905
2000
  /// Delivery status + config readback. Owner-only (the URL is a secret).
1906
2001
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1907
2002
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1908
- getActionAlertStatus: () -> (Result_73) query;
2003
+ getActionAlertStatus: () -> (Result_77) query;
1909
2004
  /// The agent-conversion rule's numbers.
1910
2005
  /// PUBLIC: the class of `getTopUpLimits` — a policy, nobody's data. ⟨2026-11-04, the market-route
1911
2006
  /// build: the marker's colon was missing, so the deployment's PUBLIC-rationale gate read the method as
@@ -1919,7 +2014,7 @@ type Engram =
1919
2014
  ///
1920
2015
  /// Refusal reason preserved from the trap: a grant is a power, and its absence and its
1921
2016
  /// concealment are different facts.
1922
- getAgentRevisablePaths: () -> (Result_66) query;
2017
+ getAgentRevisablePaths: () -> (Result_69) query;
1923
2018
  /// OWNER-ONLY: every engagement's seat weeks on this engram, with the agent's root — the day it
1924
2019
  /// paired, the days of its first and last payment signature, a 64-week map whose bit 0 is the week
1925
2020
  /// of the last one, and how many were produced. Never an amount, a recipient or a nonce.
@@ -1932,7 +2027,7 @@ type Engram =
1932
2027
  /// Two rows can name one root: an agent paired again after it left is a second engagement.
1933
2028
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1934
2029
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1935
- getAgentSeatWeeks: (start: nat, limit: nat) -> (Result_82) query;
2030
+ getAgentSeatWeeks: (start: nat, limit: nat) -> (Result_86) query;
1936
2031
  /// Owner: everything written into this engram by someone other than the owner since the last
1937
2032
  /// markAgentWritesReviewed() — agent appends/revisions AND paid-session appends (see
1938
2033
  /// qualifiesForReview for why those two families are recognised differently).
@@ -1943,7 +2038,7 @@ type Engram =
1943
2038
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1944
2039
  /// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
1945
2040
  /// engram is unchanged.
1946
- getAgentWriteReview: () -> (Result_81) query;
2041
+ getAgentWriteReview: () -> (Result_85) query;
1947
2042
  /// Why anchoring is or is not advancing. PUBLIC: ungated on purpose — detecting a stalled
1948
2043
  /// engram is the point, a gated read would fail-to-empty and hand a third party fabricated zeros,
1949
2044
  /// and none of these fields is a secret — `total` is already public via getCertifiedAuditHead.
@@ -1962,7 +2057,7 @@ type Engram =
1962
2057
  /// below serves the same head WITH the subnet certificate for a caller that needs to verify it
1963
2058
  /// was signed rather than asserted.
1964
2059
  getAuditHead: () -> (AuditHead) query;
1965
- getBackupMetadata: (backupId: text) -> (Result_80) query;
2060
+ getBackupMetadata: (backupId: text) -> (Result_84) query;
1966
2061
  /// ⟨2026-10-21, the owner's round-11 answer m: a backup-retention getter⟩ How many backups of
1967
2062
  /// `dbType` each creator keeps, and whether that is the default — the read `setBackupRetention`
1968
2063
  /// lacked, so "Keeps your newest 3" showed only on the phone that last set it.
@@ -1973,7 +2068,7 @@ type Engram =
1973
2068
  /// denied"), a revoked or resigned agent, a guardian (guardians take no backups), a stranger and
1974
2069
  /// the anonymous caller. A kind the setter would refuse is `#Invalid` here too
1975
2070
  /// (`Backup.getRetention`). Records nothing (a query).
1976
- getBackupRetention: (dbType: text) -> (Result_79) query;
2071
+ getBackupRetention: (dbType: text) -> (Result_83) query;
1977
2072
  /// The cashier this engram recognises as its rent biller — `null` until the registry pushes one.
1978
2073
  ///
1979
2074
  /// PUBLIC: a payer about to send money needs to know which cashier this engram will accept credit
@@ -1990,7 +2085,7 @@ type Engram =
1990
2085
  /// `verifyBirthChain` checks both. Refused to anyone else by the combinator (`#ownerOnly`).
1991
2086
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1992
2087
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1993
- getBirthChain: () -> (Result_78) query;
2088
+ getBirthChain: () -> (Result_82) query;
1994
2089
  /// ⟨2026-10-21, the owner's round-11 answer d⟩ Each brake: on or off, and while on, who pulled it
1995
2090
  /// LAST (their key and whether as owner or guardian), since when, and the reason they gave — the
1996
2091
  /// same person and time as the newest brake entry on the record (`RecordWords.BrakePull`). For the
@@ -1999,7 +2094,7 @@ type Engram =
1999
2094
  /// — an agent learns a brake is on from the refusal of what it tried, and needs no more). `pull`
2000
2095
  /// is null for a brake that is off, and for one carried on across the upgrade that added this
2001
2096
  /// read (who pulled it was not recorded then) — never a guessed pull.
2002
- getBrakes: () -> (Result_77) query;
2097
+ getBrakes: () -> (Result_81) query;
2003
2098
  /// ⟨0.16.0, L9/L10 — census row⟩ `Wire.CertifiedAuditHead`, not an anonymous record. The
2004
2099
  /// registry, market and cashier already served the shared type; the engram — the canister that
2005
2100
  /// IS the evidence product — was the one chain still answering in a shape of its own, missing
@@ -2022,13 +2117,13 @@ type Engram =
2022
2117
  /// query's state writes are discarded when it returns, and the `denied` call first written here
2023
2118
  /// recorded nothing while reading as if it did. The refusal is loud in the reply instead. WHAT
2024
2119
  /// WOULD MAKE THIS WRONG: a reason to record who asked — then this becomes an update that says so.
2025
- getChildAllowance: (agentPrincipal: principal) -> (Result_76) query;
2120
+ getChildAllowance: (agentPrincipal: principal) -> (Result_80) query;
2026
2121
  /// Owner-only, Billing-class: what opening an engram costs this engram, the balance below which an
2027
2122
  /// agent's request is refused, the balance now, and every agent's allowance. The console's cost
2028
2123
  /// sentence reads it. Cycles are owner-class information, as on the owner's console read.
2029
2124
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2030
2125
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2031
- getChildOpening: () -> (Result_75) query;
2126
+ getChildOpening: () -> (Result_79) query;
2032
2127
  /// Derive the key that opens the sealed copy, encrypted under the caller's transport public key —
2033
2128
  /// for the SIGN-IN alone (the combinator's `#ownerSignIn`; the key file is refused by name: only the
2034
2129
  /// sign-in opens the backup, and the key file holds the plaintext anyway). The derivation input is the
@@ -2046,7 +2141,7 @@ type Engram =
2046
2141
  /// `VetKeys.ManagementCanister.vetKdDeriveKey`. A query cannot await.
2047
2142
  /// Named callers: an owner console signed in as the sign-in (the browser's recovery), and the owner
2048
2143
  /// kit's `--recover-key` signed by a key-file sign-in.
2049
- getEncryptedKeyBackupKey: (transportPublicKey: blob) -> (Result_72);
2144
+ getEncryptedKeyBackupKey: (transportPublicKey: blob) -> (Result_76);
2050
2145
  /// Derive the shared memory-encryption key, encrypted under the caller's transport
2051
2146
  /// public key. Gated to owner + read-agents (the same principals allowed to read
2052
2147
  /// memory). The client decrypts it locally with its transport secret key.
@@ -2071,7 +2166,7 @@ type Engram =
2071
2166
  /// cost. Stated here because L7 requires the reason be readable from the interface rather than
2072
2167
  /// inferred by opening the body — which is exactly what had to happen to write this line.
2073
2168
  getEncryptedMemoryKey: (epoch: opt nat, transportPublicKey: blob) ->
2074
- (Result_72);
2169
+ (Result_76);
2075
2170
  /// ⟨0.16.0, owner ruling 2026-08-20 — option (a)⟩ `x402Support` REPORTS THE RAIL, not a constant.
2076
2171
  ///
2077
2172
  /// The card's config hardcodes `x402Support = true`, answering a buyer's question with a fact
@@ -2166,7 +2261,7 @@ type Engram =
2166
2261
  /// It refuses rather than half-answers: if either address cannot be derived the reply is
2167
2262
  /// `#Err`, never a record carrying an empty string (ic402's `getEvmAddress` answers `""` on a
2168
2263
  /// failed derivation — that is fail-to-empty on a money surface, and it stops here).
2169
- getEvmAddress: () -> (Result_74);
2264
+ getEvmAddress: () -> (Result_78);
2170
2265
  /// The owner's OWN EVM address, if they registered one — distinct from `getEvmAddress`, which is
2171
2266
  /// the address this canister derives for itself.
2172
2267
  ///
@@ -2184,7 +2279,7 @@ type Engram =
2184
2279
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2185
2280
  /// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
2186
2281
  /// engram is unchanged.
2187
- getEvmSignerAddress: () -> (Result_55);
2282
+ getEvmSignerAddress: () -> (Result_58);
2188
2283
  /// PUBLIC: where this chain begins, for the stranger deciding whether to trust it.
2189
2284
  ///
2190
2285
  /// The fourth of the four evidence methods (`getAuditHead`, `getCertifiedAuditHead`,
@@ -2193,7 +2288,7 @@ type Engram =
2193
2288
  /// cannot verify it, and nothing here identifies anybody.
2194
2289
  getGenesisNote: () -> (GenesisNote) query;
2195
2290
  /// A guardian's own channel status (their URL is their secret — each guardian sees only theirs).
2196
- getGuardianAlertStatus: () -> (Result_73) query;
2291
+ getGuardianAlertStatus: () -> (Result_77) query;
2197
2292
  /// The sealed copy itself — opaque bytes only the sign-in can open. Readable by the sign-in (it
2198
2293
  /// opens them with the key `getEncryptedKeyBackupKey` derives for it) and by the key file, which
2199
2294
  /// holds the plaintext already and so learns nothing — it reads them to compare with the copy the kit
@@ -2203,7 +2298,7 @@ type Engram =
2203
2298
  /// A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
2204
2299
  /// Named callers: the owner kit (`--recover-key`, and its check after sealing), and an owner console
2205
2300
  /// signed in as the sign-in (the browser's recovery).
2206
- getKeyBackupCiphertext: () -> (Result_72) query;
2301
+ getKeyBackupCiphertext: () -> (Result_76) query;
2207
2302
  /// Whether this engram holds a sealed copy of its owner's key, for whom, since when, whether it is
2208
2303
  /// sealed for the sign-in seated now, and whether a copy waits with an ask (`Types.KeyBackupStatus`).
2209
2304
  /// Readable by the key file and the sign-in (`#ownerOrSignIn`); refused loudly to anyone else
@@ -2212,7 +2307,7 @@ type Engram =
2212
2307
  /// A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
2213
2308
  /// Named callers: the owner kit after it opens an engram (it prints whether the copy is stored), and
2214
2309
  /// an owner console showing an engram opened through another (whether recovery can work).
2215
- getKeyBackupStatus: () -> (Result_71) query;
2310
+ getKeyBackupStatus: () -> (Result_75) query;
2216
2311
  /// BLS verification key under which the owner kit seals the backup (`IbeCiphertext.encrypt` to the
2217
2312
  /// sign-in's principal) and the opener verifies the derived key. Served on-canister so the kit never
2218
2313
  /// has to know which master key this network uses (the spec's Q-K3: a wrong guess would seal a copy
@@ -2256,7 +2351,7 @@ type Engram =
2256
2351
  /// never renumbered: the next page starts at the last version returned plus one. Defaults
2257
2352
  /// return the whole history of any file a pre-FD engram could have held.
2258
2353
  getMemoryHistory: (path: text, start: opt nat, max: opt nat) ->
2259
- (Result_70) query;
2354
+ (Result_74) query;
2260
2355
  /// PUBLIC: the epoch alone, and deliberately nothing else (rotation study D4). A `rotatedAt[]`
2261
2356
  /// history would be a public, fleet-enumerable feed of when each owner terminated a trust
2262
2357
  /// relationship — readable by, among others, the party just terminated.
@@ -2297,7 +2392,7 @@ type Engram =
2297
2392
  /// Refusal reasons of both merge: an empty policy reads as "nothing is capped, every version kept
2298
2393
  /// forever" — a claim about what this engram will DESTROY — and an empty guard list reads as
2299
2394
  /// "nothing is held back".
2300
- getMemoryRetentionPolicy: () -> (Result_69) query;
2395
+ getMemoryRetentionPolicy: () -> (Result_73) query;
2301
2396
  /// The metrics reader this engram answers — `null` until the spawning registry names one.
2302
2397
  ///
2303
2398
  /// PUBLIC: an owner deciding whether to switch the read off needs to know who it is, and anyone
@@ -2310,7 +2405,7 @@ type Engram =
2310
2405
  /// see: the only row it can ever return is the caller's own, so "you are not a guardian here" is
2311
2406
  /// a fact about the caller, told to the caller. There is nothing to leak by omission — which is
2312
2407
  /// the test the #NotFound arm sets.
2313
- getMyGuardianStatus: () -> (Result_18) query;
2408
+ getMyGuardianStatus: () -> (Result_19) query;
2314
2409
  /// ⟨0.16.0, NEW⟩ The gated half of the status() split.
2315
2410
  ///
2316
2411
  /// Every field is bare — no masking, no `authorized` discriminator — because reaching this record
@@ -2320,7 +2415,7 @@ type Engram =
2320
2415
  /// was `nat`, then widened to `opt nat` so a refusal could be `null`, which broke every published
2321
2416
  /// client (rule 4) and bought a masked answer nobody had asked for — the census could not even
2322
2417
  /// find a consumer that read the masked `0`. Behind a gate there is nobody to mask it from.
2323
- getOwnerConsole: () -> (Result_68) query;
2418
+ getOwnerConsole: () -> (Result_72) query;
2324
2419
  /// The engram's sign-in, as `Types.OwnerSignInView` describes it: whether this engram was opened
2325
2420
  /// through another, who its sign-in is, whether the caller is it, and any decline or waiting ask.
2326
2421
  /// Readable by the owner's key, the sign-in, and the person a waiting ask goes to (they need to see
@@ -2329,7 +2424,12 @@ type Engram =
2329
2424
  /// A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
2330
2425
  /// Named callers: an owner console showing an engram opened through another (who signs in, and a
2331
2426
  /// waiting ask with Accept and Decline), and the owner kit after it opens one.
2332
- getOwnerSignIn: () -> (Result_67) query;
2427
+ getOwnerSignIn: () -> (Result_71) query;
2428
+ /// Read the four profile fields in one bounded batch. Raw per-field results preserve SDK
2429
+ /// decryption and first-failure ordering; only an explicit NotFound means an unset field.
2430
+ /// Query reads retain existing permission and owner visibility, without changing read counts.
2431
+ /// Callers: EngramClient.getProfile (ProfileManager.getProfile, the local MCP profile tool).
2432
+ getProfile: () -> (Result_70) query;
2333
2433
  /// Owner + agents only (agents need it to avoid writing protected paths).
2334
2434
  ///
2335
2435
  /// A NAMED RECORD, not a Page: the setter replaces this list wholesale, so there is no window to
@@ -2341,7 +2441,7 @@ type Engram =
2341
2441
  /// path on this engram is protected", and an agent consults this list precisely to avoid
2342
2442
  /// writing one — so a fabricated empty here does not merely misinform, it invites the write the
2343
2443
  /// list exists to prevent.
2344
- getProtectedPaths: () -> (Result_66) query;
2444
+ getProtectedPaths: () -> (Result_69) query;
2345
2445
  /// What an approval card shows beside a payment to `payTo` (`Types.RecipientHistory`): whether an x402
2346
2446
  /// signature from this engram has paid it before and since when, whether it is a listed seller and
2347
2447
  /// counts now, and whether the history is full (then "not paid before" may be one it forgot). Read
@@ -2352,7 +2452,7 @@ type Engram =
2352
2452
  /// times, largest $12"; the history forgets the address paid longest ago when full.
2353
2453
  /// ⟨2026-11-03, the pre-gate fixes⟩ And when it was LAST paid (`lastPaidAtNs`; null when never).
2354
2454
  /// Named callers: an owner console's approval card for a payment request.
2355
- getRecipientHistory: (payTo: text) -> (Result_65) query;
2455
+ getRecipientHistory: (payTo: text) -> (Result_68) query;
2356
2456
  /// Whether the metrics reader's read is answered — `true` from birth.
2357
2457
  ///
2358
2458
  /// PUBLIC: the promise that an owner can switch this read off can be checked only if the switch
@@ -2366,7 +2466,7 @@ type Engram =
2366
2466
  /// (ADR-0002) — the signers refuse in that state too, so the refusal is the truth on Billing.
2367
2467
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2368
2468
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2369
- getSigningFloor: () -> (Result_64) query;
2469
+ getSigningFloor: () -> (Result_67) query;
2370
2470
  /// The registry that spawned this engram, if it recorded one.
2371
2471
  ///
2372
2472
  /// PUBLIC: it is the provenance claim. An engram asserting it is part of a fleet, under that
@@ -2389,7 +2489,7 @@ type Engram =
2389
2489
  /// "none" and a spend of 0 are both real answers, so a fabricated one would be read as fact.
2390
2490
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2391
2491
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2392
- getSpendCeiling: () -> (Result_63) query;
2492
+ getSpendCeiling: () -> (Result_66) query;
2393
2493
  /// Read the caps in force for a caller.
2394
2494
  ///
2395
2495
  /// OWNER-ONLY, and this is where it diverges from the market's inbound twin, which is public.
@@ -2406,8 +2506,8 @@ type Engram =
2406
2506
  /// defaults — a default-looking answer would understate the real limits to anyone probing them." The
2407
2507
  /// refusal itself is now the combinator's (`#Refused getSpendPolicy: …`, `requireOwner`'s words), and
2408
2508
  /// an engram with no owner yet is refused the same way rather than answered `#Conflict`.
2409
- getSpendPolicy: (caller: opt principal) -> (Result_62) query;
2410
- getStorageStats: () -> (Result_61) query;
2509
+ getSpendPolicy: (caller: opt principal) -> (Result_65) query;
2510
+ getStorageStats: () -> (Result_64) query;
2411
2511
  /// Timer arm-state. PUBLIC and deliberately so: these timers are self-arming to save cycles,
2412
2512
  /// and an optimisation nobody can verify is an optimisation nobody should trust. Cheap to read,
2413
2513
  /// leaks nothing (booleans about our own scheduling).
@@ -2490,12 +2590,21 @@ type Engram =
2490
2590
  /// ⟨L7⟩ MARKER ADDED 2026-08-23, reasoning above UNCHANGED — this block already said "Stays an
2491
2591
  /// UPDATE, marked per L7: it awaits three ICRC-1 ledgers". It was marked in prose and invisible
2492
2592
  /// to any gate; the glyph is what `scripts/check-update-for-read.mjs` matches.
2493
- getWalletBalances: () -> (Result_60);
2593
+ getWalletBalances: () -> (Result_63);
2594
+ /// Cycles-only getter used by EngramClient.walletBalance and its stdio MCP/OpenClaw callers.
2595
+ /// The earlier walletBalance/walletBalances one-letter pair remains retired: this name states
2596
+ /// the unit, while getWalletBalances retains the distinct full token-wallet operation.
2597
+ /// A token-ledger outage cannot prevent this local fuel read; it uses the same operation as
2598
+ /// remote engram_wallet_balance and never sends an outgoing call.
2599
+ /// ⟨L7⟩ UPDATE despite having no await: preserve the existing wallet facade's per-agent quota
2600
+ /// charge and lastSeenNs update, including when wallet permission is subsequently refused.
2601
+ /// A query would discard those writes and silently loosen the agent's existing rate limit.
2602
+ getWalletCycles: () -> (Result_15);
2494
2603
  /// Refusal reason preserved, and it is the clearest case of why a masked read is worse than no
2495
2604
  /// read: three empty strings with `configured = false` is a VALID-LOOKING answer meaning "this
2496
2605
  /// engram has no World ID configuration" — handed to a caller who merely lacks a grant. The
2497
2606
  /// fabrication is indistinguishable from the truth by construction.
2498
- getWorldIdConfig: () -> (Result_59) query;
2607
+ getWorldIdConfig: () -> (Result_62) query;
2499
2608
  /// ⟨L7⟩ UPDATE, NOT QUERY: this awaits THREE system calls — `raw_rand()` for the nonce,
2500
2609
  /// `Call.signWithEcdsa` for the signature, and `worldIdRpPublicKey()` for the derived key. A
2501
2610
  /// query can do none of them.
@@ -2504,7 +2613,7 @@ type Engram =
2504
2613
  /// Valid iff the derived signer address (getWorldIdRpSignerAddress) is registered for this rp_id in
2505
2614
  /// the World Developer Portal. Short-lived (300s TTL, idkit-server's default) and single-purpose —
2506
2615
  /// it authorizes opening one verification request, nothing else.
2507
- getWorldIdRpContext: () -> (Result_58);
2616
+ getWorldIdRpContext: () -> (Result_61);
2508
2617
  /// Owner-only: the EVM address derived from the engram's dedicated World ID RP signing key (the
2509
2618
  /// "worldid-rp" tECDSA path). Register THIS address as the rp_id's signer in the World Developer
2510
2619
  /// Portal — the engram never holds or exports a private key (only threshold shares exist, on the
@@ -2517,7 +2626,7 @@ type Engram =
2517
2626
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2518
2627
  /// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
2519
2628
  /// engram is unchanged.
2520
- getWorldIdRpSignerAddress: () -> (Result_55);
2629
+ getWorldIdRpSignerAddress: () -> (Result_58);
2521
2630
  /// The verified IDKitResult, verbatim, as World's /api/v4/verify accepted it — the re-checkable
2522
2631
  /// artifact behind verifiedHuman. Role-gated because it carries the NULLIFIER.
2523
2632
  /// `Result<opt Text>` — and the double wrapper is the entire point, not redundancy.
@@ -2536,7 +2645,7 @@ type Engram =
2536
2645
  /// `///`, so the dead name was PUBLISHED in engram.did and pointed every client at a method the
2537
2646
  /// canister does not serve. The tombstones below and at `about()` are historical and correct as
2538
2647
  /// written; this one was present tense, which is the difference that matters.⟩
2539
- getWorldIdVerification: () -> (Result_57) query;
2648
+ getWorldIdVerification: () -> (Result_60) query;
2540
2649
  /// ⟨0.16.0, L1⟩ THE EMERGENCY FAMILY. Every refusal below is `#Refused` or `#NotFound`, and the
2541
2650
  /// absence of a `#Conflict` here is the point: these are the calls someone makes while something
2542
2651
  /// is going wrong, and the only two answers that help are "you may not do this" and "there is
@@ -2614,7 +2723,7 @@ type Engram =
2614
2723
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2615
2724
  /// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
2616
2725
  /// engram is unchanged.
2617
- isEvmAddressCached: () -> (Result_56) query;
2726
+ isEvmAddressCached: () -> (Result_59) query;
2618
2727
  /// Issue an OAuth authorization code. Called by an OAuth client's sign-in bridge
2619
2728
  /// (an `/auth/connector`-style route) after II authentication. The client then
2620
2729
  /// redirects the user's browser to `redirectUri` with `?code=<this>` so the
@@ -2622,7 +2731,7 @@ type Engram =
2622
2731
  ///
2623
2732
  /// Owner-only: only the engram owner can authorize a Connector install.
2624
2733
  issueAuthCode: (redirectUri: text, scope: text, codeChallenge: text,
2625
- clientId: opt text) -> (Result_55);
2734
+ clientId: opt text) -> (Result_58);
2626
2735
  /// ⟨0.16.0⟩ `getCycleSnapshotSource` DELETED — folded into `CycleSnapshot.source`, one label per
2627
2736
  /// ROW. A single label for a whole ring misattributes every row recorded under the other source,
2628
2737
  /// and the source flips by design (self-call first, balance on fallback). Its documentation of
@@ -2636,7 +2745,15 @@ type Engram =
2636
2745
  /// Refusal reason preserved, and it is the sharpest of this family: a masked `[]` reads as a
2637
2746
  /// DORMANT engram and corrupts retention math — a fabricated empty here does not just misinform a
2638
2747
  /// reader, it feeds a wrong number into a decision about destroying data.
2639
- listActivitySnapshots: (start: nat, limit: nat) -> (Result_54) query;
2748
+ listActivitySnapshots: (start: nat, limit: nat) -> (Result_57) query;
2749
+ /// The owner or a seated owner sign-in reads paired and connected grants in one typed roster.
2750
+ /// Existing lists keep their signatures and records. Rows retain each list's relative order:
2751
+ /// paired first, then sign-ins. `active` means grant status/expiry/issuer standing only, not
2752
+ /// permission to execute every operation or spend through a freeze. No credential is rewritten.
2753
+ /// This new method carries the tagged shape rather than widening a shipped response variant.
2754
+ /// Callers: an owner console's agent list (paired agents and sign-ins on one page, with the
2755
+ /// admission count), read by the owner or a seated sign-in.
2756
+ listAgentRoster: (start: nat, limit: nat) -> (Result_56) query;
2640
2757
  /// ⟨2026-10-21, round 11 item l — the owner's answer "round 11: a, b, c, d, e, f, g, h, i, j, k, l,
2641
2758
  /// m."⟩ OWNER-ONLY: what each agent has spent today, beside the daily limit in force for it, so the
2642
2759
  /// agent rows can say "$0.50 of $5.00 today" where they said a count of payments. Read from the
@@ -2655,7 +2772,7 @@ type Engram =
2655
2772
  /// the calling key, or under another day boundary.
2656
2773
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2657
2774
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2658
- listAgentSpendToday: (start: nat, limit: nat) -> (Result_53) query;
2775
+ listAgentSpendToday: (start: nat, limit: nat) -> (Result_55) query;
2659
2776
  /// ⟨0.16.0⟩ THE PAGE EXEMPLAR. Trap → `#Refused`, bare array → `Result<Page<T>>` (L1 + L3).
2660
2777
  ///
2661
2778
  /// The refusal prose that used to be `gatedTrap`'s `whyNotEmpty` argument is not lost — it is why
@@ -2672,7 +2789,7 @@ type Engram =
2672
2789
  /// A method that filters rows by caller sets it — see L1's row-level honesty rule.
2673
2790
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2674
2791
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2675
- listAgents: (start: nat, limit: nat) -> (Result_52) query;
2792
+ listAgents: (start: nat, limit: nat) -> (Result_54) query;
2676
2793
  /// The GUARDIAN-audience projection of the agent roster — three fields, not the full record.
2677
2794
  ///
2678
2795
  /// Two audiences, two methods (L1/L8), rather than one method masking fields by caller: a
@@ -2684,7 +2801,7 @@ type Engram =
2684
2801
  /// Refusal reason preserved: `[]` reads as "this engram has no agents", and this is the list a
2685
2802
  /// guardian consults BEFORE REVOKING ONE. A fabricated empty here does not merely misinform —
2686
2803
  /// it tells someone acting under emergency powers that there is nothing to act on.
2687
- listAgentsForGuardian: (start: nat, limit: nat) -> (Result_51) query;
2804
+ listAgentsForGuardian: (start: nat, limit: nat) -> (Result_53) query;
2688
2805
  /// Owner-only: rows carry caller, amount, operation and free-text rationale. The SDK omits it.
2689
2806
  ///
2690
2807
  /// The optional leading filter SURVIVES the L3 reshape — ratified (census tier-2 #8) rather than
@@ -2697,7 +2814,7 @@ type Engram =
2697
2814
  ///
2698
2815
  /// Refusal reason preserved: `[]` reads as "nothing is awaiting the owner's decision".
2699
2816
  listApprovalRequests: (statusFilter: opt ApprovalStatus, start: nat,
2700
- limit: nat) -> (Result_37) query;
2817
+ limit: nat) -> (Result_39) query;
2701
2818
  /// ⟨0.16.0⟩ `total` IS THE HEAD COUNTER, and on this method that is the entire point.
2702
2819
  ///
2703
2820
  /// The audit log is a bounded RING: it trims its tail, so "rows you can read" and "entries that
@@ -2731,7 +2848,7 @@ type Engram =
2731
2848
  /// where this record switched to the hash-first rule. A sealed row costs one SHA-256 of its body
2732
2849
  /// at read time; nothing new is stored. WHAT WOULD MAKE THIS WRONG: a sealed row carrying any part
2733
2850
  /// of a body, or a stranger reaching `items` (test/record-view.test.mo pins both).
2734
- listAuditEntries: (start: nat, limit: nat) -> (Result_50) query;
2851
+ listAuditEntries: (start: nat, limit: nat) -> (Result_52) query;
2735
2852
  /// ⟨0.16.0, L1 + L3 — census-ruled⟩ THE TWO-MECHANISM EXCEPTION DISSOLVES.
2736
2853
  ///
2737
2854
  /// This method used to answer THREE ways to one question: a list, an `#Err` text, and a trap,
@@ -2755,7 +2872,7 @@ type Engram =
2755
2872
  /// `dbTypeFilter` DIES on the wire (census). The capability does not: `EngramClient.listBackups`
2756
2873
  /// keeps its optional filter and applies it to the page, so no caller loses the ability to ask
2757
2874
  /// "backups of this database" — it stops being a thing the canister has to page around.
2758
- listBackups: (start: nat, limit: nat) -> (Result_49) query;
2875
+ listBackups: (start: nat, limit: nat) -> (Result_51) query;
2759
2876
  /// List all bearer tokens — Active, Revoked, and Expired. Owner uses this in
2760
2877
  /// the dashboard to show installed Connectors (claude.ai, Claude Desktop, etc.).
2761
2878
  /// Refusal reason preserved from the trap: `[]` reads as "no connector is installed on this
@@ -2767,7 +2884,7 @@ type Engram =
2767
2884
  /// the same honesty the store gained on 2026-08-17.
2768
2885
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2769
2886
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2770
- listBearerTokens: (start: nat, limit: nat) -> (Result_48) query;
2887
+ listBearerTokens: (start: nat, limit: nat) -> (Result_50) query;
2771
2888
  /// The condense checkpoints in the retained log at or above `startSeq`, oldest first.
2772
2889
  ///
2773
2890
  /// ⟨0.16.0, NEW⟩ The other half of the split above. A checkpoint is the only surviving record of a
@@ -2777,18 +2894,18 @@ type Engram =
2777
2894
  ///
2778
2895
  /// Owner-only like every other archive surface, and for the same structural reason: these rows
2779
2896
  /// carry the chain positions and roots of entries whose paths were inside the hash preimage.
2780
- listCondenseCheckpoints: (startSeq: nat, max: nat) -> (Result_47) query;
2897
+ listCondenseCheckpoints: (startSeq: nat, max: nat) -> (Result_49) query;
2781
2898
  /// ⟨0.16.0⟩ `metrics()` DELETED — absorbed by `about()`.
2782
2899
  ///
2783
2900
  /// Two public projections of one canister (L2.2): `metrics()` and `status()` both answered "what
2784
2901
  /// is this engram like" and disagreed on which counters they carried, so a consumer had to fetch
2785
2902
  /// both and know which one owned each field. Every field here survives on `about()`, day-flooring
2786
2903
  /// included.
2787
- listCycleSnapshots: (start: nat, limit: nat) -> (Result_46) query;
2904
+ listCycleSnapshots: (start: nat, limit: nat) -> (Result_48) query;
2788
2905
  /// Same `withheld` treatment as listMemoryFiles — the tombstone listing filtered reserved paths
2789
2906
  /// for non-owners just as silently, and a caller could not tell a filtered tombstone list from a
2790
2907
  /// complete one. Counted before slicing, so policy-hidden rows never blur into paging.
2791
- listDeletedMemoryFiles: (start: nat, limit: nat) -> (Result_45) query;
2908
+ listDeletedMemoryFiles: (start: nat, limit: nat) -> (Result_47) query;
2792
2909
  /// Stays on the engram under B1 (hybrid): withdrawal custody does not leave.
2793
2910
  ///
2794
2911
  /// NAMED item, not a `(Text, Int)` tuple. The Int is an activation time, and a bare Int beside a
@@ -2803,7 +2920,7 @@ type Engram =
2803
2920
  /// The item's field is `value`, not `address`: a list may hold a venue value that is no address.
2804
2921
  /// Readable by the owner, an active agent or an active guardian, as the old list was.
2805
2922
  listEip712Destinations: (typeId: blob, start: nat, limit: nat) ->
2806
- (Result_44) query;
2923
+ (Result_46) query;
2807
2924
  /// The registered shapes — E3: encodeTypeString is the display artifact, verbatim.
2808
2925
  /// Stays on the engram under B1 (hybrid): EIP-712 signing is custody, and custody does not leave.
2809
2926
  ///
@@ -2814,20 +2931,20 @@ type Engram =
2814
2931
  /// ⟨2026-10-14, the owner's ruling 3A⟩ Each row carries its per-field rules (`fieldRules`), joined in
2815
2932
  /// from `eip712FieldRules` — they are part of what the type authorises, so a reader of the list must
2816
2933
  /// not have to make a second call to learn them. The row type is `Eip712TypeView`.
2817
- listEip712Types: (start: nat, limit: nat) -> (Result_43) query;
2934
+ listEip712Types: (start: nat, limit: nat) -> (Result_45) query;
2818
2935
  /// ⟨2026-10-21, round 11 c⟩ Guardians' disputes, oldest first. Same visibility as
2819
2936
  /// `listRepudiations` and `listRecordNotes`: the owner and ACTIVE guardians read the rows; an
2820
2937
  /// agent gets an empty page whose `withheld` counts them (ruling 16 B holds — a dispute is the
2821
2938
  /// guardian's entry, not the agent's); a stranger, a pending guardian and the anonymous caller are
2822
2939
  /// refused.
2823
- listGuardianDisputes: (start: nat, limit: nat) -> (Result_42) query;
2940
+ listGuardianDisputes: (start: nat, limit: nat) -> (Result_44) query;
2824
2941
  /// Accessible by owner and guardians.
2825
2942
  ///
2826
2943
  /// Refusal reason carried over from the trap, because it is the sharpest example of why this
2827
2944
  /// surface may not fail soft: `[]` reads as "this engram has nobody who can freeze payments or
2828
2945
  /// pause writes" — a claim about who can STOP it. A caller who cannot tell that from "you may not
2829
2946
  /// see the roster" has been told the engram is unguarded when it may be fully guarded.
2830
- listGuardians: (start: nat, limit: nat) -> (Result_41) query;
2947
+ listGuardians: (start: nat, limit: nat) -> (Result_43) query;
2831
2948
  /// The export receipts in the retained log at or above `startSeq`, oldest first.
2832
2949
  ///
2833
2950
  /// ⟨0.16.0, L3⟩ ONE LIST, ONE QUESTION. This method used to return receipts AND checkpoints
@@ -2843,7 +2960,7 @@ type Engram =
2843
2960
  ///
2844
2961
  /// Read `MemoryRouter.ReceiptPage` before reading `page.total` as a receipt count. It is not one;
2845
2962
  /// it is the chain's length, and the declaration says why.
2846
- listMemoryExportReceipts: (startSeq: nat, max: nat) -> (Result_40) query;
2963
+ listMemoryExportReceipts: (startSeq: nat, max: nat) -> (Result_42) query;
2847
2964
  /// ⟨0.16.0⟩ THE `withheld` EXEMPLAR — L1 names this exact method as the defect it fixes.
2848
2965
  ///
2849
2966
  /// A non-owner's answer silently dropped every `config/` and `secrets/` row. Not "refused the
@@ -2868,7 +2985,7 @@ type Engram =
2868
2985
  /// the rows of THIS page (`MemoryRouter.info`), after the slice, so the cost is one lookup per
2869
2986
  /// row served, never one per file stored. A WIDENED REPLY: a reader that decodes the row by
2870
2987
  /// position rather than by field name breaks — none in this repository does.
2871
- listMemoryFiles: (start: nat, limit: nat) -> (Result_39) query;
2988
+ listMemoryFiles: (start: nat, limit: nat) -> (Result_41) query;
2872
2989
  /// One page of the memory log, seq-ordered, optionally narrowed to one author.
2873
2990
  ///
2874
2991
  /// THE WINDOW IS THE CURSOR, and the page now states it. The window is
@@ -2894,7 +3011,7 @@ type Engram =
2894
3011
  /// with the disclosures that make the page verifiable — the hidden-bound defect the census itself
2895
3012
  /// names on previewCondense's row.
2896
3013
  listMemoryLog: (startSeq: nat, max: nat, authorFilter: opt principal) ->
2897
- (Result_38) query;
3014
+ (Result_40) query;
2898
3015
  /// The caller's OWN spend-approval requests. ⟨0.16.0, L1 + L3 — fixed 2026-08-18⟩
2899
3016
  ///
2900
3017
  /// Two defects in seven lines, and the first is the one this release exists to remove:
@@ -2911,7 +3028,7 @@ type Engram =
2911
3028
  /// to see, so `total` over their own rows is the honest count and nothing is hidden FROM them.
2912
3029
  /// (The unbounded MAP is filed separately — pruning an approval record destroys evidence of what
2913
3030
  /// was asked, which is a retention ruling rather than a shape fix.)
2914
- listMyApprovalRequests: (start: nat, limit: nat) -> (Result_37) query;
3031
+ listMyApprovalRequests: (start: nat, limit: nat) -> (Result_39) query;
2915
3032
  /// The payer's own sessions, live ones first. PAYER-SCOPED: a caller sees only their own, which
2916
3033
  /// is why this needs no role — a session id is not a secret from the person who paid for it.
2917
3034
  ///
@@ -2920,7 +3037,7 @@ type Engram =
2920
3037
  /// It took no arguments, and a cursor added after the freeze is an argument-list change every
2921
3038
  /// client would break on — the market paged its own pending withdrawals before its cut for the
2922
3039
  /// same reason. The order is the order sessions were opened.
2923
- listMySessions: (start: nat, limit: nat) -> (Result_36) query;
3040
+ listMySessions: (start: nat, limit: nat) -> (Result_38) query;
2924
3041
  ///
2925
3042
  /// ⟨0.16.0, L3⟩ Paged and enveloped like every other `list*`, and the envelope here is uniformity
2926
3043
  /// rather than gating: this method cannot refuse anybody, so `#Err` is unreachable on it. That is
@@ -2933,7 +3050,7 @@ type Engram =
2933
3050
  /// asked by strangers. `verifyEngramActiveOwner` on the registry answers only about the owner
2934
3051
  /// IT recorded, so this chain is what a caller composes with when currency matters — which it
2935
3052
  /// cannot do if it needs a role here.
2936
- listOwnershipTransfers: (start: nat, limit: nat) -> (Result_35) query;
3053
+ listOwnershipTransfers: (start: nat, limit: nat) -> (Result_37) query;
2937
3054
  /// ⟨2026-09-29, the platform's question from the build review⟩ OWNER-ONLY: how many payment
2938
3055
  /// signatures each agent has obtained today, and the daily limit (200, `PaymentSignCap`). The
2939
3056
  /// owner's console stated the rule and showed no number, because nothing served one; a number it
@@ -2951,7 +3068,7 @@ type Engram =
2951
3068
  /// (`PaymentSignCap.marketplaceRow`). Null when no marketplace is set.
2952
3069
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2953
3070
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2954
- listPaymentSignatureCounts: (start: nat, limit: nat) -> (Result_34) query;
3071
+ listPaymentSignatureCounts: (start: nat, limit: nat) -> (Result_36) query;
2955
3072
  /// Agent records removed by a reset. Each row is a NAMED record with the fields `principal`,
2956
3073
  /// `name`, `registeredAt` and `purgedAt` — read them BY NAME, never by position.
2957
3074
  /// ⟨2026-09-29, the vocabulary ruling: pairing is the one verb that admits an agent⟩ The field
@@ -2993,7 +3110,7 @@ type Engram =
2993
3110
  /// served as they are.
2994
3111
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2995
3112
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2996
- listPurgedAgents: (start: nat, limit: nat) -> (Result_33) query;
3113
+ listPurgedAgents: (start: nat, limit: nat) -> (Result_35) query;
2997
3114
  /// ⟨0.16.0⟩ ONE ACCESSOR, folding `readReadLog` and `getDenialLog` — and the fold only became
2998
3115
  /// safe because of a change made earlier in this same leg.
2999
3116
  ///
@@ -3055,13 +3172,13 @@ type Engram =
3055
3172
  /// on the chained record — the same `RecordView` filter, and `withheld` counts what it removed
3056
3173
  /// together with what `successFilter` removed. WHAT WOULD MAKE THIS WRONG: see `listAuditEntries`.
3057
3174
  listReadLog: (successFilter: opt bool, start: nat, limit: nat) ->
3058
- (Result_32) query;
3175
+ (Result_34) query;
3059
3176
  /// ⟨2026-10-21, round 11 b⟩ The owner's notes, oldest first. Same visibility as
3060
3177
  /// `listRepudiations`, for the same reason: the owner and ACTIVE guardians read the rows; an agent
3061
3178
  /// reads only the entries it caused (follow-up 16 B), and every note is the owner's, so an agent
3062
3179
  /// gets an empty page whose `withheld` counts the notes in its window — never "there are none". A
3063
3180
  /// stranger, a pending guardian and the anonymous caller are refused.
3064
- listRecordNotes: (start: nat, limit: nat) -> (Result_31) query;
3181
+ listRecordNotes: (start: nat, limit: nat) -> (Result_33) query;
3065
3182
  /// Same visibility as listAuditEntries: the owner, this engram's agents, and ACTIVE guardians
3066
3183
  /// see disputes. An unauthorized read REFUSES — it does not return an empty list, because an
3067
3184
  /// empty list reads as "no disputes have been filed", which is a claim, not an absence of one.
@@ -3076,14 +3193,14 @@ type Engram =
3076
3193
  /// window — which says disputes exist without showing them, never "none have been filed". WHAT
3077
3194
  /// WOULD MAKE THIS WRONG: a ruling that an agent may see the disputes of its own writes; this would
3078
3195
  /// then have to look up each disputed version's writer, which it does not do today.
3079
- listRepudiations: (start: nat, limit: nat) -> (Result_30) query;
3196
+ listRepudiations: (start: nat, limit: nat) -> (Result_32) query;
3080
3197
  /// The seller list, a page at a time, as `Types.SellerView` (a raise whose wait is over shown applied;
3081
3198
  /// `liveNow` — false for every row while an engram opened through another has no sign-in seated; what
3082
3199
  /// x402 reserved for each today). For the key file and the sign-in in an engram opened
3083
3200
  /// through another, the owner in a first engram; refused loudly to anyone else — never an empty page,
3084
3201
  /// which would read as "no sellers". A QUERY: the refusal is in the reply, not the denial log.
3085
3202
  /// Named callers: an owner console's seller list.
3086
- listSellers: (start: nat, limit: nat) -> (Result_29) query;
3203
+ listSellers: (start: nat, limit: nat) -> (Result_31) query;
3087
3204
  /// ⟨2026-10-21, the owner's round-11 answer f⟩ OWNER-ONLY: the sign-ins, each with the name its app
3088
3205
  /// registered. The same tokens, in the same order and paged the same way, as `listBearerTokens`,
3089
3206
  /// each beside `clientName` — the RFC 7591 `client_name` the app registered when the token was
@@ -3094,7 +3211,7 @@ type Engram =
3094
3211
  /// the anonymous caller are refused, by `listBearerTokens`' own gate and for its reason.
3095
3212
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
3096
3213
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
3097
- listSignIns: (start: nat, limit: nat) -> (Result_28) query;
3214
+ listSignIns: (start: nat, limit: nat) -> (Result_30) query;
3098
3215
  /// Owner: advance the review cursor — "I have seen everything up to and including uptoAuditId"
3099
3216
  /// (null = everything at the current head). Bounded so the attestation can never cover entries
3100
3217
  /// the console did not render; clamped monotonic (the cursor never moves backward) and to the
@@ -3122,7 +3239,7 @@ type Engram =
3122
3239
  /// the caps alone no longer read as money an agent can spend. `People.SpendState` names each one.
3123
3240
  /// ⟨2026-10-29, review F2⟩ And which whole-key refusal stops every payment now, if one does
3124
3241
  /// (`paymentsStoppedBy`: the brake, the signing floor, the daily count of payment signatures).
3125
- myGrant: () -> (Result_27) query;
3242
+ myGrant: () -> (Result_29) query;
3126
3243
  /// The AGENT's current key nominates the key that will replace it. Nothing moves yet: the new
3127
3244
  /// key must accept, by its own call, within 24 hours (`acceptAgentKeyNomination`). One pending
3128
3245
  /// nomination per agent — a new one replaces the earlier one, and the record says which. Refused,
@@ -3178,8 +3295,8 @@ type Engram =
3178
3295
  /// `sysOpenChild`). An rc.21 kit calling the old name is rejected
3179
3296
  /// (IC0536) with nothing spent; it can never open an engram without a sign-in by accident.
3180
3297
  /// Named caller: the owner kit's `open-engram` command, signed by the agent's session key.
3181
- openChild: (req: record {signIn: opt principal;}) -> (Result_26);
3182
- openSession: (config: SessionConfig, sig: PaymentSignature) -> (Result_25);
3298
+ openChild: (req: record {signIn: opt principal;}) -> (Result_28);
3299
+ openSession: (config: SessionConfig, sig: PaymentSignature) -> (Result_27);
3183
3300
  /// Withdraw tokens to the owner's principal. This is the ONLY way to
3184
3301
  /// move tokens out of the engram to an external address, and the
3185
3302
  /// destination is always hardcoded to the owner.
@@ -3244,13 +3361,19 @@ type Engram =
3244
3361
  pairAgent: (arg: record {
3245
3362
  code: text;
3246
3363
  enrolment: Enrolment;
3247
- }) -> (Result_24);
3364
+ }) -> (Result_26);
3248
3365
  /// ⟨0.16.0, L2.2 — renamed from `guardianPauseWrites`⟩ Same correction as freezePayments above:
3249
3366
  /// owner-or-guardian, and `resumeWrites` never carried the prefix either.
3250
3367
  pauseWrites: () -> (Result_2);
3251
3368
  /// ⟨2026-10-21, the owner's round-11 answer d⟩ `pauseWrites` with a reason; everything said of
3252
3369
  /// `freezePaymentsWithReason` holds, with `canPauseWrites` as the guardian's grant.
3253
3370
  pauseWritesWithReason: (reason: text) -> (Result_2);
3371
+ /// Plan the same visible session page, filtering, order and slice used by session helpers.
3372
+ /// The SDK executes the returned individual/cache or batch reads with its own decryption key;
3373
+ /// this query does not combine their budgets or impose the hosted MCP limit on SDK callers.
3374
+ /// Callers: EngramClient.listSessions and readSessions (SessionManager's readers, the local MCP
3375
+ /// session tool).
3376
+ planSessionRead: (request: Request) -> (Result_25) query;
3254
3377
  /// What condensing through `toSeq` would do, and whether it is unlocked. COMMITS NOTHING — it is
3255
3378
  /// a query, so it structurally cannot; a preview that wrote would be its own trap.
3256
3379
  ///
@@ -3269,7 +3392,7 @@ type Engram =
3269
3392
  ///
3270
3393
  /// `unlocked` is the export-receipt gate ONLY. It is not a promise the condense will land: the
3271
3394
  /// history-budget delta is checked at commit time and can still refuse a short prefix.
3272
- previewCondense: (toSeq: nat) -> (Result_23) query;
3395
+ previewCondense: (toSeq: nat) -> (Result_24) query;
3273
3396
  /// A quote for a session this caller has not opened and is not committed to — the intent a
3274
3397
  /// buyer signs against. Pure dry run, no state, no funds.
3275
3398
  ///
@@ -3319,7 +3442,7 @@ type Engram =
3319
3442
  previewRetention: (entries: vec record {
3320
3443
  text;
3321
3444
  RetentionClassSpec;
3322
- }) -> (Result_22) query;
3445
+ }) -> (Result_23) query;
3323
3446
  /// Read one memory file at its current version.
3324
3447
  ///
3325
3448
  /// Gated on the `read_memory` permission, so an agent holding that grant reaches it — unlike
@@ -3350,7 +3473,7 @@ type Engram =
3350
3473
  /// Both are now what they are: a single `#Err` for the whole call. `#Ok` still carries a row per
3351
3474
  /// path, each with its own Result — a refused RESERVED path sits beside a readable one, which is
3352
3475
  /// a genuine per-path fact.
3353
- readMemoryBatch: (paths: vec text) -> (Result_21) query;
3476
+ readMemoryBatch: (paths: vec text) -> (Result_22) query;
3354
3477
  /// ⟨0.16.0⟩ `getMemoryRetentionGuards` DELETED — folded into `getMemoryRetentionPolicy` above.
3355
3478
  /// It was the second L2.1 array-returning `get*`, and separating it from the policy it modifies
3356
3479
  /// was the defect described there. Its own docs are preserved at the fold site.
@@ -3361,7 +3484,7 @@ type Engram =
3361
3484
  /// see it cannot know whether it has the whole range, which is how silent truncation gets
3362
3485
  /// reintroduced. Loop while `more` is true, advancing by the bytes actually returned.
3363
3486
  readMemoryBytes: (path: text, offset: nat, len: nat, version: opt nat) ->
3364
- (Result_20) query;
3487
+ (Result_21) query;
3365
3488
  /// The escrow exit for a session whose settle cannot pay.
3366
3489
  ///
3367
3490
  /// PAYER-ONLY, enforced inside the gateway, and deliberately not owner-triggered: the payer's own
@@ -3424,7 +3547,7 @@ type Engram =
3424
3547
  /// was the block index alone, which read as the amount. If the session's record is removed before
3425
3548
  /// the amount can be read back — a session closed in the same moment as the recovery and cleaned up
3426
3549
  /// during its transfer — it answers `#Other` naming the block, never a guessed amount.
3427
- recoverEscrow: (sessionId: text, amountE6: nat) -> (Result_19);
3550
+ recoverEscrow: (sessionId: text, amountE6: nat) -> (Result_20);
3428
3551
  /// ⟨0.16.0, L1⟩ A REDEMPTION PATH, where the arm choice is a disclosure decision.
3429
3552
  ///
3430
3553
  /// Four of these refusals are about the CODE and one is about the caller. The code arms restate
@@ -3438,7 +3561,7 @@ type Engram =
3438
3561
  /// rather than `()`. The new guardian learns, in the same reply, the name and permissions the
3439
3562
  /// owner's invite gave them and that they cannot act until approved; before, that took a second
3440
3563
  /// read they had no reason to know to make.
3441
- registerGuardian: (code: text) -> (Result_18);
3564
+ registerGuardian: (code: text) -> (Result_19);
3442
3565
  /// Remove a per-caller override so that caller reverts to — and keeps TRACKING — the global caps.
3443
3566
  ///
3444
3567
  /// It travels with its pair and is never dropped alone: without it the only way "back" from an
@@ -3523,7 +3646,7 @@ type Engram =
3523
3646
  /// NOT unbounded. It caps at MAX_ENTRIES and trims its oldest tenth on overflow, so on any engram
3524
3647
  /// long-lived enough for the rent model to apply, the reset entry is not guaranteed to still be
3525
3648
  /// there. `agentPurgeLog` is the evidence that does not age out — which is why it exists.
3526
- resetEngram: () -> (Result_17);
3649
+ resetEngram: () -> (Result_18);
3527
3650
  /// ⟨2026-09-28, owner decision: an agent can resign from an engram, and the resignation is
3528
3651
  /// recorded⟩ The AGENT ends its own engagement with this engram.
3529
3652
  ///
@@ -3569,7 +3692,7 @@ type Engram =
3569
3692
  /// all that is left to send is the ending, and the registry has nothing to end. The report lists
3570
3693
  /// each such engagement under `cannotBeRecorded` (key, root, invite, and how and when it ended),
3571
3694
  /// apart from `notRecorded`, so the owner sees them rather than silence.
3572
- resyncAgentEdges: () -> (Result_16);
3695
+ resyncAgentEdges: () -> (Result_17);
3573
3696
  /// Return to managed custody: the engram adds the registry back as a controller ALONGSIDE the
3574
3697
  /// owner — it does not remove the owner. The inverse of `claimSovereignty`, and the reason
3575
3698
  /// sovereignty is not a one-way door.
@@ -3671,6 +3794,18 @@ type Engram =
3671
3794
  /// agent on that record, so its standing is not the problem — the record's state is. An
3672
3795
  /// agent reading `#Refused` would go looking for a permission that was never missing.
3673
3796
  rotateAgentKeyHash: (newPublicKeyHash: text) -> (Result_2);
3797
+ /// Append one formatted memory entry: a dated preference, a lesson or domain insight (topic
3798
+ /// nonempty; topic names follow the shared memory schema), a decision with its rationale, or an
3799
+ /// untrimmed session summary. Dates are this canister's UTC date; a session summary may supply its
3800
+ /// own `YYYY-MM-DD` date (shape-checked, not calendar-checked). Same append permission, path rules,
3801
+ /// writes-pause and encrypted-memory refusal as appendMemoryText; returns the write receipt and the
3802
+ /// exact bytes sent. Callers: the npm library's ProfileManager saves and SessionManager.writeSummary
3803
+ /// (each through EngramClient), and through them the local MCP server's profile and session tools.
3804
+ /// ⟨2026-11-08, the owner: "merging the four methods to one i would agree with"⟩ Was four methods
3805
+ /// (savePreference, saveInsight, saveDecision, writeSessionSummary), added 2026-11-06 and never
3806
+ /// released; one door keeps three fewer methods that every client must support for as long as
3807
+ /// they are served.
3808
+ saveMemoryEntry: (entry: MemoryEntry) -> (Result_16);
3674
3809
  /// Send money from this engram's wallet to the engram it was opened through — "up", and only up:
3675
3810
  /// the destination is always the parent engram's own default account, never an address the caller
3676
3811
  /// names. ANY amount (the owner's ruling "B"); the answer is the ledger's block index.
@@ -3884,6 +4019,10 @@ type Engram =
3884
4019
  /// "tightened" from "loosened" precisely would mean comparing two cap lattices, so armGuards
3885
4020
  /// (RetentionPolicy.mo) guards any change it sees. That is the conservative reading, and its
3886
4021
  /// only cost is a delay on keeping MORE, which destroys nothing.
4022
+ /// ⟨CORRECTED 2026-11-07⟩ That delay applies to EVICTION only (`resolveRetentionForEviction`),
4023
+ /// not to the class used for revision. `reviseMemory` reads `retentionClassOf` →
4024
+ /// `RetentionPolicy.resolve` without a guard: a newly written `#vault` forbids agent revision
4025
+ /// immediately, including during the 14-day eviction guard. The owner's revision is unchanged.
3887
4026
  setMemoryRetentionPolicy: (entries:
3888
4027
  vec record {
3889
4028
  text;
@@ -4415,6 +4554,23 @@ type Engram =
4415
4554
  /// it checks only that the chain ends with its own record. The fingerprints are the registry's to
4416
4555
  /// certify and the client's `verifyBirthChain` to check.
4417
4556
  sysSetBirthChain: (chain: vec BirthRecord) -> (Result_2);
4557
+ /// Name the origin of the page where this engram's owner approves a connector sign-in.
4558
+ /// ⟨2026-11-08, the owner's ruling "all as recommended", item 1⟩
4559
+ ///
4560
+ /// CALLER: the registry that spawned this engram, from its birth push (`pushToNewborn`), and nobody
4561
+ /// else — the same authority as `sysSetMetricsReaderId`, through the named gate
4562
+ /// `AccessControl.requireRegistryNamingConsent`. ⚠ THE REGISTRY'S CLIENT DECLARATION IS HAND-WRITTEN
4563
+ /// (`sysSetConsentOrigin : (Text) -> async Wire.Result<()>`): a different NAME here leaves every
4564
+ /// newborn on the default origin, silently (the push is best-effort and its reject is caught), and a
4565
+ /// different REPLY type traps inside the registry's callback. test/lineage-wiring.test.ts compares the
4566
+ /// two.
4567
+ ///
4568
+ /// `GET /oauth/authorize` then answers 302 to `<origin>/auth/connector?canister=<id>&<the client's
4569
+ /// query>`; never told, it keeps the default origin it always had. An origin `ConsentOrigin.check`
4570
+ /// refuses (not https, a path, a query, a fragment, a user part, uppercase, too long) is `#Invalid`
4571
+ /// and nothing changes. SET ONCE: the same origin again answers `#Ok` and changes nothing; another is
4572
+ /// refused `#Conflict`. Never cleared. Recorded in the chained record (`oauth.sysSetConsentOrigin`).
4573
+ sysSetConsentOrigin: (origin: text) -> (Result_2);
4418
4574
  /// Point this engram at the commerce satellite allowed to ask it for signatures. ⟨0.16.0, B1⟩
4419
4575
  ///
4420
4576
  /// SAME AUTHORITY AS `sysSetBillerId`, and for a stronger reason. That one routes money; this one
@@ -4590,6 +4746,11 @@ type Engram =
4590
4746
  /// `#Invalid` rather than a refusal it would waste time investigating.
4591
4747
  writeMemory: (path: text, content: blob) -> (Result);
4592
4748
  };
4749
+ type End =
4750
+ variant {
4751
+ all;
4752
+ at: int;
4753
+ };
4593
4754
  type Eip712Value =
4594
4755
  variant {
4595
4756
  address: text;
@@ -4759,6 +4920,11 @@ type CertifiedAuditHead =
4759
4920
  total: nat;
4760
4921
  witness: opt blob;
4761
4922
  };
4923
+ type CanonicalRead =
4924
+ record {
4925
+ entry: Entry;
4926
+ readPath: text;
4927
+ };
4762
4928
  type CallerSignatureCount =
4763
4929
  record {
4764
4930
  caller: principal;