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

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
@@ -180,6 +180,19 @@ type ServiceEntry =
180
180
  skills: vec text;
181
181
  version: text;
182
182
  };
183
+ type SellerView =
184
+ record {
185
+ activatesAtNs: int;
186
+ addedAtNs: int;
187
+ addedBy: principal;
188
+ isPayout: bool;
189
+ liveNow: bool;
190
+ payTo: text;
191
+ pendingActivatesAtNs: opt int;
192
+ pendingCapE6: opt nat;
193
+ perDayCapE6: nat;
194
+ spentTodayE6: nat;
195
+ };
183
196
  type Seat =
184
197
  record {
185
198
  firstPaymentDay: opt nat;
@@ -194,6 +207,22 @@ type SealedEntry =
194
207
  entryHash: blob;
195
208
  id: nat;
196
209
  };
210
+ type SaleNotice =
211
+ record {
212
+ amountE6: nat;
213
+ buyer: text;
214
+ jobId: opt text;
215
+ kind: variant {
216
+ content;
217
+ "service";
218
+ };
219
+ listingId: text;
220
+ network: text;
221
+ receiptId: text;
222
+ settledAtNs: int;
223
+ token: text;
224
+ txRef: opt text;
225
+ };
197
226
  type Role =
198
227
  variant {
199
228
  Admin;
@@ -254,30 +283,50 @@ type ResyncReport =
254
283
  };
255
284
  startsAcknowledged: nat;
256
285
  };
286
+ type Result_90 =
287
+ variant {
288
+ Err: Error;
289
+ Ok: AgentRecord;
290
+ };
257
291
  type Result_9 =
258
292
  variant {
259
293
  Err: Error;
260
294
  Ok: vec Seat;
261
295
  };
262
- type Result_83 =
296
+ type Result_88 =
263
297
  variant {
264
298
  Err: Error;
265
- Ok: AgentRecord;
299
+ Ok: Eip712Registration;
300
+ };
301
+ type Result_86 =
302
+ variant {
303
+ Err: Error;
304
+ Ok: Conversion;
305
+ };
306
+ type Result_85 =
307
+ variant {
308
+ Err: Error;
309
+ Ok: CondenseResult;
310
+ };
311
+ type Result_84 =
312
+ variant {
313
+ Err: Error;
314
+ Ok: MemoryRangeExport;
266
315
  };
267
316
  type Result_82 =
268
317
  variant {
269
318
  Err: Error;
270
- Ok: record {activatesAtNs: int;};
319
+ Ok: Page_26;
271
320
  };
272
321
  type Result_81 =
273
322
  variant {
274
323
  Err: Error;
275
- Ok: Eip712Registration;
324
+ Ok: AgentWriteReview;
276
325
  };
277
326
  type Result_80 =
278
327
  variant {
279
328
  Err: Error;
280
- Ok: CondenseResult;
329
+ Ok: BackupMetadata;
281
330
  };
282
331
  type Result_8 =
283
332
  variant {
@@ -287,47 +336,52 @@ type Result_8 =
287
336
  type Result_79 =
288
337
  variant {
289
338
  Err: Error;
290
- Ok: MemoryRangeExport;
339
+ Ok: BackupRetention;
340
+ };
341
+ type Result_78 =
342
+ variant {
343
+ Err: Error;
344
+ Ok: vec BirthRecord;
291
345
  };
292
346
  type Result_77 =
293
347
  variant {
294
348
  Err: Error;
295
- Ok: Page_25;
349
+ Ok: Brakes;
296
350
  };
297
351
  type Result_76 =
298
352
  variant {
299
353
  Err: Error;
300
- Ok: AgentWriteReview;
354
+ Ok: ChildAllowanceRow;
301
355
  };
302
356
  type Result_75 =
303
357
  variant {
304
358
  Err: Error;
305
- Ok: BackupMetadata;
359
+ Ok: ChildOpening;
306
360
  };
307
361
  type Result_74 =
308
362
  variant {
309
363
  Err: Error;
310
- Ok: BackupRetention;
364
+ Ok: EvmAddresses;
311
365
  };
312
366
  type Result_73 =
313
367
  variant {
314
368
  Err: Error;
315
- Ok: vec BirthRecord;
369
+ Ok: AlertStatus;
316
370
  };
317
371
  type Result_72 =
318
372
  variant {
319
373
  Err: Error;
320
- Ok: Brakes;
374
+ Ok: blob;
321
375
  };
322
376
  type Result_71 =
323
377
  variant {
324
378
  Err: Error;
325
- Ok: ChildAllowanceRow;
379
+ Ok: KeyBackupStatus;
326
380
  };
327
381
  type Result_70 =
328
382
  variant {
329
383
  Err: Error;
330
- Ok: ChildOpening;
384
+ Ok: MemoryHistory;
331
385
  };
332
386
  type Result_7 =
333
387
  variant {
@@ -337,52 +391,52 @@ type Result_7 =
337
391
  type Result_69 =
338
392
  variant {
339
393
  Err: Error;
340
- Ok: blob;
394
+ Ok: MemoryRetentionPolicy;
341
395
  };
342
396
  type Result_68 =
343
397
  variant {
344
398
  Err: Error;
345
- Ok: EvmAddresses;
399
+ Ok: OwnerConsole;
346
400
  };
347
401
  type Result_67 =
348
402
  variant {
349
403
  Err: Error;
350
- Ok: AlertStatus;
404
+ Ok: OwnerSignInView;
351
405
  };
352
406
  type Result_66 =
353
407
  variant {
354
408
  Err: Error;
355
- Ok: MemoryHistory;
409
+ Ok: record {paths: vec text;};
356
410
  };
357
411
  type Result_65 =
358
412
  variant {
359
413
  Err: Error;
360
- Ok: MemoryRetentionPolicy;
414
+ Ok: RecipientHistory;
361
415
  };
362
416
  type Result_64 =
363
417
  variant {
364
418
  Err: Error;
365
- Ok: OwnerConsole;
419
+ Ok: SigningFloorStatus;
366
420
  };
367
421
  type Result_63 =
368
422
  variant {
369
423
  Err: Error;
370
- Ok: record {paths: vec text;};
424
+ Ok: SpendCeiling;
371
425
  };
372
426
  type Result_62 =
373
427
  variant {
374
428
  Err: Error;
375
- Ok: SigningFloorStatus;
429
+ Ok: SpendingPolicy;
376
430
  };
377
431
  type Result_61 =
378
432
  variant {
379
433
  Err: Error;
380
- Ok: SpendCeiling;
434
+ Ok: StorageReport;
381
435
  };
382
436
  type Result_60 =
383
437
  variant {
384
438
  Err: Error;
385
- Ok: SpendingPolicy;
439
+ Ok: WalletBalances;
386
440
  };
387
441
  type Result_6 =
388
442
  variant {
@@ -392,52 +446,52 @@ type Result_6 =
392
446
  type Result_59 =
393
447
  variant {
394
448
  Err: Error;
395
- Ok: StorageReport;
449
+ Ok: WorldIdConfig;
396
450
  };
397
451
  type Result_58 =
398
452
  variant {
399
453
  Err: Error;
400
- Ok: WalletBalances;
454
+ Ok: WorldIdRpContext;
401
455
  };
402
456
  type Result_57 =
403
457
  variant {
404
458
  Err: Error;
405
- Ok: WorldIdConfig;
459
+ Ok: opt text;
406
460
  };
407
461
  type Result_56 =
408
462
  variant {
409
463
  Err: Error;
410
- Ok: WorldIdRpContext;
464
+ Ok: bool;
411
465
  };
412
466
  type Result_55 =
413
467
  variant {
414
468
  Err: Error;
415
- Ok: opt text;
469
+ Ok: text;
416
470
  };
417
471
  type Result_54 =
418
472
  variant {
419
473
  Err: Error;
420
- Ok: bool;
474
+ Ok: Page_25;
421
475
  };
422
476
  type Result_53 =
423
477
  variant {
424
478
  Err: Error;
425
- Ok: text;
479
+ Ok: AgentSpendToday;
426
480
  };
427
481
  type Result_52 =
428
482
  variant {
429
483
  Err: Error;
430
- Ok: Page_24;
484
+ Ok: Page_23;
431
485
  };
432
486
  type Result_51 =
433
487
  variant {
434
488
  Err: Error;
435
- Ok: AgentSpendToday;
489
+ Ok: Page_22;
436
490
  };
437
491
  type Result_50 =
438
492
  variant {
439
493
  Err: Error;
440
- Ok: Page_22;
494
+ Ok: RecordPage;
441
495
  };
442
496
  type Result_5 =
443
497
  variant {
@@ -452,47 +506,47 @@ type Result_49 =
452
506
  type Result_48 =
453
507
  variant {
454
508
  Err: Error;
455
- Ok: RecordPage;
509
+ Ok: Page_20;
456
510
  };
457
511
  type Result_47 =
458
512
  variant {
459
513
  Err: Error;
460
- Ok: Page_20;
514
+ Ok: CheckpointPage;
461
515
  };
462
516
  type Result_46 =
463
517
  variant {
464
518
  Err: Error;
465
- Ok: Page_19;
519
+ Ok: Page_18;
466
520
  };
467
521
  type Result_45 =
468
522
  variant {
469
523
  Err: Error;
470
- Ok: CheckpointPage;
524
+ Ok: Page_17;
471
525
  };
472
526
  type Result_44 =
473
527
  variant {
474
528
  Err: Error;
475
- Ok: Page_17;
529
+ Ok: Page_16;
476
530
  };
477
531
  type Result_43 =
478
532
  variant {
479
533
  Err: Error;
480
- Ok: Page_16;
534
+ Ok: Page_15;
481
535
  };
482
536
  type Result_42 =
483
537
  variant {
484
538
  Err: Error;
485
- Ok: Page_15;
539
+ Ok: Page_14;
486
540
  };
487
541
  type Result_41 =
488
542
  variant {
489
543
  Err: Error;
490
- Ok: Page_14;
544
+ Ok: Page_13;
491
545
  };
492
546
  type Result_40 =
493
547
  variant {
494
548
  Err: Error;
495
- Ok: Page_13;
549
+ Ok: ReceiptPage;
496
550
  };
497
551
  type Result_4 =
498
552
  variant {
@@ -502,52 +556,52 @@ type Result_4 =
502
556
  type Result_39 =
503
557
  variant {
504
558
  Err: Error;
505
- Ok: Page_12;
559
+ Ok: Page_11;
506
560
  };
507
561
  type Result_38 =
508
562
  variant {
509
563
  Err: Error;
510
- Ok: ReceiptPage;
564
+ Ok: LogPage;
511
565
  };
512
566
  type Result_37 =
513
567
  variant {
514
568
  Err: Error;
515
- Ok: Page_10;
569
+ Ok: Page_9;
516
570
  };
517
571
  type Result_36 =
518
572
  variant {
519
573
  Err: Error;
520
- Ok: LogPage;
574
+ Ok: Page_8;
521
575
  };
522
576
  type Result_35 =
523
577
  variant {
524
578
  Err: Error;
525
- Ok: Page_8;
579
+ Ok: Page_7;
526
580
  };
527
581
  type Result_34 =
528
582
  variant {
529
583
  Err: Error;
530
- Ok: Page_7;
584
+ Ok: PaymentSignatureCounts;
531
585
  };
532
586
  type Result_33 =
533
587
  variant {
534
588
  Err: Error;
535
- Ok: Page_6;
589
+ Ok: Page_5;
536
590
  };
537
591
  type Result_32 =
538
592
  variant {
539
593
  Err: Error;
540
- Ok: PaymentSignatureCounts;
594
+ Ok: Page_4;
541
595
  };
542
596
  type Result_31 =
543
597
  variant {
544
598
  Err: Error;
545
- Ok: Page_4;
599
+ Ok: Page_3;
546
600
  };
547
601
  type Result_30 =
548
602
  variant {
549
603
  Err: Error;
550
- Ok: Page_3;
604
+ Ok: Page_2;
551
605
  };
552
606
  type Result_3 =
553
607
  variant {
@@ -557,52 +611,52 @@ type Result_3 =
557
611
  type Result_29 =
558
612
  variant {
559
613
  Err: Error;
560
- Ok: Page_2;
614
+ Ok: Page_1;
561
615
  };
562
616
  type Result_28 =
563
617
  variant {
564
618
  Err: Error;
565
- Ok: Page_1;
619
+ Ok: Page;
566
620
  };
567
621
  type Result_27 =
568
622
  variant {
569
623
  Err: Error;
570
- Ok: Page;
624
+ Ok: AgentGrant;
571
625
  };
572
626
  type Result_26 =
573
627
  variant {
574
628
  Err: Error;
575
- Ok: AgentGrant;
629
+ Ok: principal;
576
630
  };
577
631
  type Result_25 =
578
632
  variant {
579
633
  Err: Error;
580
- Ok: principal;
634
+ Ok: EngramSessionState;
581
635
  };
582
636
  type Result_24 =
583
637
  variant {
584
638
  Err: Error;
585
- Ok: EngramSessionState;
639
+ Ok: Pairing;
586
640
  };
587
641
  type Result_23 =
588
642
  variant {
589
643
  Err: Error;
590
- Ok: Pairing;
644
+ Ok: CondensePreview;
591
645
  };
592
646
  type Result_22 =
593
647
  variant {
594
648
  Err: Error;
595
- Ok: CondensePreview;
649
+ Ok: RetentionPreview;
596
650
  };
597
651
  type Result_21 =
598
652
  variant {
599
653
  Err: Error;
600
- Ok: RetentionPreview;
654
+ Ok: vec BatchReadItem;
601
655
  };
602
656
  type Result_20 =
603
657
  variant {
604
658
  Err: Error;
605
- Ok: vec BatchReadItem;
659
+ Ok: MemoryByteChunk;
606
660
  };
607
661
  type Result_2 =
608
662
  variant {
@@ -612,47 +666,47 @@ type Result_2 =
612
666
  type Result_19 =
613
667
  variant {
614
668
  Err: Error;
615
- Ok: MemoryByteChunk;
669
+ Ok: EngramEscrowRecovery;
616
670
  };
617
671
  type Result_18 =
618
672
  variant {
619
673
  Err: Error;
620
- Ok: EngramEscrowRecovery;
674
+ Ok: GuardianRecord;
621
675
  };
622
676
  type Result_17 =
623
677
  variant {
624
678
  Err: Error;
625
- Ok: GuardianRecord;
679
+ Ok: ResetReport;
626
680
  };
627
681
  type Result_16 =
628
682
  variant {
629
683
  Err: Error;
630
- Ok: ResetReport;
684
+ Ok: ResyncReport;
631
685
  };
632
686
  type Result_15 =
633
687
  variant {
634
688
  Err: Error;
635
- Ok: ResyncReport;
689
+ Ok: nat;
636
690
  };
637
691
  type Result_14 =
638
692
  variant {
639
693
  Err: Error;
640
- Ok: nat;
694
+ Ok: SessionContext;
641
695
  };
642
696
  type Result_13 =
643
697
  variant {
644
698
  Err: Error;
645
- Ok: SessionContext;
699
+ Ok: MemoryFile;
646
700
  };
647
701
  type Result_12 =
648
702
  variant {
649
703
  Err: Error;
650
- Ok: MemoryFile;
704
+ Ok: BackupRetentionReport;
651
705
  };
652
706
  type Result_11 =
653
707
  variant {
654
708
  Err: Error;
655
- Ok: BackupRetentionReport;
709
+ Ok: record {activatesAtNs: int;};
656
710
  };
657
711
  type Result_10 =
658
712
  variant {
@@ -699,10 +753,21 @@ type RecordNote =
699
753
  auditId: nat;
700
754
  note: text;
701
755
  };
756
+ type RecipientHistory =
757
+ record {
758
+ firstPaidAtNs: opt int;
759
+ historyFull: bool;
760
+ largestPaidE6: nat;
761
+ lastPaidAtNs: opt int;
762
+ listedSeller: bool;
763
+ liveNow: bool;
764
+ paidBefore: bool;
765
+ timesPaid: nat;
766
+ };
702
767
  type ReceiptPage =
703
768
  record {
704
769
  firstAvailableSeq: nat;
705
- page: Page_11;
770
+ page: Page_12;
706
771
  scannedThroughSeq: nat;
707
772
  };
708
773
  type RailHealth =
@@ -744,7 +809,7 @@ type PaymentsNow =
744
809
  };
745
810
  type PaymentSignatureCounts =
746
811
  record {
747
- agents: Page_5;
812
+ agents: Page_6;
748
813
  day: int;
749
814
  limit: nat;
750
815
  marketplace: opt MarketplacePaymentSignatures;
@@ -777,71 +842,71 @@ type Pairing =
777
842
  };
778
843
  type Page_9 =
779
844
  record {
780
- items: vec MemoryLogEvent;
845
+ items: vec ApprovalRequest;
781
846
  total: nat;
782
847
  withheld: nat;
783
848
  };
784
849
  type Page_8 =
785
850
  record {
786
- items: vec ApprovalRequest;
851
+ items: vec EngramSessionState;
787
852
  total: nat;
788
853
  withheld: nat;
789
854
  };
790
855
  type Page_7 =
791
856
  record {
792
- items: vec EngramSessionState;
857
+ items: vec OwnershipTransfer;
793
858
  total: nat;
794
859
  withheld: nat;
795
860
  };
796
861
  type Page_6 =
797
862
  record {
798
- items: vec OwnershipTransfer;
863
+ items: vec AgentPaymentSignatures;
799
864
  total: nat;
800
865
  withheld: nat;
801
866
  };
802
867
  type Page_5 =
803
868
  record {
804
- items: vec AgentPaymentSignatures;
869
+ items: vec PurgedAgent;
805
870
  total: nat;
806
871
  withheld: nat;
807
872
  };
808
873
  type Page_4 =
809
874
  record {
810
- items: vec PurgedAgent;
875
+ items: vec AuditEntry;
811
876
  total: nat;
812
877
  withheld: nat;
813
878
  };
814
879
  type Page_3 =
815
880
  record {
816
- items: vec AuditEntry;
881
+ items: vec RecordNote;
817
882
  total: nat;
818
883
  withheld: nat;
819
884
  };
820
- type Page_25 =
885
+ type Page_26 =
821
886
  record {
822
887
  items: vec OwnerRow;
823
888
  total: nat;
824
889
  withheld: nat;
825
890
  };
826
- type Page_24 =
891
+ type Page_25 =
827
892
  record {
828
893
  items: vec ActivitySnapshot;
829
894
  total: nat;
830
895
  withheld: nat;
831
896
  };
832
- type Page_23 =
897
+ type Page_24 =
833
898
  record {
834
899
  items: vec AgentSpendRow;
835
900
  total: nat;
836
901
  withheld: nat;
837
902
  };
838
- type Page_22 =
903
+ type Page_23 =
839
904
  record {
840
905
  items: vec AgentRecord;
841
906
  total: nat;
842
907
  withheld: nat;
843
908
  };
844
- type Page_21 =
909
+ type Page_22 =
845
910
  record {
846
911
  items: vec record {
847
912
  name: text;
@@ -851,81 +916,87 @@ type Page_21 =
851
916
  total: nat;
852
917
  withheld: nat;
853
918
  };
854
- type Page_20 =
919
+ type Page_21 =
855
920
  record {
856
921
  items: vec BackupMetadata;
857
922
  total: nat;
858
923
  withheld: nat;
859
924
  };
925
+ type Page_20 =
926
+ record {
927
+ items: vec BearerToken;
928
+ total: nat;
929
+ withheld: nat;
930
+ };
860
931
  type Page_2 =
861
932
  record {
862
- items: vec RecordNote;
933
+ items: vec Repudiation;
863
934
  total: nat;
864
935
  withheld: nat;
865
936
  };
866
937
  type Page_19 =
867
938
  record {
868
- items: vec BearerToken;
939
+ items: vec CondenseCheckpointRow;
869
940
  total: nat;
870
941
  withheld: nat;
871
942
  };
872
943
  type Page_18 =
873
944
  record {
874
- items: vec CondenseCheckpointRow;
945
+ items: vec CycleSnapshot;
875
946
  total: nat;
876
947
  withheld: nat;
877
948
  };
878
949
  type Page_17 =
879
950
  record {
880
- items: vec CycleSnapshot;
951
+ items: vec text;
881
952
  total: nat;
882
953
  withheld: nat;
883
954
  };
884
955
  type Page_16 =
885
956
  record {
886
- items: vec text;
957
+ items: vec Eip712Destination;
887
958
  total: nat;
888
959
  withheld: nat;
889
960
  };
890
961
  type Page_15 =
891
962
  record {
892
- items: vec Eip712Destination;
963
+ items: vec Eip712TypeView;
893
964
  total: nat;
894
965
  withheld: nat;
895
966
  };
896
967
  type Page_14 =
897
968
  record {
898
- items: vec Eip712TypeView;
969
+ items: vec GuardianDispute;
899
970
  total: nat;
900
971
  withheld: nat;
901
972
  };
902
973
  type Page_13 =
903
974
  record {
904
- items: vec GuardianDispute;
975
+ items: vec GuardianRecord;
905
976
  total: nat;
906
977
  withheld: nat;
907
978
  };
908
979
  type Page_12 =
909
980
  record {
910
- items: vec GuardianRecord;
981
+ items: vec ExportReceiptRow;
911
982
  total: nat;
912
983
  withheld: nat;
913
984
  };
914
985
  type Page_11 =
915
986
  record {
916
- items: vec ExportReceiptRow;
987
+ items: vec MemoryFileRow;
917
988
  total: nat;
918
989
  withheld: nat;
919
990
  };
920
991
  type Page_10 =
921
992
  record {
922
- items: vec MemoryFileRow;
993
+ items: vec MemoryLogEvent;
923
994
  total: nat;
924
995
  withheld: nat;
925
996
  };
926
997
  type Page_1 =
927
998
  record {
928
- items: vec Repudiation;
999
+ items: vec SellerView;
929
1000
  total: nat;
930
1001
  withheld: nat;
931
1002
  };
@@ -942,6 +1013,16 @@ type OwnershipTransfer =
942
1013
  from: opt principal;
943
1014
  to: principal;
944
1015
  };
1016
+ type OwnerSignInView =
1017
+ record {
1018
+ askedAtNs: opt int;
1019
+ callerIsAsked: bool;
1020
+ callerIsSignIn: bool;
1021
+ declinedAtNs: opt int;
1022
+ declinedBy: opt principal;
1023
+ openedFrom: opt principal;
1024
+ ownerSignIn: opt principal;
1025
+ };
945
1026
  type OwnerRow =
946
1027
  record {
947
1028
  firstPaymentDay: opt nat;
@@ -1157,13 +1238,21 @@ type LogPage =
1157
1238
  record {
1158
1239
  firstAvailableSeq: nat;
1159
1240
  head: blob;
1160
- page: Page_9;
1241
+ page: Page_10;
1161
1242
  };
1162
1243
  type KeyNomination =
1163
1244
  record {
1164
1245
  atNs: int;
1165
1246
  key: principal;
1166
1247
  };
1248
+ type KeyBackupStatus =
1249
+ record {
1250
+ copyWaitsWithAsk: bool;
1251
+ matchesSignIn: bool;
1252
+ sealed: bool;
1253
+ sealedAtNs: opt int;
1254
+ sealedFor: opt principal;
1255
+ };
1167
1256
  type Ic402Maintenance =
1168
1257
  record {
1169
1258
  dailySpendRemoved: nat;
@@ -1342,7 +1431,13 @@ type Engram =
1342
1431
  /// nomination names. That check compares the caller inside the module, where
1343
1432
  /// test/key-replacement.test.mo runs it; this body names no roster gate, because the caller holds
1344
1433
  /// no role here until the move.
1345
- acceptAgentKeyNomination: (agentKey: principal) -> (Result_83);
1434
+ acceptAgentKeyNomination: (agentKey: principal) -> (Result_90);
1435
+ /// The person the owner asked again ACCEPTS: they become this engram's sign-in, and the sealed copy
1436
+ /// that came with the ask becomes the engram's (sealed for them). Until this call they have no power
1437
+ /// at all. Callable only by that person while the ask waits; refused (as at birth) if they are now
1438
+ /// an agent or a guardian here.
1439
+ /// Named caller: an owner console — "accept" on a waiting ask, signed in as the person asked.
1440
+ acceptSignIn: () -> (Result_2);
1346
1441
  /// Consensus transform for the alert webhook outcall: collapse the response to status-only so
1347
1442
  /// replicas agree regardless of response headers/body (we only care that the POST landed 2xx).
1348
1443
  ///
@@ -1372,7 +1467,7 @@ type Engram =
1372
1467
  /// and works while frozen; a value is 1–128 characters (an address, or a venue value such as an
1373
1468
  /// account name). The action must be registered: a destination list belongs to an action, and a
1374
1469
  /// list for no action would be a value nothing checks. The caller is the owner's app.
1375
- addEip712Destination: (typeId: blob, value: text) -> (Result_82);
1470
+ addEip712Destination: (typeId: blob, value: text) -> (Result_11);
1376
1471
  /// Register a typed-data shape as signable. Owner-only, freeze-gated (a registration is a grant
1377
1472
  /// of FUTURE authority — a frozen engram must not be able to widen what it can sign), and the
1378
1473
  /// shape is IMMUTABLE: any change mints a new typeId.
@@ -1388,6 +1483,14 @@ type Engram =
1388
1483
  /// `eip712SignFor` before the cap reservation. Before this, a withdrawal registered as `#standard`
1389
1484
  /// needed no webhook, no guardian and no destination field, waited one hour, and signed to any
1390
1485
  /// address. Intrinsic checks still come first and the watchers last (the 2026-08-06 re-ordering).
1486
+ ///
1487
+ /// ⟨2026-11-02, the child build's stage 5⟩ In an engram opened through another, after the spec's own
1488
+ /// checks: the venue actions that move money or control to another account are refused by name
1489
+ /// (`HyperliquidTransaction:` `UsdSend`, `SpotSend`, `SendAsset`, `SendToEvmWithData`,
1490
+ /// `ConvertToMultiSigUser`, `ApproveBuilderFee`, `TokenDelegate` — `#Refused`), and
1491
+ /// `HyperliquidTransaction:Withdraw` registers only with a must-equal rule on `destination` naming this
1492
+ /// engram's own pay address (`#Refused` otherwise; `#Conflict` while the pay address has not been
1493
+ /// derived — call `getEvmAddress` first). A first engram is unchanged.
1391
1494
  addEip712Type: (spec:
1392
1495
  record {
1393
1496
  ackIrrevocable: bool;
@@ -1412,7 +1515,7 @@ type Engram =
1412
1515
  };
1413
1516
  primaryType: text;
1414
1517
  verifyingContract: text;
1415
- }) -> (Result_81);
1518
+ }) -> (Result_88);
1416
1519
  /// ⟨0.16.0, L1⟩ THE ROLE-CONFLICT ARM, and why three refusals here are not the same refusal.
1417
1520
  ///
1418
1521
  /// This method had five distinct ways to say no through one `text`, and a caller could only tell
@@ -1431,7 +1534,40 @@ type Engram =
1431
1534
  /// refused by `requireOwner`'s own words. Empty words, words over `RecordWords.WORDS_MAX` or
1432
1535
  /// holding a line break are `#Invalid`; an id past the head is `#NotFound`; nothing is recorded
1433
1536
  /// on any refusal.
1434
- addRecordNote: (about: nat, note: text) -> (Result_14);
1537
+ addRecordNote: (about: nat, note: text) -> (Result_15);
1538
+ /// List a seller: from 24 hours after this call, x402 may pay `payTo` up to `perDayCapE6` a UTC day
1539
+ /// (minor units of a six-decimal stablecoin — 1_000_000 is $1.00) without an approval, and a payment
1540
+ /// to it no longer counts against the engram-wide ceiling or the paying agent's own limits. Above the
1541
+ /// cap a payment goes to the approval queue like any other. `isPayout` marks it as where this engram
1542
+ /// pays out (the same row, its own cap). The sign-in only, in an engram opened through another; the
1543
+ /// owner in a first engram. Refused while payments are frozen, for a malformed or already-listed
1544
+ /// address, a cap of 0, and past `Sellers.MAX_SELLERS` rows. Answers when the row starts to count.
1545
+ /// Named callers: an owner console's seller list for an engram (signed in as its sign-in, for one
1546
+ /// opened through another), and the owner kit.
1547
+ addSeller: (payTo: text, perDayCapE6: nat, isPayout: bool) -> (Result_11);
1548
+ /// AN AGENT CONVERTS THE ENGRAM'S BALANCE INTO COMPUTE, under the runway rule ⟨2026-11-04, the owner's
1549
+ /// rulings of 2026-11-01, "2 A" and "agree"; `AgentConvert.mo` holds the rule and says why each number⟩.
1550
+ ///
1551
+ /// CALLER: a paired agent whose STORED grant holds the scope "wallet.convert" (`AgentConvert.SCOPE`),
1552
+ /// which only the owner adds (`createAgentInvite` / `setAgentPermissions`); off by default, and no HTTP
1553
+ /// connector token ever carries it (`OAuth.scopesToPermissions`). The OWNER's role is refused by name —
1554
+ /// the owner converts with `convertEarningsToCycles`.
1555
+ ///
1556
+ /// THE RULE: converts only while this engram has under 30 days of compute left by its own reading; at
1557
+ /// least 0.50 and at most 2.00 (or the owner's own per-call cap if lower); at most one conversion under
1558
+ /// the rule in any rolling 24 hours (`agentConvertAtNs`, which holds with the engram-wide ceiling
1559
+ /// removed); counted against that ceiling when one is set; refused under ANY payment freeze (ruled), and
1560
+ /// while another of the engram's own calls is out (its balance reads low then). `amountE6 = null` converts
1561
+ /// as much as allowed: the smaller of the cap and what the wallet holds less the ledger fee — the wallet
1562
+ /// is READ before anything moves, and a wallet that cannot fund 0.50 is refused by name.
1563
+ ///
1564
+ /// STOPPED MID-WAY: if the agent is removed, leaves, loses the grant, payments are frozen or the engram is
1565
+ /// reset while it waits on the ledger or the cashier's deposit address, nothing moves; after the money
1566
+ /// reached the deposit, it is sent back to the wallet less one ledger fee (or held at the biller for the
1567
+ /// owner's next Convert). THE RESIDUAL, stated: a removal landing DURING the cashier's own conversion call
1568
+ /// cannot stop that call — it finishes, and the reply (`finishedBeforeRemovalSeen`) and the record row say
1569
+ /// so. One inter-canister call, bounded by one cap.
1570
+ agentConvertBalance: (token: text, amountE6: opt nat) -> (Result_86);
1435
1571
  /// Returns the write RECEIPT, not just the version.
1436
1572
  ///
1437
1573
  /// The receipt was always computed and then thrown away: MemoryRouter hands back
@@ -1463,7 +1599,7 @@ type Engram =
1463
1599
  /// Gated on requireWritesNotPaused — unlike the export. This one destroys retained entries, which
1464
1600
  /// is exactly what a guardian pause exists to hold. No action alert is raised: the operation is
1465
1601
  /// owner-initiated, owner-only, and already chained into the audit log.
1466
- applyCondense: (toSeq: nat) -> (Result_80);
1602
+ applyCondense: (toSeq: nat) -> (Result_85);
1467
1603
  /// Owner-only: activate a guardian who has registered against an invite.
1468
1604
  ///
1469
1605
  /// Until this call the guardian is `#Pending` and can do NOTHING — registering is a claim, this
@@ -1494,6 +1630,16 @@ type Engram =
1494
1630
  /// no longer pending — already approved, denied or expired. The status is in the message because
1495
1631
  /// "not pending" is the one refusal here an owner acts on differently depending on which it is.
1496
1632
  approveRequest: (requestId: text) -> (Result_2);
1633
+ /// The OWNER asks the person who last declined to be this engram's sign-in again. No principal
1634
+ /// argument: the ask goes to `signInDeclinedBy` alone, so the key file can never seat a sign-in of
1635
+ /// its choosing — re-asking the person who already said no gives a thief nothing. `sealed` is the
1636
+ /// owner's key sealed by the kit for that person; it is stored with the ask, inert, and becomes the
1637
+ /// engram's sealed copy only if they accept. Refused in a first engram, while a sign-in is in place,
1638
+ /// when nobody ever declined (an engram opened without a sign-in has nobody to ask, for life), while
1639
+ /// an ask already waits, within 7 days of the last decline (`OwnerSignIn.askRefusal`), and when the
1640
+ /// person has since become an agent or a guardian here. The sign-in and the person asked are refused.
1641
+ /// Named caller: the owner kit, signed by the agent's lasting key (it seals the key for that person).
1642
+ askSignInAgain: (sealed: blob) -> (Result_2);
1497
1643
  /// Discard a backup started by `backupInit` and never finalized. The way out of a failed upload,
1498
1644
  /// and the reason a stalled one need not occupy space indefinitely. Same gate as the rest of the
1499
1645
  /// write half: owner, or an agent holding `canAppendMemory`.
@@ -1534,13 +1680,13 @@ type Engram =
1534
1680
  ///
1535
1681
  /// The write half also refuses while writes are PAUSED.
1536
1682
  backupInit: (dbType: text, backupType: BackupType, parentBackupId:
1537
- opt text, sha256: text, backupLabel: opt text) -> (Result_53);
1683
+ opt text, sha256: text, backupLabel: opt text) -> (Result_55);
1538
1684
  /// Read one chunk of a finalized backup, by index.
1539
1685
  ///
1540
1686
  /// ⚠ GATED ON `read_backup`, which is NOT the permission the upload half uses — that one is
1541
1687
  /// `canAppendMemory`. Holding one says nothing about the other, deliberately: taking a backup and
1542
1688
  /// carrying it away are different authorities.
1543
- backupPullChunk: (backupId: text, chunkIndex: nat) -> (Result_69) query;
1689
+ backupPullChunk: (backupId: text, chunkIndex: nat) -> (Result_72) query;
1544
1690
  backupPushChunk: (backupId: text, chunkIndex: nat, data: blob) ->
1545
1691
  (Result_2);
1546
1692
  /// The OWNER cancels an agent's pending key nomination; the agent keeps its current key. Refused
@@ -1573,7 +1719,21 @@ type Engram =
1573
1719
  /// ⟨2026-10-02⟩ The second parameter is NAMED `amountE6` now, as the census row above rules the
1574
1720
  /// pair — e6 base units of the token named first. A name only: Candid passes arguments by
1575
1721
  /// position, so nothing on the wire moved.
1576
- convertEarningsToCycles: (token: text, amountE6: nat) -> (Result_14);
1722
+ ///
1723
+ /// ⟨2026-11-04, the agent-conversion build — the owner's "2 A" and "agree"⟩ The body moved whole into
1724
+ /// `runConversion`, which an agent's `agentConvertBalance` shares; this method keeps its name, its
1725
+ /// signature and its bare `cyclesAdded` reply. Under "2 A" it converts the engram's BALANCE (what the
1726
+ /// owner put in and what it earned are not told apart); the name is the wire's and stays. A FIRST
1727
+ /// engram's owner Convert is unchanged: not counted, not freeze-gated, not runway-bound, not pre-read,
1728
+ /// 10.00 / 5 min. In an engram OPENED THROUGH ANOTHER the key file's Convert runs the agent rule too
1729
+ /// (ruled "agree", question 3: under 30 days, 0.50–2.00, once in 24 hours shared with the agents, the
1730
+ /// wallet read first), keeping its own freeze gate (L18: a guardian's freeze only).
1731
+ /// ⟨2026-11-04, review fix⟩ SHARED with an agent's conversion: the in-flight latch only (one deposit
1732
+ /// account, one pending marker — one conversion at a time, whoever asked), so while an agent's conversion
1733
+ /// is between its deposit and its landing this door answers "another conversion is still in flight". NOT
1734
+ /// shared: the 5-minute cooldown (an agent's landing does not move it) and the latch during an agent's
1735
+ /// wallet read (nothing is held while it reads).
1736
+ convertEarningsToCycles: (token: text, amountE6: nat) -> (Result_15);
1577
1737
  /// Owner-only: mint a single-use invite code an agent redeems with `pairAgent`.
1578
1738
  ///
1579
1739
  /// ⚠ READ THIS BEFORE INVITING SOMEONE BACK. Pairing is ONE-SHOT PER PRINCIPAL on
@@ -1602,7 +1762,7 @@ type Engram =
1602
1762
  /// ⟨2026-10-29, review F7⟩ A name the owner gives meets the rule `renameAgent` applies: a line break
1603
1763
  /// or another control character is `#Invalid` (`People.nameRefusal`), as a rename to it would be.
1604
1764
  createAgentInvite: (name: text, permissions: AgentPermissions) ->
1605
- (Result_53);
1765
+ (Result_55);
1606
1766
  /// Owner-only: mint an invite for a GUARDIAN — an independent check on agents, not a
1607
1767
  /// co-owner and not a recovery agent.
1608
1768
  ///
@@ -1625,7 +1785,22 @@ type Engram =
1625
1785
  /// So an invite that fails to redeem for that reason is not a bad code. The rule exists because
1626
1786
  /// a check must be independent of the thing it checks.
1627
1787
  createGuardianInvite: (name: text, permissions: GuardianPermissions) ->
1628
- (Result_53);
1788
+ (Result_55);
1789
+ /// The sign-in GIVES ITSELF UP, or the person the owner asked again says no. ⟨the owner's ruling "1
1790
+ /// yes, but the child can ask again" — the child build's Challenge C3.1: whoever the kit names cannot
1791
+ /// otherwise refuse a seat they never agreed to⟩
1792
+ /// · as the sign-in: the slot empties, the sealed copy of the owner's key is deleted (nobody may
1793
+ /// hold a copy for a seat that is gone), and the caller is recorded as the one who declined, with
1794
+ /// the time. The engram keeps its small limits; the owner may ask this person again in 7 days.
1795
+ /// Listed sellers stop counting at once (a raise waiting in them too): the rows are kept, and
1796
+ /// count again only if this person accepts a re-ask (`Sellers.inForce`).
1797
+ /// · as the person a waiting ask goes to: the ask and the copy that came with it are dropped, and
1798
+ /// the decline's time moves to now (the next ask waits another 7 days).
1799
+ /// The key file is refused: it cannot empty the slot (a thief would, to strand the honest owner's
1800
+ /// approvals). A first engram has nothing to decline.
1801
+ /// Named caller: an owner console — the sign-in's "decline", and the person asked's "decline" on a
1802
+ /// waiting ask.
1803
+ declineSignIn: () -> (Result_2);
1629
1804
  /// OWNER-ONLY deletion of a stored backup.
1630
1805
  ///
1631
1806
  /// ⚠ NOT THE SAME GATE AS THE REST OF THE FAMILY, and the asymmetry is deliberate: `backupInit`,
@@ -1668,7 +1843,7 @@ type Engram =
1668
1843
  /// WHAT: an entry the owner's review would show (`qualifiesForReview` — an agent's append or
1669
1844
  /// revision, or a paid session's append) that succeeded, still held in full by the ring.
1670
1845
  /// One dispute per guardian per write (`#Conflict`, the first stands).
1671
- disputeAgentWrite: (about: nat, reason: text) -> (Result_14);
1846
+ disputeAgentWrite: (about: nat, reason: text) -> (Result_15);
1672
1847
  /// Record that log entries [fromSeq, toSeq] were served, and return the root that proves it.
1673
1848
  ///
1674
1849
  /// This is the receipt ledgerfs Q2 requires before any of those entries may be condensed away.
@@ -1682,7 +1857,7 @@ type Engram =
1682
1857
  /// situation rather than a safety measure. It IS gated on requireMemoryAttached: a store that
1683
1858
  /// failed its integrity check must not attest anything it cannot vouch for.
1684
1859
  exportMemoryRange: (fromSeq: nat, toSeq: nat, authorFilter:
1685
- opt principal) -> (Result_79);
1860
+ opt principal) -> (Result_84);
1686
1861
  /// ⟨0.16.0, L2.2 — renamed from `guardianFreezePayments`⟩ The prefix LIED about who may call it.
1687
1862
  /// The gate is `requireOwnerOrGuardian`, and an owner freezing their own payments is the ordinary
1688
1863
  /// case — the guardian is the exceptional one. A name that says otherwise sends an owner looking
@@ -1707,6 +1882,10 @@ type Engram =
1707
1882
  /// · `convertEarningsToCycles` — the owner's OWN earnings becoming their OWN engram's fuel. A
1708
1883
  /// frozen engram still burns cycles, so freezing this would let a brake starve the thing it
1709
1884
  /// is protecting. Owner-only, capped per call, and it moves nothing outward.
1885
+ /// ⟨2026-11-04, the agent-conversion build — ruled "agree", question 2⟩ An AGENT's conversion
1886
+ /// (`agentConvertBalance`) IS frozen, by any freeze — the owner's own included — before it starts and
1887
+ /// again after each await. The owner's own Convert in a first engram stays as above; in an engram
1888
+ /// opened through another it stops under a guardian's freeze only (L18).
1710
1889
  /// · `approveRequest` — an approval is not a spend. The spend it authorises goes through
1711
1890
  /// `x402SignFor`, which IS frozen, so an approval granted during a freeze simply waits.
1712
1891
  /// · `transferOwnership` — ownership is not a payment, and a guardian's PAYMENTS brake is not
@@ -1724,7 +1903,15 @@ type Engram =
1724
1903
  /// brake is NOT pulled — the caller pulls it with `freezePayments`, or shortens the words.
1725
1904
  freezePaymentsWithReason: (reason: text) -> (Result_2);
1726
1905
  /// Delivery status + config readback. Owner-only (the URL is a secret).
1727
- getActionAlertStatus: () -> (Result_67) query;
1906
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1907
+ /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1908
+ getActionAlertStatus: () -> (Result_73) query;
1909
+ /// The agent-conversion rule's numbers.
1910
+ /// PUBLIC: the class of `getTopUpLimits` — a policy, nobody's data. ⟨2026-11-04, the market-route
1911
+ /// build: the marker's colon was missing, so the deployment's PUBLIC-rationale gate read the method as
1912
+ /// unmarked; the reason itself is unchanged.⟩
1913
+ /// The cap an agent meets is `min(maxPerCallE6, getTopUpLimits().maxCkusdcE6s)`.
1914
+ getAgentConvertRule: () -> (AgentConvertRule) query;
1728
1915
  /// Agents need to know what they may revise, so they can read it too. Whole-value config, same
1729
1916
  /// carve-out as getProtectedPaths — and kept a SEPARATE method from it deliberately (L2.2): a
1730
1917
  /// protected path and a revisable path are opposite grants, and one accessor for both would be a
@@ -1732,7 +1919,7 @@ type Engram =
1732
1919
  ///
1733
1920
  /// Refusal reason preserved from the trap: a grant is a power, and its absence and its
1734
1921
  /// concealment are different facts.
1735
- getAgentRevisablePaths: () -> (Result_63) query;
1922
+ getAgentRevisablePaths: () -> (Result_66) query;
1736
1923
  /// OWNER-ONLY: every engagement's seat weeks on this engram, with the agent's root — the day it
1737
1924
  /// paired, the days of its first and last payment signature, a 64-week map whose bit 0 is the week
1738
1925
  /// of the last one, and how many were produced. Never an amount, a recipient or a nonce.
@@ -1743,7 +1930,9 @@ type Engram =
1743
1930
  /// order. Anyone else is refused by name (`#Refused getAgentSeatWeeks: …`), never answered with an
1744
1931
  /// empty page. Paged; `total` is every engagement ever paired here (a reset keeps the rows).
1745
1932
  /// Two rows can name one root: an agent paired again after it left is a second engagement.
1746
- getAgentSeatWeeks: (start: nat, limit: nat) -> (Result_77) query;
1933
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1934
+ /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1935
+ getAgentSeatWeeks: (start: nat, limit: nat) -> (Result_82) query;
1747
1936
  /// Owner: everything written into this engram by someone other than the owner since the last
1748
1937
  /// markAgentWritesReviewed() — agent appends/revisions AND paid-session appends (see
1749
1938
  /// qualifiesForReview for why those two families are recognised differently).
@@ -1751,7 +1940,10 @@ type Engram =
1751
1940
  /// them — the UI must page (markAgentWritesReviewed(?lastShownId)) and must NOT present 200
1752
1941
  /// as a total. `earliest` discloses ring eviction — if cursor < earliest, entries between them
1753
1942
  /// aged out of the ring (the CHAIN still proves total count; this view can't show their bodies).
1754
- getAgentWriteReview: () -> (Result_76) query;
1943
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1944
+ /// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
1945
+ /// engram is unchanged.
1946
+ getAgentWriteReview: () -> (Result_81) query;
1755
1947
  /// Why anchoring is or is not advancing. PUBLIC: ungated on purpose — detecting a stalled
1756
1948
  /// engram is the point, a gated read would fail-to-empty and hand a third party fabricated zeros,
1757
1949
  /// and none of these fields is a secret — `total` is already public via getCertifiedAuditHead.
@@ -1770,7 +1962,7 @@ type Engram =
1770
1962
  /// below serves the same head WITH the subnet certificate for a caller that needs to verify it
1771
1963
  /// was signed rather than asserted.
1772
1964
  getAuditHead: () -> (AuditHead) query;
1773
- getBackupMetadata: (backupId: text) -> (Result_75) query;
1965
+ getBackupMetadata: (backupId: text) -> (Result_80) query;
1774
1966
  /// ⟨2026-10-21, the owner's round-11 answer m: a backup-retention getter⟩ How many backups of
1775
1967
  /// `dbType` each creator keeps, and whether that is the default — the read `setBackupRetention`
1776
1968
  /// lacked, so "Keeps your newest 3" showed only on the phone that last set it.
@@ -1781,7 +1973,7 @@ type Engram =
1781
1973
  /// denied"), a revoked or resigned agent, a guardian (guardians take no backups), a stranger and
1782
1974
  /// the anonymous caller. A kind the setter would refuse is `#Invalid` here too
1783
1975
  /// (`Backup.getRetention`). Records nothing (a query).
1784
- getBackupRetention: (dbType: text) -> (Result_74) query;
1976
+ getBackupRetention: (dbType: text) -> (Result_79) query;
1785
1977
  /// The cashier this engram recognises as its rent biller — `null` until the registry pushes one.
1786
1978
  ///
1787
1979
  /// PUBLIC: a payer about to send money needs to know which cashier this engram will accept credit
@@ -1796,7 +1988,9 @@ type Engram =
1796
1988
  /// from, which is the owner's to disclose, not the registry's. The certified half is at the registry
1797
1989
  /// (`getCertifiedBirth`, public, revealing only whether a fingerprint is present); the client's
1798
1990
  /// `verifyBirthChain` checks both. Refused to anyone else by the combinator (`#ownerOnly`).
1799
- getBirthChain: () -> (Result_73) query;
1991
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1992
+ /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1993
+ getBirthChain: () -> (Result_78) query;
1800
1994
  /// ⟨2026-10-21, the owner's round-11 answer d⟩ Each brake: on or off, and while on, who pulled it
1801
1995
  /// LAST (their key and whether as owner or guardian), since when, and the reason they gave — the
1802
1996
  /// same person and time as the newest brake entry on the record (`RecordWords.BrakePull`). For the
@@ -1805,7 +1999,7 @@ type Engram =
1805
1999
  /// — an agent learns a brake is on from the refusal of what it tried, and needs no more). `pull`
1806
2000
  /// is null for a brake that is off, and for one carried on across the upgrade that added this
1807
2001
  /// read (who pulled it was not recorded then) — never a guessed pull.
1808
- getBrakes: () -> (Result_72) query;
2002
+ getBrakes: () -> (Result_77) query;
1809
2003
  /// ⟨0.16.0, L9/L10 — census row⟩ `Wire.CertifiedAuditHead`, not an anonymous record. The
1810
2004
  /// registry, market and cashier already served the shared type; the engram — the canister that
1811
2005
  /// IS the evidence product — was the one chain still answering in a shape of its own, missing
@@ -1828,11 +2022,31 @@ type Engram =
1828
2022
  /// query's state writes are discarded when it returns, and the `denied` call first written here
1829
2023
  /// recorded nothing while reading as if it did. The refusal is loud in the reply instead. WHAT
1830
2024
  /// WOULD MAKE THIS WRONG: a reason to record who asked — then this becomes an update that says so.
1831
- getChildAllowance: (agentPrincipal: principal) -> (Result_71) query;
2025
+ getChildAllowance: (agentPrincipal: principal) -> (Result_76) query;
1832
2026
  /// Owner-only, Billing-class: what opening an engram costs this engram, the balance below which an
1833
2027
  /// agent's request is refused, the balance now, and every agent's allowance. The console's cost
1834
2028
  /// sentence reads it. Cycles are owner-class information, as on the owner's console read.
1835
- getChildOpening: () -> (Result_70) query;
2029
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2030
+ /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2031
+ getChildOpening: () -> (Result_75) query;
2032
+ /// Derive the key that opens the sealed copy, encrypted under the caller's transport public key —
2033
+ /// for the SIGN-IN alone (the combinator's `#ownerSignIn`; the key file is refused by name: only the
2034
+ /// sign-in opens the backup, and the key file holds the plaintext anyway). The derivation input is the
2035
+ /// sign-in's own principal, the same identity the kit sealed the copy to, so a former sign-in's key
2036
+ /// never opens a copy re-sealed for its successor. Refused in a first engram, with no sign-in, and
2037
+ /// with no copy, all before the call. The opening is recorded (`keyBackup.opened`), so the owner's
2038
+ /// alert fires: the one act a thief holding the sign-in cannot hide. Not blocked by a freeze: a
2039
+ /// freeze must never lock the owner out of its own key.
2040
+ /// ⟨CORRECTED 2026-11-03, the stage-6 review's m1, beside the sentence above⟩ "cannot hide" overstates
2041
+ /// it: in an engram opened through another the sign-in sets the alert address, so a thief holding the
2042
+ /// sign-in can re-point it first. Each opening is recorded in the engram's record (which the key file
2043
+ /// reads) and alerted to whatever address the sign-in has set.
2044
+ ///
2045
+ /// ⟨L7⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
2046
+ /// `VetKeys.ManagementCanister.vetKdDeriveKey`. A query cannot await.
2047
+ /// Named callers: an owner console signed in as the sign-in (the browser's recovery), and the owner
2048
+ /// kit's `--recover-key` signed by a key-file sign-in.
2049
+ getEncryptedKeyBackupKey: (transportPublicKey: blob) -> (Result_72);
1836
2050
  /// Derive the shared memory-encryption key, encrypted under the caller's transport
1837
2051
  /// public key. Gated to owner + read-agents (the same principals allowed to read
1838
2052
  /// memory). The client decrypts it locally with its transport secret key.
@@ -1857,7 +2071,7 @@ type Engram =
1857
2071
  /// cost. Stated here because L7 requires the reason be readable from the interface rather than
1858
2072
  /// inferred by opening the body — which is exactly what had to happen to write this line.
1859
2073
  getEncryptedMemoryKey: (epoch: opt nat, transportPublicKey: blob) ->
1860
- (Result_69);
2074
+ (Result_72);
1861
2075
  /// ⟨0.16.0, owner ruling 2026-08-20 — option (a)⟩ `x402Support` REPORTS THE RAIL, not a constant.
1862
2076
  ///
1863
2077
  /// The card's config hardcodes `x402Support = true`, answering a buyer's question with a fact
@@ -1952,7 +2166,7 @@ type Engram =
1952
2166
  /// It refuses rather than half-answers: if either address cannot be derived the reply is
1953
2167
  /// `#Err`, never a record carrying an empty string (ic402's `getEvmAddress` answers `""` on a
1954
2168
  /// failed derivation — that is fail-to-empty on a money surface, and it stops here).
1955
- getEvmAddress: () -> (Result_68);
2169
+ getEvmAddress: () -> (Result_74);
1956
2170
  /// The owner's OWN EVM address, if they registered one — distinct from `getEvmAddress`, which is
1957
2171
  /// the address this canister derives for itself.
1958
2172
  ///
@@ -1967,7 +2181,10 @@ type Engram =
1967
2181
  /// the management canister's `ecdsa_public_key`. A query cannot await, so the round-trip is the
1968
2182
  /// cost — stated here because L7 requires the reason be readable from the interface rather than
1969
2183
  /// inferred by opening the body.
1970
- getEvmSignerAddress: () -> (Result_53);
2184
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2185
+ /// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
2186
+ /// engram is unchanged.
2187
+ getEvmSignerAddress: () -> (Result_55);
1971
2188
  /// PUBLIC: where this chain begins, for the stranger deciding whether to trust it.
1972
2189
  ///
1973
2190
  /// The fourth of the four evidence methods (`getAuditHead`, `getCertifiedAuditHead`,
@@ -1976,7 +2193,40 @@ type Engram =
1976
2193
  /// cannot verify it, and nothing here identifies anybody.
1977
2194
  getGenesisNote: () -> (GenesisNote) query;
1978
2195
  /// A guardian's own channel status (their URL is their secret — each guardian sees only theirs).
1979
- getGuardianAlertStatus: () -> (Result_67) query;
2196
+ getGuardianAlertStatus: () -> (Result_73) query;
2197
+ /// The sealed copy itself — opaque bytes only the sign-in can open. Readable by the sign-in (it
2198
+ /// opens them with the key `getEncryptedKeyBackupKey` derives for it) and by the key file, which
2199
+ /// holds the plaintext already and so learns nothing — it reads them to compare with the copy the kit
2200
+ /// made (the Challenge's C2.11: a copy someone else stored first reads as "not this key", not as
2201
+ /// "sealed"). Refused in a first engram, and `#NotFound` when no copy is held. The copy that waits
2202
+ /// with an ask is never served here: it is inert until accepted.
2203
+ /// A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
2204
+ /// Named callers: the owner kit (`--recover-key`, and its check after sealing), and an owner console
2205
+ /// signed in as the sign-in (the browser's recovery).
2206
+ getKeyBackupCiphertext: () -> (Result_72) query;
2207
+ /// Whether this engram holds a sealed copy of its owner's key, for whom, since when, whether it is
2208
+ /// sealed for the sign-in seated now, and whether a copy waits with an ask (`Types.KeyBackupStatus`).
2209
+ /// Readable by the key file and the sign-in (`#ownerOrSignIn`); refused loudly to anyone else
2210
+ /// (ADR-0002). A first engram refuses by name rather than answer "not sealed": it never holds one,
2211
+ /// and an empty answer there would read as a child whose seal failed.
2212
+ /// A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
2213
+ /// Named callers: the owner kit after it opens an engram (it prints whether the copy is stored), and
2214
+ /// an owner console showing an engram opened through another (whether recovery can work).
2215
+ getKeyBackupStatus: () -> (Result_71) query;
2216
+ /// BLS verification key under which the owner kit seals the backup (`IbeCiphertext.encrypt` to the
2217
+ /// sign-in's principal) and the opener verifies the derived key. Served on-canister so the kit never
2218
+ /// has to know which master key this network uses (the spec's Q-K3: a wrong guess would seal a copy
2219
+ /// nobody can open). Static per (context, key id, canister) — cacheable.
2220
+ ///
2221
+ /// PUBLIC: intentionally unauthenticated — a vetKD public key reveals nothing secret and cannot
2222
+ /// decrypt anything — the sensitive derivation is getEncryptedKeyBackupKey below, which IS gated
2223
+ /// (the sign-in alone) and returns key material encrypted to the caller's transport key. The same
2224
+ /// reasoning as getMemoryKeyVerificationKey, for the backup's own context.
2225
+ /// ⟨L7⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
2226
+ /// `VetKeys.ManagementCanister.vetKdPublicKey`. A query cannot await.
2227
+ /// Named callers: the owner kit, when it seals the copy at birth or for an ask; an owner console,
2228
+ /// to verify the derived key during recovery.
2229
+ getKeyBackupVerificationKey: () -> (blob);
1980
2230
  /// The market this engram will accept signing requests from — `null` until the registry pushes
1981
2231
  /// one at spawn, which is why `requireMarket` refuses fleet-wide today.
1982
2232
  ///
@@ -2006,7 +2256,7 @@ type Engram =
2006
2256
  /// never renumbered: the next page starts at the last version returned plus one. Defaults
2007
2257
  /// return the whole history of any file a pre-FD engram could have held.
2008
2258
  getMemoryHistory: (path: text, start: opt nat, max: opt nat) ->
2009
- (Result_66) query;
2259
+ (Result_70) query;
2010
2260
  /// PUBLIC: the epoch alone, and deliberately nothing else (rotation study D4). A `rotatedAt[]`
2011
2261
  /// history would be a public, fleet-enumerable feed of when each owner terminated a trust
2012
2262
  /// relationship — readable by, among others, the party just terminated.
@@ -2047,7 +2297,7 @@ type Engram =
2047
2297
  /// Refusal reasons of both merge: an empty policy reads as "nothing is capped, every version kept
2048
2298
  /// forever" — a claim about what this engram will DESTROY — and an empty guard list reads as
2049
2299
  /// "nothing is held back".
2050
- getMemoryRetentionPolicy: () -> (Result_65) query;
2300
+ getMemoryRetentionPolicy: () -> (Result_69) query;
2051
2301
  /// The metrics reader this engram answers — `null` until the spawning registry names one.
2052
2302
  ///
2053
2303
  /// PUBLIC: an owner deciding whether to switch the read off needs to know who it is, and anyone
@@ -2060,7 +2310,7 @@ type Engram =
2060
2310
  /// see: the only row it can ever return is the caller's own, so "you are not a guardian here" is
2061
2311
  /// a fact about the caller, told to the caller. There is nothing to leak by omission — which is
2062
2312
  /// the test the #NotFound arm sets.
2063
- getMyGuardianStatus: () -> (Result_17) query;
2313
+ getMyGuardianStatus: () -> (Result_18) query;
2064
2314
  /// ⟨0.16.0, NEW⟩ The gated half of the status() split.
2065
2315
  ///
2066
2316
  /// Every field is bare — no masking, no `authorized` discriminator — because reaching this record
@@ -2070,7 +2320,16 @@ type Engram =
2070
2320
  /// was `nat`, then widened to `opt nat` so a refusal could be `null`, which broke every published
2071
2321
  /// client (rule 4) and bought a masked answer nobody had asked for — the census could not even
2072
2322
  /// find a consumer that read the masked `0`. Behind a gate there is nobody to mask it from.
2073
- getOwnerConsole: () -> (Result_64) query;
2323
+ getOwnerConsole: () -> (Result_68) query;
2324
+ /// The engram's sign-in, as `Types.OwnerSignInView` describes it: whether this engram was opened
2325
+ /// through another, who its sign-in is, whether the caller is it, and any decline or waiting ask.
2326
+ /// Readable by the owner's key, the sign-in, and the person a waiting ask goes to (they need to see
2327
+ /// the ask to answer it); refused loudly to anyone else (ADR-0002) — never an empty view, which would
2328
+ /// read as "no sign-in". A first engram answers its owner with every field null or false.
2329
+ /// A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
2330
+ /// Named callers: an owner console showing an engram opened through another (who signs in, and a
2331
+ /// waiting ask with Accept and Decline), and the owner kit after it opens one.
2332
+ getOwnerSignIn: () -> (Result_67) query;
2074
2333
  /// Owner + agents only (agents need it to avoid writing protected paths).
2075
2334
  ///
2076
2335
  /// A NAMED RECORD, not a Page: the setter replaces this list wholesale, so there is no window to
@@ -2082,7 +2341,18 @@ type Engram =
2082
2341
  /// path on this engram is protected", and an agent consults this list precisely to avoid
2083
2342
  /// writing one — so a fabricated empty here does not merely misinform, it invites the write the
2084
2343
  /// list exists to prevent.
2085
- getProtectedPaths: () -> (Result_63) query;
2344
+ getProtectedPaths: () -> (Result_66) query;
2345
+ /// What an approval card shows beside a payment to `payTo` (`Types.RecipientHistory`): whether an x402
2346
+ /// signature from this engram has paid it before and since when, whether it is a listed seller and
2347
+ /// counts now, and whether the history is full (then "not paid before" may be one it forgot). Read
2348
+ /// beside the request, because the stored request is never reshaped. For the key file and the sign-in
2349
+ /// (the owner in a first engram); refused loudly to anyone else. A malformed address is `#Invalid`.
2350
+ /// ⟨2026-11-02, the child build's stage 5⟩ Also how many times x402 has paid it and the largest of
2351
+ /// those payments (`timesPaid`, `largestPaidE6`, six-decimal minor units), so a card can say "paid 3
2352
+ /// times, largest $12"; the history forgets the address paid longest ago when full.
2353
+ /// ⟨2026-11-03, the pre-gate fixes⟩ And when it was LAST paid (`lastPaidAtNs`; null when never).
2354
+ /// Named callers: an owner console's approval card for a payment request.
2355
+ getRecipientHistory: (payTo: text) -> (Result_65) query;
2086
2356
  /// Whether the metrics reader's read is answered — `true` from birth.
2087
2357
  ///
2088
2358
  /// PUBLIC: the promise that an owner can switch this read off can be checked only if the switch
@@ -2094,7 +2364,9 @@ type Engram =
2094
2364
  /// ⟨2026-11-01, "6 fix"⟩ Refused by name (`#Unavailable`) while this engram has not read its own
2095
2365
  /// freezing setting: there is no floor to serve then, and a 30-day figure would be a made-up one
2096
2366
  /// (ADR-0002) — the signers refuse in that state too, so the refusal is the truth on Billing.
2097
- getSigningFloor: () -> (Result_62) query;
2367
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2368
+ /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2369
+ getSigningFloor: () -> (Result_64) query;
2098
2370
  /// The registry that spawned this engram, if it recorded one.
2099
2371
  ///
2100
2372
  /// PUBLIC: it is the provenance claim. An engram asserting it is part of a fleet, under that
@@ -2106,12 +2378,18 @@ type Engram =
2106
2378
  /// caller. ⟨2026-09-28, the owner's decision to add the ceiling⟩
2107
2379
  /// ⟨CORRECTED 2026-09-29, review finding X-8: "spent" means signed in x402 payments; typed-data
2108
2380
  /// and the engram's registration signatures are not counted here — see `setSpendCeiling`.⟩
2381
+ /// ⟨CORRECTED 2026-11-04, the agent-conversion build, beside the note above⟩ …and, since 2026-11, an
2382
+ /// agent's conversion of the engram's balance into compute (`agentConvertBalance`, in a first engram too);
2383
+ /// in an engram opened through another the key file's Convert as well (since 2026-11-02). Both are reserved
2384
+ /// before their first await and given back when nothing left the wallet.
2109
2385
  ///
2110
2386
  /// OWNER-ONLY, for the reason `getSpendPolicy` is: the limits are the owner's custody
2111
2387
  /// configuration, and the engram-wide total would also tell one agent how much the others spent.
2112
2388
  /// A refusal names this method (`Gated.gatedResult`) rather than answering null/0 — a ceiling of
2113
2389
  /// "none" and a spend of 0 are both real answers, so a fabricated one would be read as fact.
2114
- getSpendCeiling: () -> (Result_61) query;
2390
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2391
+ /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2392
+ getSpendCeiling: () -> (Result_63) query;
2115
2393
  /// Read the caps in force for a caller.
2116
2394
  ///
2117
2395
  /// OWNER-ONLY, and this is where it diverges from the market's inbound twin, which is public.
@@ -2119,8 +2397,17 @@ type Engram =
2119
2397
  /// Here the engram serves no 402s at all: these caps are the owner's private custody
2120
2398
  /// configuration, and publishing them would tell any caller exactly how large a signing request
2121
2399
  /// can be before it needs an approval nobody is watching for.
2122
- getSpendPolicy: (caller: opt principal) -> (Result_60) query;
2123
- getStorageStats: () -> (Result_59) query;
2400
+ ///
2401
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2402
+ /// an engram opened through another, as the owner, through the combinator's `#ownerOrSignIn` (a first
2403
+ /// engram is unchanged: the owner only). The inline owner comparison that stood here is gone with it —
2404
+ /// one fewer unnamed caller guard. Its refusal sentence is kept as the reason it never fails soft:
2405
+ /// "Spending caps are the owner's custody configuration. Refusing rather than answering with
2406
+ /// defaults — a default-looking answer would understate the real limits to anyone probing them." The
2407
+ /// refusal itself is now the combinator's (`#Refused getSpendPolicy: …`, `requireOwner`'s words), and
2408
+ /// 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;
2124
2411
  /// Timer arm-state. PUBLIC and deliberately so: these timers are self-arming to save cycles,
2125
2412
  /// and an optimisation nobody can verify is an optimisation nobody should trust. Cheap to read,
2126
2413
  /// leaks nothing (booleans about our own scheduling).
@@ -2203,12 +2490,12 @@ type Engram =
2203
2490
  /// ⟨L7⟩ MARKER ADDED 2026-08-23, reasoning above UNCHANGED — this block already said "Stays an
2204
2491
  /// UPDATE, marked per L7: it awaits three ICRC-1 ledgers". It was marked in prose and invisible
2205
2492
  /// to any gate; the glyph is what `scripts/check-update-for-read.mjs` matches.
2206
- getWalletBalances: () -> (Result_58);
2493
+ getWalletBalances: () -> (Result_60);
2207
2494
  /// Refusal reason preserved, and it is the clearest case of why a masked read is worse than no
2208
2495
  /// read: three empty strings with `configured = false` is a VALID-LOOKING answer meaning "this
2209
2496
  /// engram has no World ID configuration" — handed to a caller who merely lacks a grant. The
2210
2497
  /// fabrication is indistinguishable from the truth by construction.
2211
- getWorldIdConfig: () -> (Result_57) query;
2498
+ getWorldIdConfig: () -> (Result_59) query;
2212
2499
  /// ⟨L7⟩ UPDATE, NOT QUERY: this awaits THREE system calls — `raw_rand()` for the nonce,
2213
2500
  /// `Call.signWithEcdsa` for the signature, and `worldIdRpPublicKey()` for the derived key. A
2214
2501
  /// query can do none of them.
@@ -2217,7 +2504,7 @@ type Engram =
2217
2504
  /// Valid iff the derived signer address (getWorldIdRpSignerAddress) is registered for this rp_id in
2218
2505
  /// the World Developer Portal. Short-lived (300s TTL, idkit-server's default) and single-purpose —
2219
2506
  /// it authorizes opening one verification request, nothing else.
2220
- getWorldIdRpContext: () -> (Result_56);
2507
+ getWorldIdRpContext: () -> (Result_58);
2221
2508
  /// Owner-only: the EVM address derived from the engram's dedicated World ID RP signing key (the
2222
2509
  /// "worldid-rp" tECDSA path). Register THIS address as the rp_id's signer in the World Developer
2223
2510
  /// Portal — the engram never holds or exports a private key (only threshold shares exist, on the
@@ -2227,7 +2514,10 @@ type Engram =
2227
2514
  /// awaits `worldIdRpPublicKey()` (management `ecdsa_public_key`), and it calls `denied()` on
2228
2515
  /// refusal — a state write, which a query cannot perform. So even if the key were cached this
2229
2516
  /// could not become a query without silently retiring its denial record (ADR-0002's class).
2230
- getWorldIdRpSignerAddress: () -> (Result_53);
2517
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2518
+ /// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
2519
+ /// engram is unchanged.
2520
+ getWorldIdRpSignerAddress: () -> (Result_55);
2231
2521
  /// The verified IDKitResult, verbatim, as World's /api/v4/verify accepted it — the re-checkable
2232
2522
  /// artifact behind verifiedHuman. Role-gated because it carries the NULLIFIER.
2233
2523
  /// `Result<opt Text>` — and the double wrapper is the entire point, not redundancy.
@@ -2246,7 +2536,7 @@ type Engram =
2246
2536
  /// `///`, so the dead name was PUBLISHED in engram.did and pointed every client at a method the
2247
2537
  /// canister does not serve. The tombstones below and at `about()` are historical and correct as
2248
2538
  /// written; this one was present tense, which is the difference that matters.⟩
2249
- getWorldIdVerification: () -> (Result_55) query;
2539
+ getWorldIdVerification: () -> (Result_57) query;
2250
2540
  /// ⟨0.16.0, L1⟩ THE EMERGENCY FAMILY. Every refusal below is `#Refused` or `#NotFound`, and the
2251
2541
  /// absence of a `#Conflict` here is the point: these are the calls someone makes while something
2252
2542
  /// is going wrong, and the only two answers that help are "you may not do this" and "there is
@@ -2321,7 +2611,10 @@ type Engram =
2321
2611
  ///
2322
2612
  /// Owner-gated because it reports on custody posture, and answered as a Result so that a
2323
2613
  /// wrong-identity caller gets a refusal rather than a bare `false` that reads as "no address yet".
2324
- isEvmAddressCached: () -> (Result_54) query;
2614
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2615
+ /// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
2616
+ /// engram is unchanged.
2617
+ isEvmAddressCached: () -> (Result_56) query;
2325
2618
  /// Issue an OAuth authorization code. Called by an OAuth client's sign-in bridge
2326
2619
  /// (an `/auth/connector`-style route) after II authentication. The client then
2327
2620
  /// redirects the user's browser to `redirectUri` with `?code=<this>` so the
@@ -2329,7 +2622,7 @@ type Engram =
2329
2622
  ///
2330
2623
  /// Owner-only: only the engram owner can authorize a Connector install.
2331
2624
  issueAuthCode: (redirectUri: text, scope: text, codeChallenge: text,
2332
- clientId: opt text) -> (Result_53);
2625
+ clientId: opt text) -> (Result_55);
2333
2626
  /// ⟨0.16.0⟩ `getCycleSnapshotSource` DELETED — folded into `CycleSnapshot.source`, one label per
2334
2627
  /// ROW. A single label for a whole ring misattributes every row recorded under the other source,
2335
2628
  /// and the source flips by design (self-call first, balance on fallback). Its documentation of
@@ -2343,7 +2636,7 @@ type Engram =
2343
2636
  /// Refusal reason preserved, and it is the sharpest of this family: a masked `[]` reads as a
2344
2637
  /// DORMANT engram and corrupts retention math — a fabricated empty here does not just misinform a
2345
2638
  /// reader, it feeds a wrong number into a decision about destroying data.
2346
- listActivitySnapshots: (start: nat, limit: nat) -> (Result_52) query;
2639
+ listActivitySnapshots: (start: nat, limit: nat) -> (Result_54) query;
2347
2640
  /// ⟨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,
2348
2641
  /// m."⟩ OWNER-ONLY: what each agent has spent today, beside the daily limit in force for it, so the
2349
2642
  /// agent rows can say "$0.50 of $5.00 today" where they said a count of payments. Read from the
@@ -2360,7 +2653,9 @@ type Engram =
2360
2653
  /// because the payment path keeps no figure then (`SpendCeiling.AgentSpendRow` says why).
2361
2654
  /// WHAT WOULD MAKE THIS WRONG: `x402SignFor` keeping the per-caller total by something other than
2362
2655
  /// the calling key, or under another day boundary.
2363
- listAgentSpendToday: (start: nat, limit: nat) -> (Result_51) query;
2656
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2657
+ /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2658
+ listAgentSpendToday: (start: nat, limit: nat) -> (Result_53) query;
2364
2659
  /// ⟨0.16.0⟩ THE PAGE EXEMPLAR. Trap → `#Refused`, bare array → `Result<Page<T>>` (L1 + L3).
2365
2660
  ///
2366
2661
  /// The refusal prose that used to be `gatedTrap`'s `whyNotEmpty` argument is not lost — it is why
@@ -2375,7 +2670,9 @@ type Engram =
2375
2670
  ///
2376
2671
  /// `withheld` is 0: this roster is owner-only in whole, so there is no partial-visibility case.
2377
2672
  /// A method that filters rows by caller sets it — see L1's row-level honesty rule.
2378
- listAgents: (start: nat, limit: nat) -> (Result_50) query;
2673
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2674
+ /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2675
+ listAgents: (start: nat, limit: nat) -> (Result_52) query;
2379
2676
  /// The GUARDIAN-audience projection of the agent roster — three fields, not the full record.
2380
2677
  ///
2381
2678
  /// Two audiences, two methods (L1/L8), rather than one method masking fields by caller: a
@@ -2387,7 +2684,7 @@ type Engram =
2387
2684
  /// Refusal reason preserved: `[]` reads as "this engram has no agents", and this is the list a
2388
2685
  /// guardian consults BEFORE REVOKING ONE. A fabricated empty here does not merely misinform —
2389
2686
  /// it tells someone acting under emergency powers that there is nothing to act on.
2390
- listAgentsForGuardian: (start: nat, limit: nat) -> (Result_49) query;
2687
+ listAgentsForGuardian: (start: nat, limit: nat) -> (Result_51) query;
2391
2688
  /// Owner-only: rows carry caller, amount, operation and free-text rationale. The SDK omits it.
2392
2689
  ///
2393
2690
  /// The optional leading filter SURVIVES the L3 reshape — ratified (census tier-2 #8) rather than
@@ -2400,7 +2697,7 @@ type Engram =
2400
2697
  ///
2401
2698
  /// Refusal reason preserved: `[]` reads as "nothing is awaiting the owner's decision".
2402
2699
  listApprovalRequests: (statusFilter: opt ApprovalStatus, start: nat,
2403
- limit: nat) -> (Result_35) query;
2700
+ limit: nat) -> (Result_37) query;
2404
2701
  /// ⟨0.16.0⟩ `total` IS THE HEAD COUNTER, and on this method that is the entire point.
2405
2702
  ///
2406
2703
  /// The audit log is a bounded RING: it trims its tail, so "rows you can read" and "entries that
@@ -2434,7 +2731,7 @@ type Engram =
2434
2731
  /// where this record switched to the hash-first rule. A sealed row costs one SHA-256 of its body
2435
2732
  /// at read time; nothing new is stored. WHAT WOULD MAKE THIS WRONG: a sealed row carrying any part
2436
2733
  /// of a body, or a stranger reaching `items` (test/record-view.test.mo pins both).
2437
- listAuditEntries: (start: nat, limit: nat) -> (Result_48) query;
2734
+ listAuditEntries: (start: nat, limit: nat) -> (Result_50) query;
2438
2735
  /// ⟨0.16.0, L1 + L3 — census-ruled⟩ THE TWO-MECHANISM EXCEPTION DISSOLVES.
2439
2736
  ///
2440
2737
  /// This method used to answer THREE ways to one question: a list, an `#Err` text, and a trap,
@@ -2458,7 +2755,7 @@ type Engram =
2458
2755
  /// `dbTypeFilter` DIES on the wire (census). The capability does not: `EngramClient.listBackups`
2459
2756
  /// keeps its optional filter and applies it to the page, so no caller loses the ability to ask
2460
2757
  /// "backups of this database" — it stops being a thing the canister has to page around.
2461
- listBackups: (start: nat, limit: nat) -> (Result_47) query;
2758
+ listBackups: (start: nat, limit: nat) -> (Result_49) query;
2462
2759
  /// List all bearer tokens — Active, Revoked, and Expired. Owner uses this in
2463
2760
  /// the dashboard to show installed Connectors (claude.ai, Claude Desktop, etc.).
2464
2761
  /// Refusal reason preserved from the trap: `[]` reads as "no connector is installed on this
@@ -2468,7 +2765,9 @@ type Engram =
2468
2765
  /// `bearerTokenStore.list()` already resolves each token's status at read time (a token that
2469
2766
  /// merely stopped being used is reported `#Expired`, not a stale `#Active`), so the page carries
2470
2767
  /// the same honesty the store gained on 2026-08-17.
2471
- listBearerTokens: (start: nat, limit: nat) -> (Result_46) query;
2768
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2769
+ /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2770
+ listBearerTokens: (start: nat, limit: nat) -> (Result_48) query;
2472
2771
  /// The condense checkpoints in the retained log at or above `startSeq`, oldest first.
2473
2772
  ///
2474
2773
  /// ⟨0.16.0, NEW⟩ The other half of the split above. A checkpoint is the only surviving record of a
@@ -2478,18 +2777,18 @@ type Engram =
2478
2777
  ///
2479
2778
  /// Owner-only like every other archive surface, and for the same structural reason: these rows
2480
2779
  /// carry the chain positions and roots of entries whose paths were inside the hash preimage.
2481
- listCondenseCheckpoints: (startSeq: nat, max: nat) -> (Result_45) query;
2780
+ listCondenseCheckpoints: (startSeq: nat, max: nat) -> (Result_47) query;
2482
2781
  /// ⟨0.16.0⟩ `metrics()` DELETED — absorbed by `about()`.
2483
2782
  ///
2484
2783
  /// Two public projections of one canister (L2.2): `metrics()` and `status()` both answered "what
2485
2784
  /// is this engram like" and disagreed on which counters they carried, so a consumer had to fetch
2486
2785
  /// both and know which one owned each field. Every field here survives on `about()`, day-flooring
2487
2786
  /// included.
2488
- listCycleSnapshots: (start: nat, limit: nat) -> (Result_44) query;
2787
+ listCycleSnapshots: (start: nat, limit: nat) -> (Result_46) query;
2489
2788
  /// Same `withheld` treatment as listMemoryFiles — the tombstone listing filtered reserved paths
2490
2789
  /// for non-owners just as silently, and a caller could not tell a filtered tombstone list from a
2491
2790
  /// complete one. Counted before slicing, so policy-hidden rows never blur into paging.
2492
- listDeletedMemoryFiles: (start: nat, limit: nat) -> (Result_43) query;
2791
+ listDeletedMemoryFiles: (start: nat, limit: nat) -> (Result_45) query;
2493
2792
  /// Stays on the engram under B1 (hybrid): withdrawal custody does not leave.
2494
2793
  ///
2495
2794
  /// NAMED item, not a `(Text, Int)` tuple. The Int is an activation time, and a bare Int beside a
@@ -2504,7 +2803,7 @@ type Engram =
2504
2803
  /// The item's field is `value`, not `address`: a list may hold a venue value that is no address.
2505
2804
  /// Readable by the owner, an active agent or an active guardian, as the old list was.
2506
2805
  listEip712Destinations: (typeId: blob, start: nat, limit: nat) ->
2507
- (Result_42) query;
2806
+ (Result_44) query;
2508
2807
  /// The registered shapes — E3: encodeTypeString is the display artifact, verbatim.
2509
2808
  /// Stays on the engram under B1 (hybrid): EIP-712 signing is custody, and custody does not leave.
2510
2809
  ///
@@ -2515,20 +2814,20 @@ type Engram =
2515
2814
  /// ⟨2026-10-14, the owner's ruling 3A⟩ Each row carries its per-field rules (`fieldRules`), joined in
2516
2815
  /// from `eip712FieldRules` — they are part of what the type authorises, so a reader of the list must
2517
2816
  /// not have to make a second call to learn them. The row type is `Eip712TypeView`.
2518
- listEip712Types: (start: nat, limit: nat) -> (Result_41) query;
2817
+ listEip712Types: (start: nat, limit: nat) -> (Result_43) query;
2519
2818
  /// ⟨2026-10-21, round 11 c⟩ Guardians' disputes, oldest first. Same visibility as
2520
2819
  /// `listRepudiations` and `listRecordNotes`: the owner and ACTIVE guardians read the rows; an
2521
2820
  /// agent gets an empty page whose `withheld` counts them (ruling 16 B holds — a dispute is the
2522
2821
  /// guardian's entry, not the agent's); a stranger, a pending guardian and the anonymous caller are
2523
2822
  /// refused.
2524
- listGuardianDisputes: (start: nat, limit: nat) -> (Result_40) query;
2823
+ listGuardianDisputes: (start: nat, limit: nat) -> (Result_42) query;
2525
2824
  /// Accessible by owner and guardians.
2526
2825
  ///
2527
2826
  /// Refusal reason carried over from the trap, because it is the sharpest example of why this
2528
2827
  /// surface may not fail soft: `[]` reads as "this engram has nobody who can freeze payments or
2529
2828
  /// pause writes" — a claim about who can STOP it. A caller who cannot tell that from "you may not
2530
2829
  /// see the roster" has been told the engram is unguarded when it may be fully guarded.
2531
- listGuardians: (start: nat, limit: nat) -> (Result_39) query;
2830
+ listGuardians: (start: nat, limit: nat) -> (Result_41) query;
2532
2831
  /// The export receipts in the retained log at or above `startSeq`, oldest first.
2533
2832
  ///
2534
2833
  /// ⟨0.16.0, L3⟩ ONE LIST, ONE QUESTION. This method used to return receipts AND checkpoints
@@ -2544,7 +2843,7 @@ type Engram =
2544
2843
  ///
2545
2844
  /// Read `MemoryRouter.ReceiptPage` before reading `page.total` as a receipt count. It is not one;
2546
2845
  /// it is the chain's length, and the declaration says why.
2547
- listMemoryExportReceipts: (startSeq: nat, max: nat) -> (Result_38) query;
2846
+ listMemoryExportReceipts: (startSeq: nat, max: nat) -> (Result_40) query;
2548
2847
  /// ⟨0.16.0⟩ THE `withheld` EXEMPLAR — L1 names this exact method as the defect it fixes.
2549
2848
  ///
2550
2849
  /// A non-owner's answer silently dropped every `config/` and `secrets/` row. Not "refused the
@@ -2569,7 +2868,7 @@ type Engram =
2569
2868
  /// the rows of THIS page (`MemoryRouter.info`), after the slice, so the cost is one lookup per
2570
2869
  /// row served, never one per file stored. A WIDENED REPLY: a reader that decodes the row by
2571
2870
  /// position rather than by field name breaks — none in this repository does.
2572
- listMemoryFiles: (start: nat, limit: nat) -> (Result_37) query;
2871
+ listMemoryFiles: (start: nat, limit: nat) -> (Result_39) query;
2573
2872
  /// One page of the memory log, seq-ordered, optionally narrowed to one author.
2574
2873
  ///
2575
2874
  /// THE WINDOW IS THE CURSOR, and the page now states it. The window is
@@ -2595,7 +2894,7 @@ type Engram =
2595
2894
  /// with the disclosures that make the page verifiable — the hidden-bound defect the census itself
2596
2895
  /// names on previewCondense's row.
2597
2896
  listMemoryLog: (startSeq: nat, max: nat, authorFilter: opt principal) ->
2598
- (Result_36) query;
2897
+ (Result_38) query;
2599
2898
  /// The caller's OWN spend-approval requests. ⟨0.16.0, L1 + L3 — fixed 2026-08-18⟩
2600
2899
  ///
2601
2900
  /// Two defects in seven lines, and the first is the one this release exists to remove:
@@ -2612,7 +2911,7 @@ type Engram =
2612
2911
  /// to see, so `total` over their own rows is the honest count and nothing is hidden FROM them.
2613
2912
  /// (The unbounded MAP is filed separately — pruning an approval record destroys evidence of what
2614
2913
  /// was asked, which is a retention ruling rather than a shape fix.)
2615
- listMyApprovalRequests: (start: nat, limit: nat) -> (Result_35) query;
2914
+ listMyApprovalRequests: (start: nat, limit: nat) -> (Result_37) query;
2616
2915
  /// The payer's own sessions, live ones first. PAYER-SCOPED: a caller sees only their own, which
2617
2916
  /// is why this needs no role — a session id is not a secret from the person who paid for it.
2618
2917
  ///
@@ -2621,7 +2920,7 @@ type Engram =
2621
2920
  /// It took no arguments, and a cursor added after the freeze is an argument-list change every
2622
2921
  /// client would break on — the market paged its own pending withdrawals before its cut for the
2623
2922
  /// same reason. The order is the order sessions were opened.
2624
- listMySessions: (start: nat, limit: nat) -> (Result_34) query;
2923
+ listMySessions: (start: nat, limit: nat) -> (Result_36) query;
2625
2924
  ///
2626
2925
  /// ⟨0.16.0, L3⟩ Paged and enveloped like every other `list*`, and the envelope here is uniformity
2627
2926
  /// rather than gating: this method cannot refuse anybody, so `#Err` is unreachable on it. That is
@@ -2634,7 +2933,7 @@ type Engram =
2634
2933
  /// asked by strangers. `verifyEngramActiveOwner` on the registry answers only about the owner
2635
2934
  /// IT recorded, so this chain is what a caller composes with when currency matters — which it
2636
2935
  /// cannot do if it needs a role here.
2637
- listOwnershipTransfers: (start: nat, limit: nat) -> (Result_33) query;
2936
+ listOwnershipTransfers: (start: nat, limit: nat) -> (Result_35) query;
2638
2937
  /// ⟨2026-09-29, the platform's question from the build review⟩ OWNER-ONLY: how many payment
2639
2938
  /// signatures each agent has obtained today, and the daily limit (200, `PaymentSignCap`). The
2640
2939
  /// owner's console stated the rule and showed no number, because nothing served one; a number it
@@ -2650,7 +2949,9 @@ type Engram =
2650
2949
  /// marketplace's one shared count today is in the reply's `marketplace` field, with the limit this
2651
2950
  /// engram enforces for it — beside the agents, never a row among them
2652
2951
  /// (`PaymentSignCap.marketplaceRow`). Null when no marketplace is set.
2653
- listPaymentSignatureCounts: (start: nat, limit: nat) -> (Result_32) query;
2952
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2953
+ /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2954
+ listPaymentSignatureCounts: (start: nat, limit: nat) -> (Result_34) query;
2654
2955
  /// Agent records removed by a reset. Each row is a NAMED record with the fields `principal`,
2655
2956
  /// `name`, `registeredAt` and `purgedAt` — read them BY NAME, never by position.
2656
2957
  /// ⟨2026-09-29, the vocabulary ruling: pairing is the one verb that admits an agent⟩ The field
@@ -2690,7 +2991,9 @@ type Engram =
2690
2991
  /// `invite` its enrolment named, and `ended` — why and on what day its engagement ended (its own
2691
2992
  /// earlier ending, or the reset) — the facts `resyncAgentEdges` re-sends. The stored rows are
2692
2993
  /// served as they are.
2693
- listPurgedAgents: (start: nat, limit: nat) -> (Result_31) query;
2994
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2995
+ /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2996
+ listPurgedAgents: (start: nat, limit: nat) -> (Result_33) query;
2694
2997
  /// ⟨0.16.0⟩ ONE ACCESSOR, folding `readReadLog` and `getDenialLog` — and the fold only became
2695
2998
  /// safe because of a change made earlier in this same leg.
2696
2999
  ///
@@ -2752,13 +3055,13 @@ type Engram =
2752
3055
  /// on the chained record — the same `RecordView` filter, and `withheld` counts what it removed
2753
3056
  /// together with what `successFilter` removed. WHAT WOULD MAKE THIS WRONG: see `listAuditEntries`.
2754
3057
  listReadLog: (successFilter: opt bool, start: nat, limit: nat) ->
2755
- (Result_30) query;
3058
+ (Result_32) query;
2756
3059
  /// ⟨2026-10-21, round 11 b⟩ The owner's notes, oldest first. Same visibility as
2757
3060
  /// `listRepudiations`, for the same reason: the owner and ACTIVE guardians read the rows; an agent
2758
3061
  /// reads only the entries it caused (follow-up 16 B), and every note is the owner's, so an agent
2759
3062
  /// gets an empty page whose `withheld` counts the notes in its window — never "there are none". A
2760
3063
  /// stranger, a pending guardian and the anonymous caller are refused.
2761
- listRecordNotes: (start: nat, limit: nat) -> (Result_29) query;
3064
+ listRecordNotes: (start: nat, limit: nat) -> (Result_31) query;
2762
3065
  /// Same visibility as listAuditEntries: the owner, this engram's agents, and ACTIVE guardians
2763
3066
  /// see disputes. An unauthorized read REFUSES — it does not return an empty list, because an
2764
3067
  /// empty list reads as "no disputes have been filed", which is a claim, not an absence of one.
@@ -2773,7 +3076,14 @@ type Engram =
2773
3076
  /// window — which says disputes exist without showing them, never "none have been filed". WHAT
2774
3077
  /// WOULD MAKE THIS WRONG: a ruling that an agent may see the disputes of its own writes; this would
2775
3078
  /// then have to look up each disputed version's writer, which it does not do today.
2776
- listRepudiations: (start: nat, limit: nat) -> (Result_28) query;
3079
+ listRepudiations: (start: nat, limit: nat) -> (Result_30) query;
3080
+ /// The seller list, a page at a time, as `Types.SellerView` (a raise whose wait is over shown applied;
3081
+ /// `liveNow` — false for every row while an engram opened through another has no sign-in seated; what
3082
+ /// x402 reserved for each today). For the key file and the sign-in in an engram opened
3083
+ /// through another, the owner in a first engram; refused loudly to anyone else — never an empty page,
3084
+ /// which would read as "no sellers". A QUERY: the refusal is in the reply, not the denial log.
3085
+ /// Named callers: an owner console's seller list.
3086
+ listSellers: (start: nat, limit: nat) -> (Result_29) query;
2777
3087
  /// ⟨2026-10-21, the owner's round-11 answer f⟩ OWNER-ONLY: the sign-ins, each with the name its app
2778
3088
  /// registered. The same tokens, in the same order and paged the same way, as `listBearerTokens`,
2779
3089
  /// each beside `clientName` — the RFC 7591 `client_name` the app registered when the token was
@@ -2782,7 +3092,9 @@ type Engram =
2782
3092
  /// apps apart. A NEW method rather than a field on `BearerToken`: that record is stored (M0170)
2783
3093
  /// and `listBearerTokens`' reply is shipped (never widened). An agent, a guardian, a stranger and
2784
3094
  /// the anonymous caller are refused, by `listBearerTokens`' own gate and for its reason.
2785
- listSignIns: (start: nat, limit: nat) -> (Result_27) query;
3095
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
3096
+ /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
3097
+ listSignIns: (start: nat, limit: nat) -> (Result_28) query;
2786
3098
  /// Owner: advance the review cursor — "I have seen everything up to and including uptoAuditId"
2787
3099
  /// (null = everything at the current head). Bounded so the attestation can never cover entries
2788
3100
  /// the console did not render; clamped monotonic (the cursor never moves backward) and to the
@@ -2792,7 +3104,7 @@ type Engram =
2792
3104
  /// (every family qualifiesForReview admits is written to auditLogger, so they share that space),
2793
3105
  /// and this never inspects an operation or a role. Widening what the review shows therefore
2794
3106
  /// changes only which ids the console can pass here — it cannot desynchronise the cursor.
2795
- markAgentWritesReviewed: (uptoAuditId: opt nat) -> (Result_14);
3107
+ markAgentWritesReviewed: (uptoAuditId: opt nat) -> (Result_15);
2796
3108
  /// ⟨2026-10-21, the owner's round-11 answer g⟩ AN AGENT READS ITS OWN GRANT — to the calling key
2797
3109
  /// only (`People.AgentGrant`): what it may read, where it may write, its rate, and the payment
2798
3110
  /// limits enforced against that key. It reveals nothing a refusal does not already say, and lets
@@ -2810,7 +3122,7 @@ type Engram =
2810
3122
  /// the caps alone no longer read as money an agent can spend. `People.SpendState` names each one.
2811
3123
  /// ⟨2026-10-29, review F2⟩ And which whole-key refusal stops every payment now, if one does
2812
3124
  /// (`paymentsStoppedBy`: the brake, the signing floor, the daily count of payment signatures).
2813
- myGrant: () -> (Result_26) query;
3125
+ myGrant: () -> (Result_27) query;
2814
3126
  /// The AGENT's current key nominates the key that will replace it. Nothing moves yet: the new
2815
3127
  /// key must accept, by its own call, within 24 hours (`acceptAgentKeyNomination`). One pending
2816
3128
  /// nomination per agent — a new one replaces the earlier one, and the record says which. Refused,
@@ -2818,7 +3130,7 @@ type Engram =
2818
3130
  /// not hold the record (`KeyReplacement.nomineeRefusal`).
2819
3131
  nominateAgentKey: (newKey: principal) -> (Result_2);
2820
3132
  /// An AGENT paired here asks this engram to open an engram of its own. This engram attaches 1.3 T of
2821
- /// its own cycles to the registry's `sysSpawnChild`; the agent's lasting key owns what is opened, and
3133
+ /// its own cycles to the registry's `sysOpenChild`; the agent's lasting key owns what is opened, and
2822
3134
  /// the engram is recorded as opened through this one. Answers the new engram's canister id.
2823
3135
  ///
2824
3136
  /// APPROVING IS GIVING: the owner allowed this with `setChildAllowance`, and what is attached is the
@@ -2845,15 +3157,36 @@ type Engram =
2845
3157
  ///
2846
3158
  /// WHAT WOULD MAKE THIS WRONG: an await added between `ChildAllowance.take` and the registry call; the
2847
3159
  /// registry's `CHILD_MIN_ATTACHED_CYCLES` moving without `CHILD_ATTACH_CYCLES`.
2848
- openChildEngram: () -> (Result_25);
2849
- openSession: (config: SessionConfig, sig: PaymentSignature) -> (Result_24);
3160
+ ///
3161
+ /// ⟨2026-11-02, the owner's ruling "1-4 all as you recommended" (the child build's stage 2)⟩ THE
3162
+ /// SIGN-IN. `signIn` names the opened engram's sign-in — the person running the agent, on a second
3163
+ /// credential; null opens it with none, and it then keeps small limits for life. It goes to the
3164
+ /// registry's door and from there into the opened engram's init record, so that engram never runs a
3165
+ /// message without it. Refused here first, with no await and before the allowance is taken, by the
3166
+ /// door's own three rules (`OwnerSignIn.candidateRefusal`): the agent's lasting key itself, the
3167
+ /// anonymous principal, a canister — so the agent sees the refusal before any cycles move. The
3168
+ /// record entry says `signIn=set` or `signIn=none`, never the principal.
3169
+ /// ⟨2026-11-02, the stage-2 review M3, beside the above⟩ And a fourth, the door's own: the key this
3170
+ /// call is signed by — the agent's session key — is refused as the sign-in too
3171
+ /// (`OwnerSignIn.agentKeyRefusal`), at the same place.
3172
+ ///
3173
+ /// ⟨2026-11-02, the child build's stage 2 — RENAMED from `openChildEngram`, beside the paragraphs
3174
+ /// above, which describe the same door⟩ It was `openChildEngram()`, with no argument. A second
3175
+ /// positional argument would grow its argument tuple, and a shipped tuple is frozen (evolution
3176
+ /// happens inside records), so the door takes ONE record whose later fields are optional, under a
3177
+ /// new name — the shape the registry's own door took the same day (`sysSpawnChild` →
3178
+ /// `sysOpenChild`). An rc.21 kit calling the old name is rejected
3179
+ /// (IC0536) with nothing spent; it can never open an engram without a sign-in by accident.
3180
+ /// 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);
2850
3183
  /// Withdraw tokens to the owner's principal. This is the ONLY way to
2851
3184
  /// move tokens out of the engram to an external address, and the
2852
3185
  /// destination is always hardcoded to the owner.
2853
3186
  /// NOT freeze-gated: the owner always controls their own funds.
2854
3187
  /// Guardian freeze only blocks agent/public operations.
2855
3188
  ownerWithdraw: (amount: TokenAmount, ownerAuth: opt ActionAuth) ->
2856
- (Result_14);
3189
+ (Result_15);
2857
3190
  /// ⟨0.16.0⟩ `payRentFromEarnings` DELETED — ruled TWICE (B1 and B2), and it was the single
2858
3191
  /// clearest violation of the OSS/platform split in this repo.
2859
3192
  ///
@@ -2911,7 +3244,7 @@ type Engram =
2911
3244
  pairAgent: (arg: record {
2912
3245
  code: text;
2913
3246
  enrolment: Enrolment;
2914
- }) -> (Result_23);
3247
+ }) -> (Result_24);
2915
3248
  /// ⟨0.16.0, L2.2 — renamed from `guardianPauseWrites`⟩ Same correction as freezePayments above:
2916
3249
  /// owner-or-guardian, and `resumeWrites` never carried the prefix either.
2917
3250
  pauseWrites: () -> (Result_2);
@@ -2936,7 +3269,7 @@ type Engram =
2936
3269
  ///
2937
3270
  /// `unlocked` is the export-receipt gate ONLY. It is not a promise the condense will land: the
2938
3271
  /// history-budget delta is checked at commit time and can still refuse a short prefix.
2939
- previewCondense: (toSeq: nat) -> (Result_22) query;
3272
+ previewCondense: (toSeq: nat) -> (Result_23) query;
2940
3273
  /// A quote for a session this caller has not opened and is not committed to — the intent a
2941
3274
  /// buyer signs against. Pure dry run, no state, no funds.
2942
3275
  ///
@@ -2981,10 +3314,12 @@ type Engram =
2981
3314
  /// takes effect change it.
2982
3315
  /// HONEST WHEN CUT SHORT: `complete = false` when the planning budget
2983
3316
  /// (`MemoryRouter.PREVIEW_MAX_DROPS`) ran out — the totals are then a floor, and say so.
3317
+ /// ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
3318
+ /// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2984
3319
  previewRetention: (entries: vec record {
2985
3320
  text;
2986
3321
  RetentionClassSpec;
2987
- }) -> (Result_21) query;
3322
+ }) -> (Result_22) query;
2988
3323
  /// Read one memory file at its current version.
2989
3324
  ///
2990
3325
  /// Gated on the `read_memory` permission, so an agent holding that grant reaches it — unlike
@@ -2999,7 +3334,7 @@ type Engram =
2999
3334
  /// counter here could never persist; read counting lives on the update path
3000
3335
  /// (`sessionReadContext` and the MCP reads). A caller measuring engram usage from this method
3001
3336
  /// will measure nothing.
3002
- readMemory: (path: text) -> (Result_12) query;
3337
+ readMemory: (path: text) -> (Result_13) query;
3003
3338
  /// Read many paths in one call. Per-path Results are KEPT — partial success is the point, and
3004
3339
  /// one unreadable path must not fail the other nine.
3005
3340
  ///
@@ -3015,7 +3350,7 @@ type Engram =
3015
3350
  /// Both are now what they are: a single `#Err` for the whole call. `#Ok` still carries a row per
3016
3351
  /// path, each with its own Result — a refused RESERVED path sits beside a readable one, which is
3017
3352
  /// a genuine per-path fact.
3018
- readMemoryBatch: (paths: vec text) -> (Result_20) query;
3353
+ readMemoryBatch: (paths: vec text) -> (Result_21) query;
3019
3354
  /// ⟨0.16.0⟩ `getMemoryRetentionGuards` DELETED — folded into `getMemoryRetentionPolicy` above.
3020
3355
  /// It was the second L2.1 array-returning `get*`, and separating it from the policy it modifies
3021
3356
  /// was the defect described there. Its own docs are preserved at the fold site.
@@ -3026,7 +3361,7 @@ type Engram =
3026
3361
  /// see it cannot know whether it has the whole range, which is how silent truncation gets
3027
3362
  /// reintroduced. Loop while `more` is true, advancing by the bytes actually returned.
3028
3363
  readMemoryBytes: (path: text, offset: nat, len: nat, version: opt nat) ->
3029
- (Result_19) query;
3364
+ (Result_20) query;
3030
3365
  /// The escrow exit for a session whose settle cannot pay.
3031
3366
  ///
3032
3367
  /// PAYER-ONLY, enforced inside the gateway, and deliberately not owner-triggered: the payer's own
@@ -3089,7 +3424,7 @@ type Engram =
3089
3424
  /// was the block index alone, which read as the amount. If the session's record is removed before
3090
3425
  /// the amount can be read back — a session closed in the same moment as the recovery and cleaned up
3091
3426
  /// during its transfer — it answers `#Other` naming the block, never a guessed amount.
3092
- recoverEscrow: (sessionId: text, amountE6: nat) -> (Result_18);
3427
+ recoverEscrow: (sessionId: text, amountE6: nat) -> (Result_19);
3093
3428
  /// ⟨0.16.0, L1⟩ A REDEMPTION PATH, where the arm choice is a disclosure decision.
3094
3429
  ///
3095
3430
  /// Four of these refusals are about the CODE and one is about the caller. The code arms restate
@@ -3103,7 +3438,7 @@ type Engram =
3103
3438
  /// rather than `()`. The new guardian learns, in the same reply, the name and permissions the
3104
3439
  /// owner's invite gave them and that they cannot act until approved; before, that took a second
3105
3440
  /// read they had no reason to know to make.
3106
- registerGuardian: (code: text) -> (Result_17);
3441
+ registerGuardian: (code: text) -> (Result_18);
3107
3442
  /// Remove a per-caller override so that caller reverts to — and keeps TRACKING — the global caps.
3108
3443
  ///
3109
3444
  /// It travels with its pair and is never dropped alone: without it the only way "back" from an
@@ -3134,6 +3469,13 @@ type Engram =
3134
3469
  /// `#NotFound` rather than `#Refused` when there is no such guardian: only the owner reaches this
3135
3470
  /// line, so the roster is theirs and its contents are not a secret being withheld from them.
3136
3471
  removeGuardian: (guardianPrincipal: principal) -> (Result_2);
3472
+ /// Remove a listed seller, at once: from now a payment to it meets the engram-wide ceiling and the
3473
+ /// paying agent's own limits again, and adding it back waits 24 hours. Removing TIGHTENS, so the key
3474
+ /// file may do it as well as the sign-in, and it works while payments are frozen. Its "paid before"
3475
+ /// history is kept (that is about the address, not the row). Unknown address `#NotFound`.
3476
+ /// Named callers: an owner console's seller list, and the owner kit (the key file's way to stop a
3477
+ /// seller).
3478
+ removeSeller: (payTo: text) -> (Result_2);
3137
3479
  /// ⟨2026-10-21, the owner's round-11 answer a⟩ OWNER-ONLY: give an agent a new name. A name was
3138
3480
  /// fixed at the invite, and two agents both called "agent" is how the 2026-10-20 session started.
3139
3481
  /// Only the VALUE of the stored `AgentRecord.name` changes — no new state, no reshaped record —
@@ -3149,7 +3491,7 @@ type Engram =
3149
3491
  /// the original audit entry stay exactly where they were; this appends a chained
3150
3492
  /// `memory.repudiate` entry and lists the (path, version) so readers can see the dispute.
3151
3493
  repudiateMemoryWrite: (path: text, version: nat, reason: text) ->
3152
- (Result_14);
3494
+ (Result_15);
3153
3495
  /// ⚠ OWNER-ONLY BULK RESET. Destructive, and wider than its name suggests.
3154
3496
  ///
3155
3497
  /// It severs EVERY grant surface that can outlive a role — agents, guardians, invites and
@@ -3168,6 +3510,10 @@ type Engram =
3168
3510
  /// · ⟨2026-10-02⟩ the seat weeks of every engagement (`agentSeatWeeks`), with the signature count
3169
3511
  /// they sit beside, and the owner's switch over the metrics reader's read and the reader it
3170
3512
  /// names — a reset severs access, it does not change who may read what was kept.
3513
+ /// · ⟨2026-11-02, the child build — decided "unless you object", recorded at stage 5⟩ the seller
3514
+ /// list and the paid history (`listSellers`, `getRecipientHistory`), as the typed-data
3515
+ /// destinations are kept: a reset severs access, it does not forget which counterparties the
3516
+ /// owner approved or which addresses this engram has paid.
3171
3517
  ///
3172
3518
  /// ⟨2026-10-02⟩ It tells the spawning registry that it happened (`sysNoteReset`), on every reset.
3173
3519
  ///
@@ -3177,7 +3523,7 @@ type Engram =
3177
3523
  /// NOT unbounded. It caps at MAX_ENTRIES and trims its oldest tenth on overflow, so on any engram
3178
3524
  /// long-lived enough for the rent model to apply, the reset entry is not guaranteed to still be
3179
3525
  /// there. `agentPurgeLog` is the evidence that does not age out — which is why it exists.
3180
- resetEngram: () -> (Result_16);
3526
+ resetEngram: () -> (Result_17);
3181
3527
  /// ⟨2026-09-28, owner decision: an agent can resign from an engram, and the resignation is
3182
3528
  /// recorded⟩ The AGENT ends its own engagement with this engram.
3183
3529
  ///
@@ -3223,7 +3569,7 @@ type Engram =
3223
3569
  /// all that is left to send is the ending, and the registry has nothing to end. The report lists
3224
3570
  /// each such engagement under `cannotBeRecorded` (key, root, invite, and how and when it ended),
3225
3571
  /// apart from `notRecorded`, so the owner sees them rather than silence.
3226
- resyncAgentEdges: () -> (Result_15);
3572
+ resyncAgentEdges: () -> (Result_16);
3227
3573
  /// Return to managed custody: the engram adds the registry back as a controller ALONGSIDE the
3228
3574
  /// owner — it does not remove the owner. The inverse of `claimSovereignty`, and the reason
3229
3575
  /// sovereignty is not a one-way door.
@@ -3277,7 +3623,7 @@ type Engram =
3277
3623
  /// written, and only then does it await one notification per revoked agent. So a notification
3278
3624
  /// that fails leaves the agents revoked here regardless — a partial notify is not a partial
3279
3625
  /// revocation, which is the direction that matters for a panic button.
3280
- revokeAllAgents: () -> (Result_14);
3626
+ revokeAllAgents: () -> (Result_15);
3281
3627
  /// Owner-only panic button: revoke every connector bearer token at once. Returns how many.
3282
3628
  ///
3283
3629
  /// The THIRD independent surface — hosted connectors authenticate with bearer tokens, not with
@@ -3286,7 +3632,7 @@ type Engram =
3286
3632
  /// holding a live session.
3287
3633
  ///
3288
3634
  /// Tokens are re-issuable: revoking them is not permanent the way revoking an agent is.
3289
- revokeAllBearerTokens: () -> (Result_14);
3635
+ revokeAllBearerTokens: () -> (Result_15);
3290
3636
  /// ⟨0.16.0⟩ `removeAllGuardians` DELETED — test-only (L6), and verified NOT part of KILL-SWITCH's
3291
3637
  /// mass-revoke set. The destructive phase-07 suite iterates `removeGuardian` instead, so nothing
3292
3638
  /// loses a capability: what dies is a bulk spelling no runbook ever invoked.
@@ -3298,7 +3644,7 @@ type Engram =
3298
3644
  ///
3299
3645
  /// Unlike revoking an agent, this costs nothing permanently — an invite is a one-time code,
3300
3646
  /// so voiding it and minting a fresh one is the ordinary path.
3301
- revokeAllInvites: () -> (Result_14);
3647
+ revokeAllInvites: () -> (Result_15);
3302
3648
  /// Revoke a bearer token by its public tokenId. Idempotent.
3303
3649
  /// Subsequent /mcp requests using this token will be rejected.
3304
3650
  revokeBearerToken: (tokenId: text) -> (Result_2);
@@ -3325,6 +3671,32 @@ type Engram =
3325
3671
  /// agent on that record, so its standing is not the problem — the record's state is. An
3326
3672
  /// agent reading `#Refused` would go looking for a permission that was never missing.
3327
3673
  rotateAgentKeyHash: (newPublicKeyHash: text) -> (Result_2);
3674
+ /// Send money from this engram's wallet to the engram it was opened through — "up", and only up:
3675
+ /// the destination is always the parent engram's own default account, never an address the caller
3676
+ /// names. ANY amount (the owner's ruling "B"); the answer is the ledger's block index.
3677
+ ///
3678
+ /// WHO: the owner's key file or the sign-in, in an engram opened through another (the build's
3679
+ /// resolution L14: both may send — the key file's honest sweep needs it, and the sign-in may sweep
3680
+ /// too); refused to anyone else. In a first engram there is nothing above it, and it refuses with
3681
+ /// `#Conflict`. NOT freeze-gated: up is not out, so a payments freeze does not stop it.
3682
+ ///
3683
+ /// ORDER: the caller, then the parent from this engram's own birth record (`openedFrom`, no await),
3684
+ /// then ONE call to the registry — refused unless the registry shows the parent registered, active
3685
+ /// and not abandoned (`#Refused`; the registry unreachable is `#Unavailable`; nothing sent either
3686
+ /// way) — then ONE ledger transfer, the same per-token ledger as `ownerWithdraw`. Both calls are
3687
+ /// counted (ADR-0025), so near its freezing line this engram may be unable to send the registry
3688
+ /// call at all; it then answers `#Unavailable` and nothing moves.
3689
+ ///
3690
+ /// NO RE-CHECK between the two calls, deliberately: the parent can be abandoned in between, and the
3691
+ /// money then sits in an existing canister whose owner can still withdraw it. Guarding that window
3692
+ /// would need a third call and buys nothing the owner of the parent does not already have.
3693
+ ///
3694
+ /// NOT INCOME. The parent's track record is engagements, standing, seat-weeks and counts of use, and
3695
+ /// signature counts count signatures; nothing reads a ledger balance, and this method calls none of
3696
+ /// those writers (test/child-sign-in-wiring.test.ts rule 13). Written to the record as
3697
+ /// `wallet.sendToParent` (money class), with the amount, the token, the parent and the block.
3698
+ /// Named callers: the owner kit, signed by the key file; an owner console, signed in as the sign-in.
3699
+ sendToParent: (amount: TokenAmount) -> (Result_15);
3328
3700
  /// Append to a memory file against a PAID x402 session voucher — the write half of the paid rail,
3329
3701
  /// authorized by the voucher rather than by a role.
3330
3702
  /// ⟨2026-09-30, ic402 2.17.0⟩ Authorized by the payer's own call with the voucher: only the
@@ -3368,7 +3740,7 @@ type Engram =
3368
3740
  /// ⚠ RAW STORED BYTES, like `readMemoryBatch`. On a Private (encrypted) engram the content is
3369
3741
  /// CIPHERTEXT; the key-holding SDK decrypts it. A caller without the key gets bytes it cannot
3370
3742
  /// read, not an error.
3371
- sessionReadContext: (clientLabel: text) -> (Result_13);
3743
+ sessionReadContext: (clientLabel: text) -> (Result_14);
3372
3744
  /// Read one memory file against a PAID x402 session voucher. No role, no invite — the voucher is
3373
3745
  /// the authorization, which is what makes this the engram's one rail a stranger can pay to use.
3374
3746
  ///
@@ -3398,7 +3770,7 @@ type Engram =
3398
3770
  /// session must not be the side door: without this guard a stranger holding a fraction-of-a-
3399
3771
  /// cent voucher could read `secrets/*`.
3400
3772
  /// · Payments are frozen on this engram.
3401
- sessionReadMemory: (voucher: Voucher, path: text) -> (Result_12);
3773
+ sessionReadMemory: (voucher: Voucher, path: text) -> (Result_13);
3402
3774
  /// Configure action alerts: an https webhook that receives new chained-audit entries matching the
3403
3775
  /// enabled event classes (money / approvals / guardian / agentWrites), batched, at most one
3404
3776
  /// POST per minute. ⟨2026-10-29⟩ Delivered within seconds of the action (a 5 s batch window), and
@@ -3445,7 +3817,7 @@ type Engram =
3445
3817
  /// own, and this setter applies the number to every creator's set, so `prunedBackups` counts
3446
3818
  /// across all of them. "The write is the read" above went stale for a second phone, which never
3447
3819
  /// made the write: `getBackupRetention` is the read.
3448
- setBackupRetention: (dbType: text, maxBackups: nat) -> (Result_11);
3820
+ setBackupRetention: (dbType: text, maxBackups: nat) -> (Result_12);
3449
3821
  /// Override the caps for ONE caller — an agent this owner trusts more, or less, than the rest.
3450
3822
  setCallerSpendPolicy: (caller: principal, policy: SpendingPolicy) ->
3451
3823
  (Result_2);
@@ -3517,6 +3889,16 @@ type Engram =
3517
3889
  text;
3518
3890
  RetentionClassSpec;
3519
3891
  }) -> (Result_2);
3892
+ /// The SIGN-IN changes itself to `next` — "changeable only by itself". Immediate (a delay would need
3893
+ /// a third credential to cut it short). The key file is refused by name: it never names a sign-in,
3894
+ /// or a thief holding a copy would name themselves. A first engram refuses: its owner is its own
3895
+ /// sign-in. `next` must pass the door's rules and not be an agent or a guardian here. When this
3896
+ /// engram holds a sealed copy of the owner's key, `resealedBackup` is that copy re-sealed for `next`
3897
+ /// (the sign-in opens it and re-seals it client-side) and is stored in the same message, so the copy
3898
+ /// never names a sign-in that is not this engram's; with no copy held, none may be passed. Not
3899
+ /// blocked by a freeze: a freeze must not lock the sign-in out of itself.
3900
+ /// Named caller: an owner console, signed in as the sign-in ("change your sign-in").
3901
+ setOwnerSignIn: (next: principal, resealedBackup: opt blob) -> (Result_2);
3520
3902
  /// Owner-only: open or close the monetized read rail. When disabled (the default), sessionReadMemory
3521
3903
  /// fails closed for every voucher-bearer — selling the owner's memory is opt-in, not the default.
3522
3904
  ///
@@ -3547,6 +3929,13 @@ type Engram =
3547
3929
  /// call is a chained record entry (`metrics.setSeatWeeksReadEnabled`, the new and the old value), so
3548
3930
  /// when the read was on or off is part of the record. Anyone else is refused by name.
3549
3931
  setSeatWeeksReadEnabled: (enabled: bool) -> (Result_2);
3932
+ /// Change a listed seller's daily cap. A LOWER (or equal) cap applies at once and cancels a raise that
3933
+ /// was waiting; a HIGHER cap waits 24 hours, as a new seller does (the cap in force until then is the
3934
+ /// old one, and a second raise restarts the wait). Answers when the new cap applies. The sign-in only,
3935
+ /// in an engram opened through another; the owner in a first engram. A raise is refused while payments
3936
+ /// are frozen; a lowering is not. Unknown address `#NotFound`; a cap of 0 `#Invalid` (remove instead).
3937
+ /// Named callers: an owner console's seller list, as `addSeller`.
3938
+ setSellerCap: (payTo: text, perDayCapE6: nat) -> (Result_11);
3550
3939
  /// Set the most this engram may spend per day ACROSS EVERY CALLER — five agents, the owner and the
3551
3940
  /// marketplace together. `null` removes the ceiling. ⟨2026-09-28⟩
3552
3941
  /// ⟨CORRECTED 2026-09-29, review finding X-8: "spend" was too wide. The ceiling covers the x402
@@ -3588,6 +3977,10 @@ type Engram =
3588
3977
  /// The record entry `spend.setCeiling` carries the new AND the previous value, so a widening is
3589
3978
  /// distinguishable from a tightening afterwards — the reason `spend.setPolicy` records its limits.
3590
3979
  /// Not blocked by a payments freeze, like `setSpendPolicy`: setting a limit moves no money.
3980
+ /// ⟨2026-11-04, the agent-conversion build⟩ What counts against the ceiling: x402 payments, an agent's
3981
+ /// conversion of the engram's balance, and the key file's Convert in an engram opened through another
3982
+ /// (`getSpendCeiling`'s note). Removing the ceiling does NOT free agent conversions: they keep their own
3983
+ /// bound, one in any 24 hours (`agentConvertAtNs`).
3591
3984
  setSpendCeiling: (maxPerDay: opt nat) -> (Result_2);
3592
3985
  /// Set this engram's spending caps.
3593
3986
  ///
@@ -3643,6 +4036,14 @@ type Engram =
3643
4036
  /// ⟨0.16.0⟩ PERSISTS beside the market's `sysSignEip712` (census row 177, ruled). The owner does
3644
4037
  /// not lose the ability to sign because a marketplace gained it, and the two share every control
3645
4038
  /// below the caller gate.
4039
+ ///
4040
+ /// ⟨2026-11-02, the owner's ruling "1-4 all as you recommended" (the sign-in "approves trading keys")
4041
+ /// — the child build's stage 5⟩ In an engram opened through another, a type named
4042
+ /// `HyperliquidTransaction:ApproveAgent` (`Eip712Policy.childSignInOnlyToSign`) is signed by the
4043
+ /// sign-in alone: the key file is refused it by name, and the sign-in may sign it (as the owner, on
4044
+ /// the record). Every other type is the key file's to sign, as before. An access check beside the
4045
+ /// owner gate, keyed by the registered NAME, before any of `eip712SignFor`'s eight checks; a first
4046
+ /// engram is untouched (its owner is its own sign-in).
3646
4047
  signEip712: (typeId: blob, values: vec record {
3647
4048
  text;
3648
4049
  Eip712Value;
@@ -3733,6 +4134,15 @@ type Engram =
3733
4134
  /// disputes stay on the record. Like `removeGuardian`, it is not terminal: the owner may invite
3734
4135
  /// the same person again.
3735
4136
  stepDownAsGuardian: () -> (Result_2);
4137
+ /// The key file stores the sealed copy of its own key — once, right after the engram is opened,
4138
+ /// sealed by the owner kit for the sign-in named at birth. Refused in a first engram, when no
4139
+ /// sign-in is seated (nobody could open it), when a copy is already held (set-once: a thief holding
4140
+ /// the same file cannot overwrite the honest copy; a later sign-in's copy arrives through
4141
+ /// `setOwnerSignIn`'s re-seal or `acceptSignIn`), and for an empty or oversized blob
4142
+ /// (`OwnerSignIn.storeRefusal`). The engram stamps whom the copy is for from its own sign-in — the
4143
+ /// caller never names it. Not blocked by a freeze: storing a recovery path loosens nothing.
4144
+ /// Named caller: the owner kit, signed by the agent's lasting key, right after it opens the engram.
4145
+ storeKeyBackup: (ciphertext: blob) -> (Result_2);
3736
4146
  /// OWNER force-close, for a session the payer abandoned.
3737
4147
  ///
3738
4148
  /// ⟨R1b, ruled 2026-08-26: owner-gated, NO guardian.⟩ It moves someone else's money, and only ever
@@ -3906,6 +4316,49 @@ type Engram =
3906
4316
  paidThroughNs: opt int;
3907
4317
  scheduleVersion: opt text;
3908
4318
  }) -> (Result_2);
4319
+ /// ⟨2026-11-04, the owner's ruling "1 A": a marketplace sale is paid into the selling engram's own
4320
+ /// wallet, and the engram writes each sale to its record⟩ THE MARKET WRITING A SALE TO THIS ENGRAM'S
4321
+ /// RECORD, after it has paid this engram's own account (ckUSDC) or address (another chain). The
4322
+ /// money does not pass through here and nothing here moves any: a ledger account needs no running
4323
+ /// canister, so the sale is paid whatever state this engram is in, and this method only writes the
4324
+ /// line that says so — one `market.sale` row per sale, its details from `SaleNotice.details`.
4325
+ ///
4326
+ /// GATED TO THE CONFIGURED MARKET (`AccessControl.requireMarketSale`), the pointer the spawning
4327
+ /// registry set once (`sysSetMarketId`). Neither the owner nor an agent may write a sale row: a
4328
+ /// receipt an owner could write is a receipt an owner could forge.
4329
+ ///
4330
+ /// IDEMPOTENT ON THE RECEIPT ID. The market retries a notice it could not deliver (this engram out
4331
+ /// of compute, upgrading, stopped), and a retry of one that did land must learn it succeeded: a
4332
+ /// repeat answers `#Ok` and writes nothing — no row, no denial row (`sysNotifyWalletActivity`'s
4333
+ /// contract). The receipt ids live in `saleReceiptsStable`.
4334
+ ///
4335
+ /// IT AWAITS NOTHING, deliberately, and test/market-route-wiring.test.ts rule E3 holds that: no
4336
+ /// outgoing call means nothing to count under wiring rule 20, and NO WAKE DOOR — a sale brings
4337
+ /// dollars, not compute, so a paused engram's wake would find no room on every engram that is
4338
+ /// actually paused (the design's question 3, defaulted "wakes nothing unless the owner objects").
4339
+ ///
4340
+ /// NOT GATED ON a guardian's payment freeze (that stops this engram's own signing — money out;
4341
+ /// `sysRecordFeeEvent` is not freeze-gated either), on `pauseWrites` (memory writes), or on the
4342
+ /// owner's custody state. A receipt an owner could block is a receipt an owner could hide.
4343
+ ///
4344
+ /// It also stamps `walletActivatedAt` ("market-sale"): money landing in this engram's account IS
4345
+ /// the wallet-bearing event, and it covers services, which the market's listing notice never did.
4346
+ /// The listing notice (`sysNotifyWalletActivity`) stays, as ruled 2026-08-20; whether to retire it
4347
+ /// is the owner's question.
4348
+ ///
4349
+ /// ⟨2026-11-04, the owner's ruling "A", beside the gate paragraph above⟩ NO MARKET SET YET IS "NOT
4350
+ /// YET", NOT A REFUSAL. With `marketId` null the gate's refusal is answered `#Unavailable`, and the
4351
+ /// market PARKS the notice (it drops a sale's line on any other `#Err` at once — the defect this
4352
+ /// closes: the money landed and the line was lost for good). `marketId` is not final: the registry
4353
+ /// sets it later (`sysSetMarketId`), and then `retrySaleNotices` or the seller's next
4354
+ /// `registerSeller` writes the line; the market's 30-day age cap ends the wait. That arm writes NO
4355
+ /// `sysRecordSale.denied` row: nothing was denied, and `retrySaleNotices` is open to any caller, so a
4356
+ /// row per press would be spam on the owner's read log. A caller that is not the configured market,
4357
+ /// once one is set, is still `#Refused` with its row, unchanged. WHAT WOULD MAKE THIS WRONG: a
4358
+ /// `marketId` that can be set to null on purpose (a market retired from an engram) — then null would
4359
+ /// mean "never", and parking for 30 days would hold a line nobody can write.
4360
+ /// Witness: test/market-route/sale-route.test.ts S7 and record-row.test.ts R3.
4361
+ sysRecordSale: (sale: SaleNotice) -> (Result_2);
3909
4362
  /// Give back what a paid security update advanced this engram and the install did not use.
3910
4363
  ///
3911
4364
  /// CALLER: the registry that spawned this engram, right after it installed a security update it
@@ -4007,6 +4460,10 @@ type Engram =
4007
4460
  ///
4008
4461
  /// That is what "signatures only" means in code, and it is why this method needs no new authority
4009
4462
  /// model: an unregistered typeId is refused for the market exactly as it is for the owner.
4463
+ ///
4464
+ /// ⟨2026-11-02, the child build's stage 5⟩ In an engram opened through another, approving a trading
4465
+ /// key (`HyperliquidTransaction:ApproveAgent`) is refused to the market (`#Refused`): it is signed by
4466
+ /// that engram's sign-in alone, through `signEip712`.
4010
4467
  sysSignEip712: (typeId: blob, values: vec record {
4011
4468
  text;
4012
4469
  Eip712Value;
@@ -4217,6 +4674,14 @@ type CycleSnapshot =
4217
4674
  self;
4218
4675
  };
4219
4676
  };
4677
+ type Conversion =
4678
+ record {
4679
+ amountE6: nat;
4680
+ cyclesAdded: nat;
4681
+ daysLeftBefore: opt nat;
4682
+ finishedBeforeRemovalSeen: bool;
4683
+ token: text;
4684
+ };
4220
4685
  type ControlHandover =
4221
4686
  variant {
4222
4687
  MovedByEngram;
@@ -4283,7 +4748,7 @@ type ChildAllowanceRow =
4283
4748
  type CheckpointPage =
4284
4749
  record {
4285
4750
  firstAvailableSeq: nat;
4286
- page: Page_18;
4751
+ page: Page_19;
4287
4752
  scannedThroughSeq: nat;
4288
4753
  };
4289
4754
  type CertifiedAuditHead =
@@ -4508,7 +4973,7 @@ type AgentStatus =
4508
4973
  };
4509
4974
  type AgentSpendToday =
4510
4975
  record {
4511
- agents: Page_23;
4976
+ agents: Page_24;
4512
4977
  dayStartNs: int;
4513
4978
  };
4514
4979
  type AgentSpendRow =
@@ -4574,6 +5039,13 @@ type AgentEndReason =
4574
5039
  Reset;
4575
5040
  Resigned;
4576
5041
  };
5042
+ type AgentConvertRule =
5043
+ record {
5044
+ belowDays: nat;
5045
+ maxPerCallE6: nat;
5046
+ minPerCallE6: nat;
5047
+ spacingSeconds: nat;
5048
+ };
4577
5049
  type AgentCard =
4578
5050
  record {
4579
5051
  description: text;
@@ -4626,5 +5098,8 @@ type About =
4626
5098
  service : (initArgs: opt
4627
5099
  record {
4628
5100
  owner: opt principal;
5101
+ ownerSignIn: opt principal;
5102
+ parent: opt principal;
5103
+ recoveredAtNs: opt int;
4629
5104
  registry: opt principal;
4630
5105
  }) -> Engram