@engramx/idl 0.16.1 → 0.17.0-rc.1

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.
@@ -411,17 +411,19 @@ export interface Ended {
411
411
  }
412
412
  export interface Engram {
413
413
  /**
414
- * / ⟨0.16.0⟩ `about()` — the ONE public projection, replacing `status()` and absorbing `metrics()`.
414
+ * / `about()` — the ONE public projection (since 0.16.0), replacing `status()` and absorbing
415
+ * / `metrics()`.
415
416
  * /
416
- * / Two public projections of one canister was the one-concept-two-names defect: both answered "what is this engram
417
- * / like", disagreed about which counters they carried, and `status()` additionally masked two
418
- * / fields behind an `authorized` flag whose own declaration admitted the problem — "a consumer
419
- * / that must remember to check a sibling flag is one that will eventually forget."
417
+ * / Two public projections of one canister was the one-concept-two-names defect: both answered
418
+ * / "what is this engram like", disagreed about which counters they carried, and `status()`
419
+ * / additionally masked two fields behind an `authorized` flag whose own declaration admitted the
420
+ * / problem — "a consumer that must remember to check a sibling flag is one that will eventually
421
+ * / forget."
420
422
  * /
421
423
  * / The fix is not a better flag. The gated fields MOVED (see `getOwnerConsole`), so there is no
422
424
  * / masked field to forget and no flag to check. Reaching the gated record is the authorization.
423
425
  * /
424
- * / Ungated by design and marked for the public-reason gate's grep.
426
+ * / Ungated by design.
425
427
  * / PUBLIC: existence, shape, posture and day-floored activity. No principal, no balance, no
426
428
  * / precise timestamp — nothing here identifies a person or reveals when they are at the keyboard.
427
429
  */
@@ -445,10 +447,9 @@ export interface Engram {
445
447
  */
446
448
  acceptAgentKeyNomination: ActorMethod<[Principal], Result_95>;
447
449
  /**
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.
450
+ * / THE PRINCIPAL AN OFFER NAMES TAKES THE ENGRAM, as themselves. This is the only call that hands
451
+ * / an owned engram to someone else, and on acceptance what the former owner granted is ended, not
452
+ * / carried over.
452
453
  * /
453
454
  * / ORDER. On an engram a registry spawned, the caller first calls the registry's
454
455
  * / `acceptEngramOffer(<this engram>)`: the registry moves its record only for a principal who told
@@ -457,14 +458,10 @@ export interface Engram {
457
458
  * / code move exactly as a change of owner always did (`moveOwnership`; the answer's `handed` says
458
459
  * / who moved control), and ONLY THEN the owner changes, the custody row is written
459
460
  * / (`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
461
+ * / move, nothing changes here and the offer stays open: the registry removes its filed offer only
462
+ * / where a change of owner finishes, so after a put-back both offers stand, the caller's acceptance
463
+ * / at the registry with them, and the same call again finishes it once the cause is fixed. Both
464
+ * / offers end at their expiry (7 days from the offer); after that the owner offers again and the
468
465
  * / named principal accepts again, at the registry and then here.
469
466
  * /
470
467
  * / WHAT ENDS, in the same message that changes the owner (`closed` counts them):
@@ -474,12 +471,12 @@ export interface Engram {
474
471
  * / former owner paired read a file the new owner wrote.
475
472
  * / · every GUARDIAN and every unredeemed agent or guardian INVITE. Reason: a guardian can
476
473
  * / 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.
474
+ * / · every CHILD ALLOWANCE (`setChildAllowance`), with its write counter moved on so an opening
475
+ * / in flight gives nothing back. Reason: an allowance spends this engram's compute (1.3T an
476
+ * / opening) on the former owner's approval, and it is kept by an agent's lasting identity, so
477
+ * / it outlived the agent record. Measured: after a hand-over, a key the NEW owner paired opened
478
+ * / an engram on the former owner's allowance. The record line counts them
479
+ * / (`childAllowances=`); the reply's `closed` does not.
483
480
  * / · the SPENDING LIMITS: every per-key policy is removed, the general policy goes back to a
484
481
  * / new engram's (`OwnerHandover.STARTING_POLICY`), and the engram-wide daily ceiling goes
485
482
  * / back to `SpendCeiling.DEFAULT_ENGRAM_DAY`. Reason: a limit the former owner removed is a
@@ -492,10 +489,13 @@ export interface Engram {
492
489
  * / it could not be changed), every typed-data DESTINATION (an empty list refuses every
493
490
  * / signature that names a destination), the ALERT WEBHOOK (it posted this engram's activity
494
491
  * / to the former owner's address) and both PAID-MEMORY switches (off, as a new engram's).
492
+ * / · the PROOF-OF-PERSONHOOD flag and its stored result (`endFormerOwnersGrants`), so
493
+ * / `verifiedHuman` reads false until the new owner verifies as themselves. Reason: it attests
494
+ * / the person who was the owner when it was made.
495
495
  * /
496
496
  * / WHAT IS KEPT, and why:
497
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
498
+ * / a token whose issuer is not the current owner is refused at the door
499
499
  * / (`BearerTokens.standing`), and the roster shows the new owner each one as the former
500
500
  * / owner's. Revoking them here would only rewrite what those rows say happened.
501
501
  * / · the MEMORY FILES and their history, the RECORD and its counters, the custody chain: they
@@ -512,11 +512,6 @@ export interface Engram {
512
512
  * / money, theirs to close).
513
513
  * / · what the registry set once at birth (biller, market, metrics reader, consent origin): it
514
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
515
  * /
521
516
  * / Refused, with nothing changed: the anonymous caller; anyone the open offer does not name, and
522
517
  * / an expired offer (`OwnershipOffer.acceptRefusal`); an engram opened through another; a full
@@ -529,41 +524,36 @@ export interface Engram {
529
524
  * / that came with the ask becomes the engram's (sealed for them). Until this call they have no power
530
525
  * / at all. Callable only by that person while the ask waits; refused (as at birth) if they are now
531
526
  * / an agent or a guardian here.
532
- * / Named caller: an owner console — "accept" on a waiting ask, signed in as the person asked.
527
+ * / Named caller: an owner's app — "accept" on a waiting ask, signed in as the person asked.
533
528
  */
534
529
  acceptSignIn: ActorMethod<[], Result_2>;
535
530
  /**
536
- * / Consensus transform for the alert webhook outcall: collapse the response to status-only so
537
- * / replicas agree regardless of response headers/body (we only care that the POST landed 2xx).
531
+ * / Transform for the alert webhook outcall: it collapses the response to status-only before the
532
+ * / engram reads it (the engram only cares that the POST landed 2xx). It is not a consensus
533
+ * / transform: the alert outcall is non-replicated (`is_replicated = ?false` in `scanAndPost`), so
534
+ * / ONE node sends the POST and runs this on its own response. `worldIdTransform` is a true consensus
535
+ * / transform (World ID stays replicated).
538
536
  * /
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
- * /
546
- * / PUBLIC: not a choice. The management canister invokes a transform on every replica as part of
547
- * / the HTTP-outcall protocol, and that invocation carries no caller identity to gate on — a gate
548
- * / here would refuse the only caller there is and break every alert this canister sends. Safe
549
- * / because it is total and stateless: it reads its argument and returns, touching nothing.
537
+ * / PUBLIC: not a choice. The management canister invokes a transform as part of the HTTP-outcall
538
+ * / protocol, and that invocation carries no caller identity to gate on — a gate here would refuse
539
+ * / the only caller there is and break every alert this canister sends. Safe because it is total and
540
+ * / stateless: it reads its argument and returns, touching nothing.
550
541
  */
551
542
  actionAlertTransform: ActorMethod<
552
543
  [{ context: Uint8Array | number[]; response: HttpRequestResult }],
553
544
  HttpRequestResult
554
545
  >;
555
546
  /**
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.
547
+ * / Owner-managed destination allowlist. Additions LOOSEN and wait 24h; removals TIGHTEN and apply
548
+ * / instantly — the signing design's asymmetry (tightening applies at once, loosening waits),
549
+ * / applied to the one mutable policy surface.
559
550
  * /
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.
551
+ * / ONE LIST PER REGISTERED ACTION: these three methods take the action's `typeId` (a single list
552
+ * / for every action, `addEvmWithdrawDestination` and its pair, is gone). Same rules, per action: the
553
+ * / owner only; an addition activates after 24 hours and is refused while payments are frozen; a
554
+ * / removal is instant and works while frozen; a value is 1–128 characters (an address, or a venue
555
+ * / value such as an account name). The action must be registered: a destination list belongs to an
556
+ * / action, and a list for no action would be a value nothing checks. The caller is the owner's app.
567
557
  */
568
558
  addEip712Destination: ActorMethod<[Uint8Array | number[], string], Result_11>;
569
559
  /**
@@ -571,26 +561,25 @@ export interface Engram {
571
561
  * / of FUTURE authority — a frozen engram must not be able to widen what it can sign), and the
572
562
  * / shape is IMMUTABLE: any change mints a new typeId.
573
563
  * /
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.
564
+ * / ONE BAR FOR EVERY REGISTRATION — the class the owner names is stored as a label and decides
565
+ * / nothing. Every registration: records the irrevocability acknowledgement (`ackIrrevocable =
566
+ * / true`); has no opaque field (`bytes`, `bytes1..32`); names at least one destination field OR
567
+ * / carries a must-equal rule; passes the watchers — an owner alert webhook set, enabled AND with its
568
+ * / money class on, and an `#Active` guardian holding `canFreezePayments`; and waits
569
+ * / `Eip712Policy.COOLOFF_NS` (72 hours). It may carry per-field rules (`fieldRules`: "at most N"
570
+ * / read as a plain decimal with D places, "must equal X"), which are part of the registered shape —
571
+ * / inside the typeId, stored in `eip712FieldRules`, enforced in `eip712SignFor` before the cap
572
+ * / reservation. (Under the earlier per-class bars, a withdrawal registered as `#standard` needed no
573
+ * / webhook, no guardian and no destination field, waited one hour, and signed to any address.)
574
+ * / Intrinsic checks come first and the watchers last.
575
+ * /
576
+ * / In an engram opened through another, after the spec's own checks: the venue actions that move
577
+ * / money or control to another account are refused by name (`HyperliquidTransaction:` `UsdSend`,
578
+ * / `SpotSend`, `SendAsset`, `SendToEvmWithData`, `ConvertToMultiSigUser`, `ApproveBuilderFee`,
579
+ * / `TokenDelegate` — `#Refused`), and `HyperliquidTransaction:Withdraw` registers only with a
580
+ * / must-equal rule on `destination` naming this engram's own pay address (`#Refused` otherwise;
581
+ * / `#Conflict` while the pay address has not been derived — call `getEvmAddress` first). A first
582
+ * / engram is unchanged.
594
583
  */
595
584
  addEip712Type: ActorMethod<
596
585
  [
@@ -612,11 +601,11 @@ export interface Engram {
612
601
  Result_92
613
602
  >;
614
603
  /**
615
- * / ⟨0.16.0, refusals are values, never traps⟩ THE ROLE-CONFLICT ARM, and why three refusals here are
616
- * / not the same refusal.
604
+ * / THE ROLE-CONFLICT ARM (refusals are values, never traps), and why three refusals here are not
605
+ * / the same refusal.
617
606
  * /
618
607
  * / This method had five distinct ways to say no through one `text`, and a caller could only tell
619
- * / them apart by matching prose. They are now three different arms because they call for three
608
+ * / them apart by matching prose. They are three different arms because they call for three
620
609
  * / different responses: `#Invalid` means fix the argument and retry, `#Refused` means you are not
621
610
  * / the owner and retrying changes nothing, and `#Conflict` means the request was well-formed and
622
611
  * / permitted but this engram's state says no — the principal already holds an incompatible role,
@@ -624,14 +613,13 @@ export interface Engram {
624
613
  */
625
614
  addGuardian: ActorMethod<[Principal, string, GuardianPermissions], Result_2>;
626
615
  /**
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.
616
+ * / OWNER-ONLY: put a note on any entry of this engram's record — words, nothing else. Appends a
617
+ * / chained `record.note` entry (`about=<id> note=<words>`) and keeps the note for
618
+ * / `listRecordNotes`; answers the new entry's id. The entry noted may be any entry ever appended
619
+ * / (`about` below the head), including one the ring no longer holds in full. An agent, a guardian, a
620
+ * / stranger and the anonymous caller are refused by `requireOwner`'s own words. Empty words, words
621
+ * / over `RecordWords.WORDS_MAX` or holding a line break are `#Invalid`; an id past the head is
622
+ * / `#NotFound`; nothing is recorded on any refusal.
635
623
  */
636
624
  addRecordNote: ActorMethod<[bigint, string], Result_15>;
637
625
  /**
@@ -647,8 +635,8 @@ export interface Engram {
647
635
  */
648
636
  addSeller: ActorMethod<[string, bigint, boolean], Result_11>;
649
637
  /**
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⟩.
638
+ * / AN AGENT CONVERTS THE ENGRAM'S BALANCE INTO COMPUTE, under the runway rule (`AgentConvert.mo`
639
+ * / holds the rule and says why each number).
652
640
  * /
653
641
  * / CALLER: a paired agent whose STORED grant holds the scope "wallet.convert" (`AgentConvert.SCOPE`),
654
642
  * / which only the owner adds (`createAgentInvite` / `setAgentPermissions`); off by default, and no HTTP
@@ -658,34 +646,34 @@ export interface Engram {
658
646
  * / THE RULE: converts only while this engram has under 30 days of compute left by its own reading; at
659
647
  * / least 0.50 and at most 2.00 (or the owner's own per-call cap if lower); at most one conversion under
660
648
  * / 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
649
+ * / removed); counted against that ceiling when one is set; refused under ANY payment freeze, and while
650
+ * / another of the engram's own calls is out (its balance reads low then). `amountE6 = null` converts
663
651
  * / as much as allowed: the smaller of the cap and what the wallet holds less the ledger fee — the wallet
664
652
  * / is READ before anything moves, and a wallet that cannot fund 0.50 is refused by name.
665
653
  * /
666
654
  * / 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.
655
+ * / reset while it waits on the ledger, on the biller's answer to whether it would take the top-up or on
656
+ * / the biller's deposit address, nothing moves; after the money reached the deposit, it is sent back to
657
+ * / the wallet less one ledger fee (or held at the biller for the owner's next Convert). THE RESIDUAL,
658
+ * / stated: a removal landing DURING the biller's own conversion call cannot stop that call — it
659
+ * / finishes, and the reply (`finishedBeforeRemovalSeen`) and the record row say so. One inter-canister
660
+ * / call, bounded by one cap.
672
661
  */
673
662
  agentConvertBalance: ActorMethod<[string, [] | [bigint]], Result_90>;
674
663
  /**
675
664
  * / Returns the write RECEIPT, not just the version.
676
665
  * /
677
- * / The receipt was always computed and then thrown away: MemoryRouter hands back
678
- * / {seq; version; contentRoot; head}, the audit detail stringifies `seq=`/`head=` into prose, and
679
- * / the caller got a bare Nat. So a writer could be told their write landed but not be given the
680
- * / evidence it landed — they had to read the audit log back and parse a string to learn the head
681
- * / their own write produced. `head` is the chain head AFTER this write; it transitively commits
682
- * / to contentRoot, which is why the root is not repeated here (the same ruling that dropped
683
- * / per-entry contentRoot from the audit entries).
684
- * /
685
- * / This is the half of a consumer request that costs nothing: the commitment ledger was still
686
- * / "trust whoever runs the service" one hop from the proof — a third party can now be handed the receipt
687
- * / directly by whoever wrote the content. A return-TYPE change cannot be absorbed by the client
688
- * / subset rule, so it can only ride an interface break; this release is one.
666
+ * / The receipt was once computed and then thrown away: the audit detail stringified `seq=`/`head=`
667
+ * / into prose, and the caller got a bare Nat. So a writer could be told their write landed but not
668
+ * / be given the evidence it landed — they had to read the audit log back and parse a string to
669
+ * / learn the head their own write produced. The receipt (`WriteReceipt`) carries the memory-file
670
+ * / event — `version`, `seq`, `head` (the file's chain head AFTER this write), `prev`, `atNs`,
671
+ * / `contentRoot`, `size` — and where its record entry landed (`recordId`, `recordPrev`). With these
672
+ * / and the bytes it sent, the writer rebuilds its own evidence: the event hash (= `head`), then,
673
+ * / with its entry, the entry hash, then the walk to the certified head. So a third party can be
674
+ * / handed the receipt directly by whoever wrote the content, instead of trusting whoever runs the
675
+ * / service one hop from the proof. (A return-TYPE change cannot be absorbed by the client-subset
676
+ * / rule, so it rode an interface break: 0.16.0.)
689
677
  */
690
678
  appendMemory: ActorMethod<[string, Uint8Array | number[], [] | [MemorySource]], Result>;
691
679
  /**
@@ -736,9 +724,9 @@ export interface Engram {
736
724
  * / the hour, and the retry CONSUMES the approval (`#Used`); a second attempt needs a second
737
725
  * / approval. Past the hour it becomes `#Expired` on first touch. Neither state is recoverable by
738
726
  * / approving again — the owner approves a NEW request.
739
- * / ⟨2026-09-29, a review finding⟩ One exception, made by the engram and not by the owner: when
740
- * / the retry's signer FAILS, nothing was signed, so the approval goes back from `#Used` to
741
- * / `#Approved` with its original expiry and an `approval.released` entry says so.
727
+ * / One exception, made by the engram and not by the owner: when the retry's signer FAILS, nothing
728
+ * / was signed, so the approval goes back from `#Used` to `#Approved` with its original expiry and
729
+ * / an `approval.released` entry says so.
742
730
  * /
743
731
  * / ⚠ IT IS BOUND TO THE EXACT OPERATION THAT WAS REQUESTED, not to the agent. An approval
744
732
  * / carries the operation, the amount and the binding it was raised for, and consuming it checks
@@ -791,16 +779,15 @@ export interface Engram {
791
779
  * / that is never finalized is not a backup; `backupFinalize` refuses one with zero chunks or zero
792
780
  * / total size rather than recording an empty success.
793
781
  * /
794
- * / ⚠ THE `sha256` IS YOUR DECLARATION, NOT THIS CANISTER'S FINDING. It is taken here, before any
795
- * / bytes arrive, stored with the metadata and carried through finalize UNCHANGED — verified at
796
- * / the site 2026-08-21: `Backup.finalizeBackup` checks existence, creator, state and non-emptiness
797
- * / and does NOT recompute or compare a digest. So it is a commitment a restorer can check the
798
- * / bytes against LATER, and it is not evidence the bytes match. Treating it as a canister-verified
799
- * / hash is the misreading to avoid — and it is an easy one to reach, because the REGISTRY's
800
- * / chunked upload (`engramWasmInit`/`PushChunk`/`Finalize`) has the same shape and DOES verify:
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.
782
+ * / ⚠ `declaredSha256` IS YOUR DECLARATION, NOT THIS CANISTER'S FINDING, as its name says. It is
783
+ * / taken here, before any bytes arrive, stored with the metadata and carried through finalize
784
+ * / UNCHANGED — verified at the site 2026-08-21: `Backup.finalizeBackup` checks existence, creator,
785
+ * / state and non-emptiness and does NOT recompute or compare a digest. So it is a commitment a
786
+ * / restorer can check the bytes against LATER, and it is not evidence the bytes match. Treating it
787
+ * / as a canister-verified hash is the misreading to avoid — and it is an easy one to reach, because
788
+ * / the REGISTRY's chunked upload (`engramWasmInit`/`PushChunk`/`Finalize`) has the same shape and
789
+ * / DOES verify: it hashes the assembled bytes and refuses on mismatch. Same protocol, opposite
790
+ * / semantics.
804
791
  * /
805
792
  * / **TWO DIFFERENT PERMISSIONS GUARD THE TWO HALVES.** Writing (init, push, finalize, abort) is
806
793
  * / owner-or-agent and an AGENT additionally needs `canAppendMemory`; reading
@@ -825,10 +812,10 @@ export interface Engram {
825
812
  */
826
813
  cancelAgentKeyNomination: ActorMethod<[Principal], Result_2>;
827
814
  /**
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.
815
+ * / THE OWNER WITHDRAWS THE OPEN OFFER. Owner-only. `#NotFound` when none is open. Nothing else
816
+ * / changes, and nothing is sent: the registry's copy of the offer cannot move anything without
817
+ * / `acceptOwnership` succeeding here, which refuses once the offer is withdrawn, and it ends at its
818
+ * / own expiry.
832
819
  */
833
820
  cancelOwnershipOffer: ActorMethod<[], Result_2>;
834
821
  /**
@@ -840,41 +827,36 @@ export interface Engram {
840
827
  */
841
828
  closeSession: ActorMethod<[string], Result_2>;
842
829
  /**
843
- * / Convert the engram's OWN earned ckUSDC/ckUSDT into its OWN cycles, via the biller — the
844
- * / engram-self top-up path. Owner-only; per-call cap + cooldown (irreversible); NOT freeze-gated
845
- * / (infrastructure funding). Flow: read the engram's deposit address on the biller, move the
830
+ * / Convert the engram's OWN ckUSDC/ckUSDT into its OWN cycles, via the biller — the engram-self
831
+ * / top-up path. Owner-only; per-call cap + cooldown (irreversible); NOT freeze-gated
832
+ * / (infrastructure funding). Flow: ask the biller whether it would take the top-up
833
+ * / (`topUpEligibility`; a refusal is returned before any money moves, and a biller that does not
834
+ * / serve the method is not a refusal), read the engram's deposit address on the biller, move the
846
835
  * / engram's tokens there, then have the biller convert — the biller self-authorizes because the
847
- * / caller (this engram) is a registered active engram (registry isRegisteredActiveEngram seam).
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
850
- * / it does not re-litigate it.⟩
851
- * /
852
- * / `ownerWithdraw` and the market's `recoverEscrow` both took `Wire.TokenAmount` because they
853
- * / accept ICP (e8s) BESIDE the stablecoins (e6) — mixed decimals behind one number is a real
854
- * / hundred-fold error. This method accepts ckUSDC and ckUSDT only. Both are e6, so there is no
855
- * / unit to get wrong, and the 0.16.0 interface plan rules the pair as `(token, amountE6)`.
856
- * /
857
- * / `Wire.TokenAmount` would be actively WORSE here: its `#Icp` arm is a token this path cannot
858
- * / convert, so the type would make an unacceptable value REPRESENTABLE and hand back a runtime
859
- * / rejection anyway — losing the one property the variant is for while gaining a wider type.
860
- * /
861
- * / ⟨2026-10-02⟩ The second parameter is NAMED `amountE6` now, as the interface plan's ruling above has the
862
- * / pair — e6 base units of the token named first. A name only: Candid passes arguments by
863
- * / position, so nothing on the wire moved.
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).
836
+ * / caller (this engram) is a registered active engram (registry isRegisteredActiveEngram seam). A
837
+ * / retry that finishes a deposit already at the biller does not ask. (The owner-funded path does
838
+ * / not use this method: owner → biller deposit → topUp.)
839
+ * /
840
+ * / It converts the engram's BALANCE: what the owner put in and what it earned are not told apart,
841
+ * / and "earnings" in the name is the wire's and stays. The body is `runConversion`, which an agent's
842
+ * / `agentConvertBalance` shares; this method keeps its bare `cyclesAdded` reply. A FIRST engram's
843
+ * / owner Convert: not counted, not freeze-gated, not runway-bound, not pre-read, 10.00 / 5 min. In
844
+ * / an engram OPENED THROUGH ANOTHER the key file's Convert runs the agent rule too (under 30 days,
845
+ * / 0.50–2.00, once in 24 hours shared with the agents, the wallet read first), keeping its own
846
+ * / freeze gate (a guardian's freeze only). SHARED with an agent's conversion: the in-flight latch
847
+ * / only (one deposit account, one pending marker — one conversion at a time, whoever asked), so
848
+ * / while an agent's conversion is between its deposit and its landing this door answers "another
849
+ * / conversion is still in flight". NOT shared: the 5-minute cooldown (an agent's landing does not
850
+ * / move it) and the latch during an agent's wallet read (nothing is held while it reads).
851
+ * /
852
+ * / `token : Text` and `amountE6` (e6 base units of the token named first), deliberately, not
853
+ * / `Wire.TokenAmount`. `ownerWithdraw` and the market's `recoverEscrow` take `Wire.TokenAmount`
854
+ * / because they accept ICP (e8s) BESIDE the stablecoins (e6) — mixed decimals behind one number is
855
+ * / a real hundred-fold error. This method accepts ckUSDC and ckUSDT only. Both are e6, so there is
856
+ * / no unit to get wrong. `Wire.TokenAmount` would be actively WORSE here: its `#Icp` arm is a token
857
+ * / this path cannot convert, so the type would make an unacceptable value REPRESENTABLE and hand
858
+ * / back a runtime rejection anyway — losing the one property the variant is for while gaining a
859
+ * / wider type.
878
860
  */
879
861
  convertEarningsToCycles: ActorMethod<[string, bigint], Result_15>;
880
862
  /**
@@ -896,15 +878,14 @@ export interface Engram {
896
878
  * / A principal that is already a GUARDIAN cannot become an agent — a guardian is an
897
879
  * / independent check on agents, so one wallet must not hold both.
898
880
  * /
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.
881
+ * / `name` MAY BE EMPTY (or only whitespace): the agent is then named after its PERMANENT key when it
882
+ * / pairs — "agent-" and the key's first five characters, e.g. "agent-hsffu" (`People.nameAtPairing`
883
+ * / says why five, and the first). The permanent key is the root it enrolled with, not the key that
884
+ * / pairs, so the name stays right across a key replacement and matches the permanent key an app
885
+ * / shows. A name the owner gives always wins. (An empty name was once refused, so an app that wanted
886
+ * / no name had to invent one, "agent", and two agents read alike.)
887
+ * / A name the owner gives meets the rule `renameAgent` applies: a line break or another control
888
+ * / character is `#Invalid` (`People.nameRefusal`), as a rename to it would be.
908
889
  */
909
890
  createAgentInvite: ActorMethod<[string, AgentPermissions], Result_58>;
910
891
  /**
@@ -932,9 +913,9 @@ export interface Engram {
932
913
  */
933
914
  createGuardianInvite: ActorMethod<[string, GuardianPermissions], Result_58>;
934
915
  /**
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⟩
916
+ * / The sign-in GIVES ITSELF UP, or the person the owner asked again says no. They may say no, and
917
+ * / the owner may ask again: whoever the kit names could otherwise not refuse a seat they never
918
+ * / agreed to.
938
919
  * / · as the sign-in: the slot empties, the sealed copy of the owner's key is deleted (nobody may
939
920
  * / hold a copy for a seat that is gone), and the caller is recorded as the one who declined, with
940
921
  * / the time. The engram keeps its small limits; the owner may ask this person again in 7 days.
@@ -944,7 +925,7 @@ export interface Engram {
944
925
  * / the decline's time moves to now (the next ask waits another 7 days).
945
926
  * / The key file is refused: it cannot empty the slot (a thief would, to strand the honest owner's
946
927
  * / 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
928
+ * / Named caller: an owner's app — the sign-in's "decline", and the person asked's "decline" on a
948
929
  * / waiting ask.
949
930
  */
950
931
  declineSignIn: ActorMethod<[], Result_2>;
@@ -962,11 +943,11 @@ export interface Engram {
962
943
  */
963
944
  deleteBackup: ActorMethod<[string], Result_2>;
964
945
  /**
965
- * / ⟨0.16.0, the interface plan⟩ RETURNS A REAL RECEIPT, not `R<()>`. The receipt was already
966
- * / being computed and written into the audit line — `receiptSuffix(r)` — and then discarded, so
967
- * / a caller could not cite the seq its own delete produced and had to go looking for it in a log
968
- * / it may not be allowed to read. A delete is an EVENT on the chain; an event that will not tell
969
- * / you where it landed is evidence nobody can point at. Same projection as writeMemory.
946
+ * / RETURNS A REAL RECEIPT, not `R<()>` (since 0.16.0). The receipt was already being computed and
947
+ * / written into the audit line — `receiptSuffix(r)` — and then discarded, so a caller could not cite
948
+ * / the seq its own delete produced and had to go looking for it in a log it may not be allowed to
949
+ * / read. A delete is an EVENT on the chain; an event that will not tell you where it landed is
950
+ * / evidence nobody can point at. Same projection as writeMemory.
970
951
  */
971
952
  deleteMemoryFile: ActorMethod<[string], Result>;
972
953
  /**
@@ -982,13 +963,12 @@ export interface Engram {
982
963
  */
983
964
  denyRequest: ActorMethod<[string, string], Result_2>;
984
965
  /**
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.
966
+ * / A GUARDIAN POWER, words only: an ACTIVE guardian disputes an agent's write. It never moves money,
967
+ * / stops anything or changes a grant. Appends a chained `record.dispute` entry (`about=<id>
968
+ * / reason=<words>`) and keeps the dispute for `listGuardianDisputes`; answers the new entry's id.
969
+ * / NOT ALERTED, deliberately: a `guardian.*` operation would fall in the alerts' #guardian class,
970
+ * / and which entries reach a phone is a later alerts change's to decide (`ActionAlerts.classify`
971
+ * / answers null for `record.*`). The owner sees it in `listGuardianDisputes`.
992
972
  * /
993
973
  * / WHO: every active guardian — no grant bit (`RecordWords` header says why). The OWNER is refused
994
974
  * / by name (`RecordWords.OWNER_DISPUTES_ELSEWHERE` — the owner's dispute is
@@ -1015,64 +995,60 @@ export interface Engram {
1015
995
  */
1016
996
  exportMemoryRange: ActorMethod<[bigint, bigint, [] | [Principal]], Result_88>;
1017
997
  /**
1018
- * / ⟨0.16.0, same concept, same name — renamed from `guardianFreezePayments`⟩ The prefix LIED about who may call it.
1019
- * / The gate is `requireOwnerOrGuardian`, and an owner freezing their own payments is the ordinary
1020
- * / case — the guardian is the exceptional one. A name that says otherwise sends an owner looking
1021
- * / for a method that does not exist. `unfreezePayments`, its owner-only inverse, never carried the
1022
- * / prefix, so the pair read as unrelated.
998
+ * / The payments brake, for the owner or an active guardian (`requireOwnerOrGuardian`). It was
999
+ * / `guardianFreezePayments` before 0.16.0, and the prefix LIED about who may call it: an owner
1000
+ * / freezing their own payments is the ordinary case — the guardian is the exceptional one. A name
1001
+ * / that says otherwise sends an owner looking for a method that does not exist. `unfreezePayments`,
1002
+ * / its owner-only inverse, never carried the prefix, so the pair read as unrelated.
1023
1003
  * /
1024
- * / WHAT THE FREEZE ACTUALLY COVERS ⟨enumerated 2026-08-21 from the eight `requirePaymentsNotFrozen`
1025
- * / call sites, because it was written down nowhere and had to be re-derived to be trusted⟩:
1004
+ * / WHAT THE FREEZE COVERS (enumerated from the `requirePaymentsNotFrozen` call sites, because it
1005
+ * / was written down nowhere and had to be re-derived to be trusted):
1026
1006
  * /
1027
1007
  * / · EVERY SIGNING PATH, which is the point of the brake. `signX402Payment` and
1028
1008
  * / `sysSignX402Payment` through `x402SignFor`; `signEip712` and `sysSignEip712` through
1029
- * / `eip712SignFor`; `signEngramRegistration` directly. ⟨The two helpers are why a grep of an
1030
- * / individual method's body finds nothing — the check is one level down.⟩
1031
- * / · `addEip712Type` and `addEvmWithdrawDestination` — pre-staging for a later payout is the
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.
1009
+ * / `eip712SignFor`; `signEngramRegistration` directly. The two helpers are why a grep of an
1010
+ * / individual method's body finds nothing — the check is one level down.
1011
+ * / · `addEip712Type` and `addEip712Destination` (one destination list per registered action) —
1012
+ * / pre-staging for a later payout is the thing a brake most needs to stop, so the destination
1013
+ * / lists are frozen along with the signing.
1035
1014
  * / · `sessionReadMemory` and `sessionAppendMemory` — the paid-memory rail, money coming IN.
1015
+ * / · An AGENT's conversion (`agentConvertBalance`), by any freeze — the owner's own included —
1016
+ * / before it starts and again after each await.
1036
1017
  * /
1037
1018
  * / AND WHAT IT DELIBERATELY DOES NOT, stated so the absence is not read as an oversight:
1038
1019
  * /
1039
- * / · `convertEarningsToCycles` — the owner's OWN earnings becoming their OWN engram's fuel. A
1040
- * / frozen engram still burns cycles, so freezing this would let a brake starve the thing it
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).
1020
+ * / · the owner's own `convertEarningsToCycles` in a first engram — the engram's OWN balance
1021
+ * / becoming its OWN fuel. A frozen engram still burns cycles, so freezing this would let a
1022
+ * / brake starve the thing it is protecting. Owner-only, capped per call, and it moves nothing
1023
+ * / outward. In an engram opened through another it stops under a guardian's freeze only.
1046
1024
  * / · `approveRequest` — an approval is not a spend. The spend it authorises goes through
1047
1025
  * / `x402SignFor`, which IS frozen, so an approval granted during a freeze simply waits.
1048
1026
  * / · `transferOwnership` — ownership is not a payment, and a guardian's PAYMENTS brake is not
1049
1027
  * / a veto on who owns the engram.
1050
1028
  * /
1051
- * / ⚠ The three exclusions are a reading of intent, not a ruling: no declaration stated the scope
1052
- * / before this one. If any of them is wrong, this comment is where the argument should happen.
1029
+ * / ⚠ The three exclusions are a reading of intent: no declaration stated the scope before this
1030
+ * / one. If any of them is wrong, this comment is where the argument should happen.
1053
1031
  */
1054
1032
  freezePayments: ActorMethod<[], Result_2>;
1055
1033
  /**
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.
1034
+ * / `freezePayments` with a reason an app can show ("Sam froze payments: 'a payment I didn't
1035
+ * / expect'"). A NEW method, not an argument on `freezePayments`: a shipped argument tuple is frozen.
1036
+ * / Same callers, same grant, same brake: the owner, or an active guardian holding
1037
+ * / `canFreezePayments`; an agent, a stranger, a pending guardian and the anonymous caller are
1038
+ * / refused by `requireOwnerOrGuardian`'s own words. An empty reason is no reason; a reason too long
1039
+ * / or holding a line break is `#Invalid` and the brake is NOT pulled — the caller pulls it with
1040
+ * / `freezePayments`, or shortens the words.
1063
1041
  */
1064
1042
  freezePaymentsWithReason: ActorMethod<[string], Result_2>;
1065
1043
  /**
1066
1044
  * / 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.
1045
+ * / Also readable by the seated sign-in of an engram opened through another, acting as the owner
1046
+ * / (`#ownerOrSignIn`); on a first engram only the owner reads it.
1069
1047
  */
1070
1048
  getActionAlertStatus: ActorMethod<[], Result_77>;
1071
1049
  /**
1072
1050
  * / 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.⟩
1051
+ * / PUBLIC: the class of `getTopUpLimits` — a policy, nobody's data.
1076
1052
  * / The cap an agent meets is `min(maxPerCallE6, getTopUpLimits().maxCkusdcE6s)`.
1077
1053
  */
1078
1054
  getAgentConvertRule: ActorMethod<[], AgentConvertRule>;
@@ -1097,8 +1073,8 @@ export interface Engram {
1097
1073
  * / order. Anyone else is refused by name (`#Refused getAgentSeatWeeks: …`), never answered with an
1098
1074
  * / empty page. Paged; `total` is every engagement ever paired here (a reset keeps the rows).
1099
1075
  * / 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.
1076
+ * / Also readable by the seated sign-in of an engram opened through another, acting as the owner
1077
+ * / (`#ownerOrSignIn`); on a first engram only the owner reads it.
1102
1078
  */
1103
1079
  getAgentSeatWeeks: ActorMethod<[bigint, bigint], Result_86>;
1104
1080
  /**
@@ -1109,9 +1085,8 @@ export interface Engram {
1109
1085
  * / them — the UI must page (markAgentWritesReviewed(?lastShownId)) and must NOT present 200
1110
1086
  * / as a total. `earliest` discloses ring eviction — if cursor < earliest, entries between them
1111
1087
  * / 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.
1088
+ * / Also readable by the seated sign-in of an engram opened through another, acting as the owner
1089
+ * / (`AccessControl.requireOwnerOrSignIn`); on a first engram only the owner reads it.
1115
1090
  */
1116
1091
  getAgentWriteReview: ActorMethod<[], Result_85>;
1117
1092
  /**
@@ -1124,23 +1099,21 @@ export interface Engram {
1124
1099
  /**
1125
1100
  * / The plain chain head — size and hash, world-readable, no certificate.
1126
1101
  * /
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.
1102
+ * / Added in 0.16.0. `Wire.AuditHead`'s own declaration says why it matters: heads exist TO BE
1103
+ * / COMPARED, a head nobody can read witnesses nothing, and the registry and biller already served
1104
+ * / exactly this shape — so the engram, "the canister that IS the evidence product", was the one
1105
+ * / chain a verifier could not ask for a head without also asking for a certificate it may not want.
1132
1106
  * /
1133
1107
  * / PUBLIC: bare, and it cannot refuse — a chain head discloses nothing about content or callers,
1134
- * / and gating it would make the comparison it exists for depend on permission. `getCertifiedAuditHead`
1135
- * / below serves the same head WITH the subnet certificate for a caller that needs to verify it
1136
- * / was signed rather than asserted.
1108
+ * / and gating it would make the comparison it exists for depend on permission.
1109
+ * / `getCertifiedAuditHead` serves the same head WITH the subnet certificate for a caller that needs
1110
+ * / to verify it was signed rather than asserted.
1137
1111
  */
1138
1112
  getAuditHead: ActorMethod<[], AuditHead>;
1139
1113
  getBackupMetadata: ActorMethod<[string], Result_84>;
1140
1114
  /**
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.
1115
+ * / How many backups of `dbType` each creator keeps, and whether that is the default. Without it the
1116
+ * / setting showed only on the device that last set it.
1144
1117
  * /
1145
1118
  * / WHO: the OWNER, and an active AGENT holding `canAppendMemory` — the permission that lets it
1146
1119
  * / upload backups, which are exactly the backups this number bounds (`#perm(#append_memory)`).
@@ -1160,22 +1133,21 @@ export interface Engram {
1160
1133
  */
1161
1134
  getBillerId: ActorMethod<[], [] | [Principal]>;
1162
1135
  /**
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⟩.
1136
+ * / This engram's BIRTH CHAIN, root first: its own record last, its parent's before it, and so on.
1137
+ * / The registry certifies each birth record's fingerprint.
1165
1138
  * /
1166
1139
  * / OWNER ONLY. The owner decides whom to show it to — the chain names the engrams this one descends
1167
1140
  * / from, which is the owner's to disclose, not the registry's. The certified half is at the registry
1168
1141
  * / (`getCertifiedBirth`, public, revealing only whether a fingerprint is present); the client's
1169
1142
  * / `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.
1143
+ * / Also readable by the seated sign-in of an engram opened through another, acting as the owner
1144
+ * / (`#ownerOrSignIn`); on a first engram only the owner reads it.
1172
1145
  */
1173
1146
  getBirthChain: ActorMethod<[], Result_82>;
1174
1147
  /**
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
1148
+ * / Each brake: on or off, and while on, who pulled it LAST (their key and whether as owner or
1149
+ * / guardian), since when, and the reason they gave — the same person and time as the newest brake
1150
+ * / entry on the record (`RecordWords.BrakePull`). For an owner's or a guardian's app. The OWNER and
1179
1151
  * / ACTIVE GUARDIANS may read it; an agent, a stranger, a pending guardian and the anonymous caller
1180
1152
  * / are refused (`#ownerOrGuardian` — an agent learns a brake is on from the refusal of what it tried,
1181
1153
  * / and needs no more). `pull` is null for a brake that is off, and for one carried on across the
@@ -1183,12 +1155,11 @@ export interface Engram {
1183
1155
  */
1184
1156
  getBrakes: ActorMethod<[], Result_81>;
1185
1157
  /**
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.
1158
+ * / `Wire.CertifiedAuditHead` (since 0.16.0), not an anonymous record. The registry, market and
1159
+ * / biller already served the shared type; the engram — the canister that IS the evidence product —
1160
+ * / was the one chain still answering in a shape of its own, missing `witness` entirely. One
1161
+ * / certified-head shape on every chain is the point: a verifier that can read three of them and not
1162
+ * / the fourth has to special-case the one that matters most.
1192
1163
  * /
1193
1164
  * / `witness = null` is the honest answer here and is NOT the same as an empty proof. This engram
1194
1165
  * / certifies its head via `CertifiedData` but keeps no witness tree, so there is no reveal to
@@ -1204,18 +1175,18 @@ export interface Engram {
1204
1175
  * / Readable by the owner and by that agent's own key — refused loudly to anyone else, never a zero
1205
1176
  * / (a zero would be a claim about another owner's grant).
1206
1177
  * /
1207
- * / ⟨2026-10-01, a review finding⟩ A QUERY, so the refusal is deliberately NOT written to the denial log: a
1208
- * / query's state writes are discarded when it returns, and the `denied` call first written here
1209
- * / recorded nothing while reading as if it did. The refusal is loud in the reply instead. WHAT
1210
- * / WOULD MAKE THIS WRONG: a reason to record who asked — then this becomes an update that says so.
1178
+ * / A QUERY, so the refusal is deliberately NOT written to the denial log: a query's state writes are
1179
+ * / discarded when it returns, so a `denied` call here would record nothing while reading as if it
1180
+ * / did. The refusal is loud in the reply instead. WHAT WOULD MAKE THIS WRONG: a reason to record who
1181
+ * / asked — then this becomes an update that says so.
1211
1182
  */
1212
1183
  getChildAllowance: ActorMethod<[Principal], Result_80>;
1213
1184
  /**
1214
1185
  * / Owner-only, Billing-class: what opening an engram costs this engram, the balance below which an
1215
- * / agent's request is refused, the balance now, and every agent's allowance. The console's cost
1216
- * / sentence reads it. Cycles are owner-class information, as on the owner's console read.
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.
1186
+ * / agent's request is refused, the balance now, and every agent's allowance. An app's cost sentence
1187
+ * / reads it. Cycles are owner-class information, as on `getOwnerConsole`.
1188
+ * / Also readable by the seated sign-in of an engram opened through another, acting as the owner
1189
+ * / (`#ownerOrSignIn`); on a first engram only the owner reads it.
1219
1190
  */
1220
1191
  getChildOpening: ActorMethod<[], Result_79>;
1221
1192
  /**
@@ -1224,17 +1195,15 @@ export interface Engram {
1224
1195
  * / sign-in opens the backup, and the key file holds the plaintext anyway). The derivation input is the
1225
1196
  * / sign-in's own principal, the same identity the kit sealed the copy to, so a former sign-in's key
1226
1197
  * / 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
1198
+ * / with no copy, all before the call. Each opening is recorded in the engram's record
1199
+ * / (`keyBackup.opened`, which the key file reads) and alerted to whatever address the sign-in has
1200
+ * / set — in an engram opened through another the sign-in sets the alert address, so a thief holding
1201
+ * / the sign-in can re-point it first. Not blocked by a freeze: a freeze must never lock the owner
1202
+ * / out of its own key.
1203
+ * /
1204
+ * / UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1236
1205
  * / `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
1206
+ * / Named callers: an owner's app signed in as the sign-in (the browser's recovery), and the owner
1238
1207
  * / kit's `--recover-key` signed by a key-file sign-in.
1239
1208
  */
1240
1209
  getEncryptedKeyBackupKey: ActorMethod<[Uint8Array | number[]], Result_76>;
@@ -1242,10 +1211,10 @@ export interface Engram {
1242
1211
  * / Derive the shared memory-encryption key, encrypted under the caller's transport
1243
1212
  * / public key. Gated to owner + read-agents (the same principals allowed to read
1244
1213
  * / memory). The client decrypts it locally with its transport secret key.
1245
- * / ⟨0.16.0⟩ THE FOLD: `epoch` is now an optional argument here, and the separate
1246
- * / `getEncryptedMemoryKeyForEpoch` is gone. Two methods differing only by whether one parameter
1247
- * / is present is what an optional argument is for, and the split forced a client to decide which
1248
- * / to call before it knew whether it needed rotation.
1214
+ * / `epoch` is an optional argument (since 0.16.0; there is no separate
1215
+ * / `getEncryptedMemoryKeyForEpoch`). Two methods differing only by whether one parameter is present
1216
+ * / is what an optional argument is for, and the split forced a client to decide which to call
1217
+ * / before it knew whether it needed rotation.
1249
1218
  * /
1250
1219
  * / `null` means CURRENT — not epoch 0. Those coincide today (nothing increments the epoch yet)
1251
1220
  * / and will not after the first rotation, which is exactly when a caller that meant "the key that
@@ -1255,35 +1224,34 @@ export interface Engram {
1255
1224
  * / Refusing a FUTURE epoch is not a bounds check, it is the rotation invariant: pre-deriving a
1256
1225
  * / key for an epoch nobody has reached would make rotating to it meaningless.
1257
1226
  * /
1258
- * / Also converted off the lowercase `#ok/#err` dialect (results spelled Ok/Err) — that spelling arrived from ic402
1259
- * / and had no business on a vetKD path, which touches nothing of ic402's.
1227
+ * / Results are spelled Ok/Err: the lowercase `#ok/#err` dialect came from ic402 and has no business
1228
+ * / on a vetKD path, which touches nothing of ic402's.
1260
1229
  * /
1261
- * / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1230
+ * / UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1262
1231
  * / `VetKeys.ManagementCanister.vetKdDeriveKey`. A query cannot await, so the round trip is the
1263
- * / cost. Stated here because the update-for-read rule requires the reason be readable from the interface rather than
1264
- * / inferred by opening the body — which is exactly what had to happen to write this line.
1232
+ * / cost. Stated here because an update used as a read must say why in its interface, rather than
1233
+ * / leave the reader to open the body.
1265
1234
  */
1266
1235
  getEncryptedMemoryKey: ActorMethod<[[] | [bigint], Uint8Array | number[]], Result_76>;
1267
1236
  /**
1268
- * / ⟨0.16.0, owner ruling 2026-08-20⟩ `x402Support` REPORTS THE RAIL, not a constant.
1237
+ * / `x402Support` REPORTS THE RAIL, not a constant (since 0.16.0).
1269
1238
  * /
1270
1239
  * / The card's config hardcodes `x402Support = true`, answering a buyer's question with a fact
1271
- * / about the software rather than about THIS engram. The 0.16.0 split moved the 402 challenge machinery to the
1240
+ * / about the software rather than about THIS engram. The 402 challenge machinery lives in the
1272
1241
  * / market; the one x402-payable rail the engram kept is `sessionReadMemory`, gated by
1273
- * / `paidMemoryReadEnabled`, which DEFAULTS TO FALSE. So a discovering agent was told this engram
1274
- * / takes x402 payments while every paid read on a default engram is refused with "the owner has
1275
- * / not opened the monetized read rail". Ruled (a) over keeping `true` to mean "can PARTICIPATE in
1276
- * / x402, including as a payer" — defensible, but not what a service card says to a buyer.
1242
+ * / `paidMemoryReadEnabled`, which DEFAULTS TO FALSE. So a discovering agent would be told this
1243
+ * / engram takes x402 payments while every paid read on a default engram is refused with "the owner
1244
+ * / has not opened the monetized read rail". `true` meaning "can PARTICIPATE in x402, including as a
1245
+ * / payer" is defensible, but it is not what a service card says to a buyer.
1277
1246
  * /
1278
1247
  * / Overridden HERE rather than at the config because the card is built once as a `public let`
1279
1248
  * / while the flag is runtime state, and `getCard()` belongs to the VENDORED ic402 module, which
1280
- * / is not ours to edit.
1249
+ * / is not this repository's to edit.
1281
1250
  * /
1282
1251
  * / ⚠ `signEngramRegistration` also reads `getCard()` and is deliberately NOT changed. It signs an
1283
1252
  * / ERC-8004 registration for on-chain publication — a point-in-time attestation nobody can
1284
1253
  * / re-sign every time an owner opens or closes the rail. Whether a signed record should carry
1285
- * / mutable operational state at all is a different decision, it is signing-adjacent, and the
1286
- * / ruling did not reach it. Filed, not folded in.
1254
+ * / mutable operational state at all is a separate, signing-adjacent decision, still open.
1287
1255
  * /
1288
1256
  * / PUBLIC: an agent card is a DISCOVERY document — its entire function is to tell a party that
1289
1257
  * / has never met this engram what it is and how to transact with it. A card behind a gate cannot
@@ -1291,46 +1259,25 @@ export interface Engram {
1291
1259
  */
1292
1260
  getEngramCard: ActorMethod<[], AgentCard>;
1293
1261
  /**
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.
1298
- * /
1299
- * / ⟨2026-08-21⟩ DO NOT FOLD THIS WITH `getEvmSignerAddress`. The 0.16.0 interface plan carried the fold
1300
- * / as an open item, conditional on "if the derivation is identical". It is not, and the condition
1301
- * / is decidable here rather than by reading either comment:
1302
- * /
1303
- * / this method EvmIdentity.deriveAddress -> derivation_path = []
1304
- * / the signer eip712PublicKey -> derivation_path = ["eip712"]
1262
+ * / The engram's own EVM addresses (`Types.EvmAddresses`): the payment address (`pay`) and the
1263
+ * / address that signs the engram's own registrations (`engramRegistration`). Derived through
1264
+ * / `EvmIdentity`, not through the ic402 Gateway, so the engram needs no marketplace to know its own
1265
+ * / address.
1305
1266
  * /
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);
1307
- * / the table is kept because the ARGUMENT it makes is unchanged and is the reason the fold is
1308
- * / still refused.⟩ The signer now reads `KeyPaths.EIP712` = `["engramx","eip712","secp256k1","v1"]`
1309
- * / and this method still derives at the empty path, because `pay` is the one row the genesis could
1310
- * / not move — ic402 2.15.0 parameterises `EvmSigner` but not `Gateway.deriveEvmRecipient`,
1311
- * / `EvmSender` or `Identity`, and moving the signer without them would split receiving from
1312
- * / spending. The paths are still DIFFERENT, which is the whole of the argument below, and they get
1313
- * / further apart at the genesis rather than closer.
1314
- * /
1315
- * / ⟨SHIPPED 2026-09-22, ic402 2.16.0 — the table is now BOTH rows labelled, and the argument is
1316
- * / unchanged, which is the point of keeping every version of it here:
1267
+ * / DO NOT FOLD THIS WITH `getEvmSignerAddress`. The derivations differ:
1317
1268
  * /
1318
1269
  * / this method EvmIdentity.deriveAddress -> KeyPaths.PAY = ["engramx","pay","secp256k1","v1"]
1319
1270
  * / the signer eip712PublicKey -> KeyPaths.EIP712 = ["engramx","eip712","secp256k1","v1"]
1320
1271
  * /
1321
- * / Two paths, one master key, therefore two addresses — exactly as when one of them was `[]`.
1322
- * / The fold stays refused for the reason below, not because one side happened to be a default.
1323
- * / What changed upstream is that `Gateway`, `EvmSender` and `Identity` all take a path now, so
1324
- * / the payment identity could move as ONE thing: this derivation, the gateway's inbound
1325
- * / recipient and outbound sender, and `Payments.evmSigner`. The genesis install derives them.⟩
1326
- * /
1327
1272
  * / Same master key and curve, different paths, therefore different public keys and DIFFERENT
1328
1273
  * / ADDRESSES — that is what a derivation path is for. The difference is also deliberate and
1329
1274
  * / security-bearing, not incidental: the signer key is declared "outbound-only, N=1, never the
1330
1275
  * / payment path — this key must never be able to move ic402 pool funds", so merging the two
1331
1276
  * / would hand the signing surface the payment key. `getEvmSignerAddress` carries the warning
1332
1277
  * / from its side ("the payment key's address is NOT this one, by design"); this is the other
1333
- * / side, because a fold is proposed by whoever reads either declaration first.
1278
+ * / side, because a fold is proposed by whoever reads either declaration first. The payment
1279
+ * / identity moves as ONE thing: this derivation, the gateway's inbound recipient and outbound
1280
+ * / sender, and `Payments.evmSigner` all take the `PAY` path.
1334
1281
  * /
1335
1282
  * / The gates differ too, which a fold would also have to collapse: this method is UNGATED (any
1336
1283
  * / caller may cause the derivation) and `getEvmSignerAddress` is owner-only.
@@ -1340,23 +1287,16 @@ export interface Engram {
1340
1287
  * / is exactly who needs it. The write it causes is bounded to one derivation and one
1341
1288
  * / set-once custody stamp per engram lifetime, which is what keeps "any caller may cause it"
1342
1289
  * / safe rather than merely permitted.
1343
- * / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1290
+ * / UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1344
1291
  * / `EvmIdentity.deriveAddress`, which reaches the management canister's `ecdsa_public_key`. A
1345
1292
  * / query cannot await it.
1346
1293
  * /
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.⟩
1349
- * /
1350
- * / ⟨2026-09-28⟩ THE REPLY IS A RECORD, `Types.EvmAddresses` — the payment address (`pay`, what this
1351
- * / method returned alone until then) and the address that signs the engram's own registrations
1352
- * / (`engramRegistration`). The owner decided that date to publish the registration address as a new
1353
- * / field on an existing address reply, not as a new method; nothing served it before, so an
1354
- * / agent could not read the address whose nonce `signEngramRegistration` needs and whose ETH
1355
- * / pays its gas. The registration address is read FROM THE SIGNER ITSELF
1356
- * / (`engramRegSigner.getEvmAddress`), not re-derived beside it, so the published address is by
1357
- * / construction the one the signatures come from. It is cached inside that signer object; the
1358
- * / cache is not stable, so the first call after an upgrade re-derives it once — the same one
1359
- * / public-key read, bounded, that the payment branch does on a null cache.
1294
+ * / The registration address is a field of this reply rather than a new method, so an agent can
1295
+ * / read the address whose nonce `signEngramRegistration` needs and whose ETH pays its gas. It is
1296
+ * / read FROM THE SIGNER ITSELF (`engramRegSigner.getEvmAddress`), not re-derived beside it, so the
1297
+ * / published address is by construction the one the signatures come from. It is cached inside that
1298
+ * / signer object; the cache is not stable, so the first call after an upgrade re-derives it once —
1299
+ * / the same one public-key read, bounded, that the payment branch does on a null cache.
1360
1300
  * /
1361
1301
  * / It refuses rather than half-answers: if either address cannot be derived the reply is
1362
1302
  * / `#Err`, never a record carrying an empty string (ic402's `getEvmAddress` answers `""` on a
@@ -1373,16 +1313,15 @@ export interface Engram {
1373
1313
  */
1374
1314
  getEvmOwnerAddress: ActorMethod<[], [] | [string]>;
1375
1315
  /**
1376
- * / The dedicated-key design ships with this: the address of the DEDICATED signing key. Without it the owner funds the
1377
- * / wrong address — the payment key's address is NOT this one, by design.
1316
+ * / The address of the DEDICATED typed-data signing key. Without it the owner funds the wrong
1317
+ * / address — the payment key's address is NOT this one, by design.
1378
1318
  * /
1379
- * / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: `eip712PublicKey()` awaits
1380
- * / the management canister's `ecdsa_public_key`. A query cannot await, so the round-trip is the
1381
- * / cost — stated here because the update-for-read rule requires the reason be readable from the interface rather than
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.
1319
+ * / UPDATE, NOT QUERY, and this is the system call that forces it: `eip712PublicKey()` awaits the
1320
+ * / management canister's `ecdsa_public_key`. A query cannot await, so the round-trip is the cost —
1321
+ * / stated here because an update used as a read must say why in its interface, rather than leave
1322
+ * / the reader to open the body.
1323
+ * / Also callable by the seated sign-in of an engram opened through another, acting as the owner
1324
+ * / (`AccessControl.requireOwnerOrSignIn`); on a first engram only the owner.
1386
1325
  */
1387
1326
  getEvmSignerAddress: ActorMethod<[], Result_58>;
1388
1327
  /**
@@ -1402,7 +1341,7 @@ export interface Engram {
1402
1341
  * / The sealed copy itself — opaque bytes only the sign-in can open. Readable by the sign-in (it
1403
1342
  * / opens them with the key `getEncryptedKeyBackupKey` derives for it) and by the key file, which
1404
1343
  * / 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
1344
+ * / made (a copy someone else stored first reads as "not this key", not as
1406
1345
  * / "sealed"). Refused in a first engram, and `#NotFound` when no copy is held. The copy that waits
1407
1346
  * / with an ask is never served here: it is inert until accepted.
1408
1347
  * / A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
@@ -1424,17 +1363,17 @@ export interface Engram {
1424
1363
  /**
1425
1364
  * / BLS verification key under which the owner kit seals the backup (`IbeCiphertext.encrypt` to the
1426
1365
  * / 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.
1366
+ * / has to know which master key this network uses (a wrong guess would seal a copy nobody can open).
1367
+ * / Static per (context, key id, canister) — cacheable.
1429
1368
  * /
1430
1369
  * / 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
1370
+ * / decrypt anything — the sensitive derivation is getEncryptedKeyBackupKey, which IS gated (the
1371
+ * / sign-in alone) and returns key material encrypted to the caller's transport key. The same
1433
1372
  * / 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
1373
+ * / UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1435
1374
  * / `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.
1375
+ * / Named callers: the owner kit, when it seals the copy at birth or for an ask; an owner's app, to
1376
+ * / verify the derived key during recovery.
1438
1377
  */
1439
1378
  getKeyBackupVerificationKey: ActorMethod<[], Uint8Array | number[]>;
1440
1379
  /**
@@ -1481,17 +1420,13 @@ export interface Engram {
1481
1420
  * / client to verify the derived key. Static per (context, key_id) — cacheable.
1482
1421
  * /
1483
1422
  * / PUBLIC: intentionally unauthenticated — a vetKD public key reveals nothing secret and
1484
- * / cannot decrypt anything — the sensitive derivation is getEncryptedMemoryKey
1485
- * / below, which IS gated (read_memory) and returns key material encrypted to the
1486
- * / caller's transport key. Do not add an auth guard here (breaks client caching).
1487
- * / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1423
+ * / cannot decrypt anything — the sensitive derivation is getEncryptedMemoryKey, which IS gated
1424
+ * / (read_memory) and returns key material encrypted to the caller's transport key. Do not add an
1425
+ * / auth guard here (breaks client caching).
1426
+ * / UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1488
1427
  * / `VetKeys.ManagementCanister.vetKdPublicKey`. A query cannot await, so the round trip is the
1489
- * / cost of getting a key nobody has to trust us for — which is the point of publishing it.
1490
- * /
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.⟩
1428
+ * / cost of getting a key nobody has to trust this canister for — which is the point of publishing
1429
+ * / it.
1495
1430
  */
1496
1431
  getMemoryKeyVerificationKey: ActorMethod<[], Uint8Array | number[]>;
1497
1432
  /**
@@ -1503,17 +1438,14 @@ export interface Engram {
1503
1438
  */
1504
1439
  getMemoryMaintainStatus: ActorMethod<[], MemoryMaintainStatus>;
1505
1440
  /**
1506
- * / The DECLARED policy. Read it together with getMemoryRetentionGuards — on its own it is not
1507
- * / what governs eviction.
1508
- * / ⟨0.16.0⟩ ONE PROJECTION, absorbing what were two methods — and the fold is a correctness fix,
1509
- * / not tidying.
1441
+ * / The DECLARED policy and the guards holding it back, in ONE PROJECTION (since 0.16.0, absorbing
1442
+ * / what were two methods) — and the fold is a correctness fix, not tidying.
1510
1443
  * /
1511
- * / Declared policy and the guards holding it back were separate reads, and a console rendering
1512
- * / only the first told an owner their policy was in force while a guard still held it. The old
1513
- * / `.did` warned in prose that the two had to be read TOGETHER; a comment is not a mechanism, and
1514
- * / the guard arms on the FIRST policy an owner ever sets — so the surface misled every owner who
1515
- * / ever touched retention, from first use. Making it one record makes reading half of it
1516
- * / impossible: the trap becomes structure.
1444
+ * / Declared policy and the guards were separate reads, and an app rendering only the first told an
1445
+ * / owner their policy was in force while a guard still held it. The old `.did` warned in prose that
1446
+ * / the two had to be read TOGETHER; a comment is not a mechanism, and the guard arms on the FIRST
1447
+ * / policy an owner ever sets — so the surface misled every owner who ever touched retention, from
1448
+ * / first use. Making it one record makes reading half of it impossible: the trap becomes structure.
1517
1449
  * /
1518
1450
  * / Refusal reasons of both merge: an empty policy reads as "nothing is capped, every version kept
1519
1451
  * / forever" — a claim about what this engram will DESTROY — and an empty guard list reads as
@@ -1538,15 +1470,14 @@ export interface Engram {
1538
1470
  */
1539
1471
  getMyGuardianStatus: ActorMethod<[], Result_19>;
1540
1472
  /**
1541
- * / ⟨0.16.0, NEW⟩ The gated half of the status() split.
1473
+ * / The gated half of the old `status()` (split in 0.16.0; `about()` is the public half).
1542
1474
  * /
1543
1475
  * / Every field is bare — no masking, no `authorized` discriminator — because reaching this record
1544
1476
  * / AT ALL is the authorization. An unauthorized caller gets `#Err(#Refused …)` and no record.
1545
1477
  * /
1546
- * / `cyclesBalance` is a bare `Nat`, and that retires an argument this repo carried for weeks. It
1547
- * / was `nat`, then widened to `opt nat` so a refusal could be `null`, which broke every published
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.
1478
+ * / `cyclesBalance` is a bare `Nat`. Widening it to `opt nat` so a refusal could be `null` broke
1479
+ * / every published client and bought a masked answer nobody had asked for (no consumer read the
1480
+ * / masked `0`). Behind a gate there is nobody to mask it from.
1550
1481
  */
1551
1482
  getOwnerConsole: ActorMethod<[], Result_72>;
1552
1483
  /**
@@ -1561,9 +1492,9 @@ export interface Engram {
1561
1492
  */
1562
1493
  getOwnerSignIn: ActorMethod<[], Result_71>;
1563
1494
  /**
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.
1495
+ * / The open offer, to the two parties to it: the owner and the principal it names. `null` when
1496
+ * / none is open or it has expired. Anyone else is refused: an offer names a principal who has not
1497
+ * / agreed to anything yet, so it is not public the way the custody chain is.
1567
1498
  */
1568
1499
  getOwnershipOffer: ActorMethod<[], Result_70>;
1569
1500
  /**
@@ -1578,8 +1509,8 @@ export interface Engram {
1578
1509
  * /
1579
1510
  * / A NAMED RECORD, not a Page: the setter replaces this list wholesale, so there is no window to
1580
1511
  * / page over and no `total` that could differ from `items.size()`. Forcing the Page shape here
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.
1512
+ * / would be uniformity for its own sake — whole-value configuration is exempt from the page shape
1513
+ * / precisely so that the one page shape does not become a rule applied past its meaning.
1583
1514
  * /
1584
1515
  * / The trap's `whyNotEmpty` clause is preserved as the `#Refused` reason: `[]` would read as "no
1585
1516
  * / path on this engram is protected", and an agent consults this list precisely to avoid
@@ -1593,11 +1524,11 @@ export interface Engram {
1593
1524
  * / counts now, and whether the history is full (then "not paid before" may be one it forgot). Read
1594
1525
  * / beside the request, because the stored request is never reshaped. For the key file and the sign-in
1595
1526
  * / (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.
1527
+ * / Also how many times x402 has paid it, the largest of those payments (`timesPaid`,
1528
+ * / `largestPaidE6`, six-decimal minor units) and when it was LAST paid (`lastPaidAtNs`; null when
1529
+ * / never), so a card can say "paid 3 times, largest $12"; the history forgets the address paid
1530
+ * / longest ago when full.
1531
+ * / Named callers: an owner's app, on its approval card for a payment request.
1601
1532
  */
1602
1533
  getRecipientHistory: ActorMethod<[string], Result_67>;
1603
1534
  /**
@@ -1610,13 +1541,12 @@ export interface Engram {
1610
1541
  /**
1611
1542
  * / Owner-only, Billing-class: the signing floor, the balance, one signature's price, and how many
1612
1543
  * / payment signatures the balance carries above the floor before `signX402Payment` is refused by
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.
1544
+ * / name. The same numbers the check uses, so an app can say only what the engram enforces.
1545
+ * / Refused by name (`#Unavailable`) while this engram has not read its own freezing setting: there
1546
+ * / is no floor to serve then, and a 30-day figure would be a made-up one (refusal over
1547
+ * / fabrication) — the signers refuse in that state too, so the refusal is the truth.
1548
+ * / Also readable by the seated sign-in of an engram opened through another, acting as the owner
1549
+ * / (`#ownerOrSignIn`); on a first engram only the owner reads it.
1620
1550
  */
1621
1551
  getSigningFloor: ActorMethod<[], Result_66>;
1622
1552
  /**
@@ -1630,20 +1560,18 @@ export interface Engram {
1630
1560
  getSpawnedBy: ActorMethod<[], [] | [Principal]>;
1631
1561
  /**
1632
1562
  * / Read the engram-wide daily ceiling and what has been spent against it today, across every
1633
- * / caller. ⟨2026-09-28, the owner's decision to add the ceiling⟩
1634
- * / ⟨CORRECTED 2026-09-29, a review finding: "spent" means signed in x402 payments; typed-data
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.
1563
+ * / caller. "Spent" means signed in x402 payments, plus an agent's conversion of the engram's balance
1564
+ * / into compute (`agentConvertBalance`, in a first engram too) and, in an engram opened through
1565
+ * / another, the key file's Convert; both conversions are reserved before their first await and given
1566
+ * / back when nothing left the wallet. Typed-data and the engram's registration signatures are not
1567
+ * / counted here — see `setSpendCeiling`.
1640
1568
  * /
1641
1569
  * / OWNER-ONLY, for the reason `getSpendPolicy` is: the limits are the owner's custody
1642
1570
  * / configuration, and the engram-wide total would also tell one agent how much the others spent.
1643
1571
  * / A refusal names this method (`Gated.gatedResult`) rather than answering null/0 — a ceiling of
1644
1572
  * / "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.
1573
+ * / Also readable by the seated sign-in of an engram opened through another, acting as the owner
1574
+ * / (`#ownerOrSignIn`); on a first engram only the owner reads it.
1647
1575
  */
1648
1576
  getSpendCeiling: ActorMethod<[], Result_65>;
1649
1577
  /**
@@ -1655,104 +1583,82 @@ export interface Engram {
1655
1583
  * / configuration, and publishing them would tell any caller exactly how large a signing request
1656
1584
  * / can be before it needs an approval nobody is watching for.
1657
1585
  * /
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`.
1586
+ * / Also readable by the seated sign-in of an engram opened through another, acting as the owner,
1587
+ * / through the combinator's `#ownerOrSignIn` (on a first engram, the owner only). The refusal is
1588
+ * / the combinator's (`#Refused getSpendPolicy: …`, `requireOwner`'s words), and an engram with no
1589
+ * / owner yet is refused the same way rather than answered `#Conflict`. It never fails soft:
1590
+ * / spending caps are the owner's custody configuration, and a default-looking answer would
1591
+ * / understate the real limits to anyone probing them.
1666
1592
  */
1667
1593
  getSpendPolicy: ActorMethod<[[] | [Principal]], Result_64>;
1668
1594
  getStorageStats: ActorMethod<[], Result_63>;
1669
1595
  /**
1670
1596
  * / Timer arm-state. PUBLIC and deliberately so: these timers are self-arming to save cycles,
1671
1597
  * / and an optimisation nobody can verify is an optimisation nobody should trust. Cheap to read,
1672
- * / leaks nothing (booleans about our own scheduling).
1673
- * /
1674
- * / IDLE STEADY STATE (no webhook, no x402 sessions, no service jobs):
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.
1598
+ * / leaks nothing (booleans about this engram's own scheduling).
1679
1599
  * /
1680
- * / ⚠ CORRECTED 2026-08-19. This said `jobExpiryArmed=TRUE` and that it "stays true by design —
1681
- * / ic402 keeps an hourly idle POLL because createJobFromReceipt is synchronous and cannot disarm a
1682
- * / timer itself". Both halves are stale, and an ops reader comparing a live engram against this
1683
- * / paragraph would have seen `false` and gone looking for a fault that is not there.
1600
+ * / IDLE STEADY STATE (no alert delivery owed, no x402 sessions):
1601
+ * / alertTimerArmed=false sessionExpiryArmed=false
1684
1602
  * /
1685
- * / The engram sets `setExpiryIdlePollSeconds(0)` in its actor body, and ic402's ServiceRegistry
1686
- * / CANCELS the timer outright at 0 rather than re-arming it — so the hourly tick this paragraph
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.
1603
+ * / `alertTimerArmed` is TRUE ONLY WHILE A DELIVERY IS OWED OR RETRYING (the alert drain is a
1604
+ * / one-shot armed per owed delivery); alerts configured on a quiet engram read false, and that is
1605
+ * / correct. It reads the arm's DUE TIME, not only its id (`ActionAlerts.armLive`): a job that traps
1606
+ * / before its first await rolls back its own `alertTimerId := null`, so a bare id would read armed
1607
+ * / forever. ONE BOUNDED UNTRUTH: for ARM_STALE_NS (120 s) after the due time of such a trapped job,
1608
+ * / the flag reads true although no timer exists.
1690
1609
  * /
1691
1610
  * / EXPECTED FALSE POSITIVE: for up to one interval after any install or upgrade,
1692
1611
  * / sessionExpiryArmed reads true with zero sessions. ic402's startTimers arms unconditionally
1693
1612
  * / because a persistent actor re-runs its init body BEFORE postupgrade restores stable sessions,
1694
1613
  * / so a predicate-gated arm would skip exactly the canisters that have live ones. The first tick
1695
- * / disarms it. Still true minutes after an upgrade is a real bug — report it upstream.
1696
- * / ⟨2026-10-07, beside the paragraph above⟩ The session sweep's interval is 300 seconds now (the
1697
- * / owner's decision of that day; set in the actor body), so "one interval" is up to five minutes,
1698
- * / and true five minutes after an upgrade is still expected. True ten minutes after, with no session
1699
- * / open, is the bug.
1614
+ * / disarms it. The session sweep's interval is 300 seconds (set in the actor body), so true five
1615
+ * / minutes after an upgrade is still expected; true ten minutes after, with no session open, is a
1616
+ * / real bug — report it upstream.
1617
+ * /
1618
+ * / BOTH FLAGS READ FALSE WHILE THE TIMERS ARE PAUSED (near its freezing line the engram pauses its
1619
+ * / own timers). The pause cancels ic402's sweep, but ic402 keeps the stale id, so its own "armed"
1620
+ * / read would answer true for a timer that no longer exists — a fabricated answer.
1621
+ * /
1700
1622
  * / NOT the whole timer story. The hourly CYCLE timer — which also carries audit anchoring — is
1701
1623
  * / deliberately absent: it is a `transient let` armed unconditionally at init, so an "armed"
1702
- * / boolean for it would read true forever and tell you nothing, exactly the false-positive the
1703
- * / paragraph above describes for sessionExpiryArmed. Use getAnchorPushStatus() instead: last-tick
1704
- * / TIMESTAMPS are evidence where an arm flag is only an intention.
1705
- * /
1706
- * / PUBLIC: the same standing as the two liveness reads above. Booleans and timestamps about this
1707
- * / canister's own timers — nothing about content, callers or money — and a liveness signal only
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.
1624
+ * / boolean for it would read true forever and tell you nothing, exactly the false-positive
1625
+ * / described above for sessionExpiryArmed. Use getAnchorPushStatus() instead: last-tick
1626
+ * / TIMESTAMPS are evidence where an arm flag is only an intention. The record's other fields (the
1627
+ * / hourly check-in's breaker counts, ic402's maintenance timer) are described at
1628
+ * / `Types.TimerHealth`.
1629
+ * /
1630
+ * / PUBLIC: the same standing as the other liveness reads (`getAnchorPushStatus`). Booleans and
1631
+ * / timestamps about this canister's own timers — nothing about content, callers or money — and a
1632
+ * / liveness signal only its owner can read cannot tell a third party that the engram is still
1633
+ * / running.
1721
1634
  */
1722
1635
  getTimerHealth: ActorMethod<[], TimerHealth>;
1723
1636
  /**
1724
1637
  * / PUBLIC: a cap identifies no user, and a caller deserves to know the rule before it stops them.
1725
1638
  * /
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
1729
- * / wrapping it in `Result` would be ceremony that implies a gate exists.
1639
+ * / It was owner-gated behind a trap before 0.16.0. What a disclosure has to ask is what the value
1640
+ * / reveals, and the answer here is nothing about anybody — it is a policy ceiling, not a balance or
1641
+ * / a history. Publishing it removes the trap AND the envelope: an ungated read has no refusal to
1642
+ * / carry, so wrapping it in `Result` would be ceremony that implies a gate exists.
1730
1643
  * /
1731
1644
  * / Predictability is itself the honesty posture: a limit that only reveals itself by refusing a
1732
- * / top-up teaches the caller by failure. `/// PUBLIC:` is the marker the public-reason gate greps for.
1645
+ * / top-up teaches the caller by failure.
1733
1646
  */
1734
1647
  getTopUpLimits: ActorMethod<[], { cooldownSeconds: bigint; maxCkusdcE6s: bigint }>;
1735
1648
  /**
1736
- * / ⟨0.16.0⟩ `walletBalance()` DELETED — a ONE-LETTER trap beside `walletBalances()`, and a strict
1737
- * / projection of it: it returned `ExperimentalCycles.balance()`, which is `WalletBalances.cycles`.
1649
+ * / RENAMED from `walletBalances` (a `get*` for a single value). Its one-letter sibling
1650
+ * / `walletBalance()` was DELETED in 0.16.0: it returned `ExperimentalCycles.balance()`, which is
1651
+ * / `WalletBalances.cycles`. Two methods whose names differ by a single character, with the same
1652
+ * / gate and one a subset of the other, is a call site waiting to be written wrong — and wrong in
1653
+ * / the direction that silently reads cycles when it meant to read money. (`getWalletCycles` is the
1654
+ * / cycles-only read, named for its unit.)
1738
1655
  * /
1739
- * / Two methods whose names differ by a single character, with the same gate and one a subset of
1740
- * / the other, is a call site waiting to be written wrong — and wrong in the direction that
1741
- * / silently reads cycles when it meant to read money. Doc callers (CLI-REFERENCE, Docs.vue) sweep
1742
- * / to the survivor.
1743
- * / RENAMED from `walletBalances` (a `get*` for a single value).
1744
- * /
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.
1656
+ * / UPDATE, NOT QUERY: it awaits three ICRC-1 ledgers. The name cannot say that, so the declaration
1657
+ * / does — a caller budgeting round-trips needs to know this is not a query.
1748
1658
  * /
1749
1659
  * / The ledger failure is `#Unavailable`, not `#Invalid`: a dependency refused or timed out, the
1750
1660
  * / request was fine, and retry is the correct response. That is the one arm in the whole set that
1751
1661
  * / means "try again", and it is the reason `Error` is a closed variant rather than a sentence.
1752
- * /
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
1662
  */
1757
1663
  getWalletBalances: ActorMethod<[], Result_62>;
1758
1664
  /**
@@ -1761,9 +1667,9 @@ export interface Engram {
1761
1667
  * / the unit, while getWalletBalances retains the distinct full token-wallet operation.
1762
1668
  * / A token-ledger outage cannot prevent this local fuel read; it uses the same operation as
1763
1669
  * / 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.
1670
+ * / UPDATE, NOT QUERY, despite having no await: it keeps the wallet facade's per-agent quota charge and
1671
+ * / lastSeenNs update, including when wallet permission is subsequently refused. A query would
1672
+ * / discard those writes and silently loosen the agent's existing rate limit.
1767
1673
  */
1768
1674
  getWalletCycles: ActorMethod<[], Result_15>;
1769
1675
  /**
@@ -1774,11 +1680,11 @@ export interface Engram {
1774
1680
  */
1775
1681
  getWorldIdConfig: ActorMethod<[], Result_61>;
1776
1682
  /**
1777
- * / ⟨update-for-read⟩ UPDATE, NOT QUERY: this awaits THREE system calls — `raw_rand()` for the nonce,
1683
+ * / UPDATE, NOT QUERY: this awaits THREE system calls — `raw_rand()` for the nonce,
1778
1684
  * / `Call.signWithEcdsa` for the signature, and `worldIdRpPublicKey()` for the derived key. A
1779
1685
  * / query can do none of them.
1780
1686
  * /
1781
- * / Owner-only: produce a World ID 4.0 relying-party context for the frontend's IDKit request.
1687
+ * / Owner-only: produce a World ID 4.0 relying-party context for the client's IDKit request.
1782
1688
  * / Valid iff the derived signer address (getWorldIdRpSignerAddress) is registered for this rp_id in
1783
1689
  * / the World Developer Portal. Short-lived (300s TTL, idkit-server's default) and single-purpose —
1784
1690
  * / it authorizes opening one verification request, nothing else.
@@ -1790,18 +1696,19 @@ export interface Engram {
1790
1696
  * / Portal — the engram never holds or exports a private key (only threshold shares exist, on the
1791
1697
  * / subnet). Distinct from the payment/EVM address by construction.
1792
1698
  * /
1793
- * / ⟨update-for-read⟩ UPDATE, NOT QUERY, for TWO reasons and the second is the one a reader would miss. It
1794
- * / awaits `worldIdRpPublicKey()` (management `ecdsa_public_key`), and it calls `denied()` on
1795
- * / refusal — a state write, which a query cannot perform. So even if the key were cached this
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.
1699
+ * / UPDATE, NOT QUERY, for TWO reasons and the second is the one a reader would miss. It awaits
1700
+ * / `worldIdRpPublicKey()` (management `ecdsa_public_key`), and it calls `denied()` on refusal — a
1701
+ * / state write, which a query cannot perform. So even if the key were cached this could not become
1702
+ * / a query without silently retiring its denial record (the refusal-over-fabrication class).
1703
+ * / Also callable by the seated sign-in of an engram opened through another, acting as the owner
1704
+ * / (`AccessControl.requireOwnerOrSignIn`); on a first engram only the owner.
1800
1705
  */
1801
1706
  getWorldIdRpSignerAddress: ActorMethod<[], Result_58>;
1802
1707
  /**
1803
1708
  * / The verified IDKitResult, verbatim, as World's /api/v4/verify accepted it — the re-checkable
1804
- * / artifact behind verifiedHuman. Role-gated because it carries the NULLIFIER.
1709
+ * / artifact behind verifiedHuman. OWNER ONLY, because it carries the NULLIFIER: the owner's
1710
+ * / unique-human pseudonym. An agent never needs it, and a guardian is a check on agents, not a party
1711
+ * / to it.
1805
1712
  * / `Result<opt Text>` — and the double wrapper is the entire point, not redundancy.
1806
1713
  * /
1807
1714
  * / `#Ok(null)` means HONEST ABSENCE: no verification is on record, and you were entitled to ask.
@@ -1809,27 +1716,17 @@ export interface Engram {
1809
1716
  * / one `null`, so a caller lacking a grant was told an unverified human stands behind this engram
1810
1717
  * / — a false claim about a person, produced by an authorization failure.
1811
1718
  * /
1812
- * / The artifact stays role-gated because it carries the NULLIFIER. The public, anonymous answer to
1813
- * / "is a human behind this engram" is `about().verifiedHuman`, which is a boolean and leaks
1814
- * / nothing.
1815
- * /
1816
- * / ⟨CORRECTED 2026-08-21 — this said `metrics().verifiedHuman`, and `metrics()` no longer exists:
1817
- * / The same-concept-same-name law folded it and `status()` into `about()`, which carries the field. The sentence is a
1818
- * / `///`, so the dead name was PUBLISHED in engram.did and pointed every client at a method the
1819
- * / canister does not serve. The tombstones below and at `about()` are historical and correct as
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`.
1719
+ * / The public, anonymous answer to "is a human behind this engram" is `about().verifiedHuman`,
1720
+ * / which is a boolean and leaks nothing.
1825
1721
  */
1826
1722
  getWorldIdVerification: ActorMethod<[], Result_59>;
1827
1723
  /**
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
1832
- * / guardian's standing is what fell short, and no change to engram state would let them through.
1724
+ * / THE EMERGENCY FAMILY (refusals are values, never traps). Every refusal below is `#Refused` or
1725
+ * / `#NotFound`, and the absence of a `#Conflict` here is the point: these are the calls someone
1726
+ * / makes while something is going wrong, and the only two answers that help are "you may not do
1727
+ * / this" and "there is nothing by that name". A missing PERMISSION is `#Refused` rather than
1728
+ * / `#Conflict` — the guardian's standing is what fell short, and no change to engram state would
1729
+ * / let them through.
1833
1730
  */
1834
1731
  guardianRevokeAgent: ActorMethod<[Principal], Result_2>;
1835
1732
  /**
@@ -1854,10 +1751,6 @@ export interface Engram {
1854
1751
  */
1855
1752
  http_request_update: ActorMethod<[HttpRequest], HttpResponse>;
1856
1753
  /**
1857
- * / ⟨0.16.0⟩ `isPaidMemoryReadEnabled()` DELETED — folded to `about().paidMemoryReadEnabled`
1858
- * / (one idiom for a boolean feature — a setter plus the flag on its family's projection).
1859
- * / Its callers are a buyer's pre-check and the market canister, both ANONYMOUS, so the public
1860
- * / projection is exactly where it belongs.
1861
1754
  * / PUBLIC: a wallet calls this BEFORE its user has any standing on this engram — that is what the
1862
1755
  * / call is for — so gating it would make the message unreadable at exactly the moment it is
1863
1756
  * / needed, and a signature given without it is a signature given blind.
@@ -1891,13 +1784,9 @@ export interface Engram {
1891
1784
  */
1892
1785
  issueAuthCode: ActorMethod<[string, string, string, [] | [string]], Result_58>;
1893
1786
  /**
1894
- * / ⟨0.16.0⟩ `getCycleSnapshotSource` DELETED — folded into `CycleSnapshot.source`, one label per
1895
- * / ROW. A single label for a whole ring misattributes every row recorded under the other source,
1896
- * / and the source flips by design (self-call first, balance on fallback). Its documentation of
1897
- * / what the two values mean lives on the type.
1898
1787
  * / Hourly (timestamp, totalMemoryReads, totalMemoryWrites) snapshots, ~30 days.
1899
- * / Same guard + fail-to-empty shape as getCycleHistory. Diff consecutive rows for a
1900
- * / per-engram activity time-series (retention instrumentation).
1788
+ * / Same guard as `listCycleSnapshots` (any role). Diff consecutive rows for a per-engram activity
1789
+ * / time-series (retention instrumentation).
1901
1790
  * / RENAMED from `getActivityHistory` (a `get*` returns one value, a `list*` a page); named fields replace a
1902
1791
  * / bare 3-tuple whose two Nats were positionally indistinguishable.
1903
1792
  * /
@@ -1917,13 +1806,12 @@ export interface Engram {
1917
1806
  */
1918
1807
  listAgentRoster: ActorMethod<[bigint, bigint], Result_56>;
1919
1808
  /**
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.
1809
+ * / OWNER-ONLY: what each agent has spent today, beside the daily limit in force for it, so an app's
1810
+ * / agent rows can say "$0.50 of $5.00 today". Read from the state the payment path already keeps —
1811
+ * / `outboundSpendToday`, through `SpendCeiling.callerSpentOn` (the reader `x402SignFor` uses) — and
1812
+ * / the limits from `gate.getPolicy(<the agent's key>)`, the policy `x402SignFor` checks, on the UTC
1813
+ * / day it checks (`SpendCeiling.dayIndex`). Amounts are the token's minor units, as the record's
1814
+ * / `amount=` writes them. No new state.
1927
1815
  * /
1928
1816
  * / OWNER-ONLY for `getSpendCeiling`'s reason: one agent's spending is the owner's custody
1929
1817
  * / information, and would tell another agent how much it spent. Everyone else — an agent, a
@@ -1933,17 +1821,17 @@ export interface Engram {
1933
1821
  * / because the payment path keeps no figure then (`SpendCeiling.AgentSpendRow` says why).
1934
1822
  * / WHAT WOULD MAKE THIS WRONG: `x402SignFor` keeping the per-caller total by something other than
1935
1823
  * / 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.
1824
+ * / Also readable by the seated sign-in of an engram opened through another, acting as the owner
1825
+ * / (`#ownerOrSignIn`); on a first engram only the owner reads it.
1938
1826
  */
1939
1827
  listAgentSpendToday: ActorMethod<[bigint, bigint], Result_55>;
1940
1828
  /**
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).
1829
+ * / THE PAGE EXEMPLAR (since 0.16.0). A trap became `#Refused`, and a bare array became
1830
+ * / `Result<Page<T>>`: refusals are values, and a list answers the one page shape.
1943
1831
  * /
1944
1832
  * / The refusal prose that used to be `gatedTrap`'s `whyNotEmpty` argument is not lost — it is why
1945
- * / this method could never fail soft, and it now travels ON THE WIRE inside `#Refused` where a
1946
- * / caller can actually read it, instead of inside a trap message only a log sees.
1833
+ * / this method could never fail soft, and it travels ON THE WIRE inside `#Refused` where a caller
1834
+ * / can actually read it, instead of inside a trap message only a log sees.
1947
1835
  * /
1948
1836
  * / `total` is the ROSTER SIZE, not `items.size()`. That distinction is the whole reason this
1949
1837
  * / shape exists here: `MAX_AGENTS` clamps the returned rows, and the old code returned the
@@ -1953,8 +1841,8 @@ export interface Engram {
1953
1841
  * /
1954
1842
  * / `withheld` is 0: this roster is owner-only in whole, so there is no partial-visibility case.
1955
1843
  * / 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.
1844
+ * / Also readable by the seated sign-in of an engram opened through another, acting as the owner
1845
+ * / (`#ownerOrSignIn`); on a first engram only the owner reads it.
1958
1846
  */
1959
1847
  listAgents: ActorMethod<[bigint, bigint], Result_54>;
1960
1848
  /**
@@ -1974,9 +1862,9 @@ export interface Engram {
1974
1862
  /**
1975
1863
  * / Owner-only: rows carry caller, amount, operation and free-text rationale. The SDK omits it.
1976
1864
  * /
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.
1865
+ * / The optional leading filter stays (a list may take an optional leading filter): an app calls
1866
+ * / the filtered form, and pushing the filter client-side would make it fetch a queue to discard
1867
+ * / most of it.
1980
1868
  * /
1981
1869
  * / `total` counts the FILTERED set, not the whole queue: with a filter applied, "how many match"
1982
1870
  * / is the number a pager needs, and reporting the unfiltered count would make every filtered view
@@ -1986,103 +1874,81 @@ export interface Engram {
1986
1874
  */
1987
1875
  listApprovalRequests: ActorMethod<[[] | [ApprovalStatus], bigint, bigint], Result_39>;
1988
1876
  /**
1989
- * / ⟨0.16.0⟩ `total` IS THE HEAD COUNTER, and on this method that is the entire point.
1877
+ * / `total` IS THE HEAD COUNTER, and on this method that is the entire point.
1990
1878
  * /
1991
1879
  * / The audit log is a bounded RING: it trims its tail, so "rows you can read" and "entries that
1992
- * / have ever existed" are different numbers. The old bare array published only the first, which
1880
+ * / have ever existed" are different numbers. A bare array would publish only the first, which
1993
1881
  * / made a trimmed log indistinguishable from a complete one — and this is the evidence surface,
1994
1882
  * / where that difference IS the product. `totalAppended()` is monotonic across trims and is the
1995
1883
  * / same number `getCertifiedAuditHead` publishes, so a caller comparing page against head gets
1996
1884
  * / agreement by construction rather than by luck.
1997
1885
  * /
1998
- * / Refusal reason preserved: for an unauthenticated integrity check the caller wants
1999
- * / `getCertifiedAuditHead()`, which is public and subnet-certified. The BODIES are role-gated.
2000
- * /
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.
1886
+ * / PUBLIC, and nothing here refuses: the reply is a `Wire.RecordPage`. AN AGENT READS ONLY THE
1887
+ * / ENTRIES IT CAUSED; the owner and guardians read everything (`RecordView`); a caller with no
1888
+ * / role, the anonymous caller included, is a stranger (`RecordView.readerFrom`) and gets only
1889
+ * / sealed rows. `limit` is a SPAN — how many record ids to examine from `start` — and every entry
1890
+ * / in the span the reader may not see in full comes back as a hash-only row in `sealed` (id,
1891
+ * / SHA-256 of its body, entry hash), so `items.size() + sealed.size()` is the span examined. Each
1892
+ * / entry is hashed first, then chained (`AuditLog`), so those rows are enough to walk from any
1893
+ * / entry to the certified head — which is what lets a stranger check one entry without the owner.
1894
+ * / For an unauthenticated integrity check, `getCertifiedAuditHead()` is public and subnet-certified.
2018
1895
  * / `ringFloor` says where the ring starts — a `start` below it begins at it — and `hashFirstFrom`
2019
1896
  * / where this record switched to the hash-first rule. A sealed row costs one SHA-256 of its body
2020
1897
  * / 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).
1898
+ * / of a body, or a stranger reaching `items` (test/record-view.test.mo pins both); or a reader who
1899
+ * / must see the whole record without being the owner or a guardian — the public certified head is
1900
+ * / the answer for integrity, and nothing else is.
2022
1901
  */
2023
1902
  listAuditEntries: ActorMethod<[bigint, bigint], Result_52>;
2024
1903
  /**
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.
1904
+ * / ONE SHAPE FOR EVERY CALLER (since 0.16.0: refusals are values, and a list answers the one page
1905
+ * / shape).
2027
1906
  * /
2028
1907
  * / This method used to answer THREE ways to one question: a list, an `#Err` text, and a trap,
2029
1908
  * / picked by which kind of caller asked. That split existed only because the return type could
2030
1909
  * / not carry a refusal — with `Result<Page<T>>` it can, so every caller gets one shape and the
2031
1910
  * / arm says which no it is. A paired agent lacking `canReadBackup` is `#Refused`; so is
2032
- * / everyone else who may not ask. The trap is gone: `Debug.trap` is for invariant violations,
2033
- * / never authorization (refusals are values, never traps), and a refusal a caller cannot catch is not
2034
- * / a better refusal.
2035
- * /
2036
- * / ⚠ THE RATIFIED LOCKSTEP EXCEPTION THIS CARRIED IS SUPERSEDED, not quietly dropped.
2037
- * / The recorded lockstep exception for `listBackups` existed because published
2038
- * / @engramx/client 0.15.0 declares `IDL.Vec(BackupMetadata)` here and cannot decode a variant at
2039
- * / all — it throws — and @engramx/openclaw's dedup probe catches that throw and degrades to
2040
- * / "skipped", so every database silently stops being backed up while the CLI reports success.
2041
- * / That analysis was correct and is still correct. What changed is its PREMISE: the redesign plan measured
2042
- * / the installed base at zero external users (prod = two engrams, both ours; npm published
2043
- * / 2026-08-14), so the population the ceremony protected does not exist. The SDK is republished
2044
- * / at 0.16.0 in this same campaign. If an outside caller ever appears before that ships,
2045
- * / this reasoning is void and the lockstep is owed again.
2046
- * /
2047
- * / `dbTypeFilter` DIES on the wire (the 0.16.0 interface plan). The capability does not: `EngramClient.listBackups`
2048
- * / keeps its optional filter and applies it to the page, so no caller loses the ability to ask
2049
- * / "backups of this database" — it stops being a thing the canister has to page around.
1911
+ * / everyone else who may not ask. There is no trap: `Debug.trap` is for invariant violations,
1912
+ * / never authorization, and a refusal a caller cannot catch is not a better refusal.
1913
+ * /
1914
+ * / The reshape breaks clients built for 0.15.0: @engramx/client 0.15.0 declares
1915
+ * / `IDL.Vec(BackupMetadata)` here and cannot decode a variant at all — it throws — and
1916
+ * / @engramx/openclaw's dedup probe catches that throw and degrades to "skipped", so every database
1917
+ * / silently stops being backed up while the CLI reports success. That was accepted because the
1918
+ * / installed base of 0.15.0 had no outside users when 0.16.0 shipped, and the SDK was republished
1919
+ * / with it; a client from either side of 0.16.0 does not interoperate with the other.
1920
+ * /
1921
+ * / There is no `dbTypeFilter` on the wire. The capability remains: `EngramClient.listBackups` keeps
1922
+ * / its optional filter and applies it to the page, so no caller loses the ability to ask "backups
1923
+ * / of this database" — it stops being a thing the canister has to page around.
2050
1924
  */
2051
1925
  listBackups: ActorMethod<[bigint, bigint], Result_51>;
2052
1926
  /**
2053
- * / List all bearer tokens — Active, Revoked, and Expired. Owner uses this in
2054
- * / the dashboard to show installed Connectors (claude.ai, Claude Desktop, etc.).
1927
+ * / List all bearer tokens — Active, Revoked, and Expired. An owner's app uses this to show the
1928
+ * / installed connectors (claude.ai, Claude Desktop, etc.).
2055
1929
  * / Refusal reason preserved from the trap: `[]` reads as "no connector is installed on this
2056
1930
  * / engram" — a claim about what can REACH it. An owner auditing access cannot tell that from
2057
1931
  * / "you may not see the list", and the two are opposite facts.
2058
1932
  * /
2059
1933
  * / `bearerTokenStore.list()` already resolves each token's status at read time (a token that
2060
1934
  * / merely stopped being used is reported `#Expired`, not a stale `#Active`), so the page carries
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.
1935
+ * / the store's honesty.
1936
+ * / Also readable by the seated sign-in of an engram opened through another, acting as the owner
1937
+ * / (`#ownerOrSignIn`); on a first engram only the owner reads it.
2064
1938
  */
2065
1939
  listBearerTokens: ActorMethod<[bigint, bigint], Result_50>;
2066
1940
  /**
2067
1941
  * / The condense checkpoints in the retained log at or above `startSeq`, oldest first.
2068
1942
  * /
2069
- * / ⟨0.16.0, NEW⟩ The other half of the split above. A checkpoint is the only surviving record of a
2070
- * / stretch of chain that no longer exists, so this is the list that accounts for the distance
2071
- * / between `firstAvailableSeq` and the entries an owner remembers writing — without it, a
2072
- * / condensed prefix is a gap the owner has to take on trust.
1943
+ * / The other half of `listMemoryExportReceipts`'s split (since 0.16.0). A checkpoint is the only
1944
+ * / surviving record of a stretch of chain that no longer exists, so this is the list that accounts
1945
+ * / for the distance between `firstAvailableSeq` and the entries an owner remembers writing —
1946
+ * / without it, a condensed prefix is a gap the owner has to take on trust.
2073
1947
  * /
2074
1948
  * / Owner-only like every other archive surface, and for the same structural reason: these rows
2075
1949
  * / carry the chain positions and roots of entries whose paths were inside the hash preimage.
2076
1950
  */
2077
1951
  listCondenseCheckpoints: ActorMethod<[bigint, bigint], Result_49>;
2078
- /**
2079
- * / ⟨0.16.0⟩ `metrics()` DELETED — absorbed by `about()`.
2080
- * /
2081
- * / Two public projections of one canister (one concept, one name): `metrics()` and `status()` both answered "what
2082
- * / is this engram like" and disagreed on which counters they carried, so a consumer had to fetch
2083
- * / both and know which one owned each field. Every field here survives on `about()`, day-flooring
2084
- * / included.
2085
- */
2086
1952
  listCycleSnapshots: ActorMethod<[bigint, bigint], Result_48>;
2087
1953
  /**
2088
1954
  * / Same `withheld` treatment as listMemoryFiles — the tombstone listing filtered reserved paths
@@ -2091,8 +1957,8 @@ export interface Engram {
2091
1957
  */
2092
1958
  listDeletedMemoryFiles: ActorMethod<[bigint, bigint], Result_47>;
2093
1959
  /**
2094
- * / Stays on the engram under the 0.16.0 split (commerce to the market, signing here): withdrawal
2095
- * / custody does not leave.
1960
+ * / On the engram, not the market (commerce is the market's, signing is here): withdrawal custody
1961
+ * / does not leave.
2096
1962
  * /
2097
1963
  * / NAMED item, not a `(Text, Int)` tuple. The Int is an activation time, and a bare Int beside a
2098
1964
  * / bare Text told a reader nothing about which was which — the same defect fixed on the purge log.
@@ -2101,31 +1967,30 @@ export interface Engram {
2101
1967
  * / engram may withdraw nowhere", OR — worse — as "no allowlist is in force", which is the
2102
1968
  * / opposite security posture. It also erases any pending 24h activation from view.
2103
1969
  * /
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.
1970
+ * / One action's list: `typeId` names the action, and an unregistered one is `#NotFound` rather than
1971
+ * / an empty page (an empty page means "this action may sign to nothing"). The item's field is
1972
+ * / `value`, not `address`: a list may hold a venue value that is no address. Readable by the owner,
1973
+ * / an active agent or an active guardian.
2108
1974
  */
2109
1975
  listEip712Destinations: ActorMethod<[Uint8Array | number[], bigint, bigint], Result_46>;
2110
1976
  /**
2111
1977
  * / 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
1978
+ * / On the engram, not the market (commerce is the market's, signing is here): EIP-712 signing is
2113
1979
  * / custody, and custody does not leave.
2114
1980
  * /
2115
1981
  * / Refusal reason preserved: `[]` reads as "this engram can sign nothing" — a claim about SIGNING
2116
1982
  * / AUTHORITY, which is not a thing to hand an unauthorized reader. The public trail of every
2117
1983
  * / registration remains the audit chain under getCertifiedAuditHead.
2118
1984
  * /
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`.
1985
+ * / Each row carries its per-field rules (`fieldRules`), joined in from `eip712FieldRules` — they
1986
+ * / are part of what the type authorises, so a reader of the list must not have to make a second
1987
+ * / call to learn them. The row type is `Eip712TypeView`.
2122
1988
  */
2123
1989
  listEip712Types: ActorMethod<[bigint, bigint], Result_45>;
2124
1990
  /**
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
1991
+ * / Guardians' disputes, oldest first. Same visibility as `listRepudiations` and `listRecordNotes`:
1992
+ * / the owner and ACTIVE guardians read the rows; an agent gets an empty page whose `withheld` counts
1993
+ * / them (an agent reads only the entries it caused, and a dispute is the guardian's entry, not the
2129
1994
  * / agent's); a stranger, a pending guardian and the anonymous caller are refused.
2130
1995
  */
2131
1996
  listGuardianDisputes: ActorMethod<[bigint, bigint], Result_44>;
@@ -2141,25 +2006,23 @@ export interface Engram {
2141
2006
  /**
2142
2007
  * / The export receipts in the retained log at or above `startSeq`, oldest first.
2143
2008
  * /
2144
- * / ⟨0.16.0, the one page shape⟩ ONE LIST, ONE QUESTION. This method used to return receipts AND checkpoints
2009
+ * / ONE LIST, ONE QUESTION (since 0.16.0). This method used to return receipts AND checkpoints
2145
2010
  * / together behind a backward `before`/`max` cursor. They answer different questions — what may be
2146
2011
  * / condensed, and what already was — so a caller wanting one paid to decode the other, and the
2147
2012
  * / merged shape had to carry two arrays, a truncation flag and an opaque cursor to stay honest
2148
2013
  * / about a walk that served both. `listCondenseCheckpoints` is the other half.
2149
2014
  * /
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.
2015
+ * / The cursor went with it (one paging idiom): paging is by ABSOLUTE SEQ, forward, so a caller
2016
+ * / resumes at `scannedThroughSeq + 1` and is finished when that passes `page.total`. There is no
2017
+ * / `scanTruncated` flag because it would have nothing left to say — "I stopped at entry N" is
2018
+ * / said as a position rather than a flag a reader has to pair with a second field.
2155
2019
  * /
2156
2020
  * / Read `MemoryRouter.ReceiptPage` before reading `page.total` as a receipt count. It is not one;
2157
2021
  * / it is the chain's length, and the declaration says why.
2158
2022
  */
2159
2023
  listMemoryExportReceipts: ActorMethod<[bigint, bigint], Result_42>;
2160
2024
  /**
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.
2025
+ * / THE `withheld` EXEMPLAR (since 0.16.0): this method is the defect the field was added to fix.
2163
2026
  * /
2164
2027
  * / A non-owner's answer silently dropped every `config/` and `secrets/` row. Not "refused the
2165
2028
  * / call" and not "returned a marker" — the rows simply were not there, with nothing in band
@@ -2167,7 +2030,7 @@ export interface Engram {
2167
2030
  * / could see it. Meanwhile `readMemory` returned an explicit refusal for the very same paths.
2168
2031
  * / Same policy, same caller, two answers, and the quiet one was the lie.
2169
2032
  * /
2170
- * / `withheld` is now the count of rows policy removed. It leaks no names — which is the point:
2033
+ * / `withheld` is the count of rows policy removed. It leaks no names — which is the point:
2171
2034
  * / the caller learns THAT something is hidden without learning WHAT, so an agent can tell a
2172
2035
  * / short listing from a complete one and stop inferring the engram is emptier than it is.
2173
2036
  * /
@@ -2175,52 +2038,44 @@ export interface Engram {
2175
2038
  * / by POLICY, never rows merely off the end of this page — those are `total`'s job. Conflating
2176
2039
  * / the two would rebuild the ambiguity in a new place.
2177
2040
  * /
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
2041
+ * / Each row also carries `lastModifiedBy` (`Types.MemoryFileRow`): the key that wrote the file's
2042
+ * / current version, so a phone's file list can say "changed 2 h ago by Recorder" without a read per
2181
2043
  * / 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.
2044
+ * / tells no caller anything it could not read. Born `opt` (a field added to a response record is
2045
+ * / `opt`). Looked up only for the rows of THIS page (`MemoryRouter.info`), after the slice, so the
2046
+ * / cost is one lookup per row served, never one per file stored. A WIDENED REPLY: a reader that
2047
+ * / decodes the row by position rather than by field name breaks — none in this repository does.
2186
2048
  */
2187
2049
  listMemoryFiles: ActorMethod<[bigint, bigint], Result_41>;
2188
2050
  /**
2189
2051
  * / One page of the memory log, seq-ordered, optionally narrowed to one author.
2190
2052
  * /
2191
- * / THE WINDOW IS THE CURSOR, and the page now states it. The window is
2053
+ * / THE WINDOW IS THE CURSOR, and the page states it. The window is
2192
2054
  * / `items.size() + withheld` entries starting at `max(startSeq, firstAvailableSeq)`; advance by
2193
2055
  * / that, never by "last entry returned + 1", which stalls forever on the first empty page. Stop
2194
2056
  * / when the window passes `total`.
2195
2057
  * /
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
2204
- * / with nothing lost — it existed only to disclose a window that `items.size() + withheld` now
2205
- * / states directly.
2058
+ * / THE AUTHOR FILTER STAYS, and `withheld` is what makes it safe. A filtered window used to stall a
2059
+ * / cursor: a short or empty filtered page was ambiguous between "nobody wrote here" and "the window
2060
+ * / was small". Dropping the filter would cure that at a price — "what did this agent write" is a
2061
+ * / question an owner asks of an evidence log. Instead `withheld` carries the count this filter
2062
+ * / removed from the window, so the page is no longer ambiguous and the correct cursor advance is
2063
+ * / computable from the page itself; no separate cap field is needed to disclose the window.
2206
2064
  * /
2207
2065
  * / `firstAvailableSeq` and `head` sit BESIDE the page rather than in it. They are facts about the
2208
2066
  * / chain, not this slice: the condense floor tells a caller reading an archived range where the
2209
2067
  * / log now begins instead of letting them read it as empty, and the head is what a third party
2210
2068
  * / checks the page against. Flattening to a bare `Page` to satisfy the shape would buy uniformity
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.
2069
+ * / with the disclosures that make the page verifiable — the hidden-bound defect.
2070
+ * /
2071
+ * / The count argument is `limit`, as on every other list.
2216
2072
  */
2217
2073
  listMemoryLog: ActorMethod<[bigint, bigint, [] | [Principal]], Result_40>;
2218
2074
  /**
2219
- * / The caller's OWN spend-approval requests. ⟨0.16.0, refusals are values; the one page shape — fixed 2026-08-18⟩
2220
- * /
2221
- * / Two defects in seven lines, and the first is the one this release exists to remove:
2075
+ * / The caller's OWN spend-approval requests. Refusals are values and the reply is the one page
2076
+ * / shape (since 0.16.0), which closed two defects:
2222
2077
  * /
2223
- * / · `if (Principal.isAnonymous(msg.caller)) return []` is a FABRICATED EMPTY. An anonymous
2078
+ * / · `if (Principal.isAnonymous(msg.caller)) return []` was a FABRICATED EMPTY. An anonymous
2224
2079
  * / caller was told "you have no approval requests", which is a claim about their queue rather
2225
2080
  * / than about their identity, and is indistinguishable from the honest answer. It refuses now.
2226
2081
  * / · The reply was uncapped over `pendingApprovals`, which NEVER SHRINKS — the hourly expiry
@@ -2230,29 +2085,27 @@ export interface Engram {
2230
2085
  * /
2231
2086
  * / The caller-scoping is not `withheld`: rows belonging to someone else were never this caller's
2232
2087
  * / to see, so `total` over their own rows is the honest count and nothing is hidden FROM them.
2233
- * / (The unbounded MAP is filed separately — pruning an approval record destroys evidence of what
2234
- * / was asked, which is a retention ruling rather than a shape fix.)
2088
+ * / (The MAP itself stays unbounded: pruning an approval record destroys evidence of what was
2089
+ * / asked, which is a retention question rather than a shape fix, and it is still open.)
2235
2090
  */
2236
2091
  listMyApprovalRequests: ActorMethod<[bigint, bigint], Result_39>;
2237
2092
  /**
2238
2093
  * / The payer's own sessions, live ones first. PAYER-SCOPED: a caller sees only their own, which
2239
2094
  * / is why this needs no role — a session id is not a secret from the person who paid for it.
2240
2095
  * /
2241
- * / ⟨2026-10-02, paged⟩ Takes `(start, limit)` like every other list here, capped at
2242
- * / `MAX_SESSIONS_PAGE` rows per call; `total` is how many of the caller's sessions still exist.
2243
- * / It took no arguments, and a cursor added after the freeze is an argument-list change every
2244
- * / client would break on — the market paged its own pending withdrawals before its cut for the
2245
- * / same reason. The order is the order sessions were opened.
2096
+ * / Takes `(start, limit)` like every other list here, capped at `MAX_SESSIONS_PAGE` rows per call;
2097
+ * / `total` is how many of the caller's sessions still exist. Paged from the start because a cursor
2098
+ * / added after release is an argument-list change every client would break on. The order is the
2099
+ * / order sessions were opened.
2246
2100
  */
2247
2101
  listMySessions: ActorMethod<[bigint, bigint], Result_38>;
2248
2102
  /**
2249
- * /
2250
- * / ⟨0.16.0, the one page shape⟩ Paged and enveloped like every other `list*`, and the envelope here is uniformity
2251
- * / rather than gating: this method cannot refuse anybody, so `#Err` is unreachable on it. That is
2252
- * / deliberate — the off-chain verifier that reads this chain reads several other lists beside it,
2253
- * / and one shape for all of them is worth more than saving a variant tag on the one that is
2254
- * / public. `total` is the FULL chain length, so a verifier holding a short page can tell it has
2255
- * / not seen the whole custody history — the distinction a bare array could not express.
2103
+ * / Paged and enveloped like every other `list*` (the one page shape), and the envelope here is
2104
+ * / uniformity rather than gating: this method cannot refuse anybody, so `#Err` is unreachable on it.
2105
+ * / That is deliberate — a verifier that reads this chain reads several other lists beside it, and
2106
+ * / one shape for all of them is worth more than saving a variant tag on the one that is public.
2107
+ * / `total` is the FULL chain length, so a verifier holding a short page can tell it has not seen the
2108
+ * / whole custody history — the distinction a bare array could not express.
2256
2109
  * /
2257
2110
  * / PUBLIC: custody history is the answer to "is this engram what it claims to be", and it is
2258
2111
  * / asked by strangers. `verifyEngramActiveOwner` on the registry answers only about the owner
@@ -2261,156 +2114,120 @@ export interface Engram {
2261
2114
  */
2262
2115
  listOwnershipTransfers: ActorMethod<[bigint, bigint], Result_37>;
2263
2116
  /**
2264
- * / ⟨2026-09-29, a question from the build review⟩ OWNER-ONLY: how many payment
2265
- * / signatures each agent has obtained today, and the daily limit (200, `PaymentSignCap`). The
2266
- * / owner's console stated the rule and showed no number, because nothing served one; a number it
2267
- * / made up would be a fabricated zero. Anyone else is refused by name (`#Refused
2117
+ * / OWNER-ONLY: how many payment signatures each agent has obtained today, and the daily limit (200,
2118
+ * / `PaymentSignCap`). Served because an app that states the rule has no number to show without it,
2119
+ * / and a number it made up would be a fabricated zero. Anyone else is refused by name (`#Refused
2268
2120
  * / listPaymentSignatureCounts: …`), never answered with zeros. Paged like `listAgents`, in the same
2269
2121
  * / order, one row per agent in the roster; each count is the agent's, taken by its root as the
2270
2122
  * / signer takes it, so every key the agent holds here shows the same number. The owner is not
2271
- * / counted and has no row; the marketplace's count is not an agent's and is not here. WHAT WOULD
2272
- * / MAKE THIS WRONG: a count kept by something other than the agent's root (`PaymentSignCap.rowFor`
2273
- * / says so beside it).
2274
- * /
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
2123
+ * / counted and has no row. The marketplace's one shared count today is in the reply's
2277
2124
  * / `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.
2125
+ * / among them (`PaymentSignCap.marketplaceRow`); null when no marketplace is set. WHAT WOULD MAKE
2126
+ * / THIS WRONG: a count kept by something other than the agent's root (`PaymentSignCap.rowFor` says
2127
+ * / so beside it).
2128
+ * / Also readable by the seated sign-in of an engram opened through another, acting as the owner
2129
+ * / (`#ownerOrSignIn`); on a first engram only the owner reads it.
2281
2130
  */
2282
2131
  listPaymentSignatureCounts: ActorMethod<[bigint, bigint], Result_36>;
2283
2132
  /**
2284
- * / Agent records removed by a reset. Each row is a NAMED record with the fields `principal`,
2285
- * / `name`, `registeredAt` and `purgedAt` — read them BY NAME, never by position.
2286
- * / ⟨2026-09-29, the vocabulary ruling: pairing is the one verb that admits an agent⟩ The field
2287
- * / this prose calls `registeredAt` is now `pairedAt`, on the served row and on the agent record
2288
- * / it is copied from. What is said below about the two timestamps holds for `pairedAt`.
2133
+ * / Agent records removed by a reset (or by an accepted change of owner, `acceptOwnership`). Each row
2134
+ * / is a NAMED record — `principal`, `name`, `pairedAt` and `purgedAt`, and also the agent's `root`,
2135
+ * / the `invite` its enrolment named, and `ended` (why and on what day its engagement ended: its own
2136
+ * / earlier ending, or the reset — the facts `resyncAgentEdges` re-sends). Read them BY NAME, never by
2137
+ * / position. The stored rows are served as they are.
2289
2138
  * /
2290
2139
  * / The names are the whole point, not decoration. Both timestamps are a bare Int, so they were
2291
- * / positionally indistinguishable at the client: a decoder that swapped registeredAt and
2292
- * / purgedAt would type-check everywhere and show up only as nonsense in a UI. This prose used to
2293
- * / describe the row as a positional 4-tuple and readers duly destructured it as one — the same
2294
- * / bug, twice, in two different repos (corrected 2026-08-16). `agentPurgeLog` really is a
2295
- * / 4-tuple in stable state; the SERVED shape is not, and that seam is where the mistake starts.
2296
- * /
2297
- * / resetEngram HARD-DELETES agent records so a purged principal can be invited back
2298
- * / (owner ruling 2026-08-15). That makes the reset a genuine clear rather than a permanent burn —
2299
- * / but it also means the `agents` map is no longer evidence that a principal ever held access,
2300
- * / and the audit chain cannot stand in: it is a bounded ring that trims its oldest entries, so
2301
- * / agent.pair rows are evicted over the life the rent model assumes. This is that
2302
- * / evidence, and it is why the tombstone is written rather than the roster simply dropped.
2303
- * /
2304
- * / Owner-gated and TRAPS on refusal: an empty list must mean "no reset has removed an agent",
2305
- * / never "you may not ask".
2306
- * / ⟨CORRECTED 2026-10-02: it no longer traps. It is gated through `gatedResult`, so a refusal
2307
- * / comes back as an `Err` VALUE that names this method — still never as an empty page, which is
2308
- * / the property the sentence above was protecting.⟩
2140
+ * / positionally indistinguishable at the client: a decoder that swapped `pairedAt` and `purgedAt`
2141
+ * / would type-check everywhere and show up only as nonsense in a UI. This prose once described the
2142
+ * / row as a positional 4-tuple and readers duly destructured it as one — the same bug, twice.
2143
+ * / `agentPurgeLog` really is a 4-tuple in stable state; the SERVED shape is not, and that seam is
2144
+ * / where the mistake starts.
2145
+ * /
2146
+ * / resetEngram HARD-DELETES agent records so a purged principal can be invited back. That makes
2147
+ * / the reset a genuine clear rather than a permanent burn — but it also means the `agents` map is
2148
+ * / no longer evidence that a principal ever held access, and the audit chain cannot stand in: it
2149
+ * / is a bounded ring that trims its oldest entries, so agent.pair rows are evicted over an engram's
2150
+ * / life. This is that evidence, and it is why the tombstone is written rather than the roster
2151
+ * / simply dropped.
2152
+ * /
2153
+ * / Owner-gated, and a refusal comes back as an `Err` VALUE that names this method (`gatedResult`),
2154
+ * / never as an empty page: an empty list must mean "no reset has removed an agent", never "you may
2155
+ * / not ask". On an evidence trail those are not close.
2156
+ * /
2309
2157
  * / RENAMED from `getOperatorPurgeLog` (a `get*` returns one value, a `list*` returns a Page —
2310
2158
  * / the old name promised a scalar and delivered an array).
2311
2159
  * /
2312
- * / Refusal reason preserved: an empty list must mean "no reset has removed an agent", never
2313
- * / "you may not ask". On an evidence trail those are not close.
2314
- * /
2315
- * / Named record, not a 4-tuple. Both Ints are timestamps and were positionally indistinguishable
2316
- * / at the client — swapping registeredAt and purgedAt would have type-checked everywhere and been
2317
- * / visible only as nonsense in a UI.
2318
- * /
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.
2160
+ * / Also readable by the seated sign-in of an engram opened through another, acting as the owner
2161
+ * / (`#ownerOrSignIn`); on a first engram only the owner reads it.
2325
2162
  */
2326
2163
  listPurgedAgents: ActorMethod<[bigint, bigint], Result_35>;
2327
2164
  /**
2328
- * / ⟨0.16.0⟩ ONE ACCESSOR, folding `readReadLog` and `getDenialLog` — and the fold only became
2329
- * / safe because of a change made earlier in this same leg.
2330
- * /
2331
- * / They were two methods over the SAME log behind the SAME gate. `getDenialLog`'s own declaration
2332
- * / explained why the split existed: nothing published this log's head, so a client could only
2333
- * / reach the OLDEST retained entries, and a "recent refusals" band built on `readReadLog` would
2334
- * / have rendered the oldest slice of a 10,000-entry ring under those words. That rationale died
2335
- * / when the Page conversion started publishing `total = totalAppended()` — the head is now a fact
2336
- * / a caller can read, so paging backward from it is ordinary arithmetic.
2165
+ * / ONE ACCESSOR over the read log (since 0.16.0, folding `readReadLog` and `getDenialLog`): every
2166
+ * / row, or only successes, or only refusals and failures (`successFilter`).
2337
2167
  * /
2338
- * / The 0.16.0 interface plan proposed deleting `readReadLog` outright as a "duplicate accessor". Checked at the
2339
- * / site, that premise was false: `getDenialLog` filtered `not e.success`, so deleting the other
2340
- * / would have removed the only way to read SUCCESSFUL entries — and this ring is overwhelmingly
2341
- * / successful MCP reads. Folded instead, which keeps both capabilities and still ends the pair.
2168
+ * / They were two methods over the SAME log behind the SAME gate. The split existed because nothing
2169
+ * / published this log's head, so a client could only reach the OLDEST retained entries, and a
2170
+ * / "recent refusals" band built on `readReadLog` would have rendered the oldest slice of a
2171
+ * / 10,000-entry ring under those words. The page publishes `total = totalAppended()`, so the head
2172
+ * / is a fact a caller can read, and paging backward from it is ordinary arithmetic. Deleting
2173
+ * / `readReadLog` as a duplicate would have removed the only way to read SUCCESSFUL entries —
2174
+ * / `getDenialLog` filtered `not e.success`, and this ring is overwhelmingly successful MCP reads —
2175
+ * / so the two were folded, which keeps both capabilities. Named `listReadLog`, not
2176
+ * / `listDenialEntries`: a method serving every row must not be named for one half of them.
2342
2177
  * /
2343
2178
  * / ⚠ `limit` IS A SPAN, NOT A ROW COUNT, and the same in both modes: it is how many log ids to
2344
2179
  * / EXAMINE starting at `start`. Unfiltered, items == the entries in that span. Filtered, items is
2345
2180
  * / however many of them matched — fewer, and that is not truncation. This is the one honest
2346
2181
  * / reading, because the alternative (keep scanning until `limit` rows match) hides how far it
2347
- * / looked, which is precisely what `getDenialLog` had to disclose with `scannedFrom`/`more`.
2348
- * / A caller knows exactly which ids were examined: `[start, start + limit)`.
2349
- * /
2350
- * / `earliest` is gone as a field and lost nothing: entries carry their own `id`, so a caller
2351
- * / paging from 0 reads the oldest retained id off the first item. That is the page shape's stated design —
2352
- * / items self-identify — rather than a second number to keep in sync.
2182
+ * / looked. A caller knows exactly which ids were examined: `[start, start + limit)`.
2353
2183
  * /
2354
- * / `withheld` is 0 even when filtering. The filter is CALLER-REQUESTED; `withheld` means rows
2355
- * / POLICY removed. Overloading it would rebuild the ambiguity this campaign exists to remove.
2184
+ * / `withheld` counts BOTH policy-removed and filter-removed rows, so a caller recovers the examined
2185
+ * / span as `items.size() + withheld` — the number a UI needs to say what it actually looked at
2186
+ * / rather than implying it looked at everything. `withheld = 0` beside a filter would be the
2187
+ * / FABRICATED-COMPLETE PAGE, and this is the worst method to have it on: `successFilter = ?false` is
2188
+ * / how a denial band asks "who was refused here", and a short page claiming nothing was withheld
2189
+ * / would say the engram examined this window and found no refusals, when it examined `span` rows of
2190
+ * / which most were successes.
2356
2191
  * /
2357
- * / ⚠ **CORRECTED 2026-08-21, BESIDE the paragraph above because it is what the caller contract
2358
- * / USED to be: THAT RULE WAS REVERSED ON 2026-08-18 AND THIS COMMENT DID NOT FOLLOW.** The body
2359
- * / below computes `withheld = examined.size() - kept.size()`, and its own dated note explains
2360
- * / why: `withheld = 0` beside a filter is the FABRICATED-COMPLETE PAGE, and this is the worst
2361
- * / method in the file to have it on — `successFilter = ?false` is how the denial band asks "who
2362
- * / was refused here", and a short page claiming nothing was withheld says the engram examined
2363
- * / this window and found no refusals, when it examined `span` rows of which most were successes.
2192
+ * / An agent reads only the entries it caused, here as on the chained record — the same `RecordView`
2193
+ * / filter, and `withheld` counts what it removed together with what `successFilter` removed. WHAT
2194
+ * / WOULD MAKE THIS WRONG: see `listAuditEntries`.
2364
2195
  * /
2365
- * / So `withheld` now means BOTH policy-removed and filter-removed rows, and a caller can recover
2366
- * / the examined span as `items.size() + withheld` — which is the successor to the retired
2367
- * / `scannedFrom`/`head` window, and the number a UI needs to say what it actually looked at
2368
- * / rather than implying it looked at everything.
2369
- * /
2370
- * / This mattered beyond the file: doc comments are emitted into `engram.did`, so every SDK and
2371
- * / hand-written client has been reading the pre-fix rule off the interface for three days.
2372
- * /
2373
- * / Named `listReadLog`, not the interface plan's `listDenialEntries`: that name assumed only the denial
2374
- * / half survived. A method serving every row must not be named for one of them.
2196
+ * / There is no `earliest` field, and nothing is lost: entries carry their own `id`, so a caller
2197
+ * / paging from 0 reads the oldest retained id off the first item. Items self-identify, rather than
2198
+ * / a second number to keep in sync.
2375
2199
  * /
2376
2200
  * / Refusal reason preserved from both: this log has NO public counterpart — no certified head to
2377
2201
  * / fall back to — so an empty answer would falsely assert nobody has read this record, and an
2378
2202
  * / empty denial band would assert nobody has ever been refused here.
2379
2203
  * /
2380
- * / WHAT "success = false" MEANS, PRECISELY, kept from getDenialLog because it is easy to misread:
2381
- * / REFUSED-OR-FAILED, not authorization-denied alone. `denied()` writes authz refusals here, and
2382
- * / so do settle failures, webhook auto-disables, expiry sweeps and MCP rate limits. Do not narrow
2383
- * / this to a name it does not carry.
2384
- * /
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`.
2204
+ * / WHAT "success = false" MEANS, PRECISELY, because it is easy to misread: REFUSED-OR-FAILED, not
2205
+ * / authorization-denied alone. `denied()` writes authz refusals here, and so do settle failures,
2206
+ * / webhook auto-disables, expiry sweeps and MCP rate limits. Do not narrow this to a name it does
2207
+ * / not carry.
2388
2208
  */
2389
2209
  listReadLog: ActorMethod<[[] | [boolean], bigint, bigint], Result_34>;
2390
2210
  /**
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
2211
+ * / The owner's notes, oldest first. Same visibility as `listRepudiations`, for the same reason: the
2212
+ * / owner and ACTIVE guardians read the rows; an agent reads only the entries it caused, and every
2394
2213
  * / 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.
2214
+ * / window — never "there are none". A stranger, a pending guardian and the anonymous caller are
2215
+ * / refused.
2396
2216
  */
2397
2217
  listRecordNotes: ActorMethod<[bigint, bigint], Result_33>;
2398
2218
  /**
2399
- * / Same visibility as listAuditEntries: the owner, this engram's agents, and ACTIVE guardians
2400
- * / see disputes. An unauthorized read REFUSES — it does not return an empty list, because an
2401
- * / empty list reads as "no disputes have been filed", which is a claim, not an absence of one.
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.
2219
+ * / The owner and ACTIVE guardians see the disputes. An agent gets an empty page whose `withheld`
2220
+ * / counts the rows in its window — which says disputes exist without showing them, never "none have
2221
+ * / been filed": the visibility is `listAuditEntries`', where an agent reads only the record entries
2222
+ * / it caused, and every dispute here is the owner's own `memory.repudiate` entry. WHAT WOULD MAKE
2223
+ * / THIS WRONG: an agent allowed to see the disputes of its own writes; this would then have to look
2224
+ * / up each disputed version's writer, which it does not do today.
2225
+ * /
2226
+ * / An unauthorized read REFUSES — it does not return an empty list, because an empty list reads as
2227
+ * / "no disputes have been filed", which is a claim, not an absence of one, and a dispute record that
2228
+ * / can be mistaken for an absence of disputes is worse than no record at all. Not public by design.
2229
+ * /
2230
+ * / RENAMED from `getRepudiations` (a `get*` returns one value, a `list*` a page).
2414
2231
  */
2415
2232
  listRepudiations: ActorMethod<[bigint, bigint], Result_32>;
2416
2233
  /**
@@ -2423,48 +2240,48 @@ export interface Engram {
2423
2240
  */
2424
2241
  listSellers: ActorMethod<[bigint, bigint], Result_31>;
2425
2242
  /**
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.
2243
+ * / OWNER-ONLY: the sign-ins, each with the name its app registered. The same tokens, in the same
2244
+ * / order and paged the same way, as `listBearerTokens`, each beside `clientName` — the RFC 7591
2245
+ * / `client_name` the app registered when the token was issued (`People.SignIn` says when it is null,
2246
+ * / and that it is the app's own claim). A phone owner read "localhost" for every app signed in
2247
+ * / through a local bridge and could not tell two apps apart. A NEW method rather than a field on
2248
+ * / `BearerToken`: that record is stored (M0170) and `listBearerTokens`' reply is shipped (never
2249
+ * / widened). An agent, a guardian, a stranger and the anonymous caller are refused, by
2250
+ * / `listBearerTokens`' own gate and for its reason.
2251
+ * / Also readable by the seated sign-in of an engram opened through another, acting as the owner
2252
+ * / (`#ownerOrSignIn`); on a first engram only the owner reads it.
2436
2253
  */
2437
2254
  listSignIns: ActorMethod<[bigint, bigint], Result_30>;
2438
2255
  /**
2439
2256
  * / Owner: advance the review cursor — "I have seen everything up to and including uptoAuditId"
2440
2257
  * / (null = everything at the current head). Bounded so the attestation can never cover entries
2441
- * / the console did not render; clamped monotonic (the cursor never moves backward) and to the
2258
+ * / the app did not render; clamped monotonic (the cursor never moves backward) and to the
2442
2259
  * / current head (never attests the future). Logged, so the review itself is part of the record.
2443
2260
  * /
2444
2261
  * / Deliberately filter-agnostic: the cursor is a plain audit id in the CHAINED log's one id space
2445
2262
  * / (every family qualifiesForReview admits is written to auditLogger, so they share that space),
2446
2263
  * / and this never inspects an operation or a role. Widening what the review shows therefore
2447
- * / changes only which ids the console can pass here — it cannot desynchronise the cursor.
2264
+ * / changes only which ids the app can pass here — it cannot desynchronise the cursor.
2448
2265
  */
2449
2266
  markAgentWritesReviewed: ActorMethod<[[] | [bigint]], Result_15>;
2450
2267
  /**
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.
2268
+ * / AN AGENT READS ITS OWN GRANT — to the calling key only (`People.AgentGrant`): what it may read,
2269
+ * / where it may write, its rate, and the payment limits enforced against that key. It reveals
2270
+ * / nothing a refusal does not already say, and lets an agent correct itself before it writes rather
2271
+ * / than after the owner explains a refusal by hand. `getSpendPolicy` and `listAgents` stay
2272
+ * / owner-only; this answers one row, the caller's.
2456
2273
  * /
2457
2274
  * / WHO: an ACTIVE agent (`Gated.authorize(#agentOrOwner)`). Refused, each by its own text: the
2458
2275
  * / owner by name (`People.OWNER_HAS_NO_GRANT`), a revoked or resigned agent ("Agent is revoked" /
2459
2276
  * / "Agent has resigned" — an ended agent may do nothing, and its old grant would read as powers),
2460
2277
  * / a guardian and a stranger ("Not authorized"), the anonymous caller. A query: it writes nothing.
2461
2278
  * /
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).
2279
+ * / It also tells the truth about paying: whether the payments brake is on and what the key could
2280
+ * / pay now (`paymentsFrozen`, `paymentsNow`), read from the values `x402SignFor` checks — the brake,
2281
+ * / the key's policy and stored total, the engram-wide ceiling and total — so the caps alone do not
2282
+ * / read as money an agent can spend. `People.SpendState` names each one. And which whole-key refusal
2283
+ * / stops every payment now, if one does (`paymentsStoppedBy`: the brake, the signing floor, the daily
2284
+ * / count of payment signatures).
2468
2285
  */
2469
2286
  myGrant: ActorMethod<[], Result_29>;
2470
2287
  /**
@@ -2487,43 +2304,34 @@ export interface Engram {
2487
2304
  * / ORDER, with no await before the allowance is taken: the caller is an active agent; there is a
2488
2305
  * / registry; payments are not frozen (opening sends this engram's cycles out of it, and a freeze is
2489
2306
  * / the brake a guardian holds over resources leaving); the balance carries the attachment above this
2490
- * / engram's own reserve; then one opening is TAKEN from the agent's allowance in this message, and only
2491
- * / then is the registry called. If the registry refuses or cannot be reached, the opening is GIVEN
2492
- * / BACK (one added to the current count) and the cycles the call did not use come back by the
2493
- * / network's refund. Every outcome is written to the record under `agent.openChild` in the message
2307
+ * / engram's own reserve; then one opening is TAKEN from the agent's allowance in this message, and
2308
+ * / only then is the registry called. The opening is GIVEN BACK only when the WHOLE attachment came
2309
+ * / back as the call's refund (the registry refused, or could not be reached, and accepted none of
2310
+ * / it) and the owner has not set this agent's count since the take (`ChildAllowance.settle`). A
2311
+ * / refusal after the registry accepted the cycles (the template would not install, or the key came
2312
+ * / to own an engram meanwhile) leaves the 1.3 T in a canister the agent's key owns, so that opening
2313
+ * / is spent and the reply says so: giving it back would let an allowance of 1 drain this engram
2314
+ * / 1.3 T per call. Every outcome is written to the record under `agent.openChild` in the message
2494
2315
  * / that hears the registry's answer, before the reply — in the alerts' money class.
2495
2316
  * /
2496
- * / ⟨CORRECTED 2026-10-01, two review findings — the sentence "If the registry refuses or cannot be
2497
- * / reached, the opening is GIVEN BACK" above is what was first built.⟩ The opening is given back only
2498
- * / when the WHOLE attachment came back as the call's refund (the registry accepted none of it) and
2499
- * / the owner has not set this agent's count since the take (`ChildAllowance.settle`). A refusal after
2500
- * / the registry accepted the cycles (the template would not install, or the key came to own an
2501
- * / engram meanwhile) leaves the 1.3 T in a canister the agent's key controls; giving the opening back
2502
- * / then let an allowance of 1 drain this engram 1.3 T per call. Now that opening is spent and the
2503
- * / reply says so.
2504
- * /
2505
2317
  * / WHAT WOULD MAKE THIS WRONG: an await added between `ChildAllowance.take` and the registry call; the
2506
2318
  * / registry's `CHILD_MIN_ATTACHED_CYCLES` moving without `CHILD_ATTACH_CYCLES`.
2507
2319
  * /
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.
2320
+ * / THE SIGN-IN. `signIn` names the opened engram's sign-in — the person running the agent, on a
2321
+ * / second credential; null opens it with none, and it then keeps small limits for life. It goes to
2322
+ * / the registry's door and from there into the opened engram's init record, so that engram never
2323
+ * / runs a message without it. Refused here first, with no await and before the allowance is taken,
2324
+ * / so the agent sees the refusal before any cycles move: by the door's own three rules
2325
+ * / (`OwnerSignIn.candidateRefusal`) — the agent's lasting key itself, the anonymous principal, a
2326
+ * / canister — and the key this call is signed by, the agent's session key
2327
+ * / (`OwnerSignIn.agentKeyRefusal`). The record entry says `signIn=set` or `signIn=none`, never the
2328
+ * / principal.
2329
+ * /
2330
+ * / ONE RECORD ARGUMENT. It was `openChildEngram()`, with no argument. A second positional argument
2331
+ * / would grow its argument tuple, and a shipped tuple is frozen (evolution happens inside records),
2332
+ * / so the door takes ONE record whose later fields are optional, under a new name — the shape the
2333
+ * / registry's own door took (`sysSpawnChild` → `sysOpenChild`). An older kit calling the old name is
2334
+ * / rejected (IC0536) with nothing spent; it can never open an engram without a sign-in by accident.
2527
2335
  * / Named caller: the owner kit's `open-engram` command, signed by the agent's session key.
2528
2336
  */
2529
2337
  openChild: ActorMethod<[{ signIn: [] | [Principal] }], Result_28>;
@@ -2537,28 +2345,6 @@ export interface Engram {
2537
2345
  */
2538
2346
  ownerWithdraw: ActorMethod<[TokenAmount, [] | [ActionAuth]], Result_15>;
2539
2347
  /**
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.
2543
- * /
2544
- * / It hand-declared four biller methods inline, read `getFeeSchedule`, computed
2545
- * / `priceE6 = rentUsdE6PerEngramYear * months / 12`, and deposited `priceE6 + 3 * CKUSDC_FEE`
2546
- * / under a comment explaining that three is "the three token fees the cashier's rail spends" —
2547
- * / a PUBLIC canister hardcoding how many ledger fees a PRIVATE one consumes internally. Any
2548
- * / change to the biller's rail silently mispriced this call.
2549
- * /
2550
- * / It also carried the only RE-ENTRANT cross-canister chain in the system: engram →
2551
- * / cashier.payRentWithStablecoin → (registry, ledger, CMC …) → back into the SAME engram's
2552
- * / sysRecordFeeEvent while the originating message was still suspended, both writing the same audit
2553
- * / ring, with no lock.
2554
- * /
2555
- * / Rent is the biller's entirely. Owners pay through the biller's rails; the engram keeps
2556
- * / append-only receipts and no fee math.
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.
2562
2348
  * / Redeem an invite code minted by `createAgentInvite`. The CALLER becomes the agent, so
2563
2349
  * / redeem from the wallet that will do the work.
2564
2350
  * /
@@ -2568,40 +2354,44 @@ export interface Engram {
2568
2354
  * / agent's permissions the owner uses `setAgentPermissions`; this method is only ever the
2569
2355
  * / first admission of a principal.
2570
2356
  * /
2357
+ * / THE ONE-SHOT ARM. Re-redemption is `#Err(#Conflict)`, and it is the arm the whole guard exists
2358
+ * / to express: this principal HAS held agent access, and no code will give it back. A caller
2359
+ * / reading `#Conflict` knows to pair a fresh key; a caller reading `#Refused` would keep presenting
2360
+ * / the same identity, which is exactly the loop the one-shot rule was written to stop.
2361
+ * /
2571
2362
  * / A GUARDIAN cannot redeem one either. A guardian is an independent check on agents, so one
2572
2363
  * / wallet must not hold both roles — use a separate wallet.
2573
2364
  * /
2574
2365
  * / Anonymous callers are refused, and every refusal above is recorded in the denial log.
2575
2366
  * /
2576
- * / ⟨RESHAPED 2026-09-28, owner decision: one lasting identity per agent — one root key per agent,
2577
- * / with an enrolled key per client⟩ The argument is one record: the invite `code` and an
2578
- * / `enrolment` statement signed by the agent's ROOT key naming this engram, the calling key and
2579
- * / this code (`Enrolment.verify`). The root is stored on the record and is what the registry keeps
2580
- * / the track record under. REQUIRED, not optional: every engram launches on this code (the
2581
- * / building-phase rule, 2026-09-27), so there is no key without a root and no second path for one.
2582
- * / Two more refusals, each leaving the invite unconsumed: a statement that does not verify, and a
2583
- * / root that already holds an ACTIVE key here (`Enrolment.activeKeyOf` — one active key per agent
2584
- * / per engram). The one-shot rule and the five-active cap are unchanged and still read the KEY.
2585
- * / ⟨CORRECTED 2026-09-29, the cycle-drain hole measured that day⟩ "each leaving the invite
2586
- * / unconsumed" holds only until the invite's fifth failed statement check: every failed check
2587
- * / counts against the invite whoever sends it, the fifth voids it (the refusal says so, and the
2588
- * / record gets `agent.invite.void`), and after that every attempt with it is refused
2589
- * / `#Conflict` before any check is made (`InviteFailures`).
2590
- * /
2591
- * / ⟨RESHAPED 2026-09-29, a review finding⟩ The reply is `Types.Pairing`: the agent
2592
- * / record AND `trackRecord`, which says plainly when the registry refused or failed to record the
2593
- * / engagement on the agent's track record, and what to do. Before, the reply was `#Ok` with the
2594
- * / record alone even when the registry had refused the start, so the agent was never told.
2367
+ * / ONE LASTING IDENTITY PER AGENT — one root key per agent, with an enrolled key per client. The
2368
+ * / argument is one record: the invite `code` and an `enrolment` statement signed by the agent's
2369
+ * / ROOT key naming this engram, the calling key and this code (`Enrolment.verify`). The root is
2370
+ * / stored on the record and is what the registry keeps the track record under. REQUIRED, not
2371
+ * / optional, so there is no key without a root and no second path for one. Two more refusals: a
2372
+ * / statement that does not verify, and a root that already holds an ACTIVE key here
2373
+ * / (`Enrolment.activeKeyOf` — one active key per agent per engram). Each leaves the invite
2374
+ * / unconsumed until the invite's fifth failed statement check: every failed check counts against
2375
+ * / the invite whoever sends it, the fifth voids it (the refusal says so, and the record gets
2376
+ * / `agent.invite.void`), and after that every attempt with it is refused `#Conflict` before any
2377
+ * / check is made (`InviteFailures`) — a check costs this engram cycles, and without the cap anyone
2378
+ * / holding the code could keep it costing. The one-shot rule and the five-active cap still read
2379
+ * / the KEY.
2380
+ * /
2381
+ * / The reply is `Types.Pairing`: the agent record AND `trackRecord`, which says plainly when the
2382
+ * / registry refused or failed to record the engagement on the agent's track record, and what to
2383
+ * / do. A bare `#Ok` with the record alone would leave the agent untold when the registry had
2384
+ * / refused the start.
2595
2385
  */
2596
2386
  pairAgent: ActorMethod<[{ enrolment: Enrolment; code: string }], Result_26>;
2597
2387
  /**
2598
- * / ⟨0.16.0, same concept, same name — renamed from `guardianPauseWrites`⟩ Same correction as freezePayments above:
2599
- * / owner-or-guardian, and `resumeWrites` never carried the prefix either.
2388
+ * / The writes brake. It was `guardianPauseWrites` before 0.16.0; the prefix went for the reason
2389
+ * / `freezePayments` gives: owner-or-guardian, and `resumeWrites` never carried the prefix either.
2600
2390
  */
2601
2391
  pauseWrites: ActorMethod<[], Result_2>;
2602
2392
  /**
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.
2393
+ * / `pauseWrites` with a reason; everything said of `freezePaymentsWithReason` holds, with
2394
+ * / `canPauseWrites` as the guardian's grant.
2605
2395
  */
2606
2396
  pauseWritesWithReason: ActorMethod<[string], Result_2>;
2607
2397
  /**
@@ -2641,31 +2431,25 @@ export interface Engram {
2641
2431
  * / minimum and per-call cost BEFORE signing anything, and gating the quote behind a role would
2642
2432
  * / mean the only way to learn this engram's price is to already be permitted to pay it.
2643
2433
  * /
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
2647
- * / retires with them — so the argument written here for keeping it an update was arguing the
2648
- * / losing side of a decision already made, and was added the same day by not reading forward
2649
- * / to the ruling. `gate.offerSession` is pure — it validates the intent and returns it — so
2650
- * / nothing forced the update in the first place.
2434
+ * / QUERY, like the market's quotes: quotes are fast reads. `gate.offerSession` is pure — it
2435
+ * / validates the intent and returns it — so nothing forces an update.
2651
2436
  * /
2652
- * / ONE-REPLICA CAVEAT, stated here because the ruling requires it at both sites: a query is one
2653
- * / replica's word and is NOT a settleable challenge. Nothing quoted here can be redeemed. The
2654
- * / commitment happens in `openSession`, which IS a certified update call, and a buyer who needs
2655
- * / the price attested rather than quoted takes it from that reply.
2437
+ * / ONE-REPLICA CAVEAT, stated at both quote sites: a query is one replica's word and is NOT a
2438
+ * / settleable challenge. Nothing quoted here can be redeemed. The commitment happens in
2439
+ * / `openSession`, which IS a certified update call, and a buyer who needs the price attested
2440
+ * / rather than quoted takes it from that reply.
2656
2441
  * /
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.
2442
+ * / Named to match the market's, because it is the same act against a different seller and a reader
2443
+ * / comparing the two should not have to learn two verbs for it.
2660
2444
  * /
2661
- * / ⟨2026-10-02⟩ Answers the house `Types.SessionIntent` — ic402's intent with `expiry` spelled
2662
- * / `expiryNs`. Same value, same meaning; only the name carries the unit now.
2445
+ * / Answers the engram's own `Types.SessionIntent` — ic402's intent with `expiry` spelled
2446
+ * / `expiryNs`. Same value, same meaning; only the name carries the unit.
2663
2447
  */
2664
2448
  previewOpenSession: ActorMethod<[], SessionIntent>;
2665
2449
  /**
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.
2450
+ * / What a PROPOSED history policy would remove from the store as it stands — "about N old copies in
2451
+ * / F files would be removed" — asked BEFORE the owner saves it. A query: nothing is saved, armed or
2452
+ * / evicted.
2669
2453
  * /
2670
2454
  * / WHO: the OWNER only (`#ownerOnly`). An agent, a guardian, a stranger and the anonymous caller
2671
2455
  * / are each refused with `requireOwner`'s words; the setter it previews is owner-only too.
@@ -2680,8 +2464,8 @@ export interface Engram {
2680
2464
  * / takes effect change it.
2681
2465
  * / HONEST WHEN CUT SHORT: `complete = false` when the planning budget
2682
2466
  * / (`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.
2467
+ * / Also callable by the seated sign-in of an engram opened through another, acting as the owner
2468
+ * / (`#ownerOrSignIn`); on a first engram only the owner.
2685
2469
  */
2686
2470
  previewRetention: ActorMethod<[Array<[string, RetentionClassSpec]>], Result_23>;
2687
2471
  /**
@@ -2705,7 +2489,7 @@ export interface Engram {
2705
2489
  * / Read many paths in one call. Per-path Results are KEPT — partial success is the point, and
2706
2490
  * / one unreadable path must not fail the other nine.
2707
2491
  * /
2708
- * / ⟨0.16.0⟩ The OUTER envelope is new, and it fixes two ways this used to answer dishonestly:
2492
+ * / The OUTER envelope (since 0.16.0) fixes two ways this used to answer dishonestly:
2709
2493
  * /
2710
2494
  * / · Over the path cap it returned `[("", #Err(#Invalid …))]` — ONE row, for a path the caller
2711
2495
  * / never asked about. A consumer looping rows saw a result for the empty path and no result
@@ -2720,9 +2504,6 @@ export interface Engram {
2720
2504
  */
2721
2505
  readMemoryBatch: ActorMethod<[Array<string>], Result_22>;
2722
2506
  /**
2723
- * / ⟨0.16.0⟩ `getMemoryRetentionGuards` DELETED — folded into `getMemoryRetentionPolicy` above.
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.
2726
2507
  * / One page of a file's content — the paged read the whole-file surfaces point at.
2727
2508
  * /
2728
2509
  * / `version = null` reads the live file; a version reads that version as it was recorded.
@@ -2732,82 +2513,57 @@ export interface Engram {
2732
2513
  */
2733
2514
  readMemoryBytes: ActorMethod<[string, bigint, bigint, [] | [bigint]], Result_21>;
2734
2515
  /**
2735
- * / The escrow exit for a session whose settle cannot pay.
2516
+ * / The escrow exit for a session whose refund could not be paid.
2736
2517
  * /
2737
2518
  * / PAYER-ONLY, enforced inside the gateway, and deliberately not owner-triggered: the payer's own
2738
2519
  * / deposit is the only thing here, so making them wait for anyone else would be a worse rail than
2739
2520
  * / the one this replaces. (The market's twin is admin-triggered because a marketplace session has
2740
2521
  * / a counterparty; a memory session does not.)
2741
2522
  * /
2742
- * / WHY IT IS NEEDED AT ALL: `closeSessionInternal` settles only when
2743
- * / `deposited >= consumed + fee`, and vouchers may consume up to the full deposit — so a payer
2744
- * / who spends their whole budget makes their own session unsettleable, with no adversary
2745
- * / involved. Before this, the refusal text told them to call `recoverEscrow`, which existed on no
2746
- * / canister they could reach. The spend ceiling caps consumable spend so ordinary use cannot reach that state;
2747
- * / this is the way back for a session that already has.
2748
- * /
2749
- * / ⟨CORRECTION 2026-09-30, beside the paragraph above and the first line⟩ No longer true. ic402
2750
- * / 2.17.0's `closeSessionInternal` settles `min(consumed, deposited − fee)` and skips a refund of
2751
- * / zero, so a session spent to its whole budget still closes, and under the one-fee reserve a clean
2752
- * / close leaves the escrow holding nothing or less than one fee, which no transfer can move. The
2753
- * / way back is for a REFUND LEG THAT FAILED (a transient ledger error): the settle went through,
2754
- * / ic402 marks the session closed, and the remainder stays in escrow until the payer calls this.
2755
- * / A failed settle is not this method's case: ic402 puts that session back to open, where this
2756
- * / method refuses, and the close is retried instead. WHAT WOULD MAKE THIS WRONG: an ic402 whose
2757
- * / close stops capping the settle, or a live ckUSDC fee above `Env.CKUSDC_FEE`.
2758
- * /
2759
- * / ckUSDC only — an engram session's intent names `Env.CKUSDC_LEDGER` and nothing else, so there
2760
- * / is no token to choose and no wrong one to pass.
2761
- * /
2762
- * / ⟨2026-10-02, decided — the twin divergence is deliberate⟩ The market's `recoverEscrow` takes
2763
- * / `Wire.TokenAmount`; this one takes a bare `nat`, and the two stay different on purpose. The
2764
- * / market escrows more than one token, so the amount has to say which; this engram's sessions
2765
- * / escrow ckUSDC only, and a `TokenAmount` here would make an `#Icp` amount representable and then
2766
- * / refuse it at runtime — the argument `convertEarningsToCycles` makes. What changed is the NAME:
2767
- * / `amountE6`, ckUSDC base units. Candid passes arguments by position, so nothing on the wire moved.
2768
- * /
2769
- * / ⚠ `#Conflict` HERE ALSO COVERS "NOT THE SESSION'S PAYER". ⟨2026-10-02, audited at this site⟩
2770
- * / The payer check is ic402's (`recoverEscrow` authorizes `caller == session.payer`), and the
2771
- * / library answers every refusal down one text channel, so "Not authorized: only session payer can
2772
- * / recover escrow" arrives as `#Conflict`, beside the state refusals (an open session, nothing to
2773
- * / recover, no such session). Read the MESSAGE, not the arm. This is the 0.16.0 contract as
2774
- * / ratified on 2026-10-02; giving the library one arm per kind of refusal is post-cut dependency
2775
- * / work. (The payments-frozen refusal in the body is this engram's own, and is state.)
2776
- * /
2777
- * / ⟨2026-10-05, ic402 2.17.3 — beside the list above⟩ A fourth state refusal: a session that reads
2778
- * / `closing` or `expired`, whose close has not finished. Escrow comes back only from a session that
2779
- * / reads `closed`, and the refusal moves nothing. A close that stopped part-way (its refund call
2780
- * / rejected, or a trap) leaves the session reading `closing`, and no method on this engram moves it.
2781
- * /
2782
- * / ⟨2026-10-05, later — ic402 2.17.4, beside the line above, whose first case 2.17.4 removed⟩ A
2783
- * / refund call the ledger REJECTS no longer leaves the session reading `closing`: the close ends it
2784
- * / `closed`, as it does a refund the ledger refuses, and this method returns what is left in its
2785
- * / escrow for 24 hours from that close. Ask for at most the escrow's ledger balance less one fee;
2786
- * / the transfer pays its own fee from the escrow. A session still reads `closing` only when its
2787
- * / close trapped after one of its awaits, or an earlier version left it there, and of that one the
2788
- * / line above still holds.
2789
- * /
2790
- * / ⟨2026-10-07, the owner's decision of that day⟩ WHAT IT ANSWERS: what came back. `amountE6` is
2791
- * / the ckUSDC base units transferred to the payer's own account (the amount asked, capped at the
2792
- * / session's unconsumed deposit; the transfer's fee comes out of the escrow on top), and
2793
- * / `blockIndex` is the ledger block of that transfer. Until this date it answered a bare `nat` that
2794
- * / was the block index alone, which read as the amount. If the session's record is removed before
2795
- * / the amount can be read back — a session closed in the same moment as the recovery and cleaned up
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.
2523
+ * / WHEN IT IS NEEDED: for a REFUND LEG THAT FAILED — a transient ledger error, or a refund the
2524
+ * / ledger refused or rejected. The settle went through, ic402 marks the session `closed`, and the
2525
+ * / remainder stays in escrow; this method returns it for 24 hours from that close. A session spent
2526
+ * / to its whole budget still closes cleanly — ic402 settles `min(consumed, deposited − fee)` and
2527
+ * / skips a refund of zero — and under the one-fee reserve a clean close leaves the escrow holding
2528
+ * / nothing or less than one fee, which no transfer can move. A failed settle is not this method's
2529
+ * / case: ic402 puts that session back to open, where this method refuses, and the close is retried
2530
+ * / instead. Escrow comes back only from a session that reads `closed`; one that reads `closing` or
2531
+ * / `expired` (its close has not finished) is refused and nothing moves. A session still reads
2532
+ * / `closing` only when its close trapped after one of its awaits, and no method on this engram moves
2533
+ * / it. WHAT WOULD MAKE THIS WRONG: an ic402 whose close stops capping the settle, or a live ckUSDC
2534
+ * / fee above `Env.CKUSDC_FEE`.
2535
+ * /
2536
+ * / HOW MUCH: ask for at most the escrow's ledger balance less one fee; the transfer pays its own
2537
+ * / fee from the escrow. A recovery is capped at the session's unconsumed deposit and at what the
2538
+ * / session's close recorded as still owed to the payer, less one ledger fee, and lowers that record
2539
+ * / by what it paid — so asking for everything returns what the escrow can pay. A session with no
2540
+ * / such record (its close refunded in full, or it was recovered already) is refused: "Nothing is
2541
+ * / owed on this session…". One recovery of a session runs at a time.
2542
+ * /
2543
+ * / WHAT IT ANSWERS: what came back. `amountE6` is the library's own figure, from its receipt, for
2544
+ * / the ckUSDC base units transferred to the payer's own account, and `blockIndex` is the ledger
2545
+ * / block of that transfer. (A bare block index, which an earlier version answered, read as the
2546
+ * / amount.)
2547
+ * /
2548
+ * / ckUSDC only — an engram session's intent names `Env.CKUSDC_LEDGER` and nothing else, so there is
2549
+ * / no token to choose and no wrong one to pass. So the amount is a bare `nat` (`amountE6`, ckUSDC
2550
+ * / base units), unlike the market's `recoverEscrow`, which takes `Wire.TokenAmount`, on purpose: the
2551
+ * / market escrows more than one token, so the amount has to say which; a `TokenAmount` here would
2552
+ * / make an `#Icp` amount representable and then refuse it at runtime — the argument
2553
+ * / `convertEarningsToCycles` makes.
2554
+ * /
2555
+ * / ⚠ `#Conflict` HERE ALSO COVERS "NOT THE SESSION'S PAYER". The payer check is ic402's
2556
+ * / (`recoverEscrow` authorizes `caller == session.payer`), and the library answers every refusal
2557
+ * / down one text channel, so "Not authorized: only session payer can recover escrow" arrives as
2558
+ * / `#Conflict`, beside the state refusals (a session that is not `closed`, nothing owed or nothing
2559
+ * / to recover, no such session). Read the MESSAGE, not the arm; one arm per kind of refusal needs
2560
+ * / the library to carry them. (The payments-frozen refusal in the body is this engram's own, and
2561
+ * / is state.)
2807
2562
  */
2808
2563
  recoverEscrow: ActorMethod<[string, bigint], Result_20>;
2809
2564
  /**
2810
- * / ⟨0.16.0, refusals are values, never traps⟩ A REDEMPTION PATH, where the arm choice is a disclosure decision.
2565
+ * / A REDEMPTION PATH (refusals are values, never traps), where the arm choice is a disclosure
2566
+ * / decision.
2811
2567
  * /
2812
2568
  * / Four of these refusals are about the CODE and one is about the caller. The code arms restate
2813
2569
  * / exactly what the text already said — an unknown code is `#NotFound`, a used or expired one is
@@ -2816,10 +2572,10 @@ export interface Engram {
2816
2572
  * / capacity) rather than `#Unavailable`: nothing failed, and the caller's own recent behaviour is
2817
2573
  * / what closed the door, so "try again" is true only after the stated wait.
2818
2574
  * /
2819
- * / ⟨2026-10-02⟩ Answers the `GuardianRecord` it created — `#Pending` until the owner approves —
2820
- * / rather than `()`. The new guardian learns, in the same reply, the name and permissions the
2821
- * / owner's invite gave them and that they cannot act until approved; before, that took a second
2822
- * / read they had no reason to know to make.
2575
+ * / Answers the `GuardianRecord` it created — `#Pending` until the owner approves — rather than
2576
+ * / `()`. The new guardian learns, in the same reply, the name and permissions the owner's invite
2577
+ * / gave them and that they cannot act until approved; otherwise that would take a second read they
2578
+ * / had no reason to know to make.
2823
2579
  */
2824
2580
  registerGuardian: ActorMethod<[string], Result_19>;
2825
2581
  /**
@@ -2831,23 +2587,21 @@ export interface Engram {
2831
2587
  */
2832
2588
  removeCallerSpendPolicy: ActorMethod<[Principal], Result_2>;
2833
2589
  /**
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.
2590
+ * / Remove a destination from one action's list. Instant, and NOT freeze-gated: removal TIGHTENS,
2591
+ * / and a frozen engram must still be able to shrink what it could sign to.
2837
2592
  */
2838
2593
  removeEip712Destination: ActorMethod<[Uint8Array | number[], string], Result_2>;
2839
2594
  /**
2840
- * / De-register a type that has NEVER SIGNED. Exists because of a hazard the first external
2841
- * / validation found within hours (consumer report, 2026-08-06): a bare-name #standard registration —
2842
- * / cheap, no watcher preconditions — permanently blocked the guarded namespaced registration
2843
- * / via the collision rule, with no way out. An owner typo could brick a venue integration for
2844
- * / the engram's lifetime. Never-signed is the whole gate: a type that signed even once is part
2845
- * / of what the audit chain's eip712.sign entries mean, and stays resolvable forever — this
2846
- * / removes only authority that was never exercised, which is removing nothing but the mistake.
2847
- * / NOT freeze-gated, same reasoning as removeEvmWithdrawDestination: this is TIGHTENING, and a
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.
2595
+ * / De-register a type that has NEVER SIGNED. It exists because of a hazard an early external
2596
+ * / validation found within hours (2026-08-06): a bare-name #standard registration — cheap, no
2597
+ * / watcher preconditions — permanently blocked the guarded namespaced registration via the
2598
+ * / collision rule, with no way out. An owner typo could brick a venue integration for the
2599
+ * / engram's lifetime. Never-signed is the whole gate: a type that signed even once is part of what
2600
+ * / the audit chain's eip712.sign entries mean, and stays resolvable forever — this removes only
2601
+ * / authority that was never exercised, which is removing nothing but the mistake.
2602
+ * / NOT freeze-gated, same reasoning as `removeEip712Destination`: this is TIGHTENING, and a frozen
2603
+ * / engram must still be able to shrink what it could sign. Removing a type also drops its rules and
2604
+ * / its own destination list.
2851
2605
  */
2852
2606
  removeEip712Type: ActorMethod<[Uint8Array | number[]], Result_2>;
2853
2607
  /**
@@ -2871,8 +2625,8 @@ export interface Engram {
2871
2625
  */
2872
2626
  removeSeller: ActorMethod<[string], Result_2>;
2873
2627
  /**
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.
2628
+ * / OWNER-ONLY: give an agent a new name. A name is otherwise fixed at the invite, so two agents both
2629
+ * / called "agent" could not be told apart.
2876
2630
  * / Only the VALUE of the stored `AgentRecord.name` changes — no new state, no reshaped record —
2877
2631
  * / and the change is on the record as `agent.rename` (`principal=<key> name=<new name>`, the name
2878
2632
  * / last). An ended agent may be renamed too (`People.renameTarget` says why).
@@ -2901,34 +2655,32 @@ export interface Engram {
2901
2655
  * / · memory DELETES are soft, so version history is retained and paths stay enumerable via
2902
2656
  * / `listDeletedMemoryFiles`;
2903
2657
  * / · `agentPurgeLog`, which is the durable record of who was severed;
2904
- * / · ⟨2026-09-29⟩ today's spending totals — each caller's and the engram-wide one — and the
2905
- * / owner's engram-wide ceiling. A reset severs access; it never gives back a day's allowance
2906
- * / already spent, so a key re-admitted after a reset keeps what it spent today (the totals are
2907
- * / kept per calling key).
2908
- * / · ⟨2026-10-02⟩ the seat weeks of every engagement (`agentSeatWeeks`), with the signature count
2909
- * / they sit beside, and the owner's switch over the metrics reader's read and the reader it
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.
2915
- * /
2916
- * / ⟨2026-10-02⟩ It tells the spawning registry that it happened (`sysNoteReset`), on every reset.
2658
+ * / · today's spending totals — each caller's and the engram-wide one — and the owner's
2659
+ * / engram-wide ceiling. A reset severs access; it never gives back a day's allowance already
2660
+ * / spent, so a key re-admitted after a reset keeps what it spent today (the totals are kept per
2661
+ * / calling key).
2662
+ * / · the seat weeks of every engagement (`agentSeatWeeks`), with the signature count they sit
2663
+ * / beside, and the owner's switch over the metrics reader's read and the reader it names — a
2664
+ * / reset severs access, it does not change who may read what was kept.
2665
+ * / · the seller list and the paid history (`listSellers`, `getRecipientHistory`), as the
2666
+ * / typed-data destinations are kept: a reset severs access, it does not forget which
2667
+ * / counterparties the owner approved or which addresses this engram has paid.
2668
+ * /
2669
+ * / It tells the spawning registry that it happened (`sysNoteReset`), on every reset.
2917
2670
  * /
2918
2671
  * / It is recorded as ONE chained `engram.reset` entry that also names the flag transitions.
2919
2672
  * /
2920
2673
  * / ⚠ AND THE LIMIT OF THAT RECORD, because a caller relying on it should know: the audit chain is
2921
- * / NOT unbounded. It caps at MAX_ENTRIES and trims its oldest tenth on overflow, so on any engram
2922
- * / long-lived enough for the rent model to apply, the reset entry is not guaranteed to still be
2923
- * / there. `agentPurgeLog` is the evidence that does not age out — which is why it exists.
2674
+ * / NOT unbounded. It caps at MAX_ENTRIES and trims its oldest tenth on overflow, so on any
2675
+ * / long-lived engram the reset entry is not guaranteed to still be there. `agentPurgeLog` is the
2676
+ * / evidence that does not age out — which is why it exists.
2924
2677
  */
2925
2678
  resetEngram: ActorMethod<[], Result_18>;
2926
2679
  /**
2927
- * / ⟨2026-09-28, owner decision: an agent can resign from an engram, and the resignation is
2928
- * / recorded⟩ The AGENT ends its own engagement with this engram.
2680
+ * / The AGENT ends its own engagement with this engram, and the resignation is recorded.
2929
2681
  * /
2930
- * / WHY IT EXISTS: before this, every ending was something done TO an agent — revoked by the
2931
- * / owner, by a guardian, by the kill switch, or by a reset — so an agent that wanted to leave
2682
+ * / WHY IT EXISTS: every other ending is something done TO an agent — revoked by the owner, by a
2683
+ * / guardian, by the kill switch, or by a reset — so without this an agent that wanted to leave
2932
2684
  * / cleanly had to wait to be fired, and its track record across engrams could not tell a clean exit
2933
2685
  * / from a firing. This is the one ending the agent itself chooses, and the registry records it
2934
2686
  * / under its own reason (`#Resigned`), never folded into a revocation.
@@ -2951,28 +2703,23 @@ export interface Engram {
2951
2703
  */
2952
2704
  resumeWrites: ActorMethod<[], Result_2>;
2953
2705
  /**
2954
- * / Self-heal: re-send every ACTIVE agent's start to the spawning registry (idempotent — the
2955
- * / registry mints no duplicate for an open engagement), for when a notice was missed. Owner-only.
2956
- * / Returns how many the registry ACKNOWLEDGED. ⟨2026-09-28: it used to count sends that did not
2957
- * / throw, against a method that could not say no; it now counts `#Ok` answers.⟩ It re-sends
2958
- * / starts only: an ending carries a reason this roster does not keep per principal.
2959
- * /
2960
- * / ⟨CORRECTED 2026-09-29, a review finding — the owner's ruling⟩ It now re-sends ENDINGS as
2961
- * / well as starts, endings first (`AgentEdges.resyncPlan` says why): every ended record on the
2962
- * / roster and every agent a reset removed keeps its ending's reason and day
2963
- * / (`Types.AgentEnding`), so an ending the registry never received — the one loss that used to
2964
- * / show an engram's engagement as live on the agent's record forever and block the agent's later starts here —
2965
- * / is recorded by one call of this. The registry answers an ending it already holds `#Ok`.
2966
- * / RESHAPED REPLY: `Types.ResyncReport` in place of a bare count — the endings and starts the
2967
- * / registry acknowledged, and every notice it did not, with its own words, so the owner can tell
2968
- * / an expected answer (an ending for a start that was never recorded says so) from a real one.
2969
- * / The calls leave in batches of `RESYNC_BATCH`, each batch in order and wholly answered before the
2970
- * / next leaves, so the order above holds at the registry.
2971
- * / ⟨2026-09-29⟩ WHAT A RESYNC CANNOT DO: record an engagement whose start the registry never
2972
- * / recorded and which has since ENDED. A start is re-sent only for an agent still active here, so
2973
- * / all that is left to send is the ending, and the registry has nothing to end. The report lists
2974
- * / each such engagement under `cannotBeRecorded` (key, root, invite, and how and when it ended),
2975
- * / apart from `notRecorded`, so the owner sees them rather than silence.
2706
+ * / Self-heal: re-send to the spawning registry every recorded ending and every ACTIVE agent's start,
2707
+ * / for when a notice was missed. Owner-only. Endings first (`AgentEdges.resyncPlan` says why): every
2708
+ * / ended record on the roster and every agent a reset removed keeps its ending's reason and day
2709
+ * / (`Types.AgentEnding`), so an ending the registry never received — the one loss that would show an
2710
+ * / engram's engagement as live on the agent's record forever and block the agent's later starts
2711
+ * / here — is recorded by one call of this. Idempotent: the registry mints no duplicate for an open
2712
+ * / engagement, and answers an ending it already holds `#Ok`.
2713
+ * / THE REPLY is `Types.ResyncReport`: the endings and starts the registry ACKNOWLEDGED (counted by
2714
+ * / its `#Ok` answers, not by sends that did not throw), and every notice it did not, with its own
2715
+ * / words, so the owner can tell an expected answer (an ending for a start that was never recorded
2716
+ * / says so) from a real one. The calls leave in batches of `RESYNC_BATCH`, each batch in order and
2717
+ * / wholly answered before the next leaves, so the order above holds at the registry.
2718
+ * / WHAT A RESYNC CANNOT DO: record an engagement whose start the registry never recorded and which
2719
+ * / has since ENDED. A start is re-sent only for an agent still active here, so all that is left to
2720
+ * / send is the ending, and the registry has nothing to end. The report lists each such engagement
2721
+ * / under `cannotBeRecorded` (key, root, invite, and how and when it ended), apart from
2722
+ * / `notRecorded`, so the owner sees them rather than silence.
2976
2723
  */
2977
2724
  resyncAgentEdges: ActorMethod<[], Result_17>;
2978
2725
  /**
@@ -2984,22 +2731,24 @@ export interface Engram {
2984
2731
  /**
2985
2732
  * / Replace the whole content of an EXISTING file.
2986
2733
  * /
2987
- * / This is the one thing agents could never do before: every agent write was an append,
2988
- * / so a file could only ever grow. The ruling that opened it is narrow, and every part of the
2989
- * / narrowness is enforced below — an agent may replace content only on a path the owner has
2734
+ * / This is the one thing agents could never do in the legacy store: every agent write was an
2735
+ * / append, so a file could only ever grow. The permission that opens it is narrow, and every part
2736
+ * / of the narrowness is enforced below — an agent may replace content only on a path the owner has
2990
2737
  * / granted, only where retention is not #vault, and only where the file already exists. Vault
2991
2738
  * / paths stay append-only forever, which is the claim the product makes about them.
2992
2739
  * /
2993
2740
  * / Replacing is safe here in a way it was not in the legacy store: the prior version is not
2994
2741
  * / overwritten, it is superseded. It stays readable, its hash stays committed, and the agent
2995
2742
  * / floor keeps its bytes for the window a counterparty needs to extract them.
2996
- * / ⟨0.16.0, refusals are values, never traps⟩ FIVE AGENT REFUSALS, ALL `#Refused`, AND THE UNIFORMITY IS THE FINDING.
2743
+ * /
2744
+ * / FIVE AGENT REFUSALS, ALL `#Refused` (refusals are values, never traps), AND THE UNIFORMITY IS
2745
+ * / THE POINT.
2997
2746
  * /
2998
2747
  * / Reserved path, protected path, missing permission, ungranted revise path, `#vault` class — a
2999
- * / caller could previously tell these apart only by reading five different sentences, and every
3000
- * / one of them ends the same way: this agent may not make this write, and no retry by this
3001
- * / agent changes that. The prose already said "Not operator-retryable" four times over,
3002
- * / because a text field was the only place to put it. It is an arm now.
2748
+ * / caller could once tell these apart only by reading five different sentences, and every one of
2749
+ * / them ends the same way: this agent may not make this write, and no retry by this agent changes
2750
+ * / that. The prose already said "Not operator-retryable" four times over, because a text field was
2751
+ * / the only place to put it. It is an arm now.
3003
2752
  * /
3004
2753
  * / The one that could tempt a different arm is `#vault`, which looks like a state fact. It is
3005
2754
  * / not: the class is an AUTHORIZATION statement about who may replace content there, and it
@@ -3049,10 +2798,6 @@ export interface Engram {
3049
2798
  */
3050
2799
  revokeAllBearerTokens: ActorMethod<[], Result_15>;
3051
2800
  /**
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.
3056
2801
  * / Owner-only panic button: void every unredeemed invite. Returns how many were voided.
3057
2802
  * /
3058
2803
  * / Separate from `revokeAllAgents`: this stops invites that have NOT been redeemed yet and
@@ -3069,26 +2814,20 @@ export interface Engram {
3069
2814
  */
3070
2815
  revokeBearerToken: ActorMethod<[string], Result_2>;
3071
2816
  /**
3072
- * / ⟨0.16.0, the interface plan⟩ RETURNS A REAL RECEIPT, not `R<()>` — same reason as the delete
3073
- * / above, and sharper here: a rollback WRITES A NEW VERSION, so the caller's next question is
3074
- * / always "which version am I on now". `r.version` was already read for the audit line.
2817
+ * / RETURNS A REAL RECEIPT, not `R<()>` (since 0.16.0) — same reason as the delete above, and
2818
+ * / sharper here: a rollback WRITES A NEW VERSION, so the caller's next question is always "which
2819
+ * / version am I on now". `r.version` was already read for the audit line.
3075
2820
  */
3076
2821
  rollbackMemory: ActorMethod<[string, bigint], Result>;
3077
2822
  /**
3078
- * / SELF-SERVICE, and that is the surprising part: the AGENT calls this, not the owner. An
3079
- * / agent rotates its own CallerKey binding without needing the owner to act.
3080
- * /
3081
- * / ⚠ IT ROTATES THE KEY, NOT THE PRINCIPAL. Only `publicKeyHash` changes; the agent record
3082
- * / stays keyed on the same principal, keeps its permissions, and keeps its place against the
3083
- * / one-shot registration rule. So this is the answer to "my key is compromised", and it is NOT a
3084
- * / way to move an agent seat to a different wallet — that is a new invite, and only if the
3085
- * / old principal was never revoked.
3086
- * / ⟨CORRECTED 2026-09-29, the owner's ruling of that date⟩ Two sentences
3087
- * / above are no longer true. An agent's record CAN now move to a different key, in one step and
3088
- * / with no new invite: `nominateAgentKey` from the current key, then `acceptAgentKeyNomination`
3089
- * / from the new one. And a compromised key is answered by that move — this method only changes a
3090
- * / recorded hash, and the compromised principal keeps calling as the agent. This method still
3091
- * / does what it says; the move is the one that changes which key the engram answers.
2823
+ * / SELF-SERVICE, and that is the surprising part: the AGENT calls this, not the owner. It changes
2824
+ * / the agent's recorded CallerKey binding (`publicKeyHash`) without needing the owner to act.
2825
+ * /
2826
+ * / ⚠ IT CHANGES A RECORDED HASH, NOT THE KEY THE ENGRAM ANSWERS. The agent record stays keyed on
2827
+ * / the same principal, keeps its permissions, and keeps its place against the one-shot registration
2828
+ * / rule, and that principal keeps calling as the agent. So it is NOT the answer to "my key is
2829
+ * / compromised": that is moving the record to a different key, in one step and with no new invite —
2830
+ * / `nominateAgentKey` from the current key, then `acceptAgentKeyNomination` from the new one.
3092
2831
  * /
3093
2832
  * / `#Conflict` rather than `#Refused` for a `#Revoked` or `#Resigned` record: the caller IS the
3094
2833
  * / agent on that record, so its standing is not the problem — the record's state is. An
@@ -3103,28 +2842,27 @@ export interface Engram {
3103
2842
  * / writes-pause and encrypted-memory refusal as appendMemoryText; returns the write receipt and the
3104
2843
  * / exact bytes sent. Callers: the npm library's ProfileManager saves and SessionManager.writeSummary
3105
2844
  * / (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.
2845
+ * / One door, not four: savePreference, saveInsight, saveDecision and writeSessionSummary were merged
2846
+ * / into it before any release, so every client supports three fewer methods for as long as they are
2847
+ * / served.
3110
2848
  */
3111
2849
  saveMemoryEntry: ActorMethod<[MemoryEntry], Result_16>;
3112
2850
  /**
3113
2851
  * / Send money from this engram's wallet to the engram it was opened through — "up", and only up:
3114
2852
  * / 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.
2853
+ * / names. ANY amount; the answer is the ledger's block index.
3116
2854
  * /
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.
2855
+ * / WHO: the owner's key file or the sign-in, in an engram opened through another (both may send —
2856
+ * / the key file's honest sweep needs it, and the sign-in may sweep too); refused to anyone else. In
2857
+ * / a first engram there is nothing above it, and it refuses with `#Conflict`. NOT freeze-gated: up
2858
+ * / is not out, so a payments freeze does not stop it.
3121
2859
  * /
3122
2860
  * / ORDER: the caller, then the parent from this engram's own birth record (`openedFrom`, no await),
3123
2861
  * / then ONE call to the registry — refused unless the registry shows the parent registered, active
3124
2862
  * / and not abandoned (`#Refused`; the registry unreachable is `#Unavailable`; nothing sent either
3125
2863
  * / 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.
2864
+ * / counted (`TimerPause`'s rule for outgoing calls), so near its freezing line this engram may be
2865
+ * / unable to send the registry call at all; it then answers `#Unavailable` and nothing moves.
3128
2866
  * /
3129
2867
  * / NO RE-CHECK between the two calls, deliberately: the parent can be abandoned in between, and the
3130
2868
  * / money then sits in an existing canister whose owner can still withdraw it. Guarding that window
@@ -3134,16 +2872,13 @@ export interface Engram {
3134
2872
  * / signature counts count signatures; nothing reads a ledger balance, and this method calls none of
3135
2873
  * / those writers (test/child-sign-in-wiring.test.ts rule 13). Written to the record as
3136
2874
  * / `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.
2875
+ * / Named callers: the owner kit, signed by the key file; an owner's app, signed in as the sign-in.
3138
2876
  */
3139
2877
  sendToParent: ActorMethod<[TokenAmount], Result_15>;
3140
2878
  /**
3141
2879
  * / Append to a memory file against a PAID x402 session voucher — the write half of the paid rail,
3142
- * / authorized by the voucher rather than by a role.
3143
- * / ⟨2026-09-30, ic402 2.17.0⟩ Authorized by the payer's own call with the voucher: only the
3144
- * / principal that opened the session, calling as that key, can spend it (see `sessionReadMemory`).
3145
- * / ⟨CORRECTED 2026-09-30, the owner's fresh-key ruling⟩ Authorized by the session KEY's own
3146
- * / call: the fresh key the payer named at open. The write is attributed to the payer, who paid;
2880
+ * / authorized by the voucher rather than by a role: by the session KEY's own call, the fresh key the
2881
+ * / payer named at open (see `sessionReadMemory`). The write is attributed to the payer, who paid;
3147
2882
  * / the record row also names the key that made it.
3148
2883
  * /
3149
2884
  * / ⚠ AS WITH `sessionReadMemory`, EVERY REFUSAL FIRES BEFORE THE VOUCHER IS CONSUMED — nothing is
@@ -3151,17 +2886,12 @@ export interface Engram {
3151
2886
  * / when the engram is client-side encrypted: a paid session appending plaintext to an encrypted
3152
2887
  * / store would CORRUPT it, so that refusal is protecting the owner's data rather than gating
3153
2888
  * / access. Append through the EngramX client/SDK instead.
3154
- * / ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ RETURNS THE SAME RECEIPT THE FREE WRITER DOES.
3155
- * / It answered `Wire.Result<Nat>`: the version, and nothing else. The free `writeMemory` returns
3156
- * / `{ version; seq; head }`, so a PAYING writer got strictly LESS evidence than a caller who paid
3157
- * / nothing — on the one rail a stranger can buy, where the receipt is the whole product. The head
3158
- * / is what makes an append verifiable by someone who was not there; a bare version number is not
3159
- * / checkable against anything.
3160
- * /
3161
- * / It cost nothing to fix: `r` was already in scope and already being read — the old body did
3162
- * / `let v = r.version` and passed `r` to `receiptSuffix(r)` for the audit line, then discarded
3163
- * / everything but the version on the way out. Free until the cut, breaking forever after, which
3164
- * / is why it lands now rather than after the test migration (as ruled 2026-08-24).
2889
+ * /
2890
+ * / RETURNS THE SAME RECEIPT THE FREE WRITER DOES (since 0.16.0). It answered `Wire.Result<Nat>`:
2891
+ * / the version, and nothing else, so a PAYING writer got strictly LESS evidence than a caller who
2892
+ * / paid nothing — on the one rail a stranger can buy, where the receipt is the whole product. The
2893
+ * / head is what makes an append verifiable by someone who was not there; a bare version number is
2894
+ * / not checkable against anything.
3165
2895
  */
3166
2896
  sessionAppendMemory: ActorMethod<[Voucher, string, Uint8Array | number[]], Result>;
3167
2897
  /**
@@ -3187,17 +2917,15 @@ export interface Engram {
3187
2917
  sessionReadContext: ActorMethod<[string], Result_14>;
3188
2918
  /**
3189
2919
  * / Read one memory file against a PAID x402 session voucher. No role, no invite — the voucher is
3190
- * / the authorization, which is what makes this the engram's one rail a stranger can pay to use.
3191
- * /
3192
- * / ⟨2026-09-30, ic402 2.17.0⟩ WHO MAY SPEND A SESSION: only its payer, calling as the same raw
3193
- * / Ed25519 key that opened it. The voucher still carries the amount and the sequence; the
3194
- * / authorization is now the call itself, and the canister no longer checks a voucher signature.
3195
- * / A stranger can still pay to use this rail — by opening a session of their own.
3196
- * / ⟨CORRECTED 2026-09-30, the owner's fresh-key ruling⟩ Not the payer: the session's own key
3197
- * / — the fresh Ed25519 key the payer named at open — calling as itself. The payer, who opened
3198
- * / the session and closes it, is refused here like anyone else who is not that key.
3199
- * / ⟨CORRECTED 2026-09-30, review⟩ …unless the payer named their own identity key at open, which
3200
- * / nothing refuses: then the payer IS that key and spends.
2920
+ * / the authorization, which is what makes this the engram's one rail a stranger can pay to use (by
2921
+ * / opening a session of their own).
2922
+ * /
2923
+ * / WHO MAY SPEND A SESSION: the session's own key — the fresh Ed25519 key the payer named at open —
2924
+ * / calling as itself (ic402 2.17.0 and later). The voucher carries the amount and the sequence; the
2925
+ * / authorization is the call itself, and the canister checks no voucher signature. The payer, who
2926
+ * / opened the session and closes it, is refused here like anyone else who is not that key — unless
2927
+ * / the payer named their own identity key at open, which nothing refuses: then the payer IS that
2928
+ * / key and spends.
3201
2929
  * /
3202
2930
  * / ⚠ EVERY REFUSAL BELOW HAPPENS BEFORE THE VOUCHER IS CONSUMED, so **no funds move on any of
3203
2931
  * / them**. That is the property a payer most needs and the one a signature cannot express: a
@@ -3219,9 +2947,9 @@ export interface Engram {
3219
2947
  sessionReadMemory: ActorMethod<[Voucher, string], Result_13>;
3220
2948
  /**
3221
2949
  * / Configure action alerts: an https webhook that receives new chained-audit entries matching the
3222
- * / enabled event classes (money / approvals / guardian / agentWrites), batched, at most one
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
2950
+ * / enabled event classes (money / approvals / guardian / agentWrites), batched: delivered within
2951
+ * / seconds of the action (a 5 s batch window), at most one POST per minute, and nothing runs while
2952
+ * / nothing is owed. Owner-only. Payloads carry audit METADATA (operation, caller, role, bounded
3225
2953
  * / details) — never memory file contents. Setting a URL (re)arms delivery FROM NOW: the cursor
3226
2954
  * / jumps to the current end of the log so history is not replayed. Passing url = null disables.
3227
2955
  * / The URL itself is never written to the audit log (webhook URLs often embed secret tokens).
@@ -3232,7 +2960,7 @@ export interface Engram {
3232
2960
  * / may do without ending their access — `revokeAgent` is terminal for that principal, this is
3233
2961
  * / not.
3234
2962
  * /
3235
- * / ⚠ ONE GRANT IS REFUSED OUTRIGHT: memory-read to the EngramX PLATFORM principal while this
2963
+ * / ⚠ ONE GRANT IS REFUSED OUTRIGHT: memory-read to the SPAWNING REGISTRY's principal while this
3236
2964
  * / engram is Private (encrypted), because that principal could then derive the decryption key and
3237
2965
  * / Private mode would be a claim rather than a property. It is the mirror of the guard on
3238
2966
  * / `setEncryptionEnabled`, which refuses to ENABLE Private while that grant already exists —
@@ -3255,8 +2983,7 @@ export interface Engram {
3255
2983
  */
3256
2984
  setAgentRevisablePaths: ActorMethod<[Array<string>], Result_2>;
3257
2985
  /**
3258
- * / ⟨0.16.0 — the interface plan's entry⟩ Returns the APPLIED config, which is how this closes the
3259
- * / setter-without-a-getter gap without adding a method: the write is the read.
2986
+ * / Returns the APPLIED config (since 0.16.0).
3260
2987
  * /
3261
2988
  * / `prunedBackups` is the part that matters. Enforcing a retention cap DELETES finalized backups
3262
2989
  * / beyond it, and this method used to answer `#Ok(())` over that — the module's own comment
@@ -3264,11 +2991,10 @@ export interface Engram {
3264
2991
  * / by a `Debug.print` nobody reads. An owner lowering the cap is destroying their own backups;
3265
2992
  * / they are told how many, in the reply and in the audit line.
3266
2993
  * /
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.
2994
+ * / The number bounds EACH creator's backups of the kind (`Backup.enforceRetention`): an agent's
2995
+ * / finalize prunes only that agent's own, and this setter applies the number to every creator's
2996
+ * / set, so `prunedBackups` counts across all of them. The read is `getBackupRetention`: a second
2997
+ * / device never made the write, so the write cannot be its read.
3272
2998
  */
3273
2999
  setBackupRetention: ActorMethod<[string, bigint], Result_12>;
3274
3000
  /**
@@ -3289,8 +3015,6 @@ export interface Engram {
3289
3015
  */
3290
3016
  setChildAllowance: ActorMethod<[Principal, bigint], Result_2>;
3291
3017
  /**
3292
- * / ⟨0.16.0⟩ `getEncryptedMemoryKeyForEpoch` DELETED — folded into `getEncryptedMemoryKey`'s epoch
3293
- * / argument — see that method for the fold and the `null`-means-CURRENT rule.
3294
3018
  * / Owner-only: turn client-side memory encryption (Private mode) on or off for FUTURE writes.
3295
3019
  * /
3296
3020
  * / ⚠ IT DOES NOT TOUCH EXISTING FILES, and this is the fact that decides whether calling it alone
@@ -3299,9 +3023,9 @@ export interface Engram {
3299
3023
  * / · turning it ON leaves everything already stored as PLAINTEXT at rest, and
3300
3024
  * / · turning it OFF leaves everything already stored as CIPHERTEXT, which the hosted connector
3301
3025
  * / cannot read.
3302
- * / Either direction leaves a MIXED store that the flag alone misdescribes. The owner console
3303
- * / pairs this call with a migration (`useMemoryEncryption`'s `migrate` / `migrateToPlaintext`)
3304
- * / for exactly that reason; a caller reaching this method directly gets the flag and nothing else.
3026
+ * / Either direction leaves a MIXED store that the flag alone misdescribes. An owner's app should
3027
+ * / pair this call with a migration of the stored files for exactly that reason; a caller reaching
3028
+ * / this method directly gets the flag and nothing else.
3305
3029
  * /
3306
3030
  * / ⚠ ENABLING IS REFUSED while the spawning registry's principal holds memory-read access as an
3307
3031
  * / agent — it could derive the decryption key, which would make Private mode a claim rather
@@ -3337,20 +3061,20 @@ export interface Engram {
3337
3061
  * / Per-prefix retention policy. The longest rule that covers a path wins; anything uncovered
3338
3062
  * / keeps everything.
3339
3063
  * /
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.
3064
+ * / "Covers" is the folder matcher (`AgentPaths.covers`, through `RetentionPolicy.resolve`): a rule
3065
+ * / ending in "/" governs everything beneath it, any other rule exactly one path. (It was a bare
3066
+ * / text prefix before 2026-10-21.)
3343
3067
  * /
3344
- * / A CHANGE does not take effect immediately, in EITHER direction: every prefix whose EFFECTIVE
3345
- * / class moves is guarded for the same window as the agent floor, so history cannot be
3068
+ * / A CHANGE does not take effect on EVICTION immediately, in EITHER direction: every prefix whose
3069
+ * / EFFECTIVE class moves is guarded for the same window as the agent floor, so history cannot be
3346
3070
  * / thinned in the same sweep as the decision to thin it. Loosening waits too — distinguishing
3347
3071
  * / "tightened" from "loosened" precisely would mean comparing two cap lattices, so armGuards
3348
3072
  * / (RetentionPolicy.mo) guards any change it sees. That is the conservative reading, and its
3349
3073
  * / 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.
3074
+ * / That delay applies to eviction only (`resolveRetentionForEviction`), not to the class used for
3075
+ * / revision: `reviseMemory` reads `retentionClassOf` → `RetentionPolicy.resolve` without a guard,
3076
+ * / so a newly written `#vault` forbids agent revision immediately, including during the 14-day
3077
+ * / eviction guard. The owner's revision is unchanged.
3354
3078
  */
3355
3079
  setMemoryRetentionPolicy: ActorMethod<[Array<[string, RetentionClassSpec]>], Result_2>;
3356
3080
  /**
@@ -3388,8 +3112,8 @@ export interface Engram {
3388
3112
  */
3389
3113
  setPaidMemoryWriteEnabled: ActorMethod<[boolean], Result_2>;
3390
3114
  /**
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:
3115
+ * / Refusals are values, never traps. Every validation refusal here is `#Invalid` and the cap is
3116
+ * / `#Conflict`, and the split is worth stating once for the whole whole-value-config family below:
3393
3117
  * / a malformed path is the CALLER'S to fix and retrying with a corrected list works, while "max 20"
3394
3118
  * / is a property of this engram that no argument gets around. A caller that cannot tell those apart
3395
3119
  * / either edits forever or gives up on a request that was one character from valid.
@@ -3397,10 +3121,10 @@ export interface Engram {
3397
3121
  setProtectedPaths: ActorMethod<[Array<string>], Result_2>;
3398
3122
  /**
3399
3123
  * / OWNER-ONLY: switch the metrics reader's read of the seat weeks off (`false`) or back on (`true`).
3400
- * / On from birth, by the owner's ruling of 2026-10-02. Off, `sysGetAgentSeatWeeks` refuses the
3401
- * / reader by name, naming this switch; the rows are still kept and the owner still reads them. Each
3402
- * / call is a chained record entry (`metrics.setSeatWeeksReadEnabled`, the new and the old value), so
3403
- * / when the read was on or off is part of the record. Anyone else is refused by name.
3124
+ * / On from birth. Off, `sysGetAgentSeatWeeks` refuses the reader by name, naming this switch; the
3125
+ * / rows are still kept and the owner still reads them. Each call is a chained record entry
3126
+ * / (`metrics.setSeatWeeksReadEnabled`, the new and the old value), so when the read was on or off is
3127
+ * / part of the record. Anyone else is refused by name.
3404
3128
  */
3405
3129
  setSeatWeeksReadEnabled: ActorMethod<[boolean], Result_2>;
3406
3130
  /**
@@ -3413,38 +3137,34 @@ export interface Engram {
3413
3137
  */
3414
3138
  setSellerCap: ActorMethod<[string, bigint], Result_11>;
3415
3139
  /**
3416
- * / Set the most this engram may spend per day ACROSS EVERY CALLER — five agents, the owner and the
3417
- * / marketplace together. `null` removes the ceiling. ⟨2026-09-28⟩
3418
- * / ⟨CORRECTED 2026-09-29, a review finding: "spend" was too wide. The ceiling covers the x402
3419
- * / payments this engram signs (`signX402Payment` and the marketplace's `sysSignX402Payment`) and
3420
- * / nothing else: it is the most this engram may sign in x402 payments per day. Two other signing
3421
- * / paths are NOT counted against it — typed-data signatures (`signEip712` / `sysSignEip712`),
3422
- * / bounded instead by each registered type's daily count and destination list; and agent-
3423
- * / registration transactions (`signEngramRegistration`), bounded by three per caller per day and
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
3140
+ * / Set the most this engram may sign in x402 payments per day ACROSS EVERY CALLER — five agents,
3141
+ * / the owner and the marketplace together. `null` removes the ceiling. A new engram starts at
3142
+ * / `SpendCeiling.DEFAULT_ENGRAM_DAY` ($10.00 a day).
3143
+ * /
3144
+ * / WHAT COUNTS against it: the x402 payments this engram signs (`signX402Payment` and the
3145
+ * / marketplace's `sysSignX402Payment`), an agent's conversion of the engram's balance
3146
+ * / (`agentConvertBalance`), and the key file's Convert in an engram opened through another
3147
+ * / (`getSpendCeiling`'s note). Removing the ceiling does NOT free agent conversions: they keep their
3148
+ * / own bound, one in any 24 hours (`agentConvertAtNs`). Two other signing paths are NOT counted
3149
+ * / against it — typed-data signatures (`signEip712` / `sysSignEip712`), bounded instead by each
3426
3150
  * / 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.
3151
+ * / destination list, with the signing floor (`SigningFloor`) guarding them as it guards x402
3152
+ * / payments; and agent-registration transactions (`signEngramRegistration`), bounded by three per
3153
+ * / caller per day and the 500-gwei gas ceiling. Whether the ceiling should cover them is an open
3154
+ * / question.
3429
3155
  * /
3430
- * / WHY: the owner decided on 2026-09-28 to add one daily spending ceiling across all callers on an
3431
- * / engram and keep the limit of five agents. Every other spending limit is per caller, so without
3432
- * / this the engram's daily exposure was the SUM of up to seven allowances ($35.00 at the defaults)
3433
- * / and nobody could see it. The amount is in the same minor units the per-caller caps compare
3434
- * / (USDC's six decimals: 5_000_000 = $5.00), and like them it does not distinguish tokens.
3156
+ * / WHY: every other spending limit is per caller, so without this the engram's daily exposure was
3157
+ * / the SUM of up to seven allowances ($35.00 at the defaults) and nobody could see it; the limit of
3158
+ * / five agents stays. The amount is in the same minor units the per-caller caps compare (USDC's six
3159
+ * / decimals: 5_000_000 = $5.00), and like them it does not distinguish tokens.
3435
3160
  * /
3436
3161
  * / A payment that would take today's engram-wide total past this number is not signed: the caller
3437
3162
  * / gives a reason and it becomes a row in the approval queue, exactly as over a per-caller cap.
3438
- * / `0` is allowed and means every payment needs the owner's approval.
3439
- * / ⟨CORRECTED 2026-09-29, a review finding: not every payment — a payment of amount 0 crosses no
3440
- * / limit, so it is signed under a ceiling of 0 too. Whether amount-0 payments should be refused is
3441
- * / an open owner question.⟩ ⟨CORRECTED 2026-09-29, later — the owner ruled:
3442
- * / a payment of amount 0 is now refused by name before any limit is read (`X402Input.refusal`), so
3443
- * / under a ceiling of 0 every payment that can be signed at all does need the owner's approval.
3444
- * / And a new engram no longer starts with no ceiling: it starts at `SpendCeiling.DEFAULT_ENGRAM_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.
3163
+ * / Under a ceiling of `0` every payment that can be signed at all needs the owner's approval (a
3164
+ * / payment of amount 0 crosses no limit, so it is refused by name before any limit is read,
3165
+ * / `X402Input.refusal`). Takes effect on the next payment, counted against what was ALREADY spent
3166
+ * / today (the total is kept whether or not a ceiling is set), so setting a ceiling at noon does not
3167
+ * / grant a fresh day.
3448
3168
  * /
3449
3169
  * / Unlike `setSpendPolicy`, this does NOT auto-approve pending requests it now covers — a request
3450
3170
  * / held by the ceiling waits for `approveRequest`, or the caller retries against the new ceiling.
@@ -3454,10 +3174,6 @@ export interface Engram {
3454
3174
  * / The record entry `spend.setCeiling` carries the new AND the previous value, so a widening is
3455
3175
  * / distinguishable from a tightening afterwards — the reason `spend.setPolicy` records its limits.
3456
3176
  * / 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`).
3461
3177
  */
3462
3178
  setSpendCeiling: ActorMethod<[[] | [bigint]], Result_2>;
3463
3179
  /**
@@ -3476,22 +3192,23 @@ export interface Engram {
3476
3192
  * / Owner-only: set YOUR OWN safety rails on the funding path — a per-top-up ckUSDC ceiling and a
3477
3193
  * / minimum gap between top-ups. Read them back with `getTopUpLimits`.
3478
3194
  * /
3479
- * / ⚠ THESE ARE THE OWNER'S LIMITS, NOT THE PLATFORM'S. "Limits" reads like something imposed;
3480
- * / nothing outside this engram sets them, and an owner may raise them at will. They exist so a
3481
- * / compromised agent key or a runaway agent cannot drain a wallet in one call or in a fast loop,
3482
- * / which is a bound on YOUR OWN blast radius rather than on what you are permitted to spend.
3195
+ * / ⚠ THESE ARE THE OWNER'S OWN LIMITS. "Limits" reads like something imposed; nothing outside
3196
+ * / this engram sets them, and an owner may raise them at will. They exist so a compromised agent
3197
+ * / key or a runaway agent cannot drain a wallet in one call or in a fast loop, which is a bound on
3198
+ * / YOUR OWN blast radius rather than on what you are permitted to spend.
3483
3199
  * /
3484
3200
  * / The cooldown defaults to five minutes. `cooldownSeconds = 0` removes the gap entirely, which
3485
3201
  * / is a real choice and not an error.
3486
- * / ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ ONE RECORD, NOT TWO ADJACENT NATS. This took
3487
- * / `(newMaxCkusdcE6s : Nat, cooldownSeconds : Nat)` — the documented swap class, and a live one:
3488
- * / the suite calls `setTopUpLimits(10_000_000n, 300n)`, and a caller who transposes those gets a
3489
- * / 300-e6 cap with a 116-DAY cooldown. Candid matches positionally and both are `nat`, so the
3490
- * / wire accepts it, the types accept it, and the engram is quietly unable to top itself up.
3491
3202
  * /
3492
- * / The field names are NOT a new vocabulary — they are `getTopUpLimits`'s, which already answers
3493
- * / `{ cooldownSeconds; maxCkusdcE6s }`. Setter and getter now share one shape, so read-modify-
3494
- * / write is expressible and neither side can drift from the other without the compiler saying so.
3203
+ * / ONE RECORD, NOT TWO ADJACENT NATS (since 0.16.0). This took `(newMaxCkusdcE6s : Nat,
3204
+ * / cooldownSeconds : Nat)` — the argument-swap class, and a live one: a test called it as
3205
+ * / `setTopUpLimits(10_000_000n, 300n)`, and a caller who transposed those got a 300-e6 cap with a
3206
+ * / 116-DAY cooldown. Candid matches positionally and both are `nat`, so the wire accepted it, the
3207
+ * / types accepted it, and the engram was quietly unable to top itself up.
3208
+ * /
3209
+ * / The field names are NOT a new vocabulary — they are `getTopUpLimits`'s, which answers
3210
+ * / `{ cooldownSeconds; maxCkusdcE6s }`. Setter and getter share one shape, so read-modify-write is
3211
+ * / expressible and neither side can drift from the other without the compiler saying so.
3495
3212
  */
3496
3213
  setTopUpLimits: ActorMethod<[{ cooldownSeconds: bigint; maxCkusdcE6s: bigint }], Result_2>;
3497
3214
  /**
@@ -3506,59 +3223,48 @@ export interface Engram {
3506
3223
  * / VERBATIM (compact JSON, as JSON.stringify emits) to World's /api/v4/verify/{rp_id} over an HTTPS
3507
3224
  * / outcall (never trust the client). The v4 endpoint verifies both 4.0 proofs and legacy 3.0 proofs,
3508
3225
  * / so the OrbLegacy migration path and the 4.0 endgame ride the same method. Owner-only. `nullifier`
3509
- * / is the claimed unique-human pseudonym; it must appear verbatim inside resultJson, binding what we
3510
- * / store to the payload the verifier actually accepted. Only proof_of_human credentials are accepted
3226
+ * / is the claimed unique-human pseudonym; it must appear verbatim inside resultJson, binding what is
3227
+ * / stored to the payload the verifier actually accepted. Only proof_of_human credentials are accepted
3511
3228
  * / (selfie is farmable, passport/mnc are document identity — a different tier). Sets worldIdVerified
3512
3229
  * / and stores the result ONLY on a real verification success — never self-asserted.
3513
3230
  */
3514
3231
  setWorldIdProof: ActorMethod<[string, string], Result_2>;
3515
3232
  /**
3516
- * / Sign a registered type. ONE call, owner-only, freeze-gated — the delay lives on registration
3517
- * / (the typed-data design of 2026-08-04), never here: an emergency withdrawal must not need two owner round-trips.
3233
+ * / Sign a registered type. ONE call, owner-only, freeze-gated — the delay lives on registration,
3234
+ * / never here: an emergency withdrawal must not need two owner round-trips.
3518
3235
  * /
3519
- * / ⟨0.16.0⟩ PERSISTS beside the market's `sysSignEip712` (ruled in the 0.16.0 interface plan). The owner does
3520
- * / not lose the ability to sign because a marketplace gained it, and the two share every control
3521
- * / below the caller gate.
3236
+ * / It sits beside the market's `sysSignEip712`: the owner does not lose the ability to sign because
3237
+ * / a marketplace gained it, and the two share every control below the caller gate.
3522
3238
  * /
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).
3239
+ * / In an engram opened through another, a type named `HyperliquidTransaction:ApproveAgent`
3240
+ * / (`Eip712Policy.childSignInOnlyToSign`) is signed by the sign-in alone — the sign-in approves
3241
+ * / trading keys: the key file is refused it by name, and the sign-in may sign it (as the owner, on
3242
+ * / the record). Every other type is the key file's to sign. An access check beside the owner gate,
3243
+ * / keyed by the registered NAME, before any of `eip712SignFor`'s eight checks; a first engram is
3244
+ * / untouched (its owner is its own sign-in).
3530
3245
  */
3531
3246
  signEip712: ActorMethod<[Uint8Array | number[], Array<[string, Eip712Value]>], Result_5>;
3532
3247
  /**
3533
3248
  * / Sign the engram's own ERC-8004 registration tx for client-side broadcast: the engram signs, the client
3534
- * / broadcasts and keeps the resulting registration id.
3535
- * /
3536
- * / Agent-accessible. The comment here claimed "saves ~55-85M cycles vs registerAgent" until
3537
- * / 2026-08-17; `registerAgent` — the engram method that broadcast the registration itself — left
3538
- * / the candid surface in commit d25b53b, so the comparison had outlived its other term. The
3539
- * / saving was real and is now simply the shape of this method: no RPC outcall, no receipt poll.
3540
- * / ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ ONE REQUEST RECORD, not three adjacent nats.
3541
- * /
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 —
3544
- * / KEEP, ERC-8004 stays. Both halves of the `die` rationale fail at the site: it is not
3545
- * / test-only (a downstream web client's billing page calls it), and it is not a shipped customer
3546
- * / capability either — that panel sits behind `evmBilling: { mode: 'off' }` in both the flag
3547
- * / defaults and the shipped config, and its own dialog says the signature is dormant and not
3548
- * / broadcastable. It is a real surface in a disabled state, which is neither thing the plan's
3549
- * / row claimed.
3550
- * /
3551
- * / THE SWAP CLASS, and here it is three-deep: `nonce`, `maxFeePerGas` and `maxPriorityFeePerGas`
3552
- * / were adjacent and all `Nat`. Transposing the two gas fields type-checks, decodes, and signs a
3553
- * / transaction whose priority fee exceeds its max fee — invalid on chain, and the 500-gwei
3554
- * / ceiling below cannot see it because both values are individually under the cap. Named fields
3555
- * / remove the class.
3556
- * /
3557
- * / ⟨2026-09-28⟩ LIMITED PER CALLER PER DAY. The owner decided to cap this signature rather than
3558
- * / delete it: each caller (the owner, or an active agent) may obtain
3559
- * / `EngramRegCap.MAX_PER_CALLER_PER_DAY` registration signatures per UTC day; the next is refused
3560
- * / with `#Conflict` naming this method. A signature that fails does not count. The `nonce` must
3561
- * / be the REGISTRATION address's nonce — `getEvmAddress().engramRegistration` — below 2^64 − 1.
3249
+ * / broadcasts and keeps the resulting registration id. No RPC outcall and no receipt poll on the
3250
+ * / engram; the method that broadcast the registration from the engram (`registerAgent`) left the
3251
+ * / interface.
3252
+ * /
3253
+ * / Agent-accessible. KEPT, not folded into `signEip712` plus a registered type (decided 2026-08-20:
3254
+ * / ERC-8004 stays). It is not test-only — a web client calls it, from a panel that ships disabled,
3255
+ * / whose own dialog says the signature is dormant and not broadcastable. It is a real surface in a
3256
+ * / disabled state.
3257
+ * /
3258
+ * / ONE REQUEST RECORD, not three adjacent nats (since 0.16.0) — THE SWAP CLASS, three-deep: `nonce`,
3259
+ * / `maxFeePerGas` and `maxPriorityFeePerGas` were adjacent and all `Nat`. Transposing the two gas
3260
+ * / fields type-checks, decodes, and signs a transaction whose priority fee exceeds its max fee —
3261
+ * / invalid on chain, and the 500-gwei ceiling below cannot see it because both values are
3262
+ * / individually under the cap. Named fields remove the class.
3263
+ * /
3264
+ * / LIMITED PER CALLER PER DAY, rather than deleted: each caller (the owner, or an active agent) may
3265
+ * / obtain `EngramRegCap.MAX_PER_CALLER_PER_DAY` registration signatures per UTC day; the next is
3266
+ * / refused with `#Conflict` naming this method. A signature that fails does not count. The `nonce`
3267
+ * / must be the REGISTRATION address's nonce — `getEvmAddress().engramRegistration` — below 2^64 − 1.
3562
3268
  */
3563
3269
  signEngramRegistration: ActorMethod<
3564
3270
  [
@@ -3575,29 +3281,25 @@ export interface Engram {
3575
3281
  * / Client probes the URL, extracts chain/token/recipient/amount from the 402, and calls this.
3576
3282
  * / Canister signs → returns header → client retries with header.
3577
3283
  * /
3578
- * / ⟨0.16.0⟩ PERSISTS beside the market's `sysSignX402Payment` (ruled in the 0.16.0 interface plan). An agent
3579
- * / with an x402 rail does not lose it because a marketplace gained one, and both run the same body.
3580
- * / ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ ONE REQUEST RECORD, not eight positional arguments.
3581
- * /
3582
- * / THE HAZARD IS FUNDS MISDIRECTION, and it is the sharpest case in this batch. `tokenAddress`
3583
- * / and `recipient` were ADJACENT and both `Text`. Candid matches positionally, so transposing
3584
- * / them type-checks, decodes, and signs a payment whose payee is the TOKEN CONTRACT rather than
3585
- * / the intended one — an irreversible outbound signature spending the engram's own key, with
3586
- * / nothing between the mistake and the money. `tokenName`/`tokenVersion` are a second adjacent
3587
- * / Text pair; that one only corrupts the EIP-712 domain, so it fails loudly instead.
3284
+ * / It sits beside the market's `sysSignX402Payment`: an agent with an x402 rail does not lose it
3285
+ * / because a marketplace gained one, and both run the same body.
3588
3286
  * /
3589
- * / Named fields remove the class outright: a transposition is now a decode error at the edge.
3287
+ * / ONE REQUEST RECORD, not eight positional arguments (since 0.16.0). THE HAZARD IS FUNDS
3288
+ * / MISDIRECTION: `tokenAddress` and `recipient` were ADJACENT and both `Text`. Candid matches
3289
+ * / positionally, so transposing them type-checks, decodes, and signs a payment whose payee is the
3290
+ * / TOKEN CONTRACT rather than the intended one — an irreversible outbound signature spending the
3291
+ * / engram's own key, with nothing between the mistake and the money. `tokenName`/`tokenVersion` are
3292
+ * / a second adjacent Text pair; that one only corrupts the EIP-712 domain, so it fails loudly
3293
+ * / instead.
3590
3294
  * /
3591
- * / The body is UNCHANGED. Each parameter was referenced exactly once below, so the record is
3592
- * / destructured on entry rather than threaded through — the diff is the signature and this line,
3593
- * / which is what makes a reshape of a money path reviewable.
3295
+ * / Named fields remove the class outright: a transposition is a decode error at the edge.
3594
3296
  */
3595
3297
  signX402Payment: ActorMethod<[X402SignRequest], Result_4>;
3596
3298
  /**
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.
3299
+ * / A GUARDIAN STEPS DOWN: the caller ends their own guardianship of this engram. It removes a power
3300
+ * / from the one who holds it and grants none. Without it only the owner could remove a guardian, so
3301
+ * / one who wanted out could only stop watching without anyone knowing — worse than an honest exit on
3302
+ * / the record.
3601
3303
  * /
3602
3304
  * / WHO: anyone holding a guardian record here, `#Pending` or `#Active`; never refused for the
3603
3305
  * / record's state. The owner is refused by name (`People.OWNER_IS_NO_GUARDIAN`: their way is
@@ -3629,23 +3331,20 @@ export interface Engram {
3629
3331
  /**
3630
3332
  * / OWNER force-close, for a session the payer abandoned.
3631
3333
  * /
3632
- * / ⟨ruled 2026-08-26: owner-gated, NO guardian.⟩ It moves someone else's money, and only ever
3633
- * / BACK TO THEM — the destination is the session's own payer and is not caller-influenced, so the
3634
- * / guardian ceremony that guards destination changes buys nothing here and would strand payers on
3635
- * / engrams that have no guardian.
3334
+ * / Owner-gated, with NO guardian: it moves someone else's money, and only ever BACK TO THEM — the
3335
+ * / destination is the session's own payer and is not caller-influenced, so the guardian ceremony
3336
+ * / that guards destination changes buys nothing here and would strand payers on engrams that have
3337
+ * / no guardian.
3636
3338
  * /
3637
3339
  * / Calls the gateway's NO-AUTH variant deliberately. `gate.closeSession` is payer-only, which is
3638
3340
  * / why the market's admin-gated `forceCloseSession` could never work: it authorised an admin and
3639
3341
  * / then delegated to a method that rejects everyone but the payer.
3640
3342
  * /
3641
- * / ⟨NOTE 2026-10-02 — NOT RENAMED, deliberately, and this is the one `sys` method that still has a
3642
- * / human caller.⟩ The sys-tier retier (ruled 2026-08-24, executed 2026-10-02 on the registry and
3643
- * / the market) named FOUR admin-called methods; this one became owner-gated two days after that
3644
- * / list was made, so the ruling never named it. Its caller is the OWNER, a person, which is the
3645
- * / exact thing the retier removes from the `sys` tier — so "a `sys` method has no human caller"
3646
- * / stays false here until it is renamed too. Left for the owner: the rename is free until the cut
3647
- * / and a break after it, and it also moves `packages/client/README.md` and
3648
- * / `docs/AGENT-ONBOARDING.md`, which name it.
3343
+ * / ⚠ THE ONE `sys` METHOD WITH A HUMAN CALLER. Its caller is the OWNER, a person, so "a `sys`
3344
+ * / method has no human caller" is false here: it became owner-gated after the admin-called methods
3345
+ * / were moved out of the `sys` tier, and was not renamed with them. Renaming it is an interface
3346
+ * / break, and it would also move `packages/client/README.md` and `docs/AGENT-ONBOARDING.md`, which
3347
+ * / name it.
3649
3348
  */
3650
3349
  sysForceCloseSession: ActorMethod<[string], Result_2>;
3651
3350
  /**
@@ -3653,26 +3352,26 @@ export interface Engram {
3653
3352
  * /
3654
3353
  * / CALLER: the metrics reader the spawning registry named on this engram (`metricsReaderId`), and
3655
3354
  * / nobody else — not the owner (who reads `getAgentSeatWeeks`), an agent, a guardian, the registry,
3656
- * / the biller or the market (the surface-budget rule of 2026-08-16: a `sys` method names its caller). Answered only while the
3657
- * / owner leaves it on (`seatWeeksReadEnabled`, on from birth by the owner's ruling of 2026-10-02).
3355
+ * / the biller or the market (a `sys` method names its caller). Answered only while the owner leaves
3356
+ * / it on (`seatWeeksReadEnabled`, on from birth).
3658
3357
  * /
3659
3358
  * / WHAT LEAVES: per engagement, the pairing day, the first and last payment-signature days, the
3660
3359
  * / 64-week map and the count — NO root, NO invite, NO amount, recipient or nonce. The reader matches
3661
3360
  * / rows to the registry's engagements by day, so no agent's identity leaves this engram here.
3662
3361
  * /
3663
- * / ⟨update-for-read⟩ UPDATE, NOT QUERY, so a refusal leaves its `sysGetAgentSeatWeeks.denied` row naming the
3664
- * / caller's class, and an answered read leaves a `sysGetAgentSeatWeeks` row in the read log — the
3665
- * / owner can see every time the reader read. A refusal is `#Refused` naming this method and the
3666
- * / class (`SeatWeeks.readRefusal`), never an empty list: an empty list is a real answer ("no agent
3667
- * / has paired here"), and a fabricated one would be counted as one.
3362
+ * / UPDATE, NOT QUERY, so a refusal leaves its `sysGetAgentSeatWeeks.denied` row naming the caller's
3363
+ * / class, and an answered read leaves a `sysGetAgentSeatWeeks` row in the read log — the owner can
3364
+ * / see every time the reader read. A refusal is `#Refused` naming this method and the class
3365
+ * / (`SeatWeeks.readRefusal`), never an empty list: an empty list is a real answer ("no agent has
3366
+ * / paired here"), and a fabricated one would be counted as one.
3668
3367
  */
3669
3368
  sysGetAgentSeatWeeks: ActorMethod<[], Result_9>;
3670
3369
  /**
3671
3370
  * / The metrics reader the registry designated reads this engram's paid-rail health, in one call:
3672
3371
  * / the balance and the line it must stay above, the memory that line is computed from, the sessions
3673
3372
  * / by state, the escrow open sessions hold, the vouchers spent and the refused ones
3674
- * / (`RailHealth.RailHealth` says what each is, and what is never in it). ⟨2026-10-08, ic402 2.18.0⟩
3675
- * / And `refundOwed`: the closed sessions whose refund failed and whose payer has not yet recovered
3373
+ * / (`RailHealth.RailHealth` says what each is, and what is never in it). And `refundOwed` (ic402
3374
+ * / 2.18.0 and later): the closed sessions whose refund failed and whose payer has not yet recovered
3676
3375
  * / it — counted from the close, never read from the ledger; `opt` from birth, and null (an engram
3677
3376
  * / that does not count) is never 0.
3678
3377
  * /
@@ -3681,39 +3380,37 @@ export interface Engram {
3681
3380
  * / owner leaves that reader's read on (`seatWeeksReadEnabled`): the SAME gate and the SAME switch
3682
3381
  * / as `sysGetAgentSeatWeeks`, because it is the same reader and the owner has one switch over it.
3683
3382
  * /
3684
- * / A QUERY, AND A DEPARTURE FROM THE SYS METHODS BESIDE IT, ON PURPOSE ⟨2026-10-02⟩. It is read
3685
- * / every hour, and as an update it would leave a row in this engram's read log every hour — about
3686
- * / 720 a month in a record whose rows are what its owner reads. What a query cannot do is write the
3687
- * / denial row of a refusal (a query's writes are discarded) — the trade `getOwnerConsole` makes. A
3688
- * / refusal is still `#Err(#Refused …)` naming this method and the caller's class
3689
- * / (`RailHealth.readRefusal`), never a zero balance: a made-up zero would read as an engram about
3690
- * / to freeze. Called by another canister, a query runs replicated and this engram pays for it —
3691
- * / a few million cycles an hour, the cost of being watched.
3383
+ * / A QUERY, AND A DEPARTURE FROM THE OTHER `sys` READS, ON PURPOSE. It is read every hour, and as an
3384
+ * / update it would leave a row in this engram's read log every hour — about 720 a month in a record
3385
+ * / whose rows are what its owner reads. What a query cannot do is write the denial row of a refusal
3386
+ * / (a query's writes are discarded) — the trade `getOwnerConsole` makes. A refusal is still
3387
+ * / `#Err(#Refused …)` naming this method and the caller's class (`RailHealth.readRefusal`), never a
3388
+ * / zero balance: a made-up zero would read as an engram about to freeze. Called by another canister,
3389
+ * / a query runs replicated and this engram pays for it — a few million cycles an hour, the cost of
3390
+ * / being watched.
3692
3391
  */
3693
3392
  sysGetRailHealth: ActorMethod<[], Result_8>;
3694
3393
  /**
3695
- * / The biller reads how many signatures this engram has produced, per caller and in total.
3696
- * / ⟨2026-09-28⟩ The owner's decision of that date: a running counter on the engram, exported to
3697
- * / the biller — and to nobody else (`AccessControl.requireCashierForSignatureCounts`).
3394
+ * / The biller reads how many signatures this engram has produced, per caller and in total: a
3395
+ * / running counter on the engram, exported to the biller — and to nobody else
3396
+ * / (`AccessControl.requireCashierForSignatureCounts`).
3698
3397
  * /
3699
- * / ONE NEW METHOD ON THE ENGRAM, not a field on the registry's `sysMeterEngram` reply. An earlier study
3700
- * / ruled out widening that reply to protect deployed clients, and that reason is gone (nothing is
3701
- * / launched; the next release reinstalls every canister). The deciding fact is a different one,
3702
- * / read at the site: `sysMeterEngram` is the REGISTRY's method and answers from the management
3703
- * / canister's `canister_status` — the registry holds no signature count. Carrying the count in its
3704
- * / reply would add a registry-to-engram call inside the meter and a second trust hop between the
3705
- * / counter and the biller. The biller is already the canister this engram recognises (`cashierId`) and
3706
- * / already calls it directly (`sysRecordFeeEvent`), so it reads the count at the source.
3398
+ * / ONE METHOD ON THE ENGRAM, not a field on the registry's `sysMeterEngram` reply. `sysMeterEngram`
3399
+ * / is the REGISTRY's method and answers from the management canister's `canister_status` — the
3400
+ * / registry holds no signature count. Carrying the count in its reply would add a registry-to-engram
3401
+ * / call inside the meter and a second trust hop between the counter and the biller. The biller is
3402
+ * / already the canister this engram recognises (`getBillerId`) and already calls it directly
3403
+ * / (`sysRecordFeeEvent`), so it reads the count at the source.
3707
3404
  * /
3708
3405
  * / UPDATE, NOT QUERY, so that a refusal leaves its `sysGetSignatureCounts.denied` row: a refused
3709
3406
  * / query cannot write one (see `Gated.mo`'s header). A refusal is `#Refused` naming this method,
3710
3407
  * / never an empty list or a zero — a zero is a real answer, and a fabricated one would be billed.
3711
3408
  * /
3712
- * / ⟨2026-09-29⟩ Each row names the key, the agent it was enrolled under (none for the owner and
3713
- * / the marketplace) and the role, so one agent's keys can be added up. And a limit for whoever
3714
- * / bills from this: the number comes from a canister its owner controls and can reinstall, so bill
3715
- * / only engrams the registry confirms run published code, and read a lower count than last time as
3716
- * / a reinstall — the reasoning is at `signaturesByCaller`.
3409
+ * / Each row names the key, the agent it was enrolled under (none for the owner and the
3410
+ * / marketplace) and the role, so one agent's keys can be added up. And a limit for whoever bills
3411
+ * / from this: the number comes from a canister its owner controls and can reinstall, so bill only
3412
+ * / engrams the registry confirms run published code, and read a lower count than last time as a
3413
+ * / reinstall — the reasoning is at `signaturesByCaller`.
3717
3414
  */
3718
3415
  sysGetSignatureCounts: ActorMethod<[], Result_7>;
3719
3416
  /**
@@ -3721,14 +3418,14 @@ export interface Engram {
3721
3418
  * / not go under, and until when to keep its timers quiet.
3722
3419
  * /
3723
3420
  * / 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.
3421
+ * / and nobody else (a `sys` method names its caller) — the same authority as `sysSetBillerId` — AND
3422
+ * / ONLY WHILE THAT CALLER IS ONE OF THIS ENGRAM'S CONTROLLERS, asked of the network in this call
3423
+ * / (`controllerRefusal`): nobody else can have started it. The owner's next conversion that lands
3424
+ * / pays the loan back first. The loan is capped at `RestartRepay.LOAN_MAX_CYCLES` and the quiet
3425
+ * / window at 30 minutes, whatever the registry says. A note changes no loan while one is unpaid,
3426
+ * / takes one new loan and opens one quiet window in any 24 hours (`RestartRepay.noteRestart`); a new
3427
+ * / loan inside the 24 hours is refused `#Conflict` with the time to retry after, and the registry's
3428
+ * / own retry delivers it then.
3732
3429
  * / REPLIES: `#Refused` (not the registry, or not a controller), `#Conflict` (a loan was taken less
3733
3430
  * / than 24 hours ago), `#Ok`.
3734
3431
  */
@@ -3737,37 +3434,35 @@ export interface Engram {
3737
3434
  Result_2
3738
3435
  >;
3739
3436
  /**
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
3742
- * / doc named the debt plainly: "an owner learns of their own lapse only by looking." This closes
3743
- * / it through the channel the owner already has: the entry lands in the audit log under `rent.*`,
3744
- * / ActionAlerts classifies that as #money (default ON), and the drain delivers it to the owner's
3745
- * / webhook. No new channel, no new config — an owner who armed alerts gets told.
3437
+ * / Rent lifecycle notice — how the OWNER (not the agent) learns their subscription lapsed. Without
3438
+ * / it an owner would learn of their own lapse only by looking: the biller's own alarms talk to the
3439
+ * / deployment's watchdog, not to the owner. This uses the channel the owner already has: the entry
3440
+ * / lands in the audit log under `rent.*`, ActionAlerts classifies that as #money (default ON), and
3441
+ * / the drain delivers it to the owner's webhook. No new channel, no new config — an owner who armed
3442
+ * / alerts gets told.
3746
3443
  * /
3747
- * / Gated exactly like sysRecordFeeEvent (spawnedBy or cashierId): the sweep is the only thing that
3748
- * / OBSERVES the transition, so it is the only thing that can report it. The state whitelist is
3749
- * / closed — this is a lifecycle feed, not a free-text push surface into the owner's audit chain.
3444
+ * / Gated exactly like sysRecordFeeEvent (the spawning registry or the configured biller): the
3445
+ * / biller's sweep is the only thing that OBSERVES the transition, so it is the only thing that can
3446
+ * / report it. The state whitelist is closed — this is a lifecycle feed, not a free-text push surface
3447
+ * / into the owner's audit chain.
3750
3448
  */
3751
3449
  sysNotifyRentLifecycle: ActorMethod<[string, string], Result_2>;
3752
3450
  /**
3753
- * / ⟨0.16.0⟩ `getWalletActivation()` DELETED — folded to `about().walletActivatedAtNs`, with its
3754
- * / custody-posture rationale carried onto the field. "Can this thing hold money" is a question a
3755
- * / counterparty is entitled to ask before dealing with an engram, which is why it stays public.
3756
- * / ⟨0.16.0, sys tier⟩ THE MARKET TELLING CUSTODY, which is the half of the wallet-activation
3451
+ * / THE MARKET TELLING CUSTODY (a `sys`-tier call), which is the half of the wallet-activation
3757
3452
  * / story the engram cannot see for itself.
3758
3453
  * /
3759
- * / The 0.16.0 split moved the storefront to the market, so listing an endpoint — a seller offering to be paid —
3760
- * / happens on a canister this one does not observe. `walletActivatedAt` exists to raise a custody
3761
- * / decision (a wallet-bearing engram is sovereign-by-default and its owner has a claimSovereignty
3762
- * / still to complete), and a seller who has never derived an EVM address would have gone
3763
- * / unstamped forever. That is the under-reporting direction, which is the harmful one: a missing
3764
- * / flag retires a decision that is still pending.
3454
+ * / The storefront is on the market (since 0.16.0), so listing an endpoint — a seller offering to be
3455
+ * / paid — happens on a canister this one does not observe. `walletActivatedAt` exists to raise a
3456
+ * / custody decision (a wallet-bearing engram is sovereign-by-default and its owner has a
3457
+ * / claimSovereignty still to complete), and a seller who has never derived an EVM address would
3458
+ * / have gone unstamped forever. That is the under-reporting direction, which is the harmful one: a
3459
+ * / missing flag retires a decision that is still pending.
3765
3460
  * /
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`,
3769
- * / which stamps. It is already marked before it can pay. Adding a case for it would be surface
3770
- * / bought for a gap that does not exist.
3461
+ * / ONE METHOD, NOT A FAMILY (every method has a tier and a named caller). Opening a payment session
3462
+ * / is NOT here and is not an omission: measured at the market 2026-08-20, `openSession`'s caller is
3463
+ * / a BUYER, and a buying engram signs with a key it derived through `getEvmAddress`, which stamps.
3464
+ * / It is already marked before it can pay. Adding a case for it would be surface bought for a gap
3465
+ * / that does not exist.
3771
3466
  * /
3772
3467
  * / THE SURFACE WHITELIST IS CLOSED, exactly as `sysNotifyRentLifecycle`'s state whitelist is, and
3773
3468
  * / for the same reason: this is a lifecycle feed, not a free-text push into the owner's audit
@@ -3784,36 +3479,32 @@ export interface Engram {
3784
3479
  */
3785
3480
  sysNotifyWalletActivity: ActorMethod<[string], Result_2>;
3786
3481
  /**
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.
3482
+ * / The rent RECEIPT seam (rent is the biller's; the engram keeps receipts): the biller tells this
3483
+ * / engram that money moved on its behalf, and the engram appends a `fee.recorded` line to its own
3484
+ * / audit chain. It computes nothing.
3790
3485
  * /
3791
3486
  * / ⚠ GATED TO TWO PRINCIPALS AND NEITHER IS THE OWNER — the SPAWNING REGISTRY or the CONFIGURED
3792
- * / CASHIER. An owner cannot write their own fee receipts, which is the point: a receipt an owner
3487
+ * / BILLER. An owner cannot write their own fee receipts, which is the point: a receipt an owner
3793
3488
  * / could forge is not evidence. `getBillerId` publishes which biller this engram accepts, so the
3794
3489
  * / same fact is checkable from outside.
3795
3490
  * /
3796
3491
  * / This is the whole of what moving rent to the biller left on the engram. Entitlement, custody and
3797
3492
  * / fee math live on the biller; here there is an append-only record and no arithmetic — so a
3798
3493
  * / 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
3801
- * / wire-break reason the ruling voids", with the instruction to execute it or ratify
3802
- * / positional-forever with a dated note — "silence spends the window". Executed.
3803
- * /
3804
- * / The argument for a record here is EVOLUTION, not transposition: unlike `setTopUpLimits`'s two
3805
- * / adjacent nats, these three types differ, so a swap would not type-check. What positional
3806
- * / arguments cost is the next field. A fee event is exactly the shape that grows one — token,
3807
- * / amount, rate — and the interface-evolution rule (2026-08-16) is that an INBOUND record gains optional fields forever
3808
- * / while an argument LIST cannot gain anything without breaking every caller at once.
3809
- * /
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
3812
- * / structurally. Every one of them sits inside `try { … } catch (_e) {}`, which reads as
3813
- * / containment and is not: a reply-decode mismatch calls `ic0.trap` INSIDE the caller's own
3814
- * / callback, and Motoko's `catch` sees rejects, never traps. That is the failure that took
3815
- * / production monitoring dark for ~33h. The ENGRAM WASM MUST SHIP BEFORE its callers, and
3816
- * / the interface-compatibility gate is suspended for the cut, so nothing mechanical will catch a wrong order.
3494
+ * /
3495
+ * / ONE FEE-EVENT RECORD, not three positional arguments (since 0.16.0). The argument for a record
3496
+ * / here is EVOLUTION, not transposition: unlike `setTopUpLimits`'s two adjacent nats, these three
3497
+ * / types differ, so a swap would not type-check. What positional arguments cost is the next field. A
3498
+ * / fee event is exactly the shape that grows one — token, amount, rate — and the interface-evolution
3499
+ * / rule is that an INBOUND record gains optional fields forever while an argument LIST cannot gain
3500
+ * / anything without breaking every caller at once.
3501
+ * /
3502
+ * / ⚠ ITS CALLERS DECLARE THIS SHAPE BY HAND, and this is the fatal direction of the client-subset
3503
+ * / rule: hand-written IDLs in the biller and in the registry declare this method's argument shape
3504
+ * / structurally. A caller that wraps the call in `try { … } catch (_e) {}` is not contained by it:
3505
+ * / a reply-decode mismatch calls `ic0.trap` INSIDE the caller's own callback, and Motoko's `catch`
3506
+ * / sees rejects, never traps. That failure once took a deployment's monitoring dark for ~33h. Change
3507
+ * / the shape only with the ENGRAM WASM shipping BEFORE its callers.
3817
3508
  */
3818
3509
  sysRecordFeeEvent: ActorMethod<
3819
3510
  [
@@ -3826,26 +3517,38 @@ export interface Engram {
3826
3517
  Result_2
3827
3518
  >;
3828
3519
  /**
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`.
3520
+ * / THE MARKET WRITING A SALE TO THIS ENGRAM'S RECORD, after it has paid this engram's own account
3521
+ * / (ckUSDC) or address (another chain): a marketplace sale is paid into the selling engram's own
3522
+ * / wallet, and the engram writes each sale to its record. The money does not pass through here and
3523
+ * / nothing here moves any: a ledger account needs no running canister, so the sale is paid whatever
3524
+ * / state this engram is in, and this method only writes the line that says so — one `market.sale`
3525
+ * / row per sale, its details from `SaleNotice.details`.
3835
3526
  * /
3836
3527
  * / GATED TO THE CONFIGURED MARKET (`AccessControl.requireMarketSale`), the pointer the spawning
3837
3528
  * / registry set once (`sysSetMarketId`). Neither the owner nor an agent may write a sale row: a
3838
3529
  * / receipt an owner could write is a receipt an owner could forge.
3839
3530
  * /
3531
+ * / NO MARKET SET YET IS "NOT YET", NOT A REFUSAL. With `marketId` null the gate's refusal is
3532
+ * / answered `#Unavailable`, and the market PARKS the notice (on any other `#Err` it drops a sale's
3533
+ * / line at once, which would lose the line for good while the money had landed). `marketId` is not
3534
+ * / final: the registry sets it later (`sysSetMarketId`), and then `retrySaleNotices` or the seller's
3535
+ * / next `registerSeller` writes the line; the market's 30-day age cap ends the wait. That arm writes
3536
+ * / NO `sysRecordSale.denied` row: nothing was denied, and `retrySaleNotices` is open to any caller,
3537
+ * / so a row per press would be spam on the owner's read log. A caller that is not the configured
3538
+ * / market, once one is set, is still `#Refused` with its row. WHAT WOULD MAKE THIS WRONG: a
3539
+ * / `marketId` that can be set to null on purpose (a market retired from an engram) — then null
3540
+ * / would mean "never", and parking for 30 days would hold a line nobody can write. Witness:
3541
+ * / test/market-route/sale-route.test.ts S7 and record-row.test.ts R3.
3542
+ * /
3840
3543
  * / IDEMPOTENT ON THE RECEIPT ID. The market retries a notice it could not deliver (this engram out
3841
3544
  * / of compute, upgrading, stopped), and a retry of one that did land must learn it succeeded: a
3842
3545
  * / repeat answers `#Ok` and writes nothing — no row, no denial row (`sysNotifyWalletActivity`'s
3843
3546
  * / contract). The receipt ids live in `saleReceiptsStable`.
3844
3547
  * /
3845
3548
  * / 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").
3549
+ * / outgoing call means nothing to count under the counted-call rule (wiring rule 20 in
3550
+ * / test/timer-pause-wiring.test.ts), and NO WAKE DOOR — a sale brings dollars, not compute, so a
3551
+ * / paused engram's wake would find no room on every engram that is actually paused.
3849
3552
  * /
3850
3553
  * / NOT GATED ON a guardian's payment freeze (that stops this engram's own signing — money out;
3851
3554
  * / `sysRecordFeeEvent` is not freeze-gated either), on `pauseWrites` (memory writes), or on the
@@ -3853,59 +3556,42 @@ export interface Engram {
3853
3556
  * /
3854
3557
  * / It also stamps `walletActivatedAt` ("market-sale"): money landing in this engram's account IS
3855
3558
  * / 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.
3559
+ * / The listing notice (`sysNotifyWalletActivity`) stays; whether to retire it is an open question.
3871
3560
  */
3872
3561
  sysRecordSale: ActorMethod<[SaleNotice], Result_2>;
3873
3562
  /**
3874
3563
  * / Give back what a paid security update advanced this engram and the install did not use.
3875
3564
  * /
3876
3565
  * / 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=`.
3566
+ * / paid for, and nobody else (a `sys` method names its caller): answered only to a caller that is
3567
+ * / one of this engram's controllers, asked of the network in this call (`controllerRefusal`), and
3568
+ * / once per upgrade this engram saw, within 30 minutes of it (`upgradeSeenAtNs`).
3569
+ * /
3570
+ * / The registry names the ONE advance it is asking for (`advanceId`, the one its deposit for this
3571
+ * / install put on its ledger), and `advance` is that advance's amount alone — never the sum of
3572
+ * / every advance this engram has out. The engram passes the id back to `sysRepayUpgradeAdvance`
3573
+ * / unchanged, attached to what it sends, and the registry settles that advance only: it accepts no
3574
+ * / more than it advanced, writes off what is not returned, and nothing is owed after.
3575
+ * /
3576
+ * / WHAT IS SENT. The caller's figures are upper bounds only. The engram sends the smallest of: the
3577
+ * / advance, what it holds above its balance before the update, and what sits above its freezing
3578
+ * / reserve at its own setting (`freezeReservation` = `lineEstimate`) plus send headroom
3579
+ * / (`RestartRepay.giveBack`); never more than 320.005B (`RestartRepay.ADVANCE_MAX_CYCLES`); and never
3580
+ * / so much that the update leaves this engram lower than it was before it
3581
+ * / (`RestartRepay.giveBackFloor`). One that could sign before the update can sign after the
3582
+ * / give-back; one already under its signing floor returns what was advanced and no more, never under
3583
+ * / its reserve and send headroom. (A floor at the signing floor itself returned 0 to every registry
3584
+ * / that had really paid, because a paid engram is under its signing floor by construction —
3585
+ * / MEASURED: 138.66B advanced, 0 returned.) The balance before is the caller's figure;
3586
+ * / RestartRepay.mo's header says what a controller that lies about it can take (at most the cap,
3587
+ * / once per real upgrade, never below reserve + headroom).
3588
+ * /
3589
+ * / HONEST LIMIT: the engram cannot tell its owner's top-up from the unused advance, so when the
3590
+ * / install used part of the advance and the owner added compute meanwhile, up to the part the
3591
+ * / install used can still come from the owner's top-up (the cap is the advance, not its unused
3592
+ * / part).
3593
+ * /
3594
+ * / The record line carries `left=`: what actually left, beside the registry's `returned=`.
3909
3595
  */
3910
3596
  sysReturnUpgradeAdvance: ActorMethod<
3911
3597
  [{ balanceBefore: bigint; advanceId: bigint; advance: bigint }],
@@ -3915,15 +3601,14 @@ export interface Engram {
3915
3601
  * / Point this engram at the biller that converts its tokens → cycles. Settable, not hardcoded:
3916
3602
  * / coupling is by principal id, so the same wasm runs against any deployment's biller.
3917
3603
  * /
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:
3920
- * / · "cashier" is a PLATFORM word and this is the OSS wire. `biller` names the role, not the
3921
- * / product that fills it.
3922
- * / · The write is now sys-tier. It previously accepted the OWNER as well, and that second
3923
- * / writer is what the ruling removed — three writers for one field (owner, spawner, and the
3924
- * / frontend acting for the owner) is a last-write-wins race over a money-routing target.
3604
+ * / Renamed from `setCashierId` in 0.16.0 and NARROWED to the spawning registry (rent is the
3605
+ * / biller's; the engram keeps receipts). Two changes, for two reasons:
3606
+ * / · `biller` names the role, not the product that fills it: this is the protocol's wire.
3607
+ * / · The write is sys-tier. It accepted the OWNER as well, and three writers for one field
3608
+ * / (owner, spawner, and an app acting for the owner) is a last-write-wins race over a
3609
+ * / money-routing target.
3925
3610
  * /
3926
- * / ⚠ THE COST, RULED AND ACCEPTED: an engram whose registry never set this has NO owner remedy.
3611
+ * / ⚠ THE COST, ACCEPTED: an engram whose registry never set this has NO owner remedy.
3927
3612
  * / `convertEarningsToCycles` fails closed against a null biller, and with the owner leg gone
3928
3613
  * / nobody but the spawning registry can fix it. That refusal therefore names the real remedy
3929
3614
  * / rather than telling an owner to run a call they can no longer make.
@@ -3931,15 +3616,16 @@ export interface Engram {
3931
3616
  sysSetBillerId: ActorMethod<[Principal], Result_2>;
3932
3617
  /**
3933
3618
  * / 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⟩.
3619
+ * / last. Each engram keeps its birth record and its ancestors' copies, and the registry certifies
3620
+ * / each record's fingerprint.
3936
3621
  * /
3937
3622
  * / 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.
3623
+ * / nobody else (a `sys` method names its caller) — the same authority as `sysSetBillerId`, through
3624
+ * / the named gate `AccessControl.requireSpawningRegistry`. ⚠ THE REGISTRY'S CLIENT DECLARATION IS
3625
+ * / HAND-WRITTEN (`sysSetBirthChain : ([BirthRecord.BirthRecord]) -> async Wire.Result<()>`, in
3626
+ * / `mintAndPush`): a different reply type here traps inside the registry's callback, and a different
3627
+ * / name leaves every newborn without its record, silently retried. test/lineage-wiring.test.ts holds
3628
+ * / the two equal.
3943
3629
  * /
3944
3630
  * / SET ONCE: the same chain again answers `#Ok` and changes nothing (the registry's sweep may re-send
3945
3631
  * / a push whose reply was lost); a different one is refused `#Conflict`. THE ENGRAM DOES NOT HASH:
@@ -3948,8 +3634,8 @@ export interface Engram {
3948
3634
  */
3949
3635
  sysSetBirthChain: ActorMethod<[Array<BirthRecord>], Result_2>;
3950
3636
  /**
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⟩
3637
+ * / Name the origin of the page where this engram's owner approves a connector sign-in: an engram
3638
+ * / sends sign-ins to its own environment's app.
3953
3639
  * /
3954
3640
  * / CALLER: the registry that spawned this engram, from its birth push (`pushToNewborn`), and nobody
3955
3641
  * / else — the same authority as `sysSetMetricsReaderId`, through the named gate
@@ -3967,8 +3653,8 @@ export interface Engram {
3967
3653
  */
3968
3654
  sysSetConsentOrigin: ActorMethod<[string], Result_2>;
3969
3655
  /**
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⟩
3656
+ * / Point this engram at the commerce satellite allowed to ask it for signatures. (Commerce lives in
3657
+ * / the market since 0.16.0; signing stayed here.)
3972
3658
  * /
3973
3659
  * / SAME AUTHORITY AS `sysSetBillerId`, and for a stronger reason. That one routes money; this one
3974
3660
  * / confers the capability to ask this canister to sign with its own tECDSA key. Three writers for
@@ -3983,64 +3669,59 @@ export interface Engram {
3983
3669
  sysSetMarketId: ActorMethod<[Principal], Result_2>;
3984
3670
  /**
3985
3671
  * / Name the metrics reader allowed to read this engram's seat weeks (`sysGetAgentSeatWeeks`).
3986
- * / ⟨2026-10-02, the owner's ruling of that day⟩
3987
3672
  * /
3988
- * / CALLER: the registry that spawned this engram, and nobody else (the surface-budget rule: a `sys` method names its caller) — the same authority
3989
- * / as `sysSetBillerId` and `sysSetMarketId`. The registry calls it once, at spawn, last of its
3990
- * / pushes, with exactly this interface: `sysSetMetricsReaderId : (Principal) -> async
3991
- * / Wire.Result<()>`. ⚠ THAT CLIENT DECLARATION IS HAND-WRITTEN AT THE REGISTRY: a different NAME
3992
- * / here leaves every newborn with no reader, silently (the push is best-effort and its reject is
3993
- * / caught), and a different REPLY type traps inside the registry's callback. Rename neither without
3994
- * / the registry; test/seat-weeks-wiring.test.ts compares the two.
3673
+ * / CALLER: the registry that spawned this engram, and nobody else (a `sys` method names its caller)
3674
+ * / — the same authority as `sysSetBillerId` and `sysSetMarketId`. The registry calls it once, at
3675
+ * / spawn, last of its pushes, with exactly this interface: `sysSetMetricsReaderId : (Principal) ->
3676
+ * / async Wire.Result<()>`. ⚠ THAT CLIENT DECLARATION IS HAND-WRITTEN AT THE REGISTRY: a different
3677
+ * / NAME here leaves every newborn with no reader, silently (the push is best-effort and its reject
3678
+ * / is caught), and a different REPLY type traps inside the registry's callback. Rename neither
3679
+ * / without the registry; test/seat-weeks-wiring.test.ts compares the two.
3995
3680
  * /
3996
3681
  * / A CANISTER ONLY: a person's principal, the anonymous principal or the management canister is
3997
3682
  * / refused `#Invalid` and nothing changes — a person named here would be handed this engram's seat
3998
- * / counts. Set or replaced, never cleared: the owner's control is the switch
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.
3683
+ * / counts. SET ONCE, at birth, as the market and the biller are: the same reader again answers
3684
+ * / `#Ok` and changes nothing; another is refused `#Conflict` (`AccessControl.setOnce` says why).
3685
+ * / Never cleared: the owner's control is the switch (`setSeatWeeksReadEnabled`), not the pointer.
3686
+ * / The chained record entry (`metrics.sysSetMetricsReaderId`) is the evidence of when the read was
3687
+ * / granted, and to whom.
4005
3688
  */
4006
3689
  sysSetMetricsReaderId: ActorMethod<[Principal], Result_2>;
4007
3690
  /**
4008
3691
  * / The market asks this engram to sign a registered type — the seam where commerce meets signing,
4009
- * / settlement leg. ⟨0.16.0⟩
3692
+ * / settlement leg.
4010
3693
  * /
4011
3694
  * / THE ENGRAM DOES NOT TRUST THE MARKET WITH ANYTHING BEYOND "ask". Every control that bounds
4012
- * / what may be signed stays here and is unchanged: the type must already be OWNER-REGISTERED
4013
- * / (the market cannot introduce a shape), its cool-off must have elapsed, its per-type daily cap
4014
- * / still binds, the destination allowlist still fails closed, and a payments freeze still stops
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.
3695
+ * / what may be signed stays here: the type must already be OWNER-REGISTERED (the market cannot
3696
+ * / introduce a shape), its cool-off must have elapsed, its per-type daily cap binds, its per-field
3697
+ * / rules, its own destination list (failing closed) and the signing floor bind, and a payments
3698
+ * / freeze stops it — all in `eip712SignFor`, so they bind the market as they bind the owner. What
3699
+ * / the market supplies is the request; what the engram supplies is the whole policy. A refusal
3700
+ * / here is on the chained record under the market's caller and role.
4020
3701
  * /
4021
3702
  * / That is what "signatures only" means in code, and it is why this method needs no new authority
4022
3703
  * / model: an unregistered typeId is refused for the market exactly as it is for the owner.
4023
3704
  * /
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
3705
+ * / In an engram opened through another, approving a trading key
3706
+ * / (`HyperliquidTransaction:ApproveAgent`) is refused to the market (`#Refused`): it is signed by
4026
3707
  * / that engram's sign-in alone, through `signEip712`.
4027
3708
  */
4028
3709
  sysSignEip712: ActorMethod<[Uint8Array | number[], Array<[string, Eip712Value]>], Result_5>;
4029
3710
  /**
4030
3711
  * / The market asks this engram to sign an x402 payment — the seam where commerce meets signing, the
4031
- * / paid-request leg. ⟨0.16.0⟩
3712
+ * / paid-request leg.
4032
3713
  * /
4033
3714
  * / THE MARKET SUPPLIES THE REQUEST; THE ENGRAM SUPPLIES THE POLICY. Every control below the caller
4034
- * / gate is unchanged and still binds: a payments freeze stops it, the recipient must be on the
4035
- * / owner's EVM allowlist if the owner has set one, the per-transaction and per-day caps hold, and
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.
3715
+ * / gate binds: a payments freeze stops it, the per-transaction and per-day caps hold, and an
3716
+ * / over-policy request goes to the OWNER'S approval queue rather than through.
3717
+ * /
3718
+ * / REFUSED UNTIL THE OWNER SETS THAT POLICY. While the owner has set no spending policy for the
3719
+ * / market's principal, this method and `sysSignEip712` sign nothing.
4039
3720
  * /
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.
3721
+ * / ONE RECORD, THE OWNER RAIL'S SHAPE (`Types.X402SignRequest`): the same named record as
3722
+ * / `signX402Payment`, so the two doors cannot drift apart, and `tokenAddress` and `recipient` — two
3723
+ * / `Text` values a caller could swap without a type error as positional arguments — are field names,
3724
+ * / not positions.
4044
3725
  * /
4045
3726
  * / `#ApprovalPending` is a real answer here, not an error, exactly as it is for an agent: the
4046
3727
  * / market is told the spend needs the owner and can retry with the `approvalId` once granted. A
@@ -4049,84 +3730,77 @@ export interface Engram {
4049
3730
  * /
4050
3731
  * / READ `x402SignFor`'s declaration before setting a policy for this caller. The cap is ONE bucket
4051
3732
  * / 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.
4055
3733
  */
4056
3734
  sysSignX402Payment: ActorMethod<[X402SignRequest], Result_4>;
4057
3735
  /**
4058
- * / Write an `alerts.test` entry into the audit log; the drain timer delivers it to the webhook
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.
3736
+ * / Write an `alerts.test` entry into the audit log; the drain delivers it to the webhook within
3737
+ * / seconds (a minute if a delivery was just made). Owner-only; requires a configured URL so the
3738
+ * / test can actually go somewhere.
4061
3739
  */
4062
3740
  testActionAlert: ActorMethod<[], Result_2>;
4063
3741
  /**
4064
3742
  * / Guardian test alert — an audited guardian action (`alerts.test`, role Guardian) that every
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
4067
- * / to be armed so the test has somewhere to land for them.
3743
+ * / armed channel (owner + guardians) receives within seconds (a minute if a delivery was just
3744
+ * / made). Requires the caller's own channel to be armed so the test has somewhere to land for them.
4068
3745
  */
4069
3746
  testGuardianAlert: ActorMethod<[], Result_2>;
4070
3747
  /**
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.
4075
- * /
4076
- * / Its read counterpart is `listOwnershipTransfers` (was `getOwnershipHistory`), which now shares
4077
- * / the stem — the pair was previously unfindable from either half.
4078
- * / ⟨0.16.0, refusals are values, never traps⟩ TWO OF THESE REFUSALS ARE THE FIRST-CLAIM PATH, and
4079
- * / they are not authorization.
4080
- * /
4081
- * / On an unowned engram there is no owner to refuse anyone, so "caller must set themselves as
4082
- * / owner" is a rule about the ARGUMENT — pass your own principal and it succeeds. `#Invalid` says
4083
- * / retrying with a different argument can work; `#Refused` would tell a first claimant their
4084
- * / standing was the problem, on the one call where nobody has standing yet.
4085
- * /
4086
- * / ⟨2026-09-29, the owner's control-handover ruling⟩ A CHANGE OF OWNER HANDS OVER CONTROL OF THE
4087
- * / CODE. The new owner becomes a controller of this canister and the former owner stops being one;
4088
- * / the answer says who moved it (`ControlHandover`). Managed: the registry moves it while it
4089
- * / accepts the transfer. Sovereign: the registry answers `#EngramMustMove` and this engram sets
4090
- * / its own controllers. THE OWNER CHANGES HERE ONLY AFTER CONTROL HAS MOVED — if it cannot move,
4091
- * / the registry's record is put back and nothing is transferred; if even that fails, the refusal
4092
- * / says who the registry now records and that the same call again finishes it. A standalone
4093
- * / engram (no registry) cannot know who controls it and changes the owner only, answering
4094
- * / `#NotHeldHere`. The rules are `src/shared/ControlHandover.mo`'s.
4095
- * /
4096
- * / ⟨2026-09-29, a review finding: a half-finished change of owner⟩ The registry now MARKS a change of
4097
- * / owner as unfinished from the moment it moves its record until it sees control move. A sovereign
4098
- * / engram therefore reports the move (`sysConfirmOwnershipTransfer`) after setting its own
4099
- * / controllers; until the registry hears it, the registry refuses the new owner's
4100
- * / `claimSovereignty`, `returnToManaged`, `abandonMyEngram` and `upgradeMyEngram` for this engram.
4101
- * / While a transfer is marked unfinished, a transfer to anyone but its would-be owner is refused by
4102
- * / the registry, by name; calling this again with that owner finishes it.
4103
- * /
4104
- * / ⟨2026-09-29, a review finding⟩ THE OWNER NAMING THEMSELVES IS A REPORT, NOT A HAND-ON. It is
4105
- * / the way out when the registry did not hear that a sovereign engram moved control: it moves
4106
- * / control to the same owner again and reports it, and it writes NO entry to
4107
- * / `listOwnershipTransfers` (until this day it wrote one from the owner to themselves, a hand-on
4108
- * / that did not happen). The record entry says it was a report. `ControlHandover.isReport`.
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
3748
+ * / THE OWNERSHIP-TRANSFER METHOD — the most consequential owner-facing operation on the canister. It
3749
+ * / was named `init` before 0.16.0 (a name says what happens, not the mechanism): named for
3750
+ * / first-time setup, it collided with the actor's own `service : (initArgs)`, so a reader scanning
3751
+ * / for "how does ownership move" found nothing and a reader scanning for `init` found a
3752
+ * / constructor. Its read counterpart is `listOwnershipTransfers`, which shares the stem.
3753
+ * /
3754
+ * / NAMING SOMEONE ELSE OPENS AN OFFER AND CHANGES NOTHING ELSE: the new owner must accept. This call
3755
+ * / records the offer here (`ownershipOffer`), files it at the registry that spawned this engram
4115
3756
  * / (`sysOfferOwnership`, which moves nothing either) and answers `#Offered` with the expiry
4116
3757
  * / (`OwnershipOffer.TTL_NS`, 7 days). The owner is still the owner, still controls the code, and
4117
3758
  * / every agent, guardian and limit is as it was. The hand-over happens when the named principal
4118
3759
  * / calls `acceptOwnership`, as themselves. A new offer replaces the open one; `cancelOwnershipOffer`
4119
3760
  * / 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
3761
+ * / recorded here then), and `#Unavailable` when it cannot be reached. Why: when this one call, made
3762
+ * / by the current owner alone, moved the engram, the registry's record and control of the code, it
3763
+ * / could move them to a principal who was never asked (`OwnershipOffer.mo` has the measurement).
3764
+ * /
3765
+ * / TWO CALLS STILL MOVE AT ONCE, because in both the caller names THEMSELVES, so the consent is the
3766
+ * / call: the first claim of an unowned engram, and the owner's report (below).
3767
+ * /
3768
+ * / THE FIRST CLAIM IS A CONTROLLER'S: an engram installed without `owner` in its install argument is
3769
+ * / claimed only by one of its controllers naming itself; anyone else is refused (`#Refused`) and
3770
+ * / nothing changes. The two first-claim refusals answer different questions. A caller that is not
3771
+ * / a controller has no standing to claim an unowned engram, so it is refused for standing
3772
+ * / (`#Refused`). A controller naming anyone but itself breaks a rule about the ARGUMENT ("caller
3773
+ * / must set themselves as owner"): `#Invalid`, and the same call naming its own principal
3774
+ * / succeeds.
3775
+ * /
3776
+ * / THE OWNER NAMING THEMSELVES IS A REPORT, NOT A HAND-ON (`ControlHandover.isReport`). It is the
3777
+ * / way out when the registry did not hear that a sovereign engram moved control: it moves control
3778
+ * / to the same owner again and reports it, and it writes NO entry to `listOwnershipTransfers` — an
3779
+ * / entry from the owner to themselves would record a hand-on that did not happen. The record entry
3780
+ * / says it was a report. A report never opens an offer and never needs one: it is the repair for a
4125
3781
  * / 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.
3782
+ * / of, and the registry treats it as a retry of a record it has already moved.
3783
+ * /
3784
+ * / A CHANGE OF OWNER HANDS OVER CONTROL OF THE CODE. The new owner becomes a controller of this
3785
+ * / canister and the former owner stops being one; the answer says who moved it (`ControlHandover`).
3786
+ * / Managed: the registry moves it while it accepts the transfer. Sovereign: the registry answers
3787
+ * / `#EngramMustMove` and this engram sets its own controllers. THE OWNER CHANGES ONLY AFTER CONTROL
3788
+ * / HAS MOVED — if it cannot move, the registry's record is put back and nothing is transferred; if
3789
+ * / even that fails, the refusal says who the registry now records and that the same call again
3790
+ * / finishes it. A standalone engram (no registry) cannot know who controls it and changes the owner
3791
+ * / only, answering `#NotHeldHere`. The rules are `src/shared/ControlHandover.mo`'s.
3792
+ * /
3793
+ * / The registry MARKS a change of owner as unfinished from the moment it moves its record until it
3794
+ * / sees control move. A sovereign engram therefore reports the move (`sysConfirmOwnershipTransfer`)
3795
+ * / after setting its own controllers; until the registry hears it, the registry refuses the new
3796
+ * / owner's `claimSovereignty`, `returnToManaged`, `abandonMyEngram` and `upgradeMyEngram` for this
3797
+ * / engram. While a transfer is marked unfinished, a transfer to anyone but its would-be owner is
3798
+ * / refused by the registry, by name.
3799
+ * /
3800
+ * / An engram the registry reinstalled after the network erased it comes back owned by the principal
3801
+ * / the registry records and with no offer (the offer was in the erased state); its owner offers
3802
+ * / again, and the copy the registry kept of the old offer ends at its own expiry and cannot move
3803
+ * / anything by itself.
4130
3804
  */
4131
3805
  transferOwnership: ActorMethod<[Principal], Result_3>;
4132
3806
  /**
@@ -4148,13 +3822,12 @@ export interface Engram {
4148
3822
  * / only. Refused, by name, below the room the hourly check-in needs; then nothing is armed.
4149
3823
  * /
4150
3824
  * / 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.
3825
+ * / nobody else (every method names its caller). The automatic doors (the biller's receipt, Convert,
3826
+ * / an agent's MCP request) wake it when compute lands with room; this is the owner's door, for
3827
+ * / compute that arrived with no receipt (a bare top-up). It always reads the engram's own balance
3828
+ * / (no rate limit, no free filter), so a refusal states what the engram measured. Both figures in a
3829
+ * / refusal are its own READING above its line, which runs ~82B below the true figure, so the engram
3830
+ * / never calls it the gap.
4158
3831
  */
4159
3832
  wakeTimers: ActorMethod<[], Result_1>;
4160
3833
  /**
@@ -4172,9 +3845,10 @@ export interface Engram {
4172
3845
  HttpRequestResult
4173
3846
  >;
4174
3847
  /**
4175
- * / Write a memory file, creating it or adding a version to it. Returns a write receipt — the new
4176
- * / `version`, the audit `seq`, and the chain `head` after the write — so a caller can prove what
4177
- * / it wrote without a second read.
3848
+ * / Write a memory file, creating it or adding a version to it. Returns the write receipt
3849
+ * / (`WriteReceipt`) — the new `version`, the store's event `seq`, the file's chain `head` after the
3850
+ * / write, the rest of the event (`prev`, `atNs`, `contentRoot`, `size`) and where its record entry
3851
+ * / landed (`recordId`, `recordPrev`) — so a caller can prove what it wrote without a second read.
4178
3852
  * /
4179
3853
  * / ⚠ OWNER-ONLY, and this is the one most likely to surprise: an agent holding `write_memory`
4180
3854
  * / does NOT reach this method. Agent writes go through the agent surface, which applies the