@engramx/idl 0.16.0-rc.8 → 0.16.0

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.
@@ -7,15 +7,17 @@ export interface About {
7
7
  guardianCount: bigint;
8
8
  totalMemoryWrites: bigint;
9
9
  lastAgentWriteAtNs: [] | [bigint];
10
- distinctReaderPrincipals: bigint;
11
10
  lastWriteAtNs: [] | [bigint];
12
11
  totalBackupSize: bigint;
13
12
  backupCount: bigint;
13
+ endedAgentCount: [] | [bigint];
14
14
  lastAgentReadAtNs: [] | [bigint];
15
15
  firstWriteAtNs: [] | [bigint];
16
16
  agentCount: bigint;
17
+ activeAgentCount: [] | [bigint];
17
18
  paidMemoryReadEnabled: boolean;
18
19
  version: string;
20
+ timersPausedSinceDayNs: [] | [bigint];
19
21
  paymentsFrozen: boolean;
20
22
  agentMemoryWrites: bigint;
21
23
  agentMemoryReads: bigint;
@@ -24,12 +26,15 @@ export interface About {
24
26
  firstAgentWriteAtNs: [] | [bigint];
25
27
  lastReadAtNs: [] | [bigint];
26
28
  writesPaused: boolean;
27
- distinctReaderClients: bigint;
28
29
  totalMemoryReads: bigint;
29
30
  walletActivatedAtNs: [] | [bigint];
30
31
  encryptionEnabled: boolean;
31
32
  paidMemoryWriteEnabled: boolean;
32
33
  }
34
+ export interface Accepted {
35
+ closed: Ended;
36
+ handed: { MovedByRegistry: null } | { NotHeldHere: null } | { MovedByEngram: null };
37
+ }
33
38
  export interface ActionAuth {
34
39
  signature: Uint8Array | number[];
35
40
  pubkey: Uint8Array | number[];
@@ -46,6 +51,12 @@ export interface AgentCard {
46
51
  description: string;
47
52
  services: Array<ServiceEntry>;
48
53
  }
54
+ export interface AgentConvertRule {
55
+ spacingSeconds: bigint;
56
+ minPerCallE6: bigint;
57
+ maxPerCallE6: bigint;
58
+ belowDays: bigint;
59
+ }
49
60
  export type AgentEndReason =
50
61
  | { Resigned: null }
51
62
  | { OwnerRevoked: null }
@@ -56,6 +67,15 @@ export interface AgentEnding {
56
67
  day: bigint;
57
68
  reason: AgentEndReason;
58
69
  }
70
+ export interface AgentGrant {
71
+ key: Principal;
72
+ permissions: AgentPermissions;
73
+ name: string;
74
+ paymentsStoppedBy: [] | [PaymentsStop];
75
+ paymentsFrozen: [] | [boolean];
76
+ paymentsNow: [] | [PaymentsNow];
77
+ paymentLimits: PaymentLimits;
78
+ }
59
79
  export interface AgentPaymentSignatures {
60
80
  agent: Principal;
61
81
  signedToday: bigint;
@@ -86,6 +106,16 @@ export interface AgentRecord {
86
106
  keyRotatedAtNs: bigint;
87
107
  keyHeldFrom: LogPosition;
88
108
  }
109
+ export interface AgentSpendRow {
110
+ agent: Principal;
111
+ spentToday: [] | [bigint];
112
+ root: Principal;
113
+ maxPerDay: [] | [bigint];
114
+ }
115
+ export interface AgentSpendToday {
116
+ dayStartNs: bigint;
117
+ agents: Page_24;
118
+ }
89
119
  export type AgentStatus = { Active: null } | { Resigned: null } | { Revoked: null };
90
120
  export interface AgentWriteReview {
91
121
  cursor: bigint;
@@ -125,10 +155,15 @@ export interface AnchorPushStatus {
125
155
  currentTotal: bigint;
126
156
  timerTickAtNs: [] | [bigint];
127
157
  okTotal: bigint;
158
+ checkInIntervalSeconds: [] | [bigint];
128
159
  carrierArmedAtNs: bigint;
129
160
  attemptAtNs: [] | [bigint];
130
161
  skipCursor: bigint;
162
+ timersPauseReason: [] | [string];
131
163
  lastError: string;
164
+ nextCheckInDueAtNs: [] | [bigint];
165
+ timersPausedAtNs: [] | [bigint];
166
+ nextAnchorAttemptAtNs: [] | [bigint];
132
167
  }
133
168
  export interface ApprovalRequest {
134
169
  id: string;
@@ -177,6 +212,11 @@ export interface BackupMetadata {
177
212
  chunkCount: bigint;
178
213
  parentBackupId: [] | [string];
179
214
  }
215
+ export interface BackupRetention {
216
+ maxBackups: bigint;
217
+ isDefault: boolean;
218
+ dbType: string;
219
+ }
180
220
  export interface BackupRetentionReport {
181
221
  maxBackups: bigint;
182
222
  dbType: string;
@@ -201,12 +241,40 @@ export interface BearerToken {
201
241
  issuedBy: Principal;
202
242
  }
203
243
  export type BearerTokenStatus = { Active: null } | { Revoked: null } | { Expired: null };
244
+ export interface BirthRecord {
245
+ bornAtNs: bigint;
246
+ parentFingerprint: [] | [Uint8Array | number[]];
247
+ child: Principal;
248
+ secret: Uint8Array | number[];
249
+ version: bigint;
250
+ number: bigint;
251
+ parent: [] | [Principal];
252
+ }
253
+ export interface BrakePull {
254
+ by: Principal;
255
+ atNs: bigint;
256
+ role: BrakeRole;
257
+ reason: [] | [string];
258
+ }
259
+ export type BrakeRole = { Guardian: null } | { Owner: null };
260
+ export interface BrakeState {
261
+ on: boolean;
262
+ pull: [] | [BrakePull];
263
+ }
264
+ export interface Brakes {
265
+ payments: BrakeState;
266
+ writes: BrakeState;
267
+ }
204
268
  export interface CallerSignatureCount {
205
269
  count: bigint;
206
270
  role: Role;
207
271
  root: [] | [Principal];
208
272
  caller: Principal;
209
273
  }
274
+ export interface CanonicalRead {
275
+ entry: Entry;
276
+ readPath: string;
277
+ }
210
278
  export interface CertifiedAuditHead {
211
279
  total: bigint;
212
280
  certificate: [] | [Uint8Array | number[]];
@@ -216,7 +284,7 @@ export interface CertifiedAuditHead {
216
284
  }
217
285
  export interface CheckpointPage {
218
286
  firstAvailableSeq: bigint;
219
- page: Page_15;
287
+ page: Page_19;
220
288
  scannedThroughSeq: bigint;
221
289
  }
222
290
  export interface ChildAllowanceRow {
@@ -263,8 +331,13 @@ export interface CondenseResult {
263
331
  historyBytesDelta: bigint;
264
332
  opCount: bigint;
265
333
  }
266
- export type ControlHandover =
267
- { MovedByRegistry: null } | { NotHeldHere: null } | { MovedByEngram: null };
334
+ export interface Conversion {
335
+ token: string;
336
+ daysLeftBefore: [] | [bigint];
337
+ amountE6: bigint;
338
+ cyclesAdded: bigint;
339
+ finishedBeforeRemovalSeen: boolean;
340
+ }
268
341
  export interface CycleSnapshot {
269
342
  seq: bigint;
270
343
  source: { balance: null } | { self: null };
@@ -282,6 +355,11 @@ export interface Eip3009Authorization {
282
355
  nonce: Uint8Array | number[];
283
356
  validBefore: bigint;
284
357
  }
358
+ export interface Eip712Destination {
359
+ activeFromNs: bigint;
360
+ value: string;
361
+ }
362
+ export type Eip712FieldRule = { mustEqual: string } | { atMost: { max: bigint; decimals: bigint } };
285
363
  export interface Eip712Registration {
286
364
  encodeTypeString: string;
287
365
  cooloffEndsAtNs: bigint;
@@ -294,6 +372,25 @@ export interface Eip712SignatureOut {
294
372
  rendered: string;
295
373
  digest: Uint8Array | number[];
296
374
  }
375
+ export interface Eip712TypeView {
376
+ primaryType: string;
377
+ encodeTypeString: string;
378
+ cooloffEndsAtNs: bigint;
379
+ domainName: string;
380
+ typeId: Uint8Array | number[];
381
+ verifyingContract: string;
382
+ dailySignCap: bigint;
383
+ fields: Array<[string, string]>;
384
+ domainSeparator: Uint8Array | number[];
385
+ destinationFields: Array<string>;
386
+ authorityClass: AuthorityClass;
387
+ typeHash: Uint8Array | number[];
388
+ registeredAtNs: bigint;
389
+ fieldRules: Array<[string, Eip712FieldRule]>;
390
+ chainId: bigint;
391
+ domainVersion: string;
392
+ ackIrrevocable: boolean;
393
+ }
297
394
  export type Eip712Value =
298
395
  | { string: string }
299
396
  | { bool: boolean }
@@ -301,11 +398,22 @@ export type Eip712Value =
301
398
  | { address: string }
302
399
  | { fixedBytes: Uint8Array | number[] }
303
400
  | { bytes: Uint8Array | number[] };
401
+ export type End = { at: bigint } | { all: null };
402
+ export interface Ended {
403
+ typedDataDestinationsRemoved: bigint;
404
+ approvalsEnded: bigint;
405
+ sellersRemoved: bigint;
406
+ invitesVoided: bigint;
407
+ guardiansRemoved: bigint;
408
+ agentRecordsRemoved: bigint;
409
+ agentsEnded: bigint;
410
+ callerPoliciesRemoved: bigint;
411
+ }
304
412
  export interface Engram {
305
413
  /**
306
414
  * / ⟨0.16.0⟩ `about()` — the ONE public projection, replacing `status()` and absorbing `metrics()`.
307
415
  * /
308
- * / Two public projections of one canister was the L2.2 defect: both answered "what is this engram
416
+ * / Two public projections of one canister was the one-concept-two-names defect: both answered "what is this engram
309
417
  * / like", disagreed about which counters they carried, and `status()` additionally masked two
310
418
  * / fields behind an `authorized` flag whose own declaration admitted the problem — "a consumer
311
419
  * / that must remember to check a sibling flag is one that will eventually forget."
@@ -313,7 +421,7 @@ export interface Engram {
313
421
  * / The fix is not a better flag. The gated fields MOVED (see `getOwnerConsole`), so there is no
314
422
  * / masked field to forget and no flag to check. Reaching the gated record is the authorization.
315
423
  * /
316
- * / Ungated by design and marked for the L8 gate-grep.
424
+ * / Ungated by design and marked for the public-reason gate's grep.
317
425
  * / PUBLIC: existence, shape, posture and day-floored activity. No principal, no balance, no
318
426
  * / precise timestamp — nothing here identifies a person or reveals when they are at the keyboard.
319
427
  */
@@ -335,11 +443,106 @@ export interface Engram {
335
443
  * / test/key-replacement.test.mo runs it; this body names no roster gate, because the caller holds
336
444
  * / no role here until the move.
337
445
  */
338
- acceptAgentKeyNomination: ActorMethod<[Principal], Result_71>;
446
+ acceptAgentKeyNomination: ActorMethod<[Principal], Result_95>;
447
+ /**
448
+ * / ⟨2026-11-15, from an adversarial review, ruled the same day: THE NEW OWNER MUST ACCEPT, and on
449
+ * / acceptance what the former owner granted is ended, not carried over⟩ THE PRINCIPAL AN OFFER
450
+ * / NAMES TAKES THE ENGRAM, as themselves. This is the only call that hands an owned engram to
451
+ * / someone else.
452
+ * /
453
+ * / ORDER. On an engram a registry spawned, the caller first calls the registry's
454
+ * / `acceptEngramOffer(<this engram>)`: the registry moves its record only for a principal who told
455
+ * / it so directly, and refuses this call's report otherwise, by name, with nothing changed. A
456
+ * / standalone engram needs this call alone. Then, here: the registry's record and control of the
457
+ * / code move exactly as a change of owner always did (`moveOwnership`; the answer's `handed` says
458
+ * / who moved control), and ONLY THEN the owner changes, the custody row is written
459
+ * / (`authorizedBy` is the former owner, who offered) and the offer is cleared. If control cannot
460
+ * / move, nothing changes here and the offer stays open, so the same call again finishes it.
461
+ * / ⟨2026-11-15, later, from a review, beside "the same call again finishes it" above⟩ That sentence
462
+ * / was not true when it was written: the registry removed its filed offer when it moved its
463
+ * / record, and its put-back did not bring the row back, so the same call was refused until the
464
+ * / owner offered again (MEASURED on PocketIC). The registry now removes the row only where a
465
+ * / change of owner finishes, so after a put-back both offers stand, the caller's acceptance at the
466
+ * / registry with them, and the same call again finishes it once the cause is fixed. Both offers
467
+ * / still end at their expiry (7 days from the offer); after that the owner offers again and the
468
+ * / named principal accepts again, at the registry and then here.
469
+ * /
470
+ * / WHAT ENDS, in the same message that changes the owner (`closed` counts them):
471
+ * / · every AGENT, active or not, is removed, with its ending kept in `agentPurgeLog` and sent
472
+ * / to the registry (recorded there as ended by a reset, the one ending that removes a record).
473
+ * / Reason: an agent acts on the owner's word, and that owner is gone. Measured: a key the
474
+ * / former owner paired read a file the new owner wrote.
475
+ * / · every GUARDIAN and every unredeemed agent or guardian INVITE. Reason: a guardian can
476
+ * / freeze payments and pause writes. Measured: the former owner's guardian did both.
477
+ * / · ⟨2026-11-15, later, from a review⟩ every CHILD ALLOWANCE (`setChildAllowance`), with its
478
+ * / write counter moved on so an opening in flight gives nothing back. Reason: an allowance
479
+ * / spends this engram's compute (1.3T an opening) on the former owner's approval, and it is
480
+ * / kept by an agent's lasting identity, so it outlived the agent record. Measured: after a
481
+ * / hand-over, a key the NEW owner paired opened an engram on the former owner's allowance.
482
+ * / The record line counts them (`childAllowances=`); the reply's `closed` does not.
483
+ * / · the SPENDING LIMITS: every per-key policy is removed, the general policy goes back to a
484
+ * / new engram's (`OwnerHandover.STARTING_POLICY`), and the engram-wide daily ceiling goes
485
+ * / back to `SpendCeiling.DEFAULT_ENGRAM_DAY`. Reason: a limit the former owner removed is a
486
+ * / grant. Measured: a policy with no limit and a ceiling of none both stood.
487
+ * / · every SELLER and payout address, with today's per-seller totals. Reason: a listed seller
488
+ * / is paid above the ordinary class on the former owner's approval.
489
+ * / · every APPROVAL REQUEST still waiting, and every one the former owner approved that is not
490
+ * / yet used: marked denied, with the reason (`OwnerHandover.APPROVAL_ENDED`). The rows stay.
491
+ * / · the registered EVM WITHDRAWAL ADDRESS (it was the former owner's, and without a guardian
492
+ * / it could not be changed), every typed-data DESTINATION (an empty list refuses every
493
+ * / signature that names a destination), the ALERT WEBHOOK (it posted this engram's activity
494
+ * / to the former owner's address) and both PAID-MEMORY switches (off, as a new engram's).
495
+ * /
496
+ * / WHAT IS KEPT, and why:
497
+ * / · the connector TOKEN rows the former owner issued. They are kept as rows and NOT HONOURED:
498
+ * / since 2026-09-29 a token whose issuer is not the current owner is refused at the door
499
+ * / (`BearerTokens.standing`), and the roster shows the new owner each one as the former
500
+ * / owner's. Revoking them here would only rewrite what those rows say happened.
501
+ * / · the MEMORY FILES and their history, the RECORD and its counters, the custody chain: they
502
+ * / are the engram; a hand-over that emptied it would hand over nothing, and an engram never
503
+ * / makes itself look new. `resetEngram` is the new owner's own choice for that.
504
+ * / · TODAY'S SPENDING TOTALS (per key and engram-wide): a hand-over never gives back an
505
+ * / allowance already spent today.
506
+ * / · the two BRAKES as they stand (payments frozen, writes paused): a brake only stops things,
507
+ * / and the new owner releases it themselves.
508
+ * / · the registered typed-data TYPES and their rules (a type that has signed is part of what
509
+ * / the record's signature rows mean; with no destination left they sign nothing that names
510
+ * / one), the paid history of addresses, the seat weeks, protected and revisable paths, the
511
+ * / retention and backup settings, the encryption switch, and open paid sessions (a payer's
512
+ * / money, theirs to close).
513
+ * / · what the registry set once at birth (biller, market, metrics reader, consent origin): it
514
+ * / was never the former owner's to set.
515
+ * / · NOT RULED, kept for now and named so nobody takes it for decided: the proof-of-personhood
516
+ * / flag and its stored result. It attests the person who was the owner when it was made.
517
+ * / ⟨2026-11-16, beside "NOT RULED"⟩ Ruled: it ENDS. The flag and its stored result are
518
+ * / cleared at an accepted hand-over (`endFormerOwnersGrants`), so `verifiedHuman` reads false
519
+ * / until the new owner verifies as themselves.
520
+ * /
521
+ * / Refused, with nothing changed: the anonymous caller; anyone the open offer does not name, and
522
+ * / an expired offer (`OwnershipOffer.acceptRefusal`); an engram opened through another; a full
523
+ * / custody chain; whatever the registry refuses (its own words, with a sentence saying the caller
524
+ * / did not become the owner).
525
+ */
526
+ acceptOwnership: ActorMethod<[], Result_94>;
527
+ /**
528
+ * / The person the owner asked again ACCEPTS: they become this engram's sign-in, and the sealed copy
529
+ * / that came with the ask becomes the engram's (sealed for them). Until this call they have no power
530
+ * / at all. Callable only by that person while the ask waits; refused (as at birth) if they are now
531
+ * / an agent or a guardian here.
532
+ * / Named caller: an owner console — "accept" on a waiting ask, signed in as the person asked.
533
+ */
534
+ acceptSignIn: ActorMethod<[], Result_2>;
339
535
  /**
340
536
  * / Consensus transform for the alert webhook outcall: collapse the response to status-only so
341
537
  * / replicas agree regardless of response headers/body (we only care that the POST landed 2xx).
342
538
  * /
539
+ * / ⟨CORRECTED 2026-10-21⟩ No longer a consensus transform: the alert outcall is non-replicated
540
+ * / (`is_replicated = ?false` in `scanAndPost`), so ONE node sends the POST and runs this on its
541
+ * / own response — there are no replicas to agree, and "on every replica" below now means "on that
542
+ * / node". It stays so the response is collapsed to status-only before the engram reads it. The
543
+ * / PUBLIC reasoning below is unchanged: the outcall protocol still calls it with no caller identity.
544
+ * / `worldIdTransform` is still a true consensus transform (World ID stays replicated).
545
+ * /
343
546
  * / PUBLIC: not a choice. The management canister invokes a transform on every replica as part of
344
547
  * / the HTTP-outcall protocol, and that invocation carries no caller identity to gate on — a gate
345
548
  * / here would refuse the only caller there is and break every alert this canister sends. Safe
@@ -349,10 +552,45 @@ export interface Engram {
349
552
  [{ context: Uint8Array | number[]; response: HttpRequestResult }],
350
553
  HttpRequestResult
351
554
  >;
555
+ /**
556
+ * / Owner-managed destination allowlist. Additions LOOSEN and wait 24h; removals TIGHTEN
557
+ * / and apply instantly — the asymmetry the signing design ratified on 2026-08-04 (tightening applies
558
+ * / at once, loosening waits), applied to the one mutable policy surface.
559
+ * /
560
+ * / ⟨2026-10-14, the owner's destination-list ruling⟩ ONE LIST PER REGISTERED ACTION. `addEvmWithdrawDestination`,
561
+ * / `removeEvmWithdrawDestination` and `listEvmWithdrawDestinations` — one list for every action —
562
+ * / are REMOVED; these three take the action's `typeId`. Same rules, per action: the owner only; an
563
+ * / addition activates after 24 hours and is refused while payments are frozen; a removal is instant
564
+ * / and works while frozen; a value is 1–128 characters (an address, or a venue value such as an
565
+ * / account name). The action must be registered: a destination list belongs to an action, and a
566
+ * / list for no action would be a value nothing checks. The caller is the owner's app.
567
+ */
568
+ addEip712Destination: ActorMethod<[Uint8Array | number[], string], Result_11>;
352
569
  /**
353
570
  * / Register a typed-data shape as signable. Owner-only, freeze-gated (a registration is a grant
354
571
  * / of FUTURE authority — a frozen engram must not be able to widen what it can sign), and the
355
572
  * / shape is IMMUTABLE: any change mints a new typeId.
573
+ * /
574
+ * / ⟨2026-10-14, the owner's registration-bar and signing-floor rulings⟩ ONE BAR FOR EVERY
575
+ * / REGISTRATION — the class the owner names is stored as a label and decides nothing. Every
576
+ * / registration: records the irrevocability acknowledgement (`ackIrrevocable = true`); has no opaque
577
+ * / field (`bytes`, `bytes1..32`); names at least one destination field OR carries a must-equal rule;
578
+ * / passes the watchers — an owner alert webhook set, enabled AND with its money class on, and an
579
+ * / `#Active` guardian holding `canFreezePayments`; and waits `Eip712Policy.COOLOFF_NS` (72 hours). It
580
+ * / may carry per-field rules (`fieldRules`: "at most N" read as a plain decimal with D places, "must
581
+ * / equal X"), which are part of the registered shape — inside the typeId, stored in
582
+ * / `eip712FieldRules`, enforced in `eip712SignFor` before the cap reservation. Before this, a
583
+ * / withdrawal registered as `#standard` needed no webhook, no guardian and no destination field,
584
+ * / waited one hour, and signed to any address. Intrinsic checks still come first and the watchers
585
+ * / last (the 2026-08-06 re-ordering).
586
+ * /
587
+ * / ⟨2026-11-02, the child build's withdrawal-pinning step⟩ In an engram opened through another, after the spec's own
588
+ * / checks: the venue actions that move money or control to another account are refused by name
589
+ * / (`HyperliquidTransaction:` `UsdSend`, `SpotSend`, `SendAsset`, `SendToEvmWithData`,
590
+ * / `ConvertToMultiSigUser`, `ApproveBuilderFee`, `TokenDelegate` — `#Refused`), and
591
+ * / `HyperliquidTransaction:Withdraw` registers only with a must-equal rule on `destination` naming this
592
+ * / engram's own pay address (`#Refused` otherwise; `#Conflict` while the pay address has not been
593
+ * / derived — call `getEvmAddress` first). A first engram is unchanged.
356
594
  */
357
595
  addEip712Type: ActorMethod<
358
596
  [
@@ -365,20 +603,17 @@ export interface Engram {
365
603
  fields: Array<[string, string]>;
366
604
  destinationFields: Array<string>;
367
605
  authorityClass: { standingAuthority: null } | { valueBearing: null } | { standard: null };
606
+ fieldRules: Array<[string, Eip712FieldRule]>;
368
607
  chainId: bigint;
369
608
  domainVersion: string;
370
609
  ackIrrevocable: boolean;
371
610
  },
372
611
  ],
373
- Result_70
612
+ Result_92
374
613
  >;
375
614
  /**
376
- * / Owner-managed destination allowlist (D7). Additions LOOSEN and wait 24h; removals TIGHTEN
377
- * / and apply instantly — the ratified asymmetry, applied to the one mutable policy surface.
378
- */
379
- addEvmWithdrawDestination: ActorMethod<[string], Result_69>;
380
- /**
381
- * / ⟨0.16.0, L1⟩ THE ROLE-CONFLICT ARM, and why three refusals here are not the same refusal.
615
+ * / ⟨0.16.0, refusals are values, never traps⟩ THE ROLE-CONFLICT ARM, and why three refusals here are
616
+ * / not the same refusal.
382
617
  * /
383
618
  * / This method had five distinct ways to say no through one `text`, and a caller could only tell
384
619
  * / them apart by matching prose. They are now three different arms because they call for three
@@ -387,7 +622,55 @@ export interface Engram {
387
622
  * / permitted but this engram's state says no — the principal already holds an incompatible role,
388
623
  * / or the roster is full. Only the last is worth an agent's time to resolve.
389
624
  */
390
- addGuardian: ActorMethod<[Principal, string, GuardianPermissions], Result_1>;
625
+ addGuardian: ActorMethod<[Principal, string, GuardianPermissions], Result_2>;
626
+ /**
627
+ * / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ OWNER-ONLY: put a note on any entry of this
628
+ * / engram's record — words, nothing else. Appends a chained `record.note` entry
629
+ * / (`about=<id> note=<words>`) and keeps the note for `listRecordNotes`; answers the new entry's
630
+ * / id. The entry noted may be any entry ever appended (`about` below the head), including one the
631
+ * / ring no longer holds in full. An agent, a guardian, a stranger and the anonymous caller are
632
+ * / refused by `requireOwner`'s own words. Empty words, words over `RecordWords.WORDS_MAX` or
633
+ * / holding a line break are `#Invalid`; an id past the head is `#NotFound`; nothing is recorded
634
+ * / on any refusal.
635
+ */
636
+ addRecordNote: ActorMethod<[bigint, string], Result_15>;
637
+ /**
638
+ * / List a seller: from 24 hours after this call, x402 may pay `payTo` up to `perDayCapE6` a UTC day
639
+ * / (minor units of a six-decimal stablecoin — 1_000_000 is $1.00) without an approval, and a payment
640
+ * / to it no longer counts against the engram-wide ceiling or the paying agent's own limits. Above the
641
+ * / cap a payment goes to the approval queue like any other. `isPayout` marks it as where this engram
642
+ * / pays out (the same row, its own cap). The sign-in only, in an engram opened through another; the
643
+ * / owner in a first engram. Refused while payments are frozen, for a malformed or already-listed
644
+ * / address, a cap of 0, and past `Sellers.MAX_SELLERS` rows. Answers when the row starts to count.
645
+ * / Named callers: an owner console's seller list for an engram (signed in as its sign-in, for one
646
+ * / opened through another), and the owner kit.
647
+ */
648
+ addSeller: ActorMethod<[string, bigint, boolean], Result_11>;
649
+ /**
650
+ * / AN AGENT CONVERTS THE ENGRAM'S BALANCE INTO COMPUTE, under the runway rule ⟨2026-11-04, the owner's
651
+ * / agent-conversion rulings of 2026-11-01; `AgentConvert.mo` holds the rule and says why each number⟩.
652
+ * /
653
+ * / CALLER: a paired agent whose STORED grant holds the scope "wallet.convert" (`AgentConvert.SCOPE`),
654
+ * / which only the owner adds (`createAgentInvite` / `setAgentPermissions`); off by default, and no HTTP
655
+ * / connector token ever carries it (`OAuth.scopesToPermissions`). The OWNER's role is refused by name —
656
+ * / the owner converts with `convertEarningsToCycles`.
657
+ * /
658
+ * / THE RULE: converts only while this engram has under 30 days of compute left by its own reading; at
659
+ * / least 0.50 and at most 2.00 (or the owner's own per-call cap if lower); at most one conversion under
660
+ * / the rule in any rolling 24 hours (`agentConvertAtNs`, which holds with the engram-wide ceiling
661
+ * / removed); counted against that ceiling when one is set; refused under ANY payment freeze (ruled), and
662
+ * / while another of the engram's own calls is out (its balance reads low then). `amountE6 = null` converts
663
+ * / as much as allowed: the smaller of the cap and what the wallet holds less the ledger fee — the wallet
664
+ * / is READ before anything moves, and a wallet that cannot fund 0.50 is refused by name.
665
+ * /
666
+ * / STOPPED MID-WAY: if the agent is removed, leaves, loses the grant, payments are frozen or the engram is
667
+ * / reset while it waits on the ledger or the biller's deposit address, nothing moves; after the money
668
+ * / reached the deposit, it is sent back to the wallet less one ledger fee (or held at the biller for the
669
+ * / owner's next Convert). THE RESIDUAL, stated: a removal landing DURING the biller's own conversion call
670
+ * / cannot stop that call — it finishes, and the reply (`finishedBeforeRemovalSeen`) and the record row say
671
+ * / so. One inter-canister call, bounded by one cap.
672
+ */
673
+ agentConvertBalance: ActorMethod<[string, [] | [bigint]], Result_90>;
391
674
  /**
392
675
  * / Returns the write RECEIPT, not just the version.
393
676
  * /
@@ -405,6 +688,16 @@ export interface Engram {
405
688
  * / subset rule, so it can only ride an interface break; this release is one.
406
689
  */
407
690
  appendMemory: ActorMethod<[string, Uint8Array | number[], [] | [MemorySource]], Result>;
691
+ /**
692
+ * / Append plaintext with a newline when the live file already has content. The separator and
693
+ * / write are decided in one message, without requiring permission to read the existing file.
694
+ * / Returns the write receipt and exact appended bytes so the writer can rebuild its evidence.
695
+ * / Refuses encrypted memory; key-holding clients send their framed bytes through appendMemory.
696
+ * / Same append permission, path rules, rate limit and writes-pause as appendMemory. No await.
697
+ * / Callers: EngramClient.appendMemory for plaintext memory, and through it the local MCP server's
698
+ * / append tool; the hosted MCP append calls the same private operation.
699
+ */
700
+ appendMemoryText: ActorMethod<[string, string, [] | [MemorySource]], Result_16>;
408
701
  /**
409
702
  * / Replace the retained log prefix through `toSeq` with a single checkpoint.
410
703
  * /
@@ -422,7 +715,7 @@ export interface Engram {
422
715
  * / is exactly what a guardian pause exists to hold. No action alert is raised: the operation is
423
716
  * / owner-initiated, owner-only, and already chained into the audit log.
424
717
  */
425
- applyCondense: ActorMethod<[bigint], Result_68>;
718
+ applyCondense: ActorMethod<[bigint], Result_89>;
426
719
  /**
427
720
  * / Owner-only: activate a guardian who has registered against an invite.
428
721
  * /
@@ -433,7 +726,7 @@ export interface Engram {
433
726
  * / `#Conflict("Guardian is already active")` when there is nothing to do — the refusal says the
434
727
  * / state the caller asked for is the state that holds, rather than pretending it acted.
435
728
  */
436
- approveGuardian: ActorMethod<[Principal], Result_1>;
729
+ approveGuardian: ActorMethod<[Principal], Result_2>;
437
730
  /**
438
731
  * / Owner-only: approve one pending over-limit request, letting the agent retry the operation
439
732
  * / its policy refused.
@@ -443,7 +736,7 @@ export interface Engram {
443
736
  * / the hour, and the retry CONSUMES the approval (`#Used`); a second attempt needs a second
444
737
  * / approval. Past the hour it becomes `#Expired` on first touch. Neither state is recoverable by
445
738
  * / approving again — the owner approves a NEW request.
446
- * / ⟨2026-09-29, review finding X-11⟩ One exception, made by the engram and not by the owner: when
739
+ * / ⟨2026-09-29, a review finding⟩ One exception, made by the engram and not by the owner: when
447
740
  * / the retry's signer FAILS, nothing was signed, so the approval goes back from `#Used` to
448
741
  * / `#Approved` with its original expiry and an `approval.released` entry says so.
449
742
  * /
@@ -456,13 +749,25 @@ export interface Engram {
456
749
  * / no longer pending — already approved, denied or expired. The status is in the message because
457
750
  * / "not pending" is the one refusal here an owner acts on differently depending on which it is.
458
751
  */
459
- approveRequest: ActorMethod<[string], Result_1>;
752
+ approveRequest: ActorMethod<[string], Result_2>;
753
+ /**
754
+ * / The OWNER asks the person who last declined to be this engram's sign-in again. No principal
755
+ * / argument: the ask goes to `signInDeclinedBy` alone, so the key file can never seat a sign-in of
756
+ * / its choosing — re-asking the person who already said no gives a thief nothing. `sealed` is the
757
+ * / owner's key sealed by the kit for that person; it is stored with the ask, inert, and becomes the
758
+ * / engram's sealed copy only if they accept. Refused in a first engram, while a sign-in is in place,
759
+ * / when nobody ever declined (an engram opened without a sign-in has nobody to ask, for life), while
760
+ * / an ask already waits, within 7 days of the last decline (`OwnerSignIn.askRefusal`), and when the
761
+ * / person has since become an agent or a guardian here. The sign-in and the person asked are refused.
762
+ * / Named caller: the owner kit, signed by the agent's lasting key (it seals the key for that person).
763
+ */
764
+ askSignInAgain: ActorMethod<[Uint8Array | number[]], Result_2>;
460
765
  /**
461
766
  * / Discard a backup started by `backupInit` and never finalized. The way out of a failed upload,
462
767
  * / and the reason a stalled one need not occupy space indefinitely. Same gate as the rest of the
463
768
  * / write half: owner, or an agent holding `canAppendMemory`.
464
769
  */
465
- backupAbort: ActorMethod<[string], Result_1>;
770
+ backupAbort: ActorMethod<[string], Result_2>;
466
771
  /**
467
772
  * / Close a backup started by `backupInit` and mark it usable.
468
773
  * /
@@ -477,7 +782,7 @@ export interface Engram {
477
782
  * / It does NOT verify the `sha256` declared at init; see that method for what the digest is and
478
783
  * / is not.
479
784
  */
480
- backupFinalize: ActorMethod<[string], Result_1>;
785
+ backupFinalize: ActorMethod<[string], Result_2>;
481
786
  /**
482
787
  * / Begin a chunked backup upload. Returns the `backupId` every later call in the sequence needs.
483
788
  * /
@@ -494,6 +799,8 @@ export interface Engram {
494
799
  * / hash is the misreading to avoid — and it is an easy one to reach, because the REGISTRY's
495
800
  * / chunked upload (`engramWasmInit`/`PushChunk`/`Finalize`) has the same shape and DOES verify:
496
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.
497
804
  * /
498
805
  * / **TWO DIFFERENT PERMISSIONS GUARD THE TWO HALVES.** Writing (init, push, finalize, abort) is
499
806
  * / owner-or-agent and an AGENT additionally needs `canAppendMemory`; reading
@@ -502,7 +809,7 @@ export interface Engram {
502
809
  * /
503
810
  * / The write half also refuses while writes are PAUSED.
504
811
  */
505
- backupInit: ActorMethod<[string, BackupType, [] | [string], string, [] | [string]], Result_44>;
812
+ backupInit: ActorMethod<[string, BackupType, [] | [string], string, [] | [string]], Result_58>;
506
813
  /**
507
814
  * / Read one chunk of a finalized backup, by index.
508
815
  * /
@@ -510,13 +817,20 @@ export interface Engram {
510
817
  * / `canAppendMemory`. Holding one says nothing about the other, deliberately: taking a backup and
511
818
  * / carrying it away are different authorities.
512
819
  */
513
- backupPullChunk: ActorMethod<[string, bigint], Result_60>;
514
- backupPushChunk: ActorMethod<[string, bigint, Uint8Array | number[]], Result_1>;
820
+ backupPullChunk: ActorMethod<[string, bigint], Result_76>;
821
+ backupPushChunk: ActorMethod<[string, bigint, Uint8Array | number[]], Result_2>;
515
822
  /**
516
823
  * / The OWNER cancels an agent's pending key nomination; the agent keeps its current key. Refused
517
824
  * / by name when the agent is unknown or has nothing pending — never a silent success.
518
825
  */
519
- cancelAgentKeyNomination: ActorMethod<[Principal], Result_1>;
826
+ cancelAgentKeyNomination: ActorMethod<[Principal], Result_2>;
827
+ /**
828
+ * / ⟨2026-11-15, the ruling that the new owner must accept⟩ THE OWNER WITHDRAWS THE OPEN OFFER.
829
+ * / Owner-only. `#NotFound` when none is open. Nothing else changes, and nothing is sent: the
830
+ * / registry's copy of the offer cannot move anything without `acceptOwnership` succeeding here,
831
+ * / which now refuses, and it ends at its own expiry.
832
+ */
833
+ cancelOwnershipOffer: ActorMethod<[], Result_2>;
520
834
  /**
521
835
  * / Close a session the caller paid for: settle what was consumed, refund the remainder.
522
836
  * /
@@ -524,31 +838,45 @@ export interface Engram {
524
838
  * / and `forceCloseSession` were on the MARKET, which is withheld, and whose escrow subaccount is
525
839
  * / under a different principal entirely, so its close could never have reached these funds.
526
840
  */
527
- closeSession: ActorMethod<[string], Result_1>;
841
+ closeSession: ActorMethod<[string], Result_2>;
528
842
  /**
529
- * / Convert the engram's OWN earned ckUSDC/ckUSDT into its OWN cycles, via the cashier — the
843
+ * / Convert the engram's OWN earned ckUSDC/ckUSDT into its OWN cycles, via the biller — the
530
844
  * / engram-self top-up path. Owner-only; per-call cap + cooldown (irreversible); NOT freeze-gated
531
- * / (infrastructure funding). Flow: read the engram's deposit address on the cashier, move the
532
- * / engram's tokens there, then have the cashier convert — the cashier self-authorizes because the
845
+ * / (infrastructure funding). Flow: read the engram's deposit address on the biller, move the
846
+ * / engram's tokens there, then have the biller convert — the biller self-authorizes because the
533
847
  * / caller (this engram) is a registered active engram (registry isRegisteredActiveEngram seam).
534
- * / (The owner-funded path lives entirely in the frontend: owner → cashier deposit → topUp.)
535
- * / ⟨0.16.0, L4 — `token : Text` KEPT, deliberately, and this note exists so the sweep that finds
848
+ * / (The owner-funded path lives entirely in the frontend: owner → biller deposit → topUp.)
849
+ * / ⟨0.16.0, named wire types — `token : Text` KEPT, deliberately, and this note exists so the sweep that finds
536
850
  * / it does not re-litigate it.⟩
537
851
  * /
538
852
  * / `ownerWithdraw` and the market's `recoverEscrow` both took `Wire.TokenAmount` because they
539
853
  * / accept ICP (e8s) BESIDE the stablecoins (e6) — mixed decimals behind one number is a real
540
854
  * / hundred-fold error. This method accepts ckUSDC and ckUSDT only. Both are e6, so there is no
541
- * / unit to get wrong, and the census (row 258) rules the pair as `(token, amountE6)`.
855
+ * / unit to get wrong, and the 0.16.0 interface plan rules the pair as `(token, amountE6)`.
542
856
  * /
543
857
  * / `Wire.TokenAmount` would be actively WORSE here: its `#Icp` arm is a token this path cannot
544
858
  * / convert, so the type would make an unacceptable value REPRESENTABLE and hand back a runtime
545
859
  * / rejection anyway — losing the one property the variant is for while gaining a wider type.
546
860
  * /
547
- * / ⟨2026-10-02⟩ The second parameter is NAMED `amountE6` now, as the census row above rules the
861
+ * / ⟨2026-10-02⟩ The second parameter is NAMED `amountE6` now, as the interface plan's ruling above has the
548
862
  * / pair — e6 base units of the token named first. A name only: Candid passes arguments by
549
863
  * / position, so nothing on the wire moved.
550
- */
551
- convertEarningsToCycles: ActorMethod<[string, bigint], Result_8>;
864
+ * /
865
+ * / ⟨2026-11-04, the agent-conversion build — the owner's agent-conversion rulings⟩ The body moved whole into
866
+ * / `runConversion`, which an agent's `agentConvertBalance` shares; this method keeps its name, its
867
+ * / signature and its bare `cyclesAdded` reply. Under those rulings it converts the engram's BALANCE (what the
868
+ * / owner put in and what it earned are not told apart); the name is the wire's and stays. A FIRST
869
+ * / engram's owner Convert is unchanged: not counted, not freeze-gated, not runway-bound, not pre-read,
870
+ * / 10.00 / 5 min. In an engram OPENED THROUGH ANOTHER the key file's Convert runs the agent rule too
871
+ * / (as the owner agreed: under 30 days, 0.50–2.00, once in 24 hours shared with the agents, the
872
+ * / wallet read first), keeping its own freeze gate (by the owner's ruling, a guardian's freeze only).
873
+ * / ⟨2026-11-04, review fix⟩ SHARED with an agent's conversion: the in-flight latch only (one deposit
874
+ * / account, one pending marker — one conversion at a time, whoever asked), so while an agent's conversion
875
+ * / is between its deposit and its landing this door answers "another conversion is still in flight". NOT
876
+ * / shared: the 5-minute cooldown (an agent's landing does not move it) and the latch during an agent's
877
+ * / wallet read (nothing is held while it reads).
878
+ */
879
+ convertEarningsToCycles: ActorMethod<[string, bigint], Result_15>;
552
880
  /**
553
881
  * / Owner-only: mint a single-use invite code an agent redeems with `pairAgent`.
554
882
  * /
@@ -567,8 +895,18 @@ export interface Engram {
567
895
  * /
568
896
  * / A principal that is already a GUARDIAN cannot become an agent — a guardian is an
569
897
  * / independent check on agents, so one wallet must not hold both.
898
+ * /
899
+ * / ⟨2026-10-29, the owner's ruling⟩ `name` MAY BE EMPTY (or only whitespace): the agent is then
900
+ * / named after its key when it pairs — "agent-" and the key's first five characters, e.g.
901
+ * / "agent-hsffu" (`People.nameAtPairing` says why five, and the first). ⟨2026-10-29, later, beside "its key"⟩ Its
902
+ * / PERMANENT key (the root it enrolled with), not the key that pairs, so the name stays right across
903
+ * / a key replacement and matches the app's "Copy permanent key". A name the owner gives
904
+ * / always wins. Before this an empty name was refused, so an app that wanted no name had to invent
905
+ * / one ("agent"), and two agents read alike.
906
+ * / ⟨2026-10-29, a review finding⟩ A name the owner gives meets the rule `renameAgent` applies: a line break
907
+ * / or another control character is `#Invalid` (`People.nameRefusal`), as a rename to it would be.
570
908
  */
571
- createAgentInvite: ActorMethod<[string, AgentPermissions], Result_44>;
909
+ createAgentInvite: ActorMethod<[string, AgentPermissions], Result_58>;
572
910
  /**
573
911
  * / Owner-only: mint an invite for a GUARDIAN — an independent check on agents, not a
574
912
  * / co-owner and not a recovery agent.
@@ -592,7 +930,24 @@ export interface Engram {
592
930
  * / So an invite that fails to redeem for that reason is not a bad code. The rule exists because
593
931
  * / a check must be independent of the thing it checks.
594
932
  */
595
- createGuardianInvite: ActorMethod<[string, GuardianPermissions], Result_44>;
933
+ createGuardianInvite: ActorMethod<[string, GuardianPermissions], Result_58>;
934
+ /**
935
+ * / The sign-in GIVES ITSELF UP, or the person the owner asked again says no. ⟨the owner's ruling that
936
+ * / they may say no, but the child can ask again — from the child build's design check: whoever the kit
937
+ * / names cannot otherwise refuse a seat they never agreed to⟩
938
+ * / · as the sign-in: the slot empties, the sealed copy of the owner's key is deleted (nobody may
939
+ * / hold a copy for a seat that is gone), and the caller is recorded as the one who declined, with
940
+ * / the time. The engram keeps its small limits; the owner may ask this person again in 7 days.
941
+ * / Listed sellers stop counting at once (a raise waiting in them too): the rows are kept, and
942
+ * / count again only if this person accepts a re-ask (`Sellers.inForce`).
943
+ * / · as the person a waiting ask goes to: the ask and the copy that came with it are dropped, and
944
+ * / the decline's time moves to now (the next ask waits another 7 days).
945
+ * / The key file is refused: it cannot empty the slot (a thief would, to strand the honest owner's
946
+ * / approvals). A first engram has nothing to decline.
947
+ * / Named caller: an owner console — the sign-in's "decline", and the person asked's "decline" on a
948
+ * / waiting ask.
949
+ */
950
+ declineSignIn: ActorMethod<[], Result_2>;
596
951
  /**
597
952
  * / OWNER-ONLY deletion of a stored backup.
598
953
  * /
@@ -605,9 +960,9 @@ export interface Engram {
605
960
  * / `backupAbort` is the agent's way out of a failed UPLOAD; it discards something never
606
961
  * / finalized. This removes a finished backup, which is a different act on a different object.
607
962
  */
608
- deleteBackup: ActorMethod<[string], Result_1>;
963
+ deleteBackup: ActorMethod<[string], Result_2>;
609
964
  /**
610
- * / ⟨0.16.0, census §10 item 16⟩ RETURNS A REAL RECEIPT, not `R<()>`. The receipt was already
965
+ * / ⟨0.16.0, the interface plan⟩ RETURNS A REAL RECEIPT, not `R<()>`. The receipt was already
611
966
  * / being computed and written into the audit line — `receiptSuffix(r)` — and then discarded, so
612
967
  * / a caller could not cite the seq its own delete produced and had to go looking for it in a log
613
968
  * / it may not be allowed to read. A delete is an EVENT on the chain; an event that will not tell
@@ -625,38 +980,25 @@ export interface Engram {
625
980
  * / `#NotFound` for an unknown id and `#Conflict` when the request is no longer pending, and it
626
981
  * / does not change the policy — the next request over the same limit will be raised again.
627
982
  */
628
- denyRequest: ActorMethod<[string, string], Result_1>;
983
+ denyRequest: ActorMethod<[string, string], Result_2>;
629
984
  /**
630
- * / Force the tECDSA derivation and return the address.
631
- * /
632
- * / It exists because the gateway's own derivation fires from a timer that is lazy on some
633
- * / replicas, and until it lands the EVM quote advertises the `0x0` fallback and settle fails
634
- * / closed — a live money surface quoting an address that cannot receive.
635
- * /
636
- * / ⟨0.16.0, B-2⟩ Derivation now comes from `EvmIdentity`, and the return type carries the
637
- * / outcome: this used to answer `""` on failure, which is a Text a caller can and did paste into
638
- * / a payment flow. An empty string is not an address, and saying so is the difference between a
639
- * / failed derivation and an address of nothing.
640
- * /
641
- * / ⚠ TRANSITIONAL: it also primes the ic402 gate, because the gate still settles commerce on this
642
- * / canister until those 47 methods move. That second call disappears with them — it is listed in
643
- * / the move order in the spec's B-2 addendum, not left for someone to find.
644
- * /
645
- * / PUBLIC: it inherits `getEvmAddress`'s gate rather than choosing one, and could not usefully be
646
- * / narrower — it exists so a caller can make the derivation happen BEFORE a payment flow, and the
647
- * / derivation itself is ungated. Idempotent and bounded to the same one-derivation-per-lifetime
648
- * / work, so an anonymous caller can cause it once and no more.
649
- * / ⟨L7⟩ UPDATE, NOT QUERY, and this one does not merely await — it WRITES. The body awaits
650
- * / `EvmIdentity.deriveAddress` (the management canister's `ecdsa_public_key`) and
651
- * / `gate.deriveEvmRecipientAt` ⟨renamed 2026-09-22 with the path⟩, then caches the result in `evmAddressCache`. So a query is
652
- * / impossible twice over: it could not await the derivation, and it could not keep the answer.
653
- * / Named `ensure*` rather than `get*` for that reason — the write is the point, and a read verb
654
- * / would have promised a cheapness this cannot deliver.
985
+ * / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ A NEW GUARDIAN POWER, words only: an ACTIVE
986
+ * / guardian disputes an agent's write. It never moves money, stops anything or changes a grant.
987
+ * / Appends a chained `record.dispute` entry (`about=<id> reason=<words>`) and keeps the dispute
988
+ * / for `listGuardianDisputes`; answers the new entry's id. NOT ALERTED, deliberately: a
989
+ * / `guardian.*` operation would fall in the alerts' #guardian class, and which entries reach a
990
+ * / phone is a later alerts change's to decide (`ActionAlerts.classify` answers null for
991
+ * / `record.*`). The owner sees it on the record's Disputes tab.
655
992
  * /
656
- * / ⟨Marker added 2026-08-23; the census row said "L7 mark added per review" and no mark was at
657
- * / the site.⟩
993
+ * / WHO: every active guardian — no grant bit (`RecordWords` header says why). The OWNER is refused
994
+ * / by name (`RecordWords.OWNER_DISPUTES_ELSEWHERE` — the owner's dispute is
995
+ * / `repudiateMemoryWrite`); an agent and a stranger get "Not a guardian", a pending guardian "Guardian
996
+ * / is pending approval", the anonymous caller the anonymous refusal.
997
+ * / WHAT: an entry the owner's review would show (`qualifiesForReview` — an agent's append or
998
+ * / revision, or a paid session's append) that succeeded, still held in full by the ring.
999
+ * / One dispute per guardian per write (`#Conflict`, the first stands).
658
1000
  */
659
- ensureEvmReady: ActorMethod<[], Result_44>;
1001
+ disputeAgentWrite: ActorMethod<[bigint, string], Result_15>;
660
1002
  /**
661
1003
  * / Record that log entries [fromSeq, toSeq] were served, and return the root that proves it.
662
1004
  * /
@@ -671,9 +1013,9 @@ export interface Engram {
671
1013
  * / situation rather than a safety measure. It IS gated on requireMemoryAttached: a store that
672
1014
  * / failed its integrity check must not attest anything it cannot vouch for.
673
1015
  */
674
- exportMemoryRange: ActorMethod<[bigint, bigint, [] | [Principal]], Result_67>;
1016
+ exportMemoryRange: ActorMethod<[bigint, bigint, [] | [Principal]], Result_88>;
675
1017
  /**
676
- * / ⟨0.16.0, L2.2 — renamed from `guardianFreezePayments`⟩ The prefix LIED about who may call it.
1018
+ * / ⟨0.16.0, same concept, same name — renamed from `guardianFreezePayments`⟩ The prefix LIED about who may call it.
677
1019
  * / The gate is `requireOwnerOrGuardian`, and an owner freezing their own payments is the ordinary
678
1020
  * / case — the guardian is the exceptional one. A name that says otherwise sends an owner looking
679
1021
  * / for a method that does not exist. `unfreezePayments`, its owner-only inverse, never carried the
@@ -688,6 +1030,8 @@ export interface Engram {
688
1030
  * / individual method's body finds nothing — the check is one level down.⟩
689
1031
  * / · `addEip712Type` and `addEvmWithdrawDestination` — pre-staging for a later payout is the
690
1032
  * / thing a brake most needs to stop, so the destination list is frozen along with the signing.
1033
+ * / ⟨2026-10-14, the owner's destination-list ruling⟩ `addEvmWithdrawDestination` is removed; its place is
1034
+ * / `addEip712Destination` (one list per registered action), freeze-gated the same way.
691
1035
  * / · `sessionReadMemory` and `sessionAppendMemory` — the paid-memory rail, money coming IN.
692
1036
  * /
693
1037
  * / AND WHAT IT DELIBERATELY DOES NOT, stated so the absence is not read as an oversight:
@@ -695,6 +1039,10 @@ export interface Engram {
695
1039
  * / · `convertEarningsToCycles` — the owner's OWN earnings becoming their OWN engram's fuel. A
696
1040
  * / frozen engram still burns cycles, so freezing this would let a brake starve the thing it
697
1041
  * / is protecting. Owner-only, capped per call, and it moves nothing outward.
1042
+ * / ⟨2026-11-04, the agent-conversion build — as the owner agreed⟩ An AGENT's conversion
1043
+ * / (`agentConvertBalance`) IS frozen, by any freeze — the owner's own included — before it starts and
1044
+ * / again after each await. The owner's own Convert in a first engram stays as above; in an engram
1045
+ * / opened through another it stops under a guardian's freeze only (the owner's ruling of 2026-11-02).
698
1046
  * / · `approveRequest` — an approval is not a spend. The spend it authorises goes through
699
1047
  * / `x402SignFor`, which IS frozen, so an approval granted during a freeze simply waits.
700
1048
  * / · `transferOwnership` — ownership is not a payment, and a guardian's PAYMENTS brake is not
@@ -703,21 +1051,41 @@ export interface Engram {
703
1051
  * / ⚠ The three exclusions are a reading of intent, not a ruling: no declaration stated the scope
704
1052
  * / before this one. If any of them is wrong, this comment is where the argument should happen.
705
1053
  */
706
- freezePayments: ActorMethod<[], Result_1>;
1054
+ freezePayments: ActorMethod<[], Result_2>;
1055
+ /**
1056
+ * / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ `freezePayments` with a reason the strip and the
1057
+ * / guardian page show ("Sam froze payments: 'a payment I didn't expect'"). A NEW method, not an
1058
+ * / argument on `freezePayments`: a shipped argument tuple is frozen. Same callers, same grant, same
1059
+ * / brake: the owner, or an active guardian holding `canFreezePayments`; an agent, a stranger, a
1060
+ * / pending guardian and the anonymous caller are refused by `requireOwnerOrGuardian`'s own words.
1061
+ * / An empty reason is no reason; a reason too long or holding a line break is `#Invalid` and the
1062
+ * / brake is NOT pulled — the caller pulls it with `freezePayments`, or shortens the words.
1063
+ */
1064
+ freezePaymentsWithReason: ActorMethod<[string], Result_2>;
707
1065
  /**
708
1066
  * / Delivery status + config readback. Owner-only (the URL is a secret).
1067
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1068
+ * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
709
1069
  */
710
- getActionAlertStatus: ActorMethod<[], Result_58>;
1070
+ getActionAlertStatus: ActorMethod<[], Result_77>;
1071
+ /**
1072
+ * / The agent-conversion rule's numbers.
1073
+ * / PUBLIC: the class of `getTopUpLimits` — a policy, nobody's data. ⟨2026-11-04, the market-route
1074
+ * / build: the marker's colon was missing, so the deployment's PUBLIC-rationale gate read the method as
1075
+ * / unmarked; the reason itself is unchanged.⟩
1076
+ * / The cap an agent meets is `min(maxPerCallE6, getTopUpLimits().maxCkusdcE6s)`.
1077
+ */
1078
+ getAgentConvertRule: ActorMethod<[], AgentConvertRule>;
711
1079
  /**
712
1080
  * / Agents need to know what they may revise, so they can read it too. Whole-value config, same
713
- * / carve-out as getProtectedPaths — and kept a SEPARATE method from it deliberately (L2.2): a
714
- * / protected path and a revisable path are opposite grants, and one accessor for both would be a
715
- * / name that lies about which power it reports.
1081
+ * / carve-out as getProtectedPaths — and kept a SEPARATE method from it deliberately (different
1082
+ * / concept, different name): a protected path and a revisable path are opposite grants, and one
1083
+ * / accessor for both would be a name that lies about which power it reports.
716
1084
  * /
717
1085
  * / Refusal reason preserved from the trap: a grant is a power, and its absence and its
718
1086
  * / concealment are different facts.
719
1087
  */
720
- getAgentRevisablePaths: ActorMethod<[], Result_54>;
1088
+ getAgentRevisablePaths: ActorMethod<[], Result_68>;
721
1089
  /**
722
1090
  * / OWNER-ONLY: every engagement's seat weeks on this engram, with the agent's root — the day it
723
1091
  * / paired, the days of its first and last payment signature, a 64-week map whose bit 0 is the week
@@ -729,8 +1097,10 @@ export interface Engram {
729
1097
  * / order. Anyone else is refused by name (`#Refused getAgentSeatWeeks: …`), never answered with an
730
1098
  * / empty page. Paged; `total` is every engagement ever paired here (a reset keeps the rows).
731
1099
  * / Two rows can name one root: an agent paired again after it left is a second engagement.
1100
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1101
+ * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
732
1102
  */
733
- getAgentSeatWeeks: ActorMethod<[bigint, bigint], Result_65>;
1103
+ getAgentSeatWeeks: ActorMethod<[bigint, bigint], Result_86>;
734
1104
  /**
735
1105
  * / Owner: everything written into this engram by someone other than the owner since the last
736
1106
  * / markAgentWritesReviewed() — agent appends/revisions AND paid-session appends (see
@@ -739,8 +1109,11 @@ export interface Engram {
739
1109
  * / them — the UI must page (markAgentWritesReviewed(?lastShownId)) and must NOT present 200
740
1110
  * / as a total. `earliest` discloses ring eviction — if cursor < earliest, entries between them
741
1111
  * / aged out of the ring (the CHAIN still proves total count; this view can't show their bodies).
1112
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1113
+ * / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
1114
+ * / engram is unchanged.
742
1115
  */
743
- getAgentWriteReview: ActorMethod<[], Result_64>;
1116
+ getAgentWriteReview: ActorMethod<[], Result_85>;
744
1117
  /**
745
1118
  * / Why anchoring is or is not advancing. PUBLIC: ungated on purpose — detecting a stalled
746
1119
  * / engram is the point, a gated read would fail-to-empty and hand a third party fabricated zeros,
@@ -751,11 +1124,11 @@ export interface Engram {
751
1124
  /**
752
1125
  * / The plain chain head — size and hash, world-readable, no certificate.
753
1126
  * /
754
- * / ⟨0.16.0, census `keep (NEW)`⟩ It was specced and never built. `Wire.AuditHead`'s own
755
- * / declaration says why it matters: heads exist TO BE COMPARED (L8), a head nobody can read
756
- * / witnesses nothing, and the registry and cashier already served exactly this shape — so the
757
- * / engram, "the canister that IS the evidence product", was the one chain a verifier could not
758
- * / ask for a head without also asking for a certificate it may not want.
1127
+ * / ⟨0.16.0, kept as a new method in the interface plan⟩ It was specced and never built. `Wire.AuditHead`'s own
1128
+ * / declaration says why it matters: heads exist TO BE COMPARED (the disclosure law: who may read
1129
+ * / what), a head nobody can read witnesses nothing, and the registry and biller already served
1130
+ * / exactly this shape — so the engram, "the canister that IS the evidence product", was the one chain
1131
+ * / a verifier could not ask for a head without also asking for a certificate it may not want.
759
1132
  * /
760
1133
  * / PUBLIC: bare, and it cannot refuse — a chain head discloses nothing about content or callers,
761
1134
  * / and gating it would make the comparison it exists for depend on permission. `getCertifiedAuditHead`
@@ -763,22 +1136,59 @@ export interface Engram {
763
1136
  * / was signed rather than asserted.
764
1137
  */
765
1138
  getAuditHead: ActorMethod<[], AuditHead>;
766
- getBackupMetadata: ActorMethod<[string], Result_63>;
1139
+ getBackupMetadata: ActorMethod<[string], Result_84>;
1140
+ /**
1141
+ * / ⟨2026-10-21, the owner's approval of the mobile design's changes: a backup-retention getter⟩ How many backups of
1142
+ * / `dbType` each creator keeps, and whether that is the default — the read `setBackupRetention`
1143
+ * / lacked, so "Keeps your newest 3" showed only on the phone that last set it.
1144
+ * /
1145
+ * / WHO: the OWNER, and an active AGENT holding `canAppendMemory` — the permission that lets it
1146
+ * / upload backups, which are exactly the backups this number bounds (`#perm(#append_memory)`).
1147
+ * / Refused, each by the gate's own words: an agent without that permission ("Permission
1148
+ * / denied"), a revoked or resigned agent, a guardian (guardians take no backups), a stranger and
1149
+ * / the anonymous caller. A kind the setter would refuse is `#Invalid` here too
1150
+ * / (`Backup.getRetention`). Records nothing (a query).
1151
+ */
1152
+ getBackupRetention: ActorMethod<[string], Result_83>;
767
1153
  /**
768
- * / The cashier this engram recognises as its rent biller — `null` until the registry pushes one.
1154
+ * / The canister this engram recognises as its rent biller — `null` until the registry pushes one.
769
1155
  * /
770
- * / PUBLIC: a payer about to send money needs to know which cashier this engram will accept credit
771
- * / from, BEFORE sending it — paying a cashier this engram does not recognise collects funds that
1156
+ * / PUBLIC: a payer about to send money needs to know which biller this engram will accept credit
1157
+ * / from, BEFORE sending it — paying a biller this engram does not recognise collects funds that
772
1158
  * / never become rent. The registry publishes the same fact as `getRentBiller`; publishing it here
773
1159
  * / too is what lets the two be COMPARED, which is the only way to catch a mismatch.
774
1160
  */
775
1161
  getBillerId: ActorMethod<[], [] | [Principal]>;
776
1162
  /**
777
- * / ⟨0.16.0, L9/L10 — census row⟩ `Wire.CertifiedAuditHead`, not an anonymous record. The
778
- * / registry, market and cashier already served the shared type; the engram — the canister that
779
- * / IS the evidence product — was the one chain still answering in a shape of its own, missing
780
- * / `witness` entirely. One certified-head shape on every chain is the point: a verifier that can
781
- * / read three of them and not the fourth has to special-case the one that matters most.
1163
+ * / This engram's BIRTH CHAIN, root first: its own record last, its parent's before it, and so on
1164
+ * / ⟨2026-10-26, the owner's lineage ruling that the registry certifies each birth record's fingerprint⟩.
1165
+ * /
1166
+ * / OWNER ONLY. The owner decides whom to show it to — the chain names the engrams this one descends
1167
+ * / from, which is the owner's to disclose, not the registry's. The certified half is at the registry
1168
+ * / (`getCertifiedBirth`, public, revealing only whether a fingerprint is present); the client's
1169
+ * / `verifyBirthChain` checks both. Refused to anyone else by the combinator (`#ownerOnly`).
1170
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1171
+ * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1172
+ */
1173
+ getBirthChain: ActorMethod<[], Result_82>;
1174
+ /**
1175
+ * / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ Each brake: on or off, and while
1176
+ * / on, who pulled it LAST (their key and whether as owner or guardian), since when, and the reason
1177
+ * / they gave — the same person and time as the newest brake entry on the record
1178
+ * / (`RecordWords.BrakePull`). For the owner's status strip and the guardian page. The OWNER and
1179
+ * / ACTIVE GUARDIANS may read it; an agent, a stranger, a pending guardian and the anonymous caller
1180
+ * / are refused (`#ownerOrGuardian` — an agent learns a brake is on from the refusal of what it tried,
1181
+ * / and needs no more). `pull` is null for a brake that is off, and for one carried on across the
1182
+ * / upgrade that added this read (who pulled it was not recorded then) — never a guessed pull.
1183
+ */
1184
+ getBrakes: ActorMethod<[], Result_81>;
1185
+ /**
1186
+ * / ⟨0.16.0, one implementation per behaviour, the interface files as the source — the interface
1187
+ * / plan's entry⟩ `Wire.CertifiedAuditHead`, not an anonymous record. The registry, market and biller
1188
+ * / already served the shared type; the engram — the canister that IS the evidence product — was the
1189
+ * / one chain still answering in a shape of its own, missing `witness` entirely. One certified-head
1190
+ * / shape on every chain is the point: a verifier that can read three of them and not the fourth has
1191
+ * / to special-case the one that matters most.
782
1192
  * /
783
1193
  * / `witness = null` is the honest answer here and is NOT the same as an empty proof. This engram
784
1194
  * / certifies its head via `CertifiedData` but keeps no witness tree, so there is no reveal to
@@ -794,18 +1204,40 @@ export interface Engram {
794
1204
  * / Readable by the owner and by that agent's own key — refused loudly to anyone else, never a zero
795
1205
  * / (a zero would be a claim about another owner's grant).
796
1206
  * /
797
- * / ⟨2026-10-01, review F2⟩ A QUERY, so the refusal is deliberately NOT written to the denial log: a
1207
+ * / ⟨2026-10-01, a review finding⟩ A QUERY, so the refusal is deliberately NOT written to the denial log: a
798
1208
  * / query's state writes are discarded when it returns, and the `denied` call first written here
799
1209
  * / recorded nothing while reading as if it did. The refusal is loud in the reply instead. WHAT
800
1210
  * / WOULD MAKE THIS WRONG: a reason to record who asked — then this becomes an update that says so.
801
1211
  */
802
- getChildAllowance: ActorMethod<[Principal], Result_62>;
1212
+ getChildAllowance: ActorMethod<[Principal], Result_80>;
803
1213
  /**
804
1214
  * / Owner-only, Billing-class: what opening an engram costs this engram, the balance below which an
805
1215
  * / agent's request is refused, the balance now, and every agent's allowance. The console's cost
806
1216
  * / sentence reads it. Cycles are owner-class information, as on the owner's console read.
807
- */
808
- getChildOpening: ActorMethod<[], Result_61>;
1217
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1218
+ * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1219
+ */
1220
+ getChildOpening: ActorMethod<[], Result_79>;
1221
+ /**
1222
+ * / Derive the key that opens the sealed copy, encrypted under the caller's transport public key —
1223
+ * / for the SIGN-IN alone (the combinator's `#ownerSignIn`; the key file is refused by name: only the
1224
+ * / sign-in opens the backup, and the key file holds the plaintext anyway). The derivation input is the
1225
+ * / sign-in's own principal, the same identity the kit sealed the copy to, so a former sign-in's key
1226
+ * / never opens a copy re-sealed for its successor. Refused in a first engram, with no sign-in, and
1227
+ * / with no copy, all before the call. The opening is recorded (`keyBackup.opened`), so the owner's
1228
+ * / alert fires: the one act a thief holding the sign-in cannot hide. Not blocked by a freeze: a
1229
+ * / freeze must never lock the owner out of its own key.
1230
+ * / ⟨CORRECTED 2026-11-03, the review of the child build's sealed-key-copy step, beside the sentence
1231
+ * / above⟩ "cannot hide" overstates it: in an engram opened through another the sign-in sets the alert
1232
+ * / address, so a thief holding the sign-in can re-point it first. Each opening is recorded in the
1233
+ * / engram's record (which the key file reads) and alerted to whatever address the sign-in has set.
1234
+ * /
1235
+ * / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1236
+ * / `VetKeys.ManagementCanister.vetKdDeriveKey`. A query cannot await.
1237
+ * / Named callers: an owner console signed in as the sign-in (the browser's recovery), and the owner
1238
+ * / kit's `--recover-key` signed by a key-file sign-in.
1239
+ */
1240
+ getEncryptedKeyBackupKey: ActorMethod<[Uint8Array | number[]], Result_76>;
809
1241
  /**
810
1242
  * / Derive the shared memory-encryption key, encrypted under the caller's transport
811
1243
  * / public key. Gated to owner + read-agents (the same principals allowed to read
@@ -823,20 +1255,20 @@ export interface Engram {
823
1255
  * / Refusing a FUTURE epoch is not a bounds check, it is the rotation invariant: pre-deriving a
824
1256
  * / key for an epoch nobody has reached would make rotating to it meaningless.
825
1257
  * /
826
- * / Also converted off the lowercase `#ok/#err` dialect (L5) — that spelling arrived from ic402
1258
+ * / Also converted off the lowercase `#ok/#err` dialect (results spelled Ok/Err) — that spelling arrived from ic402
827
1259
  * / and had no business on a vetKD path, which touches nothing of ic402's.
828
1260
  * /
829
- * / ⟨L7⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1261
+ * / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
830
1262
  * / `VetKeys.ManagementCanister.vetKdDeriveKey`. A query cannot await, so the round trip is the
831
- * / cost. Stated here because L7 requires the reason be readable from the interface rather than
1263
+ * / cost. Stated here because the update-for-read rule requires the reason be readable from the interface rather than
832
1264
  * / inferred by opening the body — which is exactly what had to happen to write this line.
833
1265
  */
834
- getEncryptedMemoryKey: ActorMethod<[[] | [bigint], Uint8Array | number[]], Result_60>;
1266
+ getEncryptedMemoryKey: ActorMethod<[[] | [bigint], Uint8Array | number[]], Result_76>;
835
1267
  /**
836
- * / ⟨0.16.0, owner ruling 2026-08-20 — option (a)⟩ `x402Support` REPORTS THE RAIL, not a constant.
1268
+ * / ⟨0.16.0, owner ruling 2026-08-20⟩ `x402Support` REPORTS THE RAIL, not a constant.
837
1269
  * /
838
1270
  * / The card's config hardcodes `x402Support = true`, answering a buyer's question with a fact
839
- * / about the software rather than about THIS engram. B1 moved the 402 challenge machinery to the
1271
+ * / about the software rather than about THIS engram. The 0.16.0 split moved the 402 challenge machinery to the
840
1272
  * / market; the one x402-payable rail the engram kept is `sessionReadMemory`, gated by
841
1273
  * / `paidMemoryReadEnabled`, which DEFAULTS TO FALSE. So a discovering agent was told this engram
842
1274
  * / takes x402 payments while every paid read on a default engram is refused with "the owner has
@@ -859,25 +1291,19 @@ export interface Engram {
859
1291
  */
860
1292
  getEngramCard: ActorMethod<[], AgentCard>;
861
1293
  /**
862
- * / PUBLIC: the engram's permanent spawn ordinal — a provable, non-sensitive fact. It identifies a
863
- * / canister, never a person.
864
- * / null = spawned before numbering existed; the owner can backfill via syncEngramNumber().
865
- */
866
- getEngramNumber: ActorMethod<[], [] | [bigint]>;
867
- /**
868
- * / Re-pointed at `EvmIdentity` (B-2): custody derivation no longer routes through the ic402
869
- * / Gateway, which is leaving for the market canister. Behaviour is unchanged for a caller — same
870
- * / address, same tECDSA key — but the engram no longer needs a marketplace to know its own
871
- * / address, which is the whole point of the split.
1294
+ * / Re-pointed at `EvmIdentity` (the step that moved commerce to the market): custody derivation no
1295
+ * / longer routes through the ic402 Gateway, which is leaving for the market canister. Behaviour is
1296
+ * / unchanged for a caller — same address, same tECDSA key — but the engram no longer needs a
1297
+ * / marketplace to know its own address, which is the whole point of the split.
872
1298
  * /
873
- * / ⟨2026-08-21⟩ DO NOT FOLD THIS WITH `getEvmSignerAddress`. The 0.16.0 census carried the fold
1299
+ * / ⟨2026-08-21⟩ DO NOT FOLD THIS WITH `getEvmSignerAddress`. The 0.16.0 interface plan carried the fold
874
1300
  * / as an open item, conditional on "if the derivation is identical". It is not, and the condition
875
1301
  * / is decidable here rather than by reading either comment:
876
1302
  * /
877
1303
  * / this method EvmIdentity.deriveAddress -> derivation_path = []
878
1304
  * / the signer eip712PublicKey -> derivation_path = ["eip712"]
879
1305
  * /
880
- * / ⟨CORRECTED 2026-09-22 — the two paths above are what the code passed until KEY-PATHS §4 step 5;
1306
+ * / ⟨CORRECTED 2026-09-22 — the two paths above are what the code passed until the key-path rule of 2026-09-22 (a path is typed once);
881
1307
  * / the table is kept because the ARGUMENT it makes is unchanged and is the reason the fold is
882
1308
  * / still refused.⟩ The signer now reads `KeyPaths.EIP712` = `["engramx","eip712","secp256k1","v1"]`
883
1309
  * / and this method still derives at the empty path, because `pay` is the one row the genesis could
@@ -914,12 +1340,12 @@ export interface Engram {
914
1340
  * / is exactly who needs it. The write it causes is bounded to one derivation and one
915
1341
  * / set-once custody stamp per engram lifetime, which is what keeps "any caller may cause it"
916
1342
  * / safe rather than merely permitted.
917
- * / ⟨L7⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1343
+ * / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
918
1344
  * / `EvmIdentity.deriveAddress`, which reaches the management canister's `ecdsa_public_key`. A
919
1345
  * / query cannot await it.
920
1346
  * /
921
- * / ⟨Marker added 2026-08-23; the census row already said "L7 marked (ecdsa_public_key)" and the
922
- * / site did not carry the mark. Same `public func` form as its two neighbours above.⟩
1347
+ * / ⟨Marker added 2026-08-23; the interface plan's entry already marked it a read served as an update
1348
+ * / (ecdsa_public_key) and the site did not carry the mark. Same `public func` form as its two neighbours above.⟩
923
1349
  * /
924
1350
  * / ⟨2026-09-28⟩ THE REPLY IS A RECORD, `Types.EvmAddresses` — the payment address (`pay`, what this
925
1351
  * / method returned alone until then) and the address that signs the engram's own registrations
@@ -936,7 +1362,7 @@ export interface Engram {
936
1362
  * / `#Err`, never a record carrying an empty string (ic402's `getEvmAddress` answers `""` on a
937
1363
  * / failed derivation — that is fail-to-empty on a money surface, and it stops here).
938
1364
  */
939
- getEvmAddress: ActorMethod<[], Result_59>;
1365
+ getEvmAddress: ActorMethod<[], Result_78>;
940
1366
  /**
941
1367
  * / The owner's OWN EVM address, if they registered one — distinct from `getEvmAddress`, which is
942
1368
  * / the address this canister derives for itself.
@@ -947,15 +1373,18 @@ export interface Engram {
947
1373
  */
948
1374
  getEvmOwnerAddress: ActorMethod<[], [] | [string]>;
949
1375
  /**
950
- * / D1 ships with this: the address of the DEDICATED signing key. Without it the owner funds the
1376
+ * / The dedicated-key design ships with this: the address of the DEDICATED signing key. Without it the owner funds the
951
1377
  * / wrong address — the payment key's address is NOT this one, by design.
952
1378
  * /
953
- * / ⟨L7⟩ UPDATE, NOT QUERY, and this is the system call that forces it: `eip712PublicKey()` awaits
1379
+ * / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: `eip712PublicKey()` awaits
954
1380
  * / the management canister's `ecdsa_public_key`. A query cannot await, so the round-trip is the
955
- * / cost — stated here because L7 requires the reason be readable from the interface rather than
1381
+ * / cost — stated here because the update-for-read rule requires the reason be readable from the interface rather than
956
1382
  * / inferred by opening the body.
1383
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1384
+ * / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
1385
+ * / engram is unchanged.
957
1386
  */
958
- getEvmSignerAddress: ActorMethod<[], Result_44>;
1387
+ getEvmSignerAddress: ActorMethod<[], Result_58>;
959
1388
  /**
960
1389
  * / PUBLIC: where this chain begins, for the stranger deciding whether to trust it.
961
1390
  * /
@@ -968,7 +1397,46 @@ export interface Engram {
968
1397
  /**
969
1398
  * / A guardian's own channel status (their URL is their secret — each guardian sees only theirs).
970
1399
  */
971
- getGuardianAlertStatus: ActorMethod<[], Result_58>;
1400
+ getGuardianAlertStatus: ActorMethod<[], Result_77>;
1401
+ /**
1402
+ * / The sealed copy itself — opaque bytes only the sign-in can open. Readable by the sign-in (it
1403
+ * / opens them with the key `getEncryptedKeyBackupKey` derives for it) and by the key file, which
1404
+ * / holds the plaintext already and so learns nothing — it reads them to compare with the copy the kit
1405
+ * / made (the child build's design check: a copy someone else stored first reads as "not this key", not as
1406
+ * / "sealed"). Refused in a first engram, and `#NotFound` when no copy is held. The copy that waits
1407
+ * / with an ask is never served here: it is inert until accepted.
1408
+ * / A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
1409
+ * / Named callers: the owner kit (`--recover-key`, and its check after sealing), and an owner console
1410
+ * / signed in as the sign-in (the browser's recovery).
1411
+ */
1412
+ getKeyBackupCiphertext: ActorMethod<[], Result_76>;
1413
+ /**
1414
+ * / Whether this engram holds a sealed copy of its owner's key, for whom, since when, whether it is
1415
+ * / sealed for the sign-in seated now, and whether a copy waits with an ask (`Types.KeyBackupStatus`).
1416
+ * / Readable by the key file and the sign-in (`#ownerOrSignIn`); refused loudly to anyone else
1417
+ * / (the refusal-over-fabrication rule). A first engram refuses by name rather than answer "not sealed": it never holds one,
1418
+ * / and an empty answer there would read as a child whose seal failed.
1419
+ * / A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
1420
+ * / Named callers: the owner kit after it opens an engram (it prints whether the copy is stored), and
1421
+ * / an owner console showing an engram opened through another (whether recovery can work).
1422
+ */
1423
+ getKeyBackupStatus: ActorMethod<[], Result_75>;
1424
+ /**
1425
+ * / BLS verification key under which the owner kit seals the backup (`IbeCiphertext.encrypt` to the
1426
+ * / sign-in's principal) and the opener verifies the derived key. Served on-canister so the kit never
1427
+ * / has to know which master key this network uses (the child build's design: a wrong guess would seal a copy
1428
+ * / nobody can open). Static per (context, key id, canister) — cacheable.
1429
+ * /
1430
+ * / PUBLIC: intentionally unauthenticated — a vetKD public key reveals nothing secret and cannot
1431
+ * / decrypt anything — the sensitive derivation is getEncryptedKeyBackupKey below, which IS gated
1432
+ * / (the sign-in alone) and returns key material encrypted to the caller's transport key. The same
1433
+ * / reasoning as getMemoryKeyVerificationKey, for the backup's own context.
1434
+ * / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1435
+ * / `VetKeys.ManagementCanister.vetKdPublicKey`. A query cannot await.
1436
+ * / Named callers: the owner kit, when it seals the copy at birth or for an ask; an owner console,
1437
+ * / to verify the derived key during recovery.
1438
+ */
1439
+ getKeyBackupVerificationKey: ActorMethod<[], Uint8Array | number[]>;
972
1440
  /**
973
1441
  * / The market this engram will accept signing requests from — `null` until the registry pushes
974
1442
  * / one at spawn, which is why `requireMarket` refuses fleet-wide today.
@@ -1001,9 +1469,9 @@ export interface Engram {
1001
1469
  * / never renumbered: the next page starts at the last version returned plus one. Defaults
1002
1470
  * / return the whole history of any file a pre-FD engram could have held.
1003
1471
  */
1004
- getMemoryHistory: ActorMethod<[string, [] | [bigint], [] | [bigint]], Result_57>;
1472
+ getMemoryHistory: ActorMethod<[string, [] | [bigint], [] | [bigint]], Result_74>;
1005
1473
  /**
1006
- * / PUBLIC: the epoch alone, and deliberately nothing else (rotation study D4). A `rotatedAt[]`
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[]`
1007
1475
  * / history would be a public, fleet-enumerable feed of when each owner terminated a trust
1008
1476
  * / relationship — readable by, among others, the party just terminated.
1009
1477
  */
@@ -1016,13 +1484,14 @@ export interface Engram {
1016
1484
  * / cannot decrypt anything — the sensitive derivation is getEncryptedMemoryKey
1017
1485
  * / below, which IS gated (read_memory) and returns key material encrypted to the
1018
1486
  * / caller's transport key. Do not add an auth guard here (breaks client caching).
1019
- * / ⟨L7⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1487
+ * / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1020
1488
  * / `VetKeys.ManagementCanister.vetKdPublicKey`. A query cannot await, so the round trip is the
1021
1489
  * / cost of getting a key nobody has to trust us for — which is the point of publishing it.
1022
1490
  * /
1023
- * / ⟨Marker added 2026-08-23; the census row already said "L7 (vetKD pubkey call)" and the site did
1024
- * / not carry it. Declared `public func` rather than `public shared`, which is why the naming rule
1025
- * / in check-update-for-read.mjs did not see it — the census population did.⟩
1491
+ * / ⟨Marker added 2026-08-23; the interface plan's entry already marked it a read served as an update
1492
+ * / (vetKD pubkey call) and the site did not carry it. Declared `public func` rather than `public shared`,
1493
+ * / which is why the naming rule in the update-for-read gate did not see it — the plan's list of reads served as
1494
+ * / updates did.⟩
1026
1495
  */
1027
1496
  getMemoryKeyVerificationKey: ActorMethod<[], Uint8Array | number[]>;
1028
1497
  /**
@@ -1050,7 +1519,7 @@ export interface Engram {
1050
1519
  * / forever" — a claim about what this engram will DESTROY — and an empty guard list reads as
1051
1520
  * / "nothing is held back".
1052
1521
  */
1053
- getMemoryRetentionPolicy: ActorMethod<[], Result_56>;
1522
+ getMemoryRetentionPolicy: ActorMethod<[], Result_73>;
1054
1523
  /**
1055
1524
  * / The metrics reader this engram answers — `null` until the spawning registry names one.
1056
1525
  * /
@@ -1067,7 +1536,7 @@ export interface Engram {
1067
1536
  * / a fact about the caller, told to the caller. There is nothing to leak by omission — which is
1068
1537
  * / the test the #NotFound arm sets.
1069
1538
  */
1070
- getMyGuardianStatus: ActorMethod<[], Result_15>;
1539
+ getMyGuardianStatus: ActorMethod<[], Result_19>;
1071
1540
  /**
1072
1541
  * / ⟨0.16.0, NEW⟩ The gated half of the status() split.
1073
1542
  * /
@@ -1076,24 +1545,61 @@ export interface Engram {
1076
1545
  * /
1077
1546
  * / `cyclesBalance` is a bare `Nat`, and that retires an argument this repo carried for weeks. It
1078
1547
  * / was `nat`, then widened to `opt nat` so a refusal could be `null`, which broke every published
1079
- * / client (rule 4) and bought a masked answer nobody had asked for — the census could not even
1080
- * / find a consumer that read the masked `0`. Behind a gate there is nobody to mask it from.
1548
+ * / client (rule 4) and bought a masked answer nobody had asked for — the 0.16.0 interface plan could not
1549
+ * / even find a consumer that read the masked `0`. Behind a gate there is nobody to mask it from.
1081
1550
  */
1082
- getOwnerConsole: ActorMethod<[], Result_55>;
1551
+ getOwnerConsole: ActorMethod<[], Result_72>;
1552
+ /**
1553
+ * / The engram's sign-in, as `Types.OwnerSignInView` describes it: whether this engram was opened
1554
+ * / through another, who its sign-in is, whether the caller is it, and any decline or waiting ask.
1555
+ * / Readable by the owner's key, the sign-in, and the person a waiting ask goes to (they need to see
1556
+ * / the ask to answer it); refused loudly to anyone else (the refusal-over-fabrication rule) — never an empty view, which would
1557
+ * / read as "no sign-in". A first engram answers its owner with every field null or false.
1558
+ * / A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
1559
+ * / Named callers: an owner console showing an engram opened through another (who signs in, and a
1560
+ * / waiting ask with Accept and Decline), and the owner kit after it opens one.
1561
+ */
1562
+ getOwnerSignIn: ActorMethod<[], Result_71>;
1563
+ /**
1564
+ * / ⟨2026-11-15⟩ The open offer, to the two parties to it: the owner and the principal it names.
1565
+ * / `null` when none is open or it has expired. Anyone else is refused: an offer names a principal
1566
+ * / who has not agreed to anything yet, so it is not public the way the custody chain is.
1567
+ */
1568
+ getOwnershipOffer: ActorMethod<[], Result_70>;
1569
+ /**
1570
+ * / Read the four profile fields in one bounded batch. Raw per-field results preserve SDK
1571
+ * / decryption and first-failure ordering; only an explicit NotFound means an unset field.
1572
+ * / Query reads retain existing permission and owner visibility, without changing read counts.
1573
+ * / Callers: EngramClient.getProfile (ProfileManager.getProfile, the local MCP profile tool).
1574
+ */
1575
+ getProfile: ActorMethod<[], Result_69>;
1083
1576
  /**
1084
1577
  * / Owner + agents only (agents need it to avoid writing protected paths).
1085
1578
  * /
1086
1579
  * / A NAMED RECORD, not a Page: the setter replaces this list wholesale, so there is no window to
1087
1580
  * / page over and no `total` that could differ from `items.size()`. Forcing the Page shape here
1088
- * / would be uniformity for its own sake — the census ratified the whole-value-config carve-out
1089
- * / precisely so L3 does not become a rule applied past its meaning.
1581
+ * / would be uniformity for its own sake — the 0.16.0 interface plan ratified the whole-value-config
1582
+ * / carve-out precisely so the one page shape does not become a rule applied past its meaning.
1090
1583
  * /
1091
1584
  * / The trap's `whyNotEmpty` clause is preserved as the `#Refused` reason: `[]` would read as "no
1092
1585
  * / path on this engram is protected", and an agent consults this list precisely to avoid
1093
1586
  * / writing one — so a fabricated empty here does not merely misinform, it invites the write the
1094
1587
  * / list exists to prevent.
1095
1588
  */
1096
- getProtectedPaths: ActorMethod<[], Result_54>;
1589
+ getProtectedPaths: ActorMethod<[], Result_68>;
1590
+ /**
1591
+ * / What an approval card shows beside a payment to `payTo` (`Types.RecipientHistory`): whether an x402
1592
+ * / signature from this engram has paid it before and since when, whether it is a listed seller and
1593
+ * / counts now, and whether the history is full (then "not paid before" may be one it forgot). Read
1594
+ * / beside the request, because the stored request is never reshaped. For the key file and the sign-in
1595
+ * / (the owner in a first engram); refused loudly to anyone else. A malformed address is `#Invalid`.
1596
+ * / ⟨2026-11-02, the child build's withdrawal-pinning step⟩ Also how many times x402 has paid it and the largest of
1597
+ * / those payments (`timesPaid`, `largestPaidE6`, six-decimal minor units), so a card can say "paid 3
1598
+ * / times, largest $12"; the history forgets the address paid longest ago when full.
1599
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ And when it was LAST paid (`lastPaidAtNs`; null when never).
1600
+ * / Named callers: an owner console's approval card for a payment request.
1601
+ */
1602
+ getRecipientHistory: ActorMethod<[string], Result_67>;
1097
1603
  /**
1098
1604
  * / Whether the metrics reader's read is answered — `true` from birth.
1099
1605
  * /
@@ -1105,8 +1611,14 @@ export interface Engram {
1105
1611
  * / Owner-only, Billing-class: the signing floor, the balance, one signature's price, and how many
1106
1612
  * / payment signatures the balance carries above the floor before `signX402Payment` is refused by
1107
1613
  * / name. The same numbers the check uses, so Billing can say only what the engram enforces.
1614
+ * / ⟨2026-11-01, the read-the-setting-first ruling⟩ Refused by name (`#Unavailable`) while this engram
1615
+ * / has not read its own freezing setting: there is no floor to serve then, and a 30-day figure would
1616
+ * / be a made-up one (the refusal-over-fabrication rule) — the signers refuse in that state too, so
1617
+ * / the refusal is the truth on Billing.
1618
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1619
+ * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1108
1620
  */
1109
- getSigningFloor: ActorMethod<[], Result_53>;
1621
+ getSigningFloor: ActorMethod<[], Result_66>;
1110
1622
  /**
1111
1623
  * / The registry that spawned this engram, if it recorded one.
1112
1624
  * /
@@ -1119,15 +1631,21 @@ export interface Engram {
1119
1631
  /**
1120
1632
  * / Read the engram-wide daily ceiling and what has been spent against it today, across every
1121
1633
  * / caller. ⟨2026-09-28, the owner's decision to add the ceiling⟩
1122
- * / ⟨CORRECTED 2026-09-29, review finding X-8: "spent" means signed in x402 payments; typed-data
1634
+ * / ⟨CORRECTED 2026-09-29, a review finding: "spent" means signed in x402 payments; typed-data
1123
1635
  * / and the engram's registration signatures are not counted here — see `setSpendCeiling`.⟩
1636
+ * / ⟨CORRECTED 2026-11-04, the agent-conversion build, beside the note above⟩ …and, since 2026-11, an
1637
+ * / agent's conversion of the engram's balance into compute (`agentConvertBalance`, in a first engram too);
1638
+ * / in an engram opened through another the key file's Convert as well (since 2026-11-02). Both are reserved
1639
+ * / before their first await and given back when nothing left the wallet.
1124
1640
  * /
1125
1641
  * / OWNER-ONLY, for the reason `getSpendPolicy` is: the limits are the owner's custody
1126
1642
  * / configuration, and the engram-wide total would also tell one agent how much the others spent.
1127
1643
  * / A refusal names this method (`Gated.gatedResult`) rather than answering null/0 — a ceiling of
1128
1644
  * / "none" and a spend of 0 are both real answers, so a fabricated one would be read as fact.
1645
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1646
+ * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1129
1647
  */
1130
- getSpendCeiling: ActorMethod<[], Result_52>;
1648
+ getSpendCeiling: ActorMethod<[], Result_65>;
1131
1649
  /**
1132
1650
  * / Read the caps in force for a caller.
1133
1651
  * /
@@ -1136,9 +1654,18 @@ export interface Engram {
1136
1654
  * / Here the engram serves no 402s at all: these caps are the owner's private custody
1137
1655
  * / configuration, and publishing them would tell any caller exactly how large a signing request
1138
1656
  * / can be before it needs an approval nobody is watching for.
1657
+ * /
1658
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1659
+ * / an engram opened through another, as the owner, through the combinator's `#ownerOrSignIn` (a first
1660
+ * / engram is unchanged: the owner only). The inline owner comparison that stood here is gone with it —
1661
+ * / one fewer unnamed caller guard. Its refusal sentence is kept as the reason it never fails soft:
1662
+ * / "Spending caps are the owner's custody configuration. Refusing rather than answering with
1663
+ * / defaults — a default-looking answer would understate the real limits to anyone probing them." The
1664
+ * / refusal itself is now the combinator's (`#Refused getSpendPolicy: …`, `requireOwner`'s words), and
1665
+ * / an engram with no owner yet is refused the same way rather than answered `#Conflict`.
1139
1666
  */
1140
- getSpendPolicy: ActorMethod<[[] | [Principal]], Result_51>;
1141
- getStorageStats: ActorMethod<[], Result_50>;
1667
+ getSpendPolicy: ActorMethod<[[] | [Principal]], Result_64>;
1668
+ getStorageStats: ActorMethod<[], Result_63>;
1142
1669
  /**
1143
1670
  * / Timer arm-state. PUBLIC and deliberately so: these timers are self-arming to save cycles,
1144
1671
  * / and an optimisation nobody can verify is an optimisation nobody should trust. Cheap to read,
@@ -1146,6 +1673,9 @@ export interface Engram {
1146
1673
  * /
1147
1674
  * / IDLE STEADY STATE (no webhook, no x402 sessions, no service jobs):
1148
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.
1149
1679
  * /
1150
1680
  * / ⚠ CORRECTED 2026-08-19. This said `jobExpiryArmed=TRUE` and that it "stays true by design —
1151
1681
  * / ic402 keeps an hourly idle POLL because createJobFromReceipt is synchronous and cannot disarm a
@@ -1154,9 +1684,9 @@ export interface Engram {
1154
1684
  * /
1155
1685
  * / The engram sets `setExpiryIdlePollSeconds(0)` in its actor body, and ic402's ServiceRegistry
1156
1686
  * / CANCELS the timer outright at 0 rather than re-arming it — so the hourly tick this paragraph
1157
- * / promised has not existed since that line landed. Independently, B1 moved job creation to the
1158
- * / market: the engram now serves no job method at all, so nothing can arm the timer in the first
1159
- * / place. `jobExpiryArmed` reads false on an idle engram, and false is CORRECT.
1687
+ * / promised has not existed since that line landed. Independently, job creation moved to the
1688
+ * / market with the rest of commerce: the engram now serves no job method at all, so nothing can arm
1689
+ * / the timer in the first place. `jobExpiryArmed` reads false on an idle engram, and false is CORRECT.
1160
1690
  * /
1161
1691
  * / EXPECTED FALSE POSITIVE: for up to one interval after any install or upgrade,
1162
1692
  * / sessionExpiryArmed reads true with zero sessions. ic402's startTimers arms unconditionally
@@ -1176,18 +1706,30 @@ export interface Engram {
1176
1706
  * / PUBLIC: the same standing as the two liveness reads above. Booleans and timestamps about this
1177
1707
  * / canister's own timers — nothing about content, callers or money — and a liveness signal only
1178
1708
  * / its owner can read cannot tell a third party that the engram is still running.
1709
+ * / ⟨2026-10-28, the owner's automatic-pause ruling⟩ The three ic402 flags read FALSE WHILE THE TIMERS ARE PAUSED.
1710
+ * / The pause's id sweep cancels ic402's sweeps, but ic402 keeps their stale ids, so its own
1711
+ * / "armed" reads would answer true for a timer that no longer exists (a fabricated answer,
1712
+ * / the refusal-over-fabrication rule). `alertTimerArmed` needs no guard: the sweep nulls `alertTimerId` itself.
1713
+ * / ⟨2026-10-29, the owner's on-demand alerts ruling, beside the line above⟩ …the sweep zeroes the arm, and an arm
1714
+ * / past its due time reads stale. `alertTimerArmed` is TRUE ONLY WHILE A DELIVERY IS OWED OR RETRYING
1715
+ * / (the alert drain is a one-shot armed per owed delivery); alerts configured on a quiet engram read
1716
+ * / false, and that is correct — the IDLE STEADY STATE line above now holds with a webhook set too.
1717
+ * / It reads the arm's DUE TIME, not only its id (`ActionAlerts.armLive`): a job that traps before its
1718
+ * / first await rolls back its own `alertTimerId := null`, so a bare id would read armed forever.
1719
+ * / ONE BOUNDED UNTRUTH (named by the alert design's adversarial review): for ARM_STALE_NS (120 s)
1720
+ * / after the due time of such a trapped job, the flag reads true although no timer exists.
1179
1721
  */
1180
1722
  getTimerHealth: ActorMethod<[], TimerHealth>;
1181
1723
  /**
1182
1724
  * / PUBLIC: a cap identifies no user, and a caller deserves to know the rule before it stops them.
1183
1725
  * /
1184
- * / ⟨0.16.0, L8⟩ Was owner-gated behind a trap. The disclosure law asks what the value reveals, and
1185
- * / the answer here is nothing about anybody — it is a policy ceiling, not a balance or a history.
1186
- * / Publishing it removes the trap AND the envelope: an ungated read has no refusal to carry, so
1726
+ * / ⟨0.16.0, a public method states why it is public⟩ Was owner-gated behind a trap. The disclosure law asks
1727
+ * / what the value reveals, and the answer here is nothing about anybody — it is a policy ceiling, not a balance
1728
+ * / or a history. Publishing it removes the trap AND the envelope: an ungated read has no refusal to carry, so
1187
1729
  * / wrapping it in `Result` would be ceremony that implies a gate exists.
1188
1730
  * /
1189
1731
  * / Predictability is itself the honesty posture: a limit that only reveals itself by refusing a
1190
- * / top-up teaches the caller by failure. `/// PUBLIC:` is the marker the L8 gate greps for.
1732
+ * / top-up teaches the caller by failure. `/// PUBLIC:` is the marker the public-reason gate greps for.
1191
1733
  */
1192
1734
  getTopUpLimits: ActorMethod<[], { cooldownSeconds: bigint; maxCkusdcE6s: bigint }>;
1193
1735
  /**
@@ -1198,29 +1740,41 @@ export interface Engram {
1198
1740
  * / the other, is a call site waiting to be written wrong — and wrong in the direction that
1199
1741
  * / silently reads cycles when it meant to read money. Doc callers (CLI-REFERENCE, Docs.vue) sweep
1200
1742
  * / to the survivor.
1201
- * / RENAMED from `walletBalances` (L2.1: `get*` for a single value).
1743
+ * / RENAMED from `walletBalances` (a `get*` for a single value).
1202
1744
  * /
1203
- * / Stays an UPDATE, marked per L7: it awaits three ICRC-1 ledgers. The name cannot say that, so
1204
- * / the declaration does — a caller budgeting round-trips needs to know this is not a query.
1745
+ * / Stays an UPDATE, marked as a read served as an update: it awaits three ICRC-1 ledgers. The name
1746
+ * / cannot say that, so the declaration does — a caller budgeting round-trips needs to know this is
1747
+ * / not a query.
1205
1748
  * /
1206
1749
  * / The ledger failure is `#Unavailable`, not `#Invalid`: a dependency refused or timed out, the
1207
1750
  * / request was fine, and retry is the correct response. That is the one arm in the whole set that
1208
1751
  * / means "try again", and it is the reason `Error` is a closed variant rather than a sentence.
1209
1752
  * /
1210
- * / ⟨L7⟩ MARKER ADDED 2026-08-23, reasoning above UNCHANGED — this block already said "Stays an
1211
- * / UPDATE, marked per L7: it awaits three ICRC-1 ledgers". It was marked in prose and invisible
1212
- * / to any gate; the glyph is what `scripts/check-update-for-read.mjs` matches.
1753
+ * / ⟨update-for-read⟩ MARKER ADDED 2026-08-23, reasoning above UNCHANGED — this block already said "Stays an
1754
+ * / UPDATE, marked as a read served as an update: it awaits three ICRC-1 ledgers". It was marked in
1755
+ * / prose and invisible to any gate; the glyph is what the update-for-read gate matches.
1756
+ */
1757
+ getWalletBalances: ActorMethod<[], Result_62>;
1758
+ /**
1759
+ * / Cycles-only getter used by EngramClient.walletBalance and its stdio MCP/OpenClaw callers.
1760
+ * / The earlier walletBalance/walletBalances one-letter pair remains retired: this name states
1761
+ * / the unit, while getWalletBalances retains the distinct full token-wallet operation.
1762
+ * / A token-ledger outage cannot prevent this local fuel read; it uses the same operation as
1763
+ * / remote engram_wallet_balance and never sends an outgoing call.
1764
+ * / ⟨update-for-read⟩ UPDATE despite having no await: preserve the existing wallet facade's per-agent quota
1765
+ * / charge and lastSeenNs update, including when wallet permission is subsequently refused.
1766
+ * / A query would discard those writes and silently loosen the agent's existing rate limit.
1213
1767
  */
1214
- getWalletBalances: ActorMethod<[], Result_49>;
1768
+ getWalletCycles: ActorMethod<[], Result_15>;
1215
1769
  /**
1216
1770
  * / Refusal reason preserved, and it is the clearest case of why a masked read is worse than no
1217
1771
  * / read: three empty strings with `configured = false` is a VALID-LOOKING answer meaning "this
1218
1772
  * / engram has no World ID configuration" — handed to a caller who merely lacks a grant. The
1219
1773
  * / fabrication is indistinguishable from the truth by construction.
1220
1774
  */
1221
- getWorldIdConfig: ActorMethod<[], Result_48>;
1775
+ getWorldIdConfig: ActorMethod<[], Result_61>;
1222
1776
  /**
1223
- * / ⟨L7⟩ UPDATE, NOT QUERY: this awaits THREE system calls — `raw_rand()` for the nonce,
1777
+ * / ⟨update-for-read⟩ UPDATE, NOT QUERY: this awaits THREE system calls — `raw_rand()` for the nonce,
1224
1778
  * / `Call.signWithEcdsa` for the signature, and `worldIdRpPublicKey()` for the derived key. A
1225
1779
  * / query can do none of them.
1226
1780
  * /
@@ -1229,19 +1783,22 @@ export interface Engram {
1229
1783
  * / the World Developer Portal. Short-lived (300s TTL, idkit-server's default) and single-purpose —
1230
1784
  * / it authorizes opening one verification request, nothing else.
1231
1785
  */
1232
- getWorldIdRpContext: ActorMethod<[], Result_47>;
1786
+ getWorldIdRpContext: ActorMethod<[], Result_60>;
1233
1787
  /**
1234
1788
  * / Owner-only: the EVM address derived from the engram's dedicated World ID RP signing key (the
1235
1789
  * / "worldid-rp" tECDSA path). Register THIS address as the rp_id's signer in the World Developer
1236
1790
  * / Portal — the engram never holds or exports a private key (only threshold shares exist, on the
1237
1791
  * / subnet). Distinct from the payment/EVM address by construction.
1238
1792
  * /
1239
- * / ⟨L7⟩ UPDATE, NOT QUERY, for TWO reasons and the second is the one a reader would miss. It
1793
+ * / ⟨update-for-read⟩ UPDATE, NOT QUERY, for TWO reasons and the second is the one a reader would miss. It
1240
1794
  * / awaits `worldIdRpPublicKey()` (management `ecdsa_public_key`), and it calls `denied()` on
1241
1795
  * / refusal — a state write, which a query cannot perform. So even if the key were cached this
1242
- * / could not become a query without silently retiring its denial record (ADR-0002's class).
1796
+ * / could not become a query without silently retiring its denial record (the refusal-over-fabrication class).
1797
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1798
+ * / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
1799
+ * / engram is unchanged.
1243
1800
  */
1244
- getWorldIdRpSignerAddress: ActorMethod<[], Result_44>;
1801
+ getWorldIdRpSignerAddress: ActorMethod<[], Result_58>;
1245
1802
  /**
1246
1803
  * / The verified IDKitResult, verbatim, as World's /api/v4/verify accepted it — the re-checkable
1247
1804
  * / artifact behind verifiedHuman. Role-gated because it carries the NULLIFIER.
@@ -1257,20 +1814,24 @@ export interface Engram {
1257
1814
  * / nothing.
1258
1815
  * /
1259
1816
  * / ⟨CORRECTED 2026-08-21 — this said `metrics().verifiedHuman`, and `metrics()` no longer exists:
1260
- * / L2.2 folded it and `status()` into `about()`, which carries the field. The sentence is a
1817
+ * / The same-concept-same-name law folded it and `status()` into `about()`, which carries the field. The sentence is a
1261
1818
  * / `///`, so the dead name was PUBLISHED in engram.did and pointed every client at a method the
1262
1819
  * / canister does not serve. The tombstones below and at `about()` are historical and correct as
1263
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`.
1264
1825
  */
1265
- getWorldIdVerification: ActorMethod<[], Result_46>;
1826
+ getWorldIdVerification: ActorMethod<[], Result_59>;
1266
1827
  /**
1267
- * / ⟨0.16.0, L1⟩ THE EMERGENCY FAMILY. Every refusal below is `#Refused` or `#NotFound`, and the
1268
- * / absence of a `#Conflict` here is the point: these are the calls someone makes while something
1269
- * / is going wrong, and the only two answers that help are "you may not do this" and "there is
1270
- * / nothing by that name". A missing PERMISSION is `#Refused` rather than `#Conflict` — the
1828
+ * / ⟨0.16.0, refusals are values, never traps⟩ THE EMERGENCY FAMILY. Every refusal below is `#Refused`
1829
+ * / or `#NotFound`, and the absence of a `#Conflict` here is the point: these are the calls someone
1830
+ * / makes while something is going wrong, and the only two answers that help are "you may not do this"
1831
+ * / and "there is nothing by that name". A missing PERMISSION is `#Refused` rather than `#Conflict` — the
1271
1832
  * / guardian's standing is what fell short, and no change to engram state would let them through.
1272
1833
  */
1273
- guardianRevokeAgent: ActorMethod<[Principal], Result_1>;
1834
+ guardianRevokeAgent: ActorMethod<[Principal], Result_2>;
1274
1835
  /**
1275
1836
  * / The HTTP surface: canister-info JSON, OAuth discovery documents, and the MCP route's query
1276
1837
  * / half. See the `http_request_update` twin below for what upgrades and why.
@@ -1294,7 +1855,7 @@ export interface Engram {
1294
1855
  http_request_update: ActorMethod<[HttpRequest], HttpResponse>;
1295
1856
  /**
1296
1857
  * / ⟨0.16.0⟩ `isPaidMemoryReadEnabled()` DELETED — folded to `about().paidMemoryReadEnabled`
1297
- * / (L2.6: one idiom for a boolean feature — a setter plus the flag on its family's projection).
1858
+ * / (one idiom for a boolean feature — a setter plus the flag on its family's projection).
1298
1859
  * / Its callers are a buyer's pre-check and the market canister, both ANONYMOUS, so the public
1299
1860
  * / projection is exactly where it belongs.
1300
1861
  * / PUBLIC: a wallet calls this BEFORE its user has any standing on this engram — that is what the
@@ -1320,33 +1881,6 @@ export interface Engram {
1320
1881
  }
1321
1882
  | { Err: { description: string; error_code: bigint } }
1322
1883
  >;
1323
- /**
1324
- * / Owner-only: is the derived EVM address CACHED right now, without deriving it to find out.
1325
- * /
1326
- * / WHY A SEPARATE METHOD AND NOT A FIELD ON `getEvmAddress`. That method cannot answer this
1327
- * / question by construction: when the cache is null it DERIVES, caches the result and returns it,
1328
- * / so by the time a caller sees the reply the cache is populated either way. Asking it whether the
1329
- * / cache had been populated changes the answer.
1330
- * /
1331
- * / WHY IT EXISTS AT ALL, since a public surface is never free on a canister meant to go public.
1332
- * / `evmAddressCache` is money-classed and its annotation says why: derivation is deterministic, so
1333
- * / a lost cache LOOKS harmless, but until something re-derives, the EVM payment quote advertises
1334
- * / the fallback — an address that cannot receive. A window in which a live money surface publishes
1335
- * / an unreceivable address is a money defect, not a cache miss. Nothing else in this canister
1336
- * / reads that var — one reader and two writers, all in this file — so before this method there was
1337
- * / no observation anywhere that could tell a survived cache from a rebuilt one, and the upgrade
1338
- * / coverage gate carried a money-classed var nothing could prove.
1339
- * /
1340
- * / ⚠ IT MUST NEVER DERIVE. A version that fell back to deriving would answer `true` always and
1341
- * / prove nothing — the same trap `getEvmAddress` sets for anyone trying to use it as a witness.
1342
- * / It reads the var and nothing else, and it is a `query` precisely so that it CANNOT make the
1343
- * / inter-canister call a derivation requires: the restriction is enforced by the system, not by
1344
- * / this comment.
1345
- * /
1346
- * / Owner-gated because it reports on custody posture, and answered as a Result so that a
1347
- * / wrong-identity caller gets a refusal rather than a bare `false` that reads as "no address yet".
1348
- */
1349
- isEvmAddressCached: ActorMethod<[], Result_45>;
1350
1884
  /**
1351
1885
  * / Issue an OAuth authorization code. Called by an OAuth client's sign-in bridge
1352
1886
  * / (an `/auth/connector`-style route) after II authentication. The client then
@@ -1355,7 +1889,7 @@ export interface Engram {
1355
1889
  * /
1356
1890
  * / Owner-only: only the engram owner can authorize a Connector install.
1357
1891
  */
1358
- issueAuthCode: ActorMethod<[string, string, string, [] | [string]], Result_44>;
1892
+ issueAuthCode: ActorMethod<[string, string, string, [] | [string]], Result_58>;
1359
1893
  /**
1360
1894
  * / ⟨0.16.0⟩ `getCycleSnapshotSource` DELETED — folded into `CycleSnapshot.source`, one label per
1361
1895
  * / ROW. A single label for a whole ring misattributes every row recorded under the other source,
@@ -1364,16 +1898,48 @@ export interface Engram {
1364
1898
  * / Hourly (timestamp, totalMemoryReads, totalMemoryWrites) snapshots, ~30 days.
1365
1899
  * / Same guard + fail-to-empty shape as getCycleHistory. Diff consecutive rows for a
1366
1900
  * / per-engram activity time-series (retention instrumentation).
1367
- * / RENAMED from `getActivityHistory` (L2.1); named fields replace a bare 3-tuple whose two Nats
1368
- * / were positionally indistinguishable.
1901
+ * / RENAMED from `getActivityHistory` (a `get*` returns one value, a `list*` a page); named fields replace a
1902
+ * / bare 3-tuple whose two Nats were positionally indistinguishable.
1369
1903
  * /
1370
1904
  * / Refusal reason preserved, and it is the sharpest of this family: a masked `[]` reads as a
1371
1905
  * / DORMANT engram and corrupts retention math — a fabricated empty here does not just misinform a
1372
1906
  * / reader, it feeds a wrong number into a decision about destroying data.
1373
1907
  */
1374
- listActivitySnapshots: ActorMethod<[bigint, bigint], Result_43>;
1375
- /**
1376
- * / ⟨0.16.0⟩ THE PAGE EXEMPLAR. Trap → `#Refused`, bare array → `Result<Page<T>>` (L1 + L3).
1908
+ listActivitySnapshots: ActorMethod<[bigint, bigint], Result_57>;
1909
+ /**
1910
+ * / The owner or a seated owner sign-in reads paired and connected grants in one typed roster.
1911
+ * / Existing lists keep their signatures and records. Rows retain each list's relative order:
1912
+ * / paired first, then sign-ins. `active` means grant status/expiry/issuer standing only, not
1913
+ * / permission to execute every operation or spend through a freeze. No credential is rewritten.
1914
+ * / This new method carries the tagged shape rather than widening a shipped response variant.
1915
+ * / Callers: an owner console's agent list (paired agents and sign-ins on one page, with the
1916
+ * / admission count), read by the owner or a seated sign-in.
1917
+ */
1918
+ listAgentRoster: ActorMethod<[bigint, bigint], Result_56>;
1919
+ /**
1920
+ * / ⟨2026-10-21, the owner approved every item of the mobile design's eleventh round of changes, this
1921
+ * / one included⟩ OWNER-ONLY: what each agent has spent today, beside the daily limit in force for it, so the
1922
+ * / agent rows can say "$0.50 of $5.00 today" where they said a count of payments. Read from the
1923
+ * / state the payment path already keeps — `outboundSpendToday`, through `SpendCeiling.callerSpentOn`
1924
+ * / (the reader `x402SignFor` uses) — and the limits from `gate.getPolicy(<the agent's key>)`, the
1925
+ * / policy `x402SignFor` checks, on the UTC day it checks (`SpendCeiling.dayIndex`). Amounts are the
1926
+ * / token's minor units, as the record's `amount=` writes them. No new state.
1927
+ * /
1928
+ * / OWNER-ONLY for `getSpendCeiling`'s reason: one agent's spending is the owner's custody
1929
+ * / information, and would tell another agent how much it spent. Everyone else — an agent, a
1930
+ * / guardian, a stranger, the anonymous caller — is refused by name (`#Refused
1931
+ * / listAgentSpendToday: …`), never answered with zeros. Paged like `listAgents`, in its order, one
1932
+ * / row per agent record; a row's `spentToday` is null, not 0, where no daily limit is in force,
1933
+ * / because the payment path keeps no figure then (`SpendCeiling.AgentSpendRow` says why).
1934
+ * / WHAT WOULD MAKE THIS WRONG: `x402SignFor` keeping the per-caller total by something other than
1935
+ * / the calling key, or under another day boundary.
1936
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1937
+ * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1938
+ */
1939
+ listAgentSpendToday: ActorMethod<[bigint, bigint], Result_55>;
1940
+ /**
1941
+ * / ⟨0.16.0⟩ THE PAGE EXEMPLAR. Trap → `#Refused`, bare array → `Result<Page<T>>` (refusals are values; a
1942
+ * / list answers the one page shape).
1377
1943
  * /
1378
1944
  * / The refusal prose that used to be `gatedTrap`'s `whyNotEmpty` argument is not lost — it is why
1379
1945
  * / this method could never fail soft, and it now travels ON THE WIRE inside `#Refused` where a
@@ -1386,29 +1952,31 @@ export interface Engram {
1386
1952
  * / behaviour (silently truncate, look complete) is unrepresentable.
1387
1953
  * /
1388
1954
  * / `withheld` is 0: this roster is owner-only in whole, so there is no partial-visibility case.
1389
- * / A method that filters rows by caller sets it — see L1's row-level honesty rule.
1955
+ * / A method that filters rows by caller sets it — the row-level honesty rule.
1956
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
1957
+ * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1390
1958
  */
1391
- listAgents: ActorMethod<[bigint, bigint], Result_42>;
1959
+ listAgents: ActorMethod<[bigint, bigint], Result_54>;
1392
1960
  /**
1393
1961
  * / The GUARDIAN-audience projection of the agent roster — three fields, not the full record.
1394
1962
  * /
1395
- * / Two audiences, two methods (L1/L8), rather than one method masking fields by caller: a
1396
- * / guardian needs enough to revoke (who, what they are called, whether they are active) and no
1397
- * / more. Field-masking would make the same call return different shapes to different callers,
1398
- * / which is the design L1 abolished — and it would put the decision about what a guardian may see
1399
- * / inside a build closure where no gate can read it.
1963
+ * / Two audiences, two methods (one result shape per method; the disclosure law), rather than one
1964
+ * / method masking fields by caller: a guardian needs enough to revoke (who, what they are called,
1965
+ * / whether they are active) and no more. Field-masking would make the same call return different
1966
+ * / shapes to different callers, which is the design the one-result-shape law abolished — and it would
1967
+ * / put the decision about what a guardian may see inside a build closure where no gate can read it.
1400
1968
  * /
1401
1969
  * / Refusal reason preserved: `[]` reads as "this engram has no agents", and this is the list a
1402
1970
  * / guardian consults BEFORE REVOKING ONE. A fabricated empty here does not merely misinform —
1403
1971
  * / it tells someone acting under emergency powers that there is nothing to act on.
1404
1972
  */
1405
- listAgentsForGuardian: ActorMethod<[bigint, bigint], Result_41>;
1973
+ listAgentsForGuardian: ActorMethod<[bigint, bigint], Result_53>;
1406
1974
  /**
1407
1975
  * / Owner-only: rows carry caller, amount, operation and free-text rationale. The SDK omits it.
1408
1976
  * /
1409
- * / The optional leading filter SURVIVES the L3 reshape — ratified (census tier-2 #8) rather than
1410
- * / assumed, because Billing.vue calls the filtered form live and pushing the filter client-side
1411
- * / would make the console fetch a queue to discard most of it.
1977
+ * / The optional leading filter SURVIVES the page-shape reshape — ratified in the 0.16.0 interface plan (a
1978
+ * / list may take an optional leading filter) rather than assumed, because Billing.vue calls the filtered
1979
+ * / form live and pushing the filter client-side would make the console fetch a queue to discard most of it.
1412
1980
  * /
1413
1981
  * / `total` counts the FILTERED set, not the whole queue: with a filter applied, "how many match"
1414
1982
  * / is the number a pager needs, and reporting the unfiltered count would make every filtered view
@@ -1416,7 +1984,7 @@ export interface Engram {
1416
1984
  * /
1417
1985
  * / Refusal reason preserved: `[]` reads as "nothing is awaiting the owner's decision".
1418
1986
  */
1419
- listApprovalRequests: ActorMethod<[[] | [ApprovalStatus], bigint, bigint], Result_29>;
1987
+ listApprovalRequests: ActorMethod<[[] | [ApprovalStatus], bigint, bigint], Result_39>;
1420
1988
  /**
1421
1989
  * / ⟨0.16.0⟩ `total` IS THE HEAD COUNTER, and on this method that is the entire point.
1422
1990
  * /
@@ -1430,41 +1998,57 @@ export interface Engram {
1430
1998
  * / Refusal reason preserved: for an unauthenticated integrity check the caller wants
1431
1999
  * / `getCertifiedAuditHead()`, which is public and subnet-certified. The BODIES are role-gated.
1432
2000
  * /
1433
- * / ⟨2026-09-29, owner ruling follow-up 16 (B)⟩ AN AGENT READS ONLY THE ENTRIES IT CAUSED; the
1434
- * / owner and guardians read everything (`RecordView`). So `limit` is a SPAN — how many record ids
1435
- * / to examine from `start` — and an agent's page holds the entries in that span whose caller is
1436
- * / its own key, with `withheld` counting the rest: `items.size() + withheld` is the span examined.
1437
- * / For the owner and a guardian `withheld` is 0 and the page is the span. WHAT WOULD MAKE THIS
1438
- * / WRONG: a reader who must see the whole record without being the owner or a guardian — the
1439
- * / public certified head is the answer for integrity, and nothing else is.
1440
- */
1441
- listAuditEntries: ActorMethod<[bigint, bigint], Result_24>;
1442
- /**
1443
- * / ⟨0.16.0, L1 + L3 — census-ruled⟩ THE TWO-MECHANISM EXCEPTION DISSOLVES.
2001
+ * / ⟨2026-09-29, the owner's ruling that an agent reads only the entries it caused⟩ AN AGENT READS
2002
+ * / ONLY THE ENTRIES IT CAUSED; the owner and guardians read everything (`RecordView`). So `limit` is
2003
+ * / a SPAN — how many record ids to examine from `start` — and an agent's page holds the entries in
2004
+ * / that span whose caller is its own key, with `withheld` counting the rest: `items.size() +
2005
+ * / withheld` is the span examined. For the owner and a guardian `withheld` is 0 and the page is the
2006
+ * / span. WHAT WOULD MAKE THIS WRONG: a reader who must see the whole record without being the owner
2007
+ * / or a guardian — the public certified head is the answer for integrity, and nothing else is.
2008
+ * /
2009
+ * / ⟨2026-10-15, the owner's chained-record ruling of 2026-10-14⟩ PUBLIC NOW, AND THE COUNT BECAME ROWS. The
2010
+ * / reply is a `Wire.RecordPage`: every entry in the span the reader may not see in full comes back
2011
+ * / as a hash-only row in `sealed` (id, SHA-256 of its body, entry hash) instead of being counted in
2012
+ * / `withheld`, so `items.size() + sealed.size()` is the span examined. Each entry is hashed first,
2013
+ * / then chained (`AuditLog`), so those rows are enough to walk from any entry to the certified
2014
+ * / head — which is what lets a stranger check one entry without the owner. A caller with no role,
2015
+ * / the anonymous caller included, is a stranger (`RecordView.readerFrom`) and gets only sealed
2016
+ * / rows; the owner and guardians still see every entry, an agent its own. Nothing here refuses,
2017
+ * / so the read's former refusal ("Anonymous caller not allowed") is gone from it.
2018
+ * / `ringFloor` says where the ring starts — a `start` below it begins at it — and `hashFirstFrom`
2019
+ * / where this record switched to the hash-first rule. A sealed row costs one SHA-256 of its body
2020
+ * / at read time; nothing new is stored. WHAT WOULD MAKE THIS WRONG: a sealed row carrying any part
2021
+ * / of a body, or a stranger reaching `items` (test/record-view.test.mo pins both).
2022
+ */
2023
+ listAuditEntries: ActorMethod<[bigint, bigint], Result_52>;
2024
+ /**
2025
+ * / ⟨0.16.0, refusals are values; the one page shape — ruled in the 0.16.0 interface plan⟩ THE
2026
+ * / TWO-MECHANISM EXCEPTION DISSOLVES.
1444
2027
  * /
1445
2028
  * / This method used to answer THREE ways to one question: a list, an `#Err` text, and a trap,
1446
2029
  * / picked by which kind of caller asked. That split existed only because the return type could
1447
2030
  * / not carry a refusal — with `Result<Page<T>>` it can, so every caller gets one shape and the
1448
2031
  * / arm says which no it is. A paired agent lacking `canReadBackup` is `#Refused`; so is
1449
2032
  * / everyone else who may not ask. The trap is gone: `Debug.trap` is for invariant violations,
1450
- * / never authorization (L1), and a refusal a caller cannot catch is not a better refusal.
2033
+ * / never authorization (refusals are values, never traps), and a refusal a caller cannot catch is not
2034
+ * / a better refusal.
1451
2035
  * /
1452
2036
  * / ⚠ THE RATIFIED LOCKSTEP EXCEPTION THIS CARRIED IS SUPERSEDED, not quietly dropped.
1453
- * / `ADR-0002-listBackups-refusal-lockstep/listBackups` existed because published
2037
+ * / The recorded lockstep exception for `listBackups` existed because published
1454
2038
  * / @engramx/client 0.15.0 declares `IDL.Vec(BackupMetadata)` here and cannot decode a variant at
1455
2039
  * / all — it throws — and @engramx/openclaw's dedup probe catches that throw and degrades to
1456
2040
  * / "skipped", so every database silently stops being backed up while the CLI reports success.
1457
- * / That analysis was correct and is still correct. What changed is its PREMISE: plan v2 measured
2041
+ * / That analysis was correct and is still correct. What changed is its PREMISE: the redesign plan measured
1458
2042
  * / the installed base at zero external users (prod = two engrams, both ours; npm published
1459
2043
  * / 2026-08-14), so the population the ceremony protected does not exist. The SDK is republished
1460
2044
  * / at 0.16.0 in this same campaign. If an outside caller ever appears before that ships,
1461
2045
  * / this reasoning is void and the lockstep is owed again.
1462
2046
  * /
1463
- * / `dbTypeFilter` DIES on the wire (census). The capability does not: `EngramClient.listBackups`
2047
+ * / `dbTypeFilter` DIES on the wire (the 0.16.0 interface plan). The capability does not: `EngramClient.listBackups`
1464
2048
  * / keeps its optional filter and applies it to the page, so no caller loses the ability to ask
1465
2049
  * / "backups of this database" — it stops being a thing the canister has to page around.
1466
2050
  */
1467
- listBackups: ActorMethod<[bigint, bigint], Result_40>;
2051
+ listBackups: ActorMethod<[bigint, bigint], Result_51>;
1468
2052
  /**
1469
2053
  * / List all bearer tokens — Active, Revoked, and Expired. Owner uses this in
1470
2054
  * / the dashboard to show installed Connectors (claude.ai, Claude Desktop, etc.).
@@ -1475,8 +2059,10 @@ export interface Engram {
1475
2059
  * / `bearerTokenStore.list()` already resolves each token's status at read time (a token that
1476
2060
  * / merely stopped being used is reported `#Expired`, not a stale `#Active`), so the page carries
1477
2061
  * / the same honesty the store gained on 2026-08-17.
2062
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
2063
+ * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1478
2064
  */
1479
- listBearerTokens: ActorMethod<[bigint, bigint], Result_39>;
2065
+ listBearerTokens: ActorMethod<[bigint, bigint], Result_50>;
1480
2066
  /**
1481
2067
  * / The condense checkpoints in the retained log at or above `startSeq`, oldest first.
1482
2068
  * /
@@ -1488,33 +2074,25 @@ export interface Engram {
1488
2074
  * / Owner-only like every other archive surface, and for the same structural reason: these rows
1489
2075
  * / carry the chain positions and roots of entries whose paths were inside the hash preimage.
1490
2076
  */
1491
- listCondenseCheckpoints: ActorMethod<[bigint, bigint], Result_38>;
2077
+ listCondenseCheckpoints: ActorMethod<[bigint, bigint], Result_49>;
1492
2078
  /**
1493
2079
  * / ⟨0.16.0⟩ `metrics()` DELETED — absorbed by `about()`.
1494
2080
  * /
1495
- * / Two public projections of one canister (L2.2): `metrics()` and `status()` both answered "what
2081
+ * / Two public projections of one canister (one concept, one name): `metrics()` and `status()` both answered "what
1496
2082
  * / is this engram like" and disagreed on which counters they carried, so a consumer had to fetch
1497
2083
  * / both and know which one owned each field. Every field here survives on `about()`, day-flooring
1498
2084
  * / included.
1499
2085
  */
1500
- listCycleSnapshots: ActorMethod<[bigint, bigint], Result_37>;
2086
+ listCycleSnapshots: ActorMethod<[bigint, bigint], Result_48>;
1501
2087
  /**
1502
2088
  * / Same `withheld` treatment as listMemoryFiles — the tombstone listing filtered reserved paths
1503
2089
  * / for non-owners just as silently, and a caller could not tell a filtered tombstone list from a
1504
2090
  * / complete one. Counted before slicing, so policy-hidden rows never blur into paging.
1505
2091
  */
1506
- listDeletedMemoryFiles: ActorMethod<[bigint, bigint], Result_36>;
1507
- /**
1508
- * / The registered shapes — E3: encodeTypeString is the display artifact, verbatim.
1509
- * / Stays on the engram under B1 (hybrid): EIP-712 signing is custody, and custody does not leave.
1510
- * /
1511
- * / Refusal reason preserved: `[]` reads as "this engram can sign nothing" — a claim about SIGNING
1512
- * / AUTHORITY, which is not a thing to hand an unauthorized reader. The public trail of every
1513
- * / registration remains the audit chain under getCertifiedAuditHead.
1514
- */
1515
- listEip712Types: ActorMethod<[bigint, bigint], Result_35>;
2092
+ listDeletedMemoryFiles: ActorMethod<[bigint, bigint], Result_47>;
1516
2093
  /**
1517
- * / Stays on the engram under B1 (hybrid): withdrawal custody does not leave.
2094
+ * / Stays on the engram under the 0.16.0 split (commerce to the market, signing here): withdrawal
2095
+ * / custody does not leave.
1518
2096
  * /
1519
2097
  * / NAMED item, not a `(Text, Int)` tuple. The Int is an activation time, and a bare Int beside a
1520
2098
  * / bare Text told a reader nothing about which was which — the same defect fixed on the purge log.
@@ -1522,8 +2100,35 @@ export interface Engram {
1522
2100
  * / Refusal reason preserved, and it has two halves that matter separately: `[]` reads as "this
1523
2101
  * / engram may withdraw nowhere", OR — worse — as "no allowlist is in force", which is the
1524
2102
  * / opposite security posture. It also erases any pending 24h activation from view.
2103
+ * /
2104
+ * / ⟨2026-10-14, the destination-list ruling⟩ One action's list: `typeId` names the action, and an unregistered one is
2105
+ * / `#NotFound` rather than an empty page (an empty page means "this action may sign to nothing").
2106
+ * / The item's field is `value`, not `address`: a list may hold a venue value that is no address.
2107
+ * / Readable by the owner, an active agent or an active guardian, as the old list was.
2108
+ */
2109
+ listEip712Destinations: ActorMethod<[Uint8Array | number[], bigint, bigint], Result_46>;
2110
+ /**
2111
+ * / The registered shapes — encodeTypeString is the display artifact, verbatim.
2112
+ * / Stays on the engram under the 0.16.0 split (commerce to the market, signing here): EIP-712 signing is
2113
+ * / custody, and custody does not leave.
2114
+ * /
2115
+ * / Refusal reason preserved: `[]` reads as "this engram can sign nothing" — a claim about SIGNING
2116
+ * / AUTHORITY, which is not a thing to hand an unauthorized reader. The public trail of every
2117
+ * / registration remains the audit chain under getCertifiedAuditHead.
2118
+ * /
2119
+ * / ⟨2026-10-14, the owner's registration-bar ruling⟩ Each row carries its per-field rules (`fieldRules`), joined in
2120
+ * / from `eip712FieldRules` — they are part of what the type authorises, so a reader of the list must
2121
+ * / not have to make a second call to learn them. The row type is `Eip712TypeView`.
1525
2122
  */
1526
- listEvmWithdrawDestinations: ActorMethod<[bigint, bigint], Result_34>;
2123
+ listEip712Types: ActorMethod<[bigint, bigint], Result_45>;
2124
+ /**
2125
+ * / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ Guardians' disputes, oldest
2126
+ * / first. Same visibility as `listRepudiations` and `listRecordNotes`: the owner and ACTIVE guardians
2127
+ * / read the rows; an agent gets an empty page whose `withheld` counts them (the 2026-09-29 ruling
2128
+ * / that an agent reads only the entries it caused holds — a dispute is the guardian's entry, not the
2129
+ * / agent's); a stranger, a pending guardian and the anonymous caller are refused.
2130
+ */
2131
+ listGuardianDisputes: ActorMethod<[bigint, bigint], Result_44>;
1527
2132
  /**
1528
2133
  * / Accessible by owner and guardians.
1529
2134
  * /
@@ -1532,27 +2137,29 @@ export interface Engram {
1532
2137
  * / pause writes" — a claim about who can STOP it. A caller who cannot tell that from "you may not
1533
2138
  * / see the roster" has been told the engram is unguarded when it may be fully guarded.
1534
2139
  */
1535
- listGuardians: ActorMethod<[bigint, bigint], Result_33>;
2140
+ listGuardians: ActorMethod<[bigint, bigint], Result_43>;
1536
2141
  /**
1537
2142
  * / The export receipts in the retained log at or above `startSeq`, oldest first.
1538
2143
  * /
1539
- * / ⟨0.16.0, L3⟩ ONE LIST, ONE QUESTION. This method used to return receipts AND checkpoints
2144
+ * / ⟨0.16.0, the one page shape⟩ ONE LIST, ONE QUESTION. This method used to return receipts AND checkpoints
1540
2145
  * / together behind a backward `before`/`max` cursor. They answer different questions — what may be
1541
2146
  * / condensed, and what already was — so a caller wanting one paid to decode the other, and the
1542
2147
  * / merged shape had to carry two arrays, a truncation flag and an opaque cursor to stay honest
1543
2148
  * / about a walk that served both. `listCondenseCheckpoints` is the other half.
1544
2149
  * /
1545
- * / The cursor dies with it (census R6): paging is by ABSOLUTE SEQ now, forward, so a caller resumes
1546
- * / at `scannedThroughSeq + 1` and is finished when that passes `page.total`. `scanTruncated` is
1547
- * / gone because it has nothing left to say — "I stopped at entry N" is the same claim it made, and
1548
- * / says it as a position rather than a flag a reader has to pair with a second field.
2150
+ * / The cursor dies with it (the 0.16.0 plan unifies the paging idioms): paging is by ABSOLUTE SEQ
2151
+ * / now, forward, so a caller resumes at `scannedThroughSeq + 1` and is finished when that passes
2152
+ * / `page.total`. `scanTruncated` is gone because it has nothing left to say — "I stopped at entry N"
2153
+ * / is the same claim it made, and says it as a position rather than a flag a reader has to pair with
2154
+ * / a second field.
1549
2155
  * /
1550
2156
  * / Read `MemoryRouter.ReceiptPage` before reading `page.total` as a receipt count. It is not one;
1551
2157
  * / it is the chain's length, and the declaration says why.
1552
2158
  */
1553
- listMemoryExportReceipts: ActorMethod<[bigint, bigint], Result_32>;
2159
+ listMemoryExportReceipts: ActorMethod<[bigint, bigint], Result_42>;
1554
2160
  /**
1555
- * / ⟨0.16.0⟩ THE `withheld` EXEMPLAR — L1 names this exact method as the defect it fixes.
2161
+ * / ⟨0.16.0⟩ THE `withheld` EXEMPLAR — the 0.16.0 interface law on refusals names this exact method as
2162
+ * / the defect it fixes.
1556
2163
  * /
1557
2164
  * / A non-owner's answer silently dropped every `config/` and `secrets/` row. Not "refused the
1558
2165
  * / call" and not "returned a marker" — the rows simply were not there, with nothing in band
@@ -1567,8 +2174,17 @@ export interface Engram {
1567
2174
  * / Note the count is computed from the unfiltered list before slicing, so it reports rows hidden
1568
2175
  * / by POLICY, never rows merely off the end of this page — those are `total`'s job. Conflating
1569
2176
  * / the two would rebuild the ambiguity in a new place.
2177
+ * /
2178
+ * / ⟨2026-10-21, the owner's approval of the mobile design's changes: an author on every file row⟩ Each row also
2179
+ * / carries `lastModifiedBy` (`Types.MemoryFileRow`): the key that wrote the file's current
2180
+ * / version, so a phone's file list can say "changed 2 h ago by Recorder" without a read per
2181
+ * / file. It is what `readMemory` already serves to the same callers under the same gate, so it
2182
+ * / tells no caller anything it could not read. Born `opt` (a field added to a response record is `opt`). Looked up only for
2183
+ * / the rows of THIS page (`MemoryRouter.info`), after the slice, so the cost is one lookup per
2184
+ * / row served, never one per file stored. A WIDENED REPLY: a reader that decodes the row by
2185
+ * / position rather than by field name breaks — none in this repository does.
1570
2186
  */
1571
- listMemoryFiles: ActorMethod<[bigint, bigint], Result_31>;
2187
+ listMemoryFiles: ActorMethod<[bigint, bigint], Result_41>;
1572
2188
  /**
1573
2189
  * / One page of the memory log, seq-ordered, optionally narrowed to one author.
1574
2190
  * /
@@ -1577,14 +2193,14 @@ export interface Engram {
1577
2193
  * / that, never by "last entry returned + 1", which stalls forever on the first empty page. Stop
1578
2194
  * / when the window passes `total`.
1579
2195
  * /
1580
- * / ⟨0.16.0, L3 — CENSUS CONFLICT, RECORDED⟩ The census row says `→R<P<MemoryLogEvent>>` and
1581
- * / "authorFilter dropped (kills the filtered-window cursor stall)". The stall is real and the
1582
- * / diagnosis is right; amputating the filter is not the only cure, and it is the expensive one —
1583
- * / `Archive.vue` ships a working author-filter UI, and "what did this agent write" is a
1584
- * / question an owner asks of an evidence log. The filter STAYS. What kills the stall instead is
1585
- * / `withheld`: it carries the count this filter removed from the window, so a short or empty
1586
- * / filtered page is no longer ambiguous between "nobody wrote here" and "the window was small",
1587
- * / and the correct cursor advance is computable from the page itself. `pageCap` therefore dies
2196
+ * / ⟨0.16.0, the one page shape — A CONFLICT WITH THE INTERFACE PLAN, RECORDED⟩ The plan's entry for
2197
+ * / this method says `→R<P<MemoryLogEvent>>` and "authorFilter dropped (kills the filtered-window
2198
+ * / cursor stall)". The stall is real and the diagnosis is right; amputating the filter is not the
2199
+ * / only cure, and it is the expensive one — `Archive.vue` ships a working author-filter UI, and "what
2200
+ * / did this agent write" is a question an owner asks of an evidence log. The filter STAYS. What kills
2201
+ * / the stall instead is `withheld`: it carries the count this filter removed from the window, so a
2202
+ * / short or empty filtered page is no longer ambiguous between "nobody wrote here" and "the window
2203
+ * / was small", and the correct cursor advance is computable from the page itself. `pageCap` therefore dies
1588
2204
  * / with nothing lost — it existed only to disclose a window that `items.size() + withheld` now
1589
2205
  * / states directly.
1590
2206
  * /
@@ -1592,12 +2208,15 @@ export interface Engram {
1592
2208
  * / chain, not this slice: the condense floor tells a caller reading an archived range where the
1593
2209
  * / log now begins instead of letting them read it as empty, and the head is what a third party
1594
2210
  * / checks the page against. Flattening to a bare `Page` to satisfy the shape would buy uniformity
1595
- * / with the disclosures that make the page verifiable — the hidden-bound defect the census itself
1596
- * / names on previewCondense's row.
2211
+ * / with the disclosures that make the page verifiable — the hidden-bound defect the interface plan
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.
1597
2216
  */
1598
- listMemoryLog: ActorMethod<[bigint, bigint, [] | [Principal]], Result_30>;
2217
+ listMemoryLog: ActorMethod<[bigint, bigint, [] | [Principal]], Result_40>;
1599
2218
  /**
1600
- * / The caller's OWN spend-approval requests. ⟨0.16.0, L1 + L3 — fixed 2026-08-18⟩
2219
+ * / The caller's OWN spend-approval requests. ⟨0.16.0, refusals are values; the one page shape — fixed 2026-08-18⟩
1601
2220
  * /
1602
2221
  * / Two defects in seven lines, and the first is the one this release exists to remove:
1603
2222
  * /
@@ -1614,7 +2233,7 @@ export interface Engram {
1614
2233
  * / (The unbounded MAP is filed separately — pruning an approval record destroys evidence of what
1615
2234
  * / was asked, which is a retention ruling rather than a shape fix.)
1616
2235
  */
1617
- listMyApprovalRequests: ActorMethod<[bigint, bigint], Result_29>;
2236
+ listMyApprovalRequests: ActorMethod<[bigint, bigint], Result_39>;
1618
2237
  /**
1619
2238
  * / The payer's own sessions, live ones first. PAYER-SCOPED: a caller sees only their own, which
1620
2239
  * / is why this needs no role — a session id is not a secret from the person who paid for it.
@@ -1625,10 +2244,10 @@ export interface Engram {
1625
2244
  * / client would break on — the market paged its own pending withdrawals before its cut for the
1626
2245
  * / same reason. The order is the order sessions were opened.
1627
2246
  */
1628
- listMySessions: ActorMethod<[bigint, bigint], Result_28>;
2247
+ listMySessions: ActorMethod<[bigint, bigint], Result_38>;
1629
2248
  /**
1630
2249
  * /
1631
- * / ⟨0.16.0, L3⟩ Paged and enveloped like every other `list*`, and the envelope here is uniformity
2250
+ * / ⟨0.16.0, the one page shape⟩ Paged and enveloped like every other `list*`, and the envelope here is uniformity
1632
2251
  * / rather than gating: this method cannot refuse anybody, so `#Err` is unreachable on it. That is
1633
2252
  * / deliberate — the off-chain verifier that reads this chain reads several other lists beside it,
1634
2253
  * / and one shape for all of them is worth more than saving a variant tag on the one that is
@@ -1640,9 +2259,9 @@ export interface Engram {
1640
2259
  * / IT recorded, so this chain is what a caller composes with when currency matters — which it
1641
2260
  * / cannot do if it needs a role here.
1642
2261
  */
1643
- listOwnershipTransfers: ActorMethod<[bigint, bigint], Result_27>;
2262
+ listOwnershipTransfers: ActorMethod<[bigint, bigint], Result_37>;
1644
2263
  /**
1645
- * / ⟨2026-09-29, the platform's question from the build review⟩ OWNER-ONLY: how many payment
2264
+ * / ⟨2026-09-29, a question from the build review⟩ OWNER-ONLY: how many payment
1646
2265
  * / signatures each agent has obtained today, and the daily limit (200, `PaymentSignCap`). The
1647
2266
  * / owner's console stated the rule and showed no number, because nothing served one; a number it
1648
2267
  * / made up would be a fabricated zero. Anyone else is refused by name (`#Refused
@@ -1653,12 +2272,14 @@ export interface Engram {
1653
2272
  * / MAKE THIS WRONG: a count kept by something other than the agent's root (`PaymentSignCap.rowFor`
1654
2273
  * / says so beside it).
1655
2274
  * /
1656
- * / ⟨2026-09-30, following the owner's answer 4 of that date⟩ "is not here" no longer holds: the
1657
- * / marketplace's one shared count today is in the reply's `marketplace` field, with the limit this
1658
- * / engram enforces for it — beside the agents, never a row among them
1659
- * / (`PaymentSignCap.marketplaceRow`). Null when no marketplace is set.
2275
+ * / ⟨2026-09-30, following the owner's acceptance that day of the marketplace's one shared count⟩ "is
2276
+ * / not here" no longer holds: the marketplace's one shared count today is in the reply's
2277
+ * / `marketplace` field, with the limit this engram enforces for it — beside the agents, never a row
2278
+ * / among them (`PaymentSignCap.marketplaceRow`). Null when no marketplace is set.
2279
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
2280
+ * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1660
2281
  */
1661
- listPaymentSignatureCounts: ActorMethod<[bigint, bigint], Result_26>;
2282
+ listPaymentSignatureCounts: ActorMethod<[bigint, bigint], Result_36>;
1662
2283
  /**
1663
2284
  * / Agent records removed by a reset. Each row is a NAMED record with the fields `principal`,
1664
2285
  * / `name`, `registeredAt` and `purgedAt` — read them BY NAME, never by position.
@@ -1685,7 +2306,7 @@ export interface Engram {
1685
2306
  * / ⟨CORRECTED 2026-10-02: it no longer traps. It is gated through `gatedResult`, so a refusal
1686
2307
  * / comes back as an `Err` VALUE that names this method — still never as an empty page, which is
1687
2308
  * / the property the sentence above was protecting.⟩
1688
- * / RENAMED from `getOperatorPurgeLog` (L2.1: `get*` returns one value, `list*` returns a Page —
2309
+ * / RENAMED from `getOperatorPurgeLog` (a `get*` returns one value, a `list*` returns a Page —
1689
2310
  * / the old name promised a scalar and delivered an array).
1690
2311
  * /
1691
2312
  * / Refusal reason preserved: an empty list must mean "no reset has removed an agent", never
@@ -1695,12 +2316,14 @@ export interface Engram {
1695
2316
  * / at the client — swapping registeredAt and purgedAt would have type-checked everywhere and been
1696
2317
  * / visible only as nonsense in a UI.
1697
2318
  * /
1698
- * / ⟨2026-09-29, review finding LIFE-2⟩ Each row now also carries the agent's `root`, the
1699
- * / `invite` its enrolment named, and `ended` — why and on what day its engagement ended (its own
1700
- * / earlier ending, or the reset) — the facts `resyncAgentEdges` re-sends. The stored rows are
1701
- * / served as they are.
2319
+ * / ⟨2026-09-29, the finding that an ending the registry missed is kept and re-sent⟩ Each row now also
2320
+ * / carries the agent's `root`, the `invite` its enrolment named, and `ended` — why and on what day
2321
+ * / its engagement ended (its own earlier ending, or the reset) — the facts `resyncAgentEdges`
2322
+ * / re-sends. The stored rows are served as they are.
2323
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
2324
+ * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
1702
2325
  */
1703
- listPurgedAgents: ActorMethod<[bigint, bigint], Result_25>;
2326
+ listPurgedAgents: ActorMethod<[bigint, bigint], Result_35>;
1704
2327
  /**
1705
2328
  * / ⟨0.16.0⟩ ONE ACCESSOR, folding `readReadLog` and `getDenialLog` — and the fold only became
1706
2329
  * / safe because of a change made earlier in this same leg.
@@ -1712,7 +2335,7 @@ export interface Engram {
1712
2335
  * / when the Page conversion started publishing `total = totalAppended()` — the head is now a fact
1713
2336
  * / a caller can read, so paging backward from it is ordinary arithmetic.
1714
2337
  * /
1715
- * / The census proposed deleting `readReadLog` outright as a "duplicate accessor". Checked at the
2338
+ * / The 0.16.0 interface plan proposed deleting `readReadLog` outright as a "duplicate accessor". Checked at the
1716
2339
  * / site, that premise was false: `getDenialLog` filtered `not e.success`, so deleting the other
1717
2340
  * / would have removed the only way to read SUCCESSFUL entries — and this ring is overwhelmingly
1718
2341
  * / successful MCP reads. Folded instead, which keeps both capabilities and still ends the pair.
@@ -1725,7 +2348,7 @@ export interface Engram {
1725
2348
  * / A caller knows exactly which ids were examined: `[start, start + limit)`.
1726
2349
  * /
1727
2350
  * / `earliest` is gone as a field and lost nothing: entries carry their own `id`, so a caller
1728
- * / paging from 0 reads the oldest retained id off the first item. That is L3's stated design —
2351
+ * / paging from 0 reads the oldest retained id off the first item. That is the page shape's stated design —
1729
2352
  * / items self-identify — rather than a second number to keep in sync.
1730
2353
  * /
1731
2354
  * / `withheld` is 0 even when filtering. The filter is CALLER-REQUESTED; `withheld` means rows
@@ -1747,7 +2370,7 @@ export interface Engram {
1747
2370
  * / This mattered beyond the file: doc comments are emitted into `engram.did`, so every SDK and
1748
2371
  * / hand-written client has been reading the pre-fix rule off the interface for three days.
1749
2372
  * /
1750
- * / Named `listReadLog`, not the census's `listDenialEntries`: that name assumed only the denial
2373
+ * / Named `listReadLog`, not the interface plan's `listDenialEntries`: that name assumed only the denial
1751
2374
  * / half survived. A method serving every row must not be named for one of them.
1752
2375
  * /
1753
2376
  * / Refusal reason preserved from both: this log has NO public counterpart — no certified head to
@@ -1759,28 +2382,59 @@ export interface Engram {
1759
2382
  * / so do settle failures, webhook auto-disables, expiry sweeps and MCP rate limits. Do not narrow
1760
2383
  * / this to a name it does not carry.
1761
2384
  * /
1762
- * / ⟨2026-09-29, owner ruling follow-up 16 (B)⟩ An agent reads only the entries it caused, here as
1763
- * / on the chained record — the same `RecordView` filter, and `withheld` counts what it removed
1764
- * / together with what `successFilter` removed. WHAT WOULD MAKE THIS WRONG: see `listAuditEntries`.
2385
+ * / ⟨2026-09-29, the owner's ruling that an agent reads only the entries it caused⟩ An agent reads only the
2386
+ * / entries it caused, here as on the chained record — the same `RecordView` filter, and `withheld` counts what
2387
+ * / it removed together with what `successFilter` removed. WHAT WOULD MAKE THIS WRONG: see `listAuditEntries`.
2388
+ */
2389
+ listReadLog: ActorMethod<[[] | [boolean], bigint, bigint], Result_34>;
2390
+ /**
2391
+ * / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ The owner's notes, oldest first.
2392
+ * / Same visibility as `listRepudiations`, for the same reason: the owner and ACTIVE guardians read
2393
+ * / the rows; an agent reads only the entries it caused (the owner's ruling of 2026-09-29), and every
2394
+ * / note is the owner's, so an agent gets an empty page whose `withheld` counts the notes in its
2395
+ * / window — never "there are none". A stranger, a pending guardian and the anonymous caller are refused.
1765
2396
  */
1766
- listReadLog: ActorMethod<[[] | [boolean], bigint, bigint], Result_24>;
2397
+ listRecordNotes: ActorMethod<[bigint, bigint], Result_33>;
1767
2398
  /**
1768
2399
  * / Same visibility as listAuditEntries: the owner, this engram's agents, and ACTIVE guardians
1769
2400
  * / see disputes. An unauthorized read REFUSES — it does not return an empty list, because an
1770
2401
  * / empty list reads as "no disputes have been filed", which is a claim, not an absence of one.
1771
- * / RENAMED from `getRepudiations` (L2.1). Refusal reason preserved: an empty list would read as
1772
- * / "no disputes have been filed" — and a dispute record that can be mistaken for an absence of
1773
- * / disputes is worse than no record at all. Not public by design.
1774
- * /
1775
- * / ⟨CORRECTED 2026-09-29, owner ruling follow-up 16 (B)⟩ "Same visibility as listAuditEntries"
1776
- * / still holds, and so the first sentence no longer does: an agent reads only the record entries it
1777
- * / caused, and every dispute here is the owner's own `memory.repudiate` entry. So the owner and
1778
- * / guardians get the rows; an agent gets an empty page whose `withheld` counts the rows in its
1779
- * / window — which says disputes exist without showing them, never "none have been filed". WHAT
1780
- * / WOULD MAKE THIS WRONG: a ruling that an agent may see the disputes of its own writes; this would
1781
- * / then have to look up each disputed version's writer, which it does not do today.
1782
- */
1783
- listRepudiations: ActorMethod<[bigint, bigint], Result_23>;
2402
+ * / RENAMED from `getRepudiations` (a `get*` returns one value, a `list*` a page). Refusal reason preserved:
2403
+ * / an empty list would read as "no disputes have been filed" — and a dispute record that can be mistaken for an
2404
+ * / absence of disputes is worse than no record at all. Not public by design.
2405
+ * /
2406
+ * / ⟨CORRECTED 2026-09-29, the owner's ruling that an agent reads only the entries it caused⟩ "Same
2407
+ * / visibility as listAuditEntries" still holds, and so the first sentence no longer does: an agent
2408
+ * / reads only the record entries it caused, and every dispute here is the owner's own
2409
+ * / `memory.repudiate` entry. So the owner and guardians get the rows; an agent gets an empty page
2410
+ * / whose `withheld` counts the rows in its window — which says disputes exist without showing them,
2411
+ * / never "none have been filed". WHAT WOULD MAKE THIS WRONG: a ruling that an agent may see the
2412
+ * / disputes of its own writes; this would then have to look up each disputed version's writer, which
2413
+ * / it does not do today.
2414
+ */
2415
+ listRepudiations: ActorMethod<[bigint, bigint], Result_32>;
2416
+ /**
2417
+ * / The seller list, a page at a time, as `Types.SellerView` (a raise whose wait is over shown applied;
2418
+ * / `liveNow` — false for every row while an engram opened through another has no sign-in seated; what
2419
+ * / x402 reserved for each today). For the key file and the sign-in in an engram opened
2420
+ * / through another, the owner in a first engram; refused loudly to anyone else — never an empty page,
2421
+ * / which would read as "no sellers". A QUERY: the refusal is in the reply, not the denial log.
2422
+ * / Named callers: an owner console's seller list.
2423
+ */
2424
+ listSellers: ActorMethod<[bigint, bigint], Result_31>;
2425
+ /**
2426
+ * / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ OWNER-ONLY: the sign-ins, each
2427
+ * / with the name its app registered. The same tokens, in the same order and paged the same way, as
2428
+ * / `listBearerTokens`, each beside `clientName` — the RFC 7591 `client_name` the app registered when
2429
+ * / the token was issued (`People.SignIn` says when it is null, and that it is the app's own claim). A phone
2430
+ * / owner read "localhost" for every app signed in through a local bridge and could not tell two
2431
+ * / apps apart. A NEW method rather than a field on `BearerToken`: that record is stored (M0170)
2432
+ * / and `listBearerTokens`' reply is shipped (never widened). An agent, a guardian, a stranger and
2433
+ * / the anonymous caller are refused, by `listBearerTokens`' own gate and for its reason.
2434
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
2435
+ * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2436
+ */
2437
+ listSignIns: ActorMethod<[bigint, bigint], Result_30>;
1784
2438
  /**
1785
2439
  * / Owner: advance the review cursor — "I have seen everything up to and including uptoAuditId"
1786
2440
  * / (null = everything at the current head). Bounded so the attestation can never cover entries
@@ -1792,7 +2446,27 @@ export interface Engram {
1792
2446
  * / and this never inspects an operation or a role. Widening what the review shows therefore
1793
2447
  * / changes only which ids the console can pass here — it cannot desynchronise the cursor.
1794
2448
  */
1795
- markAgentWritesReviewed: ActorMethod<[[] | [bigint]], Result_8>;
2449
+ markAgentWritesReviewed: ActorMethod<[[] | [bigint]], Result_15>;
2450
+ /**
2451
+ * / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ AN AGENT READS ITS OWN GRANT —
2452
+ * / to the calling key only (`People.AgentGrant`): what it may read, where it may write, its rate, and
2453
+ * / the payment limits enforced against that key. It reveals nothing a refusal does not already say,
2454
+ * / and lets an agent correct itself before it writes rather than after the owner explains a refusal by
2455
+ * / hand. `getSpendPolicy` and `listAgents` stay owner-only; this answers one row, the caller's.
2456
+ * /
2457
+ * / WHO: an ACTIVE agent (`Gated.authorize(#agentOrOwner)`). Refused, each by its own text: the
2458
+ * / owner by name (`People.OWNER_HAS_NO_GRANT`), a revoked or resigned agent ("Agent is revoked" /
2459
+ * / "Agent has resigned" — an ended agent may do nothing, and its old grant would read as powers),
2460
+ * / a guardian and a stranger ("Not authorized"), the anonymous caller. A query: it writes nothing.
2461
+ * /
2462
+ * / ⟨2026-10-29, the owner's ruling that an agent's grant read tells the truth about paying⟩ It also says
2463
+ * / whether the payments brake is on and what the key could pay now (`paymentsFrozen`, `paymentsNow`), read from
2464
+ * / the values `x402SignFor` checks — the brake, the key's policy and stored total, the engram-wide ceiling and
2465
+ * / total — so the caps alone no longer read as money an agent can spend. `People.SpendState` names each one.
2466
+ * / ⟨2026-10-29, a review finding⟩ And which whole-key refusal stops every payment now, if one does
2467
+ * / (`paymentsStoppedBy`: the brake, the signing floor, the daily count of payment signatures).
2468
+ */
2469
+ myGrant: ActorMethod<[], Result_29>;
1796
2470
  /**
1797
2471
  * / The AGENT's current key nominates the key that will replace it. Nothing moves yet: the new
1798
2472
  * / key must accept, by its own call, within 24 hours (`acceptAgentKeyNomination`). One pending
@@ -1800,10 +2474,10 @@ export interface Engram {
1800
2474
  * / with nothing changed, for a caller that is not an active agent here and for a key that could
1801
2475
  * / not hold the record (`KeyReplacement.nomineeRefusal`).
1802
2476
  */
1803
- nominateAgentKey: ActorMethod<[Principal], Result_1>;
2477
+ nominateAgentKey: ActorMethod<[Principal], Result_2>;
1804
2478
  /**
1805
2479
  * / An AGENT paired here asks this engram to open an engram of its own. This engram attaches 1.3 T of
1806
- * / its own cycles to the registry's `sysSpawnChild`; the agent's lasting key owns what is opened, and
2480
+ * / its own cycles to the registry's `sysOpenChild`; the agent's lasting key owns what is opened, and
1807
2481
  * / the engram is recorded as opened through this one. Answers the new engram's canister id.
1808
2482
  * /
1809
2483
  * / APPROVING IS GIVING: the owner allowed this with `setChildAllowance`, and what is attached is the
@@ -1819,7 +2493,7 @@ export interface Engram {
1819
2493
  * / network's refund. Every outcome is written to the record under `agent.openChild` in the message
1820
2494
  * / that hears the registry's answer, before the reply — in the alerts' money class.
1821
2495
  * /
1822
- * / ⟨CORRECTED 2026-10-01, review F1 and F4 — the sentence "If the registry refuses or cannot be
2496
+ * / ⟨CORRECTED 2026-10-01, two review findings — the sentence "If the registry refuses or cannot be
1823
2497
  * / reached, the opening is GIVEN BACK" above is what was first built.⟩ The opening is given back only
1824
2498
  * / when the WHOLE attachment came back as the call's refund (the registry accepted none of it) and
1825
2499
  * / the owner has not set this agent's count since the take (`ChildAllowance.settle`). A refusal after
@@ -1830,9 +2504,30 @@ export interface Engram {
1830
2504
  * /
1831
2505
  * / WHAT WOULD MAKE THIS WRONG: an await added between `ChildAllowance.take` and the registry call; the
1832
2506
  * / registry's `CHILD_MIN_ATTACHED_CYCLES` moving without `CHILD_ATTACH_CYCLES`.
1833
- */
1834
- openChildEngram: ActorMethod<[], Result_22>;
1835
- openSession: ActorMethod<[SessionConfig, PaymentSignature], Result_21>;
2507
+ * /
2508
+ * / ⟨2026-11-02, the owner's ruling to take the recommended answers (the child build's sign-in step)⟩ THE
2509
+ * / SIGN-IN. `signIn` names the opened engram's sign-in — the person running the agent, on a second
2510
+ * / credential; null opens it with none, and it then keeps small limits for life. It goes to the
2511
+ * / registry's door and from there into the opened engram's init record, so that engram never runs a
2512
+ * / message without it. Refused here first, with no await and before the allowance is taken, by the
2513
+ * / door's own three rules (`OwnerSignIn.candidateRefusal`): the agent's lasting key itself, the
2514
+ * / anonymous principal, a canister — so the agent sees the refusal before any cycles move. The
2515
+ * / record entry says `signIn=set` or `signIn=none`, never the principal.
2516
+ * / ⟨2026-11-02, the review of the child build's sign-in step, beside the above⟩ And a fourth, the
2517
+ * / door's own: the key this call is signed by — the agent's session key — is refused as the sign-in too
2518
+ * / (`OwnerSignIn.agentKeyRefusal`), at the same place.
2519
+ * /
2520
+ * / ⟨2026-11-02, the child build's sign-in step — RENAMED from `openChildEngram`, beside the paragraphs
2521
+ * / above, which describe the same door⟩ It was `openChildEngram()`, with no argument. A second
2522
+ * / positional argument would grow its argument tuple, and a shipped tuple is frozen (evolution
2523
+ * / happens inside records), so the door takes ONE record whose later fields are optional, under a
2524
+ * / new name — the shape the registry's own door took the same day (`sysSpawnChild` →
2525
+ * / `sysOpenChild`). An rc.21 kit calling the old name is rejected
2526
+ * / (IC0536) with nothing spent; it can never open an engram without a sign-in by accident.
2527
+ * / Named caller: the owner kit's `open-engram` command, signed by the agent's session key.
2528
+ */
2529
+ openChild: ActorMethod<[{ signIn: [] | [Principal] }], Result_28>;
2530
+ openSession: ActorMethod<[SessionConfig, PaymentSignature], Result_27>;
1836
2531
  /**
1837
2532
  * / Withdraw tokens to the owner's principal. This is the ONLY way to
1838
2533
  * / move tokens out of the engram to an external address, and the
@@ -1840,29 +2535,30 @@ export interface Engram {
1840
2535
  * / NOT freeze-gated: the owner always controls their own funds.
1841
2536
  * / Guardian freeze only blocks agent/public operations.
1842
2537
  */
1843
- ownerWithdraw: ActorMethod<[TokenAmount, [] | [ActionAuth]], Result_8>;
2538
+ ownerWithdraw: ActorMethod<[TokenAmount, [] | [ActionAuth]], Result_15>;
1844
2539
  /**
1845
- * / ⟨0.16.0⟩ `payRentFromEarnings` DELETED — ruled TWICE (B1 and B2), and it was the single
1846
- * / clearest violation of the OSS/platform split in this repo.
2540
+ * / ⟨0.16.0⟩ `payRentFromEarnings` DELETED — ruled TWICE (commerce moved to the market; rent is the
2541
+ * / biller's), and it was the single clearest case in this repository of the engram reaching into a
2542
+ * / deployment's billing canister.
1847
2543
  * /
1848
- * / It hand-declared four cashier methods inline, read `getFeeSchedule`, computed
2544
+ * / It hand-declared four biller methods inline, read `getFeeSchedule`, computed
1849
2545
  * / `priceE6 = rentUsdE6PerEngramYear * months / 12`, and deposited `priceE6 + 3 * CKUSDC_FEE`
1850
2546
  * / under a comment explaining that three is "the three token fees the cashier's rail spends" —
1851
2547
  * / a PUBLIC canister hardcoding how many ledger fees a PRIVATE one consumes internally. Any
1852
- * / change to the cashier's rail silently mispriced this call.
2548
+ * / change to the biller's rail silently mispriced this call.
1853
2549
  * /
1854
2550
  * / It also carried the only RE-ENTRANT cross-canister chain in the system: engram →
1855
2551
  * / cashier.payRentWithStablecoin → (registry, ledger, CMC …) → back into the SAME engram's
1856
2552
  * / sysRecordFeeEvent while the originating message was still suspended, both writing the same audit
1857
2553
  * / ring, with no lock.
1858
2554
  * /
1859
- * / Rent is the cashier's entirely (B2). Owners pay through the cashier's rails; the engram keeps
2555
+ * / Rent is the biller's entirely. Owners pay through the biller's rails; the engram keeps
1860
2556
  * / append-only receipts and no fee math.
1861
- * / ⟨0.16.0, L1 — census-ruled⟩ THE ONE-SHOT ARM. Re-redemption is `#Err(#Conflict)`, named in
1862
- * / the census row for this method, and it is the arm the whole guard exists to express: this
1863
- * / principal HAS held agent access, and no code will give it back. A caller reading
1864
- * / `#Conflict` knows to pair a fresh key; a caller reading `#Refused` would keep presenting the
1865
- * / same identity, which is exactly the loop the one-shot rule was written to stop.
2557
+ * / ⟨0.16.0, refusals are values — ruled in the 0.16.0 interface plan⟩ THE ONE-SHOT ARM. Re-redemption is
2558
+ * / `#Err(#Conflict)`, named in the interface plan's entry for this method, and it is the arm the
2559
+ * / whole guard exists to express: this principal HAS held agent access, and no code will give it
2560
+ * / back. A caller reading `#Conflict` knows to pair a fresh key; a caller reading `#Refused` would
2561
+ * / keep presenting the same identity, which is exactly the loop the one-shot rule was written to stop.
1866
2562
  * / Redeem an invite code minted by `createAgentInvite`. The CALLER becomes the agent, so
1867
2563
  * / redeem from the wallet that will do the work.
1868
2564
  * /
@@ -1892,17 +2588,30 @@ export interface Engram {
1892
2588
  * / record gets `agent.invite.void`), and after that every attempt with it is refused
1893
2589
  * / `#Conflict` before any check is made (`InviteFailures`).
1894
2590
  * /
1895
- * / ⟨RESHAPED 2026-09-29, review finding LIFE-3⟩ The reply is `Types.Pairing`: the agent
2591
+ * / ⟨RESHAPED 2026-09-29, a review finding⟩ The reply is `Types.Pairing`: the agent
1896
2592
  * / record AND `trackRecord`, which says plainly when the registry refused or failed to record the
1897
2593
  * / engagement on the agent's track record, and what to do. Before, the reply was `#Ok` with the
1898
2594
  * / record alone even when the registry had refused the start, so the agent was never told.
1899
2595
  */
1900
- pairAgent: ActorMethod<[{ enrolment: Enrolment; code: string }], Result_20>;
2596
+ pairAgent: ActorMethod<[{ enrolment: Enrolment; code: string }], Result_26>;
1901
2597
  /**
1902
- * / ⟨0.16.0, L2.2 — renamed from `guardianPauseWrites`⟩ Same correction as freezePayments above:
2598
+ * / ⟨0.16.0, same concept, same name — renamed from `guardianPauseWrites`⟩ Same correction as freezePayments above:
1903
2599
  * / owner-or-guardian, and `resumeWrites` never carried the prefix either.
1904
2600
  */
1905
- pauseWrites: ActorMethod<[], Result_1>;
2601
+ pauseWrites: ActorMethod<[], Result_2>;
2602
+ /**
2603
+ * / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ `pauseWrites` with a reason; everything said of
2604
+ * / `freezePaymentsWithReason` holds, with `canPauseWrites` as the guardian's grant.
2605
+ */
2606
+ pauseWritesWithReason: ActorMethod<[string], Result_2>;
2607
+ /**
2608
+ * / Plan the same visible session page, filtering, order and slice used by session helpers.
2609
+ * / The SDK executes the returned individual/cache or batch reads with its own decryption key;
2610
+ * / this query does not combine their budgets or impose the hosted MCP limit on SDK callers.
2611
+ * / Callers: EngramClient.listSessions and readSessions (SessionManager's readers, the local MCP
2612
+ * / session tool).
2613
+ */
2614
+ planSessionRead: ActorMethod<[Request], Result_25>;
1906
2615
  /**
1907
2616
  * / What condensing through `toSeq` would do, and whether it is unlocked. COMMITS NOTHING — it is
1908
2617
  * / a query, so it structurally cannot; a preview that wrote would be its own trap.
@@ -1923,7 +2632,7 @@ export interface Engram {
1923
2632
  * / `unlocked` is the export-receipt gate ONLY. It is not a promise the condense will land: the
1924
2633
  * / history-budget delta is checked at commit time and can still refuse a short prefix.
1925
2634
  */
1926
- previewCondense: ActorMethod<[bigint], Result_19>;
2635
+ previewCondense: ActorMethod<[bigint], Result_24>;
1927
2636
  /**
1928
2637
  * / A quote for a session this caller has not opened and is not committed to — the intent a
1929
2638
  * / buyer signs against. Pure dry run, no state, no funds.
@@ -1932,9 +2641,9 @@ export interface Engram {
1932
2641
  * / minimum and per-call cost BEFORE signing anything, and gating the quote behind a role would
1933
2642
  * / mean the only way to learn this engram's price is to already be permitted to pay it.
1934
2643
  * /
1935
- * / ⟨CORRECTED 2026-08-24 — this said "⟨L7⟩ UPDATE, NOT QUERY" and cited a market ruling that
1936
- * / DEC-107 had already closed.⟩ QUERY, per the ruled quote convention: FAST READS. Both
1937
- * / `quotePayment` and `previewOpenSession` become queries, and L7's open-ruling exception
2644
+ * / ⟨CORRECTED 2026-08-24 — this said "⟨update-for-read⟩ UPDATE, NOT QUERY" and cited a market ruling that
2645
+ * / the 2026-08-24 quote-convention ruling had already closed.⟩ QUERY, per the ruled quote convention: FAST READS. Both
2646
+ * / `quotePayment` and `previewOpenSession` become queries, and the update-for-read rule's open-ruling exception
1938
2647
  * / retires with them — so the argument written here for keeping it an update was arguing the
1939
2648
  * / losing side of a decision already made, and was added the same day by not reading forward
1940
2649
  * / to the ruling. `gate.offerSession` is pure — it validates the intent and returns it — so
@@ -1945,14 +2654,36 @@ export interface Engram {
1945
2654
  * / commitment happens in `openSession`, which IS a certified update call, and a buyer who needs
1946
2655
  * / the price attested rather than quoted takes it from that reply.
1947
2656
  * /
1948
- * / ⟨RESTORED 2026-08-24, owner ruling R-A1⟩ Named to match the market's, because it is the
1949
- * / same act against a different seller and a reader comparing the two should not have to learn
1950
- * / two verbs for it.
2657
+ * / ⟨RESTORED 2026-08-24, the owner's ruling to build the paid-session seam⟩ Named to match the
2658
+ * / market's, because it is the same act against a different seller and a reader comparing the two
2659
+ * / should not have to learn two verbs for it.
1951
2660
  * /
1952
2661
  * / ⟨2026-10-02⟩ Answers the house `Types.SessionIntent` — ic402's intent with `expiry` spelled
1953
2662
  * / `expiryNs`. Same value, same meaning; only the name carries the unit now.
1954
2663
  */
1955
2664
  previewOpenSession: ActorMethod<[], SessionIntent>;
2665
+ /**
2666
+ * / ⟨2026-10-21, the owner's approval of the mobile design's changes: a trim preview⟩ What a PROPOSED history policy
2667
+ * / would remove from the store as it stands — "about N old copies in F files would be removed" —
2668
+ * / asked BEFORE the owner saves it. A query: nothing is saved, armed or evicted.
2669
+ * /
2670
+ * / WHO: the OWNER only (`#ownerOnly`). An agent, a guardian, a stranger and the anonymous caller
2671
+ * / are each refused with `requireOwner`'s words; the setter it previews is owner-only too.
2672
+ * /
2673
+ * / HOW: the proposal must pass the setter's own checks (`retentionEntriesRefusal`), so the preview
2674
+ * / never answers for a policy the setter would refuse. The guards a save would arm are computed
2675
+ * / exactly as the setter computes them (`RetentionPolicy.armGuards`), and each file is planned by
2676
+ * / the planner the sweep executes (`MemoryRouter.previewEviction` → `Retention.plan`), as the
2677
+ * / owner (the sweep's `maintainPrincipal`), AT THE INSTANT its guard lets go — so a rule that
2678
+ * / waits 14 days is counted as it will stand then, when the agent floor has released more. Per
2679
+ * / rule: copies, files, bytes and `notBeforeNs`. The count is "about": writes before the rule
2680
+ * / takes effect change it.
2681
+ * / HONEST WHEN CUT SHORT: `complete = false` when the planning budget
2682
+ * / (`MemoryRouter.PREVIEW_MAX_DROPS`) ran out — the totals are then a floor, and say so.
2683
+ * / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
2684
+ * / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
2685
+ */
2686
+ previewRetention: ActorMethod<[Array<[string, RetentionClassSpec]>], Result_23>;
1956
2687
  /**
1957
2688
  * / Read one memory file at its current version.
1958
2689
  * /
@@ -1961,15 +2692,15 @@ export interface Engram {
1961
2692
  * /
1962
2693
  * / ⚠ `config/` AND `secrets/` ARE OWNER-ONLY whatever the grant says, and the refusal is
1963
2694
  * / `#Refused` rather than `#Invalid` deliberately: the path is well-formed and the file may well
1964
- * / exist — the caller simply may not have it. Under L1 that distinction is the caller's to branch
1965
- * / on, which is the whole reason `Error` is a closed variant rather than a sentence.
2695
+ * / exist — the caller simply may not have it. A refusal being a typed value, that distinction is the
2696
+ * / caller's to branch on, which is the whole reason `Error` is a closed variant rather than a sentence.
1966
2697
  * /
1967
2698
  * / ⚠ A QUERY, so it does NOT count as a read. The IC discards query-path state changes, so a
1968
2699
  * / counter here could never persist; read counting lives on the update path
1969
2700
  * / (`sessionReadContext` and the MCP reads). A caller measuring engram usage from this method
1970
2701
  * / will measure nothing.
1971
2702
  */
1972
- readMemory: ActorMethod<[string], Result_11>;
2703
+ readMemory: ActorMethod<[string], Result_13>;
1973
2704
  /**
1974
2705
  * / Read many paths in one call. Per-path Results are KEPT — partial success is the point, and
1975
2706
  * / one unreadable path must not fail the other nine.
@@ -1979,7 +2710,7 @@ export interface Engram {
1979
2710
  * / · Over the path cap it returned `[("", #Err(#Invalid …))]` — ONE row, for a path the caller
1980
2711
  * / never asked about. A consumer looping rows saw a result for the empty path and no result
1981
2712
  * / for any real one. The call as a whole failed; dressing that as a per-path outcome is the
1982
- * / fabrication ADR-0002 is about.
2713
+ * / fabrication that the refusal-over-fabrication rule is about.
1983
2714
  * / · An AUTHORIZATION refusal was fanned out across every requested path, so one "no" arrived
1984
2715
  * / as N per-path noes and read like N independent permission facts about N files.
1985
2716
  * /
@@ -1987,11 +2718,11 @@ export interface Engram {
1987
2718
  * / path, each with its own Result — a refused RESERVED path sits beside a readable one, which is
1988
2719
  * / a genuine per-path fact.
1989
2720
  */
1990
- readMemoryBatch: ActorMethod<[Array<string>], Result_18>;
2721
+ readMemoryBatch: ActorMethod<[Array<string>], Result_22>;
1991
2722
  /**
1992
2723
  * / ⟨0.16.0⟩ `getMemoryRetentionGuards` DELETED — folded into `getMemoryRetentionPolicy` above.
1993
- * / It was the second L2.1 array-returning `get*`, and separating it from the policy it modifies
1994
- * / was the defect described there. Its own docs are preserved at the fold site.
2724
+ * / It was the second array-returning `get*` (a `get*` returns one value), and separating it from the
2725
+ * / policy it modifies was the defect described there. Its own docs are preserved at the fold site.
1995
2726
  * / One page of a file's content — the paged read the whole-file surfaces point at.
1996
2727
  * /
1997
2728
  * / `version = null` reads the live file; a version reads that version as it was recorded.
@@ -1999,7 +2730,7 @@ export interface Engram {
1999
2730
  * / see it cannot know whether it has the whole range, which is how silent truncation gets
2000
2731
  * / reintroduced. Loop while `more` is true, advancing by the bytes actually returned.
2001
2732
  */
2002
- readMemoryBytes: ActorMethod<[string, bigint, bigint, [] | [bigint]], Result_17>;
2733
+ readMemoryBytes: ActorMethod<[string, bigint, bigint, [] | [bigint]], Result_21>;
2003
2734
  /**
2004
2735
  * / The escrow exit for a session whose settle cannot pay.
2005
2736
  * /
@@ -2012,7 +2743,7 @@ export interface Engram {
2012
2743
  * / `deposited >= consumed + fee`, and vouchers may consume up to the full deposit — so a payer
2013
2744
  * / who spends their whole budget makes their own session unsettleable, with no adversary
2014
2745
  * / involved. Before this, the refusal text told them to call `recoverEscrow`, which existed on no
2015
- * / canister they could reach. RB2 caps consumable spend so ordinary use cannot reach that state;
2746
+ * / canister they could reach. The spend ceiling caps consumable spend so ordinary use cannot reach that state;
2016
2747
  * / this is the way back for a session that already has.
2017
2748
  * /
2018
2749
  * / ⟨CORRECTION 2026-09-30, beside the paragraph above and the first line⟩ No longer true. ic402
@@ -2063,10 +2794,20 @@ export interface Engram {
2063
2794
  * / was the block index alone, which read as the amount. If the session's record is removed before
2064
2795
  * / the amount can be read back — a session closed in the same moment as the recovery and cleaned up
2065
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.
2066
2807
  */
2067
- recoverEscrow: ActorMethod<[string, bigint], Result_16>;
2808
+ recoverEscrow: ActorMethod<[string, bigint], Result_20>;
2068
2809
  /**
2069
- * / ⟨0.16.0, L1⟩ A REDEMPTION PATH, where the arm choice is a disclosure decision.
2810
+ * / ⟨0.16.0, refusals are values, never traps⟩ A REDEMPTION PATH, where the arm choice is a disclosure decision.
2070
2811
  * /
2071
2812
  * / Four of these refusals are about the CODE and one is about the caller. The code arms restate
2072
2813
  * / exactly what the text already said — an unknown code is `#NotFound`, a used or expired one is
@@ -2080,7 +2821,7 @@ export interface Engram {
2080
2821
  * / owner's invite gave them and that they cannot act until approved; before, that took a second
2081
2822
  * / read they had no reason to know to make.
2082
2823
  */
2083
- registerGuardian: ActorMethod<[string], Result_15>;
2824
+ registerGuardian: ActorMethod<[string], Result_19>;
2084
2825
  /**
2085
2826
  * / Remove a per-caller override so that caller reverts to — and keeps TRACKING — the global caps.
2086
2827
  * /
@@ -2088,7 +2829,13 @@ export interface Engram {
2088
2829
  * / override is to overwrite it with a frozen copy of the global policy, which then stops
2089
2830
  * / following later changes. That makes every override permanent in effect.
2090
2831
  */
2091
- removeCallerSpendPolicy: ActorMethod<[Principal], Result_1>;
2832
+ removeCallerSpendPolicy: ActorMethod<[Principal], Result_2>;
2833
+ /**
2834
+ * / ⟨2026-10-14, the destination-list ruling⟩ Remove a destination from one action's list. Instant,
2835
+ * / and NOT freeze-gated: removal TIGHTENS, and a frozen engram must still be able to shrink what it
2836
+ * / could sign to.
2837
+ */
2838
+ removeEip712Destination: ActorMethod<[Uint8Array | number[], string], Result_2>;
2092
2839
  /**
2093
2840
  * / De-register a type that has NEVER SIGNED. Exists because of a hazard the first external
2094
2841
  * / validation found within hours (consumer report, 2026-08-06): a bare-name #standard registration —
@@ -2099,9 +2846,10 @@ export interface Engram {
2099
2846
  * / removes only authority that was never exercised, which is removing nothing but the mistake.
2100
2847
  * / NOT freeze-gated, same reasoning as removeEvmWithdrawDestination: this is TIGHTENING, and a
2101
2848
  * / frozen engram must still be able to shrink what it could sign.
2849
+ * / ⟨2026-10-14⟩ `removeEvmWithdrawDestination` is now `removeEip712Destination` (the destination-list ruling); same
2850
+ * / reasoning. Removing a type now also drops its rules and its own destination list.
2102
2851
  */
2103
- removeEip712Type: ActorMethod<[Uint8Array | number[]], Result_1>;
2104
- removeEvmWithdrawDestination: ActorMethod<[string], Result_1>;
2852
+ removeEip712Type: ActorMethod<[Uint8Array | number[]], Result_2>;
2105
2853
  /**
2106
2854
  * / Owner-only: remove a guardian from the roster.
2107
2855
  * /
@@ -2112,13 +2860,35 @@ export interface Engram {
2112
2860
  * / `#NotFound` rather than `#Refused` when there is no such guardian: only the owner reaches this
2113
2861
  * / line, so the roster is theirs and its contents are not a secret being withheld from them.
2114
2862
  */
2115
- removeGuardian: ActorMethod<[Principal], Result_1>;
2863
+ removeGuardian: ActorMethod<[Principal], Result_2>;
2864
+ /**
2865
+ * / Remove a listed seller, at once: from now a payment to it meets the engram-wide ceiling and the
2866
+ * / paying agent's own limits again, and adding it back waits 24 hours. Removing TIGHTENS, so the key
2867
+ * / file may do it as well as the sign-in, and it works while payments are frozen. Its "paid before"
2868
+ * / history is kept (that is about the address, not the row). Unknown address `#NotFound`.
2869
+ * / Named callers: an owner console's seller list, and the owner kit (the key file's way to stop a
2870
+ * / seller).
2871
+ */
2872
+ removeSeller: ActorMethod<[string], Result_2>;
2873
+ /**
2874
+ * / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ OWNER-ONLY: give an agent a new name. A name was
2875
+ * / fixed at the invite, and two agents both called "agent" is how the 2026-10-20 session started.
2876
+ * / Only the VALUE of the stored `AgentRecord.name` changes — no new state, no reshaped record —
2877
+ * / and the change is on the record as `agent.rename` (`principal=<key> name=<new name>`, the name
2878
+ * / last). An ended agent may be renamed too (`People.renameTarget` says why).
2879
+ * / Refused: an agent (itself included), a guardian and a stranger by `requireOwner`'s "Not owner",
2880
+ * / the anonymous caller by its own text; a name that is empty, over `MAX_NAME_LENGTH` or holds a
2881
+ * / line break is `#Invalid` (`People.nameRefusal`); an unknown key is `#NotFound`; the agent's
2882
+ * / current name is `#Conflict`. Nothing changes on any refusal. Not alerted: the owner is the one
2883
+ * / renaming (`ActionAlerts.classify` answers null for `agent.rename`).
2884
+ */
2885
+ renameAgent: ActorMethod<[Principal, string], Result_2>;
2116
2886
  /**
2117
2887
  * / Owner disavows a specific memory write, in the open. Marks — never deletes: the content and
2118
2888
  * / the original audit entry stay exactly where they were; this appends a chained
2119
2889
  * / `memory.repudiate` entry and lists the (path, version) so readers can see the dispute.
2120
2890
  */
2121
- repudiateMemoryWrite: ActorMethod<[string, bigint, string], Result_8>;
2891
+ repudiateMemoryWrite: ActorMethod<[string, bigint, string], Result_15>;
2122
2892
  /**
2123
2893
  * / ⚠ OWNER-ONLY BULK RESET. Destructive, and wider than its name suggests.
2124
2894
  * /
@@ -2138,6 +2908,10 @@ export interface Engram {
2138
2908
  * / · ⟨2026-10-02⟩ the seat weeks of every engagement (`agentSeatWeeks`), with the signature count
2139
2909
  * / they sit beside, and the owner's switch over the metrics reader's read and the reader it
2140
2910
  * / names — a reset severs access, it does not change who may read what was kept.
2911
+ * / · ⟨2026-11-02, the child build — decided "unless you object", recorded at its withdrawal-pinning
2912
+ * / step⟩ the seller list and the paid history (`listSellers`, `getRecipientHistory`), as the typed-data
2913
+ * / destinations are kept: a reset severs access, it does not forget which counterparties the
2914
+ * / owner approved or which addresses this engram has paid.
2141
2915
  * /
2142
2916
  * / ⟨2026-10-02⟩ It tells the spawning registry that it happened (`sysNoteReset`), on every reset.
2143
2917
  * /
@@ -2148,7 +2922,7 @@ export interface Engram {
2148
2922
  * / long-lived enough for the rent model to apply, the reset entry is not guaranteed to still be
2149
2923
  * / there. `agentPurgeLog` is the evidence that does not age out — which is why it exists.
2150
2924
  */
2151
- resetEngram: ActorMethod<[], Result_14>;
2925
+ resetEngram: ActorMethod<[], Result_18>;
2152
2926
  /**
2153
2927
  * / ⟨2026-09-28, owner decision: an agent can resign from an engram, and the resignation is
2154
2928
  * / recorded⟩ The AGENT ends its own engagement with this engram.
@@ -2169,13 +2943,13 @@ export interface Engram {
2169
2943
  * / that is down cannot leave the agent half-resigned; a missed notice is logged by
2170
2944
  * / `notifyRegistryAgentEdge`. WHAT WOULD MAKE THIS WRONG: a second path that sets `#Resigned`.
2171
2945
  */
2172
- resignAgent: ActorMethod<[], Result_1>;
2946
+ resignAgent: ActorMethod<[], Result_2>;
2173
2947
  /**
2174
2948
  * / OWNER-ONLY release of the write pause, with the same one-way shape as `unfreezePayments`: a
2175
2949
  * / guardian holding `canPauseWrites` can stop writes without the owner and cannot restart them,
2176
2950
  * / and the owner can always restart them. A tripwire rather than a lock.
2177
2951
  */
2178
- resumeWrites: ActorMethod<[], Result_1>;
2952
+ resumeWrites: ActorMethod<[], Result_2>;
2179
2953
  /**
2180
2954
  * / Self-heal: re-send every ACTIVE agent's start to the spawning registry (idempotent — the
2181
2955
  * / registry mints no duplicate for an open engagement), for when a notice was missed. Owner-only.
@@ -2183,7 +2957,7 @@ export interface Engram {
2183
2957
  * / throw, against a method that could not say no; it now counts `#Ok` answers.⟩ It re-sends
2184
2958
  * / starts only: an ending carries a reason this roster does not keep per principal.
2185
2959
  * /
2186
- * / ⟨CORRECTED 2026-09-29, review finding LIFE-2 — owner's option A⟩ It now re-sends ENDINGS as
2960
+ * / ⟨CORRECTED 2026-09-29, a review finding — the owner's ruling⟩ It now re-sends ENDINGS as
2187
2961
  * / well as starts, endings first (`AgentEdges.resyncPlan` says why): every ended record on the
2188
2962
  * / roster and every agent a reset removed keeps its ending's reason and day
2189
2963
  * / (`Types.AgentEnding`), so an ending the registry never received — the one loss that used to
@@ -2200,13 +2974,13 @@ export interface Engram {
2200
2974
  * / each such engagement under `cannotBeRecorded` (key, root, invite, and how and when it ended),
2201
2975
  * / apart from `notRecorded`, so the owner sees them rather than silence.
2202
2976
  */
2203
- resyncAgentEdges: ActorMethod<[], Result_13>;
2977
+ resyncAgentEdges: ActorMethod<[], Result_17>;
2204
2978
  /**
2205
2979
  * / Return to managed custody: the engram adds the registry back as a controller ALONGSIDE the
2206
2980
  * / owner — it does not remove the owner. The inverse of `claimSovereignty`, and the reason
2207
2981
  * / sovereignty is not a one-way door.
2208
2982
  */
2209
- returnToManaged: ActorMethod<[], Result_1>;
2983
+ returnToManaged: ActorMethod<[], Result_2>;
2210
2984
  /**
2211
2985
  * / Replace the whole content of an EXISTING file.
2212
2986
  * /
@@ -2219,7 +2993,7 @@ export interface Engram {
2219
2993
  * / Replacing is safe here in a way it was not in the legacy store: the prior version is not
2220
2994
  * / overwritten, it is superseded. It stays readable, its hash stays committed, and the agent
2221
2995
  * / floor keeps its bytes for the window a counterparty needs to extract them.
2222
- * / ⟨0.16.0, L1⟩ FIVE AGENT REFUSALS, ALL `#Refused`, AND THE UNIFORMITY IS THE FINDING.
2996
+ * / ⟨0.16.0, refusals are values, never traps⟩ FIVE AGENT REFUSALS, ALL `#Refused`, AND THE UNIFORMITY IS THE FINDING.
2223
2997
  * /
2224
2998
  * / Reserved path, protected path, missing permission, ungranted revise path, `#vault` class — a
2225
2999
  * / caller could previously tell these apart only by reading five different sentences, and every
@@ -2243,7 +3017,7 @@ export interface Engram {
2243
3017
  * /
2244
3018
  * / To narrow what an agent may do rather than end its access, use `setAgentPermissions`.
2245
3019
  */
2246
- revokeAgent: ActorMethod<[Principal], Result_1>;
3020
+ revokeAgent: ActorMethod<[Principal], Result_2>;
2247
3021
  /**
2248
3022
  * / Owner-only panic button: revoke EVERY active agent at once. Returns how many were revoked.
2249
3023
  * /
@@ -2262,7 +3036,7 @@ export interface Engram {
2262
3036
  * / that fails leaves the agents revoked here regardless — a partial notify is not a partial
2263
3037
  * / revocation, which is the direction that matters for a panic button.
2264
3038
  */
2265
- revokeAllAgents: ActorMethod<[], Result_8>;
3039
+ revokeAllAgents: ActorMethod<[], Result_15>;
2266
3040
  /**
2267
3041
  * / Owner-only panic button: revoke every connector bearer token at once. Returns how many.
2268
3042
  * /
@@ -2273,11 +3047,12 @@ export interface Engram {
2273
3047
  * /
2274
3048
  * / Tokens are re-issuable: revoking them is not permanent the way revoking an agent is.
2275
3049
  */
2276
- revokeAllBearerTokens: ActorMethod<[], Result_8>;
3050
+ revokeAllBearerTokens: ActorMethod<[], Result_15>;
2277
3051
  /**
2278
- * / ⟨0.16.0⟩ `removeAllGuardians` DELETED — test-only (L6), and verified NOT part of KILL-SWITCH's
2279
- * / mass-revoke set. The destructive phase-07 suite iterates `removeGuardian` instead, so nothing
2280
- * / loses a capability: what dies is a bulk spelling no runbook ever invoked.
3052
+ * / ⟨0.16.0⟩ `removeAllGuardians` DELETED — test-only (every method has a named caller; none is test-only),
3053
+ * / and verified NOT part of KILL-SWITCH's mass-revoke set. The destructive phase-07 suite iterates
3054
+ * / `removeGuardian` instead, so nothing loses a capability: what dies is a bulk spelling no runbook ever
3055
+ * / invoked.
2281
3056
  * / Owner-only panic button: void every unredeemed invite. Returns how many were voided.
2282
3057
  * /
2283
3058
  * / Separate from `revokeAllAgents`: this stops invites that have NOT been redeemed yet and
@@ -2287,14 +3062,14 @@ export interface Engram {
2287
3062
  * / Unlike revoking an agent, this costs nothing permanently — an invite is a one-time code,
2288
3063
  * / so voiding it and minting a fresh one is the ordinary path.
2289
3064
  */
2290
- revokeAllInvites: ActorMethod<[], Result_8>;
3065
+ revokeAllInvites: ActorMethod<[], Result_15>;
2291
3066
  /**
2292
3067
  * / Revoke a bearer token by its public tokenId. Idempotent.
2293
3068
  * / Subsequent /mcp requests using this token will be rejected.
2294
3069
  */
2295
- revokeBearerToken: ActorMethod<[string], Result_1>;
3070
+ revokeBearerToken: ActorMethod<[string], Result_2>;
2296
3071
  /**
2297
- * / ⟨0.16.0, census §10 item 16⟩ RETURNS A REAL RECEIPT, not `R<()>` — same reason as the delete
3072
+ * / ⟨0.16.0, the interface plan⟩ RETURNS A REAL RECEIPT, not `R<()>` — same reason as the delete
2298
3073
  * / above, and sharper here: a rollback WRITES A NEW VERSION, so the caller's next question is
2299
3074
  * / always "which version am I on now". `r.version` was already read for the audit line.
2300
3075
  */
@@ -2308,7 +3083,7 @@ export interface Engram {
2308
3083
  * / one-shot registration rule. So this is the answer to "my key is compromised", and it is NOT a
2309
3084
  * / way to move an agent seat to a different wallet — that is a new invite, and only if the
2310
3085
  * / old principal was never revoked.
2311
- * / ⟨CORRECTED 2026-09-29, the owner's ruling of that date (follow-up 10, option A)⟩ Two sentences
3086
+ * / ⟨CORRECTED 2026-09-29, the owner's ruling of that date⟩ Two sentences
2312
3087
  * / above are no longer true. An agent's record CAN now move to a different key, in one step and
2313
3088
  * / with no new invite: `nominateAgentKey` from the current key, then `acceptAgentKeyNomination`
2314
3089
  * / from the new one. And a compromised key is answered by that move — this method only changes a
@@ -2319,22 +3094,55 @@ export interface Engram {
2319
3094
  * / agent on that record, so its standing is not the problem — the record's state is. An
2320
3095
  * / agent reading `#Refused` would go looking for a permission that was never missing.
2321
3096
  */
2322
- rotateAgentKeyHash: ActorMethod<[string], Result_1>;
2323
- /**
2324
- * / One-time onboarding seed: writes a starter file so the first read-back is non-empty.
2325
- * /
2326
- * / Owner-only, and it REFUSES once any memory exists — so it can only ever add the initial
2327
- * / placeholder and can never overwrite real content. Deliberately NOT counted as a write (no
2328
- * / `totalMemoryWrites`, no `firstWriteAt`): it is a system seed rather than activity, and
2329
- * / counting it would corrupt both the write metrics and time-to-first-write for every engram.
2330
- */
2331
- seedMemory: ActorMethod<[string, Uint8Array | number[]], Result>;
3097
+ rotateAgentKeyHash: ActorMethod<[string], Result_2>;
3098
+ /**
3099
+ * / Append one formatted memory entry: a dated preference, a lesson or domain insight (topic
3100
+ * / nonempty; topic names follow the shared memory schema), a decision with its rationale, or an
3101
+ * / untrimmed session summary. Dates are this canister's UTC date; a session summary may supply its
3102
+ * / own `YYYY-MM-DD` date (shape-checked, not calendar-checked). Same append permission, path rules,
3103
+ * / writes-pause and encrypted-memory refusal as appendMemoryText; returns the write receipt and the
3104
+ * / exact bytes sent. Callers: the npm library's ProfileManager saves and SessionManager.writeSummary
3105
+ * / (each through EngramClient), and through them the local MCP server's profile and session tools.
3106
+ * / ⟨2026-11-08, the owner: "merging the four methods to one i would agree with"⟩ Was four methods
3107
+ * / (savePreference, saveInsight, saveDecision, writeSessionSummary), added 2026-11-06 and never
3108
+ * / released; one door keeps three fewer methods that every client must support for as long as
3109
+ * / they are served.
3110
+ */
3111
+ saveMemoryEntry: ActorMethod<[MemoryEntry], Result_16>;
3112
+ /**
3113
+ * / Send money from this engram's wallet to the engram it was opened through — "up", and only up:
3114
+ * / the destination is always the parent engram's own default account, never an address the caller
3115
+ * / names. ANY amount (the owner's send-up ruling); the answer is the ledger's block index.
3116
+ * /
3117
+ * / WHO: the owner's key file or the sign-in, in an engram opened through another (the build's
3118
+ * / resolution: both may send — the key file's honest sweep needs it, and the sign-in may sweep
3119
+ * / too); refused to anyone else. In a first engram there is nothing above it, and it refuses with
3120
+ * / `#Conflict`. NOT freeze-gated: up is not out, so a payments freeze does not stop it.
3121
+ * /
3122
+ * / ORDER: the caller, then the parent from this engram's own birth record (`openedFrom`, no await),
3123
+ * / then ONE call to the registry — refused unless the registry shows the parent registered, active
3124
+ * / and not abandoned (`#Refused`; the registry unreachable is `#Unavailable`; nothing sent either
3125
+ * / way) — then ONE ledger transfer, the same per-token ledger as `ownerWithdraw`. Both calls are
3126
+ * / counted (the timer-pause rule of 2026-10-28), so near its freezing line this engram may be unable to send the registry
3127
+ * / call at all; it then answers `#Unavailable` and nothing moves.
3128
+ * /
3129
+ * / NO RE-CHECK between the two calls, deliberately: the parent can be abandoned in between, and the
3130
+ * / money then sits in an existing canister whose owner can still withdraw it. Guarding that window
3131
+ * / would need a third call and buys nothing the owner of the parent does not already have.
3132
+ * /
3133
+ * / NOT INCOME. The parent's track record is engagements, standing, seat-weeks and counts of use, and
3134
+ * / signature counts count signatures; nothing reads a ledger balance, and this method calls none of
3135
+ * / those writers (test/child-sign-in-wiring.test.ts rule 13). Written to the record as
3136
+ * / `wallet.sendToParent` (money class), with the amount, the token, the parent and the block.
3137
+ * / Named callers: the owner kit, signed by the key file; an owner console, signed in as the sign-in.
3138
+ */
3139
+ sendToParent: ActorMethod<[TokenAmount], Result_15>;
2332
3140
  /**
2333
3141
  * / Append to a memory file against a PAID x402 session voucher — the write half of the paid rail,
2334
3142
  * / authorized by the voucher rather than by a role.
2335
3143
  * / ⟨2026-09-30, ic402 2.17.0⟩ Authorized by the payer's own call with the voucher: only the
2336
3144
  * / principal that opened the session, calling as that key, can spend it (see `sessionReadMemory`).
2337
- * / ⟨CORRECTED 2026-09-30, the owner's answer "2 fresh key"⟩ Authorized by the session KEY's own
3145
+ * / ⟨CORRECTED 2026-09-30, the owner's fresh-key ruling⟩ Authorized by the session KEY's own
2338
3146
  * / call: the fresh key the payer named at open. The write is attributed to the payer, who paid;
2339
3147
  * / the record row also names the key that made it.
2340
3148
  * /
@@ -2343,7 +3151,7 @@ export interface Engram {
2343
3151
  * / when the engram is client-side encrypted: a paid session appending plaintext to an encrypted
2344
3152
  * / store would CORRUPT it, so that refusal is protecting the owner's data rather than gating
2345
3153
  * / access. Append through the EngramX client/SDK instead.
2346
- * / ⟨API-101/DEC-101, 2026-08-24 — v3 phase X3⟩ RETURNS THE SAME RECEIPT THE FREE WRITER DOES.
3154
+ * / ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ RETURNS THE SAME RECEIPT THE FREE WRITER DOES.
2347
3155
  * / It answered `Wire.Result<Nat>`: the version, and nothing else. The free `writeMemory` returns
2348
3156
  * / `{ version; seq; head }`, so a PAYING writer got strictly LESS evidence than a caller who paid
2349
3157
  * / nothing — on the one rail a stranger can buy, where the receipt is the whole product. The head
@@ -2353,7 +3161,7 @@ export interface Engram {
2353
3161
  * / It cost nothing to fix: `r` was already in scope and already being read — the old body did
2354
3162
  * / `let v = r.version` and passed `r` to `receiptSuffix(r)` for the audit line, then discarded
2355
3163
  * / everything but the version on the way out. Free until the cut, breaking forever after, which
2356
- * / is why it lands now rather than after the test migration (ruling R-A2).
3164
+ * / is why it lands now rather than after the test migration (as ruled 2026-08-24).
2357
3165
  */
2358
3166
  sessionAppendMemory: ActorMethod<[Voucher, string, Uint8Array | number[]], Result>;
2359
3167
  /**
@@ -2361,11 +3169,12 @@ export interface Engram {
2361
3169
  * / start. The "read me back" that continuity is built on. `clientLabel` names the reading host
2362
3170
  * / (e.g. "openclaw", "claude.ai") for the distinct-reader set.
2363
3171
  * /
2364
- * / ⚠ AN UPDATE, NOT A QUERY, AND ON PURPOSE (L7). `readMemory`/`readMemoryBatch` are queries and
2365
- * / therefore CANNOT persist a read count; this runs on the update path and bumps the reuse
2366
- * / counters, so a builder whose SDK calls `startSession()` registers a weekly-reused engram as a
2367
- * / byproduct of normal use rather than through an elective, separate read. Callers should expect
2368
- * / update latency and consensus cost here, and get a recorded read in exchange.
3172
+ * / ⚠ AN UPDATE, NOT A QUERY, AND ON PURPOSE (a read served as an update says why).
3173
+ * / `readMemory`/`readMemoryBatch` are queries and therefore CANNOT persist a read count; this runs on
3174
+ * / the update path and bumps the reuse counters, so a builder whose SDK calls `startSession()`
3175
+ * / registers a weekly-reused engram as a byproduct of normal use rather than through an elective,
3176
+ * / separate read. Callers should expect update latency and consensus cost here, and get a recorded
3177
+ * / read in exchange.
2369
3178
  * /
2370
3179
  * / ⚠ IT DOES NOT RETURN EVERYTHING, and the omission is deliberate: `config/` and `secrets/` are
2371
3180
  * / SKIPPED. Those are operational, not agent memory, and must never be blindly spilled into a
@@ -2375,7 +3184,7 @@ export interface Engram {
2375
3184
  * / CIPHERTEXT; the key-holding SDK decrypts it. A caller without the key gets bytes it cannot
2376
3185
  * / read, not an error.
2377
3186
  */
2378
- sessionReadContext: ActorMethod<[string], Result_12>;
3187
+ sessionReadContext: ActorMethod<[string], Result_14>;
2379
3188
  /**
2380
3189
  * / Read one memory file against a PAID x402 session voucher. No role, no invite — the voucher is
2381
3190
  * / the authorization, which is what makes this the engram's one rail a stranger can pay to use.
@@ -2384,7 +3193,7 @@ export interface Engram {
2384
3193
  * / Ed25519 key that opened it. The voucher still carries the amount and the sequence; the
2385
3194
  * / authorization is now the call itself, and the canister no longer checks a voucher signature.
2386
3195
  * / A stranger can still pay to use this rail — by opening a session of their own.
2387
- * / ⟨CORRECTED 2026-09-30, the owner's answer "2 fresh key"⟩ Not the payer: the session's own key
3196
+ * / ⟨CORRECTED 2026-09-30, the owner's fresh-key ruling⟩ Not the payer: the session's own key
2388
3197
  * / — the fresh Ed25519 key the payer named at open — calling as itself. The payer, who opened
2389
3198
  * / the session and closes it, is refused here like anyone else who is not that key.
2390
3199
  * / ⟨CORRECTED 2026-09-30, review⟩ …unless the payer named their own identity key at open, which
@@ -2407,16 +3216,17 @@ export interface Engram {
2407
3216
  * / cent voucher could read `secrets/*`.
2408
3217
  * / · Payments are frozen on this engram.
2409
3218
  */
2410
- sessionReadMemory: ActorMethod<[Voucher, string], Result_11>;
3219
+ sessionReadMemory: ActorMethod<[Voucher, string], Result_13>;
2411
3220
  /**
2412
3221
  * / Configure action alerts: an https webhook that receives new chained-audit entries matching the
2413
3222
  * / enabled event classes (money / approvals / guardian / agentWrites), batched, at most one
2414
- * / POST per minute. Owner-only. Payloads carry audit METADATA (operation, caller, role, bounded
3223
+ * / POST per minute. ⟨2026-10-29⟩ Delivered within seconds of the action (a 5 s batch window), and
3224
+ * / nothing runs while nothing is owed. Owner-only. Payloads carry audit METADATA (operation, caller, role, bounded
2415
3225
  * / details) — never memory file contents. Setting a URL (re)arms delivery FROM NOW: the cursor
2416
3226
  * / jumps to the current end of the log so history is not replayed. Passing url = null disables.
2417
3227
  * / The URL itself is never written to the audit log (webhook URLs often embed secret tokens).
2418
3228
  */
2419
- setActionAlertConfig: ActorMethod<[AlertConfig], Result_1>;
3229
+ setActionAlertConfig: ActorMethod<[AlertConfig], Result_2>;
2420
3230
  /**
2421
3231
  * / Owner-only: replace an existing agent's permission set. The way to NARROW what an agent
2422
3232
  * / may do without ending their access — `revokeAgent` is terminal for that principal, this is
@@ -2433,7 +3243,7 @@ export interface Engram {
2433
3243
  * / forward is to grant read to your own agents instead, or to switch to Connected mode first —
2434
3244
  * / both of which the message says.
2435
3245
  */
2436
- setAgentPermissions: ActorMethod<[Principal, AgentPermissions], Result_1>;
3246
+ setAgentPermissions: ActorMethod<[Principal, AgentPermissions], Result_2>;
2437
3247
  /**
2438
3248
  * / Paths an agent holding a grant may REVISE rather than only append to.
2439
3249
  * /
@@ -2443,9 +3253,9 @@ export interface Engram {
2443
3253
  * / for that. What a bare prefix would do — "MEMORY.md" also matching "MEMORY.md.bak" — is the
2444
3254
  * / kind of accident a permission surface must not have.
2445
3255
  */
2446
- setAgentRevisablePaths: ActorMethod<[Array<string>], Result_1>;
3256
+ setAgentRevisablePaths: ActorMethod<[Array<string>], Result_2>;
2447
3257
  /**
2448
- * / ⟨0.16.0 — census row⟩ Returns the APPLIED config, which is how this closes the
3258
+ * / ⟨0.16.0 — the interface plan's entry⟩ Returns the APPLIED config, which is how this closes the
2449
3259
  * / setter-without-a-getter gap without adding a method: the write is the read.
2450
3260
  * /
2451
3261
  * / `prunedBackups` is the part that matters. Enforcing a retention cap DELETES finalized backups
@@ -2453,12 +3263,18 @@ export interface Engram {
2453
3263
  * / called it an "ops floor: retention enforcement deletes owner backup data silently", mitigated
2454
3264
  * / by a `Debug.print` nobody reads. An owner lowering the cap is destroying their own backups;
2455
3265
  * / they are told how many, in the reply and in the audit line.
3266
+ * /
3267
+ * / ⟨2026-10-21, the owner's answers on backups in the mobile-first app design⟩ The number now bounds EACH creator's
3268
+ * / backups of the kind (`Backup.enforceRetention`): an agent's finalize prunes only that agent's
3269
+ * / own, and this setter applies the number to every creator's set, so `prunedBackups` counts
3270
+ * / across all of them. "The write is the read" above went stale for a second phone, which never
3271
+ * / made the write: `getBackupRetention` is the read.
2456
3272
  */
2457
- setBackupRetention: ActorMethod<[string, bigint], Result_10>;
3273
+ setBackupRetention: ActorMethod<[string, bigint], Result_12>;
2458
3274
  /**
2459
3275
  * / Override the caps for ONE caller — an agent this owner trusts more, or less, than the rest.
2460
3276
  */
2461
- setCallerSpendPolicy: ActorMethod<[Principal, SpendingPolicy], Result_1>;
3277
+ setCallerSpendPolicy: ActorMethod<[Principal, SpendingPolicy], Result_2>;
2462
3278
  /**
2463
3279
  * / Owner-only: set how many engrams `agentPrincipal`'s agent may open of its own through this
2464
3280
  * / engram. Kept by the agent's lasting key, so it carries over a key replacement. Any count is
@@ -2471,7 +3287,7 @@ export interface Engram {
2471
3287
  * / alerts' money class (`ActionAlerts.classify`), so an owner or guardian with an alert channel
2472
3288
  * / hears of it.
2473
3289
  */
2474
- setChildAllowance: ActorMethod<[Principal, bigint], Result_1>;
3290
+ setChildAllowance: ActorMethod<[Principal, bigint], Result_2>;
2475
3291
  /**
2476
3292
  * / ⟨0.16.0⟩ `getEncryptedMemoryKeyForEpoch` DELETED — folded into `getEncryptedMemoryKey`'s epoch
2477
3293
  * / argument — see that method for the fold and the `null`-means-CURRENT rule.
@@ -2487,7 +3303,7 @@ export interface Engram {
2487
3303
  * / pairs this call with a migration (`useMemoryEncryption`'s `migrate` / `migrateToPlaintext`)
2488
3304
  * / for exactly that reason; a caller reaching this method directly gets the flag and nothing else.
2489
3305
  * /
2490
- * / ⚠ ENABLING IS REFUSED while the EngramX platform principal holds memory-read access as an
3306
+ * / ⚠ ENABLING IS REFUSED while the spawning registry's principal holds memory-read access as an
2491
3307
  * / agent — it could derive the decryption key, which would make Private mode a claim rather
2492
3308
  * / than a property. Revoke that agent's read access first. The refusal says so, and it is a
2493
3309
  * / `#Conflict` rather than a `#Refused` because the caller IS the owner and the problem is the
@@ -2496,7 +3312,7 @@ export interface Engram {
2496
3312
  * / Private mode also closes the paid read rail by construction: a paid session holds no key, so
2497
3313
  * / `sessionReadMemory` refuses on an encrypted engram whatever `setPaidMemoryReadEnabled` says.
2498
3314
  */
2499
- setEncryptionEnabled: ActorMethod<[boolean], Result_1>;
3315
+ setEncryptionEnabled: ActorMethod<[boolean], Result_2>;
2500
3316
  /**
2501
3317
  * / Register the owner's EVM address for withdrawals.
2502
3318
  * /
@@ -2509,16 +3325,21 @@ export interface Engram {
2509
3325
  * / The guardian doesn't approve the change — the owner is sovereign.
2510
3326
  * / The guardian's existence is the gate, not their active consent.
2511
3327
  */
2512
- setEvmOwnerAddress: ActorMethod<[string], Result_1>;
3328
+ setEvmOwnerAddress: ActorMethod<[string], Result_2>;
2513
3329
  /**
2514
3330
  * / A guardian arms their OWN webhook over the guarded engram's audit stream (same event
2515
3331
  * / classes and payload as the owner channel — audit metadata, never memory file contents;
2516
3332
  * / the guardian honesty rail: integrity, not content). Active guardians only. Arming starts
2517
3333
  * / from NOW (no history replay); url = null disarms and frees the slot.
2518
3334
  */
2519
- setGuardianAlertConfig: ActorMethod<[AlertConfig], Result_1>;
3335
+ setGuardianAlertConfig: ActorMethod<[AlertConfig], Result_2>;
2520
3336
  /**
2521
- * / Per-prefix retention policy. Longest prefix wins; anything unmatched keeps everything.
3337
+ * / Per-prefix retention policy. The longest rule that covers a path wins; anything uncovered
3338
+ * / keeps everything.
3339
+ * /
3340
+ * / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ "Covers" is the folder matcher
3341
+ * / (`AgentPaths.covers`, through `RetentionPolicy.resolve`): a rule ending in "/" governs
3342
+ * / everything beneath it, any other rule exactly one path. It was bare text prefix until that day.
2522
3343
  * /
2523
3344
  * / A CHANGE does not take effect immediately, in EITHER direction: every prefix whose EFFECTIVE
2524
3345
  * / class moves is guarded for the same window as the agent floor, so history cannot be
@@ -2526,8 +3347,24 @@ export interface Engram {
2526
3347
  * / "tightened" from "loosened" precisely would mean comparing two cap lattices, so armGuards
2527
3348
  * / (RetentionPolicy.mo) guards any change it sees. That is the conservative reading, and its
2528
3349
  * / only cost is a delay on keeping MORE, which destroys nothing.
3350
+ * / ⟨CORRECTED 2026-11-07⟩ That delay applies to EVICTION only (`resolveRetentionForEviction`),
3351
+ * / not to the class used for revision. `reviseMemory` reads `retentionClassOf` →
3352
+ * / `RetentionPolicy.resolve` without a guard: a newly written `#vault` forbids agent revision
3353
+ * / immediately, including during the 14-day eviction guard. The owner's revision is unchanged.
3354
+ */
3355
+ setMemoryRetentionPolicy: ActorMethod<[Array<[string, RetentionClassSpec]>], Result_2>;
3356
+ /**
3357
+ * / The SIGN-IN changes itself to `next` — "changeable only by itself". Immediate (a delay would need
3358
+ * / a third credential to cut it short). The key file is refused by name: it never names a sign-in,
3359
+ * / or a thief holding a copy would name themselves. A first engram refuses: its owner is its own
3360
+ * / sign-in. `next` must pass the door's rules and not be an agent or a guardian here. When this
3361
+ * / engram holds a sealed copy of the owner's key, `resealedBackup` is that copy re-sealed for `next`
3362
+ * / (the sign-in opens it and re-seals it client-side) and is stored in the same message, so the copy
3363
+ * / never names a sign-in that is not this engram's; with no copy held, none may be passed. Not
3364
+ * / blocked by a freeze: a freeze must not lock the sign-in out of itself.
3365
+ * / Named caller: an owner console, signed in as the sign-in ("change your sign-in").
2529
3366
  */
2530
- setMemoryRetentionPolicy: ActorMethod<[Array<[string, RetentionClassSpec]>], Result_1>;
3367
+ setOwnerSignIn: ActorMethod<[Principal, [] | [Uint8Array | number[]]], Result_2>;
2531
3368
  /**
2532
3369
  * / Owner-only: open or close the monetized read rail. When disabled (the default), sessionReadMemory
2533
3370
  * / fails closed for every voucher-bearer — selling the owner's memory is opt-in, not the default.
@@ -2540,24 +3377,24 @@ export interface Engram {
2540
3377
  * / `getEngramCard`'s `x402Support` reports THIS flag, so a buyer can read the rail's state before
2541
3378
  * / paying rather than discovering it in a refusal.
2542
3379
  */
2543
- setPaidMemoryReadEnabled: ActorMethod<[boolean], Result_1>;
3380
+ setPaidMemoryReadEnabled: ActorMethod<[boolean], Result_2>;
2544
3381
  /**
2545
- * / Open or close the paid-memory WRITE rail (RB4). Owner-only, like its read twin.
3382
+ * / Open or close the paid-memory WRITE rail (off by default since 2026-08-26). Owner-only, like its read twin.
2546
3383
  * /
2547
3384
  * / Kept as a SEPARATE flag rather than widening `setPaidMemoryReadEnabled` into one switch: an
2548
3385
  * / owner selling read access has not thereby agreed to sell write access, and a single flag makes
2549
3386
  * / the larger permission ride in on the smaller one. Two flags is the shape that lets an owner
2550
3387
  * / say yes to one and no to the other, which is the common case.
2551
3388
  */
2552
- setPaidMemoryWriteEnabled: ActorMethod<[boolean], Result_1>;
3389
+ setPaidMemoryWriteEnabled: ActorMethod<[boolean], Result_2>;
2553
3390
  /**
2554
- * / ⟨0.16.0, L1⟩ Every validation refusal here is `#Invalid` and the cap is `#Conflict`, and the
2555
- * / split is worth stating once for the whole whole-value-config family below: a malformed path is
2556
- * / the CALLER'S to fix and retrying with a corrected list works, while "max 20" is a property of
2557
- * / this engram that no argument gets around. A caller that cannot tell those apart either edits
2558
- * / forever or gives up on a request that was one character from valid.
3391
+ * / ⟨0.16.0, refusals are values, never traps⟩ Every validation refusal here is `#Invalid` and the cap
3392
+ * / is `#Conflict`, and the split is worth stating once for the whole whole-value-config family below:
3393
+ * / a malformed path is the CALLER'S to fix and retrying with a corrected list works, while "max 20"
3394
+ * / is a property of this engram that no argument gets around. A caller that cannot tell those apart
3395
+ * / either edits forever or gives up on a request that was one character from valid.
2559
3396
  */
2560
- setProtectedPaths: ActorMethod<[Array<string>], Result_1>;
3397
+ setProtectedPaths: ActorMethod<[Array<string>], Result_2>;
2561
3398
  /**
2562
3399
  * / OWNER-ONLY: switch the metrics reader's read of the seat weeks off (`false`) or back on (`true`).
2563
3400
  * / On from birth, by the owner's ruling of 2026-10-02. Off, `sysGetAgentSeatWeeks` refuses the
@@ -2565,17 +3402,30 @@ export interface Engram {
2565
3402
  * / call is a chained record entry (`metrics.setSeatWeeksReadEnabled`, the new and the old value), so
2566
3403
  * / when the read was on or off is part of the record. Anyone else is refused by name.
2567
3404
  */
2568
- setSeatWeeksReadEnabled: ActorMethod<[boolean], Result_1>;
3405
+ setSeatWeeksReadEnabled: ActorMethod<[boolean], Result_2>;
3406
+ /**
3407
+ * / Change a listed seller's daily cap. A LOWER (or equal) cap applies at once and cancels a raise that
3408
+ * / was waiting; a HIGHER cap waits 24 hours, as a new seller does (the cap in force until then is the
3409
+ * / old one, and a second raise restarts the wait). Answers when the new cap applies. The sign-in only,
3410
+ * / in an engram opened through another; the owner in a first engram. A raise is refused while payments
3411
+ * / are frozen; a lowering is not. Unknown address `#NotFound`; a cap of 0 `#Invalid` (remove instead).
3412
+ * / Named callers: an owner console's seller list, as `addSeller`.
3413
+ */
3414
+ setSellerCap: ActorMethod<[string, bigint], Result_11>;
2569
3415
  /**
2570
3416
  * / Set the most this engram may spend per day ACROSS EVERY CALLER — five agents, the owner and the
2571
3417
  * / marketplace together. `null` removes the ceiling. ⟨2026-09-28⟩
2572
- * / ⟨CORRECTED 2026-09-29, review finding X-8: "spend" was too wide. The ceiling covers the x402
3418
+ * / ⟨CORRECTED 2026-09-29, a review finding: "spend" was too wide. The ceiling covers the x402
2573
3419
  * / payments this engram signs (`signX402Payment` and the marketplace's `sysSignX402Payment`) and
2574
3420
  * / nothing else: it is the most this engram may sign in x402 payments per day. Two other signing
2575
3421
  * / paths are NOT counted against it — typed-data signatures (`signEip712` / `sysSignEip712`),
2576
3422
  * / bounded instead by each registered type's daily count and destination list; and agent-
2577
3423
  * / registration transactions (`signEngramRegistration`), bounded by three per caller per day and
2578
3424
  * / the 500-gwei gas ceiling. Whether the ceiling should cover them is a separate owner question.⟩
3425
+ * / ⟨2026-10-14, the owner's typed-data signing rulings⟩ Typed-data signatures are now bounded by each
3426
+ * / registered type's daily count, its per-field rules ("at most N", "must equal X") and ITS OWN
3427
+ * / destination list, and the signing floor (`SigningFloor`) guards them as it guards x402 payments.
3428
+ * / They are still not counted against this ceiling.
2579
3429
  * /
2580
3430
  * / WHY: the owner decided on 2026-09-28 to add one daily spending ceiling across all callers on an
2581
3431
  * / engram and keep the limit of five agents. Every other spending limit is per caller, so without
@@ -2586,15 +3436,15 @@ export interface Engram {
2586
3436
  * / A payment that would take today's engram-wide total past this number is not signed: the caller
2587
3437
  * / gives a reason and it becomes a row in the approval queue, exactly as over a per-caller cap.
2588
3438
  * / `0` is allowed and means every payment needs the owner's approval.
2589
- * / ⟨CORRECTED 2026-09-29, review finding X-2: not every payment — a payment of amount 0 crosses no
3439
+ * / ⟨CORRECTED 2026-09-29, a review finding: not every payment — a payment of amount 0 crosses no
2590
3440
  * / limit, so it is signed under a ceiling of 0 too. Whether amount-0 payments should be refused is
2591
- * / an open owner question.⟩ ⟨CORRECTED 2026-09-29, later — the owner ruled (follow-up 15, option A):
3441
+ * / an open owner question.⟩ ⟨CORRECTED 2026-09-29, later — the owner ruled:
2592
3442
  * / a payment of amount 0 is now refused by name before any limit is read (`X402Input.refusal`), so
2593
3443
  * / under a ceiling of 0 every payment that can be signed at all does need the owner's approval.
2594
3444
  * / And a new engram no longer starts with no ceiling: it starts at `SpendCeiling.DEFAULT_ENGRAM_DAY`
2595
- * / ($10.00 a day; follow-up 9, option A).⟩ Takes effect on the next
2596
- * / payment, counted against what was ALREADY spent today (the total is kept whether or not a
2597
- * / ceiling is set), so setting a ceiling at noon does not grant a fresh day.
3445
+ * / ($10.00 a day, as the owner ruled).⟩ Takes effect on the next payment, counted against what was
3446
+ * / ALREADY spent today (the total is kept whether or not a ceiling is set), so setting a ceiling at
3447
+ * / noon does not grant a fresh day.
2598
3448
  * /
2599
3449
  * / Unlike `setSpendPolicy`, this does NOT auto-approve pending requests it now covers — a request
2600
3450
  * / held by the ceiling waits for `approveRequest`, or the caller retries against the new ceiling.
@@ -2604,8 +3454,12 @@ export interface Engram {
2604
3454
  * / The record entry `spend.setCeiling` carries the new AND the previous value, so a widening is
2605
3455
  * / distinguishable from a tightening afterwards — the reason `spend.setPolicy` records its limits.
2606
3456
  * / Not blocked by a payments freeze, like `setSpendPolicy`: setting a limit moves no money.
3457
+ * / ⟨2026-11-04, the agent-conversion build⟩ What counts against the ceiling: x402 payments, an agent's
3458
+ * / conversion of the engram's balance, and the key file's Convert in an engram opened through another
3459
+ * / (`getSpendCeiling`'s note). Removing the ceiling does NOT free agent conversions: they keep their own
3460
+ * / bound, one in any 24 hours (`agentConvertAtNs`).
2607
3461
  */
2608
- setSpendCeiling: ActorMethod<[[] | [bigint]], Result_1>;
3462
+ setSpendCeiling: ActorMethod<[[] | [bigint]], Result_2>;
2609
3463
  /**
2610
3464
  * / Set this engram's spending caps.
2611
3465
  * /
@@ -2617,7 +3471,7 @@ export interface Engram {
2617
3471
  * / the escalation an agent starts when it hits a limit, and without it the queue is a place
2618
3472
  * / requests go to expire.
2619
3473
  */
2620
- setSpendPolicy: ActorMethod<[SpendingPolicy], Result_1>;
3474
+ setSpendPolicy: ActorMethod<[SpendingPolicy], Result_2>;
2621
3475
  /**
2622
3476
  * / Owner-only: set YOUR OWN safety rails on the funding path — a per-top-up ckUSDC ceiling and a
2623
3477
  * / minimum gap between top-ups. Read them back with `getTopUpLimits`.
@@ -2629,7 +3483,7 @@ export interface Engram {
2629
3483
  * /
2630
3484
  * / The cooldown defaults to five minutes. `cooldownSeconds = 0` removes the gap entirely, which
2631
3485
  * / is a real choice and not an error.
2632
- * / ⟨API-105, 2026-08-24 — v3 phase X3⟩ ONE RECORD, NOT TWO ADJACENT NATS. This took
3486
+ * / ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ ONE RECORD, NOT TWO ADJACENT NATS. This took
2633
3487
  * / `(newMaxCkusdcE6s : Nat, cooldownSeconds : Nat)` — the documented swap class, and a live one:
2634
3488
  * / the suite calls `setTopUpLimits(10_000_000n, 300n)`, and a caller who transposes those gets a
2635
3489
  * / 300-e6 cap with a 116-DAY cooldown. Candid matches positionally and both are `nat`, so the
@@ -2639,14 +3493,14 @@ export interface Engram {
2639
3493
  * / `{ cooldownSeconds; maxCkusdcE6s }`. Setter and getter now share one shape, so read-modify-
2640
3494
  * / write is expressible and neither side can drift from the other without the compiler saying so.
2641
3495
  */
2642
- setTopUpLimits: ActorMethod<[{ cooldownSeconds: bigint; maxCkusdcE6s: bigint }], Result_1>;
3496
+ setTopUpLimits: ActorMethod<[{ cooldownSeconds: bigint; maxCkusdcE6s: bigint }], Result_2>;
2643
3497
  /**
2644
3498
  * / Owner sets the World ID app_id + action + rp_id from their World Developer Portal (rp_id appears
2645
3499
  * / after "Enable World ID 4.0" on a production app). The action MUST be configured there with
2646
3500
  * / max_verifications = Unlimited (idempotent /verify → survives IC consensus). After setting this,
2647
3501
  * / register getWorldIdRpSignerAddress() as the rp_id's signer address in the Portal.
2648
3502
  */
2649
- setWorldIdConfig: ActorMethod<[string, string, string], Result_1>;
3503
+ setWorldIdConfig: ActorMethod<[string, string, string], Result_2>;
2650
3504
  /**
2651
3505
  * / Submit a verified-human proof: the IDKitResult from the frontend's World ID flow, forwarded
2652
3506
  * / VERBATIM (compact JSON, as JSON.stringify emits) to World's /api/v4/verify/{rp_id} over an HTTPS
@@ -2657,16 +3511,24 @@ export interface Engram {
2657
3511
  * / (selfie is farmable, passport/mnc are document identity — a different tier). Sets worldIdVerified
2658
3512
  * / and stores the result ONLY on a real verification success — never self-asserted.
2659
3513
  */
2660
- setWorldIdProof: ActorMethod<[string, string], Result_1>;
3514
+ setWorldIdProof: ActorMethod<[string, string], Result_2>;
2661
3515
  /**
2662
3516
  * / Sign a registered type. ONE call, owner-only, freeze-gated — the delay lives on registration
2663
- * / (D2), never here: an emergency withdrawal must not need two owner round-trips.
3517
+ * / (the typed-data design of 2026-08-04), never here: an emergency withdrawal must not need two owner round-trips.
2664
3518
  * /
2665
- * / ⟨0.16.0⟩ PERSISTS beside the market's `sysSignEip712` (census row 177, ruled). The owner does
3519
+ * / ⟨0.16.0⟩ PERSISTS beside the market's `sysSignEip712` (ruled in the 0.16.0 interface plan). The owner does
2666
3520
  * / not lose the ability to sign because a marketplace gained it, and the two share every control
2667
3521
  * / below the caller gate.
3522
+ * /
3523
+ * / ⟨2026-11-02, the owner's ruling to take the recommended answers (the sign-in "approves trading keys")
3524
+ * / — the child build's withdrawal-pinning step⟩ In an engram opened through another, a type named
3525
+ * / `HyperliquidTransaction:ApproveAgent` (`Eip712Policy.childSignInOnlyToSign`) is signed by the
3526
+ * / sign-in alone: the key file is refused it by name, and the sign-in may sign it (as the owner, on
3527
+ * / the record). Every other type is the key file's to sign, as before. An access check beside the
3528
+ * / owner gate, keyed by the registered NAME, before any of `eip712SignFor`'s eight checks; a first
3529
+ * / engram is untouched (its owner is its own sign-in).
2668
3530
  */
2669
- signEip712: ActorMethod<[Uint8Array | number[], Array<[string, Eip712Value]>], Result_4>;
3531
+ signEip712: ActorMethod<[Uint8Array | number[], Array<[string, Eip712Value]>], Result_5>;
2670
3532
  /**
2671
3533
  * / Sign the engram's own ERC-8004 registration tx for client-side broadcast: the engram signs, the client
2672
3534
  * / broadcasts and keeps the resulting registration id.
@@ -2675,15 +3537,15 @@ export interface Engram {
2675
3537
  * / 2026-08-17; `registerAgent` — the engram method that broadcast the registration itself — left
2676
3538
  * / the candid surface in commit d25b53b, so the comparison had outlived its other term. The
2677
3539
  * / saving was real and is now simply the shape of this method: no RPC outcall, no receipt poll.
2678
- * / ⟨API-105, 2026-08-24 — v3 phase X3⟩ ONE REQUEST RECORD, not three adjacent nats.
3540
+ * / ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ ONE REQUEST RECORD, not three adjacent nats.
2679
3541
  * /
2680
- * / ⟨Ruling R-B3⟩ This method KEEPS. Census row 309 dispositions it `die` ("test-only; folds into
2681
- * / signEip712 + registered type") and row 311 records the owner's answer: RULED 2026-08-20 —
3542
+ * / ⟨The owner's ruling to keep it⟩ This method KEEPS. The 0.16.0 interface plan dispositions it `die`
3543
+ * / ("test-only; folds into signEip712 + registered type") and records the owner's answer: RULED 2026-08-20 —
2682
3544
  * / KEEP, ERC-8004 stays. Both halves of the `die` rationale fail at the site: it is not
2683
3545
  * / test-only (a downstream web client's billing page calls it), and it is not a shipped customer
2684
3546
  * / capability either — that panel sits behind `evmBilling: { mode: 'off' }` in both the flag
2685
3547
  * / defaults and the shipped config, and its own dialog says the signature is dormant and not
2686
- * / broadcastable. It is a real surface in a disabled state, which is neither thing the census
3548
+ * / broadcastable. It is a real surface in a disabled state, which is neither thing the plan's
2687
3549
  * / row claimed.
2688
3550
  * /
2689
3551
  * / THE SWAP CLASS, and here it is three-deep: `nonce`, `maxFeePerGas` and `maxPriorityFeePerGas`
@@ -2706,16 +3568,16 @@ export interface Engram {
2706
3568
  maxPriorityFeePerGas: bigint;
2707
3569
  },
2708
3570
  ],
2709
- Result_9
3571
+ Result_10
2710
3572
  >;
2711
3573
  /**
2712
3574
  * / Sign an EIP-3009 authorization for x402 payment. Agent-accessible.
2713
3575
  * / Client probes the URL, extracts chain/token/recipient/amount from the 402, and calls this.
2714
3576
  * / Canister signs → returns header → client retries with header.
2715
3577
  * /
2716
- * / ⟨0.16.0⟩ PERSISTS beside the market's `sysSignX402Payment` (census row 177, ruled). An agent
3578
+ * / ⟨0.16.0⟩ PERSISTS beside the market's `sysSignX402Payment` (ruled in the 0.16.0 interface plan). An agent
2717
3579
  * / with an x402 rail does not lose it because a marketplace gained one, and both run the same body.
2718
- * / ⟨API-105, 2026-08-24 — v3 phase X3⟩ ONE REQUEST RECORD, not eight positional arguments.
3580
+ * / ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ ONE REQUEST RECORD, not eight positional arguments.
2719
3581
  * /
2720
3582
  * / THE HAZARD IS FUNDS MISDIRECTION, and it is the sharpest case in this batch. `tokenAddress`
2721
3583
  * / and `recipient` were ADJACENT and both `Text`. Candid matches positionally, so transposing
@@ -2730,56 +3592,44 @@ export interface Engram {
2730
3592
  * / destructured on entry rather than threaded through — the diff is the signature and this line,
2731
3593
  * / which is what makes a reshape of a money path reviewable.
2732
3594
  */
2733
- signX402Payment: ActorMethod<
2734
- [
2735
- {
2736
- tokenVersion: string;
2737
- tokenAddress: string;
2738
- approvalId: [] | [string];
2739
- recipient: string;
2740
- rationale: [] | [string];
2741
- tokenName: string;
2742
- chainId: bigint;
2743
- amount: bigint;
2744
- },
2745
- ],
2746
- Result_3
2747
- >;
2748
- /**
2749
- * / Self-heal: if the registry's spawn-time push was missed, the owner pulls the number from
2750
- * / the spawning registry. Idempotent; fails closed if the registry has no record.
2751
- */
2752
- syncEngramNumber: ActorMethod<[], Result_8>;
3595
+ signX402Payment: ActorMethod<[X402SignRequest], Result_4>;
2753
3596
  /**
2754
- * / Genesis seed — the atomic "spawn only when there's real content" primitive. The spawning
2755
- * / REGISTRY pushes the owner's first real memory immediately after install, so a canister is
2756
- * / never spawned holding nothing (see the registry's `provisionEngram` optional genesis).
3597
+ * / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ A GUARDIAN STEPS DOWN: the caller ends their own
3598
+ * / guardianship of this engram. It removes a power from the one who holds it and grants none.
3599
+ * / Before, only the owner could remove a guardian, so one who wanted out could only stop watching
3600
+ * / without anyone knowing — worse than an honest exit on the record.
2757
3601
  * /
2758
- * / Gated `spawnedBy`-only and ONE-SHOT: it refuses once any file exists, so it can seed and never
2759
- * / overwrite. Unlike the owner-only `seedMemory` placeholder this is REAL owner content, so it
2760
- * / IS counted as an owner write (`firstWriteAt`, `totalMemoryWrites`) and is authored by the
2761
- * / OWNER rather than by the registry principal that called it. It never touches the
2762
- * / agent metrics.
3602
+ * / WHO: anyone holding a guardian record here, `#Pending` or `#Active`; never refused for the
3603
+ * / record's state. The owner is refused by name (`People.OWNER_IS_NO_GUARDIAN`: their way is
3604
+ * / `removeGuardian`); an agent or a stranger is `#NotFound` (`People.NOT_A_GUARDIAN`, a fact about
3605
+ * / the caller told to the caller, as `resignAgent` does); the anonymous caller is refused.
2763
3606
  * /
2764
- * / ⚠ THE PAYLOAD IS `Nat` AND MUST STAY `Nat`, which is a constraint on any client of this
2765
- * / method rather than an internal detail. Its only caller is the registry, over an
2766
- * / inter-canister boundary, through a hand-declared actor type — and the registry is ROUTINELY a
2767
- * / different version from the engram template it is seeding: it upgrades before the fleet does,
2768
- * / and during a transition it can serve a template older than itself. A return-type change here
2769
- * / breaks genesis provisioning across that skew. That is measured, not predicted: the registry
2770
- * / trapped with "IDL error: unexpected IDL type when parsing Nat" while seeding an engram built
2771
- * / at the staging tag. A receipt would buy nothing anyway — the caller does `ignore await`.
3607
+ * / WHAT IT RECORDS: one `guardian.stepDown` entry under `#Guardian`
3608
+ * / (`principal=<key> was=active|pending name=<name>`). Being a `guardian.*` operation it reaches
3609
+ * / the owner's and the other guardians' alerts in the #guardian class, on by default, and the
3610
+ * / guardian who left gets one farewell delivery before their channel goes (the drain's lazy
3611
+ * / cleanup in `drainActionAlerts`, as for a removed guardian).
2772
3612
  * /
2773
- * / ⚠ ORDERING: upload the engram TEMPLATE first, then upgrade the registry. The reverse leaves a
2774
- * / window where a spawn seeds an old-shape engram with a new-shape expectation; the reply fails
2775
- * / to decode and `provisionEngram` dies on a trap its own `try/catch` cannot reach (ADR-0001),
2776
- * / failing the WHOLE SPAWN rather than just the seed.
3613
+ * / WHAT IT LEAVES: a brake this guardian pulled stays on — lifting one is the owner's; their
3614
+ * / disputes stay on the record. Like `removeGuardian`, it is not terminal: the owner may invite
3615
+ * / the same person again.
3616
+ */
3617
+ stepDownAsGuardian: ActorMethod<[], Result_2>;
3618
+ /**
3619
+ * / The key file stores the sealed copy of its own key — once, right after the engram is opened,
3620
+ * / sealed by the owner kit for the sign-in named at birth. Refused in a first engram, when no
3621
+ * / sign-in is seated (nobody could open it), when a copy is already held (set-once: a thief holding
3622
+ * / the same file cannot overwrite the honest copy; a later sign-in's copy arrives through
3623
+ * / `setOwnerSignIn`'s re-seal or `acceptSignIn`), and for an empty or oversized blob
3624
+ * / (`OwnerSignIn.storeRefusal`). The engram stamps whom the copy is for from its own sign-in — the
3625
+ * / caller never names it. Not blocked by a freeze: storing a recovery path loosens nothing.
3626
+ * / Named caller: the owner kit, signed by the agent's lasting key, right after it opens the engram.
2777
3627
  */
2778
- sysApplyGenesisSeed: ActorMethod<[string, Uint8Array | number[]], Result_8>;
3628
+ storeKeyBackup: ActorMethod<[Uint8Array | number[]], Result_2>;
2779
3629
  /**
2780
3630
  * / OWNER force-close, for a session the payer abandoned.
2781
3631
  * /
2782
- * / ⟨R1b, ruled 2026-08-26: owner-gated, NO guardian.⟩ It moves someone else's money, and only ever
3632
+ * / ⟨ruled 2026-08-26: owner-gated, NO guardian.⟩ It moves someone else's money, and only ever
2783
3633
  * / BACK TO THEM — the destination is the session's own payer and is not caller-influenced, so the
2784
3634
  * / guardian ceremony that guards destination changes buys nothing here and would strand payers on
2785
3635
  * / engrams that have no guardian.
@@ -2797,26 +3647,26 @@ export interface Engram {
2797
3647
  * / and a break after it, and it also moves `packages/client/README.md` and
2798
3648
  * / `docs/AGENT-ONBOARDING.md`, which name it.
2799
3649
  */
2800
- sysForceCloseSession: ActorMethod<[string], Result_1>;
3650
+ sysForceCloseSession: ActorMethod<[string], Result_2>;
2801
3651
  /**
2802
3652
  * / The metrics reader the registry designated reads every engagement's seat weeks, in one call.
2803
3653
  * /
2804
3654
  * / CALLER: the metrics reader the spawning registry named on this engram (`metricsReaderId`), and
2805
3655
  * / nobody else — not the owner (who reads `getAgentSeatWeeks`), an agent, a guardian, the registry,
2806
- * / the biller or the market (ADR-0020: a `sys` method names its caller). Answered only while the
3656
+ * / the biller or the market (the surface-budget rule of 2026-08-16: a `sys` method names its caller). Answered only while the
2807
3657
  * / owner leaves it on (`seatWeeksReadEnabled`, on from birth by the owner's ruling of 2026-10-02).
2808
3658
  * /
2809
3659
  * / WHAT LEAVES: per engagement, the pairing day, the first and last payment-signature days, the
2810
3660
  * / 64-week map and the count — NO root, NO invite, NO amount, recipient or nonce. The reader matches
2811
3661
  * / rows to the registry's engagements by day, so no agent's identity leaves this engram here.
2812
3662
  * /
2813
- * / ⟨L7⟩ UPDATE, NOT QUERY, so a refusal leaves its `sysGetAgentSeatWeeks.denied` row naming the
3663
+ * / ⟨update-for-read⟩ UPDATE, NOT QUERY, so a refusal leaves its `sysGetAgentSeatWeeks.denied` row naming the
2814
3664
  * / caller's class, and an answered read leaves a `sysGetAgentSeatWeeks` row in the read log — the
2815
3665
  * / owner can see every time the reader read. A refusal is `#Refused` naming this method and the
2816
3666
  * / class (`SeatWeeks.readRefusal`), never an empty list: an empty list is a real answer ("no agent
2817
3667
  * / has paired here"), and a fabricated one would be counted as one.
2818
3668
  */
2819
- sysGetAgentSeatWeeks: ActorMethod<[], Result_7>;
3669
+ sysGetAgentSeatWeeks: ActorMethod<[], Result_9>;
2820
3670
  /**
2821
3671
  * / The metrics reader the registry designated reads this engram's paid-rail health, in one call:
2822
3672
  * / the balance and the line it must stay above, the memory that line is computed from, the sessions
@@ -2840,19 +3690,19 @@ export interface Engram {
2840
3690
  * / to freeze. Called by another canister, a query runs replicated and this engram pays for it —
2841
3691
  * / a few million cycles an hour, the cost of being watched.
2842
3692
  */
2843
- sysGetRailHealth: ActorMethod<[], Result_6>;
3693
+ sysGetRailHealth: ActorMethod<[], Result_8>;
2844
3694
  /**
2845
- * / The cashier reads how many signatures this engram has produced, per caller and in total.
3695
+ * / The biller reads how many signatures this engram has produced, per caller and in total.
2846
3696
  * / ⟨2026-09-28⟩ The owner's decision of that date: a running counter on the engram, exported to
2847
- * / the cashier — and to nobody else (`AccessControl.requireCashierForSignatureCounts`).
3697
+ * / the biller — and to nobody else (`AccessControl.requireCashierForSignatureCounts`).
2848
3698
  * /
2849
- * / ONE NEW METHOD ON THE ENGRAM, not a field on the registry's `sysMeterEngram` reply. The study
3699
+ * / ONE NEW METHOD ON THE ENGRAM, not a field on the registry's `sysMeterEngram` reply. An earlier study
2850
3700
  * / ruled out widening that reply to protect deployed clients, and that reason is gone (nothing is
2851
3701
  * / launched; the next release reinstalls every canister). The deciding fact is a different one,
2852
3702
  * / read at the site: `sysMeterEngram` is the REGISTRY's method and answers from the management
2853
3703
  * / canister's `canister_status` — the registry holds no signature count. Carrying the count in its
2854
3704
  * / reply would add a registry-to-engram call inside the meter and a second trust hop between the
2855
- * / counter and the biller. The cashier is already the engram's recognised biller (`cashierId`) and
3705
+ * / counter and the biller. The biller is already the canister this engram recognises (`cashierId`) and
2856
3706
  * / already calls it directly (`sysRecordFeeEvent`), so it reads the count at the source.
2857
3707
  * /
2858
3708
  * / UPDATE, NOT QUERY, so that a refusal leaves its `sysGetSignatureCounts.denied` row: a refused
@@ -2865,10 +3715,30 @@ export interface Engram {
2865
3715
  * / only engrams the registry confirms run published code, and read a lower count than last time as
2866
3716
  * / a reinstall — the reasoning is at `signaturesByCaller`.
2867
3717
  */
2868
- sysGetSignatureCounts: ActorMethod<[], Result_5>;
3718
+ sysGetSignatureCounts: ActorMethod<[], Result_7>;
3719
+ /**
3720
+ * / Note a restart the registry just made: what this engram owes for it, the floor a repayment may
3721
+ * / not go under, and until when to keep its timers quiet.
3722
+ * /
3723
+ * / CALLER: the registry that spawned this engram, from inside its owner's `restartMyStoppedEngram`,
3724
+ * / and nobody else (the surface-budget rule: a `sys` method names its caller) — the same authority as `sysSetBillerId`. The owner's next conversion
3725
+ * / that lands pays the loan back first. The loan is capped at `RestartRepay.LOAN_MAX_CYCLES` and
3726
+ * / the quiet window at 30 minutes, whatever the registry says.
3727
+ * / ⟨2026-11-15, from an adversarial review, beside "and nobody else" above⟩ AND ONLY WHILE THAT
3728
+ * / CALLER IS ONE OF THIS ENGRAM'S CONTROLLERS, asked of the network in this call (`controllerRefusal`): nobody else
3729
+ * / can have started it. A note changes no loan while one is unpaid, takes one new loan and opens one
3730
+ * / quiet window in any 24 hours (`RestartRepay.noteRestart`); a new loan inside the 24 hours is
3731
+ * / refused `#Conflict` with the time to retry after, and the registry's own retry delivers it then.
3732
+ * / REPLIES: `#Refused` (not the registry, or not a controller), `#Conflict` (a loan was taken less
3733
+ * / than 24 hours ago), `#Ok`.
3734
+ */
3735
+ sysNoteRestart: ActorMethod<
3736
+ [{ keepCycles: bigint; loan: bigint; quietUntilNs: bigint }],
3737
+ Result_2
3738
+ >;
2869
3739
  /**
2870
- * / Rent lifecycle notice — how the OWNER (not the agent) learns their subscription lapsed. D6
2871
- * / shipped the handoff but every alarm it added talks to the operating service's watchdog; the
3740
+ * / Rent lifecycle notice — how the OWNER (not the agent) learns their subscription lapsed. The rent-handoff
3741
+ * / work shipped the handoff but every alarm it added talks to the operating service's watchdog; the
2872
3742
  * / doc named the debt plainly: "an owner learns of their own lapse only by looking." This closes
2873
3743
  * / it through the channel the owner already has: the entry lands in the audit log under `rent.*`,
2874
3744
  * / ActionAlerts classifies that as #money (default ON), and the drain delivers it to the owner's
@@ -2878,7 +3748,7 @@ export interface Engram {
2878
3748
  * / OBSERVES the transition, so it is the only thing that can report it. The state whitelist is
2879
3749
  * / closed — this is a lifecycle feed, not a free-text push surface into the owner's audit chain.
2880
3750
  */
2881
- sysNotifyRentLifecycle: ActorMethod<[string, string], Result_1>;
3751
+ sysNotifyRentLifecycle: ActorMethod<[string, string], Result_2>;
2882
3752
  /**
2883
3753
  * / ⟨0.16.0⟩ `getWalletActivation()` DELETED — folded to `about().walletActivatedAtNs`, with its
2884
3754
  * / custody-posture rationale carried onto the field. "Can this thing hold money" is a question a
@@ -2886,16 +3756,16 @@ export interface Engram {
2886
3756
  * / ⟨0.16.0, sys tier⟩ THE MARKET TELLING CUSTODY, which is the half of the wallet-activation
2887
3757
  * / story the engram cannot see for itself.
2888
3758
  * /
2889
- * / B1 moved the storefront to the market, so listing an endpoint — a seller offering to be paid —
3759
+ * / The 0.16.0 split moved the storefront to the market, so listing an endpoint — a seller offering to be paid —
2890
3760
  * / happens on a canister this one does not observe. `walletActivatedAt` exists to raise a custody
2891
3761
  * / decision (a wallet-bearing engram is sovereign-by-default and its owner has a claimSovereignty
2892
3762
  * / still to complete), and a seller who has never derived an EVM address would have gone
2893
3763
  * / unstamped forever. That is the under-reporting direction, which is the harmful one: a missing
2894
3764
  * / flag retires a decision that is still pending.
2895
3765
  * /
2896
- * / ONE METHOD, NOT A FAMILY (L6). The other surface the old comment named — opening a payment
2897
- * / session — is NOT here and is not an omission: measured at the market 2026-08-20, `openSession`'s
2898
- * / caller is a BUYER, and a buying engram signs with a key it derived through `getEvmAddress`,
3766
+ * / ONE METHOD, NOT A FAMILY (every method has a tier and a named caller). The other surface the old comment
3767
+ * / named — opening a payment session — is NOT here and is not an omission: measured at the market 2026-08-20,
3768
+ * / `openSession`'s caller is a BUYER, and a buying engram signs with a key it derived through `getEvmAddress`,
2899
3769
  * / which stamps. It is already marked before it can pay. Adding a case for it would be surface
2900
3770
  * / bought for a gap that does not exist.
2901
3771
  * /
@@ -2912,37 +3782,38 @@ export interface Engram {
2912
3782
  * / the origin: only the configured market can pass that value, so the line cannot be produced by
2913
3783
  * / any other caller.
2914
3784
  */
2915
- sysNotifyWalletActivity: ActorMethod<[string], Result_1>;
3785
+ sysNotifyWalletActivity: ActorMethod<[string], Result_2>;
2916
3786
  /**
2917
- * / The rent RECEIPT seam (B2): the cashier tells this engram that money moved on its behalf, and
2918
- * / the engram appends a `fee.recorded` line to its own audit chain. It computes nothing.
3787
+ * / The rent RECEIPT seam (rent is the biller's; the engram keeps receipts): the biller tells this engram
3788
+ * / that money moved on its behalf, and the engram appends a `fee.recorded` line to its own audit chain. It
3789
+ * / computes nothing.
2919
3790
  * /
2920
3791
  * / ⚠ GATED TO TWO PRINCIPALS AND NEITHER IS THE OWNER — the SPAWNING REGISTRY or the CONFIGURED
2921
3792
  * / CASHIER. An owner cannot write their own fee receipts, which is the point: a receipt an owner
2922
- * / could forge is not evidence. `getBillerId` publishes which cashier this engram accepts, so the
3793
+ * / could forge is not evidence. `getBillerId` publishes which biller this engram accepts, so the
2923
3794
  * / same fact is checkable from outside.
2924
3795
  * /
2925
- * / This is the whole of what B2 left on the engram. Entitlement, custody and fee math live on the
2926
- * / cashier; here there is an append-only record and no arithmetic — so a disagreement between the
2927
- * / two is visible rather than reconciled silently.
2928
- * / ⟨API-105/ARCH-108, 2026-08-24 — v3 phase X3⟩ ONE FEE-EVENT RECORD, not three positional
2929
- * / arguments. ARCH-108 records that the census prescribed this fold and it "was refused for a
3796
+ * / This is the whole of what moving rent to the biller left on the engram. Entitlement, custody and
3797
+ * / fee math live on the biller; here there is an append-only record and no arithmetic — so a
3798
+ * / disagreement between the two is visible rather than reconciled silently.
3799
+ * / ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ ONE FEE-EVENT RECORD, not three positional
3800
+ * / arguments. The audit records that the interface review prescribed this fold and it "was refused for a
2930
3801
  * / wire-break reason the ruling voids", with the instruction to execute it or ratify
2931
3802
  * / positional-forever with a dated note — "silence spends the window". Executed.
2932
3803
  * /
2933
3804
  * / The argument for a record here is EVOLUTION, not transposition: unlike `setTopUpLimits`'s two
2934
3805
  * / adjacent nats, these three types differ, so a swap would not type-check. What positional
2935
3806
  * / arguments cost is the next field. A fee event is exactly the shape that grows one — token,
2936
- * / amount, rate — and ADR-0018's rule is that an INBOUND record gains optional fields forever
3807
+ * / amount, rate — and the interface-evolution rule (2026-08-16) is that an INBOUND record gains optional fields forever
2937
3808
  * / while an argument LIST cannot gain anything without breaking every caller at once.
2938
3809
  * /
2939
- * / ⚠ ALL FOUR CALLERS MOVE IN THE SAME CHANGE, and this is ADR-0001's fatal direction: three
2940
- * / inline hand-IDLs in the cashier and one in the registry declare this method's argument shape
3810
+ * / ⚠ ALL FOUR CALLERS MOVE IN THE SAME CHANGE, and this is the fatal direction of the client-subset rule: three
3811
+ * / inline hand-IDLs in the biller and one in the registry declare this method's argument shape
2941
3812
  * / structurally. Every one of them sits inside `try { … } catch (_e) {}`, which reads as
2942
3813
  * / containment and is not: a reply-decode mismatch calls `ic0.trap` INSIDE the caller's own
2943
3814
  * / callback, and Motoko's `catch` sees rejects, never traps. That is the failure that took
2944
3815
  * / production monitoring dark for ~33h. The ENGRAM WASM MUST SHIP BEFORE its callers, and
2945
- * / `check-didc-compat` is suspended for the cut, so nothing mechanical will catch a wrong order.
3816
+ * / the interface-compatibility gate is suspended for the cut, so nothing mechanical will catch a wrong order.
2946
3817
  */
2947
3818
  sysRecordFeeEvent: ActorMethod<
2948
3819
  [
@@ -2952,14 +3823,100 @@ export interface Engram {
2952
3823
  scheduleVersion: [] | [string];
2953
3824
  },
2954
3825
  ],
2955
- Result_1
3826
+ Result_2
3827
+ >;
3828
+ /**
3829
+ * / ⟨2026-11-04, the owner's ruling: a marketplace sale is paid into the selling engram's own
3830
+ * / wallet, and the engram writes each sale to its record⟩ THE MARKET WRITING A SALE TO THIS ENGRAM'S
3831
+ * / RECORD, after it has paid this engram's own account (ckUSDC) or address (another chain). The
3832
+ * / money does not pass through here and nothing here moves any: a ledger account needs no running
3833
+ * / canister, so the sale is paid whatever state this engram is in, and this method only writes the
3834
+ * / line that says so — one `market.sale` row per sale, its details from `SaleNotice.details`.
3835
+ * /
3836
+ * / GATED TO THE CONFIGURED MARKET (`AccessControl.requireMarketSale`), the pointer the spawning
3837
+ * / registry set once (`sysSetMarketId`). Neither the owner nor an agent may write a sale row: a
3838
+ * / receipt an owner could write is a receipt an owner could forge.
3839
+ * /
3840
+ * / IDEMPOTENT ON THE RECEIPT ID. The market retries a notice it could not deliver (this engram out
3841
+ * / of compute, upgrading, stopped), and a retry of one that did land must learn it succeeded: a
3842
+ * / repeat answers `#Ok` and writes nothing — no row, no denial row (`sysNotifyWalletActivity`'s
3843
+ * / contract). The receipt ids live in `saleReceiptsStable`.
3844
+ * /
3845
+ * / IT AWAITS NOTHING, deliberately, and test/market-route-wiring.test.ts rule E3 holds that: no
3846
+ * / outgoing call means nothing to count under wiring rule 20, and NO WAKE DOOR — a sale brings
3847
+ * / dollars, not compute, so a paused engram's wake would find no room on every engram that is
3848
+ * / actually paused (a design question, defaulted to "wakes nothing unless the owner objects").
3849
+ * /
3850
+ * / NOT GATED ON a guardian's payment freeze (that stops this engram's own signing — money out;
3851
+ * / `sysRecordFeeEvent` is not freeze-gated either), on `pauseWrites` (memory writes), or on the
3852
+ * / owner's custody state. A receipt an owner could block is a receipt an owner could hide.
3853
+ * /
3854
+ * / It also stamps `walletActivatedAt` ("market-sale"): money landing in this engram's account IS
3855
+ * / the wallet-bearing event, and it covers services, which the market's listing notice never did.
3856
+ * / The listing notice (`sysNotifyWalletActivity`) stays, as ruled 2026-08-20; whether to retire it
3857
+ * / is the owner's question.
3858
+ * /
3859
+ * / ⟨2026-11-04, the owner's ruling that a sale's record line waits until a market is set, beside the
3860
+ * / gate paragraph above⟩ NO MARKET SET YET IS "NOT YET", NOT A REFUSAL. With `marketId` null the
3861
+ * / gate's refusal is answered `#Unavailable`, and the market PARKS the notice (it drops a sale's line
3862
+ * / on any other `#Err` at once — the defect this closes: the money landed and the line was lost for
3863
+ * / good). `marketId` is not final: the registry sets it later (`sysSetMarketId`), and then
3864
+ * / `retrySaleNotices` or the seller's next `registerSeller` writes the line; the market's 30-day age
3865
+ * / cap ends the wait. That arm writes NO `sysRecordSale.denied` row: nothing was denied, and
3866
+ * / `retrySaleNotices` is open to any caller, so a row per press would be spam on the owner's read
3867
+ * / log. A caller that is not the configured market, once one is set, is still `#Refused` with its
3868
+ * / row, unchanged. WHAT WOULD MAKE THIS WRONG: a `marketId` that can be set to null on purpose (a
3869
+ * / market retired from an engram) — then null would mean "never", and parking for 30 days would hold
3870
+ * / a line nobody can write. Witness: test/market-route/sale-route.test.ts S7 and record-row.test.ts R3.
3871
+ */
3872
+ sysRecordSale: ActorMethod<[SaleNotice], Result_2>;
3873
+ /**
3874
+ * / Give back what a paid security update advanced this engram and the install did not use.
3875
+ * /
3876
+ * / CALLER: the registry that spawned this engram, right after it installed a security update it
3877
+ * / paid for, and nobody else (the surface-budget rule: a `sys` method names its caller). Sends the smallest of: the advance, what this engram holds
3878
+ * / above its balance before the update, and what sits above its 30-day reserve plus send headroom
3879
+ * / (`RestartRepay.giveBack`) — attached to the registry's `sysRepayUpgradeAdvance`, which accepts no
3880
+ * / more than it advanced. The registry writes off what is not returned; nothing is owed after.
3881
+ * / ⟨CORRECTED 2026-10-28, beside "its 30-day reserve" above — the owner's automatic-pause ruling⟩ The reserve is
3882
+ * / this engram's freezing reserve at its own setting (`freezeReservation` = `lineEstimate`), not a
3883
+ * / 30-day figure: about 430B more at a ~305-day setting.
3884
+ * / ⟨2026-10-26, the owner's review choice: "take back only what we added; anything left over goes
3885
+ * / to the 90-day write-off"⟩ The registry now names the ONE advance it is asking for (`advanceId`,
3886
+ * / the one its deposit for this install put on its ledger) and `advance` is that advance's amount
3887
+ * / alone — never the sum of every advance this engram has out. The engram passes the id back to
3888
+ * / `sysRepayUpgradeAdvance` unchanged, and the registry settles that advance only. The engram's own
3889
+ * / caps are unchanged (`RestartRepay.giveBack`). HONEST LIMIT, unchanged by that choice: the engram cannot
3890
+ * / tell its owner's top-up from the unused advance, so when the install used part of the advance and
3891
+ * / the owner added compute meanwhile, up to the part the install used can still come from the
3892
+ * / owner's top-up (the cap is the advance, not its unused part).
3893
+ * / ⟨2026-11-15, from an adversarial review, beside "and nobody else" and "The engram's own caps are
3894
+ * / unchanged" above⟩ THE CAPS CHANGED, and the caller's figures are upper bounds only. Answered
3895
+ * / once per upgrade this engram saw, within 30 minutes of it (`upgradeSeenAtNs`); only to a caller
3896
+ * / that is one of its controllers, asked of the network in this call (`controllerRefusal`); never more than
3897
+ * / 320.005B (`RestartRepay.ADVANCE_MAX_CYCLES`); and never taking this engram under its own
3898
+ * / signing floor (`RestartRepay.aboveFloor`) — was line + 0.1T, which is under that floor.
3899
+ * / ⟨CORRECTED 2026-11-15, later, beside "never taking this engram under its own signing floor"
3900
+ * / above⟩ That rule returned 0 to every registry that had really paid: a paid engram is under its
3901
+ * / signing floor by construction (MEASURED: 138.66B advanced, 0 returned). The floor is now
3902
+ * / `RestartRepay.giveBackFloor`: an update never leaves this engram lower than it was before it.
3903
+ * / One that could sign before the update can sign after the give-back; one already under its
3904
+ * / signing floor returns what was advanced and no more, never under its reserve and send headroom.
3905
+ * / The balance before is the caller's figure; RestartRepay.mo's header says what a controller that
3906
+ * / lies about it can take (at most the cap, once per real upgrade, never below reserve + headroom).
3907
+ * / RestartRepay.mo's header says what a controller can still do. The record line gains `left=`:
3908
+ * / what actually left, beside the registry's `returned=`.
3909
+ */
3910
+ sysReturnUpgradeAdvance: ActorMethod<
3911
+ [{ balanceBefore: bigint; advanceId: bigint; advance: bigint }],
3912
+ Result_6
2956
3913
  >;
2957
3914
  /**
2958
3915
  * / Point this engram at the biller that converts its tokens → cycles. Settable, not hardcoded:
2959
3916
  * / coupling is by principal id, so the same wasm runs against any deployment's biller.
2960
3917
  * /
2961
- * / ⟨0.16.0, B2⟩ Renamed from `setCashierId`, and NARROWED to the spawning registry (census row
2962
- * / 266, ruled). Two changes, for two reasons:
3918
+ * / ⟨0.16.0, rent is the biller's; the engram keeps receipts⟩ Renamed from `setCashierId`, and NARROWED
3919
+ * / to the spawning registry (ruled in the 0.16.0 interface plan). Two changes, for two reasons:
2963
3920
  * / · "cashier" is a PLATFORM word and this is the OSS wire. `biller` names the role, not the
2964
3921
  * / product that fills it.
2965
3922
  * / · The write is now sys-tier. It previously accepted the OWNER as well, and that second
@@ -2971,14 +3928,47 @@ export interface Engram {
2971
3928
  * / nobody but the spawning registry can fix it. That refusal therefore names the real remedy
2972
3929
  * / rather than telling an owner to run a call they can no longer make.
2973
3930
  */
2974
- sysSetBillerId: ActorMethod<[Principal], Result_1>;
3931
+ sysSetBillerId: ActorMethod<[Principal], Result_2>;
2975
3932
  /**
2976
- * / One-shot assignment of the spawn ordinal — callable ONLY by the spawning registry, ONLY
2977
- * / while unset. Neither the owner nor any later registry can change an assigned number.
3933
+ * / Give this engram its BIRTH CHAIN: its ancestors' birth records and its own, root first, its own
3934
+ * / last ⟨2026-10-26, the owner's lineage rulings: each engram keeps its birth record and its ancestors'
3935
+ * / copies, and the registry certifies each record's fingerprint⟩.
3936
+ * /
3937
+ * / CALLER: the registry that spawned this engram, from its birth push or its sweep's retry, and
3938
+ * / nobody else (the surface-budget rule: a `sys` method names its caller) — the same authority as `sysSetBillerId`, through the named gate
3939
+ * / `AccessControl.requireSpawningRegistry`. ⚠ THE REGISTRY'S CLIENT DECLARATION IS HAND-WRITTEN
3940
+ * / (`sysSetBirthChain : ([BirthRecord.BirthRecord]) -> async Wire.Result<()>`, in `mintAndPush`): a
3941
+ * / different reply type here traps inside the registry's callback, and a different name leaves every
3942
+ * / newborn without its record, silently retried. test/lineage-wiring.test.ts holds the two equal.
3943
+ * /
3944
+ * / SET ONCE: the same chain again answers `#Ok` and changes nothing (the registry's sweep may re-send
3945
+ * / a push whose reply was lost); a different one is refused `#Conflict`. THE ENGRAM DOES NOT HASH:
3946
+ * / it checks only that the chain ends with its own record. The fingerprints are the registry's to
3947
+ * / certify and the client's `verifyBirthChain` to check.
2978
3948
  */
2979
- sysSetEngramNumber: ActorMethod<[bigint], Result_1>;
3949
+ sysSetBirthChain: ActorMethod<[Array<BirthRecord>], Result_2>;
2980
3950
  /**
2981
- * / Point this engram at the commerce satellite allowed to ask it for signatures. ⟨0.16.0, B1⟩
3951
+ * / Name the origin of the page where this engram's owner approves a connector sign-in.
3952
+ * / ⟨2026-11-08, the owner's ruling that an engram sends sign-ins to its own environment's app⟩
3953
+ * /
3954
+ * / CALLER: the registry that spawned this engram, from its birth push (`pushToNewborn`), and nobody
3955
+ * / else — the same authority as `sysSetMetricsReaderId`, through the named gate
3956
+ * / `AccessControl.requireRegistryNamingConsent`. ⚠ THE REGISTRY'S CLIENT DECLARATION IS HAND-WRITTEN
3957
+ * / (`sysSetConsentOrigin : (Text) -> async Wire.Result<()>`): a different NAME here leaves every
3958
+ * / newborn on the default origin, silently (the push is best-effort and its reject is caught), and a
3959
+ * / different REPLY type traps inside the registry's callback. test/lineage-wiring.test.ts compares the
3960
+ * / two.
3961
+ * /
3962
+ * / `GET /oauth/authorize` then answers 302 to `<origin>/auth/connector?canister=<id>&<the client's
3963
+ * / query>`; never told, it keeps the default origin it always had. An origin `ConsentOrigin.check`
3964
+ * / refuses (not https, a path, a query, a fragment, a user part, uppercase, too long) is `#Invalid`
3965
+ * / and nothing changes. SET ONCE: the same origin again answers `#Ok` and changes nothing; another is
3966
+ * / refused `#Conflict`. Never cleared. Recorded in the chained record (`oauth.sysSetConsentOrigin`).
3967
+ */
3968
+ sysSetConsentOrigin: ActorMethod<[string], Result_2>;
3969
+ /**
3970
+ * / Point this engram at the commerce satellite allowed to ask it for signatures. ⟨0.16.0, commerce moved to
3971
+ * / the market; signing stayed here⟩
2982
3972
  * /
2983
3973
  * / SAME AUTHORITY AS `sysSetBillerId`, and for a stronger reason. That one routes money; this one
2984
3974
  * / confers the capability to ask this canister to sign with its own tECDSA key. Three writers for
@@ -2990,12 +3980,12 @@ export interface Engram {
2990
3980
  * / against a null pointer and their refusals name the registry as the remedy rather than telling
2991
3981
  * / an owner to run a call they cannot make.
2992
3982
  */
2993
- sysSetMarketId: ActorMethod<[Principal], Result_1>;
3983
+ sysSetMarketId: ActorMethod<[Principal], Result_2>;
2994
3984
  /**
2995
3985
  * / Name the metrics reader allowed to read this engram's seat weeks (`sysGetAgentSeatWeeks`).
2996
3986
  * / ⟨2026-10-02, the owner's ruling of that day⟩
2997
3987
  * /
2998
- * / CALLER: the registry that spawned this engram, and nobody else (ADR-0020) — the same authority
3988
+ * / CALLER: the registry that spawned this engram, and nobody else (the surface-budget rule: a `sys` method names its caller) — the same authority
2999
3989
  * / as `sysSetBillerId` and `sysSetMarketId`. The registry calls it once, at spawn, last of its
3000
3990
  * / pushes, with exactly this interface: `sysSetMetricsReaderId : (Principal) -> async
3001
3991
  * / Wire.Result<()>`. ⚠ THAT CLIENT DECLARATION IS HAND-WRITTEN AT THE REGISTRY: a different NAME
@@ -3006,70 +3996,94 @@ export interface Engram {
3006
3996
  * / A CANISTER ONLY: a person's principal, the anonymous principal or the management canister is
3007
3997
  * / refused `#Invalid` and nothing changes — a person named here would be handed this engram's seat
3008
3998
  * / counts. Set or replaced, never cleared: the owner's control is the switch
3009
- * / (`setSeatWeeksReadEnabled`), not the pointer. The chained record entry
3010
- * / (`metrics.sysSetMetricsReaderId`) is the evidence of when the read was granted, and to whom.
3999
+ * / (`setSeatWeeksReadEnabled`), not the pointer.
4000
+ * / ⟨CORRECTED 2026-10-26, the owner's lineage ruling that the market, biller and usage reader are set once
4001
+ * / at birth⟩ "Set or replaced" is no longer true: it is SET ONCE. The same reader again answers `#Ok` and
4002
+ * / changes nothing; another is refused `#Conflict` (`AccessControl.setOnce` says why). Still never cleared. The
4003
+ * / chained record entry (`metrics.sysSetMetricsReaderId`) is the evidence of when the read was granted, and to
4004
+ * / whom.
3011
4005
  */
3012
- sysSetMetricsReaderId: ActorMethod<[Principal], Result_1>;
4006
+ sysSetMetricsReaderId: ActorMethod<[Principal], Result_2>;
3013
4007
  /**
3014
- * / The market asks this engram to sign a registered type — B1's seam, settlement leg. ⟨0.16.0⟩
4008
+ * / The market asks this engram to sign a registered type — the seam where commerce meets signing,
4009
+ * / settlement leg. ⟨0.16.0⟩
3015
4010
  * /
3016
4011
  * / THE ENGRAM DOES NOT TRUST THE MARKET WITH ANYTHING BEYOND "ask". Every control that bounds
3017
4012
  * / what may be signed stays here and is unchanged: the type must already be OWNER-REGISTERED
3018
4013
  * / (the market cannot introduce a shape), its cool-off must have elapsed, its per-type daily cap
3019
4014
  * / still binds, the destination allowlist still fails closed, and a payments freeze still stops
3020
4015
  * / it. What the market supplies is the request; what the engram supplies is the whole policy.
4016
+ * / ⟨2026-10-14⟩ And the type's per-field rules, its own destination list (the destination-list ruling) and
4017
+ * / the signing floor (the typed-data signing-floor ruling) — all in `eip712SignFor`, so they bind the
4018
+ * / market as they bind the owner; a refusal here is on the chained record under the market's caller
4019
+ * / and role.
3021
4020
  * /
3022
4021
  * / That is what "signatures only" means in code, and it is why this method needs no new authority
3023
4022
  * / model: an unregistered typeId is refused for the market exactly as it is for the owner.
4023
+ * /
4024
+ * / ⟨2026-11-02, the child build's withdrawal-pinning step⟩ In an engram opened through another, approving a trading
4025
+ * / key (`HyperliquidTransaction:ApproveAgent`) is refused to the market (`#Refused`): it is signed by
4026
+ * / that engram's sign-in alone, through `signEip712`.
3024
4027
  */
3025
- sysSignEip712: ActorMethod<[Uint8Array | number[], Array<[string, Eip712Value]>], Result_4>;
4028
+ sysSignEip712: ActorMethod<[Uint8Array | number[], Array<[string, Eip712Value]>], Result_5>;
3026
4029
  /**
3027
- * / The market asks this engram to sign an x402 payment — B1's seam, the paid-request leg. ⟨0.16.0⟩
4030
+ * / The market asks this engram to sign an x402 payment — the seam where commerce meets signing, the
4031
+ * / paid-request leg. ⟨0.16.0⟩
3028
4032
  * /
3029
4033
  * / THE MARKET SUPPLIES THE REQUEST; THE ENGRAM SUPPLIES THE POLICY. Every control below the caller
3030
4034
  * / gate is unchanged and still binds: a payments freeze stops it, the recipient must be on the
3031
4035
  * / owner's EVM allowlist if the owner has set one, the per-transaction and per-day caps hold, and
3032
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.
3033
4044
  * /
3034
4045
  * / `#ApprovalPending` is a real answer here, not an error, exactly as it is for an agent: the
3035
4046
  * / market is told the spend needs the owner and can retry with the `approvalId` once granted. A
3036
4047
  * / caller that treats it as a failure will simply never complete a spend the owner would have
3037
- * / allowed — which is the safe direction, and the reason it rides inside `Ok` (L5).
4048
+ * / allowed — which is the safe direction, and the reason it rides inside `Ok` (results spelled Ok/Err).
3038
4049
  * /
3039
4050
  * / READ `x402SignFor`'s declaration before setting a policy for this caller. The cap is ONE bucket
3040
4051
  * / for ALL market traffic; per-seller limits are not expressible in the store it reads.
4052
+ * /
4053
+ * / ⟨2026-11-16⟩ REFUSED UNTIL THE OWNER SETS THAT POLICY. While the owner has set no spending
4054
+ * / policy for the market's principal, this method and `sysSignEip712` sign nothing.
3041
4055
  */
3042
- sysSignX402Payment: ActorMethod<
3043
- [bigint, string, string, bigint, string, string, [] | [string], [] | [string]],
3044
- Result_3
3045
- >;
4056
+ sysSignX402Payment: ActorMethod<[X402SignRequest], Result_4>;
3046
4057
  /**
3047
4058
  * / Write an `alerts.test` entry into the audit log; the drain timer delivers it to the webhook
3048
- * / within ~60s. Owner-only; requires a configured URL so the test can actually go somewhere.
4059
+ * / within ~60s. ⟨2026-10-29, beside "within ~60s"⟩ Within seconds (a minute if a delivery was just
4060
+ * / made). Owner-only; requires a configured URL so the test can actually go somewhere.
3049
4061
  */
3050
- testActionAlert: ActorMethod<[], Result_1>;
4062
+ testActionAlert: ActorMethod<[], Result_2>;
3051
4063
  /**
3052
4064
  * / Guardian test alert — an audited guardian action (`alerts.test`, role Guardian) that every
3053
- * / armed channel (owner + guardians) receives within ~60s. Requires the caller's own channel
4065
+ * / armed channel (owner + guardians) receives within ~60s (⟨2026-10-29⟩ within seconds; a minute if
4066
+ * / a delivery was just made). Requires the caller's own channel
3054
4067
  * / to be armed so the test has somewhere to land for them.
3055
4068
  */
3056
- testGuardianAlert: ActorMethod<[], Result_1>;
4069
+ testGuardianAlert: ActorMethod<[], Result_2>;
3057
4070
  /**
3058
- * / RENAMED from `init` (L2.4). This is the OWNERSHIP-TRANSFER method — the most consequential
3059
- * / owner-facing operation on the canister — and it was named for first-time setup, colliding with
3060
- * / the actor's own `service : (initArgs)`. A reader scanning for "how does ownership move" found
3061
- * / nothing; a reader scanning for `init` found a constructor.
4071
+ * / RENAMED from `init` (a name says what happens, not the mechanism). This is the OWNERSHIP-TRANSFER
4072
+ * / method — the most consequential owner-facing operation on the canister — and it was named for
4073
+ * / first-time setup, colliding with the actor's own `service : (initArgs)`. A reader scanning for
4074
+ * / "how does ownership move" found nothing; a reader scanning for `init` found a constructor.
3062
4075
  * /
3063
4076
  * / Its read counterpart is `listOwnershipTransfers` (was `getOwnershipHistory`), which now shares
3064
4077
  * / the stem — the pair was previously unfindable from either half.
3065
- * / ⟨0.16.0, L1⟩ TWO OF THESE REFUSALS ARE THE FIRST-CLAIM PATH, and they are not authorization.
4078
+ * / ⟨0.16.0, refusals are values, never traps⟩ TWO OF THESE REFUSALS ARE THE FIRST-CLAIM PATH, and
4079
+ * / they are not authorization.
3066
4080
  * /
3067
4081
  * / On an unowned engram there is no owner to refuse anyone, so "caller must set themselves as
3068
4082
  * / owner" is a rule about the ARGUMENT — pass your own principal and it succeeds. `#Invalid` says
3069
4083
  * / retrying with a different argument can work; `#Refused` would tell a first claimant their
3070
4084
  * / standing was the problem, on the one call where nobody has standing yet.
3071
4085
  * /
3072
- * / ⟨2026-09-29, owner ruling follow-up 8 (option A)⟩ A CHANGE OF OWNER HANDS OVER CONTROL OF THE
4086
+ * / ⟨2026-09-29, the owner's control-handover ruling⟩ A CHANGE OF OWNER HANDS OVER CONTROL OF THE
3073
4087
  * / CODE. The new owner becomes a controller of this canister and the former owner stops being one;
3074
4088
  * / the answer says who moved it (`ControlHandover`). Managed: the registry moves it while it
3075
4089
  * / accepts the transfer. Sovereign: the registry answers `#EngramMustMove` and this engram sets
@@ -3079,7 +4093,7 @@ export interface Engram {
3079
4093
  * / engram (no registry) cannot know who controls it and changes the owner only, answering
3080
4094
  * / `#NotHeldHere`. The rules are `src/shared/ControlHandover.mo`'s.
3081
4095
  * /
3082
- * / ⟨2026-09-29, review PR-3: a half-finished change of owner⟩ The registry now MARKS a change of
4096
+ * / ⟨2026-09-29, a review finding: a half-finished change of owner⟩ The registry now MARKS a change of
3083
4097
  * / owner as unfinished from the moment it moves its record until it sees control move. A sovereign
3084
4098
  * / engram therefore reports the move (`sysConfirmOwnershipTransfer`) after setting its own
3085
4099
  * / controllers; until the registry hears it, the registry refuses the new owner's
@@ -3087,13 +4101,34 @@ export interface Engram {
3087
4101
  * / While a transfer is marked unfinished, a transfer to anyone but its would-be owner is refused by
3088
4102
  * / the registry, by name; calling this again with that owner finishes it.
3089
4103
  * /
3090
- * / ⟨2026-09-29, review finding RV-4⟩ THE OWNER NAMING THEMSELVES IS A REPORT, NOT A HAND-ON. It is
4104
+ * / ⟨2026-09-29, a review finding⟩ THE OWNER NAMING THEMSELVES IS A REPORT, NOT A HAND-ON. It is
3091
4105
  * / the way out when the registry did not hear that a sovereign engram moved control: it moves
3092
4106
  * / control to the same owner again and reports it, and it writes NO entry to
3093
4107
  * / `listOwnershipTransfers` (until this day it wrote one from the owner to themselves, a hand-on
3094
4108
  * / that did not happen). The record entry says it was a report. `ControlHandover.isReport`.
3095
- */
3096
- transferOwnership: ActorMethod<[Principal], Result_2>;
4109
+ * /
4110
+ * / ⟨2026-11-15, from an adversarial review, ruled the same day: THE NEW OWNER MUST ACCEPT⟩ NAMING
4111
+ * / SOMEONE ELSE NOW OPENS AN OFFER AND CHANGES NOTHING ELSE. Until this day this one call, made by
4112
+ * / the current owner alone, moved the engram, the registry's record and control of the code to a
4113
+ * / principal who was never asked (`OwnershipOffer.mo` has the measurement). Now it records the
4114
+ * / offer here (`ownershipOffer`), files it at the registry that spawned this engram
4115
+ * / (`sysOfferOwnership`, which moves nothing either) and answers `#Offered` with the expiry
4116
+ * / (`OwnershipOffer.TTL_NS`, 7 days). The owner is still the owner, still controls the code, and
4117
+ * / every agent, guardian and limit is as it was. The hand-over happens when the named principal
4118
+ * / calls `acceptOwnership`, as themselves. A new offer replaces the open one; `cancelOwnershipOffer`
4119
+ * / withdraws it. Refused by the registry's own words when it refuses to file it (nothing is
4120
+ * / recorded here then), and `#Unavailable` when it cannot be reached.
4121
+ * /
4122
+ * / TWO CALLS STILL MOVE AT ONCE, because in both the caller names THEMSELVES, so the consent is
4123
+ * / the call: the first claim of an unowned engram, and the owner's report (above). HOW THE REPORT
4124
+ * / RELATES TO THE OFFER: a report never opens one and never needs one. It is the repair for a
4125
+ * / hand-over that already happened under an acceptance and that the registry did not hear the end
4126
+ * / of; the registry treats it as a retry of a record it has already moved. An engram the registry
4127
+ * / reinstalled after the network erased it comes back owned by the principal the registry records
4128
+ * / and with no offer (the offer was in the erased state); its owner offers again, and the copy the
4129
+ * / registry kept of the old offer ends at its own expiry and cannot move anything by itself.
4130
+ */
4131
+ transferOwnership: ActorMethod<[Principal], Result_3>;
3097
4132
  /**
3098
4133
  * / OWNER-ONLY release of the payment freeze — and the asymmetry with `freezePayments` is the
3099
4134
  * / governance design, not an oversight.
@@ -3107,7 +4142,21 @@ export interface Engram {
3107
4142
  * / So a guardian's freeze is a TRIPWIRE, not a lock — it buys the time it takes the owner to
3108
4143
  * / look, and no more.
3109
4144
  */
3110
- unfreezePayments: ActorMethod<[], Result_1>;
4145
+ unfreezePayments: ActorMethod<[], Result_2>;
4146
+ /**
4147
+ * / Wake this engram's timers after it paused them to save compute near its freezing line. Owner
4148
+ * / only. Refused, by name, below the room the hourly check-in needs; then nothing is armed.
4149
+ * /
4150
+ * / CALLER: the engram's owner, from the owner's app (its status line and its compute page), and
4151
+ * / nobody else (the surface-budget rule: a `sys` method names its caller). ⟨2026-10-28, the owner's
4152
+ * / automatic-pause ruling: "it wakes on the next payment, agent request or your Wake"⟩ The automatic
4153
+ * / doors (the biller's receipt, Convert, an agent's MCP request) wake it when compute lands with
4154
+ * / room; this is the owner's door, for compute that arrived with no receipt (a bare top-up). It
4155
+ * / always reads the engram's own balance (no rate limit, no free filter), so a refusal states what
4156
+ * / the engram measured. Both figures in a refusal are its own READING above its line, which runs ~82B
4157
+ * / below the true figure, so the engram never calls it the gap.
4158
+ */
4159
+ wakeTimers: ActorMethod<[], Result_1>;
3111
4160
  /**
3112
4161
  * / Consensus transform for the World ID /verify outcall. Replicas each call independently, so the raw
3113
4162
  * / response (timestamps, `uses`, request-id headers) is non-deterministic. Collapse it to a single
@@ -3175,6 +4224,17 @@ export interface EnrolmentProof {
3175
4224
  rootPubkey: Uint8Array | number[];
3176
4225
  inviteCode: string;
3177
4226
  }
4227
+ export interface Entry {
4228
+ date: string;
4229
+ path: string;
4230
+ platform: string;
4231
+ lastModifiedAtNs: bigint;
4232
+ }
4233
+ export interface Entry__1 {
4234
+ active: boolean;
4235
+ inactiveReason: [] | [string];
4236
+ grant: { connected: SignIn } | { paired: AgentRecord };
4237
+ }
3178
4238
  export type Error =
3179
4239
  | { Invalid: string }
3180
4240
  | { NotFound: string }
@@ -3202,6 +4262,15 @@ export interface GenesisNote {
3202
4262
  version: string;
3203
4263
  genesisAtNs: bigint;
3204
4264
  }
4265
+ export interface GuardianDispute {
4266
+ about: bigint;
4267
+ atNs: bigint;
4268
+ path: [] | [string];
4269
+ auditId: bigint;
4270
+ version: [] | [bigint];
4271
+ guardian: Principal;
4272
+ reason: string;
4273
+ }
3205
4274
  export interface GuardianPermissions {
3206
4275
  canFreezePayments: boolean;
3207
4276
  canRevokeAgents: boolean;
@@ -3242,6 +4311,21 @@ export interface HttpResponse {
3242
4311
  upgrade: [] | [boolean];
3243
4312
  status_code: number;
3244
4313
  }
4314
+ export interface Ic402Maintenance {
4315
+ revokedGrantsRemoved: bigint;
4316
+ dailySpendRemoved: bigint;
4317
+ more: boolean;
4318
+ runs: bigint;
4319
+ rateLimitRemoved: bigint;
4320
+ lastRunAtNs: bigint;
4321
+ }
4322
+ export interface KeyBackupStatus {
4323
+ matchesSignIn: boolean;
4324
+ copyWaitsWithAsk: boolean;
4325
+ sealed: boolean;
4326
+ sealedFor: [] | [Principal];
4327
+ sealedAtNs: [] | [bigint];
4328
+ }
3245
4329
  export interface KeyNomination {
3246
4330
  key: Principal;
3247
4331
  atNs: bigint;
@@ -3249,7 +4333,7 @@ export interface KeyNomination {
3249
4333
  export interface LogPage {
3250
4334
  firstAvailableSeq: bigint;
3251
4335
  head: Uint8Array | number[];
3252
- page: Page_7;
4336
+ page: Page_10;
3253
4337
  }
3254
4338
  export interface LogPosition {
3255
4339
  reads: bigint;
@@ -3265,6 +4349,19 @@ export interface MemoryByteChunk {
3265
4349
  fileSize: bigint;
3266
4350
  bytes: Uint8Array | number[];
3267
4351
  }
4352
+ export type MemoryEntry =
4353
+ | {
4354
+ decision: { decision: string; rationale: string };
4355
+ }
4356
+ | { preference: string }
4357
+ | { insight: { topic: [] | [string]; content: string } }
4358
+ | {
4359
+ sessionSummary: {
4360
+ date: [] | [string];
4361
+ platform: string;
4362
+ summary: string;
4363
+ };
4364
+ };
3268
4365
  export interface MemoryEviction {
3269
4366
  evictSeq: bigint;
3270
4367
  fromVersion: bigint;
@@ -3285,6 +4382,12 @@ export interface MemoryFile {
3285
4382
  lastModifiedBy: Principal;
3286
4383
  lastModifiedAtNs: bigint;
3287
4384
  }
4385
+ export interface MemoryFileRow {
4386
+ path: string;
4387
+ version: bigint;
4388
+ lastModifiedBy: [] | [Principal];
4389
+ lastModifiedAtNs: bigint;
4390
+ }
3288
4391
  export interface MemoryHistory {
3289
4392
  evictions: Array<MemoryEviction>;
3290
4393
  oldestRetainedVersion: bigint;
@@ -3375,9 +4478,7 @@ export interface MemoryMaintainStatus {
3375
4478
  refusedQuota: string;
3376
4479
  more: boolean;
3377
4480
  lastEvictions: bigint;
3378
- lastScrubbed: bigint;
3379
4481
  lastMaintainAtNs: [] | [bigint];
3380
- totalFindings: bigint;
3381
4482
  refused: boolean;
3382
4483
  }
3383
4484
  export interface MemoryRangeExport {
@@ -3408,6 +4509,13 @@ export interface MemoryVersionSummary {
3408
4509
  size: bigint;
3409
4510
  version: bigint;
3410
4511
  }
4512
+ export interface Offer {
4513
+ to: Principal;
4514
+ expiresAtNs: bigint;
4515
+ offeredAtNs: bigint;
4516
+ }
4517
+ export type Outcome =
4518
+ { MovedByRegistry: null } | { Offered: Offer } | { NotHeldHere: null } | { MovedByEngram: null };
3411
4519
  export interface OwnerConsole {
3412
4520
  pendingApprovalCount: bigint;
3413
4521
  memoryKeyEpoch: bigint;
@@ -3425,6 +4533,15 @@ export interface OwnerRow {
3425
4533
  produced: bigint;
3426
4534
  firstPaymentDay: [] | [bigint];
3427
4535
  }
4536
+ export interface OwnerSignInView {
4537
+ askedAtNs: [] | [bigint];
4538
+ openedFrom: [] | [Principal];
4539
+ declinedAtNs: [] | [bigint];
4540
+ callerIsSignIn: boolean;
4541
+ declinedBy: [] | [Principal];
4542
+ callerIsAsked: boolean;
4543
+ ownerSignIn: [] | [Principal];
4544
+ }
3428
4545
  export interface OwnershipTransfer {
3429
4546
  to: Principal;
3430
4547
  atNs: bigint;
@@ -3434,74 +4551,104 @@ export interface OwnershipTransfer {
3434
4551
  export interface Page {
3435
4552
  total: bigint;
3436
4553
  withheld: bigint;
3437
- items: Array<Repudiation>;
4554
+ items: Array<SignIn>;
3438
4555
  }
3439
4556
  export interface Page_1 {
3440
4557
  total: bigint;
3441
4558
  withheld: bigint;
3442
- items: Array<AuditEntry>;
4559
+ items: Array<SellerView>;
3443
4560
  }
3444
4561
  export interface Page_10 {
3445
4562
  total: bigint;
3446
4563
  withheld: bigint;
3447
- items: Array<GuardianRecord>;
4564
+ items: Array<MemoryLogEvent>;
3448
4565
  }
3449
4566
  export interface Page_11 {
3450
4567
  total: bigint;
3451
4568
  withheld: bigint;
3452
- items: Array<{ activeFromNs: bigint; address: string }>;
4569
+ items: Array<MemoryFileRow>;
3453
4570
  }
3454
4571
  export interface Page_12 {
3455
4572
  total: bigint;
3456
4573
  withheld: bigint;
3457
- items: Array<RegisteredType>;
4574
+ items: Array<ExportReceiptRow>;
3458
4575
  }
3459
4576
  export interface Page_13 {
3460
4577
  total: bigint;
3461
4578
  withheld: bigint;
3462
- items: Array<string>;
4579
+ items: Array<GuardianRecord>;
3463
4580
  }
3464
4581
  export interface Page_14 {
3465
4582
  total: bigint;
3466
4583
  withheld: bigint;
3467
- items: Array<CycleSnapshot>;
4584
+ items: Array<GuardianDispute>;
3468
4585
  }
3469
4586
  export interface Page_15 {
3470
4587
  total: bigint;
3471
4588
  withheld: bigint;
3472
- items: Array<CondenseCheckpointRow>;
4589
+ items: Array<Eip712TypeView>;
3473
4590
  }
3474
4591
  export interface Page_16 {
3475
4592
  total: bigint;
3476
4593
  withheld: bigint;
3477
- items: Array<BearerToken>;
4594
+ items: Array<Eip712Destination>;
3478
4595
  }
3479
4596
  export interface Page_17 {
3480
4597
  total: bigint;
3481
4598
  withheld: bigint;
3482
- items: Array<BackupMetadata>;
4599
+ items: Array<string>;
3483
4600
  }
3484
4601
  export interface Page_18 {
3485
4602
  total: bigint;
3486
4603
  withheld: bigint;
3487
- items: Array<{ status: AgentStatus; principal: Principal; name: string }>;
4604
+ items: Array<CycleSnapshot>;
3488
4605
  }
3489
4606
  export interface Page_19 {
3490
4607
  total: bigint;
3491
4608
  withheld: bigint;
3492
- items: Array<AgentRecord>;
4609
+ items: Array<CondenseCheckpointRow>;
3493
4610
  }
3494
4611
  export interface Page_2 {
3495
4612
  total: bigint;
3496
4613
  withheld: bigint;
3497
- items: Array<PurgedAgent>;
4614
+ items: Array<Repudiation>;
3498
4615
  }
3499
4616
  export interface Page_20 {
3500
4617
  total: bigint;
3501
4618
  withheld: bigint;
3502
- items: Array<ActivitySnapshot>;
4619
+ items: Array<BearerToken>;
3503
4620
  }
3504
4621
  export interface Page_21 {
4622
+ total: bigint;
4623
+ withheld: bigint;
4624
+ items: Array<BackupMetadata>;
4625
+ }
4626
+ export interface Page_22 {
4627
+ total: bigint;
4628
+ withheld: bigint;
4629
+ items: Array<{ status: AgentStatus; principal: Principal; name: string }>;
4630
+ }
4631
+ export interface Page_23 {
4632
+ total: bigint;
4633
+ withheld: bigint;
4634
+ items: Array<AgentRecord>;
4635
+ }
4636
+ export interface Page_24 {
4637
+ total: bigint;
4638
+ withheld: bigint;
4639
+ items: Array<AgentSpendRow>;
4640
+ }
4641
+ export interface Page_25 {
4642
+ total: bigint;
4643
+ withheld: bigint;
4644
+ items: Array<Entry__1>;
4645
+ }
4646
+ export interface Page_26 {
4647
+ total: bigint;
4648
+ withheld: bigint;
4649
+ items: Array<ActivitySnapshot>;
4650
+ }
4651
+ export interface Page_27 {
3505
4652
  total: bigint;
3506
4653
  withheld: bigint;
3507
4654
  items: Array<OwnerRow>;
@@ -3509,42 +4656,51 @@ export interface Page_21 {
3509
4656
  export interface Page_3 {
3510
4657
  total: bigint;
3511
4658
  withheld: bigint;
3512
- items: Array<AgentPaymentSignatures>;
4659
+ items: Array<RecordNote>;
3513
4660
  }
3514
4661
  export interface Page_4 {
3515
4662
  total: bigint;
3516
4663
  withheld: bigint;
3517
- items: Array<OwnershipTransfer>;
4664
+ items: Array<AuditEntry>;
3518
4665
  }
3519
4666
  export interface Page_5 {
3520
4667
  total: bigint;
3521
4668
  withheld: bigint;
3522
- items: Array<EngramSessionState>;
4669
+ items: Array<PurgedAgent>;
3523
4670
  }
3524
4671
  export interface Page_6 {
3525
4672
  total: bigint;
3526
4673
  withheld: bigint;
3527
- items: Array<ApprovalRequest>;
4674
+ items: Array<AgentPaymentSignatures>;
3528
4675
  }
3529
4676
  export interface Page_7 {
3530
4677
  total: bigint;
3531
4678
  withheld: bigint;
3532
- items: Array<MemoryLogEvent>;
4679
+ items: Array<OwnershipTransfer>;
3533
4680
  }
3534
4681
  export interface Page_8 {
3535
4682
  total: bigint;
3536
4683
  withheld: bigint;
3537
- items: Array<{ path: string; version: bigint; lastModifiedAtNs: bigint }>;
4684
+ items: Array<EngramSessionState>;
3538
4685
  }
3539
4686
  export interface Page_9 {
3540
4687
  total: bigint;
3541
4688
  withheld: bigint;
3542
- items: Array<ExportReceiptRow>;
4689
+ items: Array<ApprovalRequest>;
3543
4690
  }
3544
4691
  export interface Pairing {
3545
4692
  agent: AgentRecord;
3546
4693
  trackRecord: TrackRecordNotice;
3547
4694
  }
4695
+ export interface PaymentLimits {
4696
+ maxSessionDeposit: [] | [bigint];
4697
+ maxPerDay: [] | [bigint];
4698
+ maxSessionDuration: [] | [bigint];
4699
+ sessionIdleTimeout: [] | [bigint];
4700
+ rateLimitPerMinute: [] | [bigint];
4701
+ maxPerTransaction: [] | [bigint];
4702
+ maxConcurrentSessions: [] | [bigint];
4703
+ }
3548
4704
  export interface PaymentSignature {
3549
4705
  signature: Uint8Array | number[];
3550
4706
  asset: [] | [string];
@@ -3558,9 +4714,25 @@ export interface PaymentSignature {
3558
4714
  export interface PaymentSignatureCounts {
3559
4715
  day: bigint;
3560
4716
  marketplace: [] | [MarketplacePaymentSignatures];
3561
- agents: Page_3;
4717
+ agents: Page_6;
3562
4718
  limit: bigint;
3563
4719
  }
4720
+ export interface PaymentsNow {
4721
+ leftToday: [] | [bigint];
4722
+ largestPayment: [] | [bigint];
4723
+ }
4724
+ export type PaymentsStop =
4725
+ { paymentsBrake: null } | { dailySignatureLimit: null } | { signingFloor: null };
4726
+ export type Plan =
4727
+ | { metadata: Array<Entry> }
4728
+ | { individualCanonical: Array<CanonicalRead> }
4729
+ | { batchOriginal: Array<Entry> };
4730
+ export interface ProfileRead {
4731
+ soul: Result_13;
4732
+ user: Result_13;
4733
+ lessons: Result_13;
4734
+ preferences: Result_13;
4735
+ }
3564
4736
  export interface PurgedAgent {
3565
4737
  principal: Principal;
3566
4738
  pairedAtNs: bigint;
@@ -3587,26 +4759,31 @@ export interface RailHealth {
3587
4759
  }
3588
4760
  export interface ReceiptPage {
3589
4761
  firstAvailableSeq: bigint;
3590
- page: Page_9;
4762
+ page: Page_12;
3591
4763
  scannedThroughSeq: bigint;
3592
4764
  }
3593
- export interface RegisteredType {
3594
- primaryType: string;
3595
- encodeTypeString: string;
3596
- cooloffEndsAtNs: bigint;
3597
- domainName: string;
3598
- typeId: Uint8Array | number[];
3599
- verifyingContract: string;
3600
- dailySignCap: bigint;
3601
- fields: Array<[string, string]>;
3602
- domainSeparator: Uint8Array | number[];
3603
- destinationFields: Array<string>;
3604
- authorityClass: AuthorityClass;
3605
- typeHash: Uint8Array | number[];
3606
- registeredAtNs: bigint;
3607
- chainId: bigint;
3608
- domainVersion: string;
3609
- ackIrrevocable: boolean;
4765
+ export interface RecipientHistory {
4766
+ historyFull: boolean;
4767
+ firstPaidAtNs: [] | [bigint];
4768
+ timesPaid: bigint;
4769
+ paidBefore: boolean;
4770
+ liveNow: boolean;
4771
+ lastPaidAtNs: [] | [bigint];
4772
+ largestPaidE6: bigint;
4773
+ listedSeller: boolean;
4774
+ }
4775
+ export interface RecordNote {
4776
+ about: bigint;
4777
+ atNs: bigint;
4778
+ note: string;
4779
+ auditId: bigint;
4780
+ }
4781
+ export interface RecordPage {
4782
+ ringFloor: bigint;
4783
+ total: bigint;
4784
+ sealed: Array<SealedEntry>;
4785
+ items: Array<AuditEntry>;
4786
+ hashFirstFrom: bigint;
3610
4787
  }
3611
4788
  export interface Repudiation {
3612
4789
  atNs: bigint;
@@ -3615,6 +4792,15 @@ export interface Repudiation {
3615
4792
  version: bigint;
3616
4793
  reason: string;
3617
4794
  }
4795
+ export type Request =
4796
+ | { metadata: [] | [string] }
4797
+ | {
4798
+ read: {
4799
+ end: End;
4800
+ excludePlatform: [] | [string];
4801
+ platform: [] | [string];
4802
+ };
4803
+ };
3618
4804
  export interface ResetReport {
3619
4805
  agentsRemoved: bigint;
3620
4806
  agentsPurged: bigint;
@@ -3622,76 +4808,98 @@ export interface ResetReport {
3622
4808
  filesCleared: bigint;
3623
4809
  }
3624
4810
  export type Result = { Ok: WriteReceipt } | { Err: Error };
3625
- export type Result_1 = { Ok: null } | { Err: Error };
3626
- export type Result_10 = { Ok: BackupRetentionReport } | { Err: Error };
3627
- export type Result_11 = { Ok: MemoryFile } | { Err: Error };
3628
- export type Result_12 = { Ok: SessionContext } | { Err: Error };
3629
- export type Result_13 = { Ok: ResyncReport } | { Err: Error };
3630
- export type Result_14 = { Ok: ResetReport } | { Err: Error };
3631
- export type Result_15 = { Ok: GuardianRecord } | { Err: Error };
3632
- export type Result_16 = { Ok: EngramEscrowRecovery } | { Err: Error };
3633
- export type Result_17 = { Ok: MemoryByteChunk } | { Err: Error };
3634
- export type Result_18 = { Ok: Array<BatchReadItem> } | { Err: Error };
3635
- export type Result_19 = { Ok: CondensePreview } | { Err: Error };
3636
- export type Result_2 = { Ok: ControlHandover } | { Err: Error };
3637
- export type Result_20 = { Ok: Pairing } | { Err: Error };
3638
- export type Result_21 = { Ok: EngramSessionState } | { Err: Error };
3639
- export type Result_22 = { Ok: Principal } | { Err: Error };
3640
- export type Result_23 = { Ok: Page } | { Err: Error };
3641
- export type Result_24 = { Ok: Page_1 } | { Err: Error };
3642
- export type Result_25 = { Ok: Page_2 } | { Err: Error };
3643
- export type Result_26 = { Ok: PaymentSignatureCounts } | { Err: Error };
3644
- export type Result_27 = { Ok: Page_4 } | { Err: Error };
3645
- export type Result_28 = { Ok: Page_5 } | { Err: Error };
3646
- export type Result_29 = { Ok: Page_6 } | { Err: Error };
3647
- export type Result_3 = { Ok: X402SignOutcome } | { Err: Error };
3648
- export type Result_30 = { Ok: LogPage } | { Err: Error };
3649
- export type Result_31 = { Ok: Page_8 } | { Err: Error };
3650
- export type Result_32 = { Ok: ReceiptPage } | { Err: Error };
3651
- export type Result_33 = { Ok: Page_10 } | { Err: Error };
3652
- export type Result_34 = { Ok: Page_11 } | { Err: Error };
3653
- export type Result_35 = { Ok: Page_12 } | { Err: Error };
3654
- export type Result_36 = { Ok: Page_13 } | { Err: Error };
3655
- export type Result_37 = { Ok: Page_14 } | { Err: Error };
3656
- export type Result_38 = { Ok: CheckpointPage } | { Err: Error };
3657
- export type Result_39 = { Ok: Page_16 } | { Err: Error };
3658
- export type Result_4 = { Ok: Eip712SignatureOut } | { Err: Error };
3659
- export type Result_40 = { Ok: Page_17 } | { Err: Error };
3660
- export type Result_41 = { Ok: Page_18 } | { Err: Error };
3661
- export type Result_42 = { Ok: Page_19 } | { Err: Error };
3662
- export type Result_43 = { Ok: Page_20 } | { Err: Error };
3663
- export type Result_44 = { Ok: string } | { Err: Error };
3664
- export type Result_45 = { Ok: boolean } | { Err: Error };
3665
- export type Result_46 = { Ok: [] | [string] } | { Err: Error };
3666
- export type Result_47 = { Ok: WorldIdRpContext } | { Err: Error };
3667
- export type Result_48 = { Ok: WorldIdConfig } | { Err: Error };
3668
- export type Result_49 = { Ok: WalletBalances } | { Err: Error };
3669
- export type Result_5 = { Ok: SignatureCounts } | { Err: Error };
3670
- export type Result_50 = { Ok: StorageReport } | { Err: Error };
3671
- export type Result_51 = { Ok: SpendingPolicy } | { Err: Error };
3672
- export type Result_52 = { Ok: SpendCeiling } | { Err: Error };
3673
- export type Result_53 = { Ok: SigningFloorStatus } | { Err: Error };
3674
- export type Result_54 = { Ok: { paths: Array<string> } } | { Err: Error };
3675
- export type Result_55 = { Ok: OwnerConsole } | { Err: Error };
3676
- export type Result_56 = { Ok: MemoryRetentionPolicy } | { Err: Error };
3677
- export type Result_57 = { Ok: MemoryHistory } | { Err: Error };
3678
- export type Result_58 = { Ok: AlertStatus } | { Err: Error };
3679
- export type Result_59 = { Ok: EvmAddresses } | { Err: Error };
3680
- export type Result_6 = { Ok: RailHealth } | { Err: Error };
3681
- export type Result_60 = { Ok: Uint8Array | number[] } | { Err: Error };
3682
- export type Result_61 = { Ok: ChildOpening } | { Err: Error };
3683
- export type Result_62 = { Ok: ChildAllowanceRow } | { Err: Error };
3684
- export type Result_63 = { Ok: BackupMetadata } | { Err: Error };
3685
- export type Result_64 = { Ok: AgentWriteReview } | { Err: Error };
3686
- export type Result_65 = { Ok: Page_21 } | { Err: Error };
3687
- export type Result_67 = { Ok: MemoryRangeExport } | { Err: Error };
3688
- export type Result_68 = { Ok: CondenseResult } | { Err: Error };
3689
- export type Result_69 = { Ok: { activatesAtNs: bigint } } | { Err: Error };
3690
- export type Result_7 = { Ok: Array<Seat> } | { Err: Error };
3691
- export type Result_70 = { Ok: Eip712Registration } | { Err: Error };
3692
- export type Result_71 = { Ok: AgentRecord } | { Err: Error };
3693
- export type Result_8 = { Ok: bigint } | { Err: Error };
3694
- export type Result_9 = { Ok: SignedTransaction } | { Err: Error };
4811
+ export type Result_1 = { Ok: TimersWake } | { Err: Error };
4812
+ export type Result_10 = { Ok: SignedTransaction } | { Err: Error };
4813
+ export type Result_11 = { Ok: { activatesAtNs: bigint } } | { Err: Error };
4814
+ export type Result_12 = { Ok: BackupRetentionReport } | { Err: Error };
4815
+ export type Result_13 = { Ok: MemoryFile } | { Err: Error };
4816
+ export type Result_14 = { Ok: SessionContext } | { Err: Error };
4817
+ export type Result_15 = { Ok: bigint } | { Err: Error };
4818
+ export type Result_16 = { Ok: TextAppendReceipt } | { Err: Error };
4819
+ export type Result_17 = { Ok: ResyncReport } | { Err: Error };
4820
+ export type Result_18 = { Ok: ResetReport } | { Err: Error };
4821
+ export type Result_19 = { Ok: GuardianRecord } | { Err: Error };
4822
+ export type Result_2 = { Ok: null } | { Err: Error };
4823
+ export type Result_20 = { Ok: EngramEscrowRecovery } | { Err: Error };
4824
+ export type Result_21 = { Ok: MemoryByteChunk } | { Err: Error };
4825
+ export type Result_22 = { Ok: Array<BatchReadItem> } | { Err: Error };
4826
+ export type Result_23 = { Ok: RetentionPreview } | { Err: Error };
4827
+ export type Result_24 = { Ok: CondensePreview } | { Err: Error };
4828
+ export type Result_25 = { Ok: Plan } | { Err: Error };
4829
+ export type Result_26 = { Ok: Pairing } | { Err: Error };
4830
+ export type Result_27 = { Ok: EngramSessionState } | { Err: Error };
4831
+ export type Result_28 = { Ok: Principal } | { Err: Error };
4832
+ export type Result_29 = { Ok: AgentGrant } | { Err: Error };
4833
+ export type Result_3 = { Ok: Outcome } | { Err: Error };
4834
+ export type Result_30 = { Ok: Page } | { Err: Error };
4835
+ export type Result_31 = { Ok: Page_1 } | { Err: Error };
4836
+ export type Result_32 = { Ok: Page_2 } | { Err: Error };
4837
+ export type Result_33 = { Ok: Page_3 } | { Err: Error };
4838
+ export type Result_34 = { Ok: Page_4 } | { Err: Error };
4839
+ export type Result_35 = { Ok: Page_5 } | { Err: Error };
4840
+ export type Result_36 = { Ok: PaymentSignatureCounts } | { Err: Error };
4841
+ export type Result_37 = { Ok: Page_7 } | { Err: Error };
4842
+ export type Result_38 = { Ok: Page_8 } | { Err: Error };
4843
+ export type Result_39 = { Ok: Page_9 } | { Err: Error };
4844
+ export type Result_4 = { Ok: X402SignOutcome } | { Err: Error };
4845
+ export type Result_40 = { Ok: LogPage } | { Err: Error };
4846
+ export type Result_41 = { Ok: Page_11 } | { Err: Error };
4847
+ export type Result_42 = { Ok: ReceiptPage } | { Err: Error };
4848
+ export type Result_43 = { Ok: Page_13 } | { Err: Error };
4849
+ export type Result_44 = { Ok: Page_14 } | { Err: Error };
4850
+ export type Result_45 = { Ok: Page_15 } | { Err: Error };
4851
+ export type Result_46 = { Ok: Page_16 } | { Err: Error };
4852
+ export type Result_47 = { Ok: Page_17 } | { Err: Error };
4853
+ export type Result_48 = { Ok: Page_18 } | { Err: Error };
4854
+ export type Result_49 = { Ok: CheckpointPage } | { Err: Error };
4855
+ export type Result_5 = { Ok: Eip712SignatureOut } | { Err: Error };
4856
+ export type Result_50 = { Ok: Page_20 } | { Err: Error };
4857
+ export type Result_51 = { Ok: Page_21 } | { Err: Error };
4858
+ export type Result_52 = { Ok: RecordPage } | { Err: Error };
4859
+ export type Result_53 = { Ok: Page_22 } | { Err: Error };
4860
+ export type Result_54 = { Ok: Page_23 } | { Err: Error };
4861
+ export type Result_55 = { Ok: AgentSpendToday } | { Err: Error };
4862
+ export type Result_56 = { Ok: Page_25 } | { Err: Error };
4863
+ export type Result_57 = { Ok: Page_26 } | { Err: Error };
4864
+ export type Result_58 = { Ok: string } | { Err: Error };
4865
+ export type Result_59 = { Ok: [] | [string] } | { Err: Error };
4866
+ export type Result_6 = { Ok: { returned: bigint } } | { 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 };
4877
+ export type Result_7 = { Ok: SignatureCounts } | { 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 };
4888
+ export type Result_8 = { Ok: RailHealth } | { 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 };
4898
+ export type Result_9 = { Ok: Array<Seat> } | { 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 };
3695
4903
  export interface ResyncReport {
3696
4904
  startsAcknowledged: bigint;
3697
4905
  cannotBeRecorded: Array<UnrecordableEngagement>;
@@ -3712,6 +4920,22 @@ export type RetentionClassSpec =
3712
4920
  thinning: { tail: null } | { logSpaced: { denseTail: bigint } };
3713
4921
  };
3714
4922
  };
4923
+ export interface RetentionPreview {
4924
+ files: bigint;
4925
+ complete: boolean;
4926
+ planned: bigint;
4927
+ bytes: bigint;
4928
+ copies: bigint;
4929
+ storedFiles: bigint;
4930
+ rules: Array<RetentionPreviewRule>;
4931
+ }
4932
+ export interface RetentionPreviewRule {
4933
+ files: bigint;
4934
+ notBeforeNs: [] | [bigint];
4935
+ prefix: string;
4936
+ bytes: bigint;
4937
+ copies: bigint;
4938
+ }
3715
4939
  export type Role =
3716
4940
  | { Anonymous: null }
3717
4941
  | { Viewer: null }
@@ -3725,6 +4949,23 @@ export type Role =
3725
4949
  | { Agent: null }
3726
4950
  | { Other: null }
3727
4951
  | { Owner: null };
4952
+ export interface SaleNotice {
4953
+ token: string;
4954
+ txRef: [] | [string];
4955
+ listingId: string;
4956
+ kind: { service: null } | { content: null };
4957
+ jobId: [] | [string];
4958
+ network: string;
4959
+ amountE6: bigint;
4960
+ receiptId: string;
4961
+ buyer: string;
4962
+ settledAtNs: bigint;
4963
+ }
4964
+ export interface SealedEntry {
4965
+ id: bigint;
4966
+ entryHash: Uint8Array | number[];
4967
+ digest: Uint8Array | number[];
4968
+ }
3728
4969
  export interface Seat {
3729
4970
  pairedDay: bigint;
3730
4971
  lastPaymentDay: [] | [bigint];
@@ -3732,6 +4973,18 @@ export interface Seat {
3732
4973
  produced: bigint;
3733
4974
  firstPaymentDay: [] | [bigint];
3734
4975
  }
4976
+ export interface SellerView {
4977
+ spentTodayE6: bigint;
4978
+ isPayout: boolean;
4979
+ perDayCapE6: bigint;
4980
+ addedBy: Principal;
4981
+ activatesAtNs: bigint;
4982
+ addedAtNs: bigint;
4983
+ liveNow: boolean;
4984
+ payTo: string;
4985
+ pendingActivatesAtNs: [] | [bigint];
4986
+ pendingCapE6: [] | [bigint];
4987
+ }
3735
4988
  export interface ServiceEntry {
3736
4989
  endpoint: string;
3737
4990
  name: string;
@@ -3761,6 +5014,10 @@ export interface SessionIntent {
3761
5014
  expiryNs: bigint;
3762
5015
  suggestedDeposit: bigint;
3763
5016
  }
5017
+ export interface SignIn {
5018
+ token: BearerToken;
5019
+ clientName: [] | [string];
5020
+ }
3764
5021
  export interface SignatureCounts {
3765
5022
  total: bigint;
3766
5023
  byCaller: Array<CallerSignatureCount>;
@@ -3817,11 +5074,21 @@ export interface StorageReport {
3817
5074
  versionHistoryCount: bigint;
3818
5075
  sessionFilesCount: bigint;
3819
5076
  }
5077
+ export interface TextAppendReceipt {
5078
+ receipt: WriteReceipt;
5079
+ sent: Uint8Array | number[];
5080
+ }
3820
5081
  export interface TimerHealth {
3821
- jobExpiryFastMode: boolean;
3822
- jobExpiryArmed: boolean;
5082
+ ic402Maintenance: [] | [Ic402Maintenance];
3823
5083
  alertTimerArmed: boolean;
5084
+ upkeepRejected: [] | [bigint];
3824
5085
  sessionExpiryArmed: boolean;
5086
+ ic402MaintenanceTimerArmed: [] | [boolean];
5087
+ checkInsUnfinished: [] | [bigint];
5088
+ }
5089
+ export interface TimersWake {
5090
+ gap: bigint;
5091
+ needed: bigint;
3825
5092
  }
3826
5093
  export type TokenAmount = { Icp: bigint } | { Ckusdc: bigint } | { Ckusdt: bigint };
3827
5094
  export type TrackRecordNotice = { Recorded: null } | { NotRecorded: string };
@@ -3858,11 +5125,27 @@ export interface WorldIdRpContext {
3858
5125
  }
3859
5126
  export interface WriteReceipt {
3860
5127
  seq: bigint;
5128
+ contentRoot: Uint8Array | number[];
5129
+ atNs: bigint;
3861
5130
  head: Uint8Array | number[];
5131
+ prev: Uint8Array | number[];
5132
+ size: bigint;
5133
+ recordPrev: Uint8Array | number[];
3862
5134
  version: bigint;
5135
+ recordId: bigint;
3863
5136
  }
3864
5137
  export type X402SignOutcome =
3865
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
+ }
3866
5149
  export interface _SERVICE extends Engram {}
3867
5150
  export declare const idlFactory: IDL.InterfaceFactory;
3868
5151
  export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];