@engramx/idl 0.16.0-rc.29 → 0.16.0-rc.31

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.
@@ -443,7 +443,7 @@ export interface Engram {
443
443
  * / test/key-replacement.test.mo runs it; this body names no roster gate, because the caller holds
444
444
  * / no role here until the move.
445
445
  */
446
- acceptAgentKeyNomination: ActorMethod<[Principal], Result_96>;
446
+ acceptAgentKeyNomination: ActorMethod<[Principal], Result_95>;
447
447
  /**
448
448
  * / ⟨2026-11-15, from an adversarial review, ruled the same day: THE NEW OWNER MUST ACCEPT, and on
449
449
  * / acceptance what the former owner granted is ended, not carried over⟩ THE PRINCIPAL AN OFFER
@@ -523,7 +523,7 @@ export interface Engram {
523
523
  * / custody chain; whatever the registry refuses (its own words, with a sentence saying the caller
524
524
  * / did not become the owner).
525
525
  */
526
- acceptOwnership: ActorMethod<[], Result_95>;
526
+ acceptOwnership: ActorMethod<[], Result_94>;
527
527
  /**
528
528
  * / The person the owner asked again ACCEPTS: they become this engram's sign-in, and the sealed copy
529
529
  * / that came with the ask becomes the engram's (sealed for them). Until this call they have no power
@@ -609,7 +609,7 @@ export interface Engram {
609
609
  ackIrrevocable: boolean;
610
610
  },
611
611
  ],
612
- Result_93
612
+ Result_92
613
613
  >;
614
614
  /**
615
615
  * / ⟨0.16.0, refusals are values, never traps⟩ THE ROLE-CONFLICT ARM, and why three refusals here are
@@ -670,7 +670,7 @@ export interface Engram {
670
670
  * / cannot stop that call — it finishes, and the reply (`finishedBeforeRemovalSeen`) and the record row say
671
671
  * / so. One inter-canister call, bounded by one cap.
672
672
  */
673
- agentConvertBalance: ActorMethod<[string, [] | [bigint]], Result_91>;
673
+ agentConvertBalance: ActorMethod<[string, [] | [bigint]], Result_90>;
674
674
  /**
675
675
  * / Returns the write RECEIPT, not just the version.
676
676
  * /
@@ -715,7 +715,7 @@ export interface Engram {
715
715
  * / is exactly what a guardian pause exists to hold. No action alert is raised: the operation is
716
716
  * / owner-initiated, owner-only, and already chained into the audit log.
717
717
  */
718
- applyCondense: ActorMethod<[bigint], Result_90>;
718
+ applyCondense: ActorMethod<[bigint], Result_89>;
719
719
  /**
720
720
  * / Owner-only: activate a guardian who has registered against an invite.
721
721
  * /
@@ -799,6 +799,8 @@ export interface Engram {
799
799
  * / hash is the misreading to avoid — and it is an easy one to reach, because the REGISTRY's
800
800
  * / chunked upload (`engramWasmInit`/`PushChunk`/`Finalize`) has the same shape and DOES verify:
801
801
  * / it hashes the assembled bytes and refuses on mismatch. Same protocol, opposite semantics.
802
+ * / ⟨2026-11-19, beside the paragraph above⟩ The argument is named `declaredSha256` now (it was `sha256`), so the
803
+ * / name says what this paragraph says. A name only: Candid passes arguments by position, so no caller changes.
802
804
  * /
803
805
  * / **TWO DIFFERENT PERMISSIONS GUARD THE TWO HALVES.** Writing (init, push, finalize, abort) is
804
806
  * / owner-or-agent and an AGENT additionally needs `canAppendMemory`; reading
@@ -815,7 +817,7 @@ export interface Engram {
815
817
  * / `canAppendMemory`. Holding one says nothing about the other, deliberately: taking a backup and
816
818
  * / carrying it away are different authorities.
817
819
  */
818
- backupPullChunk: ActorMethod<[string, bigint], Result_77>;
820
+ backupPullChunk: ActorMethod<[string, bigint], Result_76>;
819
821
  backupPushChunk: ActorMethod<[string, bigint, Uint8Array | number[]], Result_2>;
820
822
  /**
821
823
  * / The OWNER cancels an agent's pending key nomination; the agent keeps its current key. Refused
@@ -1011,7 +1013,7 @@ export interface Engram {
1011
1013
  * / situation rather than a safety measure. It IS gated on requireMemoryAttached: a store that
1012
1014
  * / failed its integrity check must not attest anything it cannot vouch for.
1013
1015
  */
1014
- exportMemoryRange: ActorMethod<[bigint, bigint, [] | [Principal]], Result_89>;
1016
+ exportMemoryRange: ActorMethod<[bigint, bigint, [] | [Principal]], Result_88>;
1015
1017
  /**
1016
1018
  * / ⟨0.16.0, same concept, same name — renamed from `guardianFreezePayments`⟩ The prefix LIED about who may call it.
1017
1019
  * / The gate is `requireOwnerOrGuardian`, and an owner freezing their own payments is the ordinary
@@ -1065,7 +1067,7 @@ export interface Engram {
1065
1067
  * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1066
1068
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1067
1069
  */
1068
- getActionAlertStatus: ActorMethod<[], Result_78>;
1070
+ getActionAlertStatus: ActorMethod<[], Result_77>;
1069
1071
  /**
1070
1072
  * / The agent-conversion rule's numbers.
1071
1073
  * / PUBLIC: the class of `getTopUpLimits` — a policy, nobody's data. ⟨2026-11-04, the market-route
@@ -1083,7 +1085,7 @@ export interface Engram {
1083
1085
  * / Refusal reason preserved from the trap: a grant is a power, and its absence and its
1084
1086
  * / concealment are different facts.
1085
1087
  */
1086
- getAgentRevisablePaths: ActorMethod<[], Result_69>;
1088
+ getAgentRevisablePaths: ActorMethod<[], Result_68>;
1087
1089
  /**
1088
1090
  * / OWNER-ONLY: every engagement's seat weeks on this engram, with the agent's root — the day it
1089
1091
  * / paired, the days of its first and last payment signature, a 64-week map whose bit 0 is the week
@@ -1098,7 +1100,7 @@ export interface Engram {
1098
1100
  * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1099
1101
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1100
1102
  */
1101
- getAgentSeatWeeks: ActorMethod<[bigint, bigint], Result_87>;
1103
+ getAgentSeatWeeks: ActorMethod<[bigint, bigint], Result_86>;
1102
1104
  /**
1103
1105
  * / Owner: everything written into this engram by someone other than the owner since the last
1104
1106
  * / markAgentWritesReviewed() — agent appends/revisions AND paid-session appends (see
@@ -1111,7 +1113,7 @@ export interface Engram {
1111
1113
  * / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
1112
1114
  * / engram is unchanged.
1113
1115
  */
1114
- getAgentWriteReview: ActorMethod<[], Result_86>;
1116
+ getAgentWriteReview: ActorMethod<[], Result_85>;
1115
1117
  /**
1116
1118
  * / Why anchoring is or is not advancing. PUBLIC: ungated on purpose — detecting a stalled
1117
1119
  * / engram is the point, a gated read would fail-to-empty and hand a third party fabricated zeros,
@@ -1134,7 +1136,7 @@ export interface Engram {
1134
1136
  * / was signed rather than asserted.
1135
1137
  */
1136
1138
  getAuditHead: ActorMethod<[], AuditHead>;
1137
- getBackupMetadata: ActorMethod<[string], Result_85>;
1139
+ getBackupMetadata: ActorMethod<[string], Result_84>;
1138
1140
  /**
1139
1141
  * / ⟨2026-10-21, the owner's approval of the mobile design's changes: a backup-retention getter⟩ How many backups of
1140
1142
  * / `dbType` each creator keeps, and whether that is the default — the read `setBackupRetention`
@@ -1147,7 +1149,7 @@ export interface Engram {
1147
1149
  * / the anonymous caller. A kind the setter would refuse is `#Invalid` here too
1148
1150
  * / (`Backup.getRetention`). Records nothing (a query).
1149
1151
  */
1150
- getBackupRetention: ActorMethod<[string], Result_84>;
1152
+ getBackupRetention: ActorMethod<[string], Result_83>;
1151
1153
  /**
1152
1154
  * / The canister this engram recognises as its rent biller — `null` until the registry pushes one.
1153
1155
  * /
@@ -1168,7 +1170,7 @@ export interface Engram {
1168
1170
  * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1169
1171
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1170
1172
  */
1171
- getBirthChain: ActorMethod<[], Result_83>;
1173
+ getBirthChain: ActorMethod<[], Result_82>;
1172
1174
  /**
1173
1175
  * / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ Each brake: on or off, and while
1174
1176
  * / on, who pulled it LAST (their key and whether as owner or guardian), since when, and the reason
@@ -1179,7 +1181,7 @@ export interface Engram {
1179
1181
  * / and needs no more). `pull` is null for a brake that is off, and for one carried on across the
1180
1182
  * / upgrade that added this read (who pulled it was not recorded then) — never a guessed pull.
1181
1183
  */
1182
- getBrakes: ActorMethod<[], Result_82>;
1184
+ getBrakes: ActorMethod<[], Result_81>;
1183
1185
  /**
1184
1186
  * / ⟨0.16.0, one implementation per behaviour, the interface files as the source — the interface
1185
1187
  * / plan's entry⟩ `Wire.CertifiedAuditHead`, not an anonymous record. The registry, market and biller
@@ -1207,7 +1209,7 @@ export interface Engram {
1207
1209
  * / recorded nothing while reading as if it did. The refusal is loud in the reply instead. WHAT
1208
1210
  * / WOULD MAKE THIS WRONG: a reason to record who asked — then this becomes an update that says so.
1209
1211
  */
1210
- getChildAllowance: ActorMethod<[Principal], Result_81>;
1212
+ getChildAllowance: ActorMethod<[Principal], Result_80>;
1211
1213
  /**
1212
1214
  * / Owner-only, Billing-class: what opening an engram costs this engram, the balance below which an
1213
1215
  * / agent's request is refused, the balance now, and every agent's allowance. The console's cost
@@ -1215,7 +1217,7 @@ export interface Engram {
1215
1217
  * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1216
1218
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1217
1219
  */
1218
- getChildOpening: ActorMethod<[], Result_80>;
1220
+ getChildOpening: ActorMethod<[], Result_79>;
1219
1221
  /**
1220
1222
  * / Derive the key that opens the sealed copy, encrypted under the caller's transport public key —
1221
1223
  * / for the SIGN-IN alone (the combinator's `#ownerSignIn`; the key file is refused by name: only the
@@ -1235,7 +1237,7 @@ export interface Engram {
1235
1237
  * / Named callers: an owner console signed in as the sign-in (the browser's recovery), and the owner
1236
1238
  * / kit's `--recover-key` signed by a key-file sign-in.
1237
1239
  */
1238
- getEncryptedKeyBackupKey: ActorMethod<[Uint8Array | number[]], Result_77>;
1240
+ getEncryptedKeyBackupKey: ActorMethod<[Uint8Array | number[]], Result_76>;
1239
1241
  /**
1240
1242
  * / Derive the shared memory-encryption key, encrypted under the caller's transport
1241
1243
  * / public key. Gated to owner + read-agents (the same principals allowed to read
@@ -1261,7 +1263,7 @@ export interface Engram {
1261
1263
  * / cost. Stated here because the update-for-read rule requires the reason be readable from the interface rather than
1262
1264
  * / inferred by opening the body — which is exactly what had to happen to write this line.
1263
1265
  */
1264
- getEncryptedMemoryKey: ActorMethod<[[] | [bigint], Uint8Array | number[]], Result_77>;
1266
+ getEncryptedMemoryKey: ActorMethod<[[] | [bigint], Uint8Array | number[]], Result_76>;
1265
1267
  /**
1266
1268
  * / ⟨0.16.0, owner ruling 2026-08-20⟩ `x402Support` REPORTS THE RAIL, not a constant.
1267
1269
  * /
@@ -1360,7 +1362,7 @@ export interface Engram {
1360
1362
  * / `#Err`, never a record carrying an empty string (ic402's `getEvmAddress` answers `""` on a
1361
1363
  * / failed derivation — that is fail-to-empty on a money surface, and it stops here).
1362
1364
  */
1363
- getEvmAddress: ActorMethod<[], Result_79>;
1365
+ getEvmAddress: ActorMethod<[], Result_78>;
1364
1366
  /**
1365
1367
  * / The owner's OWN EVM address, if they registered one — distinct from `getEvmAddress`, which is
1366
1368
  * / the address this canister derives for itself.
@@ -1395,7 +1397,7 @@ export interface Engram {
1395
1397
  /**
1396
1398
  * / A guardian's own channel status (their URL is their secret — each guardian sees only theirs).
1397
1399
  */
1398
- getGuardianAlertStatus: ActorMethod<[], Result_78>;
1400
+ getGuardianAlertStatus: ActorMethod<[], Result_77>;
1399
1401
  /**
1400
1402
  * / The sealed copy itself — opaque bytes only the sign-in can open. Readable by the sign-in (it
1401
1403
  * / opens them with the key `getEncryptedKeyBackupKey` derives for it) and by the key file, which
@@ -1407,7 +1409,7 @@ export interface Engram {
1407
1409
  * / Named callers: the owner kit (`--recover-key`, and its check after sealing), and an owner console
1408
1410
  * / signed in as the sign-in (the browser's recovery).
1409
1411
  */
1410
- getKeyBackupCiphertext: ActorMethod<[], Result_77>;
1412
+ getKeyBackupCiphertext: ActorMethod<[], Result_76>;
1411
1413
  /**
1412
1414
  * / Whether this engram holds a sealed copy of its owner's key, for whom, since when, whether it is
1413
1415
  * / sealed for the sign-in seated now, and whether a copy waits with an ask (`Types.KeyBackupStatus`).
@@ -1418,7 +1420,7 @@ export interface Engram {
1418
1420
  * / Named callers: the owner kit after it opens an engram (it prints whether the copy is stored), and
1419
1421
  * / an owner console showing an engram opened through another (whether recovery can work).
1420
1422
  */
1421
- getKeyBackupStatus: ActorMethod<[], Result_76>;
1423
+ getKeyBackupStatus: ActorMethod<[], Result_75>;
1422
1424
  /**
1423
1425
  * / BLS verification key under which the owner kit seals the backup (`IbeCiphertext.encrypt` to the
1424
1426
  * / sign-in's principal) and the opener verifies the derived key. Served on-canister so the kit never
@@ -1467,7 +1469,7 @@ export interface Engram {
1467
1469
  * / never renumbered: the next page starts at the last version returned plus one. Defaults
1468
1470
  * / return the whole history of any file a pre-FD engram could have held.
1469
1471
  */
1470
- getMemoryHistory: ActorMethod<[string, [] | [bigint], [] | [bigint]], Result_75>;
1472
+ getMemoryHistory: ActorMethod<[string, [] | [bigint], [] | [bigint]], Result_74>;
1471
1473
  /**
1472
1474
  * / PUBLIC: the epoch alone, and deliberately nothing else (a public rotation history would tell everyone, the party just cut off included, when an owner ended a trust relationship). A `rotatedAt[]`
1473
1475
  * / history would be a public, fleet-enumerable feed of when each owner terminated a trust
@@ -1517,7 +1519,7 @@ export interface Engram {
1517
1519
  * / forever" — a claim about what this engram will DESTROY — and an empty guard list reads as
1518
1520
  * / "nothing is held back".
1519
1521
  */
1520
- getMemoryRetentionPolicy: ActorMethod<[], Result_74>;
1522
+ getMemoryRetentionPolicy: ActorMethod<[], Result_73>;
1521
1523
  /**
1522
1524
  * / The metrics reader this engram answers — `null` until the spawning registry names one.
1523
1525
  * /
@@ -1546,7 +1548,7 @@ export interface Engram {
1546
1548
  * / client (rule 4) and bought a masked answer nobody had asked for — the 0.16.0 interface plan could not
1547
1549
  * / even find a consumer that read the masked `0`. Behind a gate there is nobody to mask it from.
1548
1550
  */
1549
- getOwnerConsole: ActorMethod<[], Result_73>;
1551
+ getOwnerConsole: ActorMethod<[], Result_72>;
1550
1552
  /**
1551
1553
  * / The engram's sign-in, as `Types.OwnerSignInView` describes it: whether this engram was opened
1552
1554
  * / through another, who its sign-in is, whether the caller is it, and any decline or waiting ask.
@@ -1557,20 +1559,20 @@ export interface Engram {
1557
1559
  * / Named callers: an owner console showing an engram opened through another (who signs in, and a
1558
1560
  * / waiting ask with Accept and Decline), and the owner kit after it opens one.
1559
1561
  */
1560
- getOwnerSignIn: ActorMethod<[], Result_72>;
1562
+ getOwnerSignIn: ActorMethod<[], Result_71>;
1561
1563
  /**
1562
1564
  * / ⟨2026-11-15⟩ The open offer, to the two parties to it: the owner and the principal it names.
1563
1565
  * / `null` when none is open or it has expired. Anyone else is refused: an offer names a principal
1564
1566
  * / who has not agreed to anything yet, so it is not public the way the custody chain is.
1565
1567
  */
1566
- getOwnershipOffer: ActorMethod<[], Result_71>;
1568
+ getOwnershipOffer: ActorMethod<[], Result_70>;
1567
1569
  /**
1568
1570
  * / Read the four profile fields in one bounded batch. Raw per-field results preserve SDK
1569
1571
  * / decryption and first-failure ordering; only an explicit NotFound means an unset field.
1570
1572
  * / Query reads retain existing permission and owner visibility, without changing read counts.
1571
1573
  * / Callers: EngramClient.getProfile (ProfileManager.getProfile, the local MCP profile tool).
1572
1574
  */
1573
- getProfile: ActorMethod<[], Result_70>;
1575
+ getProfile: ActorMethod<[], Result_69>;
1574
1576
  /**
1575
1577
  * / Owner + agents only (agents need it to avoid writing protected paths).
1576
1578
  * /
@@ -1584,7 +1586,7 @@ export interface Engram {
1584
1586
  * / writing one — so a fabricated empty here does not merely misinform, it invites the write the
1585
1587
  * / list exists to prevent.
1586
1588
  */
1587
- getProtectedPaths: ActorMethod<[], Result_69>;
1589
+ getProtectedPaths: ActorMethod<[], Result_68>;
1588
1590
  /**
1589
1591
  * / What an approval card shows beside a payment to `payTo` (`Types.RecipientHistory`): whether an x402
1590
1592
  * / signature from this engram has paid it before and since when, whether it is a listed seller and
@@ -1597,7 +1599,7 @@ export interface Engram {
1597
1599
  * / ⟨2026-11-03, the child build's pre-release fixes⟩ And when it was LAST paid (`lastPaidAtNs`; null when never).
1598
1600
  * / Named callers: an owner console's approval card for a payment request.
1599
1601
  */
1600
- getRecipientHistory: ActorMethod<[string], Result_68>;
1602
+ getRecipientHistory: ActorMethod<[string], Result_67>;
1601
1603
  /**
1602
1604
  * / Whether the metrics reader's read is answered — `true` from birth.
1603
1605
  * /
@@ -1616,7 +1618,7 @@ export interface Engram {
1616
1618
  * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1617
1619
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1618
1620
  */
1619
- getSigningFloor: ActorMethod<[], Result_67>;
1621
+ getSigningFloor: ActorMethod<[], Result_66>;
1620
1622
  /**
1621
1623
  * / The registry that spawned this engram, if it recorded one.
1622
1624
  * /
@@ -1643,7 +1645,7 @@ export interface Engram {
1643
1645
  * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1644
1646
  * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1645
1647
  */
1646
- getSpendCeiling: ActorMethod<[], Result_66>;
1648
+ getSpendCeiling: ActorMethod<[], Result_65>;
1647
1649
  /**
1648
1650
  * / Read the caps in force for a caller.
1649
1651
  * /
@@ -1662,8 +1664,8 @@ export interface Engram {
1662
1664
  * / refusal itself is now the combinator's (`#Refused getSpendPolicy: …`, `requireOwner`'s words), and
1663
1665
  * / an engram with no owner yet is refused the same way rather than answered `#Conflict`.
1664
1666
  */
1665
- getSpendPolicy: ActorMethod<[[] | [Principal]], Result_65>;
1666
- getStorageStats: ActorMethod<[], Result_64>;
1667
+ getSpendPolicy: ActorMethod<[[] | [Principal]], Result_64>;
1668
+ getStorageStats: ActorMethod<[], Result_63>;
1667
1669
  /**
1668
1670
  * / Timer arm-state. PUBLIC and deliberately so: these timers are self-arming to save cycles,
1669
1671
  * / and an optimisation nobody can verify is an optimisation nobody should trust. Cheap to read,
@@ -1671,6 +1673,9 @@ export interface Engram {
1671
1673
  * /
1672
1674
  * / IDLE STEADY STATE (no webhook, no x402 sessions, no service jobs):
1673
1675
  * / alertTimerArmed=false sessionExpiryArmed=false jobExpiryArmed=false jobExpiryFastMode=false
1676
+ * / ⟨2026-11-19, beside the line above⟩ `jobExpiryArmed` and `jobExpiryFastMode` are no longer served:
1677
+ * / the ServiceRegistry whose job sweep they described went at the 0.16.0 fresh install (Payments.mo
1678
+ * / `StableState`). The paragraphs below that discuss them are history.
1674
1679
  * /
1675
1680
  * / ⚠ CORRECTED 2026-08-19. This said `jobExpiryArmed=TRUE` and that it "stays true by design —
1676
1681
  * / ic402 keeps an hourly idle POLL because createJobFromReceipt is synchronous and cannot disarm a
@@ -1749,7 +1754,7 @@ export interface Engram {
1749
1754
  * / UPDATE, marked as a read served as an update: it awaits three ICRC-1 ledgers". It was marked in
1750
1755
  * / prose and invisible to any gate; the glyph is what the update-for-read gate matches.
1751
1756
  */
1752
- getWalletBalances: ActorMethod<[], Result_63>;
1757
+ getWalletBalances: ActorMethod<[], Result_62>;
1753
1758
  /**
1754
1759
  * / Cycles-only getter used by EngramClient.walletBalance and its stdio MCP/OpenClaw callers.
1755
1760
  * / The earlier walletBalance/walletBalances one-letter pair remains retired: this name states
@@ -1767,7 +1772,7 @@ export interface Engram {
1767
1772
  * / engram has no World ID configuration" — handed to a caller who merely lacks a grant. The
1768
1773
  * / fabrication is indistinguishable from the truth by construction.
1769
1774
  */
1770
- getWorldIdConfig: ActorMethod<[], Result_62>;
1775
+ getWorldIdConfig: ActorMethod<[], Result_61>;
1771
1776
  /**
1772
1777
  * / ⟨update-for-read⟩ UPDATE, NOT QUERY: this awaits THREE system calls — `raw_rand()` for the nonce,
1773
1778
  * / `Call.signWithEcdsa` for the signature, and `worldIdRpPublicKey()` for the derived key. A
@@ -1778,7 +1783,7 @@ export interface Engram {
1778
1783
  * / the World Developer Portal. Short-lived (300s TTL, idkit-server's default) and single-purpose —
1779
1784
  * / it authorizes opening one verification request, nothing else.
1780
1785
  */
1781
- getWorldIdRpContext: ActorMethod<[], Result_61>;
1786
+ getWorldIdRpContext: ActorMethod<[], Result_60>;
1782
1787
  /**
1783
1788
  * / Owner-only: the EVM address derived from the engram's dedicated World ID RP signing key (the
1784
1789
  * / "worldid-rp" tECDSA path). Register THIS address as the rp_id's signer in the World Developer
@@ -1813,8 +1818,12 @@ export interface Engram {
1813
1818
  * / `///`, so the dead name was PUBLISHED in engram.did and pointed every client at a method the
1814
1819
  * / canister does not serve. The tombstones below and at `about()` are historical and correct as
1815
1820
  * / written; this one was present tense, which is the difference that matters.⟩
1821
+ * /
1822
+ * / ⟨2026-11-19, beside "stays role-gated" above⟩ Owner only now (it was any role: owner, agent or guardian). The
1823
+ * / nullifier is the owner's unique-human pseudonym; an agent never needed it, and a guardian is a check on agents,
1824
+ * / not a party to it. Everyone else reads `about().verifiedHuman`.
1816
1825
  */
1817
- getWorldIdVerification: ActorMethod<[], Result_60>;
1826
+ getWorldIdVerification: ActorMethod<[], Result_59>;
1818
1827
  /**
1819
1828
  * / ⟨0.16.0, refusals are values, never traps⟩ THE EMERGENCY FAMILY. Every refusal below is `#Refused`
1820
1829
  * / or `#NotFound`, and the absence of a `#Conflict` here is the point: these are the calls someone
@@ -1872,36 +1881,6 @@ export interface Engram {
1872
1881
  }
1873
1882
  | { Err: { description: string; error_code: bigint } }
1874
1883
  >;
1875
- /**
1876
- * / Owner-only: is the derived EVM address CACHED right now, without deriving it to find out.
1877
- * /
1878
- * / WHY A SEPARATE METHOD AND NOT A FIELD ON `getEvmAddress`. That method cannot answer this
1879
- * / question by construction: when the cache is null it DERIVES, caches the result and returns it,
1880
- * / so by the time a caller sees the reply the cache is populated either way. Asking it whether the
1881
- * / cache had been populated changes the answer.
1882
- * /
1883
- * / WHY IT EXISTS AT ALL, since a public surface is never free on a canister meant to go public.
1884
- * / `evmAddressCache` is money-classed and its annotation says why: derivation is deterministic, so
1885
- * / a lost cache LOOKS harmless, but until something re-derives, the EVM payment quote advertises
1886
- * / the fallback — an address that cannot receive. A window in which a live money surface publishes
1887
- * / an unreceivable address is a money defect, not a cache miss. Nothing else in this canister
1888
- * / reads that var — one reader and two writers, all in this file — so before this method there was
1889
- * / no observation anywhere that could tell a survived cache from a rebuilt one, and the upgrade
1890
- * / coverage gate carried a money-classed var nothing could prove.
1891
- * /
1892
- * / ⚠ IT MUST NEVER DERIVE. A version that fell back to deriving would answer `true` always and
1893
- * / prove nothing — the same trap `getEvmAddress` sets for anyone trying to use it as a witness.
1894
- * / It reads the var and nothing else, and it is a `query` precisely so that it CANNOT make the
1895
- * / inter-canister call a derivation requires: the restriction is enforced by the system, not by
1896
- * / this comment.
1897
- * /
1898
- * / Owner-gated because it reports on custody posture, and answered as a Result so that a
1899
- * / wrong-identity caller gets a refusal rather than a bare `false` that reads as "no address yet".
1900
- * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1901
- * / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
1902
- * / engram is unchanged.
1903
- */
1904
- isEvmAddressCached: ActorMethod<[], Result_59>;
1905
1884
  /**
1906
1885
  * / Issue an OAuth authorization code. Called by an OAuth client's sign-in bridge
1907
1886
  * / (an `/auth/connector`-style route) after II authentication. The client then
@@ -2231,6 +2210,9 @@ export interface Engram {
2231
2210
  * / checks the page against. Flattening to a bare `Page` to satisfy the shape would buy uniformity
2232
2211
  * / with the disclosures that make the page verifiable — the hidden-bound defect the interface plan
2233
2212
  * / itself names on previewCondense's entry.
2213
+ * / ⟨2026-11-19⟩ The count argument is `limit`, as on every other list (it was `max` here and on
2214
+ * / `listMemoryExportReceipts`, `listCondenseCheckpoints` and `getMemoryHistory`). A name only: Candid passes
2215
+ * / arguments by position, so no caller changes.
2234
2216
  */
2235
2217
  listMemoryLog: ActorMethod<[bigint, bigint, [] | [Principal]], Result_40>;
2236
2218
  /**
@@ -2812,6 +2794,16 @@ export interface Engram {
2812
2794
  * / was the block index alone, which read as the amount. If the session's record is removed before
2813
2795
  * / the amount can be read back — a session closed in the same moment as the recovery and cleaned up
2814
2796
  * / during its transfer — it answers `#Other` naming the block, never a guessed amount.
2797
+ * /
2798
+ * / ⟨2026-11-18, ic402 2.22.0, beside the two paragraphs above⟩ A recovery is also capped at what the
2799
+ * / session's close recorded as still owed to the payer, less one ledger fee, and lowers that record by
2800
+ * / what it paid. So asking for everything returns what the escrow can pay, and `amountE6` says how
2801
+ * / much. A session with no such record (its close refunded in full, or it was recovered already) is
2802
+ * / refused: "Nothing is owed on this session…". One recovery of a session runs at a time.
2803
+ * /
2804
+ * / ⟨2026-11-19, ic402 2.23.0, beside the paragraphs above⟩ `amountE6` is now the library's own figure for
2805
+ * / what it paid, from its receipt. The `#Other` answer for a record removed during the transfer no longer
2806
+ * / occurs.
2815
2807
  */
2816
2808
  recoverEscrow: ActorMethod<[string, bigint], Result_20>;
2817
2809
  /**
@@ -3600,21 +3592,7 @@ export interface Engram {
3600
3592
  * / destructured on entry rather than threaded through — the diff is the signature and this line,
3601
3593
  * / which is what makes a reshape of a money path reviewable.
3602
3594
  */
3603
- signX402Payment: ActorMethod<
3604
- [
3605
- {
3606
- tokenVersion: string;
3607
- tokenAddress: string;
3608
- approvalId: [] | [string];
3609
- recipient: string;
3610
- rationale: [] | [string];
3611
- tokenName: string;
3612
- chainId: bigint;
3613
- amount: bigint;
3614
- },
3615
- ],
3616
- Result_4
3617
- >;
3595
+ signX402Payment: ActorMethod<[X402SignRequest], Result_4>;
3618
3596
  /**
3619
3597
  * / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ A GUARDIAN STEPS DOWN: the caller ends their own
3620
3598
  * / guardianship of this engram. It removes a power from the one who holds it and grants none.
@@ -4056,6 +4034,13 @@ export interface Engram {
4056
4034
  * / gate is unchanged and still binds: a payments freeze stops it, the recipient must be on the
4057
4035
  * / owner's EVM allowlist if the owner has set one, the per-transaction and per-day caps hold, and
4058
4036
  * / an over-policy request goes to the OWNER'S approval queue rather than through.
4037
+ * / ⟨2026-11-19, beside the sentence above⟩ The allowlist clause is history: the never-populated list
4038
+ * / and its check went at the 0.16.0 fresh install. The freeze, the caps and the queue still bind.
4039
+ * /
4040
+ * / ⟨2026-11-19, at the 0.16.0 fresh install⟩ ONE RECORD, THE OWNER RAIL'S SHAPE (`Types.X402SignRequest`).
4041
+ * / This took eight positional arguments, `tokenAddress` and `recipient` side by side as two `Text`
4042
+ * / values a caller could swap without a type error; it now takes the same named record as
4043
+ * / `signX402Payment`, so the two doors cannot drift apart and a swap is a field name, not a position.
4059
4044
  * /
4060
4045
  * / `#ApprovalPending` is a real answer here, not an error, exactly as it is for an agent: the
4061
4046
  * / market is told the spend needs the owner and can retry with the `approvalId` once granted. A
@@ -4068,10 +4053,7 @@ export interface Engram {
4068
4053
  * / ⟨2026-11-16⟩ REFUSED UNTIL THE OWNER SETS THAT POLICY. While the owner has set no spending
4069
4054
  * / policy for the market's principal, this method and `sysSignEip712` sign nothing.
4070
4055
  */
4071
- sysSignX402Payment: ActorMethod<
4072
- [bigint, string, string, bigint, string, string, [] | [string], [] | [string]],
4073
- Result_4
4074
- >;
4056
+ sysSignX402Payment: ActorMethod<[X402SignRequest], Result_4>;
4075
4057
  /**
4076
4058
  * / Write an `alerts.test` entry into the audit log; the drain timer delivers it to the webhook
4077
4059
  * / within ~60s. ⟨2026-10-29, beside "within ~60s"⟩ Within seconds (a minute if a delivery was just
@@ -4496,9 +4478,7 @@ export interface MemoryMaintainStatus {
4496
4478
  refusedQuota: string;
4497
4479
  more: boolean;
4498
4480
  lastEvictions: bigint;
4499
- lastScrubbed: bigint;
4500
4481
  lastMaintainAtNs: [] | [bigint];
4501
- totalFindings: bigint;
4502
4482
  refused: boolean;
4503
4483
  }
4504
4484
  export interface MemoryRangeExport {
@@ -4882,45 +4862,44 @@ export type Result_55 = { Ok: AgentSpendToday } | { Err: Error };
4882
4862
  export type Result_56 = { Ok: Page_25 } | { Err: Error };
4883
4863
  export type Result_57 = { Ok: Page_26 } | { Err: Error };
4884
4864
  export type Result_58 = { Ok: string } | { Err: Error };
4885
- export type Result_59 = { Ok: boolean } | { Err: Error };
4865
+ export type Result_59 = { Ok: [] | [string] } | { Err: Error };
4886
4866
  export type Result_6 = { Ok: { returned: bigint } } | { Err: Error };
4887
- export type Result_60 = { Ok: [] | [string] } | { Err: Error };
4888
- export type Result_61 = { Ok: WorldIdRpContext } | { Err: Error };
4889
- export type Result_62 = { Ok: WorldIdConfig } | { Err: Error };
4890
- export type Result_63 = { Ok: WalletBalances } | { Err: Error };
4891
- export type Result_64 = { Ok: StorageReport } | { Err: Error };
4892
- export type Result_65 = { Ok: SpendingPolicy } | { Err: Error };
4893
- export type Result_66 = { Ok: SpendCeiling } | { Err: Error };
4894
- export type Result_67 = { Ok: SigningFloorStatus } | { Err: Error };
4895
- export type Result_68 = { Ok: RecipientHistory } | { Err: Error };
4896
- export type Result_69 = { Ok: { paths: Array<string> } } | { Err: Error };
4867
+ export type Result_60 = { Ok: WorldIdRpContext } | { Err: Error };
4868
+ export type Result_61 = { Ok: WorldIdConfig } | { Err: Error };
4869
+ export type Result_62 = { Ok: WalletBalances } | { Err: Error };
4870
+ export type Result_63 = { Ok: StorageReport } | { Err: Error };
4871
+ export type Result_64 = { Ok: SpendingPolicy } | { Err: Error };
4872
+ export type Result_65 = { Ok: SpendCeiling } | { Err: Error };
4873
+ export type Result_66 = { Ok: SigningFloorStatus } | { Err: Error };
4874
+ export type Result_67 = { Ok: RecipientHistory } | { Err: Error };
4875
+ export type Result_68 = { Ok: { paths: Array<string> } } | { Err: Error };
4876
+ export type Result_69 = { Ok: ProfileRead } | { Err: Error };
4897
4877
  export type Result_7 = { Ok: SignatureCounts } | { Err: Error };
4898
- export type Result_70 = { Ok: ProfileRead } | { Err: Error };
4899
- export type Result_71 = { Ok: [] | [Offer] } | { Err: Error };
4900
- export type Result_72 = { Ok: OwnerSignInView } | { Err: Error };
4901
- export type Result_73 = { Ok: OwnerConsole } | { Err: Error };
4902
- export type Result_74 = { Ok: MemoryRetentionPolicy } | { Err: Error };
4903
- export type Result_75 = { Ok: MemoryHistory } | { Err: Error };
4904
- export type Result_76 = { Ok: KeyBackupStatus } | { Err: Error };
4905
- export type Result_77 = { Ok: Uint8Array | number[] } | { Err: Error };
4906
- export type Result_78 = { Ok: AlertStatus } | { Err: Error };
4907
- export type Result_79 = { Ok: EvmAddresses } | { Err: Error };
4878
+ export type Result_70 = { Ok: [] | [Offer] } | { Err: Error };
4879
+ export type Result_71 = { Ok: OwnerSignInView } | { Err: Error };
4880
+ export type Result_72 = { Ok: OwnerConsole } | { Err: Error };
4881
+ export type Result_73 = { Ok: MemoryRetentionPolicy } | { Err: Error };
4882
+ export type Result_74 = { Ok: MemoryHistory } | { Err: Error };
4883
+ export type Result_75 = { Ok: KeyBackupStatus } | { Err: Error };
4884
+ export type Result_76 = { Ok: Uint8Array | number[] } | { Err: Error };
4885
+ export type Result_77 = { Ok: AlertStatus } | { Err: Error };
4886
+ export type Result_78 = { Ok: EvmAddresses } | { Err: Error };
4887
+ export type Result_79 = { Ok: ChildOpening } | { Err: Error };
4908
4888
  export type Result_8 = { Ok: RailHealth } | { Err: Error };
4909
- export type Result_80 = { Ok: ChildOpening } | { Err: Error };
4910
- export type Result_81 = { Ok: ChildAllowanceRow } | { Err: Error };
4911
- export type Result_82 = { Ok: Brakes } | { Err: Error };
4912
- export type Result_83 = { Ok: Array<BirthRecord> } | { Err: Error };
4913
- export type Result_84 = { Ok: BackupRetention } | { Err: Error };
4914
- export type Result_85 = { Ok: BackupMetadata } | { Err: Error };
4915
- export type Result_86 = { Ok: AgentWriteReview } | { Err: Error };
4916
- export type Result_87 = { Ok: Page_27 } | { Err: Error };
4917
- export type Result_89 = { Ok: MemoryRangeExport } | { Err: Error };
4889
+ export type Result_80 = { Ok: ChildAllowanceRow } | { Err: Error };
4890
+ export type Result_81 = { Ok: Brakes } | { Err: Error };
4891
+ export type Result_82 = { Ok: Array<BirthRecord> } | { Err: Error };
4892
+ export type Result_83 = { Ok: BackupRetention } | { Err: Error };
4893
+ export type Result_84 = { Ok: BackupMetadata } | { Err: Error };
4894
+ export type Result_85 = { Ok: AgentWriteReview } | { Err: Error };
4895
+ export type Result_86 = { Ok: Page_27 } | { Err: Error };
4896
+ export type Result_88 = { Ok: MemoryRangeExport } | { Err: Error };
4897
+ export type Result_89 = { Ok: CondenseResult } | { Err: Error };
4918
4898
  export type Result_9 = { Ok: Array<Seat> } | { Err: Error };
4919
- export type Result_90 = { Ok: CondenseResult } | { Err: Error };
4920
- export type Result_91 = { Ok: Conversion } | { Err: Error };
4921
- export type Result_93 = { Ok: Eip712Registration } | { Err: Error };
4922
- export type Result_95 = { Ok: Accepted } | { Err: Error };
4923
- export type Result_96 = { Ok: AgentRecord } | { Err: Error };
4899
+ export type Result_90 = { Ok: Conversion } | { Err: Error };
4900
+ export type Result_92 = { Ok: Eip712Registration } | { Err: Error };
4901
+ export type Result_94 = { Ok: Accepted } | { Err: Error };
4902
+ export type Result_95 = { Ok: AgentRecord } | { Err: Error };
4924
4903
  export interface ResyncReport {
4925
4904
  startsAcknowledged: bigint;
4926
4905
  cannotBeRecorded: Array<UnrecordableEngagement>;
@@ -5100,8 +5079,6 @@ export interface TextAppendReceipt {
5100
5079
  sent: Uint8Array | number[];
5101
5080
  }
5102
5081
  export interface TimerHealth {
5103
- jobExpiryFastMode: boolean;
5104
- jobExpiryArmed: boolean;
5105
5082
  ic402Maintenance: [] | [Ic402Maintenance];
5106
5083
  alertTimerArmed: boolean;
5107
5084
  upkeepRejected: [] | [bigint];
@@ -5159,6 +5136,16 @@ export interface WriteReceipt {
5159
5136
  }
5160
5137
  export type X402SignOutcome =
5161
5138
  { ApprovalPending: ApprovalRequest } | { Signed: SignedAuthorization };
5139
+ export interface X402SignRequest {
5140
+ tokenVersion: string;
5141
+ tokenAddress: string;
5142
+ approvalId: [] | [string];
5143
+ recipient: string;
5144
+ rationale: [] | [string];
5145
+ tokenName: string;
5146
+ chainId: bigint;
5147
+ amount: bigint;
5148
+ }
5162
5149
  export interface _SERVICE extends Engram {}
5163
5150
  export declare const idlFactory: IDL.InterfaceFactory;
5164
5151
  export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];