@engramx/idl 0.16.0-rc.25 → 0.16.0-rc.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/engram.did +681 -482
- package/dist/engram.idl.d.ts +666 -477
- package/dist/engram.idl.js +77 -48
- package/dist/market.did +56 -50
- package/dist/market.idl.d.ts +56 -50
- package/dist/registry.did +277 -182
- package/dist/registry.idl.d.ts +275 -182
- package/dist/registry.idl.js +9 -0
- package/package.json +1 -1
package/dist/engram.idl.d.ts
CHANGED
|
@@ -31,6 +31,10 @@ export interface About {
|
|
|
31
31
|
encryptionEnabled: boolean;
|
|
32
32
|
paidMemoryWriteEnabled: boolean;
|
|
33
33
|
}
|
|
34
|
+
export interface Accepted {
|
|
35
|
+
closed: Ended;
|
|
36
|
+
handed: { MovedByRegistry: null } | { NotHeldHere: null } | { MovedByEngram: null };
|
|
37
|
+
}
|
|
34
38
|
export interface ActionAuth {
|
|
35
39
|
signature: Uint8Array | number[];
|
|
36
40
|
pubkey: Uint8Array | number[];
|
|
@@ -327,8 +331,6 @@ export interface CondenseResult {
|
|
|
327
331
|
historyBytesDelta: bigint;
|
|
328
332
|
opCount: bigint;
|
|
329
333
|
}
|
|
330
|
-
export type ControlHandover =
|
|
331
|
-
{ MovedByRegistry: null } | { NotHeldHere: null } | { MovedByEngram: null };
|
|
332
334
|
export interface Conversion {
|
|
333
335
|
token: string;
|
|
334
336
|
daysLeftBefore: [] | [bigint];
|
|
@@ -397,11 +399,21 @@ export type Eip712Value =
|
|
|
397
399
|
| { fixedBytes: Uint8Array | number[] }
|
|
398
400
|
| { bytes: Uint8Array | number[] };
|
|
399
401
|
export type End = { at: bigint } | { all: null };
|
|
402
|
+
export interface Ended {
|
|
403
|
+
typedDataDestinationsRemoved: bigint;
|
|
404
|
+
approvalsEnded: bigint;
|
|
405
|
+
sellersRemoved: bigint;
|
|
406
|
+
invitesVoided: bigint;
|
|
407
|
+
guardiansRemoved: bigint;
|
|
408
|
+
agentRecordsRemoved: bigint;
|
|
409
|
+
agentsEnded: bigint;
|
|
410
|
+
callerPoliciesRemoved: bigint;
|
|
411
|
+
}
|
|
400
412
|
export interface Engram {
|
|
401
413
|
/**
|
|
402
414
|
* / ⟨0.16.0⟩ `about()` — the ONE public projection, replacing `status()` and absorbing `metrics()`.
|
|
403
415
|
* /
|
|
404
|
-
* / Two public projections of one canister was the
|
|
416
|
+
* / Two public projections of one canister was the one-concept-two-names defect: both answered "what is this engram
|
|
405
417
|
* / like", disagreed about which counters they carried, and `status()` additionally masked two
|
|
406
418
|
* / fields behind an `authorized` flag whose own declaration admitted the problem — "a consumer
|
|
407
419
|
* / that must remember to check a sibling flag is one that will eventually forget."
|
|
@@ -409,7 +421,7 @@ export interface Engram {
|
|
|
409
421
|
* / The fix is not a better flag. The gated fields MOVED (see `getOwnerConsole`), so there is no
|
|
410
422
|
* / masked field to forget and no flag to check. Reaching the gated record is the authorization.
|
|
411
423
|
* /
|
|
412
|
-
* / Ungated by design and marked for the
|
|
424
|
+
* / Ungated by design and marked for the public-reason gate's grep.
|
|
413
425
|
* / PUBLIC: existence, shape, posture and day-floored activity. No principal, no balance, no
|
|
414
426
|
* / precise timestamp — nothing here identifies a person or reveals when they are at the keyboard.
|
|
415
427
|
*/
|
|
@@ -431,7 +443,87 @@ export interface Engram {
|
|
|
431
443
|
* / test/key-replacement.test.mo runs it; this body names no roster gate, because the caller holds
|
|
432
444
|
* / no role here until the move.
|
|
433
445
|
*/
|
|
434
|
-
acceptAgentKeyNomination: ActorMethod<[Principal],
|
|
446
|
+
acceptAgentKeyNomination: ActorMethod<[Principal], Result_96>;
|
|
447
|
+
/**
|
|
448
|
+
* / ⟨2026-11-15, from an adversarial review, ruled the same day: THE NEW OWNER MUST ACCEPT, and on
|
|
449
|
+
* / acceptance what the former owner granted is ended, not carried over⟩ THE PRINCIPAL AN OFFER
|
|
450
|
+
* / NAMES TAKES THE ENGRAM, as themselves. This is the only call that hands an owned engram to
|
|
451
|
+
* / someone else.
|
|
452
|
+
* /
|
|
453
|
+
* / ORDER. On an engram a registry spawned, the caller first calls the registry's
|
|
454
|
+
* / `acceptEngramOffer(<this engram>)`: the registry moves its record only for a principal who told
|
|
455
|
+
* / it so directly, and refuses this call's report otherwise, by name, with nothing changed. A
|
|
456
|
+
* / standalone engram needs this call alone. Then, here: the registry's record and control of the
|
|
457
|
+
* / code move exactly as a change of owner always did (`moveOwnership`; the answer's `handed` says
|
|
458
|
+
* / who moved control), and ONLY THEN the owner changes, the custody row is written
|
|
459
|
+
* / (`authorizedBy` is the former owner, who offered) and the offer is cleared. If control cannot
|
|
460
|
+
* / move, nothing changes here and the offer stays open, so the same call again finishes it.
|
|
461
|
+
* / ⟨2026-11-15, later, from a review, beside "the same call again finishes it" above⟩ That sentence
|
|
462
|
+
* / was not true when it was written: the registry removed its filed offer when it moved its
|
|
463
|
+
* / record, and its put-back did not bring the row back, so the same call was refused until the
|
|
464
|
+
* / owner offered again (MEASURED on PocketIC). The registry now removes the row only where a
|
|
465
|
+
* / change of owner finishes, so after a put-back both offers stand, the caller's acceptance at the
|
|
466
|
+
* / registry with them, and the same call again finishes it once the cause is fixed. Both offers
|
|
467
|
+
* / still end at their expiry (7 days from the offer); after that the owner offers again and the
|
|
468
|
+
* / named principal accepts again, at the registry and then here.
|
|
469
|
+
* /
|
|
470
|
+
* / WHAT ENDS, in the same message that changes the owner (`closed` counts them):
|
|
471
|
+
* / · every AGENT, active or not, is removed, with its ending kept in `agentPurgeLog` and sent
|
|
472
|
+
* / to the registry (recorded there as ended by a reset, the one ending that removes a record).
|
|
473
|
+
* / Reason: an agent acts on the owner's word, and that owner is gone. Measured: a key the
|
|
474
|
+
* / former owner paired read a file the new owner wrote.
|
|
475
|
+
* / · every GUARDIAN and every unredeemed agent or guardian INVITE. Reason: a guardian can
|
|
476
|
+
* / freeze payments and pause writes. Measured: the former owner's guardian did both.
|
|
477
|
+
* / · ⟨2026-11-15, later, from a review⟩ every CHILD ALLOWANCE (`setChildAllowance`), with its
|
|
478
|
+
* / write counter moved on so an opening in flight gives nothing back. Reason: an allowance
|
|
479
|
+
* / spends this engram's compute (1.3T an opening) on the former owner's approval, and it is
|
|
480
|
+
* / kept by an agent's lasting identity, so it outlived the agent record. Measured: after a
|
|
481
|
+
* / hand-over, a key the NEW owner paired opened an engram on the former owner's allowance.
|
|
482
|
+
* / The record line counts them (`childAllowances=`); the reply's `closed` does not.
|
|
483
|
+
* / · the SPENDING LIMITS: every per-key policy is removed, the general policy goes back to a
|
|
484
|
+
* / new engram's (`OwnerHandover.STARTING_POLICY`), and the engram-wide daily ceiling goes
|
|
485
|
+
* / back to `SpendCeiling.DEFAULT_ENGRAM_DAY`. Reason: a limit the former owner removed is a
|
|
486
|
+
* / grant. Measured: a policy with no limit and a ceiling of none both stood.
|
|
487
|
+
* / · every SELLER and payout address, with today's per-seller totals. Reason: a listed seller
|
|
488
|
+
* / is paid above the ordinary class on the former owner's approval.
|
|
489
|
+
* / · every APPROVAL REQUEST still waiting, and every one the former owner approved that is not
|
|
490
|
+
* / yet used: marked denied, with the reason (`OwnerHandover.APPROVAL_ENDED`). The rows stay.
|
|
491
|
+
* / · the registered EVM WITHDRAWAL ADDRESS (it was the former owner's, and without a guardian
|
|
492
|
+
* / it could not be changed), every typed-data DESTINATION (an empty list refuses every
|
|
493
|
+
* / signature that names a destination), the ALERT WEBHOOK (it posted this engram's activity
|
|
494
|
+
* / to the former owner's address) and both PAID-MEMORY switches (off, as a new engram's).
|
|
495
|
+
* /
|
|
496
|
+
* / WHAT IS KEPT, and why:
|
|
497
|
+
* / · the connector TOKEN rows the former owner issued. They are kept as rows and NOT HONOURED:
|
|
498
|
+
* / since 2026-09-29 a token whose issuer is not the current owner is refused at the door
|
|
499
|
+
* / (`BearerTokens.standing`), and the roster shows the new owner each one as the former
|
|
500
|
+
* / owner's. Revoking them here would only rewrite what those rows say happened.
|
|
501
|
+
* / · the MEMORY FILES and their history, the RECORD and its counters, the custody chain: they
|
|
502
|
+
* / are the engram; a hand-over that emptied it would hand over nothing, and an engram never
|
|
503
|
+
* / makes itself look new. `resetEngram` is the new owner's own choice for that.
|
|
504
|
+
* / · TODAY'S SPENDING TOTALS (per key and engram-wide): a hand-over never gives back an
|
|
505
|
+
* / allowance already spent today.
|
|
506
|
+
* / · the two BRAKES as they stand (payments frozen, writes paused): a brake only stops things,
|
|
507
|
+
* / and the new owner releases it themselves.
|
|
508
|
+
* / · the registered typed-data TYPES and their rules (a type that has signed is part of what
|
|
509
|
+
* / the record's signature rows mean; with no destination left they sign nothing that names
|
|
510
|
+
* / one), the paid history of addresses, the seat weeks, protected and revisable paths, the
|
|
511
|
+
* / retention and backup settings, the encryption switch, and open paid sessions (a payer's
|
|
512
|
+
* / money, theirs to close).
|
|
513
|
+
* / · what the registry set once at birth (biller, market, metrics reader, consent origin): it
|
|
514
|
+
* / was never the former owner's to set.
|
|
515
|
+
* / · NOT RULED, kept for now and named so nobody takes it for decided: the proof-of-personhood
|
|
516
|
+
* / flag and its stored result. It attests the person who was the owner when it was made.
|
|
517
|
+
* / ⟨2026-11-16, beside "NOT RULED"⟩ Ruled: it ENDS. The flag and its stored result are
|
|
518
|
+
* / cleared at an accepted hand-over (`endFormerOwnersGrants`), so `verifiedHuman` reads false
|
|
519
|
+
* / until the new owner verifies as themselves.
|
|
520
|
+
* /
|
|
521
|
+
* / Refused, with nothing changed: the anonymous caller; anyone the open offer does not name, and
|
|
522
|
+
* / an expired offer (`OwnershipOffer.acceptRefusal`); an engram opened through another; a full
|
|
523
|
+
* / custody chain; whatever the registry refuses (its own words, with a sentence saying the caller
|
|
524
|
+
* / did not become the owner).
|
|
525
|
+
*/
|
|
526
|
+
acceptOwnership: ActorMethod<[], Result_95>;
|
|
435
527
|
/**
|
|
436
528
|
* / The person the owner asked again ACCEPTS: they become this engram's sign-in, and the sealed copy
|
|
437
529
|
* / that came with the ask becomes the engram's (sealed for them). Until this call they have no power
|
|
@@ -461,10 +553,11 @@ export interface Engram {
|
|
|
461
553
|
HttpRequestResult
|
|
462
554
|
>;
|
|
463
555
|
/**
|
|
464
|
-
* / Owner-managed destination allowlist
|
|
465
|
-
* / and apply instantly — the
|
|
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.
|
|
466
559
|
* /
|
|
467
|
-
* / ⟨2026-10-14, the owner's ruling
|
|
560
|
+
* / ⟨2026-10-14, the owner's destination-list ruling⟩ ONE LIST PER REGISTERED ACTION. `addEvmWithdrawDestination`,
|
|
468
561
|
* / `removeEvmWithdrawDestination` and `listEvmWithdrawDestinations` — one list for every action —
|
|
469
562
|
* / are REMOVED; these three take the action's `typeId`. Same rules, per action: the owner only; an
|
|
470
563
|
* / addition activates after 24 hours and is refused while payments are frozen; a removal is instant
|
|
@@ -478,19 +571,20 @@ export interface Engram {
|
|
|
478
571
|
* / of FUTURE authority — a frozen engram must not be able to widen what it can sign), and the
|
|
479
572
|
* / shape is IMMUTABLE: any change mints a new typeId.
|
|
480
573
|
* /
|
|
481
|
-
* / ⟨2026-10-14, the owner's
|
|
482
|
-
* / names is stored as a label and decides nothing. Every
|
|
483
|
-
* / acknowledgement (`ackIrrevocable = true`); has no opaque
|
|
484
|
-
* / least one destination field OR carries a must-equal rule;
|
|
485
|
-
* / webhook set, enabled AND with its money class on, and an
|
|
486
|
-
* / `canFreezePayments`; and waits `Eip712Policy.COOLOFF_NS` (72 hours). It
|
|
487
|
-
* / rules (`fieldRules`: "at most N" read as a plain decimal with D places, "must
|
|
488
|
-
* / are part of the registered shape — inside the typeId, stored in
|
|
489
|
-
* / `eip712SignFor` before the cap reservation. Before this, a
|
|
490
|
-
* / needed no webhook, no guardian and no destination field,
|
|
491
|
-
* / address. Intrinsic checks still come first and the watchers
|
|
492
|
-
* /
|
|
493
|
-
* /
|
|
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
|
|
494
588
|
* / checks: the venue actions that move money or control to another account are refused by name
|
|
495
589
|
* / (`HyperliquidTransaction:` `UsdSend`, `SpotSend`, `SendAsset`, `SendToEvmWithData`,
|
|
496
590
|
* / `ConvertToMultiSigUser`, `ApproveBuilderFee`, `TokenDelegate` — `#Refused`), and
|
|
@@ -515,10 +609,11 @@ export interface Engram {
|
|
|
515
609
|
ackIrrevocable: boolean;
|
|
516
610
|
},
|
|
517
611
|
],
|
|
518
|
-
|
|
612
|
+
Result_93
|
|
519
613
|
>;
|
|
520
614
|
/**
|
|
521
|
-
* / ⟨0.16.0,
|
|
615
|
+
* / ⟨0.16.0, refusals are values, never traps⟩ THE ROLE-CONFLICT ARM, and why three refusals here are
|
|
616
|
+
* / not the same refusal.
|
|
522
617
|
* /
|
|
523
618
|
* / This method had five distinct ways to say no through one `text`, and a caller could only tell
|
|
524
619
|
* / them apart by matching prose. They are now three different arms because they call for three
|
|
@@ -529,7 +624,7 @@ export interface Engram {
|
|
|
529
624
|
*/
|
|
530
625
|
addGuardian: ActorMethod<[Principal, string, GuardianPermissions], Result_2>;
|
|
531
626
|
/**
|
|
532
|
-
* / ⟨2026-10-21, the owner's
|
|
627
|
+
* / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ OWNER-ONLY: put a note on any entry of this
|
|
533
628
|
* / engram's record — words, nothing else. Appends a chained `record.note` entry
|
|
534
629
|
* / (`about=<id> note=<words>`) and keeps the note for `listRecordNotes`; answers the new entry's
|
|
535
630
|
* / id. The entry noted may be any entry ever appended (`about` below the head), including one the
|
|
@@ -553,7 +648,7 @@ export interface Engram {
|
|
|
553
648
|
addSeller: ActorMethod<[string, bigint, boolean], Result_11>;
|
|
554
649
|
/**
|
|
555
650
|
* / AN AGENT CONVERTS THE ENGRAM'S BALANCE INTO COMPUTE, under the runway rule ⟨2026-11-04, the owner's
|
|
556
|
-
* / rulings of 2026-11-01
|
|
651
|
+
* / agent-conversion rulings of 2026-11-01; `AgentConvert.mo` holds the rule and says why each number⟩.
|
|
557
652
|
* /
|
|
558
653
|
* / CALLER: a paired agent whose STORED grant holds the scope "wallet.convert" (`AgentConvert.SCOPE`),
|
|
559
654
|
* / which only the owner adds (`createAgentInvite` / `setAgentPermissions`); off by default, and no HTTP
|
|
@@ -569,13 +664,13 @@ export interface Engram {
|
|
|
569
664
|
* / is READ before anything moves, and a wallet that cannot fund 0.50 is refused by name.
|
|
570
665
|
* /
|
|
571
666
|
* / STOPPED MID-WAY: if the agent is removed, leaves, loses the grant, payments are frozen or the engram is
|
|
572
|
-
* / reset while it waits on the ledger or the
|
|
667
|
+
* / reset while it waits on the ledger or the biller's deposit address, nothing moves; after the money
|
|
573
668
|
* / reached the deposit, it is sent back to the wallet less one ledger fee (or held at the biller for the
|
|
574
|
-
* / owner's next Convert). THE RESIDUAL, stated: a removal landing DURING the
|
|
669
|
+
* / owner's next Convert). THE RESIDUAL, stated: a removal landing DURING the biller's own conversion call
|
|
575
670
|
* / cannot stop that call — it finishes, and the reply (`finishedBeforeRemovalSeen`) and the record row say
|
|
576
671
|
* / so. One inter-canister call, bounded by one cap.
|
|
577
672
|
*/
|
|
578
|
-
agentConvertBalance: ActorMethod<[string, [] | [bigint]],
|
|
673
|
+
agentConvertBalance: ActorMethod<[string, [] | [bigint]], Result_91>;
|
|
579
674
|
/**
|
|
580
675
|
* / Returns the write RECEIPT, not just the version.
|
|
581
676
|
* /
|
|
@@ -620,7 +715,7 @@ export interface Engram {
|
|
|
620
715
|
* / is exactly what a guardian pause exists to hold. No action alert is raised: the operation is
|
|
621
716
|
* / owner-initiated, owner-only, and already chained into the audit log.
|
|
622
717
|
*/
|
|
623
|
-
applyCondense: ActorMethod<[bigint],
|
|
718
|
+
applyCondense: ActorMethod<[bigint], Result_90>;
|
|
624
719
|
/**
|
|
625
720
|
* / Owner-only: activate a guardian who has registered against an invite.
|
|
626
721
|
* /
|
|
@@ -641,7 +736,7 @@ export interface Engram {
|
|
|
641
736
|
* / the hour, and the retry CONSUMES the approval (`#Used`); a second attempt needs a second
|
|
642
737
|
* / approval. Past the hour it becomes `#Expired` on first touch. Neither state is recoverable by
|
|
643
738
|
* / approving again — the owner approves a NEW request.
|
|
644
|
-
* / ⟨2026-09-29, review finding
|
|
739
|
+
* / ⟨2026-09-29, a review finding⟩ One exception, made by the engram and not by the owner: when
|
|
645
740
|
* / the retry's signer FAILS, nothing was signed, so the approval goes back from `#Used` to
|
|
646
741
|
* / `#Approved` with its original expiry and an `approval.released` entry says so.
|
|
647
742
|
* /
|
|
@@ -720,13 +815,20 @@ export interface Engram {
|
|
|
720
815
|
* / `canAppendMemory`. Holding one says nothing about the other, deliberately: taking a backup and
|
|
721
816
|
* / carrying it away are different authorities.
|
|
722
817
|
*/
|
|
723
|
-
backupPullChunk: ActorMethod<[string, bigint],
|
|
818
|
+
backupPullChunk: ActorMethod<[string, bigint], Result_77>;
|
|
724
819
|
backupPushChunk: ActorMethod<[string, bigint, Uint8Array | number[]], Result_2>;
|
|
725
820
|
/**
|
|
726
821
|
* / The OWNER cancels an agent's pending key nomination; the agent keeps its current key. Refused
|
|
727
822
|
* / by name when the agent is unknown or has nothing pending — never a silent success.
|
|
728
823
|
*/
|
|
729
824
|
cancelAgentKeyNomination: ActorMethod<[Principal], Result_2>;
|
|
825
|
+
/**
|
|
826
|
+
* / ⟨2026-11-15, the ruling that the new owner must accept⟩ THE OWNER WITHDRAWS THE OPEN OFFER.
|
|
827
|
+
* / Owner-only. `#NotFound` when none is open. Nothing else changes, and nothing is sent: the
|
|
828
|
+
* / registry's copy of the offer cannot move anything without `acceptOwnership` succeeding here,
|
|
829
|
+
* / which now refuses, and it ends at its own expiry.
|
|
830
|
+
*/
|
|
831
|
+
cancelOwnershipOffer: ActorMethod<[], Result_2>;
|
|
730
832
|
/**
|
|
731
833
|
* / Close a session the caller paid for: settle what was consumed, refund the remainder.
|
|
732
834
|
* /
|
|
@@ -736,36 +838,36 @@ export interface Engram {
|
|
|
736
838
|
*/
|
|
737
839
|
closeSession: ActorMethod<[string], Result_2>;
|
|
738
840
|
/**
|
|
739
|
-
* / Convert the engram's OWN earned ckUSDC/ckUSDT into its OWN cycles, via the
|
|
841
|
+
* / Convert the engram's OWN earned ckUSDC/ckUSDT into its OWN cycles, via the biller — the
|
|
740
842
|
* / engram-self top-up path. Owner-only; per-call cap + cooldown (irreversible); NOT freeze-gated
|
|
741
|
-
* / (infrastructure funding). Flow: read the engram's deposit address on the
|
|
742
|
-
* / engram's tokens there, then have the
|
|
843
|
+
* / (infrastructure funding). Flow: read the engram's deposit address on the biller, move the
|
|
844
|
+
* / engram's tokens there, then have the biller convert — the biller self-authorizes because the
|
|
743
845
|
* / caller (this engram) is a registered active engram (registry isRegisteredActiveEngram seam).
|
|
744
|
-
* / (The owner-funded path lives entirely in the frontend: owner →
|
|
745
|
-
* / ⟨0.16.0,
|
|
846
|
+
* / (The owner-funded path lives entirely in the frontend: owner → biller deposit → topUp.)
|
|
847
|
+
* / ⟨0.16.0, named wire types — `token : Text` KEPT, deliberately, and this note exists so the sweep that finds
|
|
746
848
|
* / it does not re-litigate it.⟩
|
|
747
849
|
* /
|
|
748
850
|
* / `ownerWithdraw` and the market's `recoverEscrow` both took `Wire.TokenAmount` because they
|
|
749
851
|
* / accept ICP (e8s) BESIDE the stablecoins (e6) — mixed decimals behind one number is a real
|
|
750
852
|
* / hundred-fold error. This method accepts ckUSDC and ckUSDT only. Both are e6, so there is no
|
|
751
|
-
* / unit to get wrong, and the
|
|
853
|
+
* / unit to get wrong, and the 0.16.0 interface plan rules the pair as `(token, amountE6)`.
|
|
752
854
|
* /
|
|
753
855
|
* / `Wire.TokenAmount` would be actively WORSE here: its `#Icp` arm is a token this path cannot
|
|
754
856
|
* / convert, so the type would make an unacceptable value REPRESENTABLE and hand back a runtime
|
|
755
857
|
* / rejection anyway — losing the one property the variant is for while gaining a wider type.
|
|
756
858
|
* /
|
|
757
|
-
* / ⟨2026-10-02⟩ The second parameter is NAMED `amountE6` now, as the
|
|
859
|
+
* / ⟨2026-10-02⟩ The second parameter is NAMED `amountE6` now, as the interface plan's ruling above has the
|
|
758
860
|
* / pair — e6 base units of the token named first. A name only: Candid passes arguments by
|
|
759
861
|
* / position, so nothing on the wire moved.
|
|
760
862
|
* /
|
|
761
|
-
* / ⟨2026-11-04, the agent-conversion build — the owner's
|
|
863
|
+
* / ⟨2026-11-04, the agent-conversion build — the owner's agent-conversion rulings⟩ The body moved whole into
|
|
762
864
|
* / `runConversion`, which an agent's `agentConvertBalance` shares; this method keeps its name, its
|
|
763
|
-
* / signature and its bare `cyclesAdded` reply. Under
|
|
865
|
+
* / signature and its bare `cyclesAdded` reply. Under those rulings it converts the engram's BALANCE (what the
|
|
764
866
|
* / owner put in and what it earned are not told apart); the name is the wire's and stays. A FIRST
|
|
765
867
|
* / engram's owner Convert is unchanged: not counted, not freeze-gated, not runway-bound, not pre-read,
|
|
766
868
|
* / 10.00 / 5 min. In an engram OPENED THROUGH ANOTHER the key file's Convert runs the agent rule too
|
|
767
|
-
* / (
|
|
768
|
-
* / wallet read first), keeping its own freeze gate (
|
|
869
|
+
* / (as the owner agreed: under 30 days, 0.50–2.00, once in 24 hours shared with the agents, the
|
|
870
|
+
* / wallet read first), keeping its own freeze gate (by the owner's ruling, a guardian's freeze only).
|
|
769
871
|
* / ⟨2026-11-04, review fix⟩ SHARED with an agent's conversion: the in-flight latch only (one deposit
|
|
770
872
|
* / account, one pending marker — one conversion at a time, whoever asked), so while an agent's conversion
|
|
771
873
|
* / is between its deposit and its landing this door answers "another conversion is still in flight". NOT
|
|
@@ -792,14 +894,14 @@ export interface Engram {
|
|
|
792
894
|
* / A principal that is already a GUARDIAN cannot become an agent — a guardian is an
|
|
793
895
|
* / independent check on agents, so one wallet must not hold both.
|
|
794
896
|
* /
|
|
795
|
-
* / ⟨2026-10-29, the owner's ruling
|
|
897
|
+
* / ⟨2026-10-29, the owner's ruling⟩ `name` MAY BE EMPTY (or only whitespace): the agent is then
|
|
796
898
|
* / named after its key when it pairs — "agent-" and the key's first five characters, e.g.
|
|
797
899
|
* / "agent-hsffu" (`People.nameAtPairing` says why five, and the first). ⟨2026-10-29, later, beside "its key"⟩ Its
|
|
798
900
|
* / PERMANENT key (the root it enrolled with), not the key that pairs, so the name stays right across
|
|
799
901
|
* / a key replacement and matches the app's "Copy permanent key". A name the owner gives
|
|
800
902
|
* / always wins. Before this an empty name was refused, so an app that wanted no name had to invent
|
|
801
903
|
* / one ("agent"), and two agents read alike.
|
|
802
|
-
* / ⟨2026-10-29, review
|
|
904
|
+
* / ⟨2026-10-29, a review finding⟩ A name the owner gives meets the rule `renameAgent` applies: a line break
|
|
803
905
|
* / or another control character is `#Invalid` (`People.nameRefusal`), as a rename to it would be.
|
|
804
906
|
*/
|
|
805
907
|
createAgentInvite: ActorMethod<[string, AgentPermissions], Result_58>;
|
|
@@ -828,9 +930,9 @@ export interface Engram {
|
|
|
828
930
|
*/
|
|
829
931
|
createGuardianInvite: ActorMethod<[string, GuardianPermissions], Result_58>;
|
|
830
932
|
/**
|
|
831
|
-
* / The sign-in GIVES ITSELF UP, or the person the owner asked again says no. ⟨the owner's ruling
|
|
832
|
-
* /
|
|
833
|
-
* / otherwise refuse a seat they never agreed to⟩
|
|
933
|
+
* / The sign-in GIVES ITSELF UP, or the person the owner asked again says no. ⟨the owner's ruling that
|
|
934
|
+
* / they may say no, but the child can ask again — from the child build's design check: whoever the kit
|
|
935
|
+
* / names cannot otherwise refuse a seat they never agreed to⟩
|
|
834
936
|
* / · as the sign-in: the slot empties, the sealed copy of the owner's key is deleted (nobody may
|
|
835
937
|
* / hold a copy for a seat that is gone), and the caller is recorded as the one who declined, with
|
|
836
938
|
* / the time. The engram keeps its small limits; the owner may ask this person again in 7 days.
|
|
@@ -858,7 +960,7 @@ export interface Engram {
|
|
|
858
960
|
*/
|
|
859
961
|
deleteBackup: ActorMethod<[string], Result_2>;
|
|
860
962
|
/**
|
|
861
|
-
* / ⟨0.16.0,
|
|
963
|
+
* / ⟨0.16.0, the interface plan⟩ RETURNS A REAL RECEIPT, not `R<()>`. The receipt was already
|
|
862
964
|
* / being computed and written into the audit line — `receiptSuffix(r)` — and then discarded, so
|
|
863
965
|
* / a caller could not cite the seq its own delete produced and had to go looking for it in a log
|
|
864
966
|
* / it may not be allowed to read. A delete is an EVENT on the chain; an event that will not tell
|
|
@@ -878,12 +980,12 @@ export interface Engram {
|
|
|
878
980
|
*/
|
|
879
981
|
denyRequest: ActorMethod<[string, string], Result_2>;
|
|
880
982
|
/**
|
|
881
|
-
* / ⟨2026-10-21, the owner's
|
|
983
|
+
* / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ A NEW GUARDIAN POWER, words only: an ACTIVE
|
|
882
984
|
* / guardian disputes an agent's write. It never moves money, stops anything or changes a grant.
|
|
883
985
|
* / Appends a chained `record.dispute` entry (`about=<id> reason=<words>`) and keeps the dispute
|
|
884
986
|
* / for `listGuardianDisputes`; answers the new entry's id. NOT ALERTED, deliberately: a
|
|
885
987
|
* / `guardian.*` operation would fall in the alerts' #guardian class, and which entries reach a
|
|
886
|
-
* / phone is
|
|
988
|
+
* / phone is a later alerts change's to decide (`ActionAlerts.classify` answers null for
|
|
887
989
|
* / `record.*`). The owner sees it on the record's Disputes tab.
|
|
888
990
|
* /
|
|
889
991
|
* / WHO: every active guardian — no grant bit (`RecordWords` header says why). The OWNER is refused
|
|
@@ -909,9 +1011,9 @@ export interface Engram {
|
|
|
909
1011
|
* / situation rather than a safety measure. It IS gated on requireMemoryAttached: a store that
|
|
910
1012
|
* / failed its integrity check must not attest anything it cannot vouch for.
|
|
911
1013
|
*/
|
|
912
|
-
exportMemoryRange: ActorMethod<[bigint, bigint, [] | [Principal]],
|
|
1014
|
+
exportMemoryRange: ActorMethod<[bigint, bigint, [] | [Principal]], Result_89>;
|
|
913
1015
|
/**
|
|
914
|
-
* / ⟨0.16.0,
|
|
1016
|
+
* / ⟨0.16.0, same concept, same name — renamed from `guardianFreezePayments`⟩ The prefix LIED about who may call it.
|
|
915
1017
|
* / The gate is `requireOwnerOrGuardian`, and an owner freezing their own payments is the ordinary
|
|
916
1018
|
* / case — the guardian is the exceptional one. A name that says otherwise sends an owner looking
|
|
917
1019
|
* / for a method that does not exist. `unfreezePayments`, its owner-only inverse, never carried the
|
|
@@ -926,7 +1028,7 @@ export interface Engram {
|
|
|
926
1028
|
* / individual method's body finds nothing — the check is one level down.⟩
|
|
927
1029
|
* / · `addEip712Type` and `addEvmWithdrawDestination` — pre-staging for a later payout is the
|
|
928
1030
|
* / thing a brake most needs to stop, so the destination list is frozen along with the signing.
|
|
929
|
-
* / ⟨2026-10-14, the owner's ruling
|
|
1031
|
+
* / ⟨2026-10-14, the owner's destination-list ruling⟩ `addEvmWithdrawDestination` is removed; its place is
|
|
930
1032
|
* / `addEip712Destination` (one list per registered action), freeze-gated the same way.
|
|
931
1033
|
* / · `sessionReadMemory` and `sessionAppendMemory` — the paid-memory rail, money coming IN.
|
|
932
1034
|
* /
|
|
@@ -935,10 +1037,10 @@ export interface Engram {
|
|
|
935
1037
|
* / · `convertEarningsToCycles` — the owner's OWN earnings becoming their OWN engram's fuel. A
|
|
936
1038
|
* / frozen engram still burns cycles, so freezing this would let a brake starve the thing it
|
|
937
1039
|
* / is protecting. Owner-only, capped per call, and it moves nothing outward.
|
|
938
|
-
* / ⟨2026-11-04, the agent-conversion build —
|
|
1040
|
+
* / ⟨2026-11-04, the agent-conversion build — as the owner agreed⟩ An AGENT's conversion
|
|
939
1041
|
* / (`agentConvertBalance`) IS frozen, by any freeze — the owner's own included — before it starts and
|
|
940
1042
|
* / again after each await. The owner's own Convert in a first engram stays as above; in an engram
|
|
941
|
-
* / opened through another it stops under a guardian's freeze only (
|
|
1043
|
+
* / opened through another it stops under a guardian's freeze only (the owner's ruling of 2026-11-02).
|
|
942
1044
|
* / · `approveRequest` — an approval is not a spend. The spend it authorises goes through
|
|
943
1045
|
* / `x402SignFor`, which IS frozen, so an approval granted during a freeze simply waits.
|
|
944
1046
|
* / · `transferOwnership` — ownership is not a payment, and a guardian's PAYMENTS brake is not
|
|
@@ -949,7 +1051,7 @@ export interface Engram {
|
|
|
949
1051
|
*/
|
|
950
1052
|
freezePayments: ActorMethod<[], Result_2>;
|
|
951
1053
|
/**
|
|
952
|
-
* / ⟨2026-10-21, the owner's
|
|
1054
|
+
* / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ `freezePayments` with a reason the strip and the
|
|
953
1055
|
* / guardian page show ("Sam froze payments: 'a payment I didn't expect'"). A NEW method, not an
|
|
954
1056
|
* / argument on `freezePayments`: a shipped argument tuple is frozen. Same callers, same grant, same
|
|
955
1057
|
* / brake: the owner, or an active guardian holding `canFreezePayments`; an agent, a stranger, a
|
|
@@ -960,10 +1062,10 @@ export interface Engram {
|
|
|
960
1062
|
freezePaymentsWithReason: ActorMethod<[string], Result_2>;
|
|
961
1063
|
/**
|
|
962
1064
|
* / Delivery status + config readback. Owner-only (the URL is a secret).
|
|
963
|
-
* / ⟨2026-11-03, the pre-
|
|
1065
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
964
1066
|
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
965
1067
|
*/
|
|
966
|
-
getActionAlertStatus: ActorMethod<[],
|
|
1068
|
+
getActionAlertStatus: ActorMethod<[], Result_78>;
|
|
967
1069
|
/**
|
|
968
1070
|
* / The agent-conversion rule's numbers.
|
|
969
1071
|
* / PUBLIC: the class of `getTopUpLimits` — a policy, nobody's data. ⟨2026-11-04, the market-route
|
|
@@ -974,9 +1076,9 @@ export interface Engram {
|
|
|
974
1076
|
getAgentConvertRule: ActorMethod<[], AgentConvertRule>;
|
|
975
1077
|
/**
|
|
976
1078
|
* / Agents need to know what they may revise, so they can read it too. Whole-value config, same
|
|
977
|
-
* / carve-out as getProtectedPaths — and kept a SEPARATE method from it deliberately (
|
|
978
|
-
* / protected path and a revisable path are opposite grants, and one
|
|
979
|
-
* / name that lies about which power it reports.
|
|
1079
|
+
* / carve-out as getProtectedPaths — and kept a SEPARATE method from it deliberately (different
|
|
1080
|
+
* / concept, different name): a protected path and a revisable path are opposite grants, and one
|
|
1081
|
+
* / accessor for both would be a name that lies about which power it reports.
|
|
980
1082
|
* /
|
|
981
1083
|
* / Refusal reason preserved from the trap: a grant is a power, and its absence and its
|
|
982
1084
|
* / concealment are different facts.
|
|
@@ -993,10 +1095,10 @@ export interface Engram {
|
|
|
993
1095
|
* / order. Anyone else is refused by name (`#Refused getAgentSeatWeeks: …`), never answered with an
|
|
994
1096
|
* / empty page. Paged; `total` is every engagement ever paired here (a reset keeps the rows).
|
|
995
1097
|
* / Two rows can name one root: an agent paired again after it left is a second engagement.
|
|
996
|
-
* / ⟨2026-11-03, the pre-
|
|
1098
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
997
1099
|
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
998
1100
|
*/
|
|
999
|
-
getAgentSeatWeeks: ActorMethod<[bigint, bigint],
|
|
1101
|
+
getAgentSeatWeeks: ActorMethod<[bigint, bigint], Result_87>;
|
|
1000
1102
|
/**
|
|
1001
1103
|
* / Owner: everything written into this engram by someone other than the owner since the last
|
|
1002
1104
|
* / markAgentWritesReviewed() — agent appends/revisions AND paid-session appends (see
|
|
@@ -1005,11 +1107,11 @@ export interface Engram {
|
|
|
1005
1107
|
* / them — the UI must page (markAgentWritesReviewed(?lastShownId)) and must NOT present 200
|
|
1006
1108
|
* / as a total. `earliest` discloses ring eviction — if cursor < earliest, entries between them
|
|
1007
1109
|
* / aged out of the ring (the CHAIN still proves total count; this view can't show their bodies).
|
|
1008
|
-
* / ⟨2026-11-03, the pre-
|
|
1110
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
1009
1111
|
* / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
|
|
1010
1112
|
* / engram is unchanged.
|
|
1011
1113
|
*/
|
|
1012
|
-
getAgentWriteReview: ActorMethod<[],
|
|
1114
|
+
getAgentWriteReview: ActorMethod<[], Result_86>;
|
|
1013
1115
|
/**
|
|
1014
1116
|
* / Why anchoring is or is not advancing. PUBLIC: ungated on purpose — detecting a stalled
|
|
1015
1117
|
* / engram is the point, a gated read would fail-to-empty and hand a third party fabricated zeros,
|
|
@@ -1020,11 +1122,11 @@ export interface Engram {
|
|
|
1020
1122
|
/**
|
|
1021
1123
|
* / The plain chain head — size and hash, world-readable, no certificate.
|
|
1022
1124
|
* /
|
|
1023
|
-
* / ⟨0.16.0,
|
|
1024
|
-
* / declaration says why it matters: heads exist TO BE COMPARED (
|
|
1025
|
-
* / witnesses nothing, and the registry and
|
|
1026
|
-
* / engram, "the canister that IS the evidence product", was the one chain
|
|
1027
|
-
* / ask for a head without also asking for a certificate it may not want.
|
|
1125
|
+
* / ⟨0.16.0, kept as a new method in the interface plan⟩ It was specced and never built. `Wire.AuditHead`'s own
|
|
1126
|
+
* / declaration says why it matters: heads exist TO BE COMPARED (the disclosure law: who may read
|
|
1127
|
+
* / what), a head nobody can read witnesses nothing, and the registry and biller already served
|
|
1128
|
+
* / exactly this shape — so the engram, "the canister that IS the evidence product", was the one chain
|
|
1129
|
+
* / a verifier could not ask for a head without also asking for a certificate it may not want.
|
|
1028
1130
|
* /
|
|
1029
1131
|
* / PUBLIC: bare, and it cannot refuse — a chain head discloses nothing about content or callers,
|
|
1030
1132
|
* / and gating it would make the comparison it exists for depend on permission. `getCertifiedAuditHead`
|
|
@@ -1032,9 +1134,9 @@ export interface Engram {
|
|
|
1032
1134
|
* / was signed rather than asserted.
|
|
1033
1135
|
*/
|
|
1034
1136
|
getAuditHead: ActorMethod<[], AuditHead>;
|
|
1035
|
-
getBackupMetadata: ActorMethod<[string],
|
|
1137
|
+
getBackupMetadata: ActorMethod<[string], Result_85>;
|
|
1036
1138
|
/**
|
|
1037
|
-
* / ⟨2026-10-21, the owner's
|
|
1139
|
+
* / ⟨2026-10-21, the owner's approval of the mobile design's changes: a backup-retention getter⟩ How many backups of
|
|
1038
1140
|
* / `dbType` each creator keeps, and whether that is the default — the read `setBackupRetention`
|
|
1039
1141
|
* / lacked, so "Keeps your newest 3" showed only on the phone that last set it.
|
|
1040
1142
|
* /
|
|
@@ -1045,45 +1147,46 @@ export interface Engram {
|
|
|
1045
1147
|
* / the anonymous caller. A kind the setter would refuse is `#Invalid` here too
|
|
1046
1148
|
* / (`Backup.getRetention`). Records nothing (a query).
|
|
1047
1149
|
*/
|
|
1048
|
-
getBackupRetention: ActorMethod<[string],
|
|
1150
|
+
getBackupRetention: ActorMethod<[string], Result_84>;
|
|
1049
1151
|
/**
|
|
1050
|
-
* / The
|
|
1152
|
+
* / The canister this engram recognises as its rent biller — `null` until the registry pushes one.
|
|
1051
1153
|
* /
|
|
1052
|
-
* / PUBLIC: a payer about to send money needs to know which
|
|
1053
|
-
* / from, BEFORE sending it — paying a
|
|
1154
|
+
* / PUBLIC: a payer about to send money needs to know which biller this engram will accept credit
|
|
1155
|
+
* / from, BEFORE sending it — paying a biller this engram does not recognise collects funds that
|
|
1054
1156
|
* / never become rent. The registry publishes the same fact as `getRentBiller`; publishing it here
|
|
1055
1157
|
* / too is what lets the two be COMPARED, which is the only way to catch a mismatch.
|
|
1056
1158
|
*/
|
|
1057
1159
|
getBillerId: ActorMethod<[], [] | [Principal]>;
|
|
1058
1160
|
/**
|
|
1059
1161
|
* / This engram's BIRTH CHAIN, root first: its own record last, its parent's before it, and so on
|
|
1060
|
-
* / ⟨2026-10-26, the owner's lineage ruling
|
|
1162
|
+
* / ⟨2026-10-26, the owner's lineage ruling that the registry certifies each birth record's fingerprint⟩.
|
|
1061
1163
|
* /
|
|
1062
1164
|
* / OWNER ONLY. The owner decides whom to show it to — the chain names the engrams this one descends
|
|
1063
1165
|
* / from, which is the owner's to disclose, not the registry's. The certified half is at the registry
|
|
1064
1166
|
* / (`getCertifiedBirth`, public, revealing only whether a fingerprint is present); the client's
|
|
1065
1167
|
* / `verifyBirthChain` checks both. Refused to anyone else by the combinator (`#ownerOnly`).
|
|
1066
|
-
* / ⟨2026-11-03, the pre-
|
|
1168
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
1067
1169
|
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
1068
1170
|
*/
|
|
1069
|
-
getBirthChain: ActorMethod<[],
|
|
1171
|
+
getBirthChain: ActorMethod<[], Result_83>;
|
|
1070
1172
|
/**
|
|
1071
|
-
* / ⟨2026-10-21, the owner's
|
|
1072
|
-
* / LAST (their key and whether as owner or guardian), since when, and the reason
|
|
1073
|
-
* / same person and time as the newest brake entry on the record
|
|
1074
|
-
* / owner's status strip and the guardian page. The OWNER and
|
|
1075
|
-
* / agent, a stranger, a pending guardian and the anonymous caller
|
|
1076
|
-
* / — an agent learns a brake is on from the refusal of what it tried,
|
|
1077
|
-
* / is null for a brake that is off, and for one carried on across the
|
|
1078
|
-
* / read (who pulled it was not recorded then) — never a guessed pull.
|
|
1173
|
+
* / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ Each brake: on or off, and while
|
|
1174
|
+
* / on, who pulled it LAST (their key and whether as owner or guardian), since when, and the reason
|
|
1175
|
+
* / they gave — the same person and time as the newest brake entry on the record
|
|
1176
|
+
* / (`RecordWords.BrakePull`). For the owner's status strip and the guardian page. The OWNER and
|
|
1177
|
+
* / ACTIVE GUARDIANS may read it; an agent, a stranger, a pending guardian and the anonymous caller
|
|
1178
|
+
* / are refused (`#ownerOrGuardian` — an agent learns a brake is on from the refusal of what it tried,
|
|
1179
|
+
* / and needs no more). `pull` is null for a brake that is off, and for one carried on across the
|
|
1180
|
+
* / upgrade that added this read (who pulled it was not recorded then) — never a guessed pull.
|
|
1079
1181
|
*/
|
|
1080
|
-
getBrakes: ActorMethod<[],
|
|
1182
|
+
getBrakes: ActorMethod<[], Result_82>;
|
|
1081
1183
|
/**
|
|
1082
|
-
* / ⟨0.16.0,
|
|
1083
|
-
* /
|
|
1084
|
-
* /
|
|
1085
|
-
* /
|
|
1086
|
-
* / read three of them and not the fourth has
|
|
1184
|
+
* / ⟨0.16.0, one implementation per behaviour, the interface files as the source — the interface
|
|
1185
|
+
* / plan's entry⟩ `Wire.CertifiedAuditHead`, not an anonymous record. The registry, market and biller
|
|
1186
|
+
* / already served the shared type; the engram — the canister that IS the evidence product — was the
|
|
1187
|
+
* / one chain still answering in a shape of its own, missing `witness` entirely. One certified-head
|
|
1188
|
+
* / shape on every chain is the point: a verifier that can read three of them and not the fourth has
|
|
1189
|
+
* / to special-case the one that matters most.
|
|
1087
1190
|
* /
|
|
1088
1191
|
* / `witness = null` is the honest answer here and is NOT the same as an empty proof. This engram
|
|
1089
1192
|
* / certifies its head via `CertifiedData` but keeps no witness tree, so there is no reveal to
|
|
@@ -1099,20 +1202,20 @@ export interface Engram {
|
|
|
1099
1202
|
* / Readable by the owner and by that agent's own key — refused loudly to anyone else, never a zero
|
|
1100
1203
|
* / (a zero would be a claim about another owner's grant).
|
|
1101
1204
|
* /
|
|
1102
|
-
* / ⟨2026-10-01, review
|
|
1205
|
+
* / ⟨2026-10-01, a review finding⟩ A QUERY, so the refusal is deliberately NOT written to the denial log: a
|
|
1103
1206
|
* / query's state writes are discarded when it returns, and the `denied` call first written here
|
|
1104
1207
|
* / recorded nothing while reading as if it did. The refusal is loud in the reply instead. WHAT
|
|
1105
1208
|
* / WOULD MAKE THIS WRONG: a reason to record who asked — then this becomes an update that says so.
|
|
1106
1209
|
*/
|
|
1107
|
-
getChildAllowance: ActorMethod<[Principal],
|
|
1210
|
+
getChildAllowance: ActorMethod<[Principal], Result_81>;
|
|
1108
1211
|
/**
|
|
1109
1212
|
* / Owner-only, Billing-class: what opening an engram costs this engram, the balance below which an
|
|
1110
1213
|
* / agent's request is refused, the balance now, and every agent's allowance. The console's cost
|
|
1111
1214
|
* / sentence reads it. Cycles are owner-class information, as on the owner's console read.
|
|
1112
|
-
* / ⟨2026-11-03, the pre-
|
|
1215
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
1113
1216
|
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
1114
1217
|
*/
|
|
1115
|
-
getChildOpening: ActorMethod<[],
|
|
1218
|
+
getChildOpening: ActorMethod<[], Result_80>;
|
|
1116
1219
|
/**
|
|
1117
1220
|
* / Derive the key that opens the sealed copy, encrypted under the caller's transport public key —
|
|
1118
1221
|
* / for the SIGN-IN alone (the combinator's `#ownerSignIn`; the key file is refused by name: only the
|
|
@@ -1122,17 +1225,17 @@ export interface Engram {
|
|
|
1122
1225
|
* / with no copy, all before the call. The opening is recorded (`keyBackup.opened`), so the owner's
|
|
1123
1226
|
* / alert fires: the one act a thief holding the sign-in cannot hide. Not blocked by a freeze: a
|
|
1124
1227
|
* / freeze must never lock the owner out of its own key.
|
|
1125
|
-
* / ⟨CORRECTED 2026-11-03, the
|
|
1126
|
-
* / it: in an engram opened through another the sign-in sets the alert
|
|
1127
|
-
* / sign-in can re-point it first. Each opening is recorded in the
|
|
1128
|
-
* / reads) and alerted to whatever address the sign-in has set.
|
|
1228
|
+
* / ⟨CORRECTED 2026-11-03, the review of the child build's sealed-key-copy step, beside the sentence
|
|
1229
|
+
* / above⟩ "cannot hide" overstates it: in an engram opened through another the sign-in sets the alert
|
|
1230
|
+
* / address, so a thief holding the sign-in can re-point it first. Each opening is recorded in the
|
|
1231
|
+
* / engram's record (which the key file reads) and alerted to whatever address the sign-in has set.
|
|
1129
1232
|
* /
|
|
1130
|
-
* / ⟨
|
|
1233
|
+
* / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
|
|
1131
1234
|
* / `VetKeys.ManagementCanister.vetKdDeriveKey`. A query cannot await.
|
|
1132
1235
|
* / Named callers: an owner console signed in as the sign-in (the browser's recovery), and the owner
|
|
1133
1236
|
* / kit's `--recover-key` signed by a key-file sign-in.
|
|
1134
1237
|
*/
|
|
1135
|
-
getEncryptedKeyBackupKey: ActorMethod<[Uint8Array | number[]],
|
|
1238
|
+
getEncryptedKeyBackupKey: ActorMethod<[Uint8Array | number[]], Result_77>;
|
|
1136
1239
|
/**
|
|
1137
1240
|
* / Derive the shared memory-encryption key, encrypted under the caller's transport
|
|
1138
1241
|
* / public key. Gated to owner + read-agents (the same principals allowed to read
|
|
@@ -1150,20 +1253,20 @@ export interface Engram {
|
|
|
1150
1253
|
* / Refusing a FUTURE epoch is not a bounds check, it is the rotation invariant: pre-deriving a
|
|
1151
1254
|
* / key for an epoch nobody has reached would make rotating to it meaningless.
|
|
1152
1255
|
* /
|
|
1153
|
-
* / Also converted off the lowercase `#ok/#err` dialect (
|
|
1256
|
+
* / Also converted off the lowercase `#ok/#err` dialect (results spelled Ok/Err) — that spelling arrived from ic402
|
|
1154
1257
|
* / and had no business on a vetKD path, which touches nothing of ic402's.
|
|
1155
1258
|
* /
|
|
1156
|
-
* / ⟨
|
|
1259
|
+
* / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
|
|
1157
1260
|
* / `VetKeys.ManagementCanister.vetKdDeriveKey`. A query cannot await, so the round trip is the
|
|
1158
|
-
* / cost. Stated here because
|
|
1261
|
+
* / cost. Stated here because the update-for-read rule requires the reason be readable from the interface rather than
|
|
1159
1262
|
* / inferred by opening the body — which is exactly what had to happen to write this line.
|
|
1160
1263
|
*/
|
|
1161
|
-
getEncryptedMemoryKey: ActorMethod<[[] | [bigint], Uint8Array | number[]],
|
|
1264
|
+
getEncryptedMemoryKey: ActorMethod<[[] | [bigint], Uint8Array | number[]], Result_77>;
|
|
1162
1265
|
/**
|
|
1163
|
-
* / ⟨0.16.0, owner ruling 2026-08-20
|
|
1266
|
+
* / ⟨0.16.0, owner ruling 2026-08-20⟩ `x402Support` REPORTS THE RAIL, not a constant.
|
|
1164
1267
|
* /
|
|
1165
1268
|
* / The card's config hardcodes `x402Support = true`, answering a buyer's question with a fact
|
|
1166
|
-
* / about the software rather than about THIS engram.
|
|
1269
|
+
* / about the software rather than about THIS engram. The 0.16.0 split moved the 402 challenge machinery to the
|
|
1167
1270
|
* / market; the one x402-payable rail the engram kept is `sessionReadMemory`, gated by
|
|
1168
1271
|
* / `paidMemoryReadEnabled`, which DEFAULTS TO FALSE. So a discovering agent was told this engram
|
|
1169
1272
|
* / takes x402 payments while every paid read on a default engram is refused with "the owner has
|
|
@@ -1186,19 +1289,19 @@ export interface Engram {
|
|
|
1186
1289
|
*/
|
|
1187
1290
|
getEngramCard: ActorMethod<[], AgentCard>;
|
|
1188
1291
|
/**
|
|
1189
|
-
* / Re-pointed at `EvmIdentity` (
|
|
1190
|
-
* / Gateway, which is leaving for the market canister. Behaviour is
|
|
1191
|
-
* / address, same tECDSA key — but the engram no longer needs a
|
|
1192
|
-
* / address, which is the whole point of the split.
|
|
1292
|
+
* / Re-pointed at `EvmIdentity` (the step that moved commerce to the market): custody derivation no
|
|
1293
|
+
* / longer routes through the ic402 Gateway, which is leaving for the market canister. Behaviour is
|
|
1294
|
+
* / unchanged for a caller — same address, same tECDSA key — but the engram no longer needs a
|
|
1295
|
+
* / marketplace to know its own address, which is the whole point of the split.
|
|
1193
1296
|
* /
|
|
1194
|
-
* / ⟨2026-08-21⟩ DO NOT FOLD THIS WITH `getEvmSignerAddress`. The 0.16.0
|
|
1297
|
+
* / ⟨2026-08-21⟩ DO NOT FOLD THIS WITH `getEvmSignerAddress`. The 0.16.0 interface plan carried the fold
|
|
1195
1298
|
* / as an open item, conditional on "if the derivation is identical". It is not, and the condition
|
|
1196
1299
|
* / is decidable here rather than by reading either comment:
|
|
1197
1300
|
* /
|
|
1198
1301
|
* / this method EvmIdentity.deriveAddress -> derivation_path = []
|
|
1199
1302
|
* / the signer eip712PublicKey -> derivation_path = ["eip712"]
|
|
1200
1303
|
* /
|
|
1201
|
-
* / ⟨CORRECTED 2026-09-22 — the two paths above are what the code passed until
|
|
1304
|
+
* / ⟨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);
|
|
1202
1305
|
* / the table is kept because the ARGUMENT it makes is unchanged and is the reason the fold is
|
|
1203
1306
|
* / still refused.⟩ The signer now reads `KeyPaths.EIP712` = `["engramx","eip712","secp256k1","v1"]`
|
|
1204
1307
|
* / and this method still derives at the empty path, because `pay` is the one row the genesis could
|
|
@@ -1235,12 +1338,12 @@ export interface Engram {
|
|
|
1235
1338
|
* / is exactly who needs it. The write it causes is bounded to one derivation and one
|
|
1236
1339
|
* / set-once custody stamp per engram lifetime, which is what keeps "any caller may cause it"
|
|
1237
1340
|
* / safe rather than merely permitted.
|
|
1238
|
-
* / ⟨
|
|
1341
|
+
* / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
|
|
1239
1342
|
* / `EvmIdentity.deriveAddress`, which reaches the management canister's `ecdsa_public_key`. A
|
|
1240
1343
|
* / query cannot await it.
|
|
1241
1344
|
* /
|
|
1242
|
-
* / ⟨Marker added 2026-08-23; the
|
|
1243
|
-
* / site did not carry the mark. Same `public func` form as its two neighbours above.⟩
|
|
1345
|
+
* / ⟨Marker added 2026-08-23; the interface plan's entry already marked it a read served as an update
|
|
1346
|
+
* / (ecdsa_public_key) and the site did not carry the mark. Same `public func` form as its two neighbours above.⟩
|
|
1244
1347
|
* /
|
|
1245
1348
|
* / ⟨2026-09-28⟩ THE REPLY IS A RECORD, `Types.EvmAddresses` — the payment address (`pay`, what this
|
|
1246
1349
|
* / method returned alone until then) and the address that signs the engram's own registrations
|
|
@@ -1257,7 +1360,7 @@ export interface Engram {
|
|
|
1257
1360
|
* / `#Err`, never a record carrying an empty string (ic402's `getEvmAddress` answers `""` on a
|
|
1258
1361
|
* / failed derivation — that is fail-to-empty on a money surface, and it stops here).
|
|
1259
1362
|
*/
|
|
1260
|
-
getEvmAddress: ActorMethod<[],
|
|
1363
|
+
getEvmAddress: ActorMethod<[], Result_79>;
|
|
1261
1364
|
/**
|
|
1262
1365
|
* / The owner's OWN EVM address, if they registered one — distinct from `getEvmAddress`, which is
|
|
1263
1366
|
* / the address this canister derives for itself.
|
|
@@ -1268,14 +1371,14 @@ export interface Engram {
|
|
|
1268
1371
|
*/
|
|
1269
1372
|
getEvmOwnerAddress: ActorMethod<[], [] | [string]>;
|
|
1270
1373
|
/**
|
|
1271
|
-
* /
|
|
1374
|
+
* / The dedicated-key design ships with this: the address of the DEDICATED signing key. Without it the owner funds the
|
|
1272
1375
|
* / wrong address — the payment key's address is NOT this one, by design.
|
|
1273
1376
|
* /
|
|
1274
|
-
* / ⟨
|
|
1377
|
+
* / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: `eip712PublicKey()` awaits
|
|
1275
1378
|
* / the management canister's `ecdsa_public_key`. A query cannot await, so the round-trip is the
|
|
1276
|
-
* / cost — stated here because
|
|
1379
|
+
* / cost — stated here because the update-for-read rule requires the reason be readable from the interface rather than
|
|
1277
1380
|
* / inferred by opening the body.
|
|
1278
|
-
* / ⟨2026-11-03, the pre-
|
|
1381
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
1279
1382
|
* / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
|
|
1280
1383
|
* / engram is unchanged.
|
|
1281
1384
|
*/
|
|
@@ -1292,41 +1395,41 @@ export interface Engram {
|
|
|
1292
1395
|
/**
|
|
1293
1396
|
* / A guardian's own channel status (their URL is their secret — each guardian sees only theirs).
|
|
1294
1397
|
*/
|
|
1295
|
-
getGuardianAlertStatus: ActorMethod<[],
|
|
1398
|
+
getGuardianAlertStatus: ActorMethod<[], Result_78>;
|
|
1296
1399
|
/**
|
|
1297
1400
|
* / The sealed copy itself — opaque bytes only the sign-in can open. Readable by the sign-in (it
|
|
1298
1401
|
* / opens them with the key `getEncryptedKeyBackupKey` derives for it) and by the key file, which
|
|
1299
1402
|
* / holds the plaintext already and so learns nothing — it reads them to compare with the copy the kit
|
|
1300
|
-
* / made (the
|
|
1403
|
+
* / made (the child build's design check: a copy someone else stored first reads as "not this key", not as
|
|
1301
1404
|
* / "sealed"). Refused in a first engram, and `#NotFound` when no copy is held. The copy that waits
|
|
1302
1405
|
* / with an ask is never served here: it is inert until accepted.
|
|
1303
1406
|
* / A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
|
|
1304
1407
|
* / Named callers: the owner kit (`--recover-key`, and its check after sealing), and an owner console
|
|
1305
1408
|
* / signed in as the sign-in (the browser's recovery).
|
|
1306
1409
|
*/
|
|
1307
|
-
getKeyBackupCiphertext: ActorMethod<[],
|
|
1410
|
+
getKeyBackupCiphertext: ActorMethod<[], Result_77>;
|
|
1308
1411
|
/**
|
|
1309
1412
|
* / Whether this engram holds a sealed copy of its owner's key, for whom, since when, whether it is
|
|
1310
1413
|
* / sealed for the sign-in seated now, and whether a copy waits with an ask (`Types.KeyBackupStatus`).
|
|
1311
1414
|
* / Readable by the key file and the sign-in (`#ownerOrSignIn`); refused loudly to anyone else
|
|
1312
|
-
* / (
|
|
1415
|
+
* / (the refusal-over-fabrication rule). A first engram refuses by name rather than answer "not sealed": it never holds one,
|
|
1313
1416
|
* / and an empty answer there would read as a child whose seal failed.
|
|
1314
1417
|
* / A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
|
|
1315
1418
|
* / Named callers: the owner kit after it opens an engram (it prints whether the copy is stored), and
|
|
1316
1419
|
* / an owner console showing an engram opened through another (whether recovery can work).
|
|
1317
1420
|
*/
|
|
1318
|
-
getKeyBackupStatus: ActorMethod<[],
|
|
1421
|
+
getKeyBackupStatus: ActorMethod<[], Result_76>;
|
|
1319
1422
|
/**
|
|
1320
1423
|
* / BLS verification key under which the owner kit seals the backup (`IbeCiphertext.encrypt` to the
|
|
1321
1424
|
* / sign-in's principal) and the opener verifies the derived key. Served on-canister so the kit never
|
|
1322
|
-
* / has to know which master key this network uses (the
|
|
1425
|
+
* / has to know which master key this network uses (the child build's design: a wrong guess would seal a copy
|
|
1323
1426
|
* / nobody can open). Static per (context, key id, canister) — cacheable.
|
|
1324
1427
|
* /
|
|
1325
1428
|
* / PUBLIC: intentionally unauthenticated — a vetKD public key reveals nothing secret and cannot
|
|
1326
1429
|
* / decrypt anything — the sensitive derivation is getEncryptedKeyBackupKey below, which IS gated
|
|
1327
1430
|
* / (the sign-in alone) and returns key material encrypted to the caller's transport key. The same
|
|
1328
1431
|
* / reasoning as getMemoryKeyVerificationKey, for the backup's own context.
|
|
1329
|
-
* / ⟨
|
|
1432
|
+
* / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
|
|
1330
1433
|
* / `VetKeys.ManagementCanister.vetKdPublicKey`. A query cannot await.
|
|
1331
1434
|
* / Named callers: the owner kit, when it seals the copy at birth or for an ask; an owner console,
|
|
1332
1435
|
* / to verify the derived key during recovery.
|
|
@@ -1364,9 +1467,9 @@ export interface Engram {
|
|
|
1364
1467
|
* / never renumbered: the next page starts at the last version returned plus one. Defaults
|
|
1365
1468
|
* / return the whole history of any file a pre-FD engram could have held.
|
|
1366
1469
|
*/
|
|
1367
|
-
getMemoryHistory: ActorMethod<[string, [] | [bigint], [] | [bigint]],
|
|
1470
|
+
getMemoryHistory: ActorMethod<[string, [] | [bigint], [] | [bigint]], Result_75>;
|
|
1368
1471
|
/**
|
|
1369
|
-
* / PUBLIC: the epoch alone, and deliberately nothing else (rotation
|
|
1472
|
+
* / PUBLIC: the epoch alone, and deliberately nothing else (a public rotation history would tell everyone, the party just cut off included, when an owner ended a trust relationship). A `rotatedAt[]`
|
|
1370
1473
|
* / history would be a public, fleet-enumerable feed of when each owner terminated a trust
|
|
1371
1474
|
* / relationship — readable by, among others, the party just terminated.
|
|
1372
1475
|
*/
|
|
@@ -1379,13 +1482,14 @@ export interface Engram {
|
|
|
1379
1482
|
* / cannot decrypt anything — the sensitive derivation is getEncryptedMemoryKey
|
|
1380
1483
|
* / below, which IS gated (read_memory) and returns key material encrypted to the
|
|
1381
1484
|
* / caller's transport key. Do not add an auth guard here (breaks client caching).
|
|
1382
|
-
* / ⟨
|
|
1485
|
+
* / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
|
|
1383
1486
|
* / `VetKeys.ManagementCanister.vetKdPublicKey`. A query cannot await, so the round trip is the
|
|
1384
1487
|
* / cost of getting a key nobody has to trust us for — which is the point of publishing it.
|
|
1385
1488
|
* /
|
|
1386
|
-
* / ⟨Marker added 2026-08-23; the
|
|
1387
|
-
* / not carry it. Declared `public func` rather than `public shared`,
|
|
1388
|
-
* / in
|
|
1489
|
+
* / ⟨Marker added 2026-08-23; the interface plan's entry already marked it a read served as an update
|
|
1490
|
+
* / (vetKD pubkey call) and the site did not carry it. Declared `public func` rather than `public shared`,
|
|
1491
|
+
* / which is why the naming rule in the update-for-read gate did not see it — the plan's list of reads served as
|
|
1492
|
+
* / updates did.⟩
|
|
1389
1493
|
*/
|
|
1390
1494
|
getMemoryKeyVerificationKey: ActorMethod<[], Uint8Array | number[]>;
|
|
1391
1495
|
/**
|
|
@@ -1413,7 +1517,7 @@ export interface Engram {
|
|
|
1413
1517
|
* / forever" — a claim about what this engram will DESTROY — and an empty guard list reads as
|
|
1414
1518
|
* / "nothing is held back".
|
|
1415
1519
|
*/
|
|
1416
|
-
getMemoryRetentionPolicy: ActorMethod<[],
|
|
1520
|
+
getMemoryRetentionPolicy: ActorMethod<[], Result_74>;
|
|
1417
1521
|
/**
|
|
1418
1522
|
* / The metrics reader this engram answers — `null` until the spawning registry names one.
|
|
1419
1523
|
* /
|
|
@@ -1439,21 +1543,27 @@ export interface Engram {
|
|
|
1439
1543
|
* /
|
|
1440
1544
|
* / `cyclesBalance` is a bare `Nat`, and that retires an argument this repo carried for weeks. It
|
|
1441
1545
|
* / was `nat`, then widened to `opt nat` so a refusal could be `null`, which broke every published
|
|
1442
|
-
* / client (rule 4) and bought a masked answer nobody had asked for — the
|
|
1443
|
-
* / find a consumer that read the masked `0`. Behind a gate there is nobody to mask it from.
|
|
1546
|
+
* / client (rule 4) and bought a masked answer nobody had asked for — the 0.16.0 interface plan could not
|
|
1547
|
+
* / even find a consumer that read the masked `0`. Behind a gate there is nobody to mask it from.
|
|
1444
1548
|
*/
|
|
1445
|
-
getOwnerConsole: ActorMethod<[],
|
|
1549
|
+
getOwnerConsole: ActorMethod<[], Result_73>;
|
|
1446
1550
|
/**
|
|
1447
1551
|
* / The engram's sign-in, as `Types.OwnerSignInView` describes it: whether this engram was opened
|
|
1448
1552
|
* / through another, who its sign-in is, whether the caller is it, and any decline or waiting ask.
|
|
1449
1553
|
* / Readable by the owner's key, the sign-in, and the person a waiting ask goes to (they need to see
|
|
1450
|
-
* / the ask to answer it); refused loudly to anyone else (
|
|
1554
|
+
* / the ask to answer it); refused loudly to anyone else (the refusal-over-fabrication rule) — never an empty view, which would
|
|
1451
1555
|
* / read as "no sign-in". A first engram answers its owner with every field null or false.
|
|
1452
1556
|
* / A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
|
|
1453
1557
|
* / Named callers: an owner console showing an engram opened through another (who signs in, and a
|
|
1454
1558
|
* / waiting ask with Accept and Decline), and the owner kit after it opens one.
|
|
1455
1559
|
*/
|
|
1456
|
-
getOwnerSignIn: ActorMethod<[],
|
|
1560
|
+
getOwnerSignIn: ActorMethod<[], Result_72>;
|
|
1561
|
+
/**
|
|
1562
|
+
* / ⟨2026-11-15⟩ The open offer, to the two parties to it: the owner and the principal it names.
|
|
1563
|
+
* / `null` when none is open or it has expired. Anyone else is refused: an offer names a principal
|
|
1564
|
+
* / who has not agreed to anything yet, so it is not public the way the custody chain is.
|
|
1565
|
+
*/
|
|
1566
|
+
getOwnershipOffer: ActorMethod<[], Result_71>;
|
|
1457
1567
|
/**
|
|
1458
1568
|
* / Read the four profile fields in one bounded batch. Raw per-field results preserve SDK
|
|
1459
1569
|
* / decryption and first-failure ordering; only an explicit NotFound means an unset field.
|
|
@@ -1466,8 +1576,8 @@ export interface Engram {
|
|
|
1466
1576
|
* /
|
|
1467
1577
|
* / A NAMED RECORD, not a Page: the setter replaces this list wholesale, so there is no window to
|
|
1468
1578
|
* / page over and no `total` that could differ from `items.size()`. Forcing the Page shape here
|
|
1469
|
-
* / would be uniformity for its own sake — the
|
|
1470
|
-
* / precisely so
|
|
1579
|
+
* / would be uniformity for its own sake — the 0.16.0 interface plan ratified the whole-value-config
|
|
1580
|
+
* / carve-out precisely so the one page shape does not become a rule applied past its meaning.
|
|
1471
1581
|
* /
|
|
1472
1582
|
* / The trap's `whyNotEmpty` clause is preserved as the `#Refused` reason: `[]` would read as "no
|
|
1473
1583
|
* / path on this engram is protected", and an agent consults this list precisely to avoid
|
|
@@ -1481,10 +1591,10 @@ export interface Engram {
|
|
|
1481
1591
|
* / counts now, and whether the history is full (then "not paid before" may be one it forgot). Read
|
|
1482
1592
|
* / beside the request, because the stored request is never reshaped. For the key file and the sign-in
|
|
1483
1593
|
* / (the owner in a first engram); refused loudly to anyone else. A malformed address is `#Invalid`.
|
|
1484
|
-
* / ⟨2026-11-02, the child build's
|
|
1594
|
+
* / ⟨2026-11-02, the child build's withdrawal-pinning step⟩ Also how many times x402 has paid it and the largest of
|
|
1485
1595
|
* / those payments (`timesPaid`, `largestPaidE6`, six-decimal minor units), so a card can say "paid 3
|
|
1486
1596
|
* / times, largest $12"; the history forgets the address paid longest ago when full.
|
|
1487
|
-
* / ⟨2026-11-03, the pre-
|
|
1597
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ And when it was LAST paid (`lastPaidAtNs`; null when never).
|
|
1488
1598
|
* / Named callers: an owner console's approval card for a payment request.
|
|
1489
1599
|
*/
|
|
1490
1600
|
getRecipientHistory: ActorMethod<[string], Result_68>;
|
|
@@ -1499,10 +1609,11 @@ export interface Engram {
|
|
|
1499
1609
|
* / Owner-only, Billing-class: the signing floor, the balance, one signature's price, and how many
|
|
1500
1610
|
* / payment signatures the balance carries above the floor before `signX402Payment` is refused by
|
|
1501
1611
|
* / name. The same numbers the check uses, so Billing can say only what the engram enforces.
|
|
1502
|
-
* / ⟨2026-11-01,
|
|
1503
|
-
* / freezing setting: there is no floor to serve then, and a 30-day figure would
|
|
1504
|
-
* / (
|
|
1505
|
-
* /
|
|
1612
|
+
* / ⟨2026-11-01, the read-the-setting-first ruling⟩ Refused by name (`#Unavailable`) while this engram
|
|
1613
|
+
* / has not read its own freezing setting: there is no floor to serve then, and a 30-day figure would
|
|
1614
|
+
* / be a made-up one (the refusal-over-fabrication rule) — the signers refuse in that state too, so
|
|
1615
|
+
* / the refusal is the truth on Billing.
|
|
1616
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
1506
1617
|
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
1507
1618
|
*/
|
|
1508
1619
|
getSigningFloor: ActorMethod<[], Result_67>;
|
|
@@ -1518,7 +1629,7 @@ export interface Engram {
|
|
|
1518
1629
|
/**
|
|
1519
1630
|
* / Read the engram-wide daily ceiling and what has been spent against it today, across every
|
|
1520
1631
|
* / caller. ⟨2026-09-28, the owner's decision to add the ceiling⟩
|
|
1521
|
-
* / ⟨CORRECTED 2026-09-29, review finding
|
|
1632
|
+
* / ⟨CORRECTED 2026-09-29, a review finding: "spent" means signed in x402 payments; typed-data
|
|
1522
1633
|
* / and the engram's registration signatures are not counted here — see `setSpendCeiling`.⟩
|
|
1523
1634
|
* / ⟨CORRECTED 2026-11-04, the agent-conversion build, beside the note above⟩ …and, since 2026-11, an
|
|
1524
1635
|
* / agent's conversion of the engram's balance into compute (`agentConvertBalance`, in a first engram too);
|
|
@@ -1529,7 +1640,7 @@ export interface Engram {
|
|
|
1529
1640
|
* / configuration, and the engram-wide total would also tell one agent how much the others spent.
|
|
1530
1641
|
* / A refusal names this method (`Gated.gatedResult`) rather than answering null/0 — a ceiling of
|
|
1531
1642
|
* / "none" and a spend of 0 are both real answers, so a fabricated one would be read as fact.
|
|
1532
|
-
* / ⟨2026-11-03, the pre-
|
|
1643
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
1533
1644
|
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
1534
1645
|
*/
|
|
1535
1646
|
getSpendCeiling: ActorMethod<[], Result_66>;
|
|
@@ -1542,7 +1653,7 @@ export interface Engram {
|
|
|
1542
1653
|
* / configuration, and publishing them would tell any caller exactly how large a signing request
|
|
1543
1654
|
* / can be before it needs an approval nobody is watching for.
|
|
1544
1655
|
* /
|
|
1545
|
-
* / ⟨2026-11-03, the pre-
|
|
1656
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
1546
1657
|
* / an engram opened through another, as the owner, through the combinator's `#ownerOrSignIn` (a first
|
|
1547
1658
|
* / engram is unchanged: the owner only). The inline owner comparison that stood here is gone with it —
|
|
1548
1659
|
* / one fewer unnamed caller guard. Its refusal sentence is kept as the reason it never fails soft:
|
|
@@ -1568,9 +1679,9 @@ export interface Engram {
|
|
|
1568
1679
|
* /
|
|
1569
1680
|
* / The engram sets `setExpiryIdlePollSeconds(0)` in its actor body, and ic402's ServiceRegistry
|
|
1570
1681
|
* / CANCELS the timer outright at 0 rather than re-arming it — so the hourly tick this paragraph
|
|
1571
|
-
* / promised has not existed since that line landed. Independently,
|
|
1572
|
-
* / market: the engram now serves no job method at all, so nothing can arm
|
|
1573
|
-
* / place. `jobExpiryArmed` reads false on an idle engram, and false is CORRECT.
|
|
1682
|
+
* / promised has not existed since that line landed. Independently, job creation moved to the
|
|
1683
|
+
* / market with the rest of commerce: the engram now serves no job method at all, so nothing can arm
|
|
1684
|
+
* / the timer in the first place. `jobExpiryArmed` reads false on an idle engram, and false is CORRECT.
|
|
1574
1685
|
* /
|
|
1575
1686
|
* / EXPECTED FALSE POSITIVE: for up to one interval after any install or upgrade,
|
|
1576
1687
|
* / sessionExpiryArmed reads true with zero sessions. ic402's startTimers arms unconditionally
|
|
@@ -1590,30 +1701,30 @@ export interface Engram {
|
|
|
1590
1701
|
* / PUBLIC: the same standing as the two liveness reads above. Booleans and timestamps about this
|
|
1591
1702
|
* / canister's own timers — nothing about content, callers or money — and a liveness signal only
|
|
1592
1703
|
* / its owner can read cannot tell a third party that the engram is still running.
|
|
1593
|
-
* / ⟨2026-10-28, the owner's ruling
|
|
1704
|
+
* / ⟨2026-10-28, the owner's automatic-pause ruling⟩ The three ic402 flags read FALSE WHILE THE TIMERS ARE PAUSED.
|
|
1594
1705
|
* / The pause's id sweep cancels ic402's sweeps, but ic402 keeps their stale ids, so its own
|
|
1595
1706
|
* / "armed" reads would answer true for a timer that no longer exists (a fabricated answer,
|
|
1596
|
-
* /
|
|
1597
|
-
* / ⟨2026-10-29, the owner's ruling
|
|
1707
|
+
* / the refusal-over-fabrication rule). `alertTimerArmed` needs no guard: the sweep nulls `alertTimerId` itself.
|
|
1708
|
+
* / ⟨2026-10-29, the owner's on-demand alerts ruling, beside the line above⟩ …the sweep zeroes the arm, and an arm
|
|
1598
1709
|
* / past its due time reads stale. `alertTimerArmed` is TRUE ONLY WHILE A DELIVERY IS OWED OR RETRYING
|
|
1599
1710
|
* / (the alert drain is a one-shot armed per owed delivery); alerts configured on a quiet engram read
|
|
1600
1711
|
* / false, and that is correct — the IDLE STEADY STATE line above now holds with a webhook set too.
|
|
1601
1712
|
* / It reads the arm's DUE TIME, not only its id (`ActionAlerts.armLive`): a job that traps before its
|
|
1602
1713
|
* / first await rolls back its own `alertTimerId := null`, so a bare id would read armed forever.
|
|
1603
|
-
* / ONE BOUNDED UNTRUTH (the
|
|
1604
|
-
* / trapped job, the flag reads true although no timer exists.
|
|
1714
|
+
* / ONE BOUNDED UNTRUTH (named by the alert design's adversarial review): for ARM_STALE_NS (120 s)
|
|
1715
|
+
* / after the due time of such a trapped job, the flag reads true although no timer exists.
|
|
1605
1716
|
*/
|
|
1606
1717
|
getTimerHealth: ActorMethod<[], TimerHealth>;
|
|
1607
1718
|
/**
|
|
1608
1719
|
* / PUBLIC: a cap identifies no user, and a caller deserves to know the rule before it stops them.
|
|
1609
1720
|
* /
|
|
1610
|
-
* / ⟨0.16.0,
|
|
1611
|
-
* / the answer here is nothing about anybody — it is a policy ceiling, not a balance
|
|
1612
|
-
* / Publishing it removes the trap AND the envelope: an ungated read has no refusal to carry, so
|
|
1721
|
+
* / ⟨0.16.0, a public method states why it is public⟩ Was owner-gated behind a trap. The disclosure law asks
|
|
1722
|
+
* / what the value reveals, and the answer here is nothing about anybody — it is a policy ceiling, not a balance
|
|
1723
|
+
* / or a history. Publishing it removes the trap AND the envelope: an ungated read has no refusal to carry, so
|
|
1613
1724
|
* / wrapping it in `Result` would be ceremony that implies a gate exists.
|
|
1614
1725
|
* /
|
|
1615
1726
|
* / Predictability is itself the honesty posture: a limit that only reveals itself by refusing a
|
|
1616
|
-
* / top-up teaches the caller by failure. `/// PUBLIC:` is the marker the
|
|
1727
|
+
* / top-up teaches the caller by failure. `/// PUBLIC:` is the marker the public-reason gate greps for.
|
|
1617
1728
|
*/
|
|
1618
1729
|
getTopUpLimits: ActorMethod<[], { cooldownSeconds: bigint; maxCkusdcE6s: bigint }>;
|
|
1619
1730
|
/**
|
|
@@ -1624,18 +1735,19 @@ export interface Engram {
|
|
|
1624
1735
|
* / the other, is a call site waiting to be written wrong — and wrong in the direction that
|
|
1625
1736
|
* / silently reads cycles when it meant to read money. Doc callers (CLI-REFERENCE, Docs.vue) sweep
|
|
1626
1737
|
* / to the survivor.
|
|
1627
|
-
* / RENAMED from `walletBalances` (
|
|
1738
|
+
* / RENAMED from `walletBalances` (a `get*` for a single value).
|
|
1628
1739
|
* /
|
|
1629
|
-
* / Stays an UPDATE, marked
|
|
1630
|
-
* / the declaration does — a caller budgeting round-trips needs to know this is
|
|
1740
|
+
* / Stays an UPDATE, marked as a read served as an update: it awaits three ICRC-1 ledgers. The name
|
|
1741
|
+
* / cannot say that, so the declaration does — a caller budgeting round-trips needs to know this is
|
|
1742
|
+
* / not a query.
|
|
1631
1743
|
* /
|
|
1632
1744
|
* / The ledger failure is `#Unavailable`, not `#Invalid`: a dependency refused or timed out, the
|
|
1633
1745
|
* / request was fine, and retry is the correct response. That is the one arm in the whole set that
|
|
1634
1746
|
* / means "try again", and it is the reason `Error` is a closed variant rather than a sentence.
|
|
1635
1747
|
* /
|
|
1636
|
-
* / ⟨
|
|
1637
|
-
* / UPDATE, marked
|
|
1638
|
-
* / to any gate; the glyph is what
|
|
1748
|
+
* / ⟨update-for-read⟩ MARKER ADDED 2026-08-23, reasoning above UNCHANGED — this block already said "Stays an
|
|
1749
|
+
* / UPDATE, marked as a read served as an update: it awaits three ICRC-1 ledgers". It was marked in
|
|
1750
|
+
* / prose and invisible to any gate; the glyph is what the update-for-read gate matches.
|
|
1639
1751
|
*/
|
|
1640
1752
|
getWalletBalances: ActorMethod<[], Result_63>;
|
|
1641
1753
|
/**
|
|
@@ -1644,7 +1756,7 @@ export interface Engram {
|
|
|
1644
1756
|
* / the unit, while getWalletBalances retains the distinct full token-wallet operation.
|
|
1645
1757
|
* / A token-ledger outage cannot prevent this local fuel read; it uses the same operation as
|
|
1646
1758
|
* / remote engram_wallet_balance and never sends an outgoing call.
|
|
1647
|
-
* / ⟨
|
|
1759
|
+
* / ⟨update-for-read⟩ UPDATE despite having no await: preserve the existing wallet facade's per-agent quota
|
|
1648
1760
|
* / charge and lastSeenNs update, including when wallet permission is subsequently refused.
|
|
1649
1761
|
* / A query would discard those writes and silently loosen the agent's existing rate limit.
|
|
1650
1762
|
*/
|
|
@@ -1657,7 +1769,7 @@ export interface Engram {
|
|
|
1657
1769
|
*/
|
|
1658
1770
|
getWorldIdConfig: ActorMethod<[], Result_62>;
|
|
1659
1771
|
/**
|
|
1660
|
-
* / ⟨
|
|
1772
|
+
* / ⟨update-for-read⟩ UPDATE, NOT QUERY: this awaits THREE system calls — `raw_rand()` for the nonce,
|
|
1661
1773
|
* / `Call.signWithEcdsa` for the signature, and `worldIdRpPublicKey()` for the derived key. A
|
|
1662
1774
|
* / query can do none of them.
|
|
1663
1775
|
* /
|
|
@@ -1673,11 +1785,11 @@ export interface Engram {
|
|
|
1673
1785
|
* / Portal — the engram never holds or exports a private key (only threshold shares exist, on the
|
|
1674
1786
|
* / subnet). Distinct from the payment/EVM address by construction.
|
|
1675
1787
|
* /
|
|
1676
|
-
* / ⟨
|
|
1788
|
+
* / ⟨update-for-read⟩ UPDATE, NOT QUERY, for TWO reasons and the second is the one a reader would miss. It
|
|
1677
1789
|
* / awaits `worldIdRpPublicKey()` (management `ecdsa_public_key`), and it calls `denied()` on
|
|
1678
1790
|
* / refusal — a state write, which a query cannot perform. So even if the key were cached this
|
|
1679
|
-
* / could not become a query without silently retiring its denial record (
|
|
1680
|
-
* / ⟨2026-11-03, the pre-
|
|
1791
|
+
* / could not become a query without silently retiring its denial record (the refusal-over-fabrication class).
|
|
1792
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
1681
1793
|
* / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
|
|
1682
1794
|
* / engram is unchanged.
|
|
1683
1795
|
*/
|
|
@@ -1697,17 +1809,17 @@ export interface Engram {
|
|
|
1697
1809
|
* / nothing.
|
|
1698
1810
|
* /
|
|
1699
1811
|
* / ⟨CORRECTED 2026-08-21 — this said `metrics().verifiedHuman`, and `metrics()` no longer exists:
|
|
1700
|
-
* /
|
|
1812
|
+
* / The same-concept-same-name law folded it and `status()` into `about()`, which carries the field. The sentence is a
|
|
1701
1813
|
* / `///`, so the dead name was PUBLISHED in engram.did and pointed every client at a method the
|
|
1702
1814
|
* / canister does not serve. The tombstones below and at `about()` are historical and correct as
|
|
1703
1815
|
* / written; this one was present tense, which is the difference that matters.⟩
|
|
1704
1816
|
*/
|
|
1705
1817
|
getWorldIdVerification: ActorMethod<[], Result_60>;
|
|
1706
1818
|
/**
|
|
1707
|
-
* / ⟨0.16.0,
|
|
1708
|
-
* / absence of a `#Conflict` here is the point: these are the calls someone
|
|
1709
|
-
* / is going wrong, and the only two answers that help are "you may not do this"
|
|
1710
|
-
* / nothing by that name". A missing PERMISSION is `#Refused` rather than `#Conflict` — the
|
|
1819
|
+
* / ⟨0.16.0, refusals are values, never traps⟩ THE EMERGENCY FAMILY. Every refusal below is `#Refused`
|
|
1820
|
+
* / or `#NotFound`, and the absence of a `#Conflict` here is the point: these are the calls someone
|
|
1821
|
+
* / makes while something is going wrong, and the only two answers that help are "you may not do this"
|
|
1822
|
+
* / and "there is nothing by that name". A missing PERMISSION is `#Refused` rather than `#Conflict` — the
|
|
1711
1823
|
* / guardian's standing is what fell short, and no change to engram state would let them through.
|
|
1712
1824
|
*/
|
|
1713
1825
|
guardianRevokeAgent: ActorMethod<[Principal], Result_2>;
|
|
@@ -1734,7 +1846,7 @@ export interface Engram {
|
|
|
1734
1846
|
http_request_update: ActorMethod<[HttpRequest], HttpResponse>;
|
|
1735
1847
|
/**
|
|
1736
1848
|
* / ⟨0.16.0⟩ `isPaidMemoryReadEnabled()` DELETED — folded to `about().paidMemoryReadEnabled`
|
|
1737
|
-
* / (
|
|
1849
|
+
* / (one idiom for a boolean feature — a setter plus the flag on its family's projection).
|
|
1738
1850
|
* / Its callers are a buyer's pre-check and the market canister, both ANONYMOUS, so the public
|
|
1739
1851
|
* / projection is exactly where it belongs.
|
|
1740
1852
|
* / PUBLIC: a wallet calls this BEFORE its user has any standing on this engram — that is what the
|
|
@@ -1785,7 +1897,7 @@ export interface Engram {
|
|
|
1785
1897
|
* /
|
|
1786
1898
|
* / Owner-gated because it reports on custody posture, and answered as a Result so that a
|
|
1787
1899
|
* / wrong-identity caller gets a refusal rather than a bare `false` that reads as "no address yet".
|
|
1788
|
-
* / ⟨2026-11-03, the pre-
|
|
1900
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
1789
1901
|
* / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
|
|
1790
1902
|
* / engram is unchanged.
|
|
1791
1903
|
*/
|
|
@@ -1807,8 +1919,8 @@ export interface Engram {
|
|
|
1807
1919
|
* / Hourly (timestamp, totalMemoryReads, totalMemoryWrites) snapshots, ~30 days.
|
|
1808
1920
|
* / Same guard + fail-to-empty shape as getCycleHistory. Diff consecutive rows for a
|
|
1809
1921
|
* / per-engram activity time-series (retention instrumentation).
|
|
1810
|
-
* / RENAMED from `getActivityHistory` (
|
|
1811
|
-
* / were positionally indistinguishable.
|
|
1922
|
+
* / RENAMED from `getActivityHistory` (a `get*` returns one value, a `list*` a page); named fields replace a
|
|
1923
|
+
* / bare 3-tuple whose two Nats were positionally indistinguishable.
|
|
1812
1924
|
* /
|
|
1813
1925
|
* / Refusal reason preserved, and it is the sharpest of this family: a masked `[]` reads as a
|
|
1814
1926
|
* / DORMANT engram and corrupts retention math — a fabricated empty here does not just misinform a
|
|
@@ -1826,8 +1938,8 @@ export interface Engram {
|
|
|
1826
1938
|
*/
|
|
1827
1939
|
listAgentRoster: ActorMethod<[bigint, bigint], Result_56>;
|
|
1828
1940
|
/**
|
|
1829
|
-
* / ⟨2026-10-21,
|
|
1830
|
-
* /
|
|
1941
|
+
* / ⟨2026-10-21, the owner approved every item of the mobile design's eleventh round of changes, this
|
|
1942
|
+
* / one included⟩ OWNER-ONLY: what each agent has spent today, beside the daily limit in force for it, so the
|
|
1831
1943
|
* / agent rows can say "$0.50 of $5.00 today" where they said a count of payments. Read from the
|
|
1832
1944
|
* / state the payment path already keeps — `outboundSpendToday`, through `SpendCeiling.callerSpentOn`
|
|
1833
1945
|
* / (the reader `x402SignFor` uses) — and the limits from `gate.getPolicy(<the agent's key>)`, the
|
|
@@ -1842,12 +1954,13 @@ export interface Engram {
|
|
|
1842
1954
|
* / because the payment path keeps no figure then (`SpendCeiling.AgentSpendRow` says why).
|
|
1843
1955
|
* / WHAT WOULD MAKE THIS WRONG: `x402SignFor` keeping the per-caller total by something other than
|
|
1844
1956
|
* / the calling key, or under another day boundary.
|
|
1845
|
-
* / ⟨2026-11-03, the pre-
|
|
1957
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
1846
1958
|
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
1847
1959
|
*/
|
|
1848
1960
|
listAgentSpendToday: ActorMethod<[bigint, bigint], Result_55>;
|
|
1849
1961
|
/**
|
|
1850
|
-
* / ⟨0.16.0⟩ THE PAGE EXEMPLAR. Trap → `#Refused`, bare array → `Result<Page<T>>` (
|
|
1962
|
+
* / ⟨0.16.0⟩ THE PAGE EXEMPLAR. Trap → `#Refused`, bare array → `Result<Page<T>>` (refusals are values; a
|
|
1963
|
+
* / list answers the one page shape).
|
|
1851
1964
|
* /
|
|
1852
1965
|
* / The refusal prose that used to be `gatedTrap`'s `whyNotEmpty` argument is not lost — it is why
|
|
1853
1966
|
* / this method could never fail soft, and it now travels ON THE WIRE inside `#Refused` where a
|
|
@@ -1860,19 +1973,19 @@ export interface Engram {
|
|
|
1860
1973
|
* / behaviour (silently truncate, look complete) is unrepresentable.
|
|
1861
1974
|
* /
|
|
1862
1975
|
* / `withheld` is 0: this roster is owner-only in whole, so there is no partial-visibility case.
|
|
1863
|
-
* / A method that filters rows by caller sets it —
|
|
1864
|
-
* / ⟨2026-11-03, the pre-
|
|
1976
|
+
* / A method that filters rows by caller sets it — the row-level honesty rule.
|
|
1977
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
1865
1978
|
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
1866
1979
|
*/
|
|
1867
1980
|
listAgents: ActorMethod<[bigint, bigint], Result_54>;
|
|
1868
1981
|
/**
|
|
1869
1982
|
* / The GUARDIAN-audience projection of the agent roster — three fields, not the full record.
|
|
1870
1983
|
* /
|
|
1871
|
-
* / Two audiences, two methods (
|
|
1872
|
-
* / guardian needs enough to revoke (who, what they are called,
|
|
1873
|
-
* / more. Field-masking would make the same call return different
|
|
1874
|
-
* / which is the design
|
|
1875
|
-
* / inside a build closure where no gate can read it.
|
|
1984
|
+
* / Two audiences, two methods (one result shape per method; the disclosure law), rather than one
|
|
1985
|
+
* / method masking fields by caller: a guardian needs enough to revoke (who, what they are called,
|
|
1986
|
+
* / whether they are active) and no more. Field-masking would make the same call return different
|
|
1987
|
+
* / shapes to different callers, which is the design the one-result-shape law abolished — and it would
|
|
1988
|
+
* / put the decision about what a guardian may see inside a build closure where no gate can read it.
|
|
1876
1989
|
* /
|
|
1877
1990
|
* / Refusal reason preserved: `[]` reads as "this engram has no agents", and this is the list a
|
|
1878
1991
|
* / guardian consults BEFORE REVOKING ONE. A fabricated empty here does not merely misinform —
|
|
@@ -1882,9 +1995,9 @@ export interface Engram {
|
|
|
1882
1995
|
/**
|
|
1883
1996
|
* / Owner-only: rows carry caller, amount, operation and free-text rationale. The SDK omits it.
|
|
1884
1997
|
* /
|
|
1885
|
-
* / The optional leading filter SURVIVES the
|
|
1886
|
-
* / assumed, because Billing.vue calls the filtered
|
|
1887
|
-
* / would make the console fetch a queue to discard most of it.
|
|
1998
|
+
* / The optional leading filter SURVIVES the page-shape reshape — ratified in the 0.16.0 interface plan (a
|
|
1999
|
+
* / list may take an optional leading filter) rather than assumed, because Billing.vue calls the filtered
|
|
2000
|
+
* / form live and pushing the filter client-side would make the console fetch a queue to discard most of it.
|
|
1888
2001
|
* /
|
|
1889
2002
|
* / `total` counts the FILTERED set, not the whole queue: with a filter applied, "how many match"
|
|
1890
2003
|
* / is the number a pager needs, and reporting the unfiltered count would make every filtered view
|
|
@@ -1906,15 +2019,15 @@ export interface Engram {
|
|
|
1906
2019
|
* / Refusal reason preserved: for an unauthenticated integrity check the caller wants
|
|
1907
2020
|
* / `getCertifiedAuditHead()`, which is public and subnet-certified. The BODIES are role-gated.
|
|
1908
2021
|
* /
|
|
1909
|
-
* / ⟨2026-09-29, owner ruling
|
|
1910
|
-
* / owner and guardians read everything (`RecordView`). So `limit` is
|
|
1911
|
-
* / to examine from `start` — and an agent's page holds the entries in
|
|
1912
|
-
* / its own key, with `withheld` counting the rest: `items.size() +
|
|
1913
|
-
* / For the owner and a guardian `withheld` is 0 and the page is the
|
|
1914
|
-
* / WRONG: a reader who must see the whole record without being the owner
|
|
1915
|
-
* / public certified head is the answer for integrity, and nothing else is.
|
|
2022
|
+
* / ⟨2026-09-29, the owner's ruling that an agent reads only the entries it caused⟩ AN AGENT READS
|
|
2023
|
+
* / ONLY THE ENTRIES IT CAUSED; the owner and guardians read everything (`RecordView`). So `limit` is
|
|
2024
|
+
* / a SPAN — how many record ids to examine from `start` — and an agent's page holds the entries in
|
|
2025
|
+
* / that span whose caller is its own key, with `withheld` counting the rest: `items.size() +
|
|
2026
|
+
* / withheld` is the span examined. For the owner and a guardian `withheld` is 0 and the page is the
|
|
2027
|
+
* / span. WHAT WOULD MAKE THIS WRONG: a reader who must see the whole record without being the owner
|
|
2028
|
+
* / or a guardian — the public certified head is the answer for integrity, and nothing else is.
|
|
1916
2029
|
* /
|
|
1917
|
-
* / ⟨2026-10-15, the owner's ruling
|
|
2030
|
+
* / ⟨2026-10-15, the owner's chained-record ruling of 2026-10-14⟩ PUBLIC NOW, AND THE COUNT BECAME ROWS. The
|
|
1918
2031
|
* / reply is a `Wire.RecordPage`: every entry in the span the reader may not see in full comes back
|
|
1919
2032
|
* / as a hash-only row in `sealed` (id, SHA-256 of its body, entry hash) instead of being counted in
|
|
1920
2033
|
* / `withheld`, so `items.size() + sealed.size()` is the span examined. Each entry is hashed first,
|
|
@@ -1930,27 +2043,29 @@ export interface Engram {
|
|
|
1930
2043
|
*/
|
|
1931
2044
|
listAuditEntries: ActorMethod<[bigint, bigint], Result_52>;
|
|
1932
2045
|
/**
|
|
1933
|
-
* / ⟨0.16.0,
|
|
2046
|
+
* / ⟨0.16.0, refusals are values; the one page shape — ruled in the 0.16.0 interface plan⟩ THE
|
|
2047
|
+
* / TWO-MECHANISM EXCEPTION DISSOLVES.
|
|
1934
2048
|
* /
|
|
1935
2049
|
* / This method used to answer THREE ways to one question: a list, an `#Err` text, and a trap,
|
|
1936
2050
|
* / picked by which kind of caller asked. That split existed only because the return type could
|
|
1937
2051
|
* / not carry a refusal — with `Result<Page<T>>` it can, so every caller gets one shape and the
|
|
1938
2052
|
* / arm says which no it is. A paired agent lacking `canReadBackup` is `#Refused`; so is
|
|
1939
2053
|
* / everyone else who may not ask. The trap is gone: `Debug.trap` is for invariant violations,
|
|
1940
|
-
* / never authorization (
|
|
2054
|
+
* / never authorization (refusals are values, never traps), and a refusal a caller cannot catch is not
|
|
2055
|
+
* / a better refusal.
|
|
1941
2056
|
* /
|
|
1942
2057
|
* / ⚠ THE RATIFIED LOCKSTEP EXCEPTION THIS CARRIED IS SUPERSEDED, not quietly dropped.
|
|
1943
|
-
* / `
|
|
2058
|
+
* / The recorded lockstep exception for `listBackups` existed because published
|
|
1944
2059
|
* / @engramx/client 0.15.0 declares `IDL.Vec(BackupMetadata)` here and cannot decode a variant at
|
|
1945
2060
|
* / all — it throws — and @engramx/openclaw's dedup probe catches that throw and degrades to
|
|
1946
2061
|
* / "skipped", so every database silently stops being backed up while the CLI reports success.
|
|
1947
|
-
* / That analysis was correct and is still correct. What changed is its PREMISE: plan
|
|
2062
|
+
* / That analysis was correct and is still correct. What changed is its PREMISE: the redesign plan measured
|
|
1948
2063
|
* / the installed base at zero external users (prod = two engrams, both ours; npm published
|
|
1949
2064
|
* / 2026-08-14), so the population the ceremony protected does not exist. The SDK is republished
|
|
1950
2065
|
* / at 0.16.0 in this same campaign. If an outside caller ever appears before that ships,
|
|
1951
2066
|
* / this reasoning is void and the lockstep is owed again.
|
|
1952
2067
|
* /
|
|
1953
|
-
* / `dbTypeFilter` DIES on the wire (
|
|
2068
|
+
* / `dbTypeFilter` DIES on the wire (the 0.16.0 interface plan). The capability does not: `EngramClient.listBackups`
|
|
1954
2069
|
* / keeps its optional filter and applies it to the page, so no caller loses the ability to ask
|
|
1955
2070
|
* / "backups of this database" — it stops being a thing the canister has to page around.
|
|
1956
2071
|
*/
|
|
@@ -1965,7 +2080,7 @@ export interface Engram {
|
|
|
1965
2080
|
* / `bearerTokenStore.list()` already resolves each token's status at read time (a token that
|
|
1966
2081
|
* / merely stopped being used is reported `#Expired`, not a stale `#Active`), so the page carries
|
|
1967
2082
|
* / the same honesty the store gained on 2026-08-17.
|
|
1968
|
-
* / ⟨2026-11-03, the pre-
|
|
2083
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
1969
2084
|
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
1970
2085
|
*/
|
|
1971
2086
|
listBearerTokens: ActorMethod<[bigint, bigint], Result_50>;
|
|
@@ -1984,7 +2099,7 @@ export interface Engram {
|
|
|
1984
2099
|
/**
|
|
1985
2100
|
* / ⟨0.16.0⟩ `metrics()` DELETED — absorbed by `about()`.
|
|
1986
2101
|
* /
|
|
1987
|
-
* / Two public projections of one canister (
|
|
2102
|
+
* / Two public projections of one canister (one concept, one name): `metrics()` and `status()` both answered "what
|
|
1988
2103
|
* / is this engram like" and disagreed on which counters they carried, so a consumer had to fetch
|
|
1989
2104
|
* / both and know which one owned each field. Every field here survives on `about()`, day-flooring
|
|
1990
2105
|
* / included.
|
|
@@ -1997,7 +2112,8 @@ export interface Engram {
|
|
|
1997
2112
|
*/
|
|
1998
2113
|
listDeletedMemoryFiles: ActorMethod<[bigint, bigint], Result_47>;
|
|
1999
2114
|
/**
|
|
2000
|
-
* / Stays on the engram under
|
|
2115
|
+
* / Stays on the engram under the 0.16.0 split (commerce to the market, signing here): withdrawal
|
|
2116
|
+
* / custody does not leave.
|
|
2001
2117
|
* /
|
|
2002
2118
|
* / NAMED item, not a `(Text, Int)` tuple. The Int is an activation time, and a bare Int beside a
|
|
2003
2119
|
* / bare Text told a reader nothing about which was which — the same defect fixed on the purge log.
|
|
@@ -2006,31 +2122,32 @@ export interface Engram {
|
|
|
2006
2122
|
* / engram may withdraw nowhere", OR — worse — as "no allowlist is in force", which is the
|
|
2007
2123
|
* / opposite security posture. It also erases any pending 24h activation from view.
|
|
2008
2124
|
* /
|
|
2009
|
-
* / ⟨2026-10-14,
|
|
2125
|
+
* / ⟨2026-10-14, the destination-list ruling⟩ One action's list: `typeId` names the action, and an unregistered one is
|
|
2010
2126
|
* / `#NotFound` rather than an empty page (an empty page means "this action may sign to nothing").
|
|
2011
2127
|
* / The item's field is `value`, not `address`: a list may hold a venue value that is no address.
|
|
2012
2128
|
* / Readable by the owner, an active agent or an active guardian, as the old list was.
|
|
2013
2129
|
*/
|
|
2014
2130
|
listEip712Destinations: ActorMethod<[Uint8Array | number[], bigint, bigint], Result_46>;
|
|
2015
2131
|
/**
|
|
2016
|
-
* / The registered shapes —
|
|
2017
|
-
* / Stays on the engram under
|
|
2132
|
+
* / The registered shapes — encodeTypeString is the display artifact, verbatim.
|
|
2133
|
+
* / Stays on the engram under the 0.16.0 split (commerce to the market, signing here): EIP-712 signing is
|
|
2134
|
+
* / custody, and custody does not leave.
|
|
2018
2135
|
* /
|
|
2019
2136
|
* / Refusal reason preserved: `[]` reads as "this engram can sign nothing" — a claim about SIGNING
|
|
2020
2137
|
* / AUTHORITY, which is not a thing to hand an unauthorized reader. The public trail of every
|
|
2021
2138
|
* / registration remains the audit chain under getCertifiedAuditHead.
|
|
2022
2139
|
* /
|
|
2023
|
-
* / ⟨2026-10-14, the owner's ruling
|
|
2140
|
+
* / ⟨2026-10-14, the owner's registration-bar ruling⟩ Each row carries its per-field rules (`fieldRules`), joined in
|
|
2024
2141
|
* / from `eip712FieldRules` — they are part of what the type authorises, so a reader of the list must
|
|
2025
2142
|
* / not have to make a second call to learn them. The row type is `Eip712TypeView`.
|
|
2026
2143
|
*/
|
|
2027
2144
|
listEip712Types: ActorMethod<[bigint, bigint], Result_45>;
|
|
2028
2145
|
/**
|
|
2029
|
-
* / ⟨2026-10-21,
|
|
2030
|
-
* / `listRepudiations` and `listRecordNotes`: the owner and ACTIVE guardians
|
|
2031
|
-
* / agent gets an empty page whose `withheld` counts them (
|
|
2032
|
-
* /
|
|
2033
|
-
* / refused.
|
|
2146
|
+
* / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ Guardians' disputes, oldest
|
|
2147
|
+
* / first. Same visibility as `listRepudiations` and `listRecordNotes`: the owner and ACTIVE guardians
|
|
2148
|
+
* / read the rows; an agent gets an empty page whose `withheld` counts them (the 2026-09-29 ruling
|
|
2149
|
+
* / that an agent reads only the entries it caused holds — a dispute is the guardian's entry, not the
|
|
2150
|
+
* / agent's); a stranger, a pending guardian and the anonymous caller are refused.
|
|
2034
2151
|
*/
|
|
2035
2152
|
listGuardianDisputes: ActorMethod<[bigint, bigint], Result_44>;
|
|
2036
2153
|
/**
|
|
@@ -2045,23 +2162,25 @@ export interface Engram {
|
|
|
2045
2162
|
/**
|
|
2046
2163
|
* / The export receipts in the retained log at or above `startSeq`, oldest first.
|
|
2047
2164
|
* /
|
|
2048
|
-
* / ⟨0.16.0,
|
|
2165
|
+
* / ⟨0.16.0, the one page shape⟩ ONE LIST, ONE QUESTION. This method used to return receipts AND checkpoints
|
|
2049
2166
|
* / together behind a backward `before`/`max` cursor. They answer different questions — what may be
|
|
2050
2167
|
* / condensed, and what already was — so a caller wanting one paid to decode the other, and the
|
|
2051
2168
|
* / merged shape had to carry two arrays, a truncation flag and an opaque cursor to stay honest
|
|
2052
2169
|
* / about a walk that served both. `listCondenseCheckpoints` is the other half.
|
|
2053
2170
|
* /
|
|
2054
|
-
* / The cursor dies with it (
|
|
2055
|
-
* / at `scannedThroughSeq + 1` and is finished when that passes
|
|
2056
|
-
* / gone because it has nothing left to say — "I stopped at entry N"
|
|
2057
|
-
* / says it as a position rather than a flag a reader has to pair with
|
|
2171
|
+
* / The cursor dies with it (the 0.16.0 plan unifies the paging idioms): paging is by ABSOLUTE SEQ
|
|
2172
|
+
* / now, forward, so a caller resumes at `scannedThroughSeq + 1` and is finished when that passes
|
|
2173
|
+
* / `page.total`. `scanTruncated` is gone because it has nothing left to say — "I stopped at entry N"
|
|
2174
|
+
* / is the same claim it made, and says it as a position rather than a flag a reader has to pair with
|
|
2175
|
+
* / a second field.
|
|
2058
2176
|
* /
|
|
2059
2177
|
* / Read `MemoryRouter.ReceiptPage` before reading `page.total` as a receipt count. It is not one;
|
|
2060
2178
|
* / it is the chain's length, and the declaration says why.
|
|
2061
2179
|
*/
|
|
2062
2180
|
listMemoryExportReceipts: ActorMethod<[bigint, bigint], Result_42>;
|
|
2063
2181
|
/**
|
|
2064
|
-
* / ⟨0.16.0⟩ THE `withheld` EXEMPLAR —
|
|
2182
|
+
* / ⟨0.16.0⟩ THE `withheld` EXEMPLAR — the 0.16.0 interface law on refusals names this exact method as
|
|
2183
|
+
* / the defect it fixes.
|
|
2065
2184
|
* /
|
|
2066
2185
|
* / A non-owner's answer silently dropped every `config/` and `secrets/` row. Not "refused the
|
|
2067
2186
|
* / call" and not "returned a marker" — the rows simply were not there, with nothing in band
|
|
@@ -2077,11 +2196,11 @@ export interface Engram {
|
|
|
2077
2196
|
* / by POLICY, never rows merely off the end of this page — those are `total`'s job. Conflating
|
|
2078
2197
|
* / the two would rebuild the ambiguity in a new place.
|
|
2079
2198
|
* /
|
|
2080
|
-
* / ⟨2026-10-21, the owner's
|
|
2199
|
+
* / ⟨2026-10-21, the owner's approval of the mobile design's changes: an author on every file row⟩ Each row also
|
|
2081
2200
|
* / carries `lastModifiedBy` (`Types.MemoryFileRow`): the key that wrote the file's current
|
|
2082
2201
|
* / version, so a phone's file list can say "changed 2 h ago by Recorder" without a read per
|
|
2083
2202
|
* / file. It is what `readMemory` already serves to the same callers under the same gate, so it
|
|
2084
|
-
* / tells no caller anything it could not read. Born `opt` (
|
|
2203
|
+
* / tells no caller anything it could not read. Born `opt` (a field added to a response record is `opt`). Looked up only for
|
|
2085
2204
|
* / the rows of THIS page (`MemoryRouter.info`), after the slice, so the cost is one lookup per
|
|
2086
2205
|
* / row served, never one per file stored. A WIDENED REPLY: a reader that decodes the row by
|
|
2087
2206
|
* / position rather than by field name breaks — none in this repository does.
|
|
@@ -2095,14 +2214,14 @@ export interface Engram {
|
|
|
2095
2214
|
* / that, never by "last entry returned + 1", which stalls forever on the first empty page. Stop
|
|
2096
2215
|
* / when the window passes `total`.
|
|
2097
2216
|
* /
|
|
2098
|
-
* / ⟨0.16.0,
|
|
2099
|
-
* / "authorFilter dropped (kills the filtered-window
|
|
2100
|
-
* / diagnosis is right; amputating the filter is not the
|
|
2101
|
-
* / `Archive.vue` ships a working author-filter UI, and "what
|
|
2102
|
-
* / question an owner asks of an evidence log. The filter STAYS. What kills
|
|
2103
|
-
* / `withheld`: it carries the count this filter removed from the window, so a
|
|
2104
|
-
* / filtered page is no longer ambiguous between "nobody wrote here" and "the window
|
|
2105
|
-
* / and the correct cursor advance is computable from the page itself. `pageCap` therefore dies
|
|
2217
|
+
* / ⟨0.16.0, the one page shape — A CONFLICT WITH THE INTERFACE PLAN, RECORDED⟩ The plan's entry for
|
|
2218
|
+
* / this method says `→R<P<MemoryLogEvent>>` and "authorFilter dropped (kills the filtered-window
|
|
2219
|
+
* / cursor stall)". The stall is real and the diagnosis is right; amputating the filter is not the
|
|
2220
|
+
* / only cure, and it is the expensive one — `Archive.vue` ships a working author-filter UI, and "what
|
|
2221
|
+
* / did this agent write" is a question an owner asks of an evidence log. The filter STAYS. What kills
|
|
2222
|
+
* / the stall instead is `withheld`: it carries the count this filter removed from the window, so a
|
|
2223
|
+
* / short or empty filtered page is no longer ambiguous between "nobody wrote here" and "the window
|
|
2224
|
+
* / was small", and the correct cursor advance is computable from the page itself. `pageCap` therefore dies
|
|
2106
2225
|
* / with nothing lost — it existed only to disclose a window that `items.size() + withheld` now
|
|
2107
2226
|
* / states directly.
|
|
2108
2227
|
* /
|
|
@@ -2110,12 +2229,12 @@ export interface Engram {
|
|
|
2110
2229
|
* / chain, not this slice: the condense floor tells a caller reading an archived range where the
|
|
2111
2230
|
* / log now begins instead of letting them read it as empty, and the head is what a third party
|
|
2112
2231
|
* / checks the page against. Flattening to a bare `Page` to satisfy the shape would buy uniformity
|
|
2113
|
-
* / with the disclosures that make the page verifiable — the hidden-bound defect the
|
|
2114
|
-
* / names on previewCondense's
|
|
2232
|
+
* / with the disclosures that make the page verifiable — the hidden-bound defect the interface plan
|
|
2233
|
+
* / itself names on previewCondense's entry.
|
|
2115
2234
|
*/
|
|
2116
2235
|
listMemoryLog: ActorMethod<[bigint, bigint, [] | [Principal]], Result_40>;
|
|
2117
2236
|
/**
|
|
2118
|
-
* / The caller's OWN spend-approval requests. ⟨0.16.0,
|
|
2237
|
+
* / The caller's OWN spend-approval requests. ⟨0.16.0, refusals are values; the one page shape — fixed 2026-08-18⟩
|
|
2119
2238
|
* /
|
|
2120
2239
|
* / Two defects in seven lines, and the first is the one this release exists to remove:
|
|
2121
2240
|
* /
|
|
@@ -2146,7 +2265,7 @@ export interface Engram {
|
|
|
2146
2265
|
listMySessions: ActorMethod<[bigint, bigint], Result_38>;
|
|
2147
2266
|
/**
|
|
2148
2267
|
* /
|
|
2149
|
-
* / ⟨0.16.0,
|
|
2268
|
+
* / ⟨0.16.0, the one page shape⟩ Paged and enveloped like every other `list*`, and the envelope here is uniformity
|
|
2150
2269
|
* / rather than gating: this method cannot refuse anybody, so `#Err` is unreachable on it. That is
|
|
2151
2270
|
* / deliberate — the off-chain verifier that reads this chain reads several other lists beside it,
|
|
2152
2271
|
* / and one shape for all of them is worth more than saving a variant tag on the one that is
|
|
@@ -2160,7 +2279,7 @@ export interface Engram {
|
|
|
2160
2279
|
*/
|
|
2161
2280
|
listOwnershipTransfers: ActorMethod<[bigint, bigint], Result_37>;
|
|
2162
2281
|
/**
|
|
2163
|
-
* / ⟨2026-09-29,
|
|
2282
|
+
* / ⟨2026-09-29, a question from the build review⟩ OWNER-ONLY: how many payment
|
|
2164
2283
|
* / signatures each agent has obtained today, and the daily limit (200, `PaymentSignCap`). The
|
|
2165
2284
|
* / owner's console stated the rule and showed no number, because nothing served one; a number it
|
|
2166
2285
|
* / made up would be a fabricated zero. Anyone else is refused by name (`#Refused
|
|
@@ -2171,11 +2290,11 @@ export interface Engram {
|
|
|
2171
2290
|
* / MAKE THIS WRONG: a count kept by something other than the agent's root (`PaymentSignCap.rowFor`
|
|
2172
2291
|
* / says so beside it).
|
|
2173
2292
|
* /
|
|
2174
|
-
* / ⟨2026-09-30, following the owner's
|
|
2175
|
-
* / marketplace's one shared count today is in the reply's
|
|
2176
|
-
* / engram enforces for it — beside the agents, never a row
|
|
2177
|
-
* / (`PaymentSignCap.marketplaceRow`). Null when no marketplace is set.
|
|
2178
|
-
* / ⟨2026-11-03, the pre-
|
|
2293
|
+
* / ⟨2026-09-30, following the owner's acceptance that day of the marketplace's one shared count⟩ "is
|
|
2294
|
+
* / not here" no longer holds: the marketplace's one shared count today is in the reply's
|
|
2295
|
+
* / `marketplace` field, with the limit this engram enforces for it — beside the agents, never a row
|
|
2296
|
+
* / among them (`PaymentSignCap.marketplaceRow`). Null when no marketplace is set.
|
|
2297
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2179
2298
|
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
2180
2299
|
*/
|
|
2181
2300
|
listPaymentSignatureCounts: ActorMethod<[bigint, bigint], Result_36>;
|
|
@@ -2205,7 +2324,7 @@ export interface Engram {
|
|
|
2205
2324
|
* / ⟨CORRECTED 2026-10-02: it no longer traps. It is gated through `gatedResult`, so a refusal
|
|
2206
2325
|
* / comes back as an `Err` VALUE that names this method — still never as an empty page, which is
|
|
2207
2326
|
* / the property the sentence above was protecting.⟩
|
|
2208
|
-
* / RENAMED from `getOperatorPurgeLog` (
|
|
2327
|
+
* / RENAMED from `getOperatorPurgeLog` (a `get*` returns one value, a `list*` returns a Page —
|
|
2209
2328
|
* / the old name promised a scalar and delivered an array).
|
|
2210
2329
|
* /
|
|
2211
2330
|
* / Refusal reason preserved: an empty list must mean "no reset has removed an agent", never
|
|
@@ -2215,11 +2334,11 @@ export interface Engram {
|
|
|
2215
2334
|
* / at the client — swapping registeredAt and purgedAt would have type-checked everywhere and been
|
|
2216
2335
|
* / visible only as nonsense in a UI.
|
|
2217
2336
|
* /
|
|
2218
|
-
* / ⟨2026-09-29,
|
|
2219
|
-
* / `invite` its enrolment named, and `ended` — why and on what day
|
|
2220
|
-
* / earlier ending, or the reset) — the facts `resyncAgentEdges`
|
|
2221
|
-
* / served as they are.
|
|
2222
|
-
* / ⟨2026-11-03, the pre-
|
|
2337
|
+
* / ⟨2026-09-29, the finding that an ending the registry missed is kept and re-sent⟩ Each row now also
|
|
2338
|
+
* / carries the agent's `root`, the `invite` its enrolment named, and `ended` — why and on what day
|
|
2339
|
+
* / its engagement ended (its own earlier ending, or the reset) — the facts `resyncAgentEdges`
|
|
2340
|
+
* / re-sends. The stored rows are served as they are.
|
|
2341
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2223
2342
|
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
2224
2343
|
*/
|
|
2225
2344
|
listPurgedAgents: ActorMethod<[bigint, bigint], Result_35>;
|
|
@@ -2234,7 +2353,7 @@ export interface Engram {
|
|
|
2234
2353
|
* / when the Page conversion started publishing `total = totalAppended()` — the head is now a fact
|
|
2235
2354
|
* / a caller can read, so paging backward from it is ordinary arithmetic.
|
|
2236
2355
|
* /
|
|
2237
|
-
* / The
|
|
2356
|
+
* / The 0.16.0 interface plan proposed deleting `readReadLog` outright as a "duplicate accessor". Checked at the
|
|
2238
2357
|
* / site, that premise was false: `getDenialLog` filtered `not e.success`, so deleting the other
|
|
2239
2358
|
* / would have removed the only way to read SUCCESSFUL entries — and this ring is overwhelmingly
|
|
2240
2359
|
* / successful MCP reads. Folded instead, which keeps both capabilities and still ends the pair.
|
|
@@ -2247,7 +2366,7 @@ export interface Engram {
|
|
|
2247
2366
|
* / A caller knows exactly which ids were examined: `[start, start + limit)`.
|
|
2248
2367
|
* /
|
|
2249
2368
|
* / `earliest` is gone as a field and lost nothing: entries carry their own `id`, so a caller
|
|
2250
|
-
* / paging from 0 reads the oldest retained id off the first item. That is
|
|
2369
|
+
* / paging from 0 reads the oldest retained id off the first item. That is the page shape's stated design —
|
|
2251
2370
|
* / items self-identify — rather than a second number to keep in sync.
|
|
2252
2371
|
* /
|
|
2253
2372
|
* / `withheld` is 0 even when filtering. The filter is CALLER-REQUESTED; `withheld` means rows
|
|
@@ -2269,7 +2388,7 @@ export interface Engram {
|
|
|
2269
2388
|
* / This mattered beyond the file: doc comments are emitted into `engram.did`, so every SDK and
|
|
2270
2389
|
* / hand-written client has been reading the pre-fix rule off the interface for three days.
|
|
2271
2390
|
* /
|
|
2272
|
-
* / Named `listReadLog`, not the
|
|
2391
|
+
* / Named `listReadLog`, not the interface plan's `listDenialEntries`: that name assumed only the denial
|
|
2273
2392
|
* / half survived. A method serving every row must not be named for one of them.
|
|
2274
2393
|
* /
|
|
2275
2394
|
* / Refusal reason preserved from both: this log has NO public counterpart — no certified head to
|
|
@@ -2281,34 +2400,35 @@ export interface Engram {
|
|
|
2281
2400
|
* / so do settle failures, webhook auto-disables, expiry sweeps and MCP rate limits. Do not narrow
|
|
2282
2401
|
* / this to a name it does not carry.
|
|
2283
2402
|
* /
|
|
2284
|
-
* / ⟨2026-09-29, owner ruling
|
|
2285
|
-
* / on the chained record — the same `RecordView` filter, and `withheld` counts what
|
|
2286
|
-
* / together with what `successFilter` removed. WHAT WOULD MAKE THIS WRONG: see `listAuditEntries`.
|
|
2403
|
+
* / ⟨2026-09-29, the owner's ruling that an agent reads only the entries it caused⟩ An agent reads only the
|
|
2404
|
+
* / entries it caused, here as on the chained record — the same `RecordView` filter, and `withheld` counts what
|
|
2405
|
+
* / it removed together with what `successFilter` removed. WHAT WOULD MAKE THIS WRONG: see `listAuditEntries`.
|
|
2287
2406
|
*/
|
|
2288
2407
|
listReadLog: ActorMethod<[[] | [boolean], bigint, bigint], Result_34>;
|
|
2289
2408
|
/**
|
|
2290
|
-
* / ⟨2026-10-21,
|
|
2291
|
-
* / `listRepudiations`, for the same reason: the owner and ACTIVE guardians read
|
|
2292
|
-
* / reads only the entries it caused (
|
|
2293
|
-
* / gets an empty page whose `withheld` counts the notes in its
|
|
2294
|
-
* / stranger, a pending guardian and the anonymous caller are refused.
|
|
2409
|
+
* / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ The owner's notes, oldest first.
|
|
2410
|
+
* / Same visibility as `listRepudiations`, for the same reason: the owner and ACTIVE guardians read
|
|
2411
|
+
* / the rows; an agent reads only the entries it caused (the owner's ruling of 2026-09-29), and every
|
|
2412
|
+
* / note is the owner's, so an agent gets an empty page whose `withheld` counts the notes in its
|
|
2413
|
+
* / window — never "there are none". A stranger, a pending guardian and the anonymous caller are refused.
|
|
2295
2414
|
*/
|
|
2296
2415
|
listRecordNotes: ActorMethod<[bigint, bigint], Result_33>;
|
|
2297
2416
|
/**
|
|
2298
2417
|
* / Same visibility as listAuditEntries: the owner, this engram's agents, and ACTIVE guardians
|
|
2299
2418
|
* / see disputes. An unauthorized read REFUSES — it does not return an empty list, because an
|
|
2300
2419
|
* / empty list reads as "no disputes have been filed", which is a claim, not an absence of one.
|
|
2301
|
-
* / RENAMED from `getRepudiations` (
|
|
2302
|
-
* / "no disputes have been filed" — and a dispute record that can be mistaken for an
|
|
2303
|
-
* / disputes is worse than no record at all. Not public by design.
|
|
2304
|
-
* /
|
|
2305
|
-
* / ⟨CORRECTED 2026-09-29, owner ruling
|
|
2306
|
-
* / still holds, and so the first sentence no longer does: an agent
|
|
2307
|
-
* / caused, and every dispute here is the owner's own
|
|
2308
|
-
* / guardians get the rows; an agent gets an empty page
|
|
2309
|
-
* / window — which says disputes exist without showing them,
|
|
2310
|
-
* / WOULD MAKE THIS WRONG: a ruling that an agent may see the
|
|
2311
|
-
* / then have to look up each disputed version's writer, which
|
|
2420
|
+
* / RENAMED from `getRepudiations` (a `get*` returns one value, a `list*` a page). Refusal reason preserved:
|
|
2421
|
+
* / an empty list would read as "no disputes have been filed" — and a dispute record that can be mistaken for an
|
|
2422
|
+
* / absence of disputes is worse than no record at all. Not public by design.
|
|
2423
|
+
* /
|
|
2424
|
+
* / ⟨CORRECTED 2026-09-29, the owner's ruling that an agent reads only the entries it caused⟩ "Same
|
|
2425
|
+
* / visibility as listAuditEntries" still holds, and so the first sentence no longer does: an agent
|
|
2426
|
+
* / reads only the record entries it caused, and every dispute here is the owner's own
|
|
2427
|
+
* / `memory.repudiate` entry. So the owner and guardians get the rows; an agent gets an empty page
|
|
2428
|
+
* / whose `withheld` counts the rows in its window — which says disputes exist without showing them,
|
|
2429
|
+
* / never "none have been filed". WHAT WOULD MAKE THIS WRONG: a ruling that an agent may see the
|
|
2430
|
+
* / disputes of its own writes; this would then have to look up each disputed version's writer, which
|
|
2431
|
+
* / it does not do today.
|
|
2312
2432
|
*/
|
|
2313
2433
|
listRepudiations: ActorMethod<[bigint, bigint], Result_32>;
|
|
2314
2434
|
/**
|
|
@@ -2321,15 +2441,15 @@ export interface Engram {
|
|
|
2321
2441
|
*/
|
|
2322
2442
|
listSellers: ActorMethod<[bigint, bigint], Result_31>;
|
|
2323
2443
|
/**
|
|
2324
|
-
* / ⟨2026-10-21, the owner's
|
|
2325
|
-
* / registered. The same tokens, in the same order and paged the same way, as
|
|
2326
|
-
* / each beside `clientName` — the RFC 7591 `client_name` the app registered when
|
|
2327
|
-
* / issued (`People.SignIn` says when it is null, and that it is the app's own claim). A phone
|
|
2444
|
+
* / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ OWNER-ONLY: the sign-ins, each
|
|
2445
|
+
* / with the name its app registered. The same tokens, in the same order and paged the same way, as
|
|
2446
|
+
* / `listBearerTokens`, each beside `clientName` — the RFC 7591 `client_name` the app registered when
|
|
2447
|
+
* / the token was issued (`People.SignIn` says when it is null, and that it is the app's own claim). A phone
|
|
2328
2448
|
* / owner read "localhost" for every app signed in through a local bridge and could not tell two
|
|
2329
2449
|
* / apps apart. A NEW method rather than a field on `BearerToken`: that record is stored (M0170)
|
|
2330
2450
|
* / and `listBearerTokens`' reply is shipped (never widened). An agent, a guardian, a stranger and
|
|
2331
2451
|
* / the anonymous caller are refused, by `listBearerTokens`' own gate and for its reason.
|
|
2332
|
-
* / ⟨2026-11-03, the pre-
|
|
2452
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2333
2453
|
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
2334
2454
|
*/
|
|
2335
2455
|
listSignIns: ActorMethod<[bigint, bigint], Result_30>;
|
|
@@ -2346,10 +2466,10 @@ export interface Engram {
|
|
|
2346
2466
|
*/
|
|
2347
2467
|
markAgentWritesReviewed: ActorMethod<[[] | [bigint]], Result_15>;
|
|
2348
2468
|
/**
|
|
2349
|
-
* / ⟨2026-10-21, the owner's
|
|
2350
|
-
* / only (`People.AgentGrant`): what it may read, where it may write, its rate, and
|
|
2351
|
-
* / limits enforced against that key. It reveals nothing a refusal does not already say,
|
|
2352
|
-
* / an agent correct itself before it writes rather than after the owner explains a refusal by
|
|
2469
|
+
* / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ AN AGENT READS ITS OWN GRANT —
|
|
2470
|
+
* / to the calling key only (`People.AgentGrant`): what it may read, where it may write, its rate, and
|
|
2471
|
+
* / the payment limits enforced against that key. It reveals nothing a refusal does not already say,
|
|
2472
|
+
* / and lets an agent correct itself before it writes rather than after the owner explains a refusal by
|
|
2353
2473
|
* / hand. `getSpendPolicy` and `listAgents` stay owner-only; this answers one row, the caller's.
|
|
2354
2474
|
* /
|
|
2355
2475
|
* / WHO: an ACTIVE agent (`Gated.authorize(#agentOrOwner)`). Refused, each by its own text: the
|
|
@@ -2357,11 +2477,11 @@ export interface Engram {
|
|
|
2357
2477
|
* / "Agent has resigned" — an ended agent may do nothing, and its old grant would read as powers),
|
|
2358
2478
|
* / a guardian and a stranger ("Not authorized"), the anonymous caller. A query: it writes nothing.
|
|
2359
2479
|
* /
|
|
2360
|
-
* / ⟨2026-10-29, the owner's ruling
|
|
2361
|
-
* / the key could pay now (`paymentsFrozen`, `paymentsNow`), read from
|
|
2362
|
-
* / checks — the brake, the key's policy and stored total, the engram-wide ceiling and
|
|
2363
|
-
* / the caps alone no longer read as money an agent can spend. `People.SpendState` names each one.
|
|
2364
|
-
* / ⟨2026-10-29, review
|
|
2480
|
+
* / ⟨2026-10-29, the owner's ruling that an agent's grant read tells the truth about paying⟩ It also says
|
|
2481
|
+
* / whether the payments brake is on and what the key could pay now (`paymentsFrozen`, `paymentsNow`), read from
|
|
2482
|
+
* / the values `x402SignFor` checks — the brake, the key's policy and stored total, the engram-wide ceiling and
|
|
2483
|
+
* / total — so the caps alone no longer read as money an agent can spend. `People.SpendState` names each one.
|
|
2484
|
+
* / ⟨2026-10-29, a review finding⟩ And which whole-key refusal stops every payment now, if one does
|
|
2365
2485
|
* / (`paymentsStoppedBy`: the brake, the signing floor, the daily count of payment signatures).
|
|
2366
2486
|
*/
|
|
2367
2487
|
myGrant: ActorMethod<[], Result_29>;
|
|
@@ -2391,7 +2511,7 @@ export interface Engram {
|
|
|
2391
2511
|
* / network's refund. Every outcome is written to the record under `agent.openChild` in the message
|
|
2392
2512
|
* / that hears the registry's answer, before the reply — in the alerts' money class.
|
|
2393
2513
|
* /
|
|
2394
|
-
* / ⟨CORRECTED 2026-10-01, review
|
|
2514
|
+
* / ⟨CORRECTED 2026-10-01, two review findings — the sentence "If the registry refuses or cannot be
|
|
2395
2515
|
* / reached, the opening is GIVEN BACK" above is what was first built.⟩ The opening is given back only
|
|
2396
2516
|
* / when the WHOLE attachment came back as the call's refund (the registry accepted none of it) and
|
|
2397
2517
|
* / the owner has not set this agent's count since the take (`ChildAllowance.settle`). A refusal after
|
|
@@ -2403,7 +2523,7 @@ export interface Engram {
|
|
|
2403
2523
|
* / WHAT WOULD MAKE THIS WRONG: an await added between `ChildAllowance.take` and the registry call; the
|
|
2404
2524
|
* / registry's `CHILD_MIN_ATTACHED_CYCLES` moving without `CHILD_ATTACH_CYCLES`.
|
|
2405
2525
|
* /
|
|
2406
|
-
* / ⟨2026-11-02, the owner's ruling
|
|
2526
|
+
* / ⟨2026-11-02, the owner's ruling to take the recommended answers (the child build's sign-in step)⟩ THE
|
|
2407
2527
|
* / SIGN-IN. `signIn` names the opened engram's sign-in — the person running the agent, on a second
|
|
2408
2528
|
* / credential; null opens it with none, and it then keeps small limits for life. It goes to the
|
|
2409
2529
|
* / registry's door and from there into the opened engram's init record, so that engram never runs a
|
|
@@ -2411,11 +2531,11 @@ export interface Engram {
|
|
|
2411
2531
|
* / door's own three rules (`OwnerSignIn.candidateRefusal`): the agent's lasting key itself, the
|
|
2412
2532
|
* / anonymous principal, a canister — so the agent sees the refusal before any cycles move. The
|
|
2413
2533
|
* / record entry says `signIn=set` or `signIn=none`, never the principal.
|
|
2414
|
-
* / ⟨2026-11-02, the
|
|
2415
|
-
* / call is signed by — the agent's session key — is refused as the sign-in too
|
|
2534
|
+
* / ⟨2026-11-02, the review of the child build's sign-in step, beside the above⟩ And a fourth, the
|
|
2535
|
+
* / door's own: the key this call is signed by — the agent's session key — is refused as the sign-in too
|
|
2416
2536
|
* / (`OwnerSignIn.agentKeyRefusal`), at the same place.
|
|
2417
2537
|
* /
|
|
2418
|
-
* / ⟨2026-11-02, the child build's
|
|
2538
|
+
* / ⟨2026-11-02, the child build's sign-in step — RENAMED from `openChildEngram`, beside the paragraphs
|
|
2419
2539
|
* / above, which describe the same door⟩ It was `openChildEngram()`, with no argument. A second
|
|
2420
2540
|
* / positional argument would grow its argument tuple, and a shipped tuple is frozen (evolution
|
|
2421
2541
|
* / happens inside records), so the door takes ONE record whose later fields are optional, under a
|
|
@@ -2435,27 +2555,28 @@ export interface Engram {
|
|
|
2435
2555
|
*/
|
|
2436
2556
|
ownerWithdraw: ActorMethod<[TokenAmount, [] | [ActionAuth]], Result_15>;
|
|
2437
2557
|
/**
|
|
2438
|
-
* / ⟨0.16.0⟩ `payRentFromEarnings` DELETED — ruled TWICE (
|
|
2439
|
-
* /
|
|
2558
|
+
* / ⟨0.16.0⟩ `payRentFromEarnings` DELETED — ruled TWICE (commerce moved to the market; rent is the
|
|
2559
|
+
* / biller's), and it was the single clearest case in this repository of the engram reaching into a
|
|
2560
|
+
* / deployment's billing canister.
|
|
2440
2561
|
* /
|
|
2441
|
-
* / It hand-declared four
|
|
2562
|
+
* / It hand-declared four biller methods inline, read `getFeeSchedule`, computed
|
|
2442
2563
|
* / `priceE6 = rentUsdE6PerEngramYear * months / 12`, and deposited `priceE6 + 3 * CKUSDC_FEE`
|
|
2443
2564
|
* / under a comment explaining that three is "the three token fees the cashier's rail spends" —
|
|
2444
2565
|
* / a PUBLIC canister hardcoding how many ledger fees a PRIVATE one consumes internally. Any
|
|
2445
|
-
* / change to the
|
|
2566
|
+
* / change to the biller's rail silently mispriced this call.
|
|
2446
2567
|
* /
|
|
2447
2568
|
* / It also carried the only RE-ENTRANT cross-canister chain in the system: engram →
|
|
2448
2569
|
* / cashier.payRentWithStablecoin → (registry, ledger, CMC …) → back into the SAME engram's
|
|
2449
2570
|
* / sysRecordFeeEvent while the originating message was still suspended, both writing the same audit
|
|
2450
2571
|
* / ring, with no lock.
|
|
2451
2572
|
* /
|
|
2452
|
-
* / Rent is the
|
|
2573
|
+
* / Rent is the biller's entirely. Owners pay through the biller's rails; the engram keeps
|
|
2453
2574
|
* / append-only receipts and no fee math.
|
|
2454
|
-
* / ⟨0.16.0,
|
|
2455
|
-
* / the
|
|
2456
|
-
* / principal HAS held agent access, and no code will give it
|
|
2457
|
-
* / `#Conflict` knows to pair a fresh key; a caller reading `#Refused` would
|
|
2458
|
-
* / same identity, which is exactly the loop the one-shot rule was written to stop.
|
|
2575
|
+
* / ⟨0.16.0, refusals are values — ruled in the 0.16.0 interface plan⟩ THE ONE-SHOT ARM. Re-redemption is
|
|
2576
|
+
* / `#Err(#Conflict)`, named in the interface plan's entry for this method, and it is the arm the
|
|
2577
|
+
* / whole guard exists to express: this principal HAS held agent access, and no code will give it
|
|
2578
|
+
* / back. A caller reading `#Conflict` knows to pair a fresh key; a caller reading `#Refused` would
|
|
2579
|
+
* / keep presenting the same identity, which is exactly the loop the one-shot rule was written to stop.
|
|
2459
2580
|
* / Redeem an invite code minted by `createAgentInvite`. The CALLER becomes the agent, so
|
|
2460
2581
|
* / redeem from the wallet that will do the work.
|
|
2461
2582
|
* /
|
|
@@ -2485,19 +2606,19 @@ export interface Engram {
|
|
|
2485
2606
|
* / record gets `agent.invite.void`), and after that every attempt with it is refused
|
|
2486
2607
|
* / `#Conflict` before any check is made (`InviteFailures`).
|
|
2487
2608
|
* /
|
|
2488
|
-
* / ⟨RESHAPED 2026-09-29, review finding
|
|
2609
|
+
* / ⟨RESHAPED 2026-09-29, a review finding⟩ The reply is `Types.Pairing`: the agent
|
|
2489
2610
|
* / record AND `trackRecord`, which says plainly when the registry refused or failed to record the
|
|
2490
2611
|
* / engagement on the agent's track record, and what to do. Before, the reply was `#Ok` with the
|
|
2491
2612
|
* / record alone even when the registry had refused the start, so the agent was never told.
|
|
2492
2613
|
*/
|
|
2493
2614
|
pairAgent: ActorMethod<[{ enrolment: Enrolment; code: string }], Result_26>;
|
|
2494
2615
|
/**
|
|
2495
|
-
* / ⟨0.16.0,
|
|
2616
|
+
* / ⟨0.16.0, same concept, same name — renamed from `guardianPauseWrites`⟩ Same correction as freezePayments above:
|
|
2496
2617
|
* / owner-or-guardian, and `resumeWrites` never carried the prefix either.
|
|
2497
2618
|
*/
|
|
2498
2619
|
pauseWrites: ActorMethod<[], Result_2>;
|
|
2499
2620
|
/**
|
|
2500
|
-
* / ⟨2026-10-21, the owner's
|
|
2621
|
+
* / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ `pauseWrites` with a reason; everything said of
|
|
2501
2622
|
* / `freezePaymentsWithReason` holds, with `canPauseWrites` as the guardian's grant.
|
|
2502
2623
|
*/
|
|
2503
2624
|
pauseWritesWithReason: ActorMethod<[string], Result_2>;
|
|
@@ -2538,9 +2659,9 @@ export interface Engram {
|
|
|
2538
2659
|
* / minimum and per-call cost BEFORE signing anything, and gating the quote behind a role would
|
|
2539
2660
|
* / mean the only way to learn this engram's price is to already be permitted to pay it.
|
|
2540
2661
|
* /
|
|
2541
|
-
* / ⟨CORRECTED 2026-08-24 — this said "⟨
|
|
2542
|
-
* /
|
|
2543
|
-
* / `quotePayment` and `previewOpenSession` become queries, and
|
|
2662
|
+
* / ⟨CORRECTED 2026-08-24 — this said "⟨update-for-read⟩ UPDATE, NOT QUERY" and cited a market ruling that
|
|
2663
|
+
* / the 2026-08-24 quote-convention ruling had already closed.⟩ QUERY, per the ruled quote convention: FAST READS. Both
|
|
2664
|
+
* / `quotePayment` and `previewOpenSession` become queries, and the update-for-read rule's open-ruling exception
|
|
2544
2665
|
* / retires with them — so the argument written here for keeping it an update was arguing the
|
|
2545
2666
|
* / losing side of a decision already made, and was added the same day by not reading forward
|
|
2546
2667
|
* / to the ruling. `gate.offerSession` is pure — it validates the intent and returns it — so
|
|
@@ -2551,16 +2672,16 @@ export interface Engram {
|
|
|
2551
2672
|
* / commitment happens in `openSession`, which IS a certified update call, and a buyer who needs
|
|
2552
2673
|
* / the price attested rather than quoted takes it from that reply.
|
|
2553
2674
|
* /
|
|
2554
|
-
* / ⟨RESTORED 2026-08-24, owner ruling
|
|
2555
|
-
* / same act against a different seller and a reader comparing the two
|
|
2556
|
-
* / two verbs for it.
|
|
2675
|
+
* / ⟨RESTORED 2026-08-24, the owner's ruling to build the paid-session seam⟩ Named to match the
|
|
2676
|
+
* / market's, because it is the same act against a different seller and a reader comparing the two
|
|
2677
|
+
* / should not have to learn two verbs for it.
|
|
2557
2678
|
* /
|
|
2558
2679
|
* / ⟨2026-10-02⟩ Answers the house `Types.SessionIntent` — ic402's intent with `expiry` spelled
|
|
2559
2680
|
* / `expiryNs`. Same value, same meaning; only the name carries the unit now.
|
|
2560
2681
|
*/
|
|
2561
2682
|
previewOpenSession: ActorMethod<[], SessionIntent>;
|
|
2562
2683
|
/**
|
|
2563
|
-
* / ⟨2026-10-21, the owner's
|
|
2684
|
+
* / ⟨2026-10-21, the owner's approval of the mobile design's changes: a trim preview⟩ What a PROPOSED history policy
|
|
2564
2685
|
* / would remove from the store as it stands — "about N old copies in F files would be removed" —
|
|
2565
2686
|
* / asked BEFORE the owner saves it. A query: nothing is saved, armed or evicted.
|
|
2566
2687
|
* /
|
|
@@ -2577,7 +2698,7 @@ export interface Engram {
|
|
|
2577
2698
|
* / takes effect change it.
|
|
2578
2699
|
* / HONEST WHEN CUT SHORT: `complete = false` when the planning budget
|
|
2579
2700
|
* / (`MemoryRouter.PREVIEW_MAX_DROPS`) ran out — the totals are then a floor, and say so.
|
|
2580
|
-
* / ⟨2026-11-03, the pre-
|
|
2701
|
+
* / ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2581
2702
|
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
2582
2703
|
*/
|
|
2583
2704
|
previewRetention: ActorMethod<[Array<[string, RetentionClassSpec]>], Result_23>;
|
|
@@ -2589,8 +2710,8 @@ export interface Engram {
|
|
|
2589
2710
|
* /
|
|
2590
2711
|
* / ⚠ `config/` AND `secrets/` ARE OWNER-ONLY whatever the grant says, and the refusal is
|
|
2591
2712
|
* / `#Refused` rather than `#Invalid` deliberately: the path is well-formed and the file may well
|
|
2592
|
-
* / exist — the caller simply may not have it.
|
|
2593
|
-
* / on, which is the whole reason `Error` is a closed variant rather than a sentence.
|
|
2713
|
+
* / exist — the caller simply may not have it. A refusal being a typed value, that distinction is the
|
|
2714
|
+
* / caller's to branch on, which is the whole reason `Error` is a closed variant rather than a sentence.
|
|
2594
2715
|
* /
|
|
2595
2716
|
* / ⚠ A QUERY, so it does NOT count as a read. The IC discards query-path state changes, so a
|
|
2596
2717
|
* / counter here could never persist; read counting lives on the update path
|
|
@@ -2607,7 +2728,7 @@ export interface Engram {
|
|
|
2607
2728
|
* / · Over the path cap it returned `[("", #Err(#Invalid …))]` — ONE row, for a path the caller
|
|
2608
2729
|
* / never asked about. A consumer looping rows saw a result for the empty path and no result
|
|
2609
2730
|
* / for any real one. The call as a whole failed; dressing that as a per-path outcome is the
|
|
2610
|
-
* / fabrication
|
|
2731
|
+
* / fabrication that the refusal-over-fabrication rule is about.
|
|
2611
2732
|
* / · An AUTHORIZATION refusal was fanned out across every requested path, so one "no" arrived
|
|
2612
2733
|
* / as N per-path noes and read like N independent permission facts about N files.
|
|
2613
2734
|
* /
|
|
@@ -2618,8 +2739,8 @@ export interface Engram {
|
|
|
2618
2739
|
readMemoryBatch: ActorMethod<[Array<string>], Result_22>;
|
|
2619
2740
|
/**
|
|
2620
2741
|
* / ⟨0.16.0⟩ `getMemoryRetentionGuards` DELETED — folded into `getMemoryRetentionPolicy` above.
|
|
2621
|
-
* / It was the second
|
|
2622
|
-
* / was the defect described there. Its own docs are preserved at the fold site.
|
|
2742
|
+
* / It was the second array-returning `get*` (a `get*` returns one value), and separating it from the
|
|
2743
|
+
* / policy it modifies was the defect described there. Its own docs are preserved at the fold site.
|
|
2623
2744
|
* / One page of a file's content — the paged read the whole-file surfaces point at.
|
|
2624
2745
|
* /
|
|
2625
2746
|
* / `version = null` reads the live file; a version reads that version as it was recorded.
|
|
@@ -2640,7 +2761,7 @@ export interface Engram {
|
|
|
2640
2761
|
* / `deposited >= consumed + fee`, and vouchers may consume up to the full deposit — so a payer
|
|
2641
2762
|
* / who spends their whole budget makes their own session unsettleable, with no adversary
|
|
2642
2763
|
* / involved. Before this, the refusal text told them to call `recoverEscrow`, which existed on no
|
|
2643
|
-
* / canister they could reach.
|
|
2764
|
+
* / canister they could reach. The spend ceiling caps consumable spend so ordinary use cannot reach that state;
|
|
2644
2765
|
* / this is the way back for a session that already has.
|
|
2645
2766
|
* /
|
|
2646
2767
|
* / ⟨CORRECTION 2026-09-30, beside the paragraph above and the first line⟩ No longer true. ic402
|
|
@@ -2694,7 +2815,7 @@ export interface Engram {
|
|
|
2694
2815
|
*/
|
|
2695
2816
|
recoverEscrow: ActorMethod<[string, bigint], Result_20>;
|
|
2696
2817
|
/**
|
|
2697
|
-
* / ⟨0.16.0,
|
|
2818
|
+
* / ⟨0.16.0, refusals are values, never traps⟩ A REDEMPTION PATH, where the arm choice is a disclosure decision.
|
|
2698
2819
|
* /
|
|
2699
2820
|
* / Four of these refusals are about the CODE and one is about the caller. The code arms restate
|
|
2700
2821
|
* / exactly what the text already said — an unknown code is `#NotFound`, a used or expired one is
|
|
@@ -2718,8 +2839,9 @@ export interface Engram {
|
|
|
2718
2839
|
*/
|
|
2719
2840
|
removeCallerSpendPolicy: ActorMethod<[Principal], Result_2>;
|
|
2720
2841
|
/**
|
|
2721
|
-
* / ⟨2026-10-14,
|
|
2722
|
-
* / removal TIGHTENS, and a frozen engram must still be able to shrink what it
|
|
2842
|
+
* / ⟨2026-10-14, the destination-list ruling⟩ Remove a destination from one action's list. Instant,
|
|
2843
|
+
* / and NOT freeze-gated: removal TIGHTENS, and a frozen engram must still be able to shrink what it
|
|
2844
|
+
* / could sign to.
|
|
2723
2845
|
*/
|
|
2724
2846
|
removeEip712Destination: ActorMethod<[Uint8Array | number[], string], Result_2>;
|
|
2725
2847
|
/**
|
|
@@ -2732,7 +2854,7 @@ export interface Engram {
|
|
|
2732
2854
|
* / removes only authority that was never exercised, which is removing nothing but the mistake.
|
|
2733
2855
|
* / NOT freeze-gated, same reasoning as removeEvmWithdrawDestination: this is TIGHTENING, and a
|
|
2734
2856
|
* / frozen engram must still be able to shrink what it could sign.
|
|
2735
|
-
* / ⟨2026-10-14⟩ `removeEvmWithdrawDestination` is now `removeEip712Destination` (ruling
|
|
2857
|
+
* / ⟨2026-10-14⟩ `removeEvmWithdrawDestination` is now `removeEip712Destination` (the destination-list ruling); same
|
|
2736
2858
|
* / reasoning. Removing a type now also drops its rules and its own destination list.
|
|
2737
2859
|
*/
|
|
2738
2860
|
removeEip712Type: ActorMethod<[Uint8Array | number[]], Result_2>;
|
|
@@ -2757,7 +2879,7 @@ export interface Engram {
|
|
|
2757
2879
|
*/
|
|
2758
2880
|
removeSeller: ActorMethod<[string], Result_2>;
|
|
2759
2881
|
/**
|
|
2760
|
-
* / ⟨2026-10-21, the owner's
|
|
2882
|
+
* / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ OWNER-ONLY: give an agent a new name. A name was
|
|
2761
2883
|
* / fixed at the invite, and two agents both called "agent" is how the 2026-10-20 session started.
|
|
2762
2884
|
* / Only the VALUE of the stored `AgentRecord.name` changes — no new state, no reshaped record —
|
|
2763
2885
|
* / and the change is on the record as `agent.rename` (`principal=<key> name=<new name>`, the name
|
|
@@ -2794,8 +2916,8 @@ export interface Engram {
|
|
|
2794
2916
|
* / · ⟨2026-10-02⟩ the seat weeks of every engagement (`agentSeatWeeks`), with the signature count
|
|
2795
2917
|
* / they sit beside, and the owner's switch over the metrics reader's read and the reader it
|
|
2796
2918
|
* / names — a reset severs access, it does not change who may read what was kept.
|
|
2797
|
-
* / · ⟨2026-11-02, the child build — decided "unless you object", recorded at
|
|
2798
|
-
* / list and the paid history (`listSellers`, `getRecipientHistory`), as the typed-data
|
|
2919
|
+
* / · ⟨2026-11-02, the child build — decided "unless you object", recorded at its withdrawal-pinning
|
|
2920
|
+
* / step⟩ the seller list and the paid history (`listSellers`, `getRecipientHistory`), as the typed-data
|
|
2799
2921
|
* / destinations are kept: a reset severs access, it does not forget which counterparties the
|
|
2800
2922
|
* / owner approved or which addresses this engram has paid.
|
|
2801
2923
|
* /
|
|
@@ -2843,7 +2965,7 @@ export interface Engram {
|
|
|
2843
2965
|
* / throw, against a method that could not say no; it now counts `#Ok` answers.⟩ It re-sends
|
|
2844
2966
|
* / starts only: an ending carries a reason this roster does not keep per principal.
|
|
2845
2967
|
* /
|
|
2846
|
-
* / ⟨CORRECTED 2026-09-29, review finding
|
|
2968
|
+
* / ⟨CORRECTED 2026-09-29, a review finding — the owner's ruling⟩ It now re-sends ENDINGS as
|
|
2847
2969
|
* / well as starts, endings first (`AgentEdges.resyncPlan` says why): every ended record on the
|
|
2848
2970
|
* / roster and every agent a reset removed keeps its ending's reason and day
|
|
2849
2971
|
* / (`Types.AgentEnding`), so an ending the registry never received — the one loss that used to
|
|
@@ -2879,7 +3001,7 @@ export interface Engram {
|
|
|
2879
3001
|
* / Replacing is safe here in a way it was not in the legacy store: the prior version is not
|
|
2880
3002
|
* / overwritten, it is superseded. It stays readable, its hash stays committed, and the agent
|
|
2881
3003
|
* / floor keeps its bytes for the window a counterparty needs to extract them.
|
|
2882
|
-
* / ⟨0.16.0,
|
|
3004
|
+
* / ⟨0.16.0, refusals are values, never traps⟩ FIVE AGENT REFUSALS, ALL `#Refused`, AND THE UNIFORMITY IS THE FINDING.
|
|
2883
3005
|
* /
|
|
2884
3006
|
* / Reserved path, protected path, missing permission, ungranted revise path, `#vault` class — a
|
|
2885
3007
|
* / caller could previously tell these apart only by reading five different sentences, and every
|
|
@@ -2935,9 +3057,10 @@ export interface Engram {
|
|
|
2935
3057
|
*/
|
|
2936
3058
|
revokeAllBearerTokens: ActorMethod<[], Result_15>;
|
|
2937
3059
|
/**
|
|
2938
|
-
* / ⟨0.16.0⟩ `removeAllGuardians` DELETED — test-only (
|
|
2939
|
-
* / mass-revoke set. The destructive phase-07 suite iterates
|
|
2940
|
-
* / loses a capability: what dies is a bulk spelling no runbook ever
|
|
3060
|
+
* / ⟨0.16.0⟩ `removeAllGuardians` DELETED — test-only (every method has a named caller; none is test-only),
|
|
3061
|
+
* / and verified NOT part of KILL-SWITCH's mass-revoke set. The destructive phase-07 suite iterates
|
|
3062
|
+
* / `removeGuardian` instead, so nothing loses a capability: what dies is a bulk spelling no runbook ever
|
|
3063
|
+
* / invoked.
|
|
2941
3064
|
* / Owner-only panic button: void every unredeemed invite. Returns how many were voided.
|
|
2942
3065
|
* /
|
|
2943
3066
|
* / Separate from `revokeAllAgents`: this stops invites that have NOT been redeemed yet and
|
|
@@ -2954,7 +3077,7 @@ export interface Engram {
|
|
|
2954
3077
|
*/
|
|
2955
3078
|
revokeBearerToken: ActorMethod<[string], Result_2>;
|
|
2956
3079
|
/**
|
|
2957
|
-
* / ⟨0.16.0,
|
|
3080
|
+
* / ⟨0.16.0, the interface plan⟩ RETURNS A REAL RECEIPT, not `R<()>` — same reason as the delete
|
|
2958
3081
|
* / above, and sharper here: a rollback WRITES A NEW VERSION, so the caller's next question is
|
|
2959
3082
|
* / always "which version am I on now". `r.version` was already read for the audit line.
|
|
2960
3083
|
*/
|
|
@@ -2968,7 +3091,7 @@ export interface Engram {
|
|
|
2968
3091
|
* / one-shot registration rule. So this is the answer to "my key is compromised", and it is NOT a
|
|
2969
3092
|
* / way to move an agent seat to a different wallet — that is a new invite, and only if the
|
|
2970
3093
|
* / old principal was never revoked.
|
|
2971
|
-
* / ⟨CORRECTED 2026-09-29, the owner's ruling of that date
|
|
3094
|
+
* / ⟨CORRECTED 2026-09-29, the owner's ruling of that date⟩ Two sentences
|
|
2972
3095
|
* / above are no longer true. An agent's record CAN now move to a different key, in one step and
|
|
2973
3096
|
* / with no new invite: `nominateAgentKey` from the current key, then `acceptAgentKeyNomination`
|
|
2974
3097
|
* / from the new one. And a compromised key is answered by that move — this method only changes a
|
|
@@ -2997,10 +3120,10 @@ export interface Engram {
|
|
|
2997
3120
|
/**
|
|
2998
3121
|
* / Send money from this engram's wallet to the engram it was opened through — "up", and only up:
|
|
2999
3122
|
* / the destination is always the parent engram's own default account, never an address the caller
|
|
3000
|
-
* / names. ANY amount (the owner's ruling
|
|
3123
|
+
* / names. ANY amount (the owner's send-up ruling); the answer is the ledger's block index.
|
|
3001
3124
|
* /
|
|
3002
3125
|
* / WHO: the owner's key file or the sign-in, in an engram opened through another (the build's
|
|
3003
|
-
* / resolution
|
|
3126
|
+
* / resolution: both may send — the key file's honest sweep needs it, and the sign-in may sweep
|
|
3004
3127
|
* / too); refused to anyone else. In a first engram there is nothing above it, and it refuses with
|
|
3005
3128
|
* / `#Conflict`. NOT freeze-gated: up is not out, so a payments freeze does not stop it.
|
|
3006
3129
|
* /
|
|
@@ -3008,7 +3131,7 @@ export interface Engram {
|
|
|
3008
3131
|
* / then ONE call to the registry — refused unless the registry shows the parent registered, active
|
|
3009
3132
|
* / and not abandoned (`#Refused`; the registry unreachable is `#Unavailable`; nothing sent either
|
|
3010
3133
|
* / way) — then ONE ledger transfer, the same per-token ledger as `ownerWithdraw`. Both calls are
|
|
3011
|
-
* / counted (
|
|
3134
|
+
* / counted (the timer-pause rule of 2026-10-28), so near its freezing line this engram may be unable to send the registry
|
|
3012
3135
|
* / call at all; it then answers `#Unavailable` and nothing moves.
|
|
3013
3136
|
* /
|
|
3014
3137
|
* / NO RE-CHECK between the two calls, deliberately: the parent can be abandoned in between, and the
|
|
@@ -3027,7 +3150,7 @@ export interface Engram {
|
|
|
3027
3150
|
* / authorized by the voucher rather than by a role.
|
|
3028
3151
|
* / ⟨2026-09-30, ic402 2.17.0⟩ Authorized by the payer's own call with the voucher: only the
|
|
3029
3152
|
* / principal that opened the session, calling as that key, can spend it (see `sessionReadMemory`).
|
|
3030
|
-
* / ⟨CORRECTED 2026-09-30, the owner's
|
|
3153
|
+
* / ⟨CORRECTED 2026-09-30, the owner's fresh-key ruling⟩ Authorized by the session KEY's own
|
|
3031
3154
|
* / call: the fresh key the payer named at open. The write is attributed to the payer, who paid;
|
|
3032
3155
|
* / the record row also names the key that made it.
|
|
3033
3156
|
* /
|
|
@@ -3036,7 +3159,7 @@ export interface Engram {
|
|
|
3036
3159
|
* / when the engram is client-side encrypted: a paid session appending plaintext to an encrypted
|
|
3037
3160
|
* / store would CORRUPT it, so that refusal is protecting the owner's data rather than gating
|
|
3038
3161
|
* / access. Append through the EngramX client/SDK instead.
|
|
3039
|
-
* / ⟨
|
|
3162
|
+
* / ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ RETURNS THE SAME RECEIPT THE FREE WRITER DOES.
|
|
3040
3163
|
* / It answered `Wire.Result<Nat>`: the version, and nothing else. The free `writeMemory` returns
|
|
3041
3164
|
* / `{ version; seq; head }`, so a PAYING writer got strictly LESS evidence than a caller who paid
|
|
3042
3165
|
* / nothing — on the one rail a stranger can buy, where the receipt is the whole product. The head
|
|
@@ -3046,7 +3169,7 @@ export interface Engram {
|
|
|
3046
3169
|
* / It cost nothing to fix: `r` was already in scope and already being read — the old body did
|
|
3047
3170
|
* / `let v = r.version` and passed `r` to `receiptSuffix(r)` for the audit line, then discarded
|
|
3048
3171
|
* / everything but the version on the way out. Free until the cut, breaking forever after, which
|
|
3049
|
-
* / is why it lands now rather than after the test migration (
|
|
3172
|
+
* / is why it lands now rather than after the test migration (as ruled 2026-08-24).
|
|
3050
3173
|
*/
|
|
3051
3174
|
sessionAppendMemory: ActorMethod<[Voucher, string, Uint8Array | number[]], Result>;
|
|
3052
3175
|
/**
|
|
@@ -3054,11 +3177,12 @@ export interface Engram {
|
|
|
3054
3177
|
* / start. The "read me back" that continuity is built on. `clientLabel` names the reading host
|
|
3055
3178
|
* / (e.g. "openclaw", "claude.ai") for the distinct-reader set.
|
|
3056
3179
|
* /
|
|
3057
|
-
* / ⚠ AN UPDATE, NOT A QUERY, AND ON PURPOSE (
|
|
3058
|
-
* / therefore CANNOT persist a read count; this runs on
|
|
3059
|
-
* / counters, so a builder whose SDK calls `startSession()`
|
|
3060
|
-
* / byproduct of normal use rather than through an elective,
|
|
3061
|
-
* / update latency and consensus cost here, and get a recorded
|
|
3180
|
+
* / ⚠ AN UPDATE, NOT A QUERY, AND ON PURPOSE (a read served as an update says why).
|
|
3181
|
+
* / `readMemory`/`readMemoryBatch` are queries and therefore CANNOT persist a read count; this runs on
|
|
3182
|
+
* / the update path and bumps the reuse counters, so a builder whose SDK calls `startSession()`
|
|
3183
|
+
* / registers a weekly-reused engram as a byproduct of normal use rather than through an elective,
|
|
3184
|
+
* / separate read. Callers should expect update latency and consensus cost here, and get a recorded
|
|
3185
|
+
* / read in exchange.
|
|
3062
3186
|
* /
|
|
3063
3187
|
* / ⚠ IT DOES NOT RETURN EVERYTHING, and the omission is deliberate: `config/` and `secrets/` are
|
|
3064
3188
|
* / SKIPPED. Those are operational, not agent memory, and must never be blindly spilled into a
|
|
@@ -3077,7 +3201,7 @@ export interface Engram {
|
|
|
3077
3201
|
* / Ed25519 key that opened it. The voucher still carries the amount and the sequence; the
|
|
3078
3202
|
* / authorization is now the call itself, and the canister no longer checks a voucher signature.
|
|
3079
3203
|
* / A stranger can still pay to use this rail — by opening a session of their own.
|
|
3080
|
-
* / ⟨CORRECTED 2026-09-30, the owner's
|
|
3204
|
+
* / ⟨CORRECTED 2026-09-30, the owner's fresh-key ruling⟩ Not the payer: the session's own key
|
|
3081
3205
|
* / — the fresh Ed25519 key the payer named at open — calling as itself. The payer, who opened
|
|
3082
3206
|
* / the session and closes it, is refused here like anyone else who is not that key.
|
|
3083
3207
|
* / ⟨CORRECTED 2026-09-30, review⟩ …unless the payer named their own identity key at open, which
|
|
@@ -3139,7 +3263,7 @@ export interface Engram {
|
|
|
3139
3263
|
*/
|
|
3140
3264
|
setAgentRevisablePaths: ActorMethod<[Array<string>], Result_2>;
|
|
3141
3265
|
/**
|
|
3142
|
-
* / ⟨0.16.0 —
|
|
3266
|
+
* / ⟨0.16.0 — the interface plan's entry⟩ Returns the APPLIED config, which is how this closes the
|
|
3143
3267
|
* / setter-without-a-getter gap without adding a method: the write is the read.
|
|
3144
3268
|
* /
|
|
3145
3269
|
* / `prunedBackups` is the part that matters. Enforcing a retention cap DELETES finalized backups
|
|
@@ -3148,7 +3272,7 @@ export interface Engram {
|
|
|
3148
3272
|
* / by a `Debug.print` nobody reads. An owner lowering the cap is destroying their own backups;
|
|
3149
3273
|
* / they are told how many, in the reply and in the audit line.
|
|
3150
3274
|
* /
|
|
3151
|
-
* / ⟨2026-10-21, the owner's
|
|
3275
|
+
* / ⟨2026-10-21, the owner's answers on backups in the mobile-first app design⟩ The number now bounds EACH creator's
|
|
3152
3276
|
* / backups of the kind (`Backup.enforceRetention`): an agent's finalize prunes only that agent's
|
|
3153
3277
|
* / own, and this setter applies the number to every creator's set, so `prunedBackups` counts
|
|
3154
3278
|
* / across all of them. "The write is the read" above went stale for a second phone, which never
|
|
@@ -3187,7 +3311,7 @@ export interface Engram {
|
|
|
3187
3311
|
* / pairs this call with a migration (`useMemoryEncryption`'s `migrate` / `migrateToPlaintext`)
|
|
3188
3312
|
* / for exactly that reason; a caller reaching this method directly gets the flag and nothing else.
|
|
3189
3313
|
* /
|
|
3190
|
-
* / ⚠ ENABLING IS REFUSED while the
|
|
3314
|
+
* / ⚠ ENABLING IS REFUSED while the spawning registry's principal holds memory-read access as an
|
|
3191
3315
|
* / agent — it could derive the decryption key, which would make Private mode a claim rather
|
|
3192
3316
|
* / than a property. Revoke that agent's read access first. The refusal says so, and it is a
|
|
3193
3317
|
* / `#Conflict` rather than a `#Refused` because the caller IS the owner and the problem is the
|
|
@@ -3221,7 +3345,7 @@ export interface Engram {
|
|
|
3221
3345
|
* / Per-prefix retention policy. The longest rule that covers a path wins; anything uncovered
|
|
3222
3346
|
* / keeps everything.
|
|
3223
3347
|
* /
|
|
3224
|
-
* / ⟨2026-10-21, the owner's
|
|
3348
|
+
* / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ "Covers" is the folder matcher
|
|
3225
3349
|
* / (`AgentPaths.covers`, through `RetentionPolicy.resolve`): a rule ending in "/" governs
|
|
3226
3350
|
* / everything beneath it, any other rule exactly one path. It was bare text prefix until that day.
|
|
3227
3351
|
* /
|
|
@@ -3263,7 +3387,7 @@ export interface Engram {
|
|
|
3263
3387
|
*/
|
|
3264
3388
|
setPaidMemoryReadEnabled: ActorMethod<[boolean], Result_2>;
|
|
3265
3389
|
/**
|
|
3266
|
-
* / Open or close the paid-memory WRITE rail (
|
|
3390
|
+
* / Open or close the paid-memory WRITE rail (off by default since 2026-08-26). Owner-only, like its read twin.
|
|
3267
3391
|
* /
|
|
3268
3392
|
* / Kept as a SEPARATE flag rather than widening `setPaidMemoryReadEnabled` into one switch: an
|
|
3269
3393
|
* / owner selling read access has not thereby agreed to sell write access, and a single flag makes
|
|
@@ -3272,11 +3396,11 @@ export interface Engram {
|
|
|
3272
3396
|
*/
|
|
3273
3397
|
setPaidMemoryWriteEnabled: ActorMethod<[boolean], Result_2>;
|
|
3274
3398
|
/**
|
|
3275
|
-
* / ⟨0.16.0,
|
|
3276
|
-
* / split is worth stating once for the whole whole-value-config family below:
|
|
3277
|
-
* / the CALLER'S to fix and retrying with a corrected list works, while "max 20"
|
|
3278
|
-
* / this engram that no argument gets around. A caller that cannot tell those apart
|
|
3279
|
-
* / forever or gives up on a request that was one character from valid.
|
|
3399
|
+
* / ⟨0.16.0, refusals are values, never traps⟩ Every validation refusal here is `#Invalid` and the cap
|
|
3400
|
+
* / is `#Conflict`, and the split is worth stating once for the whole whole-value-config family below:
|
|
3401
|
+
* / a malformed path is the CALLER'S to fix and retrying with a corrected list works, while "max 20"
|
|
3402
|
+
* / is a property of this engram that no argument gets around. A caller that cannot tell those apart
|
|
3403
|
+
* / either edits forever or gives up on a request that was one character from valid.
|
|
3280
3404
|
*/
|
|
3281
3405
|
setProtectedPaths: ActorMethod<[Array<string>], Result_2>;
|
|
3282
3406
|
/**
|
|
@@ -3299,14 +3423,14 @@ export interface Engram {
|
|
|
3299
3423
|
/**
|
|
3300
3424
|
* / Set the most this engram may spend per day ACROSS EVERY CALLER — five agents, the owner and the
|
|
3301
3425
|
* / marketplace together. `null` removes the ceiling. ⟨2026-09-28⟩
|
|
3302
|
-
* / ⟨CORRECTED 2026-09-29, review finding
|
|
3426
|
+
* / ⟨CORRECTED 2026-09-29, a review finding: "spend" was too wide. The ceiling covers the x402
|
|
3303
3427
|
* / payments this engram signs (`signX402Payment` and the marketplace's `sysSignX402Payment`) and
|
|
3304
3428
|
* / nothing else: it is the most this engram may sign in x402 payments per day. Two other signing
|
|
3305
3429
|
* / paths are NOT counted against it — typed-data signatures (`signEip712` / `sysSignEip712`),
|
|
3306
3430
|
* / bounded instead by each registered type's daily count and destination list; and agent-
|
|
3307
3431
|
* / registration transactions (`signEngramRegistration`), bounded by three per caller per day and
|
|
3308
3432
|
* / the 500-gwei gas ceiling. Whether the ceiling should cover them is a separate owner question.⟩
|
|
3309
|
-
* / ⟨2026-10-14, the owner's
|
|
3433
|
+
* / ⟨2026-10-14, the owner's typed-data signing rulings⟩ Typed-data signatures are now bounded by each
|
|
3310
3434
|
* / registered type's daily count, its per-field rules ("at most N", "must equal X") and ITS OWN
|
|
3311
3435
|
* / destination list, and the signing floor (`SigningFloor`) guards them as it guards x402 payments.
|
|
3312
3436
|
* / They are still not counted against this ceiling.
|
|
@@ -3320,15 +3444,15 @@ export interface Engram {
|
|
|
3320
3444
|
* / A payment that would take today's engram-wide total past this number is not signed: the caller
|
|
3321
3445
|
* / gives a reason and it becomes a row in the approval queue, exactly as over a per-caller cap.
|
|
3322
3446
|
* / `0` is allowed and means every payment needs the owner's approval.
|
|
3323
|
-
* / ⟨CORRECTED 2026-09-29, review finding
|
|
3447
|
+
* / ⟨CORRECTED 2026-09-29, a review finding: not every payment — a payment of amount 0 crosses no
|
|
3324
3448
|
* / limit, so it is signed under a ceiling of 0 too. Whether amount-0 payments should be refused is
|
|
3325
|
-
* / an open owner question.⟩ ⟨CORRECTED 2026-09-29, later — the owner ruled
|
|
3449
|
+
* / an open owner question.⟩ ⟨CORRECTED 2026-09-29, later — the owner ruled:
|
|
3326
3450
|
* / a payment of amount 0 is now refused by name before any limit is read (`X402Input.refusal`), so
|
|
3327
3451
|
* / under a ceiling of 0 every payment that can be signed at all does need the owner's approval.
|
|
3328
3452
|
* / And a new engram no longer starts with no ceiling: it starts at `SpendCeiling.DEFAULT_ENGRAM_DAY`
|
|
3329
|
-
* / ($10.00 a day
|
|
3330
|
-
* /
|
|
3331
|
-
* /
|
|
3453
|
+
* / ($10.00 a day, as the owner ruled).⟩ Takes effect on the next payment, counted against what was
|
|
3454
|
+
* / ALREADY spent today (the total is kept whether or not a ceiling is set), so setting a ceiling at
|
|
3455
|
+
* / noon does not grant a fresh day.
|
|
3332
3456
|
* /
|
|
3333
3457
|
* / Unlike `setSpendPolicy`, this does NOT auto-approve pending requests it now covers — a request
|
|
3334
3458
|
* / held by the ceiling waits for `approveRequest`, or the caller retries against the new ceiling.
|
|
@@ -3367,7 +3491,7 @@ export interface Engram {
|
|
|
3367
3491
|
* /
|
|
3368
3492
|
* / The cooldown defaults to five minutes. `cooldownSeconds = 0` removes the gap entirely, which
|
|
3369
3493
|
* / is a real choice and not an error.
|
|
3370
|
-
* / ⟨
|
|
3494
|
+
* / ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ ONE RECORD, NOT TWO ADJACENT NATS. This took
|
|
3371
3495
|
* / `(newMaxCkusdcE6s : Nat, cooldownSeconds : Nat)` — the documented swap class, and a live one:
|
|
3372
3496
|
* / the suite calls `setTopUpLimits(10_000_000n, 300n)`, and a caller who transposes those gets a
|
|
3373
3497
|
* / 300-e6 cap with a 116-DAY cooldown. Candid matches positionally and both are `nat`, so the
|
|
@@ -3398,14 +3522,14 @@ export interface Engram {
|
|
|
3398
3522
|
setWorldIdProof: ActorMethod<[string, string], Result_2>;
|
|
3399
3523
|
/**
|
|
3400
3524
|
* / Sign a registered type. ONE call, owner-only, freeze-gated — the delay lives on registration
|
|
3401
|
-
* / (
|
|
3525
|
+
* / (the typed-data design of 2026-08-04), never here: an emergency withdrawal must not need two owner round-trips.
|
|
3402
3526
|
* /
|
|
3403
|
-
* / ⟨0.16.0⟩ PERSISTS beside the market's `sysSignEip712` (
|
|
3527
|
+
* / ⟨0.16.0⟩ PERSISTS beside the market's `sysSignEip712` (ruled in the 0.16.0 interface plan). The owner does
|
|
3404
3528
|
* / not lose the ability to sign because a marketplace gained it, and the two share every control
|
|
3405
3529
|
* / below the caller gate.
|
|
3406
3530
|
* /
|
|
3407
|
-
* / ⟨2026-11-02, the owner's ruling
|
|
3408
|
-
* / — the child build's
|
|
3531
|
+
* / ⟨2026-11-02, the owner's ruling to take the recommended answers (the sign-in "approves trading keys")
|
|
3532
|
+
* / — the child build's withdrawal-pinning step⟩ In an engram opened through another, a type named
|
|
3409
3533
|
* / `HyperliquidTransaction:ApproveAgent` (`Eip712Policy.childSignInOnlyToSign`) is signed by the
|
|
3410
3534
|
* / sign-in alone: the key file is refused it by name, and the sign-in may sign it (as the owner, on
|
|
3411
3535
|
* / the record). Every other type is the key file's to sign, as before. An access check beside the
|
|
@@ -3421,15 +3545,15 @@ export interface Engram {
|
|
|
3421
3545
|
* / 2026-08-17; `registerAgent` — the engram method that broadcast the registration itself — left
|
|
3422
3546
|
* / the candid surface in commit d25b53b, so the comparison had outlived its other term. The
|
|
3423
3547
|
* / saving was real and is now simply the shape of this method: no RPC outcall, no receipt poll.
|
|
3424
|
-
* / ⟨
|
|
3548
|
+
* / ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ ONE REQUEST RECORD, not three adjacent nats.
|
|
3425
3549
|
* /
|
|
3426
|
-
* / ⟨
|
|
3427
|
-
* / signEip712 + registered type") and
|
|
3550
|
+
* / ⟨The owner's ruling to keep it⟩ This method KEEPS. The 0.16.0 interface plan dispositions it `die`
|
|
3551
|
+
* / ("test-only; folds into signEip712 + registered type") and records the owner's answer: RULED 2026-08-20 —
|
|
3428
3552
|
* / KEEP, ERC-8004 stays. Both halves of the `die` rationale fail at the site: it is not
|
|
3429
3553
|
* / test-only (a downstream web client's billing page calls it), and it is not a shipped customer
|
|
3430
3554
|
* / capability either — that panel sits behind `evmBilling: { mode: 'off' }` in both the flag
|
|
3431
3555
|
* / defaults and the shipped config, and its own dialog says the signature is dormant and not
|
|
3432
|
-
* / broadcastable. It is a real surface in a disabled state, which is neither thing the
|
|
3556
|
+
* / broadcastable. It is a real surface in a disabled state, which is neither thing the plan's
|
|
3433
3557
|
* / row claimed.
|
|
3434
3558
|
* /
|
|
3435
3559
|
* / THE SWAP CLASS, and here it is three-deep: `nonce`, `maxFeePerGas` and `maxPriorityFeePerGas`
|
|
@@ -3459,9 +3583,9 @@ export interface Engram {
|
|
|
3459
3583
|
* / Client probes the URL, extracts chain/token/recipient/amount from the 402, and calls this.
|
|
3460
3584
|
* / Canister signs → returns header → client retries with header.
|
|
3461
3585
|
* /
|
|
3462
|
-
* / ⟨0.16.0⟩ PERSISTS beside the market's `sysSignX402Payment` (
|
|
3586
|
+
* / ⟨0.16.0⟩ PERSISTS beside the market's `sysSignX402Payment` (ruled in the 0.16.0 interface plan). An agent
|
|
3463
3587
|
* / with an x402 rail does not lose it because a marketplace gained one, and both run the same body.
|
|
3464
|
-
* / ⟨
|
|
3588
|
+
* / ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ ONE REQUEST RECORD, not eight positional arguments.
|
|
3465
3589
|
* /
|
|
3466
3590
|
* / THE HAZARD IS FUNDS MISDIRECTION, and it is the sharpest case in this batch. `tokenAddress`
|
|
3467
3591
|
* / and `recipient` were ADJACENT and both `Text`. Candid matches positionally, so transposing
|
|
@@ -3492,7 +3616,7 @@ export interface Engram {
|
|
|
3492
3616
|
Result_4
|
|
3493
3617
|
>;
|
|
3494
3618
|
/**
|
|
3495
|
-
* / ⟨2026-10-21, the owner's
|
|
3619
|
+
* / ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ A GUARDIAN STEPS DOWN: the caller ends their own
|
|
3496
3620
|
* / guardianship of this engram. It removes a power from the one who holds it and grants none.
|
|
3497
3621
|
* / Before, only the owner could remove a guardian, so one who wanted out could only stop watching
|
|
3498
3622
|
* / without anyone knowing — worse than an honest exit on the record.
|
|
@@ -3527,7 +3651,7 @@ export interface Engram {
|
|
|
3527
3651
|
/**
|
|
3528
3652
|
* / OWNER force-close, for a session the payer abandoned.
|
|
3529
3653
|
* /
|
|
3530
|
-
* / ⟨
|
|
3654
|
+
* / ⟨ruled 2026-08-26: owner-gated, NO guardian.⟩ It moves someone else's money, and only ever
|
|
3531
3655
|
* / BACK TO THEM — the destination is the session's own payer and is not caller-influenced, so the
|
|
3532
3656
|
* / guardian ceremony that guards destination changes buys nothing here and would strand payers on
|
|
3533
3657
|
* / engrams that have no guardian.
|
|
@@ -3551,14 +3675,14 @@ export interface Engram {
|
|
|
3551
3675
|
* /
|
|
3552
3676
|
* / CALLER: the metrics reader the spawning registry named on this engram (`metricsReaderId`), and
|
|
3553
3677
|
* / nobody else — not the owner (who reads `getAgentSeatWeeks`), an agent, a guardian, the registry,
|
|
3554
|
-
* / the biller or the market (
|
|
3678
|
+
* / the biller or the market (the surface-budget rule of 2026-08-16: a `sys` method names its caller). Answered only while the
|
|
3555
3679
|
* / owner leaves it on (`seatWeeksReadEnabled`, on from birth by the owner's ruling of 2026-10-02).
|
|
3556
3680
|
* /
|
|
3557
3681
|
* / WHAT LEAVES: per engagement, the pairing day, the first and last payment-signature days, the
|
|
3558
3682
|
* / 64-week map and the count — NO root, NO invite, NO amount, recipient or nonce. The reader matches
|
|
3559
3683
|
* / rows to the registry's engagements by day, so no agent's identity leaves this engram here.
|
|
3560
3684
|
* /
|
|
3561
|
-
* / ⟨
|
|
3685
|
+
* / ⟨update-for-read⟩ UPDATE, NOT QUERY, so a refusal leaves its `sysGetAgentSeatWeeks.denied` row naming the
|
|
3562
3686
|
* / caller's class, and an answered read leaves a `sysGetAgentSeatWeeks` row in the read log — the
|
|
3563
3687
|
* / owner can see every time the reader read. A refusal is `#Refused` naming this method and the
|
|
3564
3688
|
* / class (`SeatWeeks.readRefusal`), never an empty list: an empty list is a real answer ("no agent
|
|
@@ -3590,17 +3714,17 @@ export interface Engram {
|
|
|
3590
3714
|
*/
|
|
3591
3715
|
sysGetRailHealth: ActorMethod<[], Result_8>;
|
|
3592
3716
|
/**
|
|
3593
|
-
* / The
|
|
3717
|
+
* / The biller reads how many signatures this engram has produced, per caller and in total.
|
|
3594
3718
|
* / ⟨2026-09-28⟩ The owner's decision of that date: a running counter on the engram, exported to
|
|
3595
|
-
* / the
|
|
3719
|
+
* / the biller — and to nobody else (`AccessControl.requireCashierForSignatureCounts`).
|
|
3596
3720
|
* /
|
|
3597
|
-
* / ONE NEW METHOD ON THE ENGRAM, not a field on the registry's `sysMeterEngram` reply.
|
|
3721
|
+
* / ONE NEW METHOD ON THE ENGRAM, not a field on the registry's `sysMeterEngram` reply. An earlier study
|
|
3598
3722
|
* / ruled out widening that reply to protect deployed clients, and that reason is gone (nothing is
|
|
3599
3723
|
* / launched; the next release reinstalls every canister). The deciding fact is a different one,
|
|
3600
3724
|
* / read at the site: `sysMeterEngram` is the REGISTRY's method and answers from the management
|
|
3601
3725
|
* / canister's `canister_status` — the registry holds no signature count. Carrying the count in its
|
|
3602
3726
|
* / reply would add a registry-to-engram call inside the meter and a second trust hop between the
|
|
3603
|
-
* / counter and the biller. The
|
|
3727
|
+
* / counter and the biller. The biller is already the canister this engram recognises (`cashierId`) and
|
|
3604
3728
|
* / already calls it directly (`sysRecordFeeEvent`), so it reads the count at the source.
|
|
3605
3729
|
* /
|
|
3606
3730
|
* / UPDATE, NOT QUERY, so that a refusal leaves its `sysGetSignatureCounts.denied` row: a refused
|
|
@@ -3619,17 +3743,24 @@ export interface Engram {
|
|
|
3619
3743
|
* / not go under, and until when to keep its timers quiet.
|
|
3620
3744
|
* /
|
|
3621
3745
|
* / CALLER: the registry that spawned this engram, from inside its owner's `restartMyStoppedEngram`,
|
|
3622
|
-
* / and nobody else (
|
|
3746
|
+
* / and nobody else (the surface-budget rule: a `sys` method names its caller) — the same authority as `sysSetBillerId`. The owner's next conversion
|
|
3623
3747
|
* / that lands pays the loan back first. The loan is capped at `RestartRepay.LOAN_MAX_CYCLES` and
|
|
3624
3748
|
* / the quiet window at 30 minutes, whatever the registry says.
|
|
3749
|
+
* / ⟨2026-11-15, from an adversarial review, beside "and nobody else" above⟩ AND ONLY WHILE THAT
|
|
3750
|
+
* / CALLER IS ONE OF THIS ENGRAM'S CONTROLLERS, asked of the network in this call (`controllerRefusal`): nobody else
|
|
3751
|
+
* / can have started it. A note changes no loan while one is unpaid, takes one new loan and opens one
|
|
3752
|
+
* / quiet window in any 24 hours (`RestartRepay.noteRestart`); a new loan inside the 24 hours is
|
|
3753
|
+
* / refused `#Conflict` with the time to retry after, and the registry's own retry delivers it then.
|
|
3754
|
+
* / REPLIES: `#Refused` (not the registry, or not a controller), `#Conflict` (a loan was taken less
|
|
3755
|
+
* / than 24 hours ago), `#Ok`.
|
|
3625
3756
|
*/
|
|
3626
3757
|
sysNoteRestart: ActorMethod<
|
|
3627
3758
|
[{ keepCycles: bigint; loan: bigint; quietUntilNs: bigint }],
|
|
3628
3759
|
Result_2
|
|
3629
3760
|
>;
|
|
3630
3761
|
/**
|
|
3631
|
-
* / Rent lifecycle notice — how the OWNER (not the agent) learns their subscription lapsed.
|
|
3632
|
-
* / shipped the handoff but every alarm it added talks to the operating service's watchdog; the
|
|
3762
|
+
* / Rent lifecycle notice — how the OWNER (not the agent) learns their subscription lapsed. The rent-handoff
|
|
3763
|
+
* / work shipped the handoff but every alarm it added talks to the operating service's watchdog; the
|
|
3633
3764
|
* / doc named the debt plainly: "an owner learns of their own lapse only by looking." This closes
|
|
3634
3765
|
* / it through the channel the owner already has: the entry lands in the audit log under `rent.*`,
|
|
3635
3766
|
* / ActionAlerts classifies that as #money (default ON), and the drain delivers it to the owner's
|
|
@@ -3647,16 +3778,16 @@ export interface Engram {
|
|
|
3647
3778
|
* / ⟨0.16.0, sys tier⟩ THE MARKET TELLING CUSTODY, which is the half of the wallet-activation
|
|
3648
3779
|
* / story the engram cannot see for itself.
|
|
3649
3780
|
* /
|
|
3650
|
-
* /
|
|
3781
|
+
* / The 0.16.0 split moved the storefront to the market, so listing an endpoint — a seller offering to be paid —
|
|
3651
3782
|
* / happens on a canister this one does not observe. `walletActivatedAt` exists to raise a custody
|
|
3652
3783
|
* / decision (a wallet-bearing engram is sovereign-by-default and its owner has a claimSovereignty
|
|
3653
3784
|
* / still to complete), and a seller who has never derived an EVM address would have gone
|
|
3654
3785
|
* / unstamped forever. That is the under-reporting direction, which is the harmful one: a missing
|
|
3655
3786
|
* / flag retires a decision that is still pending.
|
|
3656
3787
|
* /
|
|
3657
|
-
* / ONE METHOD, NOT A FAMILY (
|
|
3658
|
-
* / session — is NOT here and is not an omission: measured at the market 2026-08-20,
|
|
3659
|
-
* / caller is a BUYER, and a buying engram signs with a key it derived through `getEvmAddress`,
|
|
3788
|
+
* / ONE METHOD, NOT A FAMILY (every method has a tier and a named caller). The other surface the old comment
|
|
3789
|
+
* / named — opening a payment session — is NOT here and is not an omission: measured at the market 2026-08-20,
|
|
3790
|
+
* / `openSession`'s caller is a BUYER, and a buying engram signs with a key it derived through `getEvmAddress`,
|
|
3660
3791
|
* / which stamps. It is already marked before it can pay. Adding a case for it would be surface
|
|
3661
3792
|
* / bought for a gap that does not exist.
|
|
3662
3793
|
* /
|
|
@@ -3675,35 +3806,36 @@ export interface Engram {
|
|
|
3675
3806
|
*/
|
|
3676
3807
|
sysNotifyWalletActivity: ActorMethod<[string], Result_2>;
|
|
3677
3808
|
/**
|
|
3678
|
-
* / The rent RECEIPT seam (
|
|
3679
|
-
* / the engram appends a `fee.recorded` line to its own audit chain. It
|
|
3809
|
+
* / The rent RECEIPT seam (rent is the biller's; the engram keeps receipts): the biller tells this engram
|
|
3810
|
+
* / that money moved on its behalf, and the engram appends a `fee.recorded` line to its own audit chain. It
|
|
3811
|
+
* / computes nothing.
|
|
3680
3812
|
* /
|
|
3681
3813
|
* / ⚠ GATED TO TWO PRINCIPALS AND NEITHER IS THE OWNER — the SPAWNING REGISTRY or the CONFIGURED
|
|
3682
3814
|
* / CASHIER. An owner cannot write their own fee receipts, which is the point: a receipt an owner
|
|
3683
|
-
* / could forge is not evidence. `getBillerId` publishes which
|
|
3815
|
+
* / could forge is not evidence. `getBillerId` publishes which biller this engram accepts, so the
|
|
3684
3816
|
* / same fact is checkable from outside.
|
|
3685
3817
|
* /
|
|
3686
|
-
* / This is the whole of what
|
|
3687
|
-
* /
|
|
3688
|
-
* / two is visible rather than reconciled silently.
|
|
3689
|
-
* / ⟨
|
|
3690
|
-
* / arguments.
|
|
3818
|
+
* / This is the whole of what moving rent to the biller left on the engram. Entitlement, custody and
|
|
3819
|
+
* / fee math live on the biller; here there is an append-only record and no arithmetic — so a
|
|
3820
|
+
* / disagreement between the two is visible rather than reconciled silently.
|
|
3821
|
+
* / ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ ONE FEE-EVENT RECORD, not three positional
|
|
3822
|
+
* / arguments. The audit records that the interface review prescribed this fold and it "was refused for a
|
|
3691
3823
|
* / wire-break reason the ruling voids", with the instruction to execute it or ratify
|
|
3692
3824
|
* / positional-forever with a dated note — "silence spends the window". Executed.
|
|
3693
3825
|
* /
|
|
3694
3826
|
* / The argument for a record here is EVOLUTION, not transposition: unlike `setTopUpLimits`'s two
|
|
3695
3827
|
* / adjacent nats, these three types differ, so a swap would not type-check. What positional
|
|
3696
3828
|
* / arguments cost is the next field. A fee event is exactly the shape that grows one — token,
|
|
3697
|
-
* / amount, rate — and
|
|
3829
|
+
* / amount, rate — and the interface-evolution rule (2026-08-16) is that an INBOUND record gains optional fields forever
|
|
3698
3830
|
* / while an argument LIST cannot gain anything without breaking every caller at once.
|
|
3699
3831
|
* /
|
|
3700
|
-
* / ⚠ ALL FOUR CALLERS MOVE IN THE SAME CHANGE, and this is
|
|
3701
|
-
* / inline hand-IDLs in the
|
|
3832
|
+
* / ⚠ ALL FOUR CALLERS MOVE IN THE SAME CHANGE, and this is the fatal direction of the client-subset rule: three
|
|
3833
|
+
* / inline hand-IDLs in the biller and one in the registry declare this method's argument shape
|
|
3702
3834
|
* / structurally. Every one of them sits inside `try { … } catch (_e) {}`, which reads as
|
|
3703
3835
|
* / containment and is not: a reply-decode mismatch calls `ic0.trap` INSIDE the caller's own
|
|
3704
3836
|
* / callback, and Motoko's `catch` sees rejects, never traps. That is the failure that took
|
|
3705
3837
|
* / production monitoring dark for ~33h. The ENGRAM WASM MUST SHIP BEFORE its callers, and
|
|
3706
|
-
* /
|
|
3838
|
+
* / the interface-compatibility gate is suspended for the cut, so nothing mechanical will catch a wrong order.
|
|
3707
3839
|
*/
|
|
3708
3840
|
sysRecordFeeEvent: ActorMethod<
|
|
3709
3841
|
[
|
|
@@ -3716,7 +3848,7 @@ export interface Engram {
|
|
|
3716
3848
|
Result_2
|
|
3717
3849
|
>;
|
|
3718
3850
|
/**
|
|
3719
|
-
* / ⟨2026-11-04, the owner's ruling
|
|
3851
|
+
* / ⟨2026-11-04, the owner's ruling: a marketplace sale is paid into the selling engram's own
|
|
3720
3852
|
* / wallet, and the engram writes each sale to its record⟩ THE MARKET WRITING A SALE TO THIS ENGRAM'S
|
|
3721
3853
|
* / RECORD, after it has paid this engram's own account (ckUSDC) or address (another chain). The
|
|
3722
3854
|
* / money does not pass through here and nothing here moves any: a ledger account needs no running
|
|
@@ -3735,7 +3867,7 @@ export interface Engram {
|
|
|
3735
3867
|
* / IT AWAITS NOTHING, deliberately, and test/market-route-wiring.test.ts rule E3 holds that: no
|
|
3736
3868
|
* / outgoing call means nothing to count under wiring rule 20, and NO WAKE DOOR — a sale brings
|
|
3737
3869
|
* / dollars, not compute, so a paused engram's wake would find no room on every engram that is
|
|
3738
|
-
* / actually paused (
|
|
3870
|
+
* / actually paused (a design question, defaulted to "wakes nothing unless the owner objects").
|
|
3739
3871
|
* /
|
|
3740
3872
|
* / NOT GATED ON a guardian's payment freeze (that stops this engram's own signing — money out;
|
|
3741
3873
|
* / `sysRecordFeeEvent` is not freeze-gated either), on `pauseWrites` (memory writes), or on the
|
|
@@ -3746,40 +3878,56 @@ export interface Engram {
|
|
|
3746
3878
|
* / The listing notice (`sysNotifyWalletActivity`) stays, as ruled 2026-08-20; whether to retire it
|
|
3747
3879
|
* / is the owner's question.
|
|
3748
3880
|
* /
|
|
3749
|
-
* / ⟨2026-11-04, the owner's ruling
|
|
3750
|
-
* / YET", NOT A REFUSAL. With `marketId` null the
|
|
3751
|
-
* / market PARKS the notice (it drops a sale's line
|
|
3752
|
-
* / closes: the money landed and the line was lost for
|
|
3753
|
-
* / sets it later (`sysSetMarketId`), and then
|
|
3754
|
-
* / `registerSeller` writes the line; the market's 30-day age
|
|
3755
|
-
* / `sysRecordSale.denied` row: nothing was denied, and
|
|
3756
|
-
* / row per press would be spam on the owner's read
|
|
3757
|
-
* / once one is set, is still `#Refused` with its
|
|
3758
|
-
* / `marketId` that can be set to null on purpose (a
|
|
3759
|
-
* / mean "never", and parking for 30 days would hold
|
|
3760
|
-
* / Witness: test/market-route/sale-route.test.ts S7 and record-row.test.ts R3.
|
|
3881
|
+
* / ⟨2026-11-04, the owner's ruling that a sale's record line waits until a market is set, beside the
|
|
3882
|
+
* / gate paragraph above⟩ NO MARKET SET YET IS "NOT YET", NOT A REFUSAL. With `marketId` null the
|
|
3883
|
+
* / gate's refusal is answered `#Unavailable`, and the market PARKS the notice (it drops a sale's line
|
|
3884
|
+
* / on any other `#Err` at once — the defect this closes: the money landed and the line was lost for
|
|
3885
|
+
* / good). `marketId` is not final: the registry sets it later (`sysSetMarketId`), and then
|
|
3886
|
+
* / `retrySaleNotices` or the seller's next `registerSeller` writes the line; the market's 30-day age
|
|
3887
|
+
* / cap ends the wait. That arm writes NO `sysRecordSale.denied` row: nothing was denied, and
|
|
3888
|
+
* / `retrySaleNotices` is open to any caller, so a row per press would be spam on the owner's read
|
|
3889
|
+
* / log. A caller that is not the configured market, once one is set, is still `#Refused` with its
|
|
3890
|
+
* / row, unchanged. WHAT WOULD MAKE THIS WRONG: a `marketId` that can be set to null on purpose (a
|
|
3891
|
+
* / market retired from an engram) — then null would mean "never", and parking for 30 days would hold
|
|
3892
|
+
* / a line nobody can write. Witness: test/market-route/sale-route.test.ts S7 and record-row.test.ts R3.
|
|
3761
3893
|
*/
|
|
3762
3894
|
sysRecordSale: ActorMethod<[SaleNotice], Result_2>;
|
|
3763
3895
|
/**
|
|
3764
3896
|
* / Give back what a paid security update advanced this engram and the install did not use.
|
|
3765
3897
|
* /
|
|
3766
3898
|
* / CALLER: the registry that spawned this engram, right after it installed a security update it
|
|
3767
|
-
* / paid for, and nobody else (
|
|
3899
|
+
* / 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
|
|
3768
3900
|
* / above its balance before the update, and what sits above its 30-day reserve plus send headroom
|
|
3769
3901
|
* / (`RestartRepay.giveBack`) — attached to the registry's `sysRepayUpgradeAdvance`, which accepts no
|
|
3770
3902
|
* / more than it advanced. The registry writes off what is not returned; nothing is owed after.
|
|
3771
|
-
* / ⟨CORRECTED 2026-10-28, beside "its 30-day reserve" above — the owner's ruling
|
|
3903
|
+
* / ⟨CORRECTED 2026-10-28, beside "its 30-day reserve" above — the owner's automatic-pause ruling⟩ The reserve is
|
|
3772
3904
|
* / this engram's freezing reserve at its own setting (`freezeReservation` = `lineEstimate`), not a
|
|
3773
3905
|
* / 30-day figure: about 430B more at a ~305-day setting.
|
|
3774
|
-
* / ⟨2026-10-26, the owner's review choice
|
|
3906
|
+
* / ⟨2026-10-26, the owner's review choice: "take back only what we added; anything left over goes
|
|
3775
3907
|
* / to the 90-day write-off"⟩ The registry now names the ONE advance it is asking for (`advanceId`,
|
|
3776
3908
|
* / the one its deposit for this install put on its ledger) and `advance` is that advance's amount
|
|
3777
3909
|
* / alone — never the sum of every advance this engram has out. The engram passes the id back to
|
|
3778
3910
|
* / `sysRepayUpgradeAdvance` unchanged, and the registry settles that advance only. The engram's own
|
|
3779
|
-
* / caps are unchanged (`RestartRepay.giveBack`). HONEST LIMIT, unchanged by
|
|
3911
|
+
* / caps are unchanged (`RestartRepay.giveBack`). HONEST LIMIT, unchanged by that choice: the engram cannot
|
|
3780
3912
|
* / tell its owner's top-up from the unused advance, so when the install used part of the advance and
|
|
3781
3913
|
* / the owner added compute meanwhile, up to the part the install used can still come from the
|
|
3782
3914
|
* / owner's top-up (the cap is the advance, not its unused part).
|
|
3915
|
+
* / ⟨2026-11-15, from an adversarial review, beside "and nobody else" and "The engram's own caps are
|
|
3916
|
+
* / unchanged" above⟩ THE CAPS CHANGED, and the caller's figures are upper bounds only. Answered
|
|
3917
|
+
* / once per upgrade this engram saw, within 30 minutes of it (`upgradeSeenAtNs`); only to a caller
|
|
3918
|
+
* / that is one of its controllers, asked of the network in this call (`controllerRefusal`); never more than
|
|
3919
|
+
* / 320.005B (`RestartRepay.ADVANCE_MAX_CYCLES`); and never taking this engram under its own
|
|
3920
|
+
* / signing floor (`RestartRepay.aboveFloor`) — was line + 0.1T, which is under that floor.
|
|
3921
|
+
* / ⟨CORRECTED 2026-11-15, later, beside "never taking this engram under its own signing floor"
|
|
3922
|
+
* / above⟩ That rule returned 0 to every registry that had really paid: a paid engram is under its
|
|
3923
|
+
* / signing floor by construction (MEASURED: 138.66B advanced, 0 returned). The floor is now
|
|
3924
|
+
* / `RestartRepay.giveBackFloor`: an update never leaves this engram lower than it was before it.
|
|
3925
|
+
* / One that could sign before the update can sign after the give-back; one already under its
|
|
3926
|
+
* / signing floor returns what was advanced and no more, never under its reserve and send headroom.
|
|
3927
|
+
* / The balance before is the caller's figure; RestartRepay.mo's header says what a controller that
|
|
3928
|
+
* / lies about it can take (at most the cap, once per real upgrade, never below reserve + headroom).
|
|
3929
|
+
* / RestartRepay.mo's header says what a controller can still do. The record line gains `left=`:
|
|
3930
|
+
* / what actually left, beside the registry's `returned=`.
|
|
3783
3931
|
*/
|
|
3784
3932
|
sysReturnUpgradeAdvance: ActorMethod<
|
|
3785
3933
|
[{ balanceBefore: bigint; advanceId: bigint; advance: bigint }],
|
|
@@ -3789,8 +3937,8 @@ export interface Engram {
|
|
|
3789
3937
|
* / Point this engram at the biller that converts its tokens → cycles. Settable, not hardcoded:
|
|
3790
3938
|
* / coupling is by principal id, so the same wasm runs against any deployment's biller.
|
|
3791
3939
|
* /
|
|
3792
|
-
* / ⟨0.16.0,
|
|
3793
|
-
* /
|
|
3940
|
+
* / ⟨0.16.0, rent is the biller's; the engram keeps receipts⟩ Renamed from `setCashierId`, and NARROWED
|
|
3941
|
+
* / to the spawning registry (ruled in the 0.16.0 interface plan). Two changes, for two reasons:
|
|
3794
3942
|
* / · "cashier" is a PLATFORM word and this is the OSS wire. `biller` names the role, not the
|
|
3795
3943
|
* / product that fills it.
|
|
3796
3944
|
* / · The write is now sys-tier. It previously accepted the OWNER as well, and that second
|
|
@@ -3805,10 +3953,11 @@ export interface Engram {
|
|
|
3805
3953
|
sysSetBillerId: ActorMethod<[Principal], Result_2>;
|
|
3806
3954
|
/**
|
|
3807
3955
|
* / Give this engram its BIRTH CHAIN: its ancestors' birth records and its own, root first, its own
|
|
3808
|
-
* / last ⟨2026-10-26, the owner's lineage rulings
|
|
3956
|
+
* / last ⟨2026-10-26, the owner's lineage rulings: each engram keeps its birth record and its ancestors'
|
|
3957
|
+
* / copies, and the registry certifies each record's fingerprint⟩.
|
|
3809
3958
|
* /
|
|
3810
3959
|
* / CALLER: the registry that spawned this engram, from its birth push or its sweep's retry, and
|
|
3811
|
-
* / nobody else (
|
|
3960
|
+
* / nobody else (the surface-budget rule: a `sys` method names its caller) — the same authority as `sysSetBillerId`, through the named gate
|
|
3812
3961
|
* / `AccessControl.requireSpawningRegistry`. ⚠ THE REGISTRY'S CLIENT DECLARATION IS HAND-WRITTEN
|
|
3813
3962
|
* / (`sysSetBirthChain : ([BirthRecord.BirthRecord]) -> async Wire.Result<()>`, in `mintAndPush`): a
|
|
3814
3963
|
* / different reply type here traps inside the registry's callback, and a different name leaves every
|
|
@@ -3822,7 +3971,7 @@ export interface Engram {
|
|
|
3822
3971
|
sysSetBirthChain: ActorMethod<[Array<BirthRecord>], Result_2>;
|
|
3823
3972
|
/**
|
|
3824
3973
|
* / Name the origin of the page where this engram's owner approves a connector sign-in.
|
|
3825
|
-
* / ⟨2026-11-08, the owner's ruling
|
|
3974
|
+
* / ⟨2026-11-08, the owner's ruling that an engram sends sign-ins to its own environment's app⟩
|
|
3826
3975
|
* /
|
|
3827
3976
|
* / CALLER: the registry that spawned this engram, from its birth push (`pushToNewborn`), and nobody
|
|
3828
3977
|
* / else — the same authority as `sysSetMetricsReaderId`, through the named gate
|
|
@@ -3840,7 +3989,8 @@ export interface Engram {
|
|
|
3840
3989
|
*/
|
|
3841
3990
|
sysSetConsentOrigin: ActorMethod<[string], Result_2>;
|
|
3842
3991
|
/**
|
|
3843
|
-
* / Point this engram at the commerce satellite allowed to ask it for signatures. ⟨0.16.0,
|
|
3992
|
+
* / Point this engram at the commerce satellite allowed to ask it for signatures. ⟨0.16.0, commerce moved to
|
|
3993
|
+
* / the market; signing stayed here⟩
|
|
3844
3994
|
* /
|
|
3845
3995
|
* / SAME AUTHORITY AS `sysSetBillerId`, and for a stronger reason. That one routes money; this one
|
|
3846
3996
|
* / confers the capability to ask this canister to sign with its own tECDSA key. Three writers for
|
|
@@ -3857,7 +4007,7 @@ export interface Engram {
|
|
|
3857
4007
|
* / Name the metrics reader allowed to read this engram's seat weeks (`sysGetAgentSeatWeeks`).
|
|
3858
4008
|
* / ⟨2026-10-02, the owner's ruling of that day⟩
|
|
3859
4009
|
* /
|
|
3860
|
-
* / CALLER: the registry that spawned this engram, and nobody else (
|
|
4010
|
+
* / CALLER: the registry that spawned this engram, and nobody else (the surface-budget rule: a `sys` method names its caller) — the same authority
|
|
3861
4011
|
* / as `sysSetBillerId` and `sysSetMarketId`. The registry calls it once, at spawn, last of its
|
|
3862
4012
|
* / pushes, with exactly this interface: `sysSetMetricsReaderId : (Principal) -> async
|
|
3863
4013
|
* / Wire.Result<()>`. ⚠ THAT CLIENT DECLARATION IS HAND-WRITTEN AT THE REGISTRY: a different NAME
|
|
@@ -3869,34 +4019,38 @@ export interface Engram {
|
|
|
3869
4019
|
* / refused `#Invalid` and nothing changes — a person named here would be handed this engram's seat
|
|
3870
4020
|
* / counts. Set or replaced, never cleared: the owner's control is the switch
|
|
3871
4021
|
* / (`setSeatWeeksReadEnabled`), not the pointer.
|
|
3872
|
-
* / ⟨CORRECTED 2026-10-26, the owner's lineage ruling
|
|
3873
|
-
* / SET ONCE. The same reader again answers `#Ok` and
|
|
3874
|
-
* / (`AccessControl.setOnce` says why). Still never cleared. The
|
|
3875
|
-
* / (`metrics.sysSetMetricsReaderId`) is the evidence of when the read was granted, and to
|
|
4022
|
+
* / ⟨CORRECTED 2026-10-26, the owner's lineage ruling that the market, biller and usage reader are set once
|
|
4023
|
+
* / at birth⟩ "Set or replaced" is no longer true: it is SET ONCE. The same reader again answers `#Ok` and
|
|
4024
|
+
* / changes nothing; another is refused `#Conflict` (`AccessControl.setOnce` says why). Still never cleared. The
|
|
4025
|
+
* / chained record entry (`metrics.sysSetMetricsReaderId`) is the evidence of when the read was granted, and to
|
|
4026
|
+
* / whom.
|
|
3876
4027
|
*/
|
|
3877
4028
|
sysSetMetricsReaderId: ActorMethod<[Principal], Result_2>;
|
|
3878
4029
|
/**
|
|
3879
|
-
* / The market asks this engram to sign a registered type —
|
|
4030
|
+
* / The market asks this engram to sign a registered type — the seam where commerce meets signing,
|
|
4031
|
+
* / settlement leg. ⟨0.16.0⟩
|
|
3880
4032
|
* /
|
|
3881
4033
|
* / THE ENGRAM DOES NOT TRUST THE MARKET WITH ANYTHING BEYOND "ask". Every control that bounds
|
|
3882
4034
|
* / what may be signed stays here and is unchanged: the type must already be OWNER-REGISTERED
|
|
3883
4035
|
* / (the market cannot introduce a shape), its cool-off must have elapsed, its per-type daily cap
|
|
3884
4036
|
* / still binds, the destination allowlist still fails closed, and a payments freeze still stops
|
|
3885
4037
|
* / it. What the market supplies is the request; what the engram supplies is the whole policy.
|
|
3886
|
-
* / ⟨2026-10-14⟩ And the type's per-field rules, its own destination list (ruling
|
|
3887
|
-
* / signing floor (ruling
|
|
3888
|
-
* / owner; a refusal here is on the chained record under the market's caller
|
|
4038
|
+
* / ⟨2026-10-14⟩ And the type's per-field rules, its own destination list (the destination-list ruling) and
|
|
4039
|
+
* / the signing floor (the typed-data signing-floor ruling) — all in `eip712SignFor`, so they bind the
|
|
4040
|
+
* / market as they bind the owner; a refusal here is on the chained record under the market's caller
|
|
4041
|
+
* / and role.
|
|
3889
4042
|
* /
|
|
3890
4043
|
* / That is what "signatures only" means in code, and it is why this method needs no new authority
|
|
3891
4044
|
* / model: an unregistered typeId is refused for the market exactly as it is for the owner.
|
|
3892
4045
|
* /
|
|
3893
|
-
* / ⟨2026-11-02, the child build's
|
|
4046
|
+
* / ⟨2026-11-02, the child build's withdrawal-pinning step⟩ In an engram opened through another, approving a trading
|
|
3894
4047
|
* / key (`HyperliquidTransaction:ApproveAgent`) is refused to the market (`#Refused`): it is signed by
|
|
3895
4048
|
* / that engram's sign-in alone, through `signEip712`.
|
|
3896
4049
|
*/
|
|
3897
4050
|
sysSignEip712: ActorMethod<[Uint8Array | number[], Array<[string, Eip712Value]>], Result_5>;
|
|
3898
4051
|
/**
|
|
3899
|
-
* / The market asks this engram to sign an x402 payment —
|
|
4052
|
+
* / The market asks this engram to sign an x402 payment — the seam where commerce meets signing, the
|
|
4053
|
+
* / paid-request leg. ⟨0.16.0⟩
|
|
3900
4054
|
* /
|
|
3901
4055
|
* / THE MARKET SUPPLIES THE REQUEST; THE ENGRAM SUPPLIES THE POLICY. Every control below the caller
|
|
3902
4056
|
* / gate is unchanged and still binds: a payments freeze stops it, the recipient must be on the
|
|
@@ -3906,10 +4060,13 @@ export interface Engram {
|
|
|
3906
4060
|
* / `#ApprovalPending` is a real answer here, not an error, exactly as it is for an agent: the
|
|
3907
4061
|
* / market is told the spend needs the owner and can retry with the `approvalId` once granted. A
|
|
3908
4062
|
* / caller that treats it as a failure will simply never complete a spend the owner would have
|
|
3909
|
-
* / allowed — which is the safe direction, and the reason it rides inside `Ok` (
|
|
4063
|
+
* / allowed — which is the safe direction, and the reason it rides inside `Ok` (results spelled Ok/Err).
|
|
3910
4064
|
* /
|
|
3911
4065
|
* / READ `x402SignFor`'s declaration before setting a policy for this caller. The cap is ONE bucket
|
|
3912
4066
|
* / for ALL market traffic; per-seller limits are not expressible in the store it reads.
|
|
4067
|
+
* /
|
|
4068
|
+
* / ⟨2026-11-16⟩ REFUSED UNTIL THE OWNER SETS THAT POLICY. While the owner has set no spending
|
|
4069
|
+
* / policy for the market's principal, this method and `sysSignEip712` sign nothing.
|
|
3913
4070
|
*/
|
|
3914
4071
|
sysSignX402Payment: ActorMethod<
|
|
3915
4072
|
[bigint, string, string, bigint, string, string, [] | [string], [] | [string]],
|
|
@@ -3929,21 +4086,22 @@ export interface Engram {
|
|
|
3929
4086
|
*/
|
|
3930
4087
|
testGuardianAlert: ActorMethod<[], Result_2>;
|
|
3931
4088
|
/**
|
|
3932
|
-
* / RENAMED from `init` (
|
|
3933
|
-
* / owner-facing operation on the canister — and it was named for
|
|
3934
|
-
* / the actor's own `service : (initArgs)`. A reader scanning for
|
|
3935
|
-
* / nothing; a reader scanning for `init` found a constructor.
|
|
4089
|
+
* / RENAMED from `init` (a name says what happens, not the mechanism). This is the OWNERSHIP-TRANSFER
|
|
4090
|
+
* / method — the most consequential owner-facing operation on the canister — and it was named for
|
|
4091
|
+
* / first-time setup, colliding with the actor's own `service : (initArgs)`. A reader scanning for
|
|
4092
|
+
* / "how does ownership move" found nothing; a reader scanning for `init` found a constructor.
|
|
3936
4093
|
* /
|
|
3937
4094
|
* / Its read counterpart is `listOwnershipTransfers` (was `getOwnershipHistory`), which now shares
|
|
3938
4095
|
* / the stem — the pair was previously unfindable from either half.
|
|
3939
|
-
* / ⟨0.16.0,
|
|
4096
|
+
* / ⟨0.16.0, refusals are values, never traps⟩ TWO OF THESE REFUSALS ARE THE FIRST-CLAIM PATH, and
|
|
4097
|
+
* / they are not authorization.
|
|
3940
4098
|
* /
|
|
3941
4099
|
* / On an unowned engram there is no owner to refuse anyone, so "caller must set themselves as
|
|
3942
4100
|
* / owner" is a rule about the ARGUMENT — pass your own principal and it succeeds. `#Invalid` says
|
|
3943
4101
|
* / retrying with a different argument can work; `#Refused` would tell a first claimant their
|
|
3944
4102
|
* / standing was the problem, on the one call where nobody has standing yet.
|
|
3945
4103
|
* /
|
|
3946
|
-
* / ⟨2026-09-29, owner
|
|
4104
|
+
* / ⟨2026-09-29, the owner's control-handover ruling⟩ A CHANGE OF OWNER HANDS OVER CONTROL OF THE
|
|
3947
4105
|
* / CODE. The new owner becomes a controller of this canister and the former owner stops being one;
|
|
3948
4106
|
* / the answer says who moved it (`ControlHandover`). Managed: the registry moves it while it
|
|
3949
4107
|
* / accepts the transfer. Sovereign: the registry answers `#EngramMustMove` and this engram sets
|
|
@@ -3953,7 +4111,7 @@ export interface Engram {
|
|
|
3953
4111
|
* / engram (no registry) cannot know who controls it and changes the owner only, answering
|
|
3954
4112
|
* / `#NotHeldHere`. The rules are `src/shared/ControlHandover.mo`'s.
|
|
3955
4113
|
* /
|
|
3956
|
-
* / ⟨2026-09-29, review
|
|
4114
|
+
* / ⟨2026-09-29, a review finding: a half-finished change of owner⟩ The registry now MARKS a change of
|
|
3957
4115
|
* / owner as unfinished from the moment it moves its record until it sees control move. A sovereign
|
|
3958
4116
|
* / engram therefore reports the move (`sysConfirmOwnershipTransfer`) after setting its own
|
|
3959
4117
|
* / controllers; until the registry hears it, the registry refuses the new owner's
|
|
@@ -3961,11 +4119,32 @@ export interface Engram {
|
|
|
3961
4119
|
* / While a transfer is marked unfinished, a transfer to anyone but its would-be owner is refused by
|
|
3962
4120
|
* / the registry, by name; calling this again with that owner finishes it.
|
|
3963
4121
|
* /
|
|
3964
|
-
* / ⟨2026-09-29, review finding
|
|
4122
|
+
* / ⟨2026-09-29, a review finding⟩ THE OWNER NAMING THEMSELVES IS A REPORT, NOT A HAND-ON. It is
|
|
3965
4123
|
* / the way out when the registry did not hear that a sovereign engram moved control: it moves
|
|
3966
4124
|
* / control to the same owner again and reports it, and it writes NO entry to
|
|
3967
4125
|
* / `listOwnershipTransfers` (until this day it wrote one from the owner to themselves, a hand-on
|
|
3968
4126
|
* / that did not happen). The record entry says it was a report. `ControlHandover.isReport`.
|
|
4127
|
+
* /
|
|
4128
|
+
* / ⟨2026-11-15, from an adversarial review, ruled the same day: THE NEW OWNER MUST ACCEPT⟩ NAMING
|
|
4129
|
+
* / SOMEONE ELSE NOW OPENS AN OFFER AND CHANGES NOTHING ELSE. Until this day this one call, made by
|
|
4130
|
+
* / the current owner alone, moved the engram, the registry's record and control of the code to a
|
|
4131
|
+
* / principal who was never asked (`OwnershipOffer.mo` has the measurement). Now it records the
|
|
4132
|
+
* / offer here (`ownershipOffer`), files it at the registry that spawned this engram
|
|
4133
|
+
* / (`sysOfferOwnership`, which moves nothing either) and answers `#Offered` with the expiry
|
|
4134
|
+
* / (`OwnershipOffer.TTL_NS`, 7 days). The owner is still the owner, still controls the code, and
|
|
4135
|
+
* / every agent, guardian and limit is as it was. The hand-over happens when the named principal
|
|
4136
|
+
* / calls `acceptOwnership`, as themselves. A new offer replaces the open one; `cancelOwnershipOffer`
|
|
4137
|
+
* / withdraws it. Refused by the registry's own words when it refuses to file it (nothing is
|
|
4138
|
+
* / recorded here then), and `#Unavailable` when it cannot be reached.
|
|
4139
|
+
* /
|
|
4140
|
+
* / TWO CALLS STILL MOVE AT ONCE, because in both the caller names THEMSELVES, so the consent is
|
|
4141
|
+
* / the call: the first claim of an unowned engram, and the owner's report (above). HOW THE REPORT
|
|
4142
|
+
* / RELATES TO THE OFFER: a report never opens one and never needs one. It is the repair for a
|
|
4143
|
+
* / hand-over that already happened under an acceptance and that the registry did not hear the end
|
|
4144
|
+
* / of; the registry treats it as a retry of a record it has already moved. An engram the registry
|
|
4145
|
+
* / reinstalled after the network erased it comes back owned by the principal the registry records
|
|
4146
|
+
* / and with no offer (the offer was in the erased state); its owner offers again, and the copy the
|
|
4147
|
+
* / registry kept of the old offer ends at its own expiry and cannot move anything by itself.
|
|
3969
4148
|
*/
|
|
3970
4149
|
transferOwnership: ActorMethod<[Principal], Result_3>;
|
|
3971
4150
|
/**
|
|
@@ -3987,12 +4166,13 @@ export interface Engram {
|
|
|
3987
4166
|
* / only. Refused, by name, below the room the hourly check-in needs; then nothing is armed.
|
|
3988
4167
|
* /
|
|
3989
4168
|
* / CALLER: the engram's owner, from the owner's app (its status line and its compute page), and
|
|
3990
|
-
* / nobody else (
|
|
3991
|
-
* /
|
|
3992
|
-
* /
|
|
3993
|
-
* /
|
|
3994
|
-
* /
|
|
3995
|
-
* /
|
|
4169
|
+
* / nobody else (the surface-budget rule: a `sys` method names its caller). ⟨2026-10-28, the owner's
|
|
4170
|
+
* / automatic-pause ruling: "it wakes on the next payment, agent request or your Wake"⟩ The automatic
|
|
4171
|
+
* / doors (the biller's receipt, Convert, an agent's MCP request) wake it when compute lands with
|
|
4172
|
+
* / room; this is the owner's door, for compute that arrived with no receipt (a bare top-up). It
|
|
4173
|
+
* / always reads the engram's own balance (no rate limit, no free filter), so a refusal states what
|
|
4174
|
+
* / the engram measured. Both figures in a refusal are its own READING above its line, which runs ~82B
|
|
4175
|
+
* / below the true figure, so the engram never calls it the gap.
|
|
3996
4176
|
*/
|
|
3997
4177
|
wakeTimers: ActorMethod<[], Result_1>;
|
|
3998
4178
|
/**
|
|
@@ -4349,6 +4529,13 @@ export interface MemoryVersionSummary {
|
|
|
4349
4529
|
size: bigint;
|
|
4350
4530
|
version: bigint;
|
|
4351
4531
|
}
|
|
4532
|
+
export interface Offer {
|
|
4533
|
+
to: Principal;
|
|
4534
|
+
expiresAtNs: bigint;
|
|
4535
|
+
offeredAtNs: bigint;
|
|
4536
|
+
}
|
|
4537
|
+
export type Outcome =
|
|
4538
|
+
{ MovedByRegistry: null } | { Offered: Offer } | { NotHeldHere: null } | { MovedByEngram: null };
|
|
4352
4539
|
export interface OwnerConsole {
|
|
4353
4540
|
pendingApprovalCount: bigint;
|
|
4354
4541
|
memoryKeyEpoch: bigint;
|
|
@@ -4663,7 +4850,7 @@ export type Result_26 = { Ok: Pairing } | { Err: Error };
|
|
|
4663
4850
|
export type Result_27 = { Ok: EngramSessionState } | { Err: Error };
|
|
4664
4851
|
export type Result_28 = { Ok: Principal } | { Err: Error };
|
|
4665
4852
|
export type Result_29 = { Ok: AgentGrant } | { Err: Error };
|
|
4666
|
-
export type Result_3 = { Ok:
|
|
4853
|
+
export type Result_3 = { Ok: Outcome } | { Err: Error };
|
|
4667
4854
|
export type Result_30 = { Ok: Page } | { Err: Error };
|
|
4668
4855
|
export type Result_31 = { Ok: Page_1 } | { Err: Error };
|
|
4669
4856
|
export type Result_32 = { Ok: Page_2 } | { Err: Error };
|
|
@@ -4709,29 +4896,31 @@ export type Result_68 = { Ok: RecipientHistory } | { Err: Error };
|
|
|
4709
4896
|
export type Result_69 = { Ok: { paths: Array<string> } } | { Err: Error };
|
|
4710
4897
|
export type Result_7 = { Ok: SignatureCounts } | { Err: Error };
|
|
4711
4898
|
export type Result_70 = { Ok: ProfileRead } | { Err: Error };
|
|
4712
|
-
export type Result_71 = { Ok:
|
|
4713
|
-
export type Result_72 = { Ok:
|
|
4714
|
-
export type Result_73 = { Ok:
|
|
4715
|
-
export type Result_74 = { Ok:
|
|
4716
|
-
export type Result_75 = { Ok:
|
|
4717
|
-
export type Result_76 = { Ok:
|
|
4718
|
-
export type Result_77 = { Ok:
|
|
4719
|
-
export type Result_78 = { Ok:
|
|
4720
|
-
export type Result_79 = { Ok:
|
|
4899
|
+
export type Result_71 = { Ok: [] | [Offer] } | { Err: Error };
|
|
4900
|
+
export type Result_72 = { Ok: OwnerSignInView } | { Err: Error };
|
|
4901
|
+
export type Result_73 = { Ok: OwnerConsole } | { Err: Error };
|
|
4902
|
+
export type Result_74 = { Ok: MemoryRetentionPolicy } | { Err: Error };
|
|
4903
|
+
export type Result_75 = { Ok: MemoryHistory } | { Err: Error };
|
|
4904
|
+
export type Result_76 = { Ok: KeyBackupStatus } | { Err: Error };
|
|
4905
|
+
export type Result_77 = { Ok: Uint8Array | number[] } | { Err: Error };
|
|
4906
|
+
export type Result_78 = { Ok: AlertStatus } | { Err: Error };
|
|
4907
|
+
export type Result_79 = { Ok: EvmAddresses } | { Err: Error };
|
|
4721
4908
|
export type Result_8 = { Ok: RailHealth } | { Err: Error };
|
|
4722
|
-
export type Result_80 = { Ok:
|
|
4723
|
-
export type Result_81 = { Ok:
|
|
4724
|
-
export type Result_82 = { Ok:
|
|
4725
|
-
export type Result_83 = { Ok:
|
|
4726
|
-
export type Result_84 = { Ok:
|
|
4727
|
-
export type Result_85 = { Ok:
|
|
4728
|
-
export type Result_86 = { Ok:
|
|
4729
|
-
export type
|
|
4730
|
-
export type Result_89 = { Ok:
|
|
4909
|
+
export type Result_80 = { Ok: ChildOpening } | { Err: Error };
|
|
4910
|
+
export type Result_81 = { Ok: ChildAllowanceRow } | { Err: Error };
|
|
4911
|
+
export type Result_82 = { Ok: Brakes } | { Err: Error };
|
|
4912
|
+
export type Result_83 = { Ok: Array<BirthRecord> } | { Err: Error };
|
|
4913
|
+
export type Result_84 = { Ok: BackupRetention } | { Err: Error };
|
|
4914
|
+
export type Result_85 = { Ok: BackupMetadata } | { Err: Error };
|
|
4915
|
+
export type Result_86 = { Ok: AgentWriteReview } | { Err: Error };
|
|
4916
|
+
export type Result_87 = { Ok: Page_27 } | { Err: Error };
|
|
4917
|
+
export type Result_89 = { Ok: MemoryRangeExport } | { Err: Error };
|
|
4731
4918
|
export type Result_9 = { Ok: Array<Seat> } | { Err: Error };
|
|
4732
|
-
export type Result_90 = { Ok:
|
|
4733
|
-
export type
|
|
4734
|
-
export type
|
|
4919
|
+
export type Result_90 = { Ok: CondenseResult } | { Err: Error };
|
|
4920
|
+
export type Result_91 = { Ok: Conversion } | { Err: Error };
|
|
4921
|
+
export type Result_93 = { Ok: Eip712Registration } | { Err: Error };
|
|
4922
|
+
export type Result_95 = { Ok: Accepted } | { Err: Error };
|
|
4923
|
+
export type Result_96 = { Ok: AgentRecord } | { Err: Error };
|
|
4735
4924
|
export interface ResyncReport {
|
|
4736
4925
|
startsAcknowledged: bigint;
|
|
4737
4926
|
cannotBeRecorded: Array<UnrecordableEngagement>;
|