@engramx/idl 0.16.0-rc.22 → 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;
@@ -207,6 +212,22 @@ type SealedEntry =
207
212
  entryHash: blob;
208
213
  id: nat;
209
214
  };
215
+ type SaleNotice =
216
+ record {
217
+ amountE6: nat;
218
+ buyer: text;
219
+ jobId: opt text;
220
+ kind: variant {
221
+ content;
222
+ "service";
223
+ };
224
+ listingId: text;
225
+ network: text;
226
+ receiptId: text;
227
+ settledAtNs: int;
228
+ token: text;
229
+ txRef: opt text;
230
+ };
210
231
  type Role =
211
232
  variant {
212
233
  Admin;
@@ -267,6 +288,21 @@ type ResyncReport =
267
288
  };
268
289
  startsAcknowledged: nat;
269
290
  };
291
+ type Result_94 =
292
+ variant {
293
+ Err: Error;
294
+ Ok: AgentRecord;
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
+ };
270
306
  type Result_9 =
271
307
  variant {
272
308
  Err: Error;
@@ -275,37 +311,47 @@ type Result_9 =
275
311
  type Result_89 =
276
312
  variant {
277
313
  Err: Error;
278
- Ok: AgentRecord;
314
+ Ok: CondenseResult;
279
315
  };
280
- type Result_87 =
316
+ type Result_88 =
281
317
  variant {
282
318
  Err: Error;
283
- Ok: Eip712Registration;
319
+ Ok: MemoryRangeExport;
320
+ };
321
+ type Result_86 =
322
+ variant {
323
+ Err: Error;
324
+ Ok: Page_27;
284
325
  };
285
326
  type Result_85 =
286
327
  variant {
287
328
  Err: Error;
288
- Ok: CondenseResult;
329
+ Ok: AgentWriteReview;
289
330
  };
290
331
  type Result_84 =
291
332
  variant {
292
333
  Err: Error;
293
- Ok: MemoryRangeExport;
334
+ Ok: BackupMetadata;
335
+ };
336
+ type Result_83 =
337
+ variant {
338
+ Err: Error;
339
+ Ok: BackupRetention;
294
340
  };
295
341
  type Result_82 =
296
342
  variant {
297
343
  Err: Error;
298
- Ok: Page_26;
344
+ Ok: vec BirthRecord;
299
345
  };
300
346
  type Result_81 =
301
347
  variant {
302
348
  Err: Error;
303
- Ok: AgentWriteReview;
349
+ Ok: Brakes;
304
350
  };
305
351
  type Result_80 =
306
352
  variant {
307
353
  Err: Error;
308
- Ok: BackupMetadata;
354
+ Ok: ChildAllowanceRow;
309
355
  };
310
356
  type Result_8 =
311
357
  variant {
@@ -315,52 +361,52 @@ type Result_8 =
315
361
  type Result_79 =
316
362
  variant {
317
363
  Err: Error;
318
- Ok: BackupRetention;
364
+ Ok: ChildOpening;
319
365
  };
320
366
  type Result_78 =
321
367
  variant {
322
368
  Err: Error;
323
- Ok: vec BirthRecord;
369
+ Ok: EvmAddresses;
324
370
  };
325
371
  type Result_77 =
326
372
  variant {
327
373
  Err: Error;
328
- Ok: Brakes;
374
+ Ok: AlertStatus;
329
375
  };
330
376
  type Result_76 =
331
377
  variant {
332
378
  Err: Error;
333
- Ok: ChildAllowanceRow;
379
+ Ok: blob;
334
380
  };
335
381
  type Result_75 =
336
382
  variant {
337
383
  Err: Error;
338
- Ok: ChildOpening;
384
+ Ok: KeyBackupStatus;
339
385
  };
340
386
  type Result_74 =
341
387
  variant {
342
388
  Err: Error;
343
- Ok: EvmAddresses;
389
+ Ok: MemoryHistory;
344
390
  };
345
391
  type Result_73 =
346
392
  variant {
347
393
  Err: Error;
348
- Ok: AlertStatus;
394
+ Ok: MemoryRetentionPolicy;
349
395
  };
350
396
  type Result_72 =
351
397
  variant {
352
398
  Err: Error;
353
- Ok: blob;
399
+ Ok: OwnerConsole;
354
400
  };
355
401
  type Result_71 =
356
402
  variant {
357
403
  Err: Error;
358
- Ok: KeyBackupStatus;
404
+ Ok: OwnerSignInView;
359
405
  };
360
406
  type Result_70 =
361
407
  variant {
362
408
  Err: Error;
363
- Ok: MemoryHistory;
409
+ Ok: ProfileRead;
364
410
  };
365
411
  type Result_7 =
366
412
  variant {
@@ -370,52 +416,52 @@ type Result_7 =
370
416
  type Result_69 =
371
417
  variant {
372
418
  Err: Error;
373
- Ok: MemoryRetentionPolicy;
419
+ Ok: record {paths: vec text;};
374
420
  };
375
421
  type Result_68 =
376
422
  variant {
377
423
  Err: Error;
378
- Ok: OwnerConsole;
424
+ Ok: RecipientHistory;
379
425
  };
380
426
  type Result_67 =
381
427
  variant {
382
428
  Err: Error;
383
- Ok: OwnerSignInView;
429
+ Ok: SigningFloorStatus;
384
430
  };
385
431
  type Result_66 =
386
432
  variant {
387
433
  Err: Error;
388
- Ok: record {paths: vec text;};
434
+ Ok: SpendCeiling;
389
435
  };
390
436
  type Result_65 =
391
437
  variant {
392
438
  Err: Error;
393
- Ok: RecipientHistory;
439
+ Ok: SpendingPolicy;
394
440
  };
395
441
  type Result_64 =
396
442
  variant {
397
443
  Err: Error;
398
- Ok: SigningFloorStatus;
444
+ Ok: StorageReport;
399
445
  };
400
446
  type Result_63 =
401
447
  variant {
402
448
  Err: Error;
403
- Ok: SpendCeiling;
449
+ Ok: WalletBalances;
404
450
  };
405
451
  type Result_62 =
406
452
  variant {
407
453
  Err: Error;
408
- Ok: SpendingPolicy;
454
+ Ok: WorldIdConfig;
409
455
  };
410
456
  type Result_61 =
411
457
  variant {
412
458
  Err: Error;
413
- Ok: StorageReport;
459
+ Ok: WorldIdRpContext;
414
460
  };
415
461
  type Result_60 =
416
462
  variant {
417
463
  Err: Error;
418
- Ok: WalletBalances;
464
+ Ok: opt text;
419
465
  };
420
466
  type Result_6 =
421
467
  variant {
@@ -425,52 +471,52 @@ type Result_6 =
425
471
  type Result_59 =
426
472
  variant {
427
473
  Err: Error;
428
- Ok: WorldIdConfig;
474
+ Ok: bool;
429
475
  };
430
476
  type Result_58 =
431
477
  variant {
432
478
  Err: Error;
433
- Ok: WorldIdRpContext;
479
+ Ok: text;
434
480
  };
435
481
  type Result_57 =
436
482
  variant {
437
483
  Err: Error;
438
- Ok: opt text;
484
+ Ok: Page_26;
439
485
  };
440
486
  type Result_56 =
441
487
  variant {
442
488
  Err: Error;
443
- Ok: bool;
489
+ Ok: Page_25;
444
490
  };
445
491
  type Result_55 =
446
492
  variant {
447
493
  Err: Error;
448
- Ok: text;
494
+ Ok: AgentSpendToday;
449
495
  };
450
496
  type Result_54 =
451
497
  variant {
452
498
  Err: Error;
453
- Ok: Page_25;
499
+ Ok: Page_23;
454
500
  };
455
501
  type Result_53 =
456
502
  variant {
457
503
  Err: Error;
458
- Ok: AgentSpendToday;
504
+ Ok: Page_22;
459
505
  };
460
506
  type Result_52 =
461
507
  variant {
462
508
  Err: Error;
463
- Ok: Page_23;
509
+ Ok: RecordPage;
464
510
  };
465
511
  type Result_51 =
466
512
  variant {
467
513
  Err: Error;
468
- Ok: Page_22;
514
+ Ok: Page_21;
469
515
  };
470
516
  type Result_50 =
471
517
  variant {
472
518
  Err: Error;
473
- Ok: RecordPage;
519
+ Ok: Page_20;
474
520
  };
475
521
  type Result_5 =
476
522
  variant {
@@ -480,52 +526,52 @@ type Result_5 =
480
526
  type Result_49 =
481
527
  variant {
482
528
  Err: Error;
483
- Ok: Page_21;
529
+ Ok: CheckpointPage;
484
530
  };
485
531
  type Result_48 =
486
532
  variant {
487
533
  Err: Error;
488
- Ok: Page_20;
534
+ Ok: Page_18;
489
535
  };
490
536
  type Result_47 =
491
537
  variant {
492
538
  Err: Error;
493
- Ok: CheckpointPage;
539
+ Ok: Page_17;
494
540
  };
495
541
  type Result_46 =
496
542
  variant {
497
543
  Err: Error;
498
- Ok: Page_18;
544
+ Ok: Page_16;
499
545
  };
500
546
  type Result_45 =
501
547
  variant {
502
548
  Err: Error;
503
- Ok: Page_17;
549
+ Ok: Page_15;
504
550
  };
505
551
  type Result_44 =
506
552
  variant {
507
553
  Err: Error;
508
- Ok: Page_16;
554
+ Ok: Page_14;
509
555
  };
510
556
  type Result_43 =
511
557
  variant {
512
558
  Err: Error;
513
- Ok: Page_15;
559
+ Ok: Page_13;
514
560
  };
515
561
  type Result_42 =
516
562
  variant {
517
563
  Err: Error;
518
- Ok: Page_14;
564
+ Ok: ReceiptPage;
519
565
  };
520
566
  type Result_41 =
521
567
  variant {
522
568
  Err: Error;
523
- Ok: Page_13;
569
+ Ok: Page_11;
524
570
  };
525
571
  type Result_40 =
526
572
  variant {
527
573
  Err: Error;
528
- Ok: ReceiptPage;
574
+ Ok: LogPage;
529
575
  };
530
576
  type Result_4 =
531
577
  variant {
@@ -535,52 +581,52 @@ type Result_4 =
535
581
  type Result_39 =
536
582
  variant {
537
583
  Err: Error;
538
- Ok: Page_11;
584
+ Ok: Page_9;
539
585
  };
540
586
  type Result_38 =
541
587
  variant {
542
588
  Err: Error;
543
- Ok: LogPage;
589
+ Ok: Page_8;
544
590
  };
545
591
  type Result_37 =
546
592
  variant {
547
593
  Err: Error;
548
- Ok: Page_9;
594
+ Ok: Page_7;
549
595
  };
550
596
  type Result_36 =
551
597
  variant {
552
598
  Err: Error;
553
- Ok: Page_8;
599
+ Ok: PaymentSignatureCounts;
554
600
  };
555
601
  type Result_35 =
556
602
  variant {
557
603
  Err: Error;
558
- Ok: Page_7;
604
+ Ok: Page_5;
559
605
  };
560
606
  type Result_34 =
561
607
  variant {
562
608
  Err: Error;
563
- Ok: PaymentSignatureCounts;
609
+ Ok: Page_4;
564
610
  };
565
611
  type Result_33 =
566
612
  variant {
567
613
  Err: Error;
568
- Ok: Page_5;
614
+ Ok: Page_3;
569
615
  };
570
616
  type Result_32 =
571
617
  variant {
572
618
  Err: Error;
573
- Ok: Page_4;
619
+ Ok: Page_2;
574
620
  };
575
621
  type Result_31 =
576
622
  variant {
577
623
  Err: Error;
578
- Ok: Page_3;
624
+ Ok: Page_1;
579
625
  };
580
626
  type Result_30 =
581
627
  variant {
582
628
  Err: Error;
583
- Ok: Page_2;
629
+ Ok: Page;
584
630
  };
585
631
  type Result_3 =
586
632
  variant {
@@ -590,52 +636,52 @@ type Result_3 =
590
636
  type Result_29 =
591
637
  variant {
592
638
  Err: Error;
593
- Ok: Page_1;
639
+ Ok: AgentGrant;
594
640
  };
595
641
  type Result_28 =
596
642
  variant {
597
643
  Err: Error;
598
- Ok: Page;
644
+ Ok: principal;
599
645
  };
600
646
  type Result_27 =
601
647
  variant {
602
648
  Err: Error;
603
- Ok: AgentGrant;
649
+ Ok: EngramSessionState;
604
650
  };
605
651
  type Result_26 =
606
652
  variant {
607
653
  Err: Error;
608
- Ok: principal;
654
+ Ok: Pairing;
609
655
  };
610
656
  type Result_25 =
611
657
  variant {
612
658
  Err: Error;
613
- Ok: EngramSessionState;
659
+ Ok: Plan;
614
660
  };
615
661
  type Result_24 =
616
662
  variant {
617
663
  Err: Error;
618
- Ok: Pairing;
664
+ Ok: CondensePreview;
619
665
  };
620
666
  type Result_23 =
621
667
  variant {
622
668
  Err: Error;
623
- Ok: CondensePreview;
669
+ Ok: RetentionPreview;
624
670
  };
625
671
  type Result_22 =
626
672
  variant {
627
673
  Err: Error;
628
- Ok: RetentionPreview;
674
+ Ok: vec BatchReadItem;
629
675
  };
630
676
  type Result_21 =
631
677
  variant {
632
678
  Err: Error;
633
- Ok: vec BatchReadItem;
679
+ Ok: MemoryByteChunk;
634
680
  };
635
681
  type Result_20 =
636
682
  variant {
637
683
  Err: Error;
638
- Ok: MemoryByteChunk;
684
+ Ok: EngramEscrowRecovery;
639
685
  };
640
686
  type Result_2 =
641
687
  variant {
@@ -645,22 +691,22 @@ type Result_2 =
645
691
  type Result_19 =
646
692
  variant {
647
693
  Err: Error;
648
- Ok: EngramEscrowRecovery;
694
+ Ok: GuardianRecord;
649
695
  };
650
696
  type Result_18 =
651
697
  variant {
652
698
  Err: Error;
653
- Ok: GuardianRecord;
699
+ Ok: ResetReport;
654
700
  };
655
701
  type Result_17 =
656
702
  variant {
657
703
  Err: Error;
658
- Ok: ResetReport;
704
+ Ok: ResyncReport;
659
705
  };
660
706
  type Result_16 =
661
707
  variant {
662
708
  Err: Error;
663
- Ok: ResyncReport;
709
+ Ok: TextAppendReceipt;
664
710
  };
665
711
  type Result_15 =
666
712
  variant {
@@ -709,6 +755,15 @@ type ResetReport =
709
755
  filesCleared: nat;
710
756
  guardiansRemoved: nat;
711
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
+ };
712
767
  type Repudiation =
713
768
  record {
714
769
  atNs: int;
@@ -775,6 +830,19 @@ type PurgedAgent =
775
830
  purgedAtNs: int;
776
831
  root: principal;
777
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
+ };
778
846
  type PaymentsStop =
779
847
  variant {
780
848
  dailySignatureLimit;
@@ -861,18 +929,24 @@ type Page_3 =
861
929
  total: nat;
862
930
  withheld: nat;
863
931
  };
864
- type Page_26 =
932
+ type Page_27 =
865
933
  record {
866
934
  items: vec OwnerRow;
867
935
  total: nat;
868
936
  withheld: nat;
869
937
  };
870
- type Page_25 =
938
+ type Page_26 =
871
939
  record {
872
940
  items: vec ActivitySnapshot;
873
941
  total: nat;
874
942
  withheld: nat;
875
943
  };
944
+ type Page_25 =
945
+ record {
946
+ items: vec Entry__1;
947
+ total: nat;
948
+ withheld: nat;
949
+ };
876
950
  type Page_24 =
877
951
  record {
878
952
  items: vec AgentSpendRow;
@@ -1196,6 +1270,23 @@ type MemoryEviction =
1196
1270
  thinTail;
1197
1271
  };
1198
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
+ };
1199
1290
  type MemoryByteChunk =
1200
1291
  record {
1201
1292
  bytes: blob;
@@ -1340,6 +1431,22 @@ type Error =
1340
1431
  Refused: text;
1341
1432
  Unavailable: text;
1342
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
+ };
1343
1450
  type EnrolmentProof =
1344
1451
  record {
1345
1452
  enrolledKey: principal;
@@ -1410,7 +1517,7 @@ type Engram =
1410
1517
  /// nomination names. That check compares the caller inside the module, where
1411
1518
  /// test/key-replacement.test.mo runs it; this body names no roster gate, because the caller holds
1412
1519
  /// no role here until the move.
1413
- acceptAgentKeyNomination: (agentKey: principal) -> (Result_89);
1520
+ acceptAgentKeyNomination: (agentKey: principal) -> (Result_94);
1414
1521
  /// The person the owner asked again ACCEPTS: they become this engram's sign-in, and the sealed copy
1415
1522
  /// that came with the ask becomes the engram's (sealed for them). Until this call they have no power
1416
1523
  /// at all. Callable only by that person while the ask waits; refused (as at birth) if they are now
@@ -1494,7 +1601,7 @@ type Engram =
1494
1601
  };
1495
1602
  primaryType: text;
1496
1603
  verifyingContract: text;
1497
- }) -> (Result_87);
1604
+ }) -> (Result_92);
1498
1605
  /// ⟨0.16.0, L1⟩ THE ROLE-CONFLICT ARM, and why three refusals here are not the same refusal.
1499
1606
  ///
1500
1607
  /// This method had five distinct ways to say no through one `text`, and a caller could only tell
@@ -1524,6 +1631,29 @@ type Engram =
1524
1631
  /// Named callers: an owner console's seller list for an engram (signed in as its sign-in, for one
1525
1632
  /// opened through another), and the owner kit.
1526
1633
  addSeller: (payTo: text, perDayCapE6: nat, isPayout: bool) -> (Result_11);
1634
+ /// AN AGENT CONVERTS THE ENGRAM'S BALANCE INTO COMPUTE, under the runway rule ⟨2026-11-04, the owner's
1635
+ /// rulings of 2026-11-01, "2 A" and "agree"; `AgentConvert.mo` holds the rule and says why each number⟩.
1636
+ ///
1637
+ /// CALLER: a paired agent whose STORED grant holds the scope "wallet.convert" (`AgentConvert.SCOPE`),
1638
+ /// which only the owner adds (`createAgentInvite` / `setAgentPermissions`); off by default, and no HTTP
1639
+ /// connector token ever carries it (`OAuth.scopesToPermissions`). The OWNER's role is refused by name —
1640
+ /// the owner converts with `convertEarningsToCycles`.
1641
+ ///
1642
+ /// THE RULE: converts only while this engram has under 30 days of compute left by its own reading; at
1643
+ /// least 0.50 and at most 2.00 (or the owner's own per-call cap if lower); at most one conversion under
1644
+ /// the rule in any rolling 24 hours (`agentConvertAtNs`, which holds with the engram-wide ceiling
1645
+ /// removed); counted against that ceiling when one is set; refused under ANY payment freeze (ruled), and
1646
+ /// while another of the engram's own calls is out (its balance reads low then). `amountE6 = null` converts
1647
+ /// as much as allowed: the smaller of the cap and what the wallet holds less the ledger fee — the wallet
1648
+ /// is READ before anything moves, and a wallet that cannot fund 0.50 is refused by name.
1649
+ ///
1650
+ /// STOPPED MID-WAY: if the agent is removed, leaves, loses the grant, payments are frozen or the engram is
1651
+ /// reset while it waits on the ledger or the cashier's deposit address, nothing moves; after the money
1652
+ /// reached the deposit, it is sent back to the wallet less one ledger fee (or held at the biller for the
1653
+ /// owner's next Convert). THE RESIDUAL, stated: a removal landing DURING the cashier's own conversion call
1654
+ /// cannot stop that call — it finishes, and the reply (`finishedBeforeRemovalSeen`) and the record row say
1655
+ /// so. One inter-canister call, bounded by one cap.
1656
+ agentConvertBalance: (token: text, amountE6: opt nat) -> (Result_90);
1527
1657
  /// Returns the write RECEIPT, not just the version.
1528
1658
  ///
1529
1659
  /// The receipt was always computed and then thrown away: MemoryRouter hands back
@@ -1540,6 +1670,15 @@ type Engram =
1540
1670
  /// subset rule, so it can only ride an interface break; this release is one.
1541
1671
  appendMemory: (path: text, content: blob, source: opt MemorySource) ->
1542
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);
1543
1682
  /// Replace the retained log prefix through `toSeq` with a single checkpoint.
1544
1683
  ///
1545
1684
  /// PREFIX-ONLY: there is no `fromSeq`, because the library made that unrepresentable rather than
@@ -1555,7 +1694,7 @@ type Engram =
1555
1694
  /// Gated on requireWritesNotPaused — unlike the export. This one destroys retained entries, which
1556
1695
  /// is exactly what a guardian pause exists to hold. No action alert is raised: the operation is
1557
1696
  /// owner-initiated, owner-only, and already chained into the audit log.
1558
- applyCondense: (toSeq: nat) -> (Result_85);
1697
+ applyCondense: (toSeq: nat) -> (Result_89);
1559
1698
  /// Owner-only: activate a guardian who has registered against an invite.
1560
1699
  ///
1561
1700
  /// Until this call the guardian is `#Pending` and can do NOTHING — registering is a claim, this
@@ -1636,13 +1775,13 @@ type Engram =
1636
1775
  ///
1637
1776
  /// The write half also refuses while writes are PAUSED.
1638
1777
  backupInit: (dbType: text, backupType: BackupType, parentBackupId:
1639
- opt text, sha256: text, backupLabel: opt text) -> (Result_55);
1778
+ opt text, sha256: text, backupLabel: opt text) -> (Result_58);
1640
1779
  /// Read one chunk of a finalized backup, by index.
1641
1780
  ///
1642
1781
  /// ⚠ GATED ON `read_backup`, which is NOT the permission the upload half uses — that one is
1643
1782
  /// `canAppendMemory`. Holding one says nothing about the other, deliberately: taking a backup and
1644
1783
  /// carrying it away are different authorities.
1645
- backupPullChunk: (backupId: text, chunkIndex: nat) -> (Result_72) query;
1784
+ backupPullChunk: (backupId: text, chunkIndex: nat) -> (Result_76) query;
1646
1785
  backupPushChunk: (backupId: text, chunkIndex: nat, data: blob) ->
1647
1786
  (Result_2);
1648
1787
  /// The OWNER cancels an agent's pending key nomination; the agent keeps its current key. Refused
@@ -1675,6 +1814,20 @@ type Engram =
1675
1814
  /// ⟨2026-10-02⟩ The second parameter is NAMED `amountE6` now, as the census row above rules the
1676
1815
  /// pair — e6 base units of the token named first. A name only: Candid passes arguments by
1677
1816
  /// position, so nothing on the wire moved.
1817
+ ///
1818
+ /// ⟨2026-11-04, the agent-conversion build — the owner's "2 A" and "agree"⟩ The body moved whole into
1819
+ /// `runConversion`, which an agent's `agentConvertBalance` shares; this method keeps its name, its
1820
+ /// signature and its bare `cyclesAdded` reply. Under "2 A" it converts the engram's BALANCE (what the
1821
+ /// owner put in and what it earned are not told apart); the name is the wire's and stays. A FIRST
1822
+ /// engram's owner Convert is unchanged: not counted, not freeze-gated, not runway-bound, not pre-read,
1823
+ /// 10.00 / 5 min. In an engram OPENED THROUGH ANOTHER the key file's Convert runs the agent rule too
1824
+ /// (ruled "agree", question 3: under 30 days, 0.50–2.00, once in 24 hours shared with the agents, the
1825
+ /// wallet read first), keeping its own freeze gate (L18: a guardian's freeze only).
1826
+ /// ⟨2026-11-04, review fix⟩ SHARED with an agent's conversion: the in-flight latch only (one deposit
1827
+ /// account, one pending marker — one conversion at a time, whoever asked), so while an agent's conversion
1828
+ /// is between its deposit and its landing this door answers "another conversion is still in flight". NOT
1829
+ /// shared: the 5-minute cooldown (an agent's landing does not move it) and the latch during an agent's
1830
+ /// wallet read (nothing is held while it reads).
1678
1831
  convertEarningsToCycles: (token: text, amountE6: nat) -> (Result_15);
1679
1832
  /// Owner-only: mint a single-use invite code an agent redeems with `pairAgent`.
1680
1833
  ///
@@ -1704,7 +1857,7 @@ type Engram =
1704
1857
  /// ⟨2026-10-29, review F7⟩ A name the owner gives meets the rule `renameAgent` applies: a line break
1705
1858
  /// or another control character is `#Invalid` (`People.nameRefusal`), as a rename to it would be.
1706
1859
  createAgentInvite: (name: text, permissions: AgentPermissions) ->
1707
- (Result_55);
1860
+ (Result_58);
1708
1861
  /// Owner-only: mint an invite for a GUARDIAN — an independent check on agents, not a
1709
1862
  /// co-owner and not a recovery agent.
1710
1863
  ///
@@ -1727,7 +1880,7 @@ type Engram =
1727
1880
  /// So an invite that fails to redeem for that reason is not a bad code. The rule exists because
1728
1881
  /// a check must be independent of the thing it checks.
1729
1882
  createGuardianInvite: (name: text, permissions: GuardianPermissions) ->
1730
- (Result_55);
1883
+ (Result_58);
1731
1884
  /// The sign-in GIVES ITSELF UP, or the person the owner asked again says no. ⟨the owner's ruling "1
1732
1885
  /// yes, but the child can ask again" — the child build's Challenge C3.1: whoever the kit names cannot
1733
1886
  /// otherwise refuse a seat they never agreed to⟩
@@ -1799,7 +1952,7 @@ type Engram =
1799
1952
  /// situation rather than a safety measure. It IS gated on requireMemoryAttached: a store that
1800
1953
  /// failed its integrity check must not attest anything it cannot vouch for.
1801
1954
  exportMemoryRange: (fromSeq: nat, toSeq: nat, authorFilter:
1802
- opt principal) -> (Result_84);
1955
+ opt principal) -> (Result_88);
1803
1956
  /// ⟨0.16.0, L2.2 — renamed from `guardianFreezePayments`⟩ The prefix LIED about who may call it.
1804
1957
  /// The gate is `requireOwnerOrGuardian`, and an owner freezing their own payments is the ordinary
1805
1958
  /// case — the guardian is the exceptional one. A name that says otherwise sends an owner looking
@@ -1824,6 +1977,10 @@ type Engram =
1824
1977
  /// · `convertEarningsToCycles` — the owner's OWN earnings becoming their OWN engram's fuel. A
1825
1978
  /// frozen engram still burns cycles, so freezing this would let a brake starve the thing it
1826
1979
  /// is protecting. Owner-only, capped per call, and it moves nothing outward.
1980
+ /// ⟨2026-11-04, the agent-conversion build — ruled "agree", question 2⟩ An AGENT's conversion
1981
+ /// (`agentConvertBalance`) IS frozen, by any freeze — the owner's own included — before it starts and
1982
+ /// again after each await. The owner's own Convert in a first engram stays as above; in an engram
1983
+ /// opened through another it stops under a guardian's freeze only (L18).
1827
1984
  /// · `approveRequest` — an approval is not a spend. The spend it authorises goes through
1828
1985
  /// `x402SignFor`, which IS frozen, so an approval granted during a freeze simply waits.
1829
1986
  /// · `transferOwnership` — ownership is not a payment, and a guardian's PAYMENTS brake is not
@@ -1843,7 +2000,13 @@ type Engram =
1843
2000
  /// Delivery status + config readback. Owner-only (the URL is a secret).
1844
2001
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1845
2002
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1846
- getActionAlertStatus: () -> (Result_73) query;
2003
+ getActionAlertStatus: () -> (Result_77) query;
2004
+ /// The agent-conversion rule's numbers.
2005
+ /// PUBLIC: the class of `getTopUpLimits` — a policy, nobody's data. ⟨2026-11-04, the market-route
2006
+ /// build: the marker's colon was missing, so the deployment's PUBLIC-rationale gate read the method as
2007
+ /// unmarked; the reason itself is unchanged.⟩
2008
+ /// The cap an agent meets is `min(maxPerCallE6, getTopUpLimits().maxCkusdcE6s)`.
2009
+ getAgentConvertRule: () -> (AgentConvertRule) query;
1847
2010
  /// Agents need to know what they may revise, so they can read it too. Whole-value config, same
1848
2011
  /// carve-out as getProtectedPaths — and kept a SEPARATE method from it deliberately (L2.2): a
1849
2012
  /// protected path and a revisable path are opposite grants, and one accessor for both would be a
@@ -1851,7 +2014,7 @@ type Engram =
1851
2014
  ///
1852
2015
  /// Refusal reason preserved from the trap: a grant is a power, and its absence and its
1853
2016
  /// concealment are different facts.
1854
- getAgentRevisablePaths: () -> (Result_66) query;
2017
+ getAgentRevisablePaths: () -> (Result_69) query;
1855
2018
  /// OWNER-ONLY: every engagement's seat weeks on this engram, with the agent's root — the day it
1856
2019
  /// paired, the days of its first and last payment signature, a 64-week map whose bit 0 is the week
1857
2020
  /// of the last one, and how many were produced. Never an amount, a recipient or a nonce.
@@ -1864,7 +2027,7 @@ type Engram =
1864
2027
  /// Two rows can name one root: an agent paired again after it left is a second engagement.
1865
2028
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1866
2029
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1867
- getAgentSeatWeeks: (start: nat, limit: nat) -> (Result_82) query;
2030
+ getAgentSeatWeeks: (start: nat, limit: nat) -> (Result_86) query;
1868
2031
  /// Owner: everything written into this engram by someone other than the owner since the last
1869
2032
  /// markAgentWritesReviewed() — agent appends/revisions AND paid-session appends (see
1870
2033
  /// qualifiesForReview for why those two families are recognised differently).
@@ -1875,7 +2038,7 @@ type Engram =
1875
2038
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1876
2039
  /// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
1877
2040
  /// engram is unchanged.
1878
- getAgentWriteReview: () -> (Result_81) query;
2041
+ getAgentWriteReview: () -> (Result_85) query;
1879
2042
  /// Why anchoring is or is not advancing. PUBLIC: ungated on purpose — detecting a stalled
1880
2043
  /// engram is the point, a gated read would fail-to-empty and hand a third party fabricated zeros,
1881
2044
  /// and none of these fields is a secret — `total` is already public via getCertifiedAuditHead.
@@ -1894,7 +2057,7 @@ type Engram =
1894
2057
  /// below serves the same head WITH the subnet certificate for a caller that needs to verify it
1895
2058
  /// was signed rather than asserted.
1896
2059
  getAuditHead: () -> (AuditHead) query;
1897
- getBackupMetadata: (backupId: text) -> (Result_80) query;
2060
+ getBackupMetadata: (backupId: text) -> (Result_84) query;
1898
2061
  /// ⟨2026-10-21, the owner's round-11 answer m: a backup-retention getter⟩ How many backups of
1899
2062
  /// `dbType` each creator keeps, and whether that is the default — the read `setBackupRetention`
1900
2063
  /// lacked, so "Keeps your newest 3" showed only on the phone that last set it.
@@ -1905,7 +2068,7 @@ type Engram =
1905
2068
  /// denied"), a revoked or resigned agent, a guardian (guardians take no backups), a stranger and
1906
2069
  /// the anonymous caller. A kind the setter would refuse is `#Invalid` here too
1907
2070
  /// (`Backup.getRetention`). Records nothing (a query).
1908
- getBackupRetention: (dbType: text) -> (Result_79) query;
2071
+ getBackupRetention: (dbType: text) -> (Result_83) query;
1909
2072
  /// The cashier this engram recognises as its rent biller — `null` until the registry pushes one.
1910
2073
  ///
1911
2074
  /// PUBLIC: a payer about to send money needs to know which cashier this engram will accept credit
@@ -1922,7 +2085,7 @@ type Engram =
1922
2085
  /// `verifyBirthChain` checks both. Refused to anyone else by the combinator (`#ownerOnly`).
1923
2086
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1924
2087
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1925
- getBirthChain: () -> (Result_78) query;
2088
+ getBirthChain: () -> (Result_82) query;
1926
2089
  /// ⟨2026-10-21, the owner's round-11 answer d⟩ Each brake: on or off, and while on, who pulled it
1927
2090
  /// LAST (their key and whether as owner or guardian), since when, and the reason they gave — the
1928
2091
  /// same person and time as the newest brake entry on the record (`RecordWords.BrakePull`). For the
@@ -1931,7 +2094,7 @@ type Engram =
1931
2094
  /// — an agent learns a brake is on from the refusal of what it tried, and needs no more). `pull`
1932
2095
  /// is null for a brake that is off, and for one carried on across the upgrade that added this
1933
2096
  /// read (who pulled it was not recorded then) — never a guessed pull.
1934
- getBrakes: () -> (Result_77) query;
2097
+ getBrakes: () -> (Result_81) query;
1935
2098
  /// ⟨0.16.0, L9/L10 — census row⟩ `Wire.CertifiedAuditHead`, not an anonymous record. The
1936
2099
  /// registry, market and cashier already served the shared type; the engram — the canister that
1937
2100
  /// IS the evidence product — was the one chain still answering in a shape of its own, missing
@@ -1954,13 +2117,13 @@ type Engram =
1954
2117
  /// query's state writes are discarded when it returns, and the `denied` call first written here
1955
2118
  /// recorded nothing while reading as if it did. The refusal is loud in the reply instead. WHAT
1956
2119
  /// WOULD MAKE THIS WRONG: a reason to record who asked — then this becomes an update that says so.
1957
- getChildAllowance: (agentPrincipal: principal) -> (Result_76) query;
2120
+ getChildAllowance: (agentPrincipal: principal) -> (Result_80) query;
1958
2121
  /// Owner-only, Billing-class: what opening an engram costs this engram, the balance below which an
1959
2122
  /// agent's request is refused, the balance now, and every agent's allowance. The console's cost
1960
2123
  /// sentence reads it. Cycles are owner-class information, as on the owner's console read.
1961
2124
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1962
2125
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1963
- getChildOpening: () -> (Result_75) query;
2126
+ getChildOpening: () -> (Result_79) query;
1964
2127
  /// Derive the key that opens the sealed copy, encrypted under the caller's transport public key —
1965
2128
  /// for the SIGN-IN alone (the combinator's `#ownerSignIn`; the key file is refused by name: only the
1966
2129
  /// sign-in opens the backup, and the key file holds the plaintext anyway). The derivation input is the
@@ -1978,7 +2141,7 @@ type Engram =
1978
2141
  /// `VetKeys.ManagementCanister.vetKdDeriveKey`. A query cannot await.
1979
2142
  /// Named callers: an owner console signed in as the sign-in (the browser's recovery), and the owner
1980
2143
  /// kit's `--recover-key` signed by a key-file sign-in.
1981
- getEncryptedKeyBackupKey: (transportPublicKey: blob) -> (Result_72);
2144
+ getEncryptedKeyBackupKey: (transportPublicKey: blob) -> (Result_76);
1982
2145
  /// Derive the shared memory-encryption key, encrypted under the caller's transport
1983
2146
  /// public key. Gated to owner + read-agents (the same principals allowed to read
1984
2147
  /// memory). The client decrypts it locally with its transport secret key.
@@ -2003,7 +2166,7 @@ type Engram =
2003
2166
  /// cost. Stated here because L7 requires the reason be readable from the interface rather than
2004
2167
  /// inferred by opening the body — which is exactly what had to happen to write this line.
2005
2168
  getEncryptedMemoryKey: (epoch: opt nat, transportPublicKey: blob) ->
2006
- (Result_72);
2169
+ (Result_76);
2007
2170
  /// ⟨0.16.0, owner ruling 2026-08-20 — option (a)⟩ `x402Support` REPORTS THE RAIL, not a constant.
2008
2171
  ///
2009
2172
  /// The card's config hardcodes `x402Support = true`, answering a buyer's question with a fact
@@ -2098,7 +2261,7 @@ type Engram =
2098
2261
  /// It refuses rather than half-answers: if either address cannot be derived the reply is
2099
2262
  /// `#Err`, never a record carrying an empty string (ic402's `getEvmAddress` answers `""` on a
2100
2263
  /// failed derivation — that is fail-to-empty on a money surface, and it stops here).
2101
- getEvmAddress: () -> (Result_74);
2264
+ getEvmAddress: () -> (Result_78);
2102
2265
  /// The owner's OWN EVM address, if they registered one — distinct from `getEvmAddress`, which is
2103
2266
  /// the address this canister derives for itself.
2104
2267
  ///
@@ -2116,7 +2279,7 @@ type Engram =
2116
2279
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2117
2280
  /// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
2118
2281
  /// engram is unchanged.
2119
- getEvmSignerAddress: () -> (Result_55);
2282
+ getEvmSignerAddress: () -> (Result_58);
2120
2283
  /// PUBLIC: where this chain begins, for the stranger deciding whether to trust it.
2121
2284
  ///
2122
2285
  /// The fourth of the four evidence methods (`getAuditHead`, `getCertifiedAuditHead`,
@@ -2125,7 +2288,7 @@ type Engram =
2125
2288
  /// cannot verify it, and nothing here identifies anybody.
2126
2289
  getGenesisNote: () -> (GenesisNote) query;
2127
2290
  /// A guardian's own channel status (their URL is their secret — each guardian sees only theirs).
2128
- getGuardianAlertStatus: () -> (Result_73) query;
2291
+ getGuardianAlertStatus: () -> (Result_77) query;
2129
2292
  /// The sealed copy itself — opaque bytes only the sign-in can open. Readable by the sign-in (it
2130
2293
  /// opens them with the key `getEncryptedKeyBackupKey` derives for it) and by the key file, which
2131
2294
  /// holds the plaintext already and so learns nothing — it reads them to compare with the copy the kit
@@ -2135,7 +2298,7 @@ type Engram =
2135
2298
  /// A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
2136
2299
  /// Named callers: the owner kit (`--recover-key`, and its check after sealing), and an owner console
2137
2300
  /// signed in as the sign-in (the browser's recovery).
2138
- getKeyBackupCiphertext: () -> (Result_72) query;
2301
+ getKeyBackupCiphertext: () -> (Result_76) query;
2139
2302
  /// Whether this engram holds a sealed copy of its owner's key, for whom, since when, whether it is
2140
2303
  /// sealed for the sign-in seated now, and whether a copy waits with an ask (`Types.KeyBackupStatus`).
2141
2304
  /// Readable by the key file and the sign-in (`#ownerOrSignIn`); refused loudly to anyone else
@@ -2144,7 +2307,7 @@ type Engram =
2144
2307
  /// A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
2145
2308
  /// Named callers: the owner kit after it opens an engram (it prints whether the copy is stored), and
2146
2309
  /// an owner console showing an engram opened through another (whether recovery can work).
2147
- getKeyBackupStatus: () -> (Result_71) query;
2310
+ getKeyBackupStatus: () -> (Result_75) query;
2148
2311
  /// BLS verification key under which the owner kit seals the backup (`IbeCiphertext.encrypt` to the
2149
2312
  /// sign-in's principal) and the opener verifies the derived key. Served on-canister so the kit never
2150
2313
  /// has to know which master key this network uses (the spec's Q-K3: a wrong guess would seal a copy
@@ -2188,7 +2351,7 @@ type Engram =
2188
2351
  /// never renumbered: the next page starts at the last version returned plus one. Defaults
2189
2352
  /// return the whole history of any file a pre-FD engram could have held.
2190
2353
  getMemoryHistory: (path: text, start: opt nat, max: opt nat) ->
2191
- (Result_70) query;
2354
+ (Result_74) query;
2192
2355
  /// PUBLIC: the epoch alone, and deliberately nothing else (rotation study D4). A `rotatedAt[]`
2193
2356
  /// history would be a public, fleet-enumerable feed of when each owner terminated a trust
2194
2357
  /// relationship — readable by, among others, the party just terminated.
@@ -2229,7 +2392,7 @@ type Engram =
2229
2392
  /// Refusal reasons of both merge: an empty policy reads as "nothing is capped, every version kept
2230
2393
  /// forever" — a claim about what this engram will DESTROY — and an empty guard list reads as
2231
2394
  /// "nothing is held back".
2232
- getMemoryRetentionPolicy: () -> (Result_69) query;
2395
+ getMemoryRetentionPolicy: () -> (Result_73) query;
2233
2396
  /// The metrics reader this engram answers — `null` until the spawning registry names one.
2234
2397
  ///
2235
2398
  /// PUBLIC: an owner deciding whether to switch the read off needs to know who it is, and anyone
@@ -2242,7 +2405,7 @@ type Engram =
2242
2405
  /// see: the only row it can ever return is the caller's own, so "you are not a guardian here" is
2243
2406
  /// a fact about the caller, told to the caller. There is nothing to leak by omission — which is
2244
2407
  /// the test the #NotFound arm sets.
2245
- getMyGuardianStatus: () -> (Result_18) query;
2408
+ getMyGuardianStatus: () -> (Result_19) query;
2246
2409
  /// ⟨0.16.0, NEW⟩ The gated half of the status() split.
2247
2410
  ///
2248
2411
  /// Every field is bare — no masking, no `authorized` discriminator — because reaching this record
@@ -2252,7 +2415,7 @@ type Engram =
2252
2415
  /// was `nat`, then widened to `opt nat` so a refusal could be `null`, which broke every published
2253
2416
  /// client (rule 4) and bought a masked answer nobody had asked for — the census could not even
2254
2417
  /// find a consumer that read the masked `0`. Behind a gate there is nobody to mask it from.
2255
- getOwnerConsole: () -> (Result_68) query;
2418
+ getOwnerConsole: () -> (Result_72) query;
2256
2419
  /// The engram's sign-in, as `Types.OwnerSignInView` describes it: whether this engram was opened
2257
2420
  /// through another, who its sign-in is, whether the caller is it, and any decline or waiting ask.
2258
2421
  /// Readable by the owner's key, the sign-in, and the person a waiting ask goes to (they need to see
@@ -2261,7 +2424,12 @@ type Engram =
2261
2424
  /// A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
2262
2425
  /// Named callers: an owner console showing an engram opened through another (who signs in, and a
2263
2426
  /// waiting ask with Accept and Decline), and the owner kit after it opens one.
2264
- 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;
2265
2433
  /// Owner + agents only (agents need it to avoid writing protected paths).
2266
2434
  ///
2267
2435
  /// A NAMED RECORD, not a Page: the setter replaces this list wholesale, so there is no window to
@@ -2273,7 +2441,7 @@ type Engram =
2273
2441
  /// path on this engram is protected", and an agent consults this list precisely to avoid
2274
2442
  /// writing one — so a fabricated empty here does not merely misinform, it invites the write the
2275
2443
  /// list exists to prevent.
2276
- getProtectedPaths: () -> (Result_66) query;
2444
+ getProtectedPaths: () -> (Result_69) query;
2277
2445
  /// What an approval card shows beside a payment to `payTo` (`Types.RecipientHistory`): whether an x402
2278
2446
  /// signature from this engram has paid it before and since when, whether it is a listed seller and
2279
2447
  /// counts now, and whether the history is full (then "not paid before" may be one it forgot). Read
@@ -2284,7 +2452,7 @@ type Engram =
2284
2452
  /// times, largest $12"; the history forgets the address paid longest ago when full.
2285
2453
  /// ⟨2026-11-03, the pre-gate fixes⟩ And when it was LAST paid (`lastPaidAtNs`; null when never).
2286
2454
  /// Named callers: an owner console's approval card for a payment request.
2287
- getRecipientHistory: (payTo: text) -> (Result_65) query;
2455
+ getRecipientHistory: (payTo: text) -> (Result_68) query;
2288
2456
  /// Whether the metrics reader's read is answered — `true` from birth.
2289
2457
  ///
2290
2458
  /// PUBLIC: the promise that an owner can switch this read off can be checked only if the switch
@@ -2298,7 +2466,7 @@ type Engram =
2298
2466
  /// (ADR-0002) — the signers refuse in that state too, so the refusal is the truth on Billing.
2299
2467
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2300
2468
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2301
- getSigningFloor: () -> (Result_64) query;
2469
+ getSigningFloor: () -> (Result_67) query;
2302
2470
  /// The registry that spawned this engram, if it recorded one.
2303
2471
  ///
2304
2472
  /// PUBLIC: it is the provenance claim. An engram asserting it is part of a fleet, under that
@@ -2310,6 +2478,10 @@ type Engram =
2310
2478
  /// caller. ⟨2026-09-28, the owner's decision to add the ceiling⟩
2311
2479
  /// ⟨CORRECTED 2026-09-29, review finding X-8: "spent" means signed in x402 payments; typed-data
2312
2480
  /// and the engram's registration signatures are not counted here — see `setSpendCeiling`.⟩
2481
+ /// ⟨CORRECTED 2026-11-04, the agent-conversion build, beside the note above⟩ …and, since 2026-11, an
2482
+ /// agent's conversion of the engram's balance into compute (`agentConvertBalance`, in a first engram too);
2483
+ /// in an engram opened through another the key file's Convert as well (since 2026-11-02). Both are reserved
2484
+ /// before their first await and given back when nothing left the wallet.
2313
2485
  ///
2314
2486
  /// OWNER-ONLY, for the reason `getSpendPolicy` is: the limits are the owner's custody
2315
2487
  /// configuration, and the engram-wide total would also tell one agent how much the others spent.
@@ -2317,7 +2489,7 @@ type Engram =
2317
2489
  /// "none" and a spend of 0 are both real answers, so a fabricated one would be read as fact.
2318
2490
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2319
2491
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2320
- getSpendCeiling: () -> (Result_63) query;
2492
+ getSpendCeiling: () -> (Result_66) query;
2321
2493
  /// Read the caps in force for a caller.
2322
2494
  ///
2323
2495
  /// OWNER-ONLY, and this is where it diverges from the market's inbound twin, which is public.
@@ -2334,8 +2506,8 @@ type Engram =
2334
2506
  /// defaults — a default-looking answer would understate the real limits to anyone probing them." The
2335
2507
  /// refusal itself is now the combinator's (`#Refused getSpendPolicy: …`, `requireOwner`'s words), and
2336
2508
  /// an engram with no owner yet is refused the same way rather than answered `#Conflict`.
2337
- getSpendPolicy: (caller: opt principal) -> (Result_62) query;
2338
- getStorageStats: () -> (Result_61) query;
2509
+ getSpendPolicy: (caller: opt principal) -> (Result_65) query;
2510
+ getStorageStats: () -> (Result_64) query;
2339
2511
  /// Timer arm-state. PUBLIC and deliberately so: these timers are self-arming to save cycles,
2340
2512
  /// and an optimisation nobody can verify is an optimisation nobody should trust. Cheap to read,
2341
2513
  /// leaks nothing (booleans about our own scheduling).
@@ -2418,12 +2590,21 @@ type Engram =
2418
2590
  /// ⟨L7⟩ MARKER ADDED 2026-08-23, reasoning above UNCHANGED — this block already said "Stays an
2419
2591
  /// UPDATE, marked per L7: it awaits three ICRC-1 ledgers". It was marked in prose and invisible
2420
2592
  /// to any gate; the glyph is what `scripts/check-update-for-read.mjs` matches.
2421
- 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);
2422
2603
  /// Refusal reason preserved, and it is the clearest case of why a masked read is worse than no
2423
2604
  /// read: three empty strings with `configured = false` is a VALID-LOOKING answer meaning "this
2424
2605
  /// engram has no World ID configuration" — handed to a caller who merely lacks a grant. The
2425
2606
  /// fabrication is indistinguishable from the truth by construction.
2426
- getWorldIdConfig: () -> (Result_59) query;
2607
+ getWorldIdConfig: () -> (Result_62) query;
2427
2608
  /// ⟨L7⟩ UPDATE, NOT QUERY: this awaits THREE system calls — `raw_rand()` for the nonce,
2428
2609
  /// `Call.signWithEcdsa` for the signature, and `worldIdRpPublicKey()` for the derived key. A
2429
2610
  /// query can do none of them.
@@ -2432,7 +2613,7 @@ type Engram =
2432
2613
  /// Valid iff the derived signer address (getWorldIdRpSignerAddress) is registered for this rp_id in
2433
2614
  /// the World Developer Portal. Short-lived (300s TTL, idkit-server's default) and single-purpose —
2434
2615
  /// it authorizes opening one verification request, nothing else.
2435
- getWorldIdRpContext: () -> (Result_58);
2616
+ getWorldIdRpContext: () -> (Result_61);
2436
2617
  /// Owner-only: the EVM address derived from the engram's dedicated World ID RP signing key (the
2437
2618
  /// "worldid-rp" tECDSA path). Register THIS address as the rp_id's signer in the World Developer
2438
2619
  /// Portal — the engram never holds or exports a private key (only threshold shares exist, on the
@@ -2445,7 +2626,7 @@ type Engram =
2445
2626
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2446
2627
  /// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
2447
2628
  /// engram is unchanged.
2448
- getWorldIdRpSignerAddress: () -> (Result_55);
2629
+ getWorldIdRpSignerAddress: () -> (Result_58);
2449
2630
  /// The verified IDKitResult, verbatim, as World's /api/v4/verify accepted it — the re-checkable
2450
2631
  /// artifact behind verifiedHuman. Role-gated because it carries the NULLIFIER.
2451
2632
  /// `Result<opt Text>` — and the double wrapper is the entire point, not redundancy.
@@ -2464,7 +2645,7 @@ type Engram =
2464
2645
  /// `///`, so the dead name was PUBLISHED in engram.did and pointed every client at a method the
2465
2646
  /// canister does not serve. The tombstones below and at `about()` are historical and correct as
2466
2647
  /// written; this one was present tense, which is the difference that matters.⟩
2467
- getWorldIdVerification: () -> (Result_57) query;
2648
+ getWorldIdVerification: () -> (Result_60) query;
2468
2649
  /// ⟨0.16.0, L1⟩ THE EMERGENCY FAMILY. Every refusal below is `#Refused` or `#NotFound`, and the
2469
2650
  /// absence of a `#Conflict` here is the point: these are the calls someone makes while something
2470
2651
  /// is going wrong, and the only two answers that help are "you may not do this" and "there is
@@ -2542,7 +2723,7 @@ type Engram =
2542
2723
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2543
2724
  /// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
2544
2725
  /// engram is unchanged.
2545
- isEvmAddressCached: () -> (Result_56) query;
2726
+ isEvmAddressCached: () -> (Result_59) query;
2546
2727
  /// Issue an OAuth authorization code. Called by an OAuth client's sign-in bridge
2547
2728
  /// (an `/auth/connector`-style route) after II authentication. The client then
2548
2729
  /// redirects the user's browser to `redirectUri` with `?code=<this>` so the
@@ -2550,7 +2731,7 @@ type Engram =
2550
2731
  ///
2551
2732
  /// Owner-only: only the engram owner can authorize a Connector install.
2552
2733
  issueAuthCode: (redirectUri: text, scope: text, codeChallenge: text,
2553
- clientId: opt text) -> (Result_55);
2734
+ clientId: opt text) -> (Result_58);
2554
2735
  /// ⟨0.16.0⟩ `getCycleSnapshotSource` DELETED — folded into `CycleSnapshot.source`, one label per
2555
2736
  /// ROW. A single label for a whole ring misattributes every row recorded under the other source,
2556
2737
  /// and the source flips by design (self-call first, balance on fallback). Its documentation of
@@ -2564,7 +2745,15 @@ type Engram =
2564
2745
  /// Refusal reason preserved, and it is the sharpest of this family: a masked `[]` reads as a
2565
2746
  /// DORMANT engram and corrupts retention math — a fabricated empty here does not just misinform a
2566
2747
  /// reader, it feeds a wrong number into a decision about destroying data.
2567
- 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;
2568
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,
2569
2758
  /// m."⟩ OWNER-ONLY: what each agent has spent today, beside the daily limit in force for it, so the
2570
2759
  /// agent rows can say "$0.50 of $5.00 today" where they said a count of payments. Read from the
@@ -2583,7 +2772,7 @@ type Engram =
2583
2772
  /// the calling key, or under another day boundary.
2584
2773
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2585
2774
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2586
- listAgentSpendToday: (start: nat, limit: nat) -> (Result_53) query;
2775
+ listAgentSpendToday: (start: nat, limit: nat) -> (Result_55) query;
2587
2776
  /// ⟨0.16.0⟩ THE PAGE EXEMPLAR. Trap → `#Refused`, bare array → `Result<Page<T>>` (L1 + L3).
2588
2777
  ///
2589
2778
  /// The refusal prose that used to be `gatedTrap`'s `whyNotEmpty` argument is not lost — it is why
@@ -2600,7 +2789,7 @@ type Engram =
2600
2789
  /// A method that filters rows by caller sets it — see L1's row-level honesty rule.
2601
2790
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2602
2791
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2603
- listAgents: (start: nat, limit: nat) -> (Result_52) query;
2792
+ listAgents: (start: nat, limit: nat) -> (Result_54) query;
2604
2793
  /// The GUARDIAN-audience projection of the agent roster — three fields, not the full record.
2605
2794
  ///
2606
2795
  /// Two audiences, two methods (L1/L8), rather than one method masking fields by caller: a
@@ -2612,7 +2801,7 @@ type Engram =
2612
2801
  /// Refusal reason preserved: `[]` reads as "this engram has no agents", and this is the list a
2613
2802
  /// guardian consults BEFORE REVOKING ONE. A fabricated empty here does not merely misinform —
2614
2803
  /// it tells someone acting under emergency powers that there is nothing to act on.
2615
- listAgentsForGuardian: (start: nat, limit: nat) -> (Result_51) query;
2804
+ listAgentsForGuardian: (start: nat, limit: nat) -> (Result_53) query;
2616
2805
  /// Owner-only: rows carry caller, amount, operation and free-text rationale. The SDK omits it.
2617
2806
  ///
2618
2807
  /// The optional leading filter SURVIVES the L3 reshape — ratified (census tier-2 #8) rather than
@@ -2625,7 +2814,7 @@ type Engram =
2625
2814
  ///
2626
2815
  /// Refusal reason preserved: `[]` reads as "nothing is awaiting the owner's decision".
2627
2816
  listApprovalRequests: (statusFilter: opt ApprovalStatus, start: nat,
2628
- limit: nat) -> (Result_37) query;
2817
+ limit: nat) -> (Result_39) query;
2629
2818
  /// ⟨0.16.0⟩ `total` IS THE HEAD COUNTER, and on this method that is the entire point.
2630
2819
  ///
2631
2820
  /// The audit log is a bounded RING: it trims its tail, so "rows you can read" and "entries that
@@ -2659,7 +2848,7 @@ type Engram =
2659
2848
  /// where this record switched to the hash-first rule. A sealed row costs one SHA-256 of its body
2660
2849
  /// at read time; nothing new is stored. WHAT WOULD MAKE THIS WRONG: a sealed row carrying any part
2661
2850
  /// of a body, or a stranger reaching `items` (test/record-view.test.mo pins both).
2662
- listAuditEntries: (start: nat, limit: nat) -> (Result_50) query;
2851
+ listAuditEntries: (start: nat, limit: nat) -> (Result_52) query;
2663
2852
  /// ⟨0.16.0, L1 + L3 — census-ruled⟩ THE TWO-MECHANISM EXCEPTION DISSOLVES.
2664
2853
  ///
2665
2854
  /// This method used to answer THREE ways to one question: a list, an `#Err` text, and a trap,
@@ -2683,7 +2872,7 @@ type Engram =
2683
2872
  /// `dbTypeFilter` DIES on the wire (census). The capability does not: `EngramClient.listBackups`
2684
2873
  /// keeps its optional filter and applies it to the page, so no caller loses the ability to ask
2685
2874
  /// "backups of this database" — it stops being a thing the canister has to page around.
2686
- listBackups: (start: nat, limit: nat) -> (Result_49) query;
2875
+ listBackups: (start: nat, limit: nat) -> (Result_51) query;
2687
2876
  /// List all bearer tokens — Active, Revoked, and Expired. Owner uses this in
2688
2877
  /// the dashboard to show installed Connectors (claude.ai, Claude Desktop, etc.).
2689
2878
  /// Refusal reason preserved from the trap: `[]` reads as "no connector is installed on this
@@ -2695,7 +2884,7 @@ type Engram =
2695
2884
  /// the same honesty the store gained on 2026-08-17.
2696
2885
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2697
2886
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2698
- listBearerTokens: (start: nat, limit: nat) -> (Result_48) query;
2887
+ listBearerTokens: (start: nat, limit: nat) -> (Result_50) query;
2699
2888
  /// The condense checkpoints in the retained log at or above `startSeq`, oldest first.
2700
2889
  ///
2701
2890
  /// ⟨0.16.0, NEW⟩ The other half of the split above. A checkpoint is the only surviving record of a
@@ -2705,18 +2894,18 @@ type Engram =
2705
2894
  ///
2706
2895
  /// Owner-only like every other archive surface, and for the same structural reason: these rows
2707
2896
  /// carry the chain positions and roots of entries whose paths were inside the hash preimage.
2708
- listCondenseCheckpoints: (startSeq: nat, max: nat) -> (Result_47) query;
2897
+ listCondenseCheckpoints: (startSeq: nat, max: nat) -> (Result_49) query;
2709
2898
  /// ⟨0.16.0⟩ `metrics()` DELETED — absorbed by `about()`.
2710
2899
  ///
2711
2900
  /// Two public projections of one canister (L2.2): `metrics()` and `status()` both answered "what
2712
2901
  /// is this engram like" and disagreed on which counters they carried, so a consumer had to fetch
2713
2902
  /// both and know which one owned each field. Every field here survives on `about()`, day-flooring
2714
2903
  /// included.
2715
- listCycleSnapshots: (start: nat, limit: nat) -> (Result_46) query;
2904
+ listCycleSnapshots: (start: nat, limit: nat) -> (Result_48) query;
2716
2905
  /// Same `withheld` treatment as listMemoryFiles — the tombstone listing filtered reserved paths
2717
2906
  /// for non-owners just as silently, and a caller could not tell a filtered tombstone list from a
2718
2907
  /// complete one. Counted before slicing, so policy-hidden rows never blur into paging.
2719
- listDeletedMemoryFiles: (start: nat, limit: nat) -> (Result_45) query;
2908
+ listDeletedMemoryFiles: (start: nat, limit: nat) -> (Result_47) query;
2720
2909
  /// Stays on the engram under B1 (hybrid): withdrawal custody does not leave.
2721
2910
  ///
2722
2911
  /// NAMED item, not a `(Text, Int)` tuple. The Int is an activation time, and a bare Int beside a
@@ -2731,7 +2920,7 @@ type Engram =
2731
2920
  /// The item's field is `value`, not `address`: a list may hold a venue value that is no address.
2732
2921
  /// Readable by the owner, an active agent or an active guardian, as the old list was.
2733
2922
  listEip712Destinations: (typeId: blob, start: nat, limit: nat) ->
2734
- (Result_44) query;
2923
+ (Result_46) query;
2735
2924
  /// The registered shapes — E3: encodeTypeString is the display artifact, verbatim.
2736
2925
  /// Stays on the engram under B1 (hybrid): EIP-712 signing is custody, and custody does not leave.
2737
2926
  ///
@@ -2742,20 +2931,20 @@ type Engram =
2742
2931
  /// ⟨2026-10-14, the owner's ruling 3A⟩ Each row carries its per-field rules (`fieldRules`), joined in
2743
2932
  /// from `eip712FieldRules` — they are part of what the type authorises, so a reader of the list must
2744
2933
  /// not have to make a second call to learn them. The row type is `Eip712TypeView`.
2745
- listEip712Types: (start: nat, limit: nat) -> (Result_43) query;
2934
+ listEip712Types: (start: nat, limit: nat) -> (Result_45) query;
2746
2935
  /// ⟨2026-10-21, round 11 c⟩ Guardians' disputes, oldest first. Same visibility as
2747
2936
  /// `listRepudiations` and `listRecordNotes`: the owner and ACTIVE guardians read the rows; an
2748
2937
  /// agent gets an empty page whose `withheld` counts them (ruling 16 B holds — a dispute is the
2749
2938
  /// guardian's entry, not the agent's); a stranger, a pending guardian and the anonymous caller are
2750
2939
  /// refused.
2751
- listGuardianDisputes: (start: nat, limit: nat) -> (Result_42) query;
2940
+ listGuardianDisputes: (start: nat, limit: nat) -> (Result_44) query;
2752
2941
  /// Accessible by owner and guardians.
2753
2942
  ///
2754
2943
  /// Refusal reason carried over from the trap, because it is the sharpest example of why this
2755
2944
  /// surface may not fail soft: `[]` reads as "this engram has nobody who can freeze payments or
2756
2945
  /// pause writes" — a claim about who can STOP it. A caller who cannot tell that from "you may not
2757
2946
  /// see the roster" has been told the engram is unguarded when it may be fully guarded.
2758
- listGuardians: (start: nat, limit: nat) -> (Result_41) query;
2947
+ listGuardians: (start: nat, limit: nat) -> (Result_43) query;
2759
2948
  /// The export receipts in the retained log at or above `startSeq`, oldest first.
2760
2949
  ///
2761
2950
  /// ⟨0.16.0, L3⟩ ONE LIST, ONE QUESTION. This method used to return receipts AND checkpoints
@@ -2771,7 +2960,7 @@ type Engram =
2771
2960
  ///
2772
2961
  /// Read `MemoryRouter.ReceiptPage` before reading `page.total` as a receipt count. It is not one;
2773
2962
  /// it is the chain's length, and the declaration says why.
2774
- listMemoryExportReceipts: (startSeq: nat, max: nat) -> (Result_40) query;
2963
+ listMemoryExportReceipts: (startSeq: nat, max: nat) -> (Result_42) query;
2775
2964
  /// ⟨0.16.0⟩ THE `withheld` EXEMPLAR — L1 names this exact method as the defect it fixes.
2776
2965
  ///
2777
2966
  /// A non-owner's answer silently dropped every `config/` and `secrets/` row. Not "refused the
@@ -2796,7 +2985,7 @@ type Engram =
2796
2985
  /// the rows of THIS page (`MemoryRouter.info`), after the slice, so the cost is one lookup per
2797
2986
  /// row served, never one per file stored. A WIDENED REPLY: a reader that decodes the row by
2798
2987
  /// position rather than by field name breaks — none in this repository does.
2799
- listMemoryFiles: (start: nat, limit: nat) -> (Result_39) query;
2988
+ listMemoryFiles: (start: nat, limit: nat) -> (Result_41) query;
2800
2989
  /// One page of the memory log, seq-ordered, optionally narrowed to one author.
2801
2990
  ///
2802
2991
  /// THE WINDOW IS THE CURSOR, and the page now states it. The window is
@@ -2822,7 +3011,7 @@ type Engram =
2822
3011
  /// with the disclosures that make the page verifiable — the hidden-bound defect the census itself
2823
3012
  /// names on previewCondense's row.
2824
3013
  listMemoryLog: (startSeq: nat, max: nat, authorFilter: opt principal) ->
2825
- (Result_38) query;
3014
+ (Result_40) query;
2826
3015
  /// The caller's OWN spend-approval requests. ⟨0.16.0, L1 + L3 — fixed 2026-08-18⟩
2827
3016
  ///
2828
3017
  /// Two defects in seven lines, and the first is the one this release exists to remove:
@@ -2839,7 +3028,7 @@ type Engram =
2839
3028
  /// to see, so `total` over their own rows is the honest count and nothing is hidden FROM them.
2840
3029
  /// (The unbounded MAP is filed separately — pruning an approval record destroys evidence of what
2841
3030
  /// was asked, which is a retention ruling rather than a shape fix.)
2842
- listMyApprovalRequests: (start: nat, limit: nat) -> (Result_37) query;
3031
+ listMyApprovalRequests: (start: nat, limit: nat) -> (Result_39) query;
2843
3032
  /// The payer's own sessions, live ones first. PAYER-SCOPED: a caller sees only their own, which
2844
3033
  /// is why this needs no role — a session id is not a secret from the person who paid for it.
2845
3034
  ///
@@ -2848,7 +3037,7 @@ type Engram =
2848
3037
  /// It took no arguments, and a cursor added after the freeze is an argument-list change every
2849
3038
  /// client would break on — the market paged its own pending withdrawals before its cut for the
2850
3039
  /// same reason. The order is the order sessions were opened.
2851
- listMySessions: (start: nat, limit: nat) -> (Result_36) query;
3040
+ listMySessions: (start: nat, limit: nat) -> (Result_38) query;
2852
3041
  ///
2853
3042
  /// ⟨0.16.0, L3⟩ Paged and enveloped like every other `list*`, and the envelope here is uniformity
2854
3043
  /// rather than gating: this method cannot refuse anybody, so `#Err` is unreachable on it. That is
@@ -2861,7 +3050,7 @@ type Engram =
2861
3050
  /// asked by strangers. `verifyEngramActiveOwner` on the registry answers only about the owner
2862
3051
  /// IT recorded, so this chain is what a caller composes with when currency matters — which it
2863
3052
  /// cannot do if it needs a role here.
2864
- listOwnershipTransfers: (start: nat, limit: nat) -> (Result_35) query;
3053
+ listOwnershipTransfers: (start: nat, limit: nat) -> (Result_37) query;
2865
3054
  /// ⟨2026-09-29, the platform's question from the build review⟩ OWNER-ONLY: how many payment
2866
3055
  /// signatures each agent has obtained today, and the daily limit (200, `PaymentSignCap`). The
2867
3056
  /// owner's console stated the rule and showed no number, because nothing served one; a number it
@@ -2879,7 +3068,7 @@ type Engram =
2879
3068
  /// (`PaymentSignCap.marketplaceRow`). Null when no marketplace is set.
2880
3069
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2881
3070
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2882
- listPaymentSignatureCounts: (start: nat, limit: nat) -> (Result_34) query;
3071
+ listPaymentSignatureCounts: (start: nat, limit: nat) -> (Result_36) query;
2883
3072
  /// Agent records removed by a reset. Each row is a NAMED record with the fields `principal`,
2884
3073
  /// `name`, `registeredAt` and `purgedAt` — read them BY NAME, never by position.
2885
3074
  /// ⟨2026-09-29, the vocabulary ruling: pairing is the one verb that admits an agent⟩ The field
@@ -2921,7 +3110,7 @@ type Engram =
2921
3110
  /// served as they are.
2922
3111
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2923
3112
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2924
- listPurgedAgents: (start: nat, limit: nat) -> (Result_33) query;
3113
+ listPurgedAgents: (start: nat, limit: nat) -> (Result_35) query;
2925
3114
  /// ⟨0.16.0⟩ ONE ACCESSOR, folding `readReadLog` and `getDenialLog` — and the fold only became
2926
3115
  /// safe because of a change made earlier in this same leg.
2927
3116
  ///
@@ -2983,13 +3172,13 @@ type Engram =
2983
3172
  /// on the chained record — the same `RecordView` filter, and `withheld` counts what it removed
2984
3173
  /// together with what `successFilter` removed. WHAT WOULD MAKE THIS WRONG: see `listAuditEntries`.
2985
3174
  listReadLog: (successFilter: opt bool, start: nat, limit: nat) ->
2986
- (Result_32) query;
3175
+ (Result_34) query;
2987
3176
  /// ⟨2026-10-21, round 11 b⟩ The owner's notes, oldest first. Same visibility as
2988
3177
  /// `listRepudiations`, for the same reason: the owner and ACTIVE guardians read the rows; an agent
2989
3178
  /// reads only the entries it caused (follow-up 16 B), and every note is the owner's, so an agent
2990
3179
  /// gets an empty page whose `withheld` counts the notes in its window — never "there are none". A
2991
3180
  /// stranger, a pending guardian and the anonymous caller are refused.
2992
- listRecordNotes: (start: nat, limit: nat) -> (Result_31) query;
3181
+ listRecordNotes: (start: nat, limit: nat) -> (Result_33) query;
2993
3182
  /// Same visibility as listAuditEntries: the owner, this engram's agents, and ACTIVE guardians
2994
3183
  /// see disputes. An unauthorized read REFUSES — it does not return an empty list, because an
2995
3184
  /// empty list reads as "no disputes have been filed", which is a claim, not an absence of one.
@@ -3004,14 +3193,14 @@ type Engram =
3004
3193
  /// window — which says disputes exist without showing them, never "none have been filed". WHAT
3005
3194
  /// WOULD MAKE THIS WRONG: a ruling that an agent may see the disputes of its own writes; this would
3006
3195
  /// then have to look up each disputed version's writer, which it does not do today.
3007
- listRepudiations: (start: nat, limit: nat) -> (Result_30) query;
3196
+ listRepudiations: (start: nat, limit: nat) -> (Result_32) query;
3008
3197
  /// The seller list, a page at a time, as `Types.SellerView` (a raise whose wait is over shown applied;
3009
3198
  /// `liveNow` — false for every row while an engram opened through another has no sign-in seated; what
3010
3199
  /// x402 reserved for each today). For the key file and the sign-in in an engram opened
3011
3200
  /// through another, the owner in a first engram; refused loudly to anyone else — never an empty page,
3012
3201
  /// which would read as "no sellers". A QUERY: the refusal is in the reply, not the denial log.
3013
3202
  /// Named callers: an owner console's seller list.
3014
- listSellers: (start: nat, limit: nat) -> (Result_29) query;
3203
+ listSellers: (start: nat, limit: nat) -> (Result_31) query;
3015
3204
  /// ⟨2026-10-21, the owner's round-11 answer f⟩ OWNER-ONLY: the sign-ins, each with the name its app
3016
3205
  /// registered. The same tokens, in the same order and paged the same way, as `listBearerTokens`,
3017
3206
  /// each beside `clientName` — the RFC 7591 `client_name` the app registered when the token was
@@ -3022,7 +3211,7 @@ type Engram =
3022
3211
  /// the anonymous caller are refused, by `listBearerTokens`' own gate and for its reason.
3023
3212
  /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
3024
3213
  /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
3025
- listSignIns: (start: nat, limit: nat) -> (Result_28) query;
3214
+ listSignIns: (start: nat, limit: nat) -> (Result_30) query;
3026
3215
  /// Owner: advance the review cursor — "I have seen everything up to and including uptoAuditId"
3027
3216
  /// (null = everything at the current head). Bounded so the attestation can never cover entries
3028
3217
  /// the console did not render; clamped monotonic (the cursor never moves backward) and to the
@@ -3050,7 +3239,7 @@ type Engram =
3050
3239
  /// the caps alone no longer read as money an agent can spend. `People.SpendState` names each one.
3051
3240
  /// ⟨2026-10-29, review F2⟩ And which whole-key refusal stops every payment now, if one does
3052
3241
  /// (`paymentsStoppedBy`: the brake, the signing floor, the daily count of payment signatures).
3053
- myGrant: () -> (Result_27) query;
3242
+ myGrant: () -> (Result_29) query;
3054
3243
  /// The AGENT's current key nominates the key that will replace it. Nothing moves yet: the new
3055
3244
  /// key must accept, by its own call, within 24 hours (`acceptAgentKeyNomination`). One pending
3056
3245
  /// nomination per agent — a new one replaces the earlier one, and the record says which. Refused,
@@ -3106,8 +3295,8 @@ type Engram =
3106
3295
  /// `sysOpenChild`). An rc.21 kit calling the old name is rejected
3107
3296
  /// (IC0536) with nothing spent; it can never open an engram without a sign-in by accident.
3108
3297
  /// Named caller: the owner kit's `open-engram` command, signed by the agent's session key.
3109
- openChild: (req: record {signIn: opt principal;}) -> (Result_26);
3110
- openSession: (config: SessionConfig, sig: PaymentSignature) -> (Result_25);
3298
+ openChild: (req: record {signIn: opt principal;}) -> (Result_28);
3299
+ openSession: (config: SessionConfig, sig: PaymentSignature) -> (Result_27);
3111
3300
  /// Withdraw tokens to the owner's principal. This is the ONLY way to
3112
3301
  /// move tokens out of the engram to an external address, and the
3113
3302
  /// destination is always hardcoded to the owner.
@@ -3172,13 +3361,19 @@ type Engram =
3172
3361
  pairAgent: (arg: record {
3173
3362
  code: text;
3174
3363
  enrolment: Enrolment;
3175
- }) -> (Result_24);
3364
+ }) -> (Result_26);
3176
3365
  /// ⟨0.16.0, L2.2 — renamed from `guardianPauseWrites`⟩ Same correction as freezePayments above:
3177
3366
  /// owner-or-guardian, and `resumeWrites` never carried the prefix either.
3178
3367
  pauseWrites: () -> (Result_2);
3179
3368
  /// ⟨2026-10-21, the owner's round-11 answer d⟩ `pauseWrites` with a reason; everything said of
3180
3369
  /// `freezePaymentsWithReason` holds, with `canPauseWrites` as the guardian's grant.
3181
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;
3182
3377
  /// What condensing through `toSeq` would do, and whether it is unlocked. COMMITS NOTHING — it is
3183
3378
  /// a query, so it structurally cannot; a preview that wrote would be its own trap.
3184
3379
  ///
@@ -3197,7 +3392,7 @@ type Engram =
3197
3392
  ///
3198
3393
  /// `unlocked` is the export-receipt gate ONLY. It is not a promise the condense will land: the
3199
3394
  /// history-budget delta is checked at commit time and can still refuse a short prefix.
3200
- previewCondense: (toSeq: nat) -> (Result_23) query;
3395
+ previewCondense: (toSeq: nat) -> (Result_24) query;
3201
3396
  /// A quote for a session this caller has not opened and is not committed to — the intent a
3202
3397
  /// buyer signs against. Pure dry run, no state, no funds.
3203
3398
  ///
@@ -3247,7 +3442,7 @@ type Engram =
3247
3442
  previewRetention: (entries: vec record {
3248
3443
  text;
3249
3444
  RetentionClassSpec;
3250
- }) -> (Result_22) query;
3445
+ }) -> (Result_23) query;
3251
3446
  /// Read one memory file at its current version.
3252
3447
  ///
3253
3448
  /// Gated on the `read_memory` permission, so an agent holding that grant reaches it — unlike
@@ -3278,7 +3473,7 @@ type Engram =
3278
3473
  /// Both are now what they are: a single `#Err` for the whole call. `#Ok` still carries a row per
3279
3474
  /// path, each with its own Result — a refused RESERVED path sits beside a readable one, which is
3280
3475
  /// a genuine per-path fact.
3281
- readMemoryBatch: (paths: vec text) -> (Result_21) query;
3476
+ readMemoryBatch: (paths: vec text) -> (Result_22) query;
3282
3477
  /// ⟨0.16.0⟩ `getMemoryRetentionGuards` DELETED — folded into `getMemoryRetentionPolicy` above.
3283
3478
  /// It was the second L2.1 array-returning `get*`, and separating it from the policy it modifies
3284
3479
  /// was the defect described there. Its own docs are preserved at the fold site.
@@ -3289,7 +3484,7 @@ type Engram =
3289
3484
  /// see it cannot know whether it has the whole range, which is how silent truncation gets
3290
3485
  /// reintroduced. Loop while `more` is true, advancing by the bytes actually returned.
3291
3486
  readMemoryBytes: (path: text, offset: nat, len: nat, version: opt nat) ->
3292
- (Result_20) query;
3487
+ (Result_21) query;
3293
3488
  /// The escrow exit for a session whose settle cannot pay.
3294
3489
  ///
3295
3490
  /// PAYER-ONLY, enforced inside the gateway, and deliberately not owner-triggered: the payer's own
@@ -3352,7 +3547,7 @@ type Engram =
3352
3547
  /// was the block index alone, which read as the amount. If the session's record is removed before
3353
3548
  /// the amount can be read back — a session closed in the same moment as the recovery and cleaned up
3354
3549
  /// during its transfer — it answers `#Other` naming the block, never a guessed amount.
3355
- recoverEscrow: (sessionId: text, amountE6: nat) -> (Result_19);
3550
+ recoverEscrow: (sessionId: text, amountE6: nat) -> (Result_20);
3356
3551
  /// ⟨0.16.0, L1⟩ A REDEMPTION PATH, where the arm choice is a disclosure decision.
3357
3552
  ///
3358
3553
  /// Four of these refusals are about the CODE and one is about the caller. The code arms restate
@@ -3366,7 +3561,7 @@ type Engram =
3366
3561
  /// rather than `()`. The new guardian learns, in the same reply, the name and permissions the
3367
3562
  /// owner's invite gave them and that they cannot act until approved; before, that took a second
3368
3563
  /// read they had no reason to know to make.
3369
- registerGuardian: (code: text) -> (Result_18);
3564
+ registerGuardian: (code: text) -> (Result_19);
3370
3565
  /// Remove a per-caller override so that caller reverts to — and keeps TRACKING — the global caps.
3371
3566
  ///
3372
3567
  /// It travels with its pair and is never dropped alone: without it the only way "back" from an
@@ -3451,7 +3646,7 @@ type Engram =
3451
3646
  /// NOT unbounded. It caps at MAX_ENTRIES and trims its oldest tenth on overflow, so on any engram
3452
3647
  /// long-lived enough for the rent model to apply, the reset entry is not guaranteed to still be
3453
3648
  /// there. `agentPurgeLog` is the evidence that does not age out — which is why it exists.
3454
- resetEngram: () -> (Result_17);
3649
+ resetEngram: () -> (Result_18);
3455
3650
  /// ⟨2026-09-28, owner decision: an agent can resign from an engram, and the resignation is
3456
3651
  /// recorded⟩ The AGENT ends its own engagement with this engram.
3457
3652
  ///
@@ -3497,7 +3692,7 @@ type Engram =
3497
3692
  /// all that is left to send is the ending, and the registry has nothing to end. The report lists
3498
3693
  /// each such engagement under `cannotBeRecorded` (key, root, invite, and how and when it ended),
3499
3694
  /// apart from `notRecorded`, so the owner sees them rather than silence.
3500
- resyncAgentEdges: () -> (Result_16);
3695
+ resyncAgentEdges: () -> (Result_17);
3501
3696
  /// Return to managed custody: the engram adds the registry back as a controller ALONGSIDE the
3502
3697
  /// owner — it does not remove the owner. The inverse of `claimSovereignty`, and the reason
3503
3698
  /// sovereignty is not a one-way door.
@@ -3599,6 +3794,18 @@ type Engram =
3599
3794
  /// agent on that record, so its standing is not the problem — the record's state is. An
3600
3795
  /// agent reading `#Refused` would go looking for a permission that was never missing.
3601
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);
3602
3809
  /// Send money from this engram's wallet to the engram it was opened through — "up", and only up:
3603
3810
  /// the destination is always the parent engram's own default account, never an address the caller
3604
3811
  /// names. ANY amount (the owner's ruling "B"); the answer is the ledger's block index.
@@ -3812,6 +4019,10 @@ type Engram =
3812
4019
  /// "tightened" from "loosened" precisely would mean comparing two cap lattices, so armGuards
3813
4020
  /// (RetentionPolicy.mo) guards any change it sees. That is the conservative reading, and its
3814
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.
3815
4026
  setMemoryRetentionPolicy: (entries:
3816
4027
  vec record {
3817
4028
  text;
@@ -3905,6 +4116,10 @@ type Engram =
3905
4116
  /// The record entry `spend.setCeiling` carries the new AND the previous value, so a widening is
3906
4117
  /// distinguishable from a tightening afterwards — the reason `spend.setPolicy` records its limits.
3907
4118
  /// Not blocked by a payments freeze, like `setSpendPolicy`: setting a limit moves no money.
4119
+ /// ⟨2026-11-04, the agent-conversion build⟩ What counts against the ceiling: x402 payments, an agent's
4120
+ /// conversion of the engram's balance, and the key file's Convert in an engram opened through another
4121
+ /// (`getSpendCeiling`'s note). Removing the ceiling does NOT free agent conversions: they keep their own
4122
+ /// bound, one in any 24 hours (`agentConvertAtNs`).
3908
4123
  setSpendCeiling: (maxPerDay: opt nat) -> (Result_2);
3909
4124
  /// Set this engram's spending caps.
3910
4125
  ///
@@ -4240,6 +4455,49 @@ type Engram =
4240
4455
  paidThroughNs: opt int;
4241
4456
  scheduleVersion: opt text;
4242
4457
  }) -> (Result_2);
4458
+ /// ⟨2026-11-04, the owner's ruling "1 A": a marketplace sale is paid into the selling engram's own
4459
+ /// wallet, and the engram writes each sale to its record⟩ THE MARKET WRITING A SALE TO THIS ENGRAM'S
4460
+ /// RECORD, after it has paid this engram's own account (ckUSDC) or address (another chain). The
4461
+ /// money does not pass through here and nothing here moves any: a ledger account needs no running
4462
+ /// canister, so the sale is paid whatever state this engram is in, and this method only writes the
4463
+ /// line that says so — one `market.sale` row per sale, its details from `SaleNotice.details`.
4464
+ ///
4465
+ /// GATED TO THE CONFIGURED MARKET (`AccessControl.requireMarketSale`), the pointer the spawning
4466
+ /// registry set once (`sysSetMarketId`). Neither the owner nor an agent may write a sale row: a
4467
+ /// receipt an owner could write is a receipt an owner could forge.
4468
+ ///
4469
+ /// IDEMPOTENT ON THE RECEIPT ID. The market retries a notice it could not deliver (this engram out
4470
+ /// of compute, upgrading, stopped), and a retry of one that did land must learn it succeeded: a
4471
+ /// repeat answers `#Ok` and writes nothing — no row, no denial row (`sysNotifyWalletActivity`'s
4472
+ /// contract). The receipt ids live in `saleReceiptsStable`.
4473
+ ///
4474
+ /// IT AWAITS NOTHING, deliberately, and test/market-route-wiring.test.ts rule E3 holds that: no
4475
+ /// outgoing call means nothing to count under wiring rule 20, and NO WAKE DOOR — a sale brings
4476
+ /// dollars, not compute, so a paused engram's wake would find no room on every engram that is
4477
+ /// actually paused (the design's question 3, defaulted "wakes nothing unless the owner objects").
4478
+ ///
4479
+ /// NOT GATED ON a guardian's payment freeze (that stops this engram's own signing — money out;
4480
+ /// `sysRecordFeeEvent` is not freeze-gated either), on `pauseWrites` (memory writes), or on the
4481
+ /// owner's custody state. A receipt an owner could block is a receipt an owner could hide.
4482
+ ///
4483
+ /// It also stamps `walletActivatedAt` ("market-sale"): money landing in this engram's account IS
4484
+ /// the wallet-bearing event, and it covers services, which the market's listing notice never did.
4485
+ /// The listing notice (`sysNotifyWalletActivity`) stays, as ruled 2026-08-20; whether to retire it
4486
+ /// is the owner's question.
4487
+ ///
4488
+ /// ⟨2026-11-04, the owner's ruling "A", beside the gate paragraph above⟩ NO MARKET SET YET IS "NOT
4489
+ /// YET", NOT A REFUSAL. With `marketId` null the gate's refusal is answered `#Unavailable`, and the
4490
+ /// market PARKS the notice (it drops a sale's line on any other `#Err` at once — the defect this
4491
+ /// closes: the money landed and the line was lost for good). `marketId` is not final: the registry
4492
+ /// sets it later (`sysSetMarketId`), and then `retrySaleNotices` or the seller's next
4493
+ /// `registerSeller` writes the line; the market's 30-day age cap ends the wait. That arm writes NO
4494
+ /// `sysRecordSale.denied` row: nothing was denied, and `retrySaleNotices` is open to any caller, so a
4495
+ /// row per press would be spam on the owner's read log. A caller that is not the configured market,
4496
+ /// once one is set, is still `#Refused` with its row, unchanged. WHAT WOULD MAKE THIS WRONG: a
4497
+ /// `marketId` that can be set to null on purpose (a market retired from an engram) — then null would
4498
+ /// mean "never", and parking for 30 days would hold a line nobody can write.
4499
+ /// Witness: test/market-route/sale-route.test.ts S7 and record-row.test.ts R3.
4500
+ sysRecordSale: (sale: SaleNotice) -> (Result_2);
4243
4501
  /// Give back what a paid security update advanced this engram and the install did not use.
4244
4502
  ///
4245
4503
  /// CALLER: the registry that spawned this engram, right after it installed a security update it
@@ -4296,6 +4554,23 @@ type Engram =
4296
4554
  /// it checks only that the chain ends with its own record. The fingerprints are the registry's to
4297
4555
  /// certify and the client's `verifyBirthChain` to check.
4298
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);
4299
4574
  /// Point this engram at the commerce satellite allowed to ask it for signatures. ⟨0.16.0, B1⟩
4300
4575
  ///
4301
4576
  /// SAME AUTHORITY AS `sysSetBillerId`, and for a stronger reason. That one routes money; this one
@@ -4471,6 +4746,11 @@ type Engram =
4471
4746
  /// `#Invalid` rather than a refusal it would waste time investigating.
4472
4747
  writeMemory: (path: text, content: blob) -> (Result);
4473
4748
  };
4749
+ type End =
4750
+ variant {
4751
+ all;
4752
+ at: int;
4753
+ };
4474
4754
  type Eip712Value =
4475
4755
  variant {
4476
4756
  address: text;
@@ -4555,6 +4835,14 @@ type CycleSnapshot =
4555
4835
  self;
4556
4836
  };
4557
4837
  };
4838
+ type Conversion =
4839
+ record {
4840
+ amountE6: nat;
4841
+ cyclesAdded: nat;
4842
+ daysLeftBefore: opt nat;
4843
+ finishedBeforeRemovalSeen: bool;
4844
+ token: text;
4845
+ };
4558
4846
  type ControlHandover =
4559
4847
  variant {
4560
4848
  MovedByEngram;
@@ -4632,6 +4920,11 @@ type CertifiedAuditHead =
4632
4920
  total: nat;
4633
4921
  witness: opt blob;
4634
4922
  };
4923
+ type CanonicalRead =
4924
+ record {
4925
+ entry: Entry;
4926
+ readPath: text;
4927
+ };
4635
4928
  type CallerSignatureCount =
4636
4929
  record {
4637
4930
  caller: principal;
@@ -4912,6 +5205,13 @@ type AgentEndReason =
4912
5205
  Reset;
4913
5206
  Resigned;
4914
5207
  };
5208
+ type AgentConvertRule =
5209
+ record {
5210
+ belowDays: nat;
5211
+ maxPerCallE6: nat;
5212
+ minPerCallE6: nat;
5213
+ spacingSeconds: nat;
5214
+ };
4915
5215
  type AgentCard =
4916
5216
  record {
4917
5217
  description: text;
@@ -4966,5 +5266,6 @@ service : (initArgs: opt
4966
5266
  owner: opt principal;
4967
5267
  ownerSignIn: opt principal;
4968
5268
  parent: opt principal;
5269
+ recoveredAtNs: opt int;
4969
5270
  registry: opt principal;
4970
5271
  }) -> Engram