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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,6 +47,12 @@ export interface AgentCard {
47
47
  description: string;
48
48
  services: Array<ServiceEntry>;
49
49
  }
50
+ export interface AgentConvertRule {
51
+ spacingSeconds: bigint;
52
+ minPerCallE6: bigint;
53
+ maxPerCallE6: bigint;
54
+ belowDays: bigint;
55
+ }
50
56
  export type AgentEndReason =
51
57
  | { Resigned: null }
52
58
  | { OwnerRevoked: null }
@@ -261,6 +267,10 @@ export interface CallerSignatureCount {
261
267
  root: [] | [Principal];
262
268
  caller: Principal;
263
269
  }
270
+ export interface CanonicalRead {
271
+ entry: Entry;
272
+ readPath: string;
273
+ }
264
274
  export interface CertifiedAuditHead {
265
275
  total: bigint;
266
276
  certificate: [] | [Uint8Array | number[]];
@@ -319,6 +329,13 @@ export interface CondenseResult {
319
329
  }
320
330
  export type ControlHandover =
321
331
  { MovedByRegistry: null } | { NotHeldHere: null } | { MovedByEngram: null };
332
+ export interface Conversion {
333
+ token: string;
334
+ daysLeftBefore: [] | [bigint];
335
+ amountE6: bigint;
336
+ cyclesAdded: bigint;
337
+ finishedBeforeRemovalSeen: boolean;
338
+ }
322
339
  export interface CycleSnapshot {
323
340
  seq: bigint;
324
341
  source: { balance: null } | { self: null };
@@ -379,6 +396,7 @@ export type Eip712Value =
379
396
  | { address: string }
380
397
  | { fixedBytes: Uint8Array | number[] }
381
398
  | { bytes: Uint8Array | number[] };
399
+ export type End = { at: bigint } | { all: null };
382
400
  export interface Engram {
383
401
  /**
384
402
  * / ⟨0.16.0⟩ `about()` — the ONE public projection, replacing `status()` and absorbing `metrics()`.
@@ -413,7 +431,7 @@ export interface Engram {
413
431
  * / test/key-replacement.test.mo runs it; this body names no roster gate, because the caller holds
414
432
  * / no role here until the move.
415
433
  */
416
- acceptAgentKeyNomination: ActorMethod<[Principal], Result_89>;
434
+ acceptAgentKeyNomination: ActorMethod<[Principal], Result_94>;
417
435
  /**
418
436
  * / The person the owner asked again ACCEPTS: they become this engram's sign-in, and the sealed copy
419
437
  * / that came with the ask becomes the engram's (sealed for them). Until this call they have no power
@@ -497,7 +515,7 @@ export interface Engram {
497
515
  ackIrrevocable: boolean;
498
516
  },
499
517
  ],
500
- Result_87
518
+ Result_92
501
519
  >;
502
520
  /**
503
521
  * / ⟨0.16.0, L1⟩ THE ROLE-CONFLICT ARM, and why three refusals here are not the same refusal.
@@ -533,6 +551,31 @@ export interface Engram {
533
551
  * / opened through another), and the owner kit.
534
552
  */
535
553
  addSeller: ActorMethod<[string, bigint, boolean], Result_11>;
554
+ /**
555
+ * / AN AGENT CONVERTS THE ENGRAM'S BALANCE INTO COMPUTE, under the runway rule ⟨2026-11-04, the owner's
556
+ * / rulings of 2026-11-01, "2 A" and "agree"; `AgentConvert.mo` holds the rule and says why each number⟩.
557
+ * /
558
+ * / CALLER: a paired agent whose STORED grant holds the scope "wallet.convert" (`AgentConvert.SCOPE`),
559
+ * / which only the owner adds (`createAgentInvite` / `setAgentPermissions`); off by default, and no HTTP
560
+ * / connector token ever carries it (`OAuth.scopesToPermissions`). The OWNER's role is refused by name —
561
+ * / the owner converts with `convertEarningsToCycles`.
562
+ * /
563
+ * / THE RULE: converts only while this engram has under 30 days of compute left by its own reading; at
564
+ * / least 0.50 and at most 2.00 (or the owner's own per-call cap if lower); at most one conversion under
565
+ * / the rule in any rolling 24 hours (`agentConvertAtNs`, which holds with the engram-wide ceiling
566
+ * / removed); counted against that ceiling when one is set; refused under ANY payment freeze (ruled), and
567
+ * / while another of the engram's own calls is out (its balance reads low then). `amountE6 = null` converts
568
+ * / as much as allowed: the smaller of the cap and what the wallet holds less the ledger fee — the wallet
569
+ * / is READ before anything moves, and a wallet that cannot fund 0.50 is refused by name.
570
+ * /
571
+ * / STOPPED MID-WAY: if the agent is removed, leaves, loses the grant, payments are frozen or the engram is
572
+ * / reset while it waits on the ledger or the cashier's deposit address, nothing moves; after the money
573
+ * / reached the deposit, it is sent back to the wallet less one ledger fee (or held at the biller for the
574
+ * / owner's next Convert). THE RESIDUAL, stated: a removal landing DURING the cashier's own conversion call
575
+ * / cannot stop that call — it finishes, and the reply (`finishedBeforeRemovalSeen`) and the record row say
576
+ * / so. One inter-canister call, bounded by one cap.
577
+ */
578
+ agentConvertBalance: ActorMethod<[string, [] | [bigint]], Result_90>;
536
579
  /**
537
580
  * / Returns the write RECEIPT, not just the version.
538
581
  * /
@@ -550,6 +593,16 @@ export interface Engram {
550
593
  * / subset rule, so it can only ride an interface break; this release is one.
551
594
  */
552
595
  appendMemory: ActorMethod<[string, Uint8Array | number[], [] | [MemorySource]], Result>;
596
+ /**
597
+ * / Append plaintext with a newline when the live file already has content. The separator and
598
+ * / write are decided in one message, without requiring permission to read the existing file.
599
+ * / Returns the write receipt and exact appended bytes so the writer can rebuild its evidence.
600
+ * / Refuses encrypted memory; key-holding clients send their framed bytes through appendMemory.
601
+ * / Same append permission, path rules, rate limit and writes-pause as appendMemory. No await.
602
+ * / Callers: EngramClient.appendMemory for plaintext memory, and through it the local MCP server's
603
+ * / append tool; the hosted MCP append calls the same private operation.
604
+ */
605
+ appendMemoryText: ActorMethod<[string, string, [] | [MemorySource]], Result_16>;
553
606
  /**
554
607
  * / Replace the retained log prefix through `toSeq` with a single checkpoint.
555
608
  * /
@@ -567,7 +620,7 @@ export interface Engram {
567
620
  * / is exactly what a guardian pause exists to hold. No action alert is raised: the operation is
568
621
  * / owner-initiated, owner-only, and already chained into the audit log.
569
622
  */
570
- applyCondense: ActorMethod<[bigint], Result_85>;
623
+ applyCondense: ActorMethod<[bigint], Result_89>;
571
624
  /**
572
625
  * / Owner-only: activate a guardian who has registered against an invite.
573
626
  * /
@@ -659,7 +712,7 @@ export interface Engram {
659
712
  * /
660
713
  * / The write half also refuses while writes are PAUSED.
661
714
  */
662
- backupInit: ActorMethod<[string, BackupType, [] | [string], string, [] | [string]], Result_55>;
715
+ backupInit: ActorMethod<[string, BackupType, [] | [string], string, [] | [string]], Result_58>;
663
716
  /**
664
717
  * / Read one chunk of a finalized backup, by index.
665
718
  * /
@@ -667,7 +720,7 @@ export interface Engram {
667
720
  * / `canAppendMemory`. Holding one says nothing about the other, deliberately: taking a backup and
668
721
  * / carrying it away are different authorities.
669
722
  */
670
- backupPullChunk: ActorMethod<[string, bigint], Result_72>;
723
+ backupPullChunk: ActorMethod<[string, bigint], Result_76>;
671
724
  backupPushChunk: ActorMethod<[string, bigint, Uint8Array | number[]], Result_2>;
672
725
  /**
673
726
  * / The OWNER cancels an agent's pending key nomination; the agent keeps its current key. Refused
@@ -704,6 +757,20 @@ export interface Engram {
704
757
  * / ⟨2026-10-02⟩ The second parameter is NAMED `amountE6` now, as the census row above rules the
705
758
  * / pair — e6 base units of the token named first. A name only: Candid passes arguments by
706
759
  * / position, so nothing on the wire moved.
760
+ * /
761
+ * / ⟨2026-11-04, the agent-conversion build — the owner's "2 A" and "agree"⟩ The body moved whole into
762
+ * / `runConversion`, which an agent's `agentConvertBalance` shares; this method keeps its name, its
763
+ * / signature and its bare `cyclesAdded` reply. Under "2 A" it converts the engram's BALANCE (what the
764
+ * / owner put in and what it earned are not told apart); the name is the wire's and stays. A FIRST
765
+ * / engram's owner Convert is unchanged: not counted, not freeze-gated, not runway-bound, not pre-read,
766
+ * / 10.00 / 5 min. In an engram OPENED THROUGH ANOTHER the key file's Convert runs the agent rule too
767
+ * / (ruled "agree", question 3: under 30 days, 0.50–2.00, once in 24 hours shared with the agents, the
768
+ * / wallet read first), keeping its own freeze gate (L18: a guardian's freeze only).
769
+ * / ⟨2026-11-04, review fix⟩ SHARED with an agent's conversion: the in-flight latch only (one deposit
770
+ * / account, one pending marker — one conversion at a time, whoever asked), so while an agent's conversion
771
+ * / is between its deposit and its landing this door answers "another conversion is still in flight". NOT
772
+ * / shared: the 5-minute cooldown (an agent's landing does not move it) and the latch during an agent's
773
+ * / wallet read (nothing is held while it reads).
707
774
  */
708
775
  convertEarningsToCycles: ActorMethod<[string, bigint], Result_15>;
709
776
  /**
@@ -735,7 +802,7 @@ export interface Engram {
735
802
  * / ⟨2026-10-29, review F7⟩ A name the owner gives meets the rule `renameAgent` applies: a line break
736
803
  * / or another control character is `#Invalid` (`People.nameRefusal`), as a rename to it would be.
737
804
  */
738
- createAgentInvite: ActorMethod<[string, AgentPermissions], Result_55>;
805
+ createAgentInvite: ActorMethod<[string, AgentPermissions], Result_58>;
739
806
  /**
740
807
  * / Owner-only: mint an invite for a GUARDIAN — an independent check on agents, not a
741
808
  * / co-owner and not a recovery agent.
@@ -759,7 +826,7 @@ export interface Engram {
759
826
  * / So an invite that fails to redeem for that reason is not a bad code. The rule exists because
760
827
  * / a check must be independent of the thing it checks.
761
828
  */
762
- createGuardianInvite: ActorMethod<[string, GuardianPermissions], Result_55>;
829
+ createGuardianInvite: ActorMethod<[string, GuardianPermissions], Result_58>;
763
830
  /**
764
831
  * / The sign-in GIVES ITSELF UP, or the person the owner asked again says no. ⟨the owner's ruling "1
765
832
  * / yes, but the child can ask again" — the child build's Challenge C3.1: whoever the kit names cannot
@@ -842,7 +909,7 @@ export interface Engram {
842
909
  * / situation rather than a safety measure. It IS gated on requireMemoryAttached: a store that
843
910
  * / failed its integrity check must not attest anything it cannot vouch for.
844
911
  */
845
- exportMemoryRange: ActorMethod<[bigint, bigint, [] | [Principal]], Result_84>;
912
+ exportMemoryRange: ActorMethod<[bigint, bigint, [] | [Principal]], Result_88>;
846
913
  /**
847
914
  * / ⟨0.16.0, L2.2 — renamed from `guardianFreezePayments`⟩ The prefix LIED about who may call it.
848
915
  * / The gate is `requireOwnerOrGuardian`, and an owner freezing their own payments is the ordinary
@@ -868,6 +935,10 @@ export interface Engram {
868
935
  * / · `convertEarningsToCycles` — the owner's OWN earnings becoming their OWN engram's fuel. A
869
936
  * / frozen engram still burns cycles, so freezing this would let a brake starve the thing it
870
937
  * / is protecting. Owner-only, capped per call, and it moves nothing outward.
938
+ * / ⟨2026-11-04, the agent-conversion build — ruled "agree", question 2⟩ An AGENT's conversion
939
+ * / (`agentConvertBalance`) IS frozen, by any freeze — the owner's own included — before it starts and
940
+ * / again after each await. The owner's own Convert in a first engram stays as above; in an engram
941
+ * / opened through another it stops under a guardian's freeze only (L18).
871
942
  * / · `approveRequest` — an approval is not a spend. The spend it authorises goes through
872
943
  * / `x402SignFor`, which IS frozen, so an approval granted during a freeze simply waits.
873
944
  * / · `transferOwnership` — ownership is not a payment, and a guardian's PAYMENTS brake is not
@@ -892,7 +963,15 @@ export interface Engram {
892
963
  * / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
893
964
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
894
965
  */
895
- getActionAlertStatus: ActorMethod<[], Result_73>;
966
+ getActionAlertStatus: ActorMethod<[], Result_77>;
967
+ /**
968
+ * / The agent-conversion rule's numbers.
969
+ * / PUBLIC: the class of `getTopUpLimits` — a policy, nobody's data. ⟨2026-11-04, the market-route
970
+ * / build: the marker's colon was missing, so the deployment's PUBLIC-rationale gate read the method as
971
+ * / unmarked; the reason itself is unchanged.⟩
972
+ * / The cap an agent meets is `min(maxPerCallE6, getTopUpLimits().maxCkusdcE6s)`.
973
+ */
974
+ getAgentConvertRule: ActorMethod<[], AgentConvertRule>;
896
975
  /**
897
976
  * / Agents need to know what they may revise, so they can read it too. Whole-value config, same
898
977
  * / carve-out as getProtectedPaths — and kept a SEPARATE method from it deliberately (L2.2): a
@@ -902,7 +981,7 @@ export interface Engram {
902
981
  * / Refusal reason preserved from the trap: a grant is a power, and its absence and its
903
982
  * / concealment are different facts.
904
983
  */
905
- getAgentRevisablePaths: ActorMethod<[], Result_66>;
984
+ getAgentRevisablePaths: ActorMethod<[], Result_69>;
906
985
  /**
907
986
  * / OWNER-ONLY: every engagement's seat weeks on this engram, with the agent's root — the day it
908
987
  * / paired, the days of its first and last payment signature, a 64-week map whose bit 0 is the week
@@ -917,7 +996,7 @@ export interface Engram {
917
996
  * / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
918
997
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
919
998
  */
920
- getAgentSeatWeeks: ActorMethod<[bigint, bigint], Result_82>;
999
+ getAgentSeatWeeks: ActorMethod<[bigint, bigint], Result_86>;
921
1000
  /**
922
1001
  * / Owner: everything written into this engram by someone other than the owner since the last
923
1002
  * / markAgentWritesReviewed() — agent appends/revisions AND paid-session appends (see
@@ -930,7 +1009,7 @@ export interface Engram {
930
1009
  * / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
931
1010
  * / engram is unchanged.
932
1011
  */
933
- getAgentWriteReview: ActorMethod<[], Result_81>;
1012
+ getAgentWriteReview: ActorMethod<[], Result_85>;
934
1013
  /**
935
1014
  * / Why anchoring is or is not advancing. PUBLIC: ungated on purpose — detecting a stalled
936
1015
  * / engram is the point, a gated read would fail-to-empty and hand a third party fabricated zeros,
@@ -953,7 +1032,7 @@ export interface Engram {
953
1032
  * / was signed rather than asserted.
954
1033
  */
955
1034
  getAuditHead: ActorMethod<[], AuditHead>;
956
- getBackupMetadata: ActorMethod<[string], Result_80>;
1035
+ getBackupMetadata: ActorMethod<[string], Result_84>;
957
1036
  /**
958
1037
  * / ⟨2026-10-21, the owner's round-11 answer m: a backup-retention getter⟩ How many backups of
959
1038
  * / `dbType` each creator keeps, and whether that is the default — the read `setBackupRetention`
@@ -966,7 +1045,7 @@ export interface Engram {
966
1045
  * / the anonymous caller. A kind the setter would refuse is `#Invalid` here too
967
1046
  * / (`Backup.getRetention`). Records nothing (a query).
968
1047
  */
969
- getBackupRetention: ActorMethod<[string], Result_79>;
1048
+ getBackupRetention: ActorMethod<[string], Result_83>;
970
1049
  /**
971
1050
  * / The cashier this engram recognises as its rent biller — `null` until the registry pushes one.
972
1051
  * /
@@ -987,7 +1066,7 @@ export interface Engram {
987
1066
  * / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
988
1067
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
989
1068
  */
990
- getBirthChain: ActorMethod<[], Result_78>;
1069
+ getBirthChain: ActorMethod<[], Result_82>;
991
1070
  /**
992
1071
  * / ⟨2026-10-21, the owner's round-11 answer d⟩ Each brake: on or off, and while on, who pulled it
993
1072
  * / LAST (their key and whether as owner or guardian), since when, and the reason they gave — the
@@ -998,7 +1077,7 @@ export interface Engram {
998
1077
  * / is null for a brake that is off, and for one carried on across the upgrade that added this
999
1078
  * / read (who pulled it was not recorded then) — never a guessed pull.
1000
1079
  */
1001
- getBrakes: ActorMethod<[], Result_77>;
1080
+ getBrakes: ActorMethod<[], Result_81>;
1002
1081
  /**
1003
1082
  * / ⟨0.16.0, L9/L10 — census row⟩ `Wire.CertifiedAuditHead`, not an anonymous record. The
1004
1083
  * / registry, market and cashier already served the shared type; the engram — the canister that
@@ -1025,7 +1104,7 @@ export interface Engram {
1025
1104
  * / recorded nothing while reading as if it did. The refusal is loud in the reply instead. WHAT
1026
1105
  * / WOULD MAKE THIS WRONG: a reason to record who asked — then this becomes an update that says so.
1027
1106
  */
1028
- getChildAllowance: ActorMethod<[Principal], Result_76>;
1107
+ getChildAllowance: ActorMethod<[Principal], Result_80>;
1029
1108
  /**
1030
1109
  * / Owner-only, Billing-class: what opening an engram costs this engram, the balance below which an
1031
1110
  * / agent's request is refused, the balance now, and every agent's allowance. The console's cost
@@ -1033,7 +1112,7 @@ export interface Engram {
1033
1112
  * / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1034
1113
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1035
1114
  */
1036
- getChildOpening: ActorMethod<[], Result_75>;
1115
+ getChildOpening: ActorMethod<[], Result_79>;
1037
1116
  /**
1038
1117
  * / Derive the key that opens the sealed copy, encrypted under the caller's transport public key —
1039
1118
  * / for the SIGN-IN alone (the combinator's `#ownerSignIn`; the key file is refused by name: only the
@@ -1053,7 +1132,7 @@ export interface Engram {
1053
1132
  * / Named callers: an owner console signed in as the sign-in (the browser's recovery), and the owner
1054
1133
  * / kit's `--recover-key` signed by a key-file sign-in.
1055
1134
  */
1056
- getEncryptedKeyBackupKey: ActorMethod<[Uint8Array | number[]], Result_72>;
1135
+ getEncryptedKeyBackupKey: ActorMethod<[Uint8Array | number[]], Result_76>;
1057
1136
  /**
1058
1137
  * / Derive the shared memory-encryption key, encrypted under the caller's transport
1059
1138
  * / public key. Gated to owner + read-agents (the same principals allowed to read
@@ -1079,7 +1158,7 @@ export interface Engram {
1079
1158
  * / cost. Stated here because L7 requires the reason be readable from the interface rather than
1080
1159
  * / inferred by opening the body — which is exactly what had to happen to write this line.
1081
1160
  */
1082
- getEncryptedMemoryKey: ActorMethod<[[] | [bigint], Uint8Array | number[]], Result_72>;
1161
+ getEncryptedMemoryKey: ActorMethod<[[] | [bigint], Uint8Array | number[]], Result_76>;
1083
1162
  /**
1084
1163
  * / ⟨0.16.0, owner ruling 2026-08-20 — option (a)⟩ `x402Support` REPORTS THE RAIL, not a constant.
1085
1164
  * /
@@ -1178,7 +1257,7 @@ export interface Engram {
1178
1257
  * / `#Err`, never a record carrying an empty string (ic402's `getEvmAddress` answers `""` on a
1179
1258
  * / failed derivation — that is fail-to-empty on a money surface, and it stops here).
1180
1259
  */
1181
- getEvmAddress: ActorMethod<[], Result_74>;
1260
+ getEvmAddress: ActorMethod<[], Result_78>;
1182
1261
  /**
1183
1262
  * / The owner's OWN EVM address, if they registered one — distinct from `getEvmAddress`, which is
1184
1263
  * / the address this canister derives for itself.
@@ -1200,7 +1279,7 @@ export interface Engram {
1200
1279
  * / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
1201
1280
  * / engram is unchanged.
1202
1281
  */
1203
- getEvmSignerAddress: ActorMethod<[], Result_55>;
1282
+ getEvmSignerAddress: ActorMethod<[], Result_58>;
1204
1283
  /**
1205
1284
  * / PUBLIC: where this chain begins, for the stranger deciding whether to trust it.
1206
1285
  * /
@@ -1213,7 +1292,7 @@ export interface Engram {
1213
1292
  /**
1214
1293
  * / A guardian's own channel status (their URL is their secret — each guardian sees only theirs).
1215
1294
  */
1216
- getGuardianAlertStatus: ActorMethod<[], Result_73>;
1295
+ getGuardianAlertStatus: ActorMethod<[], Result_77>;
1217
1296
  /**
1218
1297
  * / The sealed copy itself — opaque bytes only the sign-in can open. Readable by the sign-in (it
1219
1298
  * / opens them with the key `getEncryptedKeyBackupKey` derives for it) and by the key file, which
@@ -1225,7 +1304,7 @@ export interface Engram {
1225
1304
  * / Named callers: the owner kit (`--recover-key`, and its check after sealing), and an owner console
1226
1305
  * / signed in as the sign-in (the browser's recovery).
1227
1306
  */
1228
- getKeyBackupCiphertext: ActorMethod<[], Result_72>;
1307
+ getKeyBackupCiphertext: ActorMethod<[], Result_76>;
1229
1308
  /**
1230
1309
  * / Whether this engram holds a sealed copy of its owner's key, for whom, since when, whether it is
1231
1310
  * / sealed for the sign-in seated now, and whether a copy waits with an ask (`Types.KeyBackupStatus`).
@@ -1236,7 +1315,7 @@ export interface Engram {
1236
1315
  * / Named callers: the owner kit after it opens an engram (it prints whether the copy is stored), and
1237
1316
  * / an owner console showing an engram opened through another (whether recovery can work).
1238
1317
  */
1239
- getKeyBackupStatus: ActorMethod<[], Result_71>;
1318
+ getKeyBackupStatus: ActorMethod<[], Result_75>;
1240
1319
  /**
1241
1320
  * / BLS verification key under which the owner kit seals the backup (`IbeCiphertext.encrypt` to the
1242
1321
  * / sign-in's principal) and the opener verifies the derived key. Served on-canister so the kit never
@@ -1285,7 +1364,7 @@ export interface Engram {
1285
1364
  * / never renumbered: the next page starts at the last version returned plus one. Defaults
1286
1365
  * / return the whole history of any file a pre-FD engram could have held.
1287
1366
  */
1288
- getMemoryHistory: ActorMethod<[string, [] | [bigint], [] | [bigint]], Result_70>;
1367
+ getMemoryHistory: ActorMethod<[string, [] | [bigint], [] | [bigint]], Result_74>;
1289
1368
  /**
1290
1369
  * / PUBLIC: the epoch alone, and deliberately nothing else (rotation study D4). A `rotatedAt[]`
1291
1370
  * / history would be a public, fleet-enumerable feed of when each owner terminated a trust
@@ -1334,7 +1413,7 @@ export interface Engram {
1334
1413
  * / forever" — a claim about what this engram will DESTROY — and an empty guard list reads as
1335
1414
  * / "nothing is held back".
1336
1415
  */
1337
- getMemoryRetentionPolicy: ActorMethod<[], Result_69>;
1416
+ getMemoryRetentionPolicy: ActorMethod<[], Result_73>;
1338
1417
  /**
1339
1418
  * / The metrics reader this engram answers — `null` until the spawning registry names one.
1340
1419
  * /
@@ -1351,7 +1430,7 @@ export interface Engram {
1351
1430
  * / a fact about the caller, told to the caller. There is nothing to leak by omission — which is
1352
1431
  * / the test the #NotFound arm sets.
1353
1432
  */
1354
- getMyGuardianStatus: ActorMethod<[], Result_18>;
1433
+ getMyGuardianStatus: ActorMethod<[], Result_19>;
1355
1434
  /**
1356
1435
  * / ⟨0.16.0, NEW⟩ The gated half of the status() split.
1357
1436
  * /
@@ -1363,7 +1442,7 @@ export interface Engram {
1363
1442
  * / client (rule 4) and bought a masked answer nobody had asked for — the census could not even
1364
1443
  * / find a consumer that read the masked `0`. Behind a gate there is nobody to mask it from.
1365
1444
  */
1366
- getOwnerConsole: ActorMethod<[], Result_68>;
1445
+ getOwnerConsole: ActorMethod<[], Result_72>;
1367
1446
  /**
1368
1447
  * / The engram's sign-in, as `Types.OwnerSignInView` describes it: whether this engram was opened
1369
1448
  * / through another, who its sign-in is, whether the caller is it, and any decline or waiting ask.
@@ -1374,7 +1453,14 @@ export interface Engram {
1374
1453
  * / Named callers: an owner console showing an engram opened through another (who signs in, and a
1375
1454
  * / waiting ask with Accept and Decline), and the owner kit after it opens one.
1376
1455
  */
1377
- getOwnerSignIn: ActorMethod<[], Result_67>;
1456
+ getOwnerSignIn: ActorMethod<[], Result_71>;
1457
+ /**
1458
+ * / Read the four profile fields in one bounded batch. Raw per-field results preserve SDK
1459
+ * / decryption and first-failure ordering; only an explicit NotFound means an unset field.
1460
+ * / Query reads retain existing permission and owner visibility, without changing read counts.
1461
+ * / Callers: EngramClient.getProfile (ProfileManager.getProfile, the local MCP profile tool).
1462
+ */
1463
+ getProfile: ActorMethod<[], Result_70>;
1378
1464
  /**
1379
1465
  * / Owner + agents only (agents need it to avoid writing protected paths).
1380
1466
  * /
@@ -1388,7 +1474,7 @@ export interface Engram {
1388
1474
  * / writing one — so a fabricated empty here does not merely misinform, it invites the write the
1389
1475
  * / list exists to prevent.
1390
1476
  */
1391
- getProtectedPaths: ActorMethod<[], Result_66>;
1477
+ getProtectedPaths: ActorMethod<[], Result_69>;
1392
1478
  /**
1393
1479
  * / What an approval card shows beside a payment to `payTo` (`Types.RecipientHistory`): whether an x402
1394
1480
  * / signature from this engram has paid it before and since when, whether it is a listed seller and
@@ -1401,7 +1487,7 @@ export interface Engram {
1401
1487
  * / ⟨2026-11-03, the pre-gate fixes⟩ And when it was LAST paid (`lastPaidAtNs`; null when never).
1402
1488
  * / Named callers: an owner console's approval card for a payment request.
1403
1489
  */
1404
- getRecipientHistory: ActorMethod<[string], Result_65>;
1490
+ getRecipientHistory: ActorMethod<[string], Result_68>;
1405
1491
  /**
1406
1492
  * / Whether the metrics reader's read is answered — `true` from birth.
1407
1493
  * /
@@ -1419,7 +1505,7 @@ export interface Engram {
1419
1505
  * / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1420
1506
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1421
1507
  */
1422
- getSigningFloor: ActorMethod<[], Result_64>;
1508
+ getSigningFloor: ActorMethod<[], Result_67>;
1423
1509
  /**
1424
1510
  * / The registry that spawned this engram, if it recorded one.
1425
1511
  * /
@@ -1434,6 +1520,10 @@ export interface Engram {
1434
1520
  * / caller. ⟨2026-09-28, the owner's decision to add the ceiling⟩
1435
1521
  * / ⟨CORRECTED 2026-09-29, review finding X-8: "spent" means signed in x402 payments; typed-data
1436
1522
  * / and the engram's registration signatures are not counted here — see `setSpendCeiling`.⟩
1523
+ * / ⟨CORRECTED 2026-11-04, the agent-conversion build, beside the note above⟩ …and, since 2026-11, an
1524
+ * / agent's conversion of the engram's balance into compute (`agentConvertBalance`, in a first engram too);
1525
+ * / in an engram opened through another the key file's Convert as well (since 2026-11-02). Both are reserved
1526
+ * / before their first await and given back when nothing left the wallet.
1437
1527
  * /
1438
1528
  * / OWNER-ONLY, for the reason `getSpendPolicy` is: the limits are the owner's custody
1439
1529
  * / configuration, and the engram-wide total would also tell one agent how much the others spent.
@@ -1442,7 +1532,7 @@ export interface Engram {
1442
1532
  * / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1443
1533
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1444
1534
  */
1445
- getSpendCeiling: ActorMethod<[], Result_63>;
1535
+ getSpendCeiling: ActorMethod<[], Result_66>;
1446
1536
  /**
1447
1537
  * / Read the caps in force for a caller.
1448
1538
  * /
@@ -1461,8 +1551,8 @@ export interface Engram {
1461
1551
  * / refusal itself is now the combinator's (`#Refused getSpendPolicy: …`, `requireOwner`'s words), and
1462
1552
  * / an engram with no owner yet is refused the same way rather than answered `#Conflict`.
1463
1553
  */
1464
- getSpendPolicy: ActorMethod<[[] | [Principal]], Result_62>;
1465
- getStorageStats: ActorMethod<[], Result_61>;
1554
+ getSpendPolicy: ActorMethod<[[] | [Principal]], Result_65>;
1555
+ getStorageStats: ActorMethod<[], Result_64>;
1466
1556
  /**
1467
1557
  * / Timer arm-state. PUBLIC and deliberately so: these timers are self-arming to save cycles,
1468
1558
  * / and an optimisation nobody can verify is an optimisation nobody should trust. Cheap to read,
@@ -1547,14 +1637,25 @@ export interface Engram {
1547
1637
  * / UPDATE, marked per L7: it awaits three ICRC-1 ledgers". It was marked in prose and invisible
1548
1638
  * / to any gate; the glyph is what `scripts/check-update-for-read.mjs` matches.
1549
1639
  */
1550
- getWalletBalances: ActorMethod<[], Result_60>;
1640
+ getWalletBalances: ActorMethod<[], Result_63>;
1641
+ /**
1642
+ * / Cycles-only getter used by EngramClient.walletBalance and its stdio MCP/OpenClaw callers.
1643
+ * / The earlier walletBalance/walletBalances one-letter pair remains retired: this name states
1644
+ * / the unit, while getWalletBalances retains the distinct full token-wallet operation.
1645
+ * / A token-ledger outage cannot prevent this local fuel read; it uses the same operation as
1646
+ * / remote engram_wallet_balance and never sends an outgoing call.
1647
+ * / ⟨L7⟩ UPDATE despite having no await: preserve the existing wallet facade's per-agent quota
1648
+ * / charge and lastSeenNs update, including when wallet permission is subsequently refused.
1649
+ * / A query would discard those writes and silently loosen the agent's existing rate limit.
1650
+ */
1651
+ getWalletCycles: ActorMethod<[], Result_15>;
1551
1652
  /**
1552
1653
  * / Refusal reason preserved, and it is the clearest case of why a masked read is worse than no
1553
1654
  * / read: three empty strings with `configured = false` is a VALID-LOOKING answer meaning "this
1554
1655
  * / engram has no World ID configuration" — handed to a caller who merely lacks a grant. The
1555
1656
  * / fabrication is indistinguishable from the truth by construction.
1556
1657
  */
1557
- getWorldIdConfig: ActorMethod<[], Result_59>;
1658
+ getWorldIdConfig: ActorMethod<[], Result_62>;
1558
1659
  /**
1559
1660
  * / ⟨L7⟩ UPDATE, NOT QUERY: this awaits THREE system calls — `raw_rand()` for the nonce,
1560
1661
  * / `Call.signWithEcdsa` for the signature, and `worldIdRpPublicKey()` for the derived key. A
@@ -1565,7 +1666,7 @@ export interface Engram {
1565
1666
  * / the World Developer Portal. Short-lived (300s TTL, idkit-server's default) and single-purpose —
1566
1667
  * / it authorizes opening one verification request, nothing else.
1567
1668
  */
1568
- getWorldIdRpContext: ActorMethod<[], Result_58>;
1669
+ getWorldIdRpContext: ActorMethod<[], Result_61>;
1569
1670
  /**
1570
1671
  * / Owner-only: the EVM address derived from the engram's dedicated World ID RP signing key (the
1571
1672
  * / "worldid-rp" tECDSA path). Register THIS address as the rp_id's signer in the World Developer
@@ -1580,7 +1681,7 @@ export interface Engram {
1580
1681
  * / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
1581
1682
  * / engram is unchanged.
1582
1683
  */
1583
- getWorldIdRpSignerAddress: ActorMethod<[], Result_55>;
1684
+ getWorldIdRpSignerAddress: ActorMethod<[], Result_58>;
1584
1685
  /**
1585
1686
  * / The verified IDKitResult, verbatim, as World's /api/v4/verify accepted it — the re-checkable
1586
1687
  * / artifact behind verifiedHuman. Role-gated because it carries the NULLIFIER.
@@ -1601,7 +1702,7 @@ export interface Engram {
1601
1702
  * / canister does not serve. The tombstones below and at `about()` are historical and correct as
1602
1703
  * / written; this one was present tense, which is the difference that matters.⟩
1603
1704
  */
1604
- getWorldIdVerification: ActorMethod<[], Result_57>;
1705
+ getWorldIdVerification: ActorMethod<[], Result_60>;
1605
1706
  /**
1606
1707
  * / ⟨0.16.0, L1⟩ THE EMERGENCY FAMILY. Every refusal below is `#Refused` or `#NotFound`, and the
1607
1708
  * / absence of a `#Conflict` here is the point: these are the calls someone makes while something
@@ -1688,7 +1789,7 @@ export interface Engram {
1688
1789
  * / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
1689
1790
  * / engram is unchanged.
1690
1791
  */
1691
- isEvmAddressCached: ActorMethod<[], Result_56>;
1792
+ isEvmAddressCached: ActorMethod<[], Result_59>;
1692
1793
  /**
1693
1794
  * / Issue an OAuth authorization code. Called by an OAuth client's sign-in bridge
1694
1795
  * / (an `/auth/connector`-style route) after II authentication. The client then
@@ -1697,7 +1798,7 @@ export interface Engram {
1697
1798
  * /
1698
1799
  * / Owner-only: only the engram owner can authorize a Connector install.
1699
1800
  */
1700
- issueAuthCode: ActorMethod<[string, string, string, [] | [string]], Result_55>;
1801
+ issueAuthCode: ActorMethod<[string, string, string, [] | [string]], Result_58>;
1701
1802
  /**
1702
1803
  * / ⟨0.16.0⟩ `getCycleSnapshotSource` DELETED — folded into `CycleSnapshot.source`, one label per
1703
1804
  * / ROW. A single label for a whole ring misattributes every row recorded under the other source,
@@ -1713,7 +1814,17 @@ export interface Engram {
1713
1814
  * / DORMANT engram and corrupts retention math — a fabricated empty here does not just misinform a
1714
1815
  * / reader, it feeds a wrong number into a decision about destroying data.
1715
1816
  */
1716
- listActivitySnapshots: ActorMethod<[bigint, bigint], Result_54>;
1817
+ listActivitySnapshots: ActorMethod<[bigint, bigint], Result_57>;
1818
+ /**
1819
+ * / The owner or a seated owner sign-in reads paired and connected grants in one typed roster.
1820
+ * / Existing lists keep their signatures and records. Rows retain each list's relative order:
1821
+ * / paired first, then sign-ins. `active` means grant status/expiry/issuer standing only, not
1822
+ * / permission to execute every operation or spend through a freeze. No credential is rewritten.
1823
+ * / This new method carries the tagged shape rather than widening a shipped response variant.
1824
+ * / Callers: an owner console's agent list (paired agents and sign-ins on one page, with the
1825
+ * / admission count), read by the owner or a seated sign-in.
1826
+ */
1827
+ listAgentRoster: ActorMethod<[bigint, bigint], Result_56>;
1717
1828
  /**
1718
1829
  * / ⟨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,
1719
1830
  * / m."⟩ OWNER-ONLY: what each agent has spent today, beside the daily limit in force for it, so the
@@ -1734,7 +1845,7 @@ export interface Engram {
1734
1845
  * / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1735
1846
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1736
1847
  */
1737
- listAgentSpendToday: ActorMethod<[bigint, bigint], Result_53>;
1848
+ listAgentSpendToday: ActorMethod<[bigint, bigint], Result_55>;
1738
1849
  /**
1739
1850
  * / ⟨0.16.0⟩ THE PAGE EXEMPLAR. Trap → `#Refused`, bare array → `Result<Page<T>>` (L1 + L3).
1740
1851
  * /
@@ -1753,7 +1864,7 @@ export interface Engram {
1753
1864
  * / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1754
1865
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1755
1866
  */
1756
- listAgents: ActorMethod<[bigint, bigint], Result_52>;
1867
+ listAgents: ActorMethod<[bigint, bigint], Result_54>;
1757
1868
  /**
1758
1869
  * / The GUARDIAN-audience projection of the agent roster — three fields, not the full record.
1759
1870
  * /
@@ -1767,7 +1878,7 @@ export interface Engram {
1767
1878
  * / guardian consults BEFORE REVOKING ONE. A fabricated empty here does not merely misinform —
1768
1879
  * / it tells someone acting under emergency powers that there is nothing to act on.
1769
1880
  */
1770
- listAgentsForGuardian: ActorMethod<[bigint, bigint], Result_51>;
1881
+ listAgentsForGuardian: ActorMethod<[bigint, bigint], Result_53>;
1771
1882
  /**
1772
1883
  * / Owner-only: rows carry caller, amount, operation and free-text rationale. The SDK omits it.
1773
1884
  * /
@@ -1781,7 +1892,7 @@ export interface Engram {
1781
1892
  * /
1782
1893
  * / Refusal reason preserved: `[]` reads as "nothing is awaiting the owner's decision".
1783
1894
  */
1784
- listApprovalRequests: ActorMethod<[[] | [ApprovalStatus], bigint, bigint], Result_37>;
1895
+ listApprovalRequests: ActorMethod<[[] | [ApprovalStatus], bigint, bigint], Result_39>;
1785
1896
  /**
1786
1897
  * / ⟨0.16.0⟩ `total` IS THE HEAD COUNTER, and on this method that is the entire point.
1787
1898
  * /
@@ -1817,7 +1928,7 @@ export interface Engram {
1817
1928
  * / at read time; nothing new is stored. WHAT WOULD MAKE THIS WRONG: a sealed row carrying any part
1818
1929
  * / of a body, or a stranger reaching `items` (test/record-view.test.mo pins both).
1819
1930
  */
1820
- listAuditEntries: ActorMethod<[bigint, bigint], Result_50>;
1931
+ listAuditEntries: ActorMethod<[bigint, bigint], Result_52>;
1821
1932
  /**
1822
1933
  * / ⟨0.16.0, L1 + L3 — census-ruled⟩ THE TWO-MECHANISM EXCEPTION DISSOLVES.
1823
1934
  * /
@@ -1843,7 +1954,7 @@ export interface Engram {
1843
1954
  * / keeps its optional filter and applies it to the page, so no caller loses the ability to ask
1844
1955
  * / "backups of this database" — it stops being a thing the canister has to page around.
1845
1956
  */
1846
- listBackups: ActorMethod<[bigint, bigint], Result_49>;
1957
+ listBackups: ActorMethod<[bigint, bigint], Result_51>;
1847
1958
  /**
1848
1959
  * / List all bearer tokens — Active, Revoked, and Expired. Owner uses this in
1849
1960
  * / the dashboard to show installed Connectors (claude.ai, Claude Desktop, etc.).
@@ -1857,7 +1968,7 @@ export interface Engram {
1857
1968
  * / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
1858
1969
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1859
1970
  */
1860
- listBearerTokens: ActorMethod<[bigint, bigint], Result_48>;
1971
+ listBearerTokens: ActorMethod<[bigint, bigint], Result_50>;
1861
1972
  /**
1862
1973
  * / The condense checkpoints in the retained log at or above `startSeq`, oldest first.
1863
1974
  * /
@@ -1869,7 +1980,7 @@ export interface Engram {
1869
1980
  * / Owner-only like every other archive surface, and for the same structural reason: these rows
1870
1981
  * / carry the chain positions and roots of entries whose paths were inside the hash preimage.
1871
1982
  */
1872
- listCondenseCheckpoints: ActorMethod<[bigint, bigint], Result_47>;
1983
+ listCondenseCheckpoints: ActorMethod<[bigint, bigint], Result_49>;
1873
1984
  /**
1874
1985
  * / ⟨0.16.0⟩ `metrics()` DELETED — absorbed by `about()`.
1875
1986
  * /
@@ -1878,13 +1989,13 @@ export interface Engram {
1878
1989
  * / both and know which one owned each field. Every field here survives on `about()`, day-flooring
1879
1990
  * / included.
1880
1991
  */
1881
- listCycleSnapshots: ActorMethod<[bigint, bigint], Result_46>;
1992
+ listCycleSnapshots: ActorMethod<[bigint, bigint], Result_48>;
1882
1993
  /**
1883
1994
  * / Same `withheld` treatment as listMemoryFiles — the tombstone listing filtered reserved paths
1884
1995
  * / for non-owners just as silently, and a caller could not tell a filtered tombstone list from a
1885
1996
  * / complete one. Counted before slicing, so policy-hidden rows never blur into paging.
1886
1997
  */
1887
- listDeletedMemoryFiles: ActorMethod<[bigint, bigint], Result_45>;
1998
+ listDeletedMemoryFiles: ActorMethod<[bigint, bigint], Result_47>;
1888
1999
  /**
1889
2000
  * / Stays on the engram under B1 (hybrid): withdrawal custody does not leave.
1890
2001
  * /
@@ -1900,7 +2011,7 @@ export interface Engram {
1900
2011
  * / The item's field is `value`, not `address`: a list may hold a venue value that is no address.
1901
2012
  * / Readable by the owner, an active agent or an active guardian, as the old list was.
1902
2013
  */
1903
- listEip712Destinations: ActorMethod<[Uint8Array | number[], bigint, bigint], Result_44>;
2014
+ listEip712Destinations: ActorMethod<[Uint8Array | number[], bigint, bigint], Result_46>;
1904
2015
  /**
1905
2016
  * / The registered shapes — E3: encodeTypeString is the display artifact, verbatim.
1906
2017
  * / Stays on the engram under B1 (hybrid): EIP-712 signing is custody, and custody does not leave.
@@ -1913,7 +2024,7 @@ export interface Engram {
1913
2024
  * / from `eip712FieldRules` — they are part of what the type authorises, so a reader of the list must
1914
2025
  * / not have to make a second call to learn them. The row type is `Eip712TypeView`.
1915
2026
  */
1916
- listEip712Types: ActorMethod<[bigint, bigint], Result_43>;
2027
+ listEip712Types: ActorMethod<[bigint, bigint], Result_45>;
1917
2028
  /**
1918
2029
  * / ⟨2026-10-21, round 11 c⟩ Guardians' disputes, oldest first. Same visibility as
1919
2030
  * / `listRepudiations` and `listRecordNotes`: the owner and ACTIVE guardians read the rows; an
@@ -1921,7 +2032,7 @@ export interface Engram {
1921
2032
  * / guardian's entry, not the agent's); a stranger, a pending guardian and the anonymous caller are
1922
2033
  * / refused.
1923
2034
  */
1924
- listGuardianDisputes: ActorMethod<[bigint, bigint], Result_42>;
2035
+ listGuardianDisputes: ActorMethod<[bigint, bigint], Result_44>;
1925
2036
  /**
1926
2037
  * / Accessible by owner and guardians.
1927
2038
  * /
@@ -1930,7 +2041,7 @@ export interface Engram {
1930
2041
  * / pause writes" — a claim about who can STOP it. A caller who cannot tell that from "you may not
1931
2042
  * / see the roster" has been told the engram is unguarded when it may be fully guarded.
1932
2043
  */
1933
- listGuardians: ActorMethod<[bigint, bigint], Result_41>;
2044
+ listGuardians: ActorMethod<[bigint, bigint], Result_43>;
1934
2045
  /**
1935
2046
  * / The export receipts in the retained log at or above `startSeq`, oldest first.
1936
2047
  * /
@@ -1948,7 +2059,7 @@ export interface Engram {
1948
2059
  * / Read `MemoryRouter.ReceiptPage` before reading `page.total` as a receipt count. It is not one;
1949
2060
  * / it is the chain's length, and the declaration says why.
1950
2061
  */
1951
- listMemoryExportReceipts: ActorMethod<[bigint, bigint], Result_40>;
2062
+ listMemoryExportReceipts: ActorMethod<[bigint, bigint], Result_42>;
1952
2063
  /**
1953
2064
  * / ⟨0.16.0⟩ THE `withheld` EXEMPLAR — L1 names this exact method as the defect it fixes.
1954
2065
  * /
@@ -1975,7 +2086,7 @@ export interface Engram {
1975
2086
  * / row served, never one per file stored. A WIDENED REPLY: a reader that decodes the row by
1976
2087
  * / position rather than by field name breaks — none in this repository does.
1977
2088
  */
1978
- listMemoryFiles: ActorMethod<[bigint, bigint], Result_39>;
2089
+ listMemoryFiles: ActorMethod<[bigint, bigint], Result_41>;
1979
2090
  /**
1980
2091
  * / One page of the memory log, seq-ordered, optionally narrowed to one author.
1981
2092
  * /
@@ -2002,7 +2113,7 @@ export interface Engram {
2002
2113
  * / with the disclosures that make the page verifiable — the hidden-bound defect the census itself
2003
2114
  * / names on previewCondense's row.
2004
2115
  */
2005
- listMemoryLog: ActorMethod<[bigint, bigint, [] | [Principal]], Result_38>;
2116
+ listMemoryLog: ActorMethod<[bigint, bigint, [] | [Principal]], Result_40>;
2006
2117
  /**
2007
2118
  * / The caller's OWN spend-approval requests. ⟨0.16.0, L1 + L3 — fixed 2026-08-18⟩
2008
2119
  * /
@@ -2021,7 +2132,7 @@ export interface Engram {
2021
2132
  * / (The unbounded MAP is filed separately — pruning an approval record destroys evidence of what
2022
2133
  * / was asked, which is a retention ruling rather than a shape fix.)
2023
2134
  */
2024
- listMyApprovalRequests: ActorMethod<[bigint, bigint], Result_37>;
2135
+ listMyApprovalRequests: ActorMethod<[bigint, bigint], Result_39>;
2025
2136
  /**
2026
2137
  * / The payer's own sessions, live ones first. PAYER-SCOPED: a caller sees only their own, which
2027
2138
  * / is why this needs no role — a session id is not a secret from the person who paid for it.
@@ -2032,7 +2143,7 @@ export interface Engram {
2032
2143
  * / client would break on — the market paged its own pending withdrawals before its cut for the
2033
2144
  * / same reason. The order is the order sessions were opened.
2034
2145
  */
2035
- listMySessions: ActorMethod<[bigint, bigint], Result_36>;
2146
+ listMySessions: ActorMethod<[bigint, bigint], Result_38>;
2036
2147
  /**
2037
2148
  * /
2038
2149
  * / ⟨0.16.0, L3⟩ Paged and enveloped like every other `list*`, and the envelope here is uniformity
@@ -2047,7 +2158,7 @@ export interface Engram {
2047
2158
  * / IT recorded, so this chain is what a caller composes with when currency matters — which it
2048
2159
  * / cannot do if it needs a role here.
2049
2160
  */
2050
- listOwnershipTransfers: ActorMethod<[bigint, bigint], Result_35>;
2161
+ listOwnershipTransfers: ActorMethod<[bigint, bigint], Result_37>;
2051
2162
  /**
2052
2163
  * / ⟨2026-09-29, the platform's question from the build review⟩ OWNER-ONLY: how many payment
2053
2164
  * / signatures each agent has obtained today, and the daily limit (200, `PaymentSignCap`). The
@@ -2067,7 +2178,7 @@ export interface Engram {
2067
2178
  * / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2068
2179
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2069
2180
  */
2070
- listPaymentSignatureCounts: ActorMethod<[bigint, bigint], Result_34>;
2181
+ listPaymentSignatureCounts: ActorMethod<[bigint, bigint], Result_36>;
2071
2182
  /**
2072
2183
  * / Agent records removed by a reset. Each row is a NAMED record with the fields `principal`,
2073
2184
  * / `name`, `registeredAt` and `purgedAt` — read them BY NAME, never by position.
@@ -2111,7 +2222,7 @@ export interface Engram {
2111
2222
  * / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2112
2223
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2113
2224
  */
2114
- listPurgedAgents: ActorMethod<[bigint, bigint], Result_33>;
2225
+ listPurgedAgents: ActorMethod<[bigint, bigint], Result_35>;
2115
2226
  /**
2116
2227
  * / ⟨0.16.0⟩ ONE ACCESSOR, folding `readReadLog` and `getDenialLog` — and the fold only became
2117
2228
  * / safe because of a change made earlier in this same leg.
@@ -2174,7 +2285,7 @@ export interface Engram {
2174
2285
  * / on the chained record — the same `RecordView` filter, and `withheld` counts what it removed
2175
2286
  * / together with what `successFilter` removed. WHAT WOULD MAKE THIS WRONG: see `listAuditEntries`.
2176
2287
  */
2177
- listReadLog: ActorMethod<[[] | [boolean], bigint, bigint], Result_32>;
2288
+ listReadLog: ActorMethod<[[] | [boolean], bigint, bigint], Result_34>;
2178
2289
  /**
2179
2290
  * / ⟨2026-10-21, round 11 b⟩ The owner's notes, oldest first. Same visibility as
2180
2291
  * / `listRepudiations`, for the same reason: the owner and ACTIVE guardians read the rows; an agent
@@ -2182,7 +2293,7 @@ export interface Engram {
2182
2293
  * / gets an empty page whose `withheld` counts the notes in its window — never "there are none". A
2183
2294
  * / stranger, a pending guardian and the anonymous caller are refused.
2184
2295
  */
2185
- listRecordNotes: ActorMethod<[bigint, bigint], Result_31>;
2296
+ listRecordNotes: ActorMethod<[bigint, bigint], Result_33>;
2186
2297
  /**
2187
2298
  * / Same visibility as listAuditEntries: the owner, this engram's agents, and ACTIVE guardians
2188
2299
  * / see disputes. An unauthorized read REFUSES — it does not return an empty list, because an
@@ -2199,7 +2310,7 @@ export interface Engram {
2199
2310
  * / WOULD MAKE THIS WRONG: a ruling that an agent may see the disputes of its own writes; this would
2200
2311
  * / then have to look up each disputed version's writer, which it does not do today.
2201
2312
  */
2202
- listRepudiations: ActorMethod<[bigint, bigint], Result_30>;
2313
+ listRepudiations: ActorMethod<[bigint, bigint], Result_32>;
2203
2314
  /**
2204
2315
  * / The seller list, a page at a time, as `Types.SellerView` (a raise whose wait is over shown applied;
2205
2316
  * / `liveNow` — false for every row while an engram opened through another has no sign-in seated; what
@@ -2208,7 +2319,7 @@ export interface Engram {
2208
2319
  * / which would read as "no sellers". A QUERY: the refusal is in the reply, not the denial log.
2209
2320
  * / Named callers: an owner console's seller list.
2210
2321
  */
2211
- listSellers: ActorMethod<[bigint, bigint], Result_29>;
2322
+ listSellers: ActorMethod<[bigint, bigint], Result_31>;
2212
2323
  /**
2213
2324
  * / ⟨2026-10-21, the owner's round-11 answer f⟩ OWNER-ONLY: the sign-ins, each with the name its app
2214
2325
  * / registered. The same tokens, in the same order and paged the same way, as `listBearerTokens`,
@@ -2221,7 +2332,7 @@ export interface Engram {
2221
2332
  * / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2222
2333
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2223
2334
  */
2224
- listSignIns: ActorMethod<[bigint, bigint], Result_28>;
2335
+ listSignIns: ActorMethod<[bigint, bigint], Result_30>;
2225
2336
  /**
2226
2337
  * / Owner: advance the review cursor — "I have seen everything up to and including uptoAuditId"
2227
2338
  * / (null = everything at the current head). Bounded so the attestation can never cover entries
@@ -2253,7 +2364,7 @@ export interface Engram {
2253
2364
  * / ⟨2026-10-29, review F2⟩ And which whole-key refusal stops every payment now, if one does
2254
2365
  * / (`paymentsStoppedBy`: the brake, the signing floor, the daily count of payment signatures).
2255
2366
  */
2256
- myGrant: ActorMethod<[], Result_27>;
2367
+ myGrant: ActorMethod<[], Result_29>;
2257
2368
  /**
2258
2369
  * / The AGENT's current key nominates the key that will replace it. Nothing moves yet: the new
2259
2370
  * / key must accept, by its own call, within 24 hours (`acceptAgentKeyNomination`). One pending
@@ -2313,8 +2424,8 @@ export interface Engram {
2313
2424
  * / (IC0536) with nothing spent; it can never open an engram without a sign-in by accident.
2314
2425
  * / Named caller: the owner kit's `open-engram` command, signed by the agent's session key.
2315
2426
  */
2316
- openChild: ActorMethod<[{ signIn: [] | [Principal] }], Result_26>;
2317
- openSession: ActorMethod<[SessionConfig, PaymentSignature], Result_25>;
2427
+ openChild: ActorMethod<[{ signIn: [] | [Principal] }], Result_28>;
2428
+ openSession: ActorMethod<[SessionConfig, PaymentSignature], Result_27>;
2318
2429
  /**
2319
2430
  * / Withdraw tokens to the owner's principal. This is the ONLY way to
2320
2431
  * / move tokens out of the engram to an external address, and the
@@ -2379,7 +2490,7 @@ export interface Engram {
2379
2490
  * / engagement on the agent's track record, and what to do. Before, the reply was `#Ok` with the
2380
2491
  * / record alone even when the registry had refused the start, so the agent was never told.
2381
2492
  */
2382
- pairAgent: ActorMethod<[{ enrolment: Enrolment; code: string }], Result_24>;
2493
+ pairAgent: ActorMethod<[{ enrolment: Enrolment; code: string }], Result_26>;
2383
2494
  /**
2384
2495
  * / ⟨0.16.0, L2.2 — renamed from `guardianPauseWrites`⟩ Same correction as freezePayments above:
2385
2496
  * / owner-or-guardian, and `resumeWrites` never carried the prefix either.
@@ -2390,6 +2501,14 @@ export interface Engram {
2390
2501
  * / `freezePaymentsWithReason` holds, with `canPauseWrites` as the guardian's grant.
2391
2502
  */
2392
2503
  pauseWritesWithReason: ActorMethod<[string], Result_2>;
2504
+ /**
2505
+ * / Plan the same visible session page, filtering, order and slice used by session helpers.
2506
+ * / The SDK executes the returned individual/cache or batch reads with its own decryption key;
2507
+ * / this query does not combine their budgets or impose the hosted MCP limit on SDK callers.
2508
+ * / Callers: EngramClient.listSessions and readSessions (SessionManager's readers, the local MCP
2509
+ * / session tool).
2510
+ */
2511
+ planSessionRead: ActorMethod<[Request], Result_25>;
2393
2512
  /**
2394
2513
  * / What condensing through `toSeq` would do, and whether it is unlocked. COMMITS NOTHING — it is
2395
2514
  * / a query, so it structurally cannot; a preview that wrote would be its own trap.
@@ -2410,7 +2529,7 @@ export interface Engram {
2410
2529
  * / `unlocked` is the export-receipt gate ONLY. It is not a promise the condense will land: the
2411
2530
  * / history-budget delta is checked at commit time and can still refuse a short prefix.
2412
2531
  */
2413
- previewCondense: ActorMethod<[bigint], Result_23>;
2532
+ previewCondense: ActorMethod<[bigint], Result_24>;
2414
2533
  /**
2415
2534
  * / A quote for a session this caller has not opened and is not committed to — the intent a
2416
2535
  * / buyer signs against. Pure dry run, no state, no funds.
@@ -2461,7 +2580,7 @@ export interface Engram {
2461
2580
  * / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
2462
2581
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2463
2582
  */
2464
- previewRetention: ActorMethod<[Array<[string, RetentionClassSpec]>], Result_22>;
2583
+ previewRetention: ActorMethod<[Array<[string, RetentionClassSpec]>], Result_23>;
2465
2584
  /**
2466
2585
  * / Read one memory file at its current version.
2467
2586
  * /
@@ -2496,7 +2615,7 @@ export interface Engram {
2496
2615
  * / path, each with its own Result — a refused RESERVED path sits beside a readable one, which is
2497
2616
  * / a genuine per-path fact.
2498
2617
  */
2499
- readMemoryBatch: ActorMethod<[Array<string>], Result_21>;
2618
+ readMemoryBatch: ActorMethod<[Array<string>], Result_22>;
2500
2619
  /**
2501
2620
  * / ⟨0.16.0⟩ `getMemoryRetentionGuards` DELETED — folded into `getMemoryRetentionPolicy` above.
2502
2621
  * / It was the second L2.1 array-returning `get*`, and separating it from the policy it modifies
@@ -2508,7 +2627,7 @@ export interface Engram {
2508
2627
  * / see it cannot know whether it has the whole range, which is how silent truncation gets
2509
2628
  * / reintroduced. Loop while `more` is true, advancing by the bytes actually returned.
2510
2629
  */
2511
- readMemoryBytes: ActorMethod<[string, bigint, bigint, [] | [bigint]], Result_20>;
2630
+ readMemoryBytes: ActorMethod<[string, bigint, bigint, [] | [bigint]], Result_21>;
2512
2631
  /**
2513
2632
  * / The escrow exit for a session whose settle cannot pay.
2514
2633
  * /
@@ -2573,7 +2692,7 @@ export interface Engram {
2573
2692
  * / the amount can be read back — a session closed in the same moment as the recovery and cleaned up
2574
2693
  * / during its transfer — it answers `#Other` naming the block, never a guessed amount.
2575
2694
  */
2576
- recoverEscrow: ActorMethod<[string, bigint], Result_19>;
2695
+ recoverEscrow: ActorMethod<[string, bigint], Result_20>;
2577
2696
  /**
2578
2697
  * / ⟨0.16.0, L1⟩ A REDEMPTION PATH, where the arm choice is a disclosure decision.
2579
2698
  * /
@@ -2589,7 +2708,7 @@ export interface Engram {
2589
2708
  * / owner's invite gave them and that they cannot act until approved; before, that took a second
2590
2709
  * / read they had no reason to know to make.
2591
2710
  */
2592
- registerGuardian: ActorMethod<[string], Result_18>;
2711
+ registerGuardian: ActorMethod<[string], Result_19>;
2593
2712
  /**
2594
2713
  * / Remove a per-caller override so that caller reverts to — and keeps TRACKING — the global caps.
2595
2714
  * /
@@ -2689,7 +2808,7 @@ export interface Engram {
2689
2808
  * / long-lived enough for the rent model to apply, the reset entry is not guaranteed to still be
2690
2809
  * / there. `agentPurgeLog` is the evidence that does not age out — which is why it exists.
2691
2810
  */
2692
- resetEngram: ActorMethod<[], Result_17>;
2811
+ resetEngram: ActorMethod<[], Result_18>;
2693
2812
  /**
2694
2813
  * / ⟨2026-09-28, owner decision: an agent can resign from an engram, and the resignation is
2695
2814
  * / recorded⟩ The AGENT ends its own engagement with this engram.
@@ -2741,7 +2860,7 @@ export interface Engram {
2741
2860
  * / each such engagement under `cannotBeRecorded` (key, root, invite, and how and when it ended),
2742
2861
  * / apart from `notRecorded`, so the owner sees them rather than silence.
2743
2862
  */
2744
- resyncAgentEdges: ActorMethod<[], Result_16>;
2863
+ resyncAgentEdges: ActorMethod<[], Result_17>;
2745
2864
  /**
2746
2865
  * / Return to managed custody: the engram adds the registry back as a controller ALONGSIDE the
2747
2866
  * / owner — it does not remove the owner. The inverse of `claimSovereignty`, and the reason
@@ -2861,6 +2980,20 @@ export interface Engram {
2861
2980
  * / agent reading `#Refused` would go looking for a permission that was never missing.
2862
2981
  */
2863
2982
  rotateAgentKeyHash: ActorMethod<[string], Result_2>;
2983
+ /**
2984
+ * / Append one formatted memory entry: a dated preference, a lesson or domain insight (topic
2985
+ * / nonempty; topic names follow the shared memory schema), a decision with its rationale, or an
2986
+ * / untrimmed session summary. Dates are this canister's UTC date; a session summary may supply its
2987
+ * / own `YYYY-MM-DD` date (shape-checked, not calendar-checked). Same append permission, path rules,
2988
+ * / writes-pause and encrypted-memory refusal as appendMemoryText; returns the write receipt and the
2989
+ * / exact bytes sent. Callers: the npm library's ProfileManager saves and SessionManager.writeSummary
2990
+ * / (each through EngramClient), and through them the local MCP server's profile and session tools.
2991
+ * / ⟨2026-11-08, the owner: "merging the four methods to one i would agree with"⟩ Was four methods
2992
+ * / (savePreference, saveInsight, saveDecision, writeSessionSummary), added 2026-11-06 and never
2993
+ * / released; one door keeps three fewer methods that every client must support for as long as
2994
+ * / they are served.
2995
+ */
2996
+ saveMemoryEntry: ActorMethod<[MemoryEntry], Result_16>;
2864
2997
  /**
2865
2998
  * / Send money from this engram's wallet to the engram it was opened through — "up", and only up:
2866
2999
  * / the destination is always the parent engram's own default account, never an address the caller
@@ -3098,6 +3231,10 @@ export interface Engram {
3098
3231
  * / "tightened" from "loosened" precisely would mean comparing two cap lattices, so armGuards
3099
3232
  * / (RetentionPolicy.mo) guards any change it sees. That is the conservative reading, and its
3100
3233
  * / only cost is a delay on keeping MORE, which destroys nothing.
3234
+ * / ⟨CORRECTED 2026-11-07⟩ That delay applies to EVICTION only (`resolveRetentionForEviction`),
3235
+ * / not to the class used for revision. `reviseMemory` reads `retentionClassOf` →
3236
+ * / `RetentionPolicy.resolve` without a guard: a newly written `#vault` forbids agent revision
3237
+ * / immediately, including during the 14-day eviction guard. The owner's revision is unchanged.
3101
3238
  */
3102
3239
  setMemoryRetentionPolicy: ActorMethod<[Array<[string, RetentionClassSpec]>], Result_2>;
3103
3240
  /**
@@ -3201,6 +3338,10 @@ export interface Engram {
3201
3338
  * / The record entry `spend.setCeiling` carries the new AND the previous value, so a widening is
3202
3339
  * / distinguishable from a tightening afterwards — the reason `spend.setPolicy` records its limits.
3203
3340
  * / Not blocked by a payments freeze, like `setSpendPolicy`: setting a limit moves no money.
3341
+ * / ⟨2026-11-04, the agent-conversion build⟩ What counts against the ceiling: x402 payments, an agent's
3342
+ * / conversion of the engram's balance, and the key file's Convert in an engram opened through another
3343
+ * / (`getSpendCeiling`'s note). Removing the ceiling does NOT free agent conversions: they keep their own
3344
+ * / bound, one in any 24 hours (`agentConvertAtNs`).
3204
3345
  */
3205
3346
  setSpendCeiling: ActorMethod<[[] | [bigint]], Result_2>;
3206
3347
  /**
@@ -3574,6 +3715,51 @@ export interface Engram {
3574
3715
  ],
3575
3716
  Result_2
3576
3717
  >;
3718
+ /**
3719
+ * / ⟨2026-11-04, the owner's ruling "1 A": a marketplace sale is paid into the selling engram's own
3720
+ * / wallet, and the engram writes each sale to its record⟩ THE MARKET WRITING A SALE TO THIS ENGRAM'S
3721
+ * / RECORD, after it has paid this engram's own account (ckUSDC) or address (another chain). The
3722
+ * / money does not pass through here and nothing here moves any: a ledger account needs no running
3723
+ * / canister, so the sale is paid whatever state this engram is in, and this method only writes the
3724
+ * / line that says so — one `market.sale` row per sale, its details from `SaleNotice.details`.
3725
+ * /
3726
+ * / GATED TO THE CONFIGURED MARKET (`AccessControl.requireMarketSale`), the pointer the spawning
3727
+ * / registry set once (`sysSetMarketId`). Neither the owner nor an agent may write a sale row: a
3728
+ * / receipt an owner could write is a receipt an owner could forge.
3729
+ * /
3730
+ * / IDEMPOTENT ON THE RECEIPT ID. The market retries a notice it could not deliver (this engram out
3731
+ * / of compute, upgrading, stopped), and a retry of one that did land must learn it succeeded: a
3732
+ * / repeat answers `#Ok` and writes nothing — no row, no denial row (`sysNotifyWalletActivity`'s
3733
+ * / contract). The receipt ids live in `saleReceiptsStable`.
3734
+ * /
3735
+ * / IT AWAITS NOTHING, deliberately, and test/market-route-wiring.test.ts rule E3 holds that: no
3736
+ * / outgoing call means nothing to count under wiring rule 20, and NO WAKE DOOR — a sale brings
3737
+ * / dollars, not compute, so a paused engram's wake would find no room on every engram that is
3738
+ * / actually paused (the design's question 3, defaulted "wakes nothing unless the owner objects").
3739
+ * /
3740
+ * / NOT GATED ON a guardian's payment freeze (that stops this engram's own signing — money out;
3741
+ * / `sysRecordFeeEvent` is not freeze-gated either), on `pauseWrites` (memory writes), or on the
3742
+ * / owner's custody state. A receipt an owner could block is a receipt an owner could hide.
3743
+ * /
3744
+ * / It also stamps `walletActivatedAt` ("market-sale"): money landing in this engram's account IS
3745
+ * / the wallet-bearing event, and it covers services, which the market's listing notice never did.
3746
+ * / The listing notice (`sysNotifyWalletActivity`) stays, as ruled 2026-08-20; whether to retire it
3747
+ * / is the owner's question.
3748
+ * /
3749
+ * / ⟨2026-11-04, the owner's ruling "A", beside the gate paragraph above⟩ NO MARKET SET YET IS "NOT
3750
+ * / YET", NOT A REFUSAL. With `marketId` null the gate's refusal is answered `#Unavailable`, and the
3751
+ * / market PARKS the notice (it drops a sale's line on any other `#Err` at once — the defect this
3752
+ * / closes: the money landed and the line was lost for good). `marketId` is not final: the registry
3753
+ * / sets it later (`sysSetMarketId`), and then `retrySaleNotices` or the seller's next
3754
+ * / `registerSeller` writes the line; the market's 30-day age cap ends the wait. That arm writes NO
3755
+ * / `sysRecordSale.denied` row: nothing was denied, and `retrySaleNotices` is open to any caller, so a
3756
+ * / row per press would be spam on the owner's read log. A caller that is not the configured market,
3757
+ * / once one is set, is still `#Refused` with its row, unchanged. WHAT WOULD MAKE THIS WRONG: a
3758
+ * / `marketId` that can be set to null on purpose (a market retired from an engram) — then null would
3759
+ * / mean "never", and parking for 30 days would hold a line nobody can write.
3760
+ * / Witness: test/market-route/sale-route.test.ts S7 and record-row.test.ts R3.
3761
+ */
3762
+ sysRecordSale: ActorMethod<[SaleNotice], Result_2>;
3577
3763
  /**
3578
3764
  * / Give back what a paid security update advanced this engram and the install did not use.
3579
3765
  * /
@@ -3634,6 +3820,25 @@ export interface Engram {
3634
3820
  * / certify and the client's `verifyBirthChain` to check.
3635
3821
  */
3636
3822
  sysSetBirthChain: ActorMethod<[Array<BirthRecord>], Result_2>;
3823
+ /**
3824
+ * / Name the origin of the page where this engram's owner approves a connector sign-in.
3825
+ * / ⟨2026-11-08, the owner's ruling "all as recommended", item 1⟩
3826
+ * /
3827
+ * / CALLER: the registry that spawned this engram, from its birth push (`pushToNewborn`), and nobody
3828
+ * / else — the same authority as `sysSetMetricsReaderId`, through the named gate
3829
+ * / `AccessControl.requireRegistryNamingConsent`. ⚠ THE REGISTRY'S CLIENT DECLARATION IS HAND-WRITTEN
3830
+ * / (`sysSetConsentOrigin : (Text) -> async Wire.Result<()>`): a different NAME here leaves every
3831
+ * / newborn on the default origin, silently (the push is best-effort and its reject is caught), and a
3832
+ * / different REPLY type traps inside the registry's callback. test/lineage-wiring.test.ts compares the
3833
+ * / two.
3834
+ * /
3835
+ * / `GET /oauth/authorize` then answers 302 to `<origin>/auth/connector?canister=<id>&<the client's
3836
+ * / query>`; never told, it keeps the default origin it always had. An origin `ConsentOrigin.check`
3837
+ * / refuses (not https, a path, a query, a fragment, a user part, uppercase, too long) is `#Invalid`
3838
+ * / and nothing changes. SET ONCE: the same origin again answers `#Ok` and changes nothing; another is
3839
+ * / refused `#Conflict`. Never cleared. Recorded in the chained record (`oauth.sysSetConsentOrigin`).
3840
+ */
3841
+ sysSetConsentOrigin: ActorMethod<[string], Result_2>;
3637
3842
  /**
3638
3843
  * / Point this engram at the commerce satellite allowed to ask it for signatures. ⟨0.16.0, B1⟩
3639
3844
  * /
@@ -3857,6 +4062,17 @@ export interface EnrolmentProof {
3857
4062
  rootPubkey: Uint8Array | number[];
3858
4063
  inviteCode: string;
3859
4064
  }
4065
+ export interface Entry {
4066
+ date: string;
4067
+ path: string;
4068
+ platform: string;
4069
+ lastModifiedAtNs: bigint;
4070
+ }
4071
+ export interface Entry__1 {
4072
+ active: boolean;
4073
+ inactiveReason: [] | [string];
4074
+ grant: { connected: SignIn } | { paired: AgentRecord };
4075
+ }
3860
4076
  export type Error =
3861
4077
  | { Invalid: string }
3862
4078
  | { NotFound: string }
@@ -3971,6 +4187,19 @@ export interface MemoryByteChunk {
3971
4187
  fileSize: bigint;
3972
4188
  bytes: Uint8Array | number[];
3973
4189
  }
4190
+ export type MemoryEntry =
4191
+ | {
4192
+ decision: { decision: string; rationale: string };
4193
+ }
4194
+ | { preference: string }
4195
+ | { insight: { topic: [] | [string]; content: string } }
4196
+ | {
4197
+ sessionSummary: {
4198
+ date: [] | [string];
4199
+ platform: string;
4200
+ summary: string;
4201
+ };
4202
+ };
3974
4203
  export interface MemoryEviction {
3975
4204
  evictSeq: bigint;
3976
4205
  fromVersion: bigint;
@@ -4245,9 +4474,14 @@ export interface Page_24 {
4245
4474
  export interface Page_25 {
4246
4475
  total: bigint;
4247
4476
  withheld: bigint;
4248
- items: Array<ActivitySnapshot>;
4477
+ items: Array<Entry__1>;
4249
4478
  }
4250
4479
  export interface Page_26 {
4480
+ total: bigint;
4481
+ withheld: bigint;
4482
+ items: Array<ActivitySnapshot>;
4483
+ }
4484
+ export interface Page_27 {
4251
4485
  total: bigint;
4252
4486
  withheld: bigint;
4253
4487
  items: Array<OwnerRow>;
@@ -4322,6 +4556,16 @@ export interface PaymentsNow {
4322
4556
  }
4323
4557
  export type PaymentsStop =
4324
4558
  { paymentsBrake: null } | { dailySignatureLimit: null } | { signingFloor: null };
4559
+ export type Plan =
4560
+ | { metadata: Array<Entry> }
4561
+ | { individualCanonical: Array<CanonicalRead> }
4562
+ | { batchOriginal: Array<Entry> };
4563
+ export interface ProfileRead {
4564
+ soul: Result_13;
4565
+ user: Result_13;
4566
+ lessons: Result_13;
4567
+ preferences: Result_13;
4568
+ }
4325
4569
  export interface PurgedAgent {
4326
4570
  principal: Principal;
4327
4571
  pairedAtNs: bigint;
@@ -4381,6 +4625,15 @@ export interface Repudiation {
4381
4625
  version: bigint;
4382
4626
  reason: string;
4383
4627
  }
4628
+ export type Request =
4629
+ | { metadata: [] | [string] }
4630
+ | {
4631
+ read: {
4632
+ end: End;
4633
+ excludePlatform: [] | [string];
4634
+ platform: [] | [string];
4635
+ };
4636
+ };
4384
4637
  export interface ResetReport {
4385
4638
  agentsRemoved: bigint;
4386
4639
  agentsPurged: bigint;
@@ -4395,85 +4648,90 @@ export type Result_12 = { Ok: BackupRetentionReport } | { Err: Error };
4395
4648
  export type Result_13 = { Ok: MemoryFile } | { Err: Error };
4396
4649
  export type Result_14 = { Ok: SessionContext } | { Err: Error };
4397
4650
  export type Result_15 = { Ok: bigint } | { Err: Error };
4398
- export type Result_16 = { Ok: ResyncReport } | { Err: Error };
4399
- export type Result_17 = { Ok: ResetReport } | { Err: Error };
4400
- export type Result_18 = { Ok: GuardianRecord } | { Err: Error };
4401
- export type Result_19 = { Ok: EngramEscrowRecovery } | { Err: Error };
4651
+ export type Result_16 = { Ok: TextAppendReceipt } | { Err: Error };
4652
+ export type Result_17 = { Ok: ResyncReport } | { Err: Error };
4653
+ export type Result_18 = { Ok: ResetReport } | { Err: Error };
4654
+ export type Result_19 = { Ok: GuardianRecord } | { Err: Error };
4402
4655
  export type Result_2 = { Ok: null } | { Err: Error };
4403
- export type Result_20 = { Ok: MemoryByteChunk } | { Err: Error };
4404
- export type Result_21 = { Ok: Array<BatchReadItem> } | { Err: Error };
4405
- export type Result_22 = { Ok: RetentionPreview } | { Err: Error };
4406
- export type Result_23 = { Ok: CondensePreview } | { Err: Error };
4407
- export type Result_24 = { Ok: Pairing } | { Err: Error };
4408
- export type Result_25 = { Ok: EngramSessionState } | { Err: Error };
4409
- export type Result_26 = { Ok: Principal } | { Err: Error };
4410
- export type Result_27 = { Ok: AgentGrant } | { Err: Error };
4411
- export type Result_28 = { Ok: Page } | { Err: Error };
4412
- export type Result_29 = { Ok: Page_1 } | { Err: Error };
4656
+ export type Result_20 = { Ok: EngramEscrowRecovery } | { Err: Error };
4657
+ export type Result_21 = { Ok: MemoryByteChunk } | { Err: Error };
4658
+ export type Result_22 = { Ok: Array<BatchReadItem> } | { Err: Error };
4659
+ export type Result_23 = { Ok: RetentionPreview } | { Err: Error };
4660
+ export type Result_24 = { Ok: CondensePreview } | { Err: Error };
4661
+ export type Result_25 = { Ok: Plan } | { Err: Error };
4662
+ export type Result_26 = { Ok: Pairing } | { Err: Error };
4663
+ export type Result_27 = { Ok: EngramSessionState } | { Err: Error };
4664
+ export type Result_28 = { Ok: Principal } | { Err: Error };
4665
+ export type Result_29 = { Ok: AgentGrant } | { Err: Error };
4413
4666
  export type Result_3 = { Ok: ControlHandover } | { Err: Error };
4414
- export type Result_30 = { Ok: Page_2 } | { Err: Error };
4415
- export type Result_31 = { Ok: Page_3 } | { Err: Error };
4416
- export type Result_32 = { Ok: Page_4 } | { Err: Error };
4417
- export type Result_33 = { Ok: Page_5 } | { Err: Error };
4418
- export type Result_34 = { Ok: PaymentSignatureCounts } | { Err: Error };
4419
- export type Result_35 = { Ok: Page_7 } | { Err: Error };
4420
- export type Result_36 = { Ok: Page_8 } | { Err: Error };
4421
- export type Result_37 = { Ok: Page_9 } | { Err: Error };
4422
- export type Result_38 = { Ok: LogPage } | { Err: Error };
4423
- export type Result_39 = { Ok: Page_11 } | { Err: Error };
4667
+ export type Result_30 = { Ok: Page } | { Err: Error };
4668
+ export type Result_31 = { Ok: Page_1 } | { Err: Error };
4669
+ export type Result_32 = { Ok: Page_2 } | { Err: Error };
4670
+ export type Result_33 = { Ok: Page_3 } | { Err: Error };
4671
+ export type Result_34 = { Ok: Page_4 } | { Err: Error };
4672
+ export type Result_35 = { Ok: Page_5 } | { Err: Error };
4673
+ export type Result_36 = { Ok: PaymentSignatureCounts } | { Err: Error };
4674
+ export type Result_37 = { Ok: Page_7 } | { Err: Error };
4675
+ export type Result_38 = { Ok: Page_8 } | { Err: Error };
4676
+ export type Result_39 = { Ok: Page_9 } | { Err: Error };
4424
4677
  export type Result_4 = { Ok: X402SignOutcome } | { Err: Error };
4425
- export type Result_40 = { Ok: ReceiptPage } | { Err: Error };
4426
- export type Result_41 = { Ok: Page_13 } | { Err: Error };
4427
- export type Result_42 = { Ok: Page_14 } | { Err: Error };
4428
- export type Result_43 = { Ok: Page_15 } | { Err: Error };
4429
- export type Result_44 = { Ok: Page_16 } | { Err: Error };
4430
- export type Result_45 = { Ok: Page_17 } | { Err: Error };
4431
- export type Result_46 = { Ok: Page_18 } | { Err: Error };
4432
- export type Result_47 = { Ok: CheckpointPage } | { Err: Error };
4433
- export type Result_48 = { Ok: Page_20 } | { Err: Error };
4434
- export type Result_49 = { Ok: Page_21 } | { Err: Error };
4678
+ export type Result_40 = { Ok: LogPage } | { Err: Error };
4679
+ export type Result_41 = { Ok: Page_11 } | { Err: Error };
4680
+ export type Result_42 = { Ok: ReceiptPage } | { Err: Error };
4681
+ export type Result_43 = { Ok: Page_13 } | { Err: Error };
4682
+ export type Result_44 = { Ok: Page_14 } | { Err: Error };
4683
+ export type Result_45 = { Ok: Page_15 } | { Err: Error };
4684
+ export type Result_46 = { Ok: Page_16 } | { Err: Error };
4685
+ export type Result_47 = { Ok: Page_17 } | { Err: Error };
4686
+ export type Result_48 = { Ok: Page_18 } | { Err: Error };
4687
+ export type Result_49 = { Ok: CheckpointPage } | { Err: Error };
4435
4688
  export type Result_5 = { Ok: Eip712SignatureOut } | { Err: Error };
4436
- export type Result_50 = { Ok: RecordPage } | { Err: Error };
4437
- export type Result_51 = { Ok: Page_22 } | { Err: Error };
4438
- export type Result_52 = { Ok: Page_23 } | { Err: Error };
4439
- export type Result_53 = { Ok: AgentSpendToday } | { Err: Error };
4440
- export type Result_54 = { Ok: Page_25 } | { Err: Error };
4441
- export type Result_55 = { Ok: string } | { Err: Error };
4442
- export type Result_56 = { Ok: boolean } | { Err: Error };
4443
- export type Result_57 = { Ok: [] | [string] } | { Err: Error };
4444
- export type Result_58 = { Ok: WorldIdRpContext } | { Err: Error };
4445
- export type Result_59 = { Ok: WorldIdConfig } | { Err: Error };
4689
+ export type Result_50 = { Ok: Page_20 } | { Err: Error };
4690
+ export type Result_51 = { Ok: Page_21 } | { Err: Error };
4691
+ export type Result_52 = { Ok: RecordPage } | { Err: Error };
4692
+ export type Result_53 = { Ok: Page_22 } | { Err: Error };
4693
+ export type Result_54 = { Ok: Page_23 } | { Err: Error };
4694
+ export type Result_55 = { Ok: AgentSpendToday } | { Err: Error };
4695
+ export type Result_56 = { Ok: Page_25 } | { Err: Error };
4696
+ export type Result_57 = { Ok: Page_26 } | { Err: Error };
4697
+ export type Result_58 = { Ok: string } | { Err: Error };
4698
+ export type Result_59 = { Ok: boolean } | { Err: Error };
4446
4699
  export type Result_6 = { Ok: { returned: bigint } } | { Err: Error };
4447
- export type Result_60 = { Ok: WalletBalances } | { Err: Error };
4448
- export type Result_61 = { Ok: StorageReport } | { Err: Error };
4449
- export type Result_62 = { Ok: SpendingPolicy } | { Err: Error };
4450
- export type Result_63 = { Ok: SpendCeiling } | { Err: Error };
4451
- export type Result_64 = { Ok: SigningFloorStatus } | { Err: Error };
4452
- export type Result_65 = { Ok: RecipientHistory } | { Err: Error };
4453
- export type Result_66 = { Ok: { paths: Array<string> } } | { Err: Error };
4454
- export type Result_67 = { Ok: OwnerSignInView } | { Err: Error };
4455
- export type Result_68 = { Ok: OwnerConsole } | { Err: Error };
4456
- export type Result_69 = { Ok: MemoryRetentionPolicy } | { Err: Error };
4700
+ export type Result_60 = { Ok: [] | [string] } | { Err: Error };
4701
+ export type Result_61 = { Ok: WorldIdRpContext } | { Err: Error };
4702
+ export type Result_62 = { Ok: WorldIdConfig } | { Err: Error };
4703
+ export type Result_63 = { Ok: WalletBalances } | { Err: Error };
4704
+ export type Result_64 = { Ok: StorageReport } | { Err: Error };
4705
+ export type Result_65 = { Ok: SpendingPolicy } | { Err: Error };
4706
+ export type Result_66 = { Ok: SpendCeiling } | { Err: Error };
4707
+ export type Result_67 = { Ok: SigningFloorStatus } | { Err: Error };
4708
+ export type Result_68 = { Ok: RecipientHistory } | { Err: Error };
4709
+ export type Result_69 = { Ok: { paths: Array<string> } } | { Err: Error };
4457
4710
  export type Result_7 = { Ok: SignatureCounts } | { Err: Error };
4458
- export type Result_70 = { Ok: MemoryHistory } | { Err: Error };
4459
- export type Result_71 = { Ok: KeyBackupStatus } | { Err: Error };
4460
- export type Result_72 = { Ok: Uint8Array | number[] } | { Err: Error };
4461
- export type Result_73 = { Ok: AlertStatus } | { Err: Error };
4462
- export type Result_74 = { Ok: EvmAddresses } | { Err: Error };
4463
- export type Result_75 = { Ok: ChildOpening } | { Err: Error };
4464
- export type Result_76 = { Ok: ChildAllowanceRow } | { Err: Error };
4465
- export type Result_77 = { Ok: Brakes } | { Err: Error };
4466
- export type Result_78 = { Ok: Array<BirthRecord> } | { Err: Error };
4467
- export type Result_79 = { Ok: BackupRetention } | { Err: Error };
4711
+ export type Result_70 = { Ok: ProfileRead } | { Err: Error };
4712
+ export type Result_71 = { Ok: OwnerSignInView } | { Err: Error };
4713
+ export type Result_72 = { Ok: OwnerConsole } | { Err: Error };
4714
+ export type Result_73 = { Ok: MemoryRetentionPolicy } | { Err: Error };
4715
+ export type Result_74 = { Ok: MemoryHistory } | { Err: Error };
4716
+ export type Result_75 = { Ok: KeyBackupStatus } | { Err: Error };
4717
+ export type Result_76 = { Ok: Uint8Array | number[] } | { Err: Error };
4718
+ export type Result_77 = { Ok: AlertStatus } | { Err: Error };
4719
+ export type Result_78 = { Ok: EvmAddresses } | { Err: Error };
4720
+ export type Result_79 = { Ok: ChildOpening } | { Err: Error };
4468
4721
  export type Result_8 = { Ok: RailHealth } | { Err: Error };
4469
- export type Result_80 = { Ok: BackupMetadata } | { Err: Error };
4470
- export type Result_81 = { Ok: AgentWriteReview } | { Err: Error };
4471
- export type Result_82 = { Ok: Page_26 } | { Err: Error };
4472
- export type Result_84 = { Ok: MemoryRangeExport } | { Err: Error };
4473
- export type Result_85 = { Ok: CondenseResult } | { Err: Error };
4474
- export type Result_87 = { Ok: Eip712Registration } | { Err: Error };
4475
- export type Result_89 = { Ok: AgentRecord } | { Err: Error };
4722
+ export type Result_80 = { Ok: ChildAllowanceRow } | { Err: Error };
4723
+ export type Result_81 = { Ok: Brakes } | { Err: Error };
4724
+ export type Result_82 = { Ok: Array<BirthRecord> } | { Err: Error };
4725
+ export type Result_83 = { Ok: BackupRetention } | { Err: Error };
4726
+ export type Result_84 = { Ok: BackupMetadata } | { Err: Error };
4727
+ export type Result_85 = { Ok: AgentWriteReview } | { Err: Error };
4728
+ export type Result_86 = { Ok: Page_27 } | { Err: Error };
4729
+ export type Result_88 = { Ok: MemoryRangeExport } | { Err: Error };
4730
+ export type Result_89 = { Ok: CondenseResult } | { Err: Error };
4476
4731
  export type Result_9 = { Ok: Array<Seat> } | { Err: Error };
4732
+ export type Result_90 = { Ok: Conversion } | { Err: Error };
4733
+ export type Result_92 = { Ok: Eip712Registration } | { Err: Error };
4734
+ export type Result_94 = { Ok: AgentRecord } | { Err: Error };
4477
4735
  export interface ResyncReport {
4478
4736
  startsAcknowledged: bigint;
4479
4737
  cannotBeRecorded: Array<UnrecordableEngagement>;
@@ -4523,6 +4781,18 @@ export type Role =
4523
4781
  | { Agent: null }
4524
4782
  | { Other: null }
4525
4783
  | { Owner: null };
4784
+ export interface SaleNotice {
4785
+ token: string;
4786
+ txRef: [] | [string];
4787
+ listingId: string;
4788
+ kind: { service: null } | { content: null };
4789
+ jobId: [] | [string];
4790
+ network: string;
4791
+ amountE6: bigint;
4792
+ receiptId: string;
4793
+ buyer: string;
4794
+ settledAtNs: bigint;
4795
+ }
4526
4796
  export interface SealedEntry {
4527
4797
  id: bigint;
4528
4798
  entryHash: Uint8Array | number[];
@@ -4636,6 +4906,10 @@ export interface StorageReport {
4636
4906
  versionHistoryCount: bigint;
4637
4907
  sessionFilesCount: bigint;
4638
4908
  }
4909
+ export interface TextAppendReceipt {
4910
+ receipt: WriteReceipt;
4911
+ sent: Uint8Array | number[];
4912
+ }
4639
4913
  export interface TimerHealth {
4640
4914
  jobExpiryFastMode: boolean;
4641
4915
  jobExpiryArmed: boolean;