@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.did
CHANGED
|
@@ -288,21 +288,31 @@ type ResyncReport =
|
|
|
288
288
|
};
|
|
289
289
|
startsAcknowledged: nat;
|
|
290
290
|
};
|
|
291
|
-
type
|
|
291
|
+
type Result_96 =
|
|
292
292
|
variant {
|
|
293
293
|
Err: Error;
|
|
294
294
|
Ok: AgentRecord;
|
|
295
295
|
};
|
|
296
|
-
type
|
|
296
|
+
type Result_95 =
|
|
297
|
+
variant {
|
|
298
|
+
Err: Error;
|
|
299
|
+
Ok: Accepted;
|
|
300
|
+
};
|
|
301
|
+
type Result_93 =
|
|
297
302
|
variant {
|
|
298
303
|
Err: Error;
|
|
299
304
|
Ok: Eip712Registration;
|
|
300
305
|
};
|
|
301
|
-
type
|
|
306
|
+
type Result_91 =
|
|
302
307
|
variant {
|
|
303
308
|
Err: Error;
|
|
304
309
|
Ok: Conversion;
|
|
305
310
|
};
|
|
311
|
+
type Result_90 =
|
|
312
|
+
variant {
|
|
313
|
+
Err: Error;
|
|
314
|
+
Ok: CondenseResult;
|
|
315
|
+
};
|
|
306
316
|
type Result_9 =
|
|
307
317
|
variant {
|
|
308
318
|
Err: Error;
|
|
@@ -311,47 +321,47 @@ type Result_9 =
|
|
|
311
321
|
type Result_89 =
|
|
312
322
|
variant {
|
|
313
323
|
Err: Error;
|
|
314
|
-
Ok:
|
|
324
|
+
Ok: MemoryRangeExport;
|
|
315
325
|
};
|
|
316
|
-
type
|
|
326
|
+
type Result_87 =
|
|
317
327
|
variant {
|
|
318
328
|
Err: Error;
|
|
319
|
-
Ok:
|
|
329
|
+
Ok: Page_27;
|
|
320
330
|
};
|
|
321
331
|
type Result_86 =
|
|
322
332
|
variant {
|
|
323
333
|
Err: Error;
|
|
324
|
-
Ok:
|
|
334
|
+
Ok: AgentWriteReview;
|
|
325
335
|
};
|
|
326
336
|
type Result_85 =
|
|
327
337
|
variant {
|
|
328
338
|
Err: Error;
|
|
329
|
-
Ok:
|
|
339
|
+
Ok: BackupMetadata;
|
|
330
340
|
};
|
|
331
341
|
type Result_84 =
|
|
332
342
|
variant {
|
|
333
343
|
Err: Error;
|
|
334
|
-
Ok:
|
|
344
|
+
Ok: BackupRetention;
|
|
335
345
|
};
|
|
336
346
|
type Result_83 =
|
|
337
347
|
variant {
|
|
338
348
|
Err: Error;
|
|
339
|
-
Ok:
|
|
349
|
+
Ok: vec BirthRecord;
|
|
340
350
|
};
|
|
341
351
|
type Result_82 =
|
|
342
352
|
variant {
|
|
343
353
|
Err: Error;
|
|
344
|
-
Ok:
|
|
354
|
+
Ok: Brakes;
|
|
345
355
|
};
|
|
346
356
|
type Result_81 =
|
|
347
357
|
variant {
|
|
348
358
|
Err: Error;
|
|
349
|
-
Ok:
|
|
359
|
+
Ok: ChildAllowanceRow;
|
|
350
360
|
};
|
|
351
361
|
type Result_80 =
|
|
352
362
|
variant {
|
|
353
363
|
Err: Error;
|
|
354
|
-
Ok:
|
|
364
|
+
Ok: ChildOpening;
|
|
355
365
|
};
|
|
356
366
|
type Result_8 =
|
|
357
367
|
variant {
|
|
@@ -361,47 +371,47 @@ type Result_8 =
|
|
|
361
371
|
type Result_79 =
|
|
362
372
|
variant {
|
|
363
373
|
Err: Error;
|
|
364
|
-
Ok:
|
|
374
|
+
Ok: EvmAddresses;
|
|
365
375
|
};
|
|
366
376
|
type Result_78 =
|
|
367
377
|
variant {
|
|
368
378
|
Err: Error;
|
|
369
|
-
Ok:
|
|
379
|
+
Ok: AlertStatus;
|
|
370
380
|
};
|
|
371
381
|
type Result_77 =
|
|
372
382
|
variant {
|
|
373
383
|
Err: Error;
|
|
374
|
-
Ok:
|
|
384
|
+
Ok: blob;
|
|
375
385
|
};
|
|
376
386
|
type Result_76 =
|
|
377
387
|
variant {
|
|
378
388
|
Err: Error;
|
|
379
|
-
Ok:
|
|
389
|
+
Ok: KeyBackupStatus;
|
|
380
390
|
};
|
|
381
391
|
type Result_75 =
|
|
382
392
|
variant {
|
|
383
393
|
Err: Error;
|
|
384
|
-
Ok:
|
|
394
|
+
Ok: MemoryHistory;
|
|
385
395
|
};
|
|
386
396
|
type Result_74 =
|
|
387
397
|
variant {
|
|
388
398
|
Err: Error;
|
|
389
|
-
Ok:
|
|
399
|
+
Ok: MemoryRetentionPolicy;
|
|
390
400
|
};
|
|
391
401
|
type Result_73 =
|
|
392
402
|
variant {
|
|
393
403
|
Err: Error;
|
|
394
|
-
Ok:
|
|
404
|
+
Ok: OwnerConsole;
|
|
395
405
|
};
|
|
396
406
|
type Result_72 =
|
|
397
407
|
variant {
|
|
398
408
|
Err: Error;
|
|
399
|
-
Ok:
|
|
409
|
+
Ok: OwnerSignInView;
|
|
400
410
|
};
|
|
401
411
|
type Result_71 =
|
|
402
412
|
variant {
|
|
403
413
|
Err: Error;
|
|
404
|
-
Ok:
|
|
414
|
+
Ok: opt Offer;
|
|
405
415
|
};
|
|
406
416
|
type Result_70 =
|
|
407
417
|
variant {
|
|
@@ -631,7 +641,7 @@ type Result_30 =
|
|
|
631
641
|
type Result_3 =
|
|
632
642
|
variant {
|
|
633
643
|
Err: Error;
|
|
634
|
-
Ok:
|
|
644
|
+
Ok: Outcome;
|
|
635
645
|
};
|
|
636
646
|
type Result_29 =
|
|
637
647
|
variant {
|
|
@@ -1095,6 +1105,19 @@ type OwnerConsole =
|
|
|
1095
1105
|
protectedPathCount: nat;
|
|
1096
1106
|
unknownSessionRefusals: nat;
|
|
1097
1107
|
};
|
|
1108
|
+
type Outcome =
|
|
1109
|
+
variant {
|
|
1110
|
+
MovedByEngram;
|
|
1111
|
+
MovedByRegistry;
|
|
1112
|
+
NotHeldHere;
|
|
1113
|
+
Offered: Offer;
|
|
1114
|
+
};
|
|
1115
|
+
type Offer =
|
|
1116
|
+
record {
|
|
1117
|
+
expiresAtNs: int;
|
|
1118
|
+
offeredAtNs: int;
|
|
1119
|
+
to: principal;
|
|
1120
|
+
};
|
|
1098
1121
|
type MemoryVersionSummary =
|
|
1099
1122
|
record {
|
|
1100
1123
|
atNs: int;
|
|
@@ -1490,7 +1513,7 @@ type Engram =
|
|
|
1490
1513
|
service {
|
|
1491
1514
|
/// ⟨0.16.0⟩ `about()` — the ONE public projection, replacing `status()` and absorbing `metrics()`.
|
|
1492
1515
|
///
|
|
1493
|
-
/// Two public projections of one canister was the
|
|
1516
|
+
/// Two public projections of one canister was the one-concept-two-names defect: both answered "what is this engram
|
|
1494
1517
|
/// like", disagreed about which counters they carried, and `status()` additionally masked two
|
|
1495
1518
|
/// fields behind an `authorized` flag whose own declaration admitted the problem — "a consumer
|
|
1496
1519
|
/// that must remember to check a sibling flag is one that will eventually forget."
|
|
@@ -1498,7 +1521,7 @@ type Engram =
|
|
|
1498
1521
|
/// The fix is not a better flag. The gated fields MOVED (see `getOwnerConsole`), so there is no
|
|
1499
1522
|
/// masked field to forget and no flag to check. Reaching the gated record is the authorization.
|
|
1500
1523
|
///
|
|
1501
|
-
/// Ungated by design and marked for the
|
|
1524
|
+
/// Ungated by design and marked for the public-reason gate's grep.
|
|
1502
1525
|
/// PUBLIC: existence, shape, posture and day-floored activity. No principal, no balance, no
|
|
1503
1526
|
/// precise timestamp — nothing here identifies a person or reveals when they are at the keyboard.
|
|
1504
1527
|
about: () -> (About) query;
|
|
@@ -1517,7 +1540,85 @@ type Engram =
|
|
|
1517
1540
|
/// nomination names. That check compares the caller inside the module, where
|
|
1518
1541
|
/// test/key-replacement.test.mo runs it; this body names no roster gate, because the caller holds
|
|
1519
1542
|
/// no role here until the move.
|
|
1520
|
-
acceptAgentKeyNomination: (agentKey: principal) -> (
|
|
1543
|
+
acceptAgentKeyNomination: (agentKey: principal) -> (Result_96);
|
|
1544
|
+
/// ⟨2026-11-15, from an adversarial review, ruled the same day: THE NEW OWNER MUST ACCEPT, and on
|
|
1545
|
+
/// acceptance what the former owner granted is ended, not carried over⟩ THE PRINCIPAL AN OFFER
|
|
1546
|
+
/// NAMES TAKES THE ENGRAM, as themselves. This is the only call that hands an owned engram to
|
|
1547
|
+
/// someone else.
|
|
1548
|
+
///
|
|
1549
|
+
/// ORDER. On an engram a registry spawned, the caller first calls the registry's
|
|
1550
|
+
/// `acceptEngramOffer(<this engram>)`: the registry moves its record only for a principal who told
|
|
1551
|
+
/// it so directly, and refuses this call's report otherwise, by name, with nothing changed. A
|
|
1552
|
+
/// standalone engram needs this call alone. Then, here: the registry's record and control of the
|
|
1553
|
+
/// code move exactly as a change of owner always did (`moveOwnership`; the answer's `handed` says
|
|
1554
|
+
/// who moved control), and ONLY THEN the owner changes, the custody row is written
|
|
1555
|
+
/// (`authorizedBy` is the former owner, who offered) and the offer is cleared. If control cannot
|
|
1556
|
+
/// move, nothing changes here and the offer stays open, so the same call again finishes it.
|
|
1557
|
+
/// ⟨2026-11-15, later, from a review, beside "the same call again finishes it" above⟩ That sentence
|
|
1558
|
+
/// was not true when it was written: the registry removed its filed offer when it moved its
|
|
1559
|
+
/// record, and its put-back did not bring the row back, so the same call was refused until the
|
|
1560
|
+
/// owner offered again (MEASURED on PocketIC). The registry now removes the row only where a
|
|
1561
|
+
/// change of owner finishes, so after a put-back both offers stand, the caller's acceptance at the
|
|
1562
|
+
/// registry with them, and the same call again finishes it once the cause is fixed. Both offers
|
|
1563
|
+
/// still end at their expiry (7 days from the offer); after that the owner offers again and the
|
|
1564
|
+
/// named principal accepts again, at the registry and then here.
|
|
1565
|
+
///
|
|
1566
|
+
/// WHAT ENDS, in the same message that changes the owner (`closed` counts them):
|
|
1567
|
+
/// · every AGENT, active or not, is removed, with its ending kept in `agentPurgeLog` and sent
|
|
1568
|
+
/// to the registry (recorded there as ended by a reset, the one ending that removes a record).
|
|
1569
|
+
/// Reason: an agent acts on the owner's word, and that owner is gone. Measured: a key the
|
|
1570
|
+
/// former owner paired read a file the new owner wrote.
|
|
1571
|
+
/// · every GUARDIAN and every unredeemed agent or guardian INVITE. Reason: a guardian can
|
|
1572
|
+
/// freeze payments and pause writes. Measured: the former owner's guardian did both.
|
|
1573
|
+
/// · ⟨2026-11-15, later, from a review⟩ every CHILD ALLOWANCE (`setChildAllowance`), with its
|
|
1574
|
+
/// write counter moved on so an opening in flight gives nothing back. Reason: an allowance
|
|
1575
|
+
/// spends this engram's compute (1.3T an opening) on the former owner's approval, and it is
|
|
1576
|
+
/// kept by an agent's lasting identity, so it outlived the agent record. Measured: after a
|
|
1577
|
+
/// hand-over, a key the NEW owner paired opened an engram on the former owner's allowance.
|
|
1578
|
+
/// The record line counts them (`childAllowances=`); the reply's `closed` does not.
|
|
1579
|
+
/// · the SPENDING LIMITS: every per-key policy is removed, the general policy goes back to a
|
|
1580
|
+
/// new engram's (`OwnerHandover.STARTING_POLICY`), and the engram-wide daily ceiling goes
|
|
1581
|
+
/// back to `SpendCeiling.DEFAULT_ENGRAM_DAY`. Reason: a limit the former owner removed is a
|
|
1582
|
+
/// grant. Measured: a policy with no limit and a ceiling of none both stood.
|
|
1583
|
+
/// · every SELLER and payout address, with today's per-seller totals. Reason: a listed seller
|
|
1584
|
+
/// is paid above the ordinary class on the former owner's approval.
|
|
1585
|
+
/// · every APPROVAL REQUEST still waiting, and every one the former owner approved that is not
|
|
1586
|
+
/// yet used: marked denied, with the reason (`OwnerHandover.APPROVAL_ENDED`). The rows stay.
|
|
1587
|
+
/// · the registered EVM WITHDRAWAL ADDRESS (it was the former owner's, and without a guardian
|
|
1588
|
+
/// it could not be changed), every typed-data DESTINATION (an empty list refuses every
|
|
1589
|
+
/// signature that names a destination), the ALERT WEBHOOK (it posted this engram's activity
|
|
1590
|
+
/// to the former owner's address) and both PAID-MEMORY switches (off, as a new engram's).
|
|
1591
|
+
///
|
|
1592
|
+
/// WHAT IS KEPT, and why:
|
|
1593
|
+
/// · the connector TOKEN rows the former owner issued. They are kept as rows and NOT HONOURED:
|
|
1594
|
+
/// since 2026-09-29 a token whose issuer is not the current owner is refused at the door
|
|
1595
|
+
/// (`BearerTokens.standing`), and the roster shows the new owner each one as the former
|
|
1596
|
+
/// owner's. Revoking them here would only rewrite what those rows say happened.
|
|
1597
|
+
/// · the MEMORY FILES and their history, the RECORD and its counters, the custody chain: they
|
|
1598
|
+
/// are the engram; a hand-over that emptied it would hand over nothing, and an engram never
|
|
1599
|
+
/// makes itself look new. `resetEngram` is the new owner's own choice for that.
|
|
1600
|
+
/// · TODAY'S SPENDING TOTALS (per key and engram-wide): a hand-over never gives back an
|
|
1601
|
+
/// allowance already spent today.
|
|
1602
|
+
/// · the two BRAKES as they stand (payments frozen, writes paused): a brake only stops things,
|
|
1603
|
+
/// and the new owner releases it themselves.
|
|
1604
|
+
/// · the registered typed-data TYPES and their rules (a type that has signed is part of what
|
|
1605
|
+
/// the record's signature rows mean; with no destination left they sign nothing that names
|
|
1606
|
+
/// one), the paid history of addresses, the seat weeks, protected and revisable paths, the
|
|
1607
|
+
/// retention and backup settings, the encryption switch, and open paid sessions (a payer's
|
|
1608
|
+
/// money, theirs to close).
|
|
1609
|
+
/// · what the registry set once at birth (biller, market, metrics reader, consent origin): it
|
|
1610
|
+
/// was never the former owner's to set.
|
|
1611
|
+
/// · NOT RULED, kept for now and named so nobody takes it for decided: the proof-of-personhood
|
|
1612
|
+
/// flag and its stored result. It attests the person who was the owner when it was made.
|
|
1613
|
+
/// ⟨2026-11-16, beside "NOT RULED"⟩ Ruled: it ENDS. The flag and its stored result are
|
|
1614
|
+
/// cleared at an accepted hand-over (`endFormerOwnersGrants`), so `verifiedHuman` reads false
|
|
1615
|
+
/// until the new owner verifies as themselves.
|
|
1616
|
+
///
|
|
1617
|
+
/// Refused, with nothing changed: the anonymous caller; anyone the open offer does not name, and
|
|
1618
|
+
/// an expired offer (`OwnershipOffer.acceptRefusal`); an engram opened through another; a full
|
|
1619
|
+
/// custody chain; whatever the registry refuses (its own words, with a sentence saying the caller
|
|
1620
|
+
/// did not become the owner).
|
|
1621
|
+
acceptOwnership: () -> (Result_95);
|
|
1521
1622
|
/// The person the owner asked again ACCEPTS: they become this engram's sign-in, and the sealed copy
|
|
1522
1623
|
/// that came with the ask becomes the engram's (sealed for them). Until this call they have no power
|
|
1523
1624
|
/// at all. Callable only by that person while the ask waits; refused (as at birth) if they are now
|
|
@@ -1543,10 +1644,11 @@ type Engram =
|
|
|
1543
1644
|
context: blob;
|
|
1544
1645
|
response: HttpRequestResult;
|
|
1545
1646
|
}) -> (HttpRequestResult) query;
|
|
1546
|
-
/// Owner-managed destination allowlist
|
|
1547
|
-
/// and apply instantly — the
|
|
1647
|
+
/// Owner-managed destination allowlist. Additions LOOSEN and wait 24h; removals TIGHTEN
|
|
1648
|
+
/// and apply instantly — the asymmetry the signing design ratified on 2026-08-04 (tightening applies
|
|
1649
|
+
/// at once, loosening waits), applied to the one mutable policy surface.
|
|
1548
1650
|
///
|
|
1549
|
-
/// ⟨2026-10-14, the owner's ruling
|
|
1651
|
+
/// ⟨2026-10-14, the owner's destination-list ruling⟩ ONE LIST PER REGISTERED ACTION. `addEvmWithdrawDestination`,
|
|
1550
1652
|
/// `removeEvmWithdrawDestination` and `listEvmWithdrawDestinations` — one list for every action —
|
|
1551
1653
|
/// are REMOVED; these three take the action's `typeId`. Same rules, per action: the owner only; an
|
|
1552
1654
|
/// addition activates after 24 hours and is refused while payments are frozen; a removal is instant
|
|
@@ -1558,19 +1660,20 @@ type Engram =
|
|
|
1558
1660
|
/// of FUTURE authority — a frozen engram must not be able to widen what it can sign), and the
|
|
1559
1661
|
/// shape is IMMUTABLE: any change mints a new typeId.
|
|
1560
1662
|
///
|
|
1561
|
-
/// ⟨2026-10-14, the owner's
|
|
1562
|
-
/// names is stored as a label and decides nothing. Every
|
|
1563
|
-
/// acknowledgement (`ackIrrevocable = true`); has no opaque
|
|
1564
|
-
/// least one destination field OR carries a must-equal rule;
|
|
1565
|
-
/// webhook set, enabled AND with its money class on, and an
|
|
1566
|
-
/// `canFreezePayments`; and waits `Eip712Policy.COOLOFF_NS` (72 hours). It
|
|
1567
|
-
/// rules (`fieldRules`: "at most N" read as a plain decimal with D places, "must
|
|
1568
|
-
/// are part of the registered shape — inside the typeId, stored in
|
|
1569
|
-
/// `eip712SignFor` before the cap reservation. Before this, a
|
|
1570
|
-
/// needed no webhook, no guardian and no destination field,
|
|
1571
|
-
/// address. Intrinsic checks still come first and the watchers
|
|
1572
|
-
///
|
|
1573
|
-
///
|
|
1663
|
+
/// ⟨2026-10-14, the owner's registration-bar and signing-floor rulings⟩ ONE BAR FOR EVERY
|
|
1664
|
+
/// REGISTRATION — the class the owner names is stored as a label and decides nothing. Every
|
|
1665
|
+
/// registration: records the irrevocability acknowledgement (`ackIrrevocable = true`); has no opaque
|
|
1666
|
+
/// field (`bytes`, `bytes1..32`); names at least one destination field OR carries a must-equal rule;
|
|
1667
|
+
/// passes the watchers — an owner alert webhook set, enabled AND with its money class on, and an
|
|
1668
|
+
/// `#Active` guardian holding `canFreezePayments`; and waits `Eip712Policy.COOLOFF_NS` (72 hours). It
|
|
1669
|
+
/// may carry per-field rules (`fieldRules`: "at most N" read as a plain decimal with D places, "must
|
|
1670
|
+
/// equal X"), which are part of the registered shape — inside the typeId, stored in
|
|
1671
|
+
/// `eip712FieldRules`, enforced in `eip712SignFor` before the cap reservation. Before this, a
|
|
1672
|
+
/// withdrawal registered as `#standard` needed no webhook, no guardian and no destination field,
|
|
1673
|
+
/// waited one hour, and signed to any address. Intrinsic checks still come first and the watchers
|
|
1674
|
+
/// last (the 2026-08-06 re-ordering).
|
|
1675
|
+
///
|
|
1676
|
+
/// ⟨2026-11-02, the child build's withdrawal-pinning step⟩ In an engram opened through another, after the spec's own
|
|
1574
1677
|
/// checks: the venue actions that move money or control to another account are refused by name
|
|
1575
1678
|
/// (`HyperliquidTransaction:` `UsdSend`, `SpotSend`, `SendAsset`, `SendToEvmWithData`,
|
|
1576
1679
|
/// `ConvertToMultiSigUser`, `ApproveBuilderFee`, `TokenDelegate` — `#Refused`), and
|
|
@@ -1601,8 +1704,9 @@ type Engram =
|
|
|
1601
1704
|
};
|
|
1602
1705
|
primaryType: text;
|
|
1603
1706
|
verifyingContract: text;
|
|
1604
|
-
}) -> (
|
|
1605
|
-
/// ⟨0.16.0,
|
|
1707
|
+
}) -> (Result_93);
|
|
1708
|
+
/// ⟨0.16.0, refusals are values, never traps⟩ THE ROLE-CONFLICT ARM, and why three refusals here are
|
|
1709
|
+
/// not the same refusal.
|
|
1606
1710
|
///
|
|
1607
1711
|
/// This method had five distinct ways to say no through one `text`, and a caller could only tell
|
|
1608
1712
|
/// them apart by matching prose. They are now three different arms because they call for three
|
|
@@ -1612,7 +1716,7 @@ type Engram =
|
|
|
1612
1716
|
/// or the roster is full. Only the last is worth an agent's time to resolve.
|
|
1613
1717
|
addGuardian: (guardianPrincipal: principal, name: text, permissions:
|
|
1614
1718
|
GuardianPermissions) -> (Result_2);
|
|
1615
|
-
/// ⟨2026-10-21, the owner's
|
|
1719
|
+
/// ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ OWNER-ONLY: put a note on any entry of this
|
|
1616
1720
|
/// engram's record — words, nothing else. Appends a chained `record.note` entry
|
|
1617
1721
|
/// (`about=<id> note=<words>`) and keeps the note for `listRecordNotes`; answers the new entry's
|
|
1618
1722
|
/// id. The entry noted may be any entry ever appended (`about` below the head), including one the
|
|
@@ -1632,7 +1736,7 @@ type Engram =
|
|
|
1632
1736
|
/// opened through another), and the owner kit.
|
|
1633
1737
|
addSeller: (payTo: text, perDayCapE6: nat, isPayout: bool) -> (Result_11);
|
|
1634
1738
|
/// AN AGENT CONVERTS THE ENGRAM'S BALANCE INTO COMPUTE, under the runway rule ⟨2026-11-04, the owner's
|
|
1635
|
-
/// rulings of 2026-11-01
|
|
1739
|
+
/// agent-conversion rulings of 2026-11-01; `AgentConvert.mo` holds the rule and says why each number⟩.
|
|
1636
1740
|
///
|
|
1637
1741
|
/// CALLER: a paired agent whose STORED grant holds the scope "wallet.convert" (`AgentConvert.SCOPE`),
|
|
1638
1742
|
/// which only the owner adds (`createAgentInvite` / `setAgentPermissions`); off by default, and no HTTP
|
|
@@ -1648,12 +1752,12 @@ type Engram =
|
|
|
1648
1752
|
/// is READ before anything moves, and a wallet that cannot fund 0.50 is refused by name.
|
|
1649
1753
|
///
|
|
1650
1754
|
/// STOPPED MID-WAY: if the agent is removed, leaves, loses the grant, payments are frozen or the engram is
|
|
1651
|
-
/// reset while it waits on the ledger or the
|
|
1755
|
+
/// reset while it waits on the ledger or the biller's deposit address, nothing moves; after the money
|
|
1652
1756
|
/// reached the deposit, it is sent back to the wallet less one ledger fee (or held at the biller for the
|
|
1653
|
-
/// owner's next Convert). THE RESIDUAL, stated: a removal landing DURING the
|
|
1757
|
+
/// owner's next Convert). THE RESIDUAL, stated: a removal landing DURING the biller's own conversion call
|
|
1654
1758
|
/// cannot stop that call — it finishes, and the reply (`finishedBeforeRemovalSeen`) and the record row say
|
|
1655
1759
|
/// so. One inter-canister call, bounded by one cap.
|
|
1656
|
-
agentConvertBalance: (token: text, amountE6: opt nat) -> (
|
|
1760
|
+
agentConvertBalance: (token: text, amountE6: opt nat) -> (Result_91);
|
|
1657
1761
|
/// Returns the write RECEIPT, not just the version.
|
|
1658
1762
|
///
|
|
1659
1763
|
/// The receipt was always computed and then thrown away: MemoryRouter hands back
|
|
@@ -1694,7 +1798,7 @@ type Engram =
|
|
|
1694
1798
|
/// Gated on requireWritesNotPaused — unlike the export. This one destroys retained entries, which
|
|
1695
1799
|
/// is exactly what a guardian pause exists to hold. No action alert is raised: the operation is
|
|
1696
1800
|
/// owner-initiated, owner-only, and already chained into the audit log.
|
|
1697
|
-
applyCondense: (toSeq: nat) -> (
|
|
1801
|
+
applyCondense: (toSeq: nat) -> (Result_90);
|
|
1698
1802
|
/// Owner-only: activate a guardian who has registered against an invite.
|
|
1699
1803
|
///
|
|
1700
1804
|
/// Until this call the guardian is `#Pending` and can do NOTHING — registering is a claim, this
|
|
@@ -1712,7 +1816,7 @@ type Engram =
|
|
|
1712
1816
|
/// the hour, and the retry CONSUMES the approval (`#Used`); a second attempt needs a second
|
|
1713
1817
|
/// approval. Past the hour it becomes `#Expired` on first touch. Neither state is recoverable by
|
|
1714
1818
|
/// approving again — the owner approves a NEW request.
|
|
1715
|
-
/// ⟨2026-09-29, review finding
|
|
1819
|
+
/// ⟨2026-09-29, a review finding⟩ One exception, made by the engram and not by the owner: when
|
|
1716
1820
|
/// the retry's signer FAILS, nothing was signed, so the approval goes back from `#Used` to
|
|
1717
1821
|
/// `#Approved` with its original expiry and an `approval.released` entry says so.
|
|
1718
1822
|
///
|
|
@@ -1781,48 +1885,53 @@ type Engram =
|
|
|
1781
1885
|
/// ⚠ GATED ON `read_backup`, which is NOT the permission the upload half uses — that one is
|
|
1782
1886
|
/// `canAppendMemory`. Holding one says nothing about the other, deliberately: taking a backup and
|
|
1783
1887
|
/// carrying it away are different authorities.
|
|
1784
|
-
backupPullChunk: (backupId: text, chunkIndex: nat) -> (
|
|
1888
|
+
backupPullChunk: (backupId: text, chunkIndex: nat) -> (Result_77) query;
|
|
1785
1889
|
backupPushChunk: (backupId: text, chunkIndex: nat, data: blob) ->
|
|
1786
1890
|
(Result_2);
|
|
1787
1891
|
/// The OWNER cancels an agent's pending key nomination; the agent keeps its current key. Refused
|
|
1788
1892
|
/// by name when the agent is unknown or has nothing pending — never a silent success.
|
|
1789
1893
|
cancelAgentKeyNomination: (agentKey: principal) -> (Result_2);
|
|
1894
|
+
/// ⟨2026-11-15, the ruling that the new owner must accept⟩ THE OWNER WITHDRAWS THE OPEN OFFER.
|
|
1895
|
+
/// Owner-only. `#NotFound` when none is open. Nothing else changes, and nothing is sent: the
|
|
1896
|
+
/// registry's copy of the offer cannot move anything without `acceptOwnership` succeeding here,
|
|
1897
|
+
/// which now refuses, and it ends at its own expiry.
|
|
1898
|
+
cancelOwnershipOffer: () -> (Result_2);
|
|
1790
1899
|
/// Close a session the caller paid for: settle what was consumed, refund the remainder.
|
|
1791
1900
|
///
|
|
1792
1901
|
/// PAYER-ONLY, enforced inside the gateway. This is the exit that did not exist — `endSession`
|
|
1793
1902
|
/// and `forceCloseSession` were on the MARKET, which is withheld, and whose escrow subaccount is
|
|
1794
1903
|
/// under a different principal entirely, so its close could never have reached these funds.
|
|
1795
1904
|
closeSession: (sessionId: text) -> (Result_2);
|
|
1796
|
-
/// Convert the engram's OWN earned ckUSDC/ckUSDT into its OWN cycles, via the
|
|
1905
|
+
/// Convert the engram's OWN earned ckUSDC/ckUSDT into its OWN cycles, via the biller — the
|
|
1797
1906
|
/// engram-self top-up path. Owner-only; per-call cap + cooldown (irreversible); NOT freeze-gated
|
|
1798
|
-
/// (infrastructure funding). Flow: read the engram's deposit address on the
|
|
1799
|
-
/// engram's tokens there, then have the
|
|
1907
|
+
/// (infrastructure funding). Flow: read the engram's deposit address on the biller, move the
|
|
1908
|
+
/// engram's tokens there, then have the biller convert — the biller self-authorizes because the
|
|
1800
1909
|
/// caller (this engram) is a registered active engram (registry isRegisteredActiveEngram seam).
|
|
1801
|
-
/// (The owner-funded path lives entirely in the frontend: owner →
|
|
1802
|
-
/// ⟨0.16.0,
|
|
1910
|
+
/// (The owner-funded path lives entirely in the frontend: owner → biller deposit → topUp.)
|
|
1911
|
+
/// ⟨0.16.0, named wire types — `token : Text` KEPT, deliberately, and this note exists so the sweep that finds
|
|
1803
1912
|
/// it does not re-litigate it.⟩
|
|
1804
1913
|
///
|
|
1805
1914
|
/// `ownerWithdraw` and the market's `recoverEscrow` both took `Wire.TokenAmount` because they
|
|
1806
1915
|
/// accept ICP (e8s) BESIDE the stablecoins (e6) — mixed decimals behind one number is a real
|
|
1807
1916
|
/// hundred-fold error. This method accepts ckUSDC and ckUSDT only. Both are e6, so there is no
|
|
1808
|
-
/// unit to get wrong, and the
|
|
1917
|
+
/// unit to get wrong, and the 0.16.0 interface plan rules the pair as `(token, amountE6)`.
|
|
1809
1918
|
///
|
|
1810
1919
|
/// `Wire.TokenAmount` would be actively WORSE here: its `#Icp` arm is a token this path cannot
|
|
1811
1920
|
/// convert, so the type would make an unacceptable value REPRESENTABLE and hand back a runtime
|
|
1812
1921
|
/// rejection anyway — losing the one property the variant is for while gaining a wider type.
|
|
1813
1922
|
///
|
|
1814
|
-
/// ⟨2026-10-02⟩ The second parameter is NAMED `amountE6` now, as the
|
|
1923
|
+
/// ⟨2026-10-02⟩ The second parameter is NAMED `amountE6` now, as the interface plan's ruling above has the
|
|
1815
1924
|
/// pair — e6 base units of the token named first. A name only: Candid passes arguments by
|
|
1816
1925
|
/// position, so nothing on the wire moved.
|
|
1817
1926
|
///
|
|
1818
|
-
/// ⟨2026-11-04, the agent-conversion build — the owner's
|
|
1927
|
+
/// ⟨2026-11-04, the agent-conversion build — the owner's agent-conversion rulings⟩ The body moved whole into
|
|
1819
1928
|
/// `runConversion`, which an agent's `agentConvertBalance` shares; this method keeps its name, its
|
|
1820
|
-
/// signature and its bare `cyclesAdded` reply. Under
|
|
1929
|
+
/// signature and its bare `cyclesAdded` reply. Under those rulings it converts the engram's BALANCE (what the
|
|
1821
1930
|
/// owner put in and what it earned are not told apart); the name is the wire's and stays. A FIRST
|
|
1822
1931
|
/// engram's owner Convert is unchanged: not counted, not freeze-gated, not runway-bound, not pre-read,
|
|
1823
1932
|
/// 10.00 / 5 min. In an engram OPENED THROUGH ANOTHER the key file's Convert runs the agent rule too
|
|
1824
|
-
/// (
|
|
1825
|
-
/// wallet read first), keeping its own freeze gate (
|
|
1933
|
+
/// (as the owner agreed: under 30 days, 0.50–2.00, once in 24 hours shared with the agents, the
|
|
1934
|
+
/// wallet read first), keeping its own freeze gate (by the owner's ruling, a guardian's freeze only).
|
|
1826
1935
|
/// ⟨2026-11-04, review fix⟩ SHARED with an agent's conversion: the in-flight latch only (one deposit
|
|
1827
1936
|
/// account, one pending marker — one conversion at a time, whoever asked), so while an agent's conversion
|
|
1828
1937
|
/// is between its deposit and its landing this door answers "another conversion is still in flight". NOT
|
|
@@ -1847,14 +1956,14 @@ type Engram =
|
|
|
1847
1956
|
/// A principal that is already a GUARDIAN cannot become an agent — a guardian is an
|
|
1848
1957
|
/// independent check on agents, so one wallet must not hold both.
|
|
1849
1958
|
///
|
|
1850
|
-
/// ⟨2026-10-29, the owner's ruling
|
|
1959
|
+
/// ⟨2026-10-29, the owner's ruling⟩ `name` MAY BE EMPTY (or only whitespace): the agent is then
|
|
1851
1960
|
/// named after its key when it pairs — "agent-" and the key's first five characters, e.g.
|
|
1852
1961
|
/// "agent-hsffu" (`People.nameAtPairing` says why five, and the first). ⟨2026-10-29, later, beside "its key"⟩ Its
|
|
1853
1962
|
/// PERMANENT key (the root it enrolled with), not the key that pairs, so the name stays right across
|
|
1854
1963
|
/// a key replacement and matches the app's "Copy permanent key". A name the owner gives
|
|
1855
1964
|
/// always wins. Before this an empty name was refused, so an app that wanted no name had to invent
|
|
1856
1965
|
/// one ("agent"), and two agents read alike.
|
|
1857
|
-
/// ⟨2026-10-29, review
|
|
1966
|
+
/// ⟨2026-10-29, a review finding⟩ A name the owner gives meets the rule `renameAgent` applies: a line break
|
|
1858
1967
|
/// or another control character is `#Invalid` (`People.nameRefusal`), as a rename to it would be.
|
|
1859
1968
|
createAgentInvite: (name: text, permissions: AgentPermissions) ->
|
|
1860
1969
|
(Result_58);
|
|
@@ -1881,9 +1990,9 @@ type Engram =
|
|
|
1881
1990
|
/// a check must be independent of the thing it checks.
|
|
1882
1991
|
createGuardianInvite: (name: text, permissions: GuardianPermissions) ->
|
|
1883
1992
|
(Result_58);
|
|
1884
|
-
/// The sign-in GIVES ITSELF UP, or the person the owner asked again says no. ⟨the owner's ruling
|
|
1885
|
-
///
|
|
1886
|
-
/// otherwise refuse a seat they never agreed to⟩
|
|
1993
|
+
/// The sign-in GIVES ITSELF UP, or the person the owner asked again says no. ⟨the owner's ruling that
|
|
1994
|
+
/// they may say no, but the child can ask again — from the child build's design check: whoever the kit
|
|
1995
|
+
/// names cannot otherwise refuse a seat they never agreed to⟩
|
|
1887
1996
|
/// · as the sign-in: the slot empties, the sealed copy of the owner's key is deleted (nobody may
|
|
1888
1997
|
/// hold a copy for a seat that is gone), and the caller is recorded as the one who declined, with
|
|
1889
1998
|
/// the time. The engram keeps its small limits; the owner may ask this person again in 7 days.
|
|
@@ -1907,7 +2016,7 @@ type Engram =
|
|
|
1907
2016
|
/// `backupAbort` is the agent's way out of a failed UPLOAD; it discards something never
|
|
1908
2017
|
/// finalized. This removes a finished backup, which is a different act on a different object.
|
|
1909
2018
|
deleteBackup: (backupId: text) -> (Result_2);
|
|
1910
|
-
/// ⟨0.16.0,
|
|
2019
|
+
/// ⟨0.16.0, the interface plan⟩ RETURNS A REAL RECEIPT, not `R<()>`. The receipt was already
|
|
1911
2020
|
/// being computed and written into the audit line — `receiptSuffix(r)` — and then discarded, so
|
|
1912
2021
|
/// a caller could not cite the seq its own delete produced and had to go looking for it in a log
|
|
1913
2022
|
/// it may not be allowed to read. A delete is an EVENT on the chain; an event that will not tell
|
|
@@ -1923,12 +2032,12 @@ type Engram =
|
|
|
1923
2032
|
/// `#NotFound` for an unknown id and `#Conflict` when the request is no longer pending, and it
|
|
1924
2033
|
/// does not change the policy — the next request over the same limit will be raised again.
|
|
1925
2034
|
denyRequest: (requestId: text, reason: text) -> (Result_2);
|
|
1926
|
-
/// ⟨2026-10-21, the owner's
|
|
2035
|
+
/// ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ A NEW GUARDIAN POWER, words only: an ACTIVE
|
|
1927
2036
|
/// guardian disputes an agent's write. It never moves money, stops anything or changes a grant.
|
|
1928
2037
|
/// Appends a chained `record.dispute` entry (`about=<id> reason=<words>`) and keeps the dispute
|
|
1929
2038
|
/// for `listGuardianDisputes`; answers the new entry's id. NOT ALERTED, deliberately: a
|
|
1930
2039
|
/// `guardian.*` operation would fall in the alerts' #guardian class, and which entries reach a
|
|
1931
|
-
/// phone is
|
|
2040
|
+
/// phone is a later alerts change's to decide (`ActionAlerts.classify` answers null for
|
|
1932
2041
|
/// `record.*`). The owner sees it on the record's Disputes tab.
|
|
1933
2042
|
///
|
|
1934
2043
|
/// WHO: every active guardian — no grant bit (`RecordWords` header says why). The OWNER is refused
|
|
@@ -1952,8 +2061,8 @@ type Engram =
|
|
|
1952
2061
|
/// situation rather than a safety measure. It IS gated on requireMemoryAttached: a store that
|
|
1953
2062
|
/// failed its integrity check must not attest anything it cannot vouch for.
|
|
1954
2063
|
exportMemoryRange: (fromSeq: nat, toSeq: nat, authorFilter:
|
|
1955
|
-
opt principal) -> (
|
|
1956
|
-
/// ⟨0.16.0,
|
|
2064
|
+
opt principal) -> (Result_89);
|
|
2065
|
+
/// ⟨0.16.0, same concept, same name — renamed from `guardianFreezePayments`⟩ The prefix LIED about who may call it.
|
|
1957
2066
|
/// The gate is `requireOwnerOrGuardian`, and an owner freezing their own payments is the ordinary
|
|
1958
2067
|
/// case — the guardian is the exceptional one. A name that says otherwise sends an owner looking
|
|
1959
2068
|
/// for a method that does not exist. `unfreezePayments`, its owner-only inverse, never carried the
|
|
@@ -1968,7 +2077,7 @@ type Engram =
|
|
|
1968
2077
|
/// individual method's body finds nothing — the check is one level down.⟩
|
|
1969
2078
|
/// · `addEip712Type` and `addEvmWithdrawDestination` — pre-staging for a later payout is the
|
|
1970
2079
|
/// thing a brake most needs to stop, so the destination list is frozen along with the signing.
|
|
1971
|
-
/// ⟨2026-10-14, the owner's ruling
|
|
2080
|
+
/// ⟨2026-10-14, the owner's destination-list ruling⟩ `addEvmWithdrawDestination` is removed; its place is
|
|
1972
2081
|
/// `addEip712Destination` (one list per registered action), freeze-gated the same way.
|
|
1973
2082
|
/// · `sessionReadMemory` and `sessionAppendMemory` — the paid-memory rail, money coming IN.
|
|
1974
2083
|
///
|
|
@@ -1977,10 +2086,10 @@ type Engram =
|
|
|
1977
2086
|
/// · `convertEarningsToCycles` — the owner's OWN earnings becoming their OWN engram's fuel. A
|
|
1978
2087
|
/// frozen engram still burns cycles, so freezing this would let a brake starve the thing it
|
|
1979
2088
|
/// is protecting. Owner-only, capped per call, and it moves nothing outward.
|
|
1980
|
-
/// ⟨2026-11-04, the agent-conversion build —
|
|
2089
|
+
/// ⟨2026-11-04, the agent-conversion build — as the owner agreed⟩ An AGENT's conversion
|
|
1981
2090
|
/// (`agentConvertBalance`) IS frozen, by any freeze — the owner's own included — before it starts and
|
|
1982
2091
|
/// again after each await. The owner's own Convert in a first engram stays as above; in an engram
|
|
1983
|
-
/// opened through another it stops under a guardian's freeze only (
|
|
2092
|
+
/// opened through another it stops under a guardian's freeze only (the owner's ruling of 2026-11-02).
|
|
1984
2093
|
/// · `approveRequest` — an approval is not a spend. The spend it authorises goes through
|
|
1985
2094
|
/// `x402SignFor`, which IS frozen, so an approval granted during a freeze simply waits.
|
|
1986
2095
|
/// · `transferOwnership` — ownership is not a payment, and a guardian's PAYMENTS brake is not
|
|
@@ -1989,7 +2098,7 @@ type Engram =
|
|
|
1989
2098
|
/// ⚠ The three exclusions are a reading of intent, not a ruling: no declaration stated the scope
|
|
1990
2099
|
/// before this one. If any of them is wrong, this comment is where the argument should happen.
|
|
1991
2100
|
freezePayments: () -> (Result_2);
|
|
1992
|
-
/// ⟨2026-10-21, the owner's
|
|
2101
|
+
/// ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ `freezePayments` with a reason the strip and the
|
|
1993
2102
|
/// guardian page show ("Sam froze payments: 'a payment I didn't expect'"). A NEW method, not an
|
|
1994
2103
|
/// argument on `freezePayments`: a shipped argument tuple is frozen. Same callers, same grant, same
|
|
1995
2104
|
/// brake: the owner, or an active guardian holding `canFreezePayments`; an agent, a stranger, a
|
|
@@ -1998,9 +2107,9 @@ type Engram =
|
|
|
1998
2107
|
/// brake is NOT pulled — the caller pulls it with `freezePayments`, or shortens the words.
|
|
1999
2108
|
freezePaymentsWithReason: (reason: text) -> (Result_2);
|
|
2000
2109
|
/// Delivery status + config readback. Owner-only (the URL is a secret).
|
|
2001
|
-
/// ⟨2026-11-03, the pre-
|
|
2110
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2002
2111
|
/// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
2003
|
-
getActionAlertStatus: () -> (
|
|
2112
|
+
getActionAlertStatus: () -> (Result_78) query;
|
|
2004
2113
|
/// The agent-conversion rule's numbers.
|
|
2005
2114
|
/// PUBLIC: the class of `getTopUpLimits` — a policy, nobody's data. ⟨2026-11-04, the market-route
|
|
2006
2115
|
/// build: the marker's colon was missing, so the deployment's PUBLIC-rationale gate read the method as
|
|
@@ -2008,9 +2117,9 @@ type Engram =
|
|
|
2008
2117
|
/// The cap an agent meets is `min(maxPerCallE6, getTopUpLimits().maxCkusdcE6s)`.
|
|
2009
2118
|
getAgentConvertRule: () -> (AgentConvertRule) query;
|
|
2010
2119
|
/// Agents need to know what they may revise, so they can read it too. Whole-value config, same
|
|
2011
|
-
/// carve-out as getProtectedPaths — and kept a SEPARATE method from it deliberately (
|
|
2012
|
-
/// protected path and a revisable path are opposite grants, and one
|
|
2013
|
-
/// name that lies about which power it reports.
|
|
2120
|
+
/// carve-out as getProtectedPaths — and kept a SEPARATE method from it deliberately (different
|
|
2121
|
+
/// concept, different name): a protected path and a revisable path are opposite grants, and one
|
|
2122
|
+
/// accessor for both would be a name that lies about which power it reports.
|
|
2014
2123
|
///
|
|
2015
2124
|
/// Refusal reason preserved from the trap: a grant is a power, and its absence and its
|
|
2016
2125
|
/// concealment are different facts.
|
|
@@ -2025,9 +2134,9 @@ type Engram =
|
|
|
2025
2134
|
/// order. Anyone else is refused by name (`#Refused getAgentSeatWeeks: …`), never answered with an
|
|
2026
2135
|
/// empty page. Paged; `total` is every engagement ever paired here (a reset keeps the rows).
|
|
2027
2136
|
/// Two rows can name one root: an agent paired again after it left is a second engagement.
|
|
2028
|
-
/// ⟨2026-11-03, the pre-
|
|
2137
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2029
2138
|
/// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
2030
|
-
getAgentSeatWeeks: (start: nat, limit: nat) -> (
|
|
2139
|
+
getAgentSeatWeeks: (start: nat, limit: nat) -> (Result_87) query;
|
|
2031
2140
|
/// Owner: everything written into this engram by someone other than the owner since the last
|
|
2032
2141
|
/// markAgentWritesReviewed() — agent appends/revisions AND paid-session appends (see
|
|
2033
2142
|
/// qualifiesForReview for why those two families are recognised differently).
|
|
@@ -2035,10 +2144,10 @@ type Engram =
|
|
|
2035
2144
|
/// them — the UI must page (markAgentWritesReviewed(?lastShownId)) and must NOT present 200
|
|
2036
2145
|
/// as a total. `earliest` discloses ring eviction — if cursor < earliest, entries between them
|
|
2037
2146
|
/// aged out of the ring (the CHAIN still proves total count; this view can't show their bodies).
|
|
2038
|
-
/// ⟨2026-11-03, the pre-
|
|
2147
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2039
2148
|
/// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
|
|
2040
2149
|
/// engram is unchanged.
|
|
2041
|
-
getAgentWriteReview: () -> (
|
|
2150
|
+
getAgentWriteReview: () -> (Result_86) query;
|
|
2042
2151
|
/// Why anchoring is or is not advancing. PUBLIC: ungated on purpose — detecting a stalled
|
|
2043
2152
|
/// engram is the point, a gated read would fail-to-empty and hand a third party fabricated zeros,
|
|
2044
2153
|
/// and none of these fields is a secret — `total` is already public via getCertifiedAuditHead.
|
|
@@ -2046,19 +2155,19 @@ type Engram =
|
|
|
2046
2155
|
getAnchorPushStatus: () -> (AnchorPushStatus) query;
|
|
2047
2156
|
/// The plain chain head — size and hash, world-readable, no certificate.
|
|
2048
2157
|
///
|
|
2049
|
-
/// ⟨0.16.0,
|
|
2050
|
-
/// declaration says why it matters: heads exist TO BE COMPARED (
|
|
2051
|
-
/// witnesses nothing, and the registry and
|
|
2052
|
-
/// engram, "the canister that IS the evidence product", was the one chain
|
|
2053
|
-
/// ask for a head without also asking for a certificate it may not want.
|
|
2158
|
+
/// ⟨0.16.0, kept as a new method in the interface plan⟩ It was specced and never built. `Wire.AuditHead`'s own
|
|
2159
|
+
/// declaration says why it matters: heads exist TO BE COMPARED (the disclosure law: who may read
|
|
2160
|
+
/// what), a head nobody can read witnesses nothing, and the registry and biller already served
|
|
2161
|
+
/// exactly this shape — so the engram, "the canister that IS the evidence product", was the one chain
|
|
2162
|
+
/// a verifier could not ask for a head without also asking for a certificate it may not want.
|
|
2054
2163
|
///
|
|
2055
2164
|
/// PUBLIC: bare, and it cannot refuse — a chain head discloses nothing about content or callers,
|
|
2056
2165
|
/// and gating it would make the comparison it exists for depend on permission. `getCertifiedAuditHead`
|
|
2057
2166
|
/// below serves the same head WITH the subnet certificate for a caller that needs to verify it
|
|
2058
2167
|
/// was signed rather than asserted.
|
|
2059
2168
|
getAuditHead: () -> (AuditHead) query;
|
|
2060
|
-
getBackupMetadata: (backupId: text) -> (
|
|
2061
|
-
/// ⟨2026-10-21, the owner's
|
|
2169
|
+
getBackupMetadata: (backupId: text) -> (Result_85) query;
|
|
2170
|
+
/// ⟨2026-10-21, the owner's approval of the mobile design's changes: a backup-retention getter⟩ How many backups of
|
|
2062
2171
|
/// `dbType` each creator keeps, and whether that is the default — the read `setBackupRetention`
|
|
2063
2172
|
/// lacked, so "Keeps your newest 3" showed only on the phone that last set it.
|
|
2064
2173
|
///
|
|
@@ -2068,38 +2177,39 @@ type Engram =
|
|
|
2068
2177
|
/// denied"), a revoked or resigned agent, a guardian (guardians take no backups), a stranger and
|
|
2069
2178
|
/// the anonymous caller. A kind the setter would refuse is `#Invalid` here too
|
|
2070
2179
|
/// (`Backup.getRetention`). Records nothing (a query).
|
|
2071
|
-
getBackupRetention: (dbType: text) -> (
|
|
2072
|
-
/// The
|
|
2180
|
+
getBackupRetention: (dbType: text) -> (Result_84) query;
|
|
2181
|
+
/// The canister this engram recognises as its rent biller — `null` until the registry pushes one.
|
|
2073
2182
|
///
|
|
2074
|
-
/// PUBLIC: a payer about to send money needs to know which
|
|
2075
|
-
/// from, BEFORE sending it — paying a
|
|
2183
|
+
/// PUBLIC: a payer about to send money needs to know which biller this engram will accept credit
|
|
2184
|
+
/// from, BEFORE sending it — paying a biller this engram does not recognise collects funds that
|
|
2076
2185
|
/// never become rent. The registry publishes the same fact as `getRentBiller`; publishing it here
|
|
2077
2186
|
/// too is what lets the two be COMPARED, which is the only way to catch a mismatch.
|
|
2078
2187
|
getBillerId: () -> (opt principal) query;
|
|
2079
2188
|
/// This engram's BIRTH CHAIN, root first: its own record last, its parent's before it, and so on
|
|
2080
|
-
/// ⟨2026-10-26, the owner's lineage ruling
|
|
2189
|
+
/// ⟨2026-10-26, the owner's lineage ruling that the registry certifies each birth record's fingerprint⟩.
|
|
2081
2190
|
///
|
|
2082
2191
|
/// OWNER ONLY. The owner decides whom to show it to — the chain names the engrams this one descends
|
|
2083
2192
|
/// from, which is the owner's to disclose, not the registry's. The certified half is at the registry
|
|
2084
2193
|
/// (`getCertifiedBirth`, public, revealing only whether a fingerprint is present); the client's
|
|
2085
2194
|
/// `verifyBirthChain` checks both. Refused to anyone else by the combinator (`#ownerOnly`).
|
|
2086
|
-
/// ⟨2026-11-03, the pre-
|
|
2195
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2087
2196
|
/// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
2088
|
-
getBirthChain: () -> (
|
|
2089
|
-
/// ⟨2026-10-21, the owner's
|
|
2090
|
-
/// LAST (their key and whether as owner or guardian), since when, and the reason
|
|
2091
|
-
/// same person and time as the newest brake entry on the record
|
|
2092
|
-
/// owner's status strip and the guardian page. The OWNER and
|
|
2093
|
-
/// agent, a stranger, a pending guardian and the anonymous caller
|
|
2094
|
-
/// — an agent learns a brake is on from the refusal of what it tried,
|
|
2095
|
-
/// is null for a brake that is off, and for one carried on across the
|
|
2096
|
-
/// read (who pulled it was not recorded then) — never a guessed pull.
|
|
2097
|
-
getBrakes: () -> (
|
|
2098
|
-
/// ⟨0.16.0,
|
|
2099
|
-
///
|
|
2100
|
-
///
|
|
2101
|
-
///
|
|
2102
|
-
/// read three of them and not the fourth has
|
|
2197
|
+
getBirthChain: () -> (Result_83) query;
|
|
2198
|
+
/// ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ Each brake: on or off, and while
|
|
2199
|
+
/// on, who pulled it LAST (their key and whether as owner or guardian), since when, and the reason
|
|
2200
|
+
/// they gave — the same person and time as the newest brake entry on the record
|
|
2201
|
+
/// (`RecordWords.BrakePull`). For the owner's status strip and the guardian page. The OWNER and
|
|
2202
|
+
/// ACTIVE GUARDIANS may read it; an agent, a stranger, a pending guardian and the anonymous caller
|
|
2203
|
+
/// are refused (`#ownerOrGuardian` — an agent learns a brake is on from the refusal of what it tried,
|
|
2204
|
+
/// and needs no more). `pull` is null for a brake that is off, and for one carried on across the
|
|
2205
|
+
/// upgrade that added this read (who pulled it was not recorded then) — never a guessed pull.
|
|
2206
|
+
getBrakes: () -> (Result_82) query;
|
|
2207
|
+
/// ⟨0.16.0, one implementation per behaviour, the interface files as the source — the interface
|
|
2208
|
+
/// plan's entry⟩ `Wire.CertifiedAuditHead`, not an anonymous record. The registry, market and biller
|
|
2209
|
+
/// already served the shared type; the engram — the canister that IS the evidence product — was the
|
|
2210
|
+
/// one chain still answering in a shape of its own, missing `witness` entirely. One certified-head
|
|
2211
|
+
/// shape on every chain is the point: a verifier that can read three of them and not the fourth has
|
|
2212
|
+
/// to special-case the one that matters most.
|
|
2103
2213
|
///
|
|
2104
2214
|
/// `witness = null` is the honest answer here and is NOT the same as an empty proof. This engram
|
|
2105
2215
|
/// certifies its head via `CertifiedData` but keeps no witness tree, so there is no reveal to
|
|
@@ -2113,17 +2223,17 @@ type Engram =
|
|
|
2113
2223
|
/// Readable by the owner and by that agent's own key — refused loudly to anyone else, never a zero
|
|
2114
2224
|
/// (a zero would be a claim about another owner's grant).
|
|
2115
2225
|
///
|
|
2116
|
-
/// ⟨2026-10-01, review
|
|
2226
|
+
/// ⟨2026-10-01, a review finding⟩ A QUERY, so the refusal is deliberately NOT written to the denial log: a
|
|
2117
2227
|
/// query's state writes are discarded when it returns, and the `denied` call first written here
|
|
2118
2228
|
/// recorded nothing while reading as if it did. The refusal is loud in the reply instead. WHAT
|
|
2119
2229
|
/// WOULD MAKE THIS WRONG: a reason to record who asked — then this becomes an update that says so.
|
|
2120
|
-
getChildAllowance: (agentPrincipal: principal) -> (
|
|
2230
|
+
getChildAllowance: (agentPrincipal: principal) -> (Result_81) query;
|
|
2121
2231
|
/// Owner-only, Billing-class: what opening an engram costs this engram, the balance below which an
|
|
2122
2232
|
/// agent's request is refused, the balance now, and every agent's allowance. The console's cost
|
|
2123
2233
|
/// sentence reads it. Cycles are owner-class information, as on the owner's console read.
|
|
2124
|
-
/// ⟨2026-11-03, the pre-
|
|
2234
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2125
2235
|
/// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
2126
|
-
getChildOpening: () -> (
|
|
2236
|
+
getChildOpening: () -> (Result_80) query;
|
|
2127
2237
|
/// Derive the key that opens the sealed copy, encrypted under the caller's transport public key —
|
|
2128
2238
|
/// for the SIGN-IN alone (the combinator's `#ownerSignIn`; the key file is refused by name: only the
|
|
2129
2239
|
/// sign-in opens the backup, and the key file holds the plaintext anyway). The derivation input is the
|
|
@@ -2132,16 +2242,16 @@ type Engram =
|
|
|
2132
2242
|
/// with no copy, all before the call. The opening is recorded (`keyBackup.opened`), so the owner's
|
|
2133
2243
|
/// alert fires: the one act a thief holding the sign-in cannot hide. Not blocked by a freeze: a
|
|
2134
2244
|
/// freeze must never lock the owner out of its own key.
|
|
2135
|
-
/// ⟨CORRECTED 2026-11-03, the
|
|
2136
|
-
/// it: in an engram opened through another the sign-in sets the alert
|
|
2137
|
-
/// sign-in can re-point it first. Each opening is recorded in the
|
|
2138
|
-
/// reads) and alerted to whatever address the sign-in has set.
|
|
2245
|
+
/// ⟨CORRECTED 2026-11-03, the review of the child build's sealed-key-copy step, beside the sentence
|
|
2246
|
+
/// above⟩ "cannot hide" overstates it: in an engram opened through another the sign-in sets the alert
|
|
2247
|
+
/// address, so a thief holding the sign-in can re-point it first. Each opening is recorded in the
|
|
2248
|
+
/// engram's record (which the key file reads) and alerted to whatever address the sign-in has set.
|
|
2139
2249
|
///
|
|
2140
|
-
/// ⟨
|
|
2250
|
+
/// ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
|
|
2141
2251
|
/// `VetKeys.ManagementCanister.vetKdDeriveKey`. A query cannot await.
|
|
2142
2252
|
/// Named callers: an owner console signed in as the sign-in (the browser's recovery), and the owner
|
|
2143
2253
|
/// kit's `--recover-key` signed by a key-file sign-in.
|
|
2144
|
-
getEncryptedKeyBackupKey: (transportPublicKey: blob) -> (
|
|
2254
|
+
getEncryptedKeyBackupKey: (transportPublicKey: blob) -> (Result_77);
|
|
2145
2255
|
/// Derive the shared memory-encryption key, encrypted under the caller's transport
|
|
2146
2256
|
/// public key. Gated to owner + read-agents (the same principals allowed to read
|
|
2147
2257
|
/// memory). The client decrypts it locally with its transport secret key.
|
|
@@ -2158,19 +2268,19 @@ type Engram =
|
|
|
2158
2268
|
/// Refusing a FUTURE epoch is not a bounds check, it is the rotation invariant: pre-deriving a
|
|
2159
2269
|
/// key for an epoch nobody has reached would make rotating to it meaningless.
|
|
2160
2270
|
///
|
|
2161
|
-
/// Also converted off the lowercase `#ok/#err` dialect (
|
|
2271
|
+
/// Also converted off the lowercase `#ok/#err` dialect (results spelled Ok/Err) — that spelling arrived from ic402
|
|
2162
2272
|
/// and had no business on a vetKD path, which touches nothing of ic402's.
|
|
2163
2273
|
///
|
|
2164
|
-
/// ⟨
|
|
2274
|
+
/// ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
|
|
2165
2275
|
/// `VetKeys.ManagementCanister.vetKdDeriveKey`. A query cannot await, so the round trip is the
|
|
2166
|
-
/// cost. Stated here because
|
|
2276
|
+
/// cost. Stated here because the update-for-read rule requires the reason be readable from the interface rather than
|
|
2167
2277
|
/// inferred by opening the body — which is exactly what had to happen to write this line.
|
|
2168
2278
|
getEncryptedMemoryKey: (epoch: opt nat, transportPublicKey: blob) ->
|
|
2169
|
-
(
|
|
2170
|
-
/// ⟨0.16.0, owner ruling 2026-08-20
|
|
2279
|
+
(Result_77);
|
|
2280
|
+
/// ⟨0.16.0, owner ruling 2026-08-20⟩ `x402Support` REPORTS THE RAIL, not a constant.
|
|
2171
2281
|
///
|
|
2172
2282
|
/// The card's config hardcodes `x402Support = true`, answering a buyer's question with a fact
|
|
2173
|
-
/// about the software rather than about THIS engram.
|
|
2283
|
+
/// about the software rather than about THIS engram. The 0.16.0 split moved the 402 challenge machinery to the
|
|
2174
2284
|
/// market; the one x402-payable rail the engram kept is `sessionReadMemory`, gated by
|
|
2175
2285
|
/// `paidMemoryReadEnabled`, which DEFAULTS TO FALSE. So a discovering agent was told this engram
|
|
2176
2286
|
/// takes x402 payments while every paid read on a default engram is refused with "the owner has
|
|
@@ -2191,19 +2301,19 @@ type Engram =
|
|
|
2191
2301
|
/// has never met this engram what it is and how to transact with it. A card behind a gate cannot
|
|
2192
2302
|
/// be discovered, and the ERC-8004 ecosystem it participates in assumes an open read.
|
|
2193
2303
|
getEngramCard: () -> (AgentCard) query;
|
|
2194
|
-
/// Re-pointed at `EvmIdentity` (
|
|
2195
|
-
/// Gateway, which is leaving for the market canister. Behaviour is
|
|
2196
|
-
/// address, same tECDSA key — but the engram no longer needs a
|
|
2197
|
-
/// address, which is the whole point of the split.
|
|
2304
|
+
/// Re-pointed at `EvmIdentity` (the step that moved commerce to the market): custody derivation no
|
|
2305
|
+
/// longer routes through the ic402 Gateway, which is leaving for the market canister. Behaviour is
|
|
2306
|
+
/// unchanged for a caller — same address, same tECDSA key — but the engram no longer needs a
|
|
2307
|
+
/// marketplace to know its own address, which is the whole point of the split.
|
|
2198
2308
|
///
|
|
2199
|
-
/// ⟨2026-08-21⟩ DO NOT FOLD THIS WITH `getEvmSignerAddress`. The 0.16.0
|
|
2309
|
+
/// ⟨2026-08-21⟩ DO NOT FOLD THIS WITH `getEvmSignerAddress`. The 0.16.0 interface plan carried the fold
|
|
2200
2310
|
/// as an open item, conditional on "if the derivation is identical". It is not, and the condition
|
|
2201
2311
|
/// is decidable here rather than by reading either comment:
|
|
2202
2312
|
///
|
|
2203
2313
|
/// this method EvmIdentity.deriveAddress -> derivation_path = []
|
|
2204
2314
|
/// the signer eip712PublicKey -> derivation_path = ["eip712"]
|
|
2205
2315
|
///
|
|
2206
|
-
/// ⟨CORRECTED 2026-09-22 — the two paths above are what the code passed until
|
|
2316
|
+
/// ⟨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);
|
|
2207
2317
|
/// the table is kept because the ARGUMENT it makes is unchanged and is the reason the fold is
|
|
2208
2318
|
/// still refused.⟩ The signer now reads `KeyPaths.EIP712` = `["engramx","eip712","secp256k1","v1"]`
|
|
2209
2319
|
/// and this method still derives at the empty path, because `pay` is the one row the genesis could
|
|
@@ -2240,12 +2350,12 @@ type Engram =
|
|
|
2240
2350
|
/// is exactly who needs it. The write it causes is bounded to one derivation and one
|
|
2241
2351
|
/// set-once custody stamp per engram lifetime, which is what keeps "any caller may cause it"
|
|
2242
2352
|
/// safe rather than merely permitted.
|
|
2243
|
-
/// ⟨
|
|
2353
|
+
/// ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
|
|
2244
2354
|
/// `EvmIdentity.deriveAddress`, which reaches the management canister's `ecdsa_public_key`. A
|
|
2245
2355
|
/// query cannot await it.
|
|
2246
2356
|
///
|
|
2247
|
-
/// ⟨Marker added 2026-08-23; the
|
|
2248
|
-
/// site did not carry the mark. Same `public func` form as its two neighbours above.⟩
|
|
2357
|
+
/// ⟨Marker added 2026-08-23; the interface plan's entry already marked it a read served as an update
|
|
2358
|
+
/// (ecdsa_public_key) and the site did not carry the mark. Same `public func` form as its two neighbours above.⟩
|
|
2249
2359
|
///
|
|
2250
2360
|
/// ⟨2026-09-28⟩ THE REPLY IS A RECORD, `Types.EvmAddresses` — the payment address (`pay`, what this
|
|
2251
2361
|
/// method returned alone until then) and the address that signs the engram's own registrations
|
|
@@ -2261,7 +2371,7 @@ type Engram =
|
|
|
2261
2371
|
/// It refuses rather than half-answers: if either address cannot be derived the reply is
|
|
2262
2372
|
/// `#Err`, never a record carrying an empty string (ic402's `getEvmAddress` answers `""` on a
|
|
2263
2373
|
/// failed derivation — that is fail-to-empty on a money surface, and it stops here).
|
|
2264
|
-
getEvmAddress: () -> (
|
|
2374
|
+
getEvmAddress: () -> (Result_79);
|
|
2265
2375
|
/// The owner's OWN EVM address, if they registered one — distinct from `getEvmAddress`, which is
|
|
2266
2376
|
/// the address this canister derives for itself.
|
|
2267
2377
|
///
|
|
@@ -2269,14 +2379,14 @@ type Engram =
|
|
|
2269
2379
|
/// not a capability, and knowing it confers nothing. `null` means the owner registered none,
|
|
2270
2380
|
/// which a payer needs to be able to tell from an address they failed to read.
|
|
2271
2381
|
getEvmOwnerAddress: () -> (opt text) query;
|
|
2272
|
-
///
|
|
2382
|
+
/// The dedicated-key design ships with this: the address of the DEDICATED signing key. Without it the owner funds the
|
|
2273
2383
|
/// wrong address — the payment key's address is NOT this one, by design.
|
|
2274
2384
|
///
|
|
2275
|
-
/// ⟨
|
|
2385
|
+
/// ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: `eip712PublicKey()` awaits
|
|
2276
2386
|
/// the management canister's `ecdsa_public_key`. A query cannot await, so the round-trip is the
|
|
2277
|
-
/// cost — stated here because
|
|
2387
|
+
/// cost — stated here because the update-for-read rule requires the reason be readable from the interface rather than
|
|
2278
2388
|
/// inferred by opening the body.
|
|
2279
|
-
/// ⟨2026-11-03, the pre-
|
|
2389
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2280
2390
|
/// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
|
|
2281
2391
|
/// engram is unchanged.
|
|
2282
2392
|
getEvmSignerAddress: () -> (Result_58);
|
|
@@ -2288,36 +2398,36 @@ type Engram =
|
|
|
2288
2398
|
/// cannot verify it, and nothing here identifies anybody.
|
|
2289
2399
|
getGenesisNote: () -> (GenesisNote) query;
|
|
2290
2400
|
/// A guardian's own channel status (their URL is their secret — each guardian sees only theirs).
|
|
2291
|
-
getGuardianAlertStatus: () -> (
|
|
2401
|
+
getGuardianAlertStatus: () -> (Result_78) query;
|
|
2292
2402
|
/// The sealed copy itself — opaque bytes only the sign-in can open. Readable by the sign-in (it
|
|
2293
2403
|
/// opens them with the key `getEncryptedKeyBackupKey` derives for it) and by the key file, which
|
|
2294
2404
|
/// holds the plaintext already and so learns nothing — it reads them to compare with the copy the kit
|
|
2295
|
-
/// made (the
|
|
2405
|
+
/// made (the child build's design check: a copy someone else stored first reads as "not this key", not as
|
|
2296
2406
|
/// "sealed"). Refused in a first engram, and `#NotFound` when no copy is held. The copy that waits
|
|
2297
2407
|
/// with an ask is never served here: it is inert until accepted.
|
|
2298
2408
|
/// A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
|
|
2299
2409
|
/// Named callers: the owner kit (`--recover-key`, and its check after sealing), and an owner console
|
|
2300
2410
|
/// signed in as the sign-in (the browser's recovery).
|
|
2301
|
-
getKeyBackupCiphertext: () -> (
|
|
2411
|
+
getKeyBackupCiphertext: () -> (Result_77) query;
|
|
2302
2412
|
/// Whether this engram holds a sealed copy of its owner's key, for whom, since when, whether it is
|
|
2303
2413
|
/// sealed for the sign-in seated now, and whether a copy waits with an ask (`Types.KeyBackupStatus`).
|
|
2304
2414
|
/// Readable by the key file and the sign-in (`#ownerOrSignIn`); refused loudly to anyone else
|
|
2305
|
-
/// (
|
|
2415
|
+
/// (the refusal-over-fabrication rule). A first engram refuses by name rather than answer "not sealed": it never holds one,
|
|
2306
2416
|
/// and an empty answer there would read as a child whose seal failed.
|
|
2307
2417
|
/// A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
|
|
2308
2418
|
/// Named callers: the owner kit after it opens an engram (it prints whether the copy is stored), and
|
|
2309
2419
|
/// an owner console showing an engram opened through another (whether recovery can work).
|
|
2310
|
-
getKeyBackupStatus: () -> (
|
|
2420
|
+
getKeyBackupStatus: () -> (Result_76) query;
|
|
2311
2421
|
/// BLS verification key under which the owner kit seals the backup (`IbeCiphertext.encrypt` to the
|
|
2312
2422
|
/// sign-in's principal) and the opener verifies the derived key. Served on-canister so the kit never
|
|
2313
|
-
/// has to know which master key this network uses (the
|
|
2423
|
+
/// has to know which master key this network uses (the child build's design: a wrong guess would seal a copy
|
|
2314
2424
|
/// nobody can open). Static per (context, key id, canister) — cacheable.
|
|
2315
2425
|
///
|
|
2316
2426
|
/// PUBLIC: intentionally unauthenticated — a vetKD public key reveals nothing secret and cannot
|
|
2317
2427
|
/// decrypt anything — the sensitive derivation is getEncryptedKeyBackupKey below, which IS gated
|
|
2318
2428
|
/// (the sign-in alone) and returns key material encrypted to the caller's transport key. The same
|
|
2319
2429
|
/// reasoning as getMemoryKeyVerificationKey, for the backup's own context.
|
|
2320
|
-
/// ⟨
|
|
2430
|
+
/// ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
|
|
2321
2431
|
/// `VetKeys.ManagementCanister.vetKdPublicKey`. A query cannot await.
|
|
2322
2432
|
/// Named callers: the owner kit, when it seals the copy at birth or for an ask; an owner console,
|
|
2323
2433
|
/// to verify the derived key during recovery.
|
|
@@ -2351,8 +2461,8 @@ type Engram =
|
|
|
2351
2461
|
/// never renumbered: the next page starts at the last version returned plus one. Defaults
|
|
2352
2462
|
/// return the whole history of any file a pre-FD engram could have held.
|
|
2353
2463
|
getMemoryHistory: (path: text, start: opt nat, max: opt nat) ->
|
|
2354
|
-
(
|
|
2355
|
-
/// PUBLIC: the epoch alone, and deliberately nothing else (rotation
|
|
2464
|
+
(Result_75) query;
|
|
2465
|
+
/// 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[]`
|
|
2356
2466
|
/// history would be a public, fleet-enumerable feed of when each owner terminated a trust
|
|
2357
2467
|
/// relationship — readable by, among others, the party just terminated.
|
|
2358
2468
|
getMemoryKeyEpoch: () -> (nat) query;
|
|
@@ -2363,13 +2473,14 @@ type Engram =
|
|
|
2363
2473
|
/// cannot decrypt anything — the sensitive derivation is getEncryptedMemoryKey
|
|
2364
2474
|
/// below, which IS gated (read_memory) and returns key material encrypted to the
|
|
2365
2475
|
/// caller's transport key. Do not add an auth guard here (breaks client caching).
|
|
2366
|
-
/// ⟨
|
|
2476
|
+
/// ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
|
|
2367
2477
|
/// `VetKeys.ManagementCanister.vetKdPublicKey`. A query cannot await, so the round trip is the
|
|
2368
2478
|
/// cost of getting a key nobody has to trust us for — which is the point of publishing it.
|
|
2369
2479
|
///
|
|
2370
|
-
/// ⟨Marker added 2026-08-23; the
|
|
2371
|
-
/// not carry it. Declared `public func` rather than `public shared`,
|
|
2372
|
-
/// in
|
|
2480
|
+
/// ⟨Marker added 2026-08-23; the interface plan's entry already marked it a read served as an update
|
|
2481
|
+
/// (vetKD pubkey call) and the site did not carry it. Declared `public func` rather than `public shared`,
|
|
2482
|
+
/// which is why the naming rule in the update-for-read gate did not see it — the plan's list of reads served as
|
|
2483
|
+
/// updates did.⟩
|
|
2373
2484
|
getMemoryKeyVerificationKey: () -> (blob);
|
|
2374
2485
|
/// Memory maintenance liveness. PUBLIC: ungated on purpose, like the anchor-push status — a stalled
|
|
2375
2486
|
/// sweep or a failed storage check is exactly what a third party must be able to observe, and
|
|
@@ -2392,7 +2503,7 @@ type Engram =
|
|
|
2392
2503
|
/// Refusal reasons of both merge: an empty policy reads as "nothing is capped, every version kept
|
|
2393
2504
|
/// forever" — a claim about what this engram will DESTROY — and an empty guard list reads as
|
|
2394
2505
|
/// "nothing is held back".
|
|
2395
|
-
getMemoryRetentionPolicy: () -> (
|
|
2506
|
+
getMemoryRetentionPolicy: () -> (Result_74) query;
|
|
2396
2507
|
/// The metrics reader this engram answers — `null` until the spawning registry names one.
|
|
2397
2508
|
///
|
|
2398
2509
|
/// PUBLIC: an owner deciding whether to switch the read off needs to know who it is, and anyone
|
|
@@ -2413,18 +2524,22 @@ type Engram =
|
|
|
2413
2524
|
///
|
|
2414
2525
|
/// `cyclesBalance` is a bare `Nat`, and that retires an argument this repo carried for weeks. It
|
|
2415
2526
|
/// was `nat`, then widened to `opt nat` so a refusal could be `null`, which broke every published
|
|
2416
|
-
/// client (rule 4) and bought a masked answer nobody had asked for — the
|
|
2417
|
-
/// find a consumer that read the masked `0`. Behind a gate there is nobody to mask it from.
|
|
2418
|
-
getOwnerConsole: () -> (
|
|
2527
|
+
/// client (rule 4) and bought a masked answer nobody had asked for — the 0.16.0 interface plan could not
|
|
2528
|
+
/// even find a consumer that read the masked `0`. Behind a gate there is nobody to mask it from.
|
|
2529
|
+
getOwnerConsole: () -> (Result_73) query;
|
|
2419
2530
|
/// The engram's sign-in, as `Types.OwnerSignInView` describes it: whether this engram was opened
|
|
2420
2531
|
/// through another, who its sign-in is, whether the caller is it, and any decline or waiting ask.
|
|
2421
2532
|
/// Readable by the owner's key, the sign-in, and the person a waiting ask goes to (they need to see
|
|
2422
|
-
/// the ask to answer it); refused loudly to anyone else (
|
|
2533
|
+
/// the ask to answer it); refused loudly to anyone else (the refusal-over-fabrication rule) — never an empty view, which would
|
|
2423
2534
|
/// read as "no sign-in". A first engram answers its owner with every field null or false.
|
|
2424
2535
|
/// A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
|
|
2425
2536
|
/// Named callers: an owner console showing an engram opened through another (who signs in, and a
|
|
2426
2537
|
/// waiting ask with Accept and Decline), and the owner kit after it opens one.
|
|
2427
|
-
getOwnerSignIn: () -> (
|
|
2538
|
+
getOwnerSignIn: () -> (Result_72) query;
|
|
2539
|
+
/// ⟨2026-11-15⟩ The open offer, to the two parties to it: the owner and the principal it names.
|
|
2540
|
+
/// `null` when none is open or it has expired. Anyone else is refused: an offer names a principal
|
|
2541
|
+
/// who has not agreed to anything yet, so it is not public the way the custody chain is.
|
|
2542
|
+
getOwnershipOffer: () -> (Result_71) query;
|
|
2428
2543
|
/// Read the four profile fields in one bounded batch. Raw per-field results preserve SDK
|
|
2429
2544
|
/// decryption and first-failure ordering; only an explicit NotFound means an unset field.
|
|
2430
2545
|
/// Query reads retain existing permission and owner visibility, without changing read counts.
|
|
@@ -2434,8 +2549,8 @@ type Engram =
|
|
|
2434
2549
|
///
|
|
2435
2550
|
/// A NAMED RECORD, not a Page: the setter replaces this list wholesale, so there is no window to
|
|
2436
2551
|
/// page over and no `total` that could differ from `items.size()`. Forcing the Page shape here
|
|
2437
|
-
/// would be uniformity for its own sake — the
|
|
2438
|
-
/// precisely so
|
|
2552
|
+
/// would be uniformity for its own sake — the 0.16.0 interface plan ratified the whole-value-config
|
|
2553
|
+
/// carve-out precisely so the one page shape does not become a rule applied past its meaning.
|
|
2439
2554
|
///
|
|
2440
2555
|
/// The trap's `whyNotEmpty` clause is preserved as the `#Refused` reason: `[]` would read as "no
|
|
2441
2556
|
/// path on this engram is protected", and an agent consults this list precisely to avoid
|
|
@@ -2447,10 +2562,10 @@ type Engram =
|
|
|
2447
2562
|
/// counts now, and whether the history is full (then "not paid before" may be one it forgot). Read
|
|
2448
2563
|
/// beside the request, because the stored request is never reshaped. For the key file and the sign-in
|
|
2449
2564
|
/// (the owner in a first engram); refused loudly to anyone else. A malformed address is `#Invalid`.
|
|
2450
|
-
/// ⟨2026-11-02, the child build's
|
|
2565
|
+
/// ⟨2026-11-02, the child build's withdrawal-pinning step⟩ Also how many times x402 has paid it and the largest of
|
|
2451
2566
|
/// those payments (`timesPaid`, `largestPaidE6`, six-decimal minor units), so a card can say "paid 3
|
|
2452
2567
|
/// times, largest $12"; the history forgets the address paid longest ago when full.
|
|
2453
|
-
/// ⟨2026-11-03, the pre-
|
|
2568
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ And when it was LAST paid (`lastPaidAtNs`; null when never).
|
|
2454
2569
|
/// Named callers: an owner console's approval card for a payment request.
|
|
2455
2570
|
getRecipientHistory: (payTo: text) -> (Result_68) query;
|
|
2456
2571
|
/// Whether the metrics reader's read is answered — `true` from birth.
|
|
@@ -2461,10 +2576,11 @@ type Engram =
|
|
|
2461
2576
|
/// Owner-only, Billing-class: the signing floor, the balance, one signature's price, and how many
|
|
2462
2577
|
/// payment signatures the balance carries above the floor before `signX402Payment` is refused by
|
|
2463
2578
|
/// name. The same numbers the check uses, so Billing can say only what the engram enforces.
|
|
2464
|
-
/// ⟨2026-11-01,
|
|
2465
|
-
/// freezing setting: there is no floor to serve then, and a 30-day figure would
|
|
2466
|
-
/// (
|
|
2467
|
-
///
|
|
2579
|
+
/// ⟨2026-11-01, the read-the-setting-first ruling⟩ Refused by name (`#Unavailable`) while this engram
|
|
2580
|
+
/// has not read its own freezing setting: there is no floor to serve then, and a 30-day figure would
|
|
2581
|
+
/// be a made-up one (the refusal-over-fabrication rule) — the signers refuse in that state too, so
|
|
2582
|
+
/// the refusal is the truth on Billing.
|
|
2583
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2468
2584
|
/// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
2469
2585
|
getSigningFloor: () -> (Result_67) query;
|
|
2470
2586
|
/// The registry that spawned this engram, if it recorded one.
|
|
@@ -2476,7 +2592,7 @@ type Engram =
|
|
|
2476
2592
|
getSpawnedBy: () -> (opt principal) query;
|
|
2477
2593
|
/// Read the engram-wide daily ceiling and what has been spent against it today, across every
|
|
2478
2594
|
/// caller. ⟨2026-09-28, the owner's decision to add the ceiling⟩
|
|
2479
|
-
/// ⟨CORRECTED 2026-09-29, review finding
|
|
2595
|
+
/// ⟨CORRECTED 2026-09-29, a review finding: "spent" means signed in x402 payments; typed-data
|
|
2480
2596
|
/// and the engram's registration signatures are not counted here — see `setSpendCeiling`.⟩
|
|
2481
2597
|
/// ⟨CORRECTED 2026-11-04, the agent-conversion build, beside the note above⟩ …and, since 2026-11, an
|
|
2482
2598
|
/// agent's conversion of the engram's balance into compute (`agentConvertBalance`, in a first engram too);
|
|
@@ -2487,7 +2603,7 @@ type Engram =
|
|
|
2487
2603
|
/// configuration, and the engram-wide total would also tell one agent how much the others spent.
|
|
2488
2604
|
/// A refusal names this method (`Gated.gatedResult`) rather than answering null/0 — a ceiling of
|
|
2489
2605
|
/// "none" and a spend of 0 are both real answers, so a fabricated one would be read as fact.
|
|
2490
|
-
/// ⟨2026-11-03, the pre-
|
|
2606
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2491
2607
|
/// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
2492
2608
|
getSpendCeiling: () -> (Result_66) query;
|
|
2493
2609
|
/// Read the caps in force for a caller.
|
|
@@ -2498,7 +2614,7 @@ type Engram =
|
|
|
2498
2614
|
/// configuration, and publishing them would tell any caller exactly how large a signing request
|
|
2499
2615
|
/// can be before it needs an approval nobody is watching for.
|
|
2500
2616
|
///
|
|
2501
|
-
/// ⟨2026-11-03, the pre-
|
|
2617
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2502
2618
|
/// an engram opened through another, as the owner, through the combinator's `#ownerOrSignIn` (a first
|
|
2503
2619
|
/// engram is unchanged: the owner only). The inline owner comparison that stood here is gone with it —
|
|
2504
2620
|
/// one fewer unnamed caller guard. Its refusal sentence is kept as the reason it never fails soft:
|
|
@@ -2522,9 +2638,9 @@ type Engram =
|
|
|
2522
2638
|
///
|
|
2523
2639
|
/// The engram sets `setExpiryIdlePollSeconds(0)` in its actor body, and ic402's ServiceRegistry
|
|
2524
2640
|
/// CANCELS the timer outright at 0 rather than re-arming it — so the hourly tick this paragraph
|
|
2525
|
-
/// promised has not existed since that line landed. Independently,
|
|
2526
|
-
/// market: the engram now serves no job method at all, so nothing can arm
|
|
2527
|
-
/// place. `jobExpiryArmed` reads false on an idle engram, and false is CORRECT.
|
|
2641
|
+
/// promised has not existed since that line landed. Independently, job creation moved to the
|
|
2642
|
+
/// market with the rest of commerce: the engram now serves no job method at all, so nothing can arm
|
|
2643
|
+
/// the timer in the first place. `jobExpiryArmed` reads false on an idle engram, and false is CORRECT.
|
|
2528
2644
|
///
|
|
2529
2645
|
/// EXPECTED FALSE POSITIVE: for up to one interval after any install or upgrade,
|
|
2530
2646
|
/// sessionExpiryArmed reads true with zero sessions. ic402's startTimers arms unconditionally
|
|
@@ -2544,28 +2660,28 @@ type Engram =
|
|
|
2544
2660
|
/// PUBLIC: the same standing as the two liveness reads above. Booleans and timestamps about this
|
|
2545
2661
|
/// canister's own timers — nothing about content, callers or money — and a liveness signal only
|
|
2546
2662
|
/// its owner can read cannot tell a third party that the engram is still running.
|
|
2547
|
-
/// ⟨2026-10-28, the owner's ruling
|
|
2663
|
+
/// ⟨2026-10-28, the owner's automatic-pause ruling⟩ The three ic402 flags read FALSE WHILE THE TIMERS ARE PAUSED.
|
|
2548
2664
|
/// The pause's id sweep cancels ic402's sweeps, but ic402 keeps their stale ids, so its own
|
|
2549
2665
|
/// "armed" reads would answer true for a timer that no longer exists (a fabricated answer,
|
|
2550
|
-
///
|
|
2551
|
-
/// ⟨2026-10-29, the owner's ruling
|
|
2666
|
+
/// the refusal-over-fabrication rule). `alertTimerArmed` needs no guard: the sweep nulls `alertTimerId` itself.
|
|
2667
|
+
/// ⟨2026-10-29, the owner's on-demand alerts ruling, beside the line above⟩ …the sweep zeroes the arm, and an arm
|
|
2552
2668
|
/// past its due time reads stale. `alertTimerArmed` is TRUE ONLY WHILE A DELIVERY IS OWED OR RETRYING
|
|
2553
2669
|
/// (the alert drain is a one-shot armed per owed delivery); alerts configured on a quiet engram read
|
|
2554
2670
|
/// false, and that is correct — the IDLE STEADY STATE line above now holds with a webhook set too.
|
|
2555
2671
|
/// It reads the arm's DUE TIME, not only its id (`ActionAlerts.armLive`): a job that traps before its
|
|
2556
2672
|
/// first await rolls back its own `alertTimerId := null`, so a bare id would read armed forever.
|
|
2557
|
-
/// ONE BOUNDED UNTRUTH (the
|
|
2558
|
-
/// trapped job, the flag reads true although no timer exists.
|
|
2673
|
+
/// ONE BOUNDED UNTRUTH (named by the alert design's adversarial review): for ARM_STALE_NS (120 s)
|
|
2674
|
+
/// after the due time of such a trapped job, the flag reads true although no timer exists.
|
|
2559
2675
|
getTimerHealth: () -> (TimerHealth) query;
|
|
2560
2676
|
/// PUBLIC: a cap identifies no user, and a caller deserves to know the rule before it stops them.
|
|
2561
2677
|
///
|
|
2562
|
-
/// ⟨0.16.0,
|
|
2563
|
-
/// the answer here is nothing about anybody — it is a policy ceiling, not a balance
|
|
2564
|
-
/// Publishing it removes the trap AND the envelope: an ungated read has no refusal to carry, so
|
|
2678
|
+
/// ⟨0.16.0, a public method states why it is public⟩ Was owner-gated behind a trap. The disclosure law asks
|
|
2679
|
+
/// what the value reveals, and the answer here is nothing about anybody — it is a policy ceiling, not a balance
|
|
2680
|
+
/// or a history. Publishing it removes the trap AND the envelope: an ungated read has no refusal to carry, so
|
|
2565
2681
|
/// wrapping it in `Result` would be ceremony that implies a gate exists.
|
|
2566
2682
|
///
|
|
2567
2683
|
/// Predictability is itself the honesty posture: a limit that only reveals itself by refusing a
|
|
2568
|
-
/// top-up teaches the caller by failure. `/// PUBLIC:` is the marker the
|
|
2684
|
+
/// top-up teaches the caller by failure. `/// PUBLIC:` is the marker the public-reason gate greps for.
|
|
2569
2685
|
getTopUpLimits: () ->
|
|
2570
2686
|
(record {
|
|
2571
2687
|
cooldownSeconds: nat;
|
|
@@ -2578,25 +2694,26 @@ type Engram =
|
|
|
2578
2694
|
/// the other, is a call site waiting to be written wrong — and wrong in the direction that
|
|
2579
2695
|
/// silently reads cycles when it meant to read money. Doc callers (CLI-REFERENCE, Docs.vue) sweep
|
|
2580
2696
|
/// to the survivor.
|
|
2581
|
-
/// RENAMED from `walletBalances` (
|
|
2697
|
+
/// RENAMED from `walletBalances` (a `get*` for a single value).
|
|
2582
2698
|
///
|
|
2583
|
-
/// Stays an UPDATE, marked
|
|
2584
|
-
/// the declaration does — a caller budgeting round-trips needs to know this is
|
|
2699
|
+
/// Stays an UPDATE, marked as a read served as an update: it awaits three ICRC-1 ledgers. The name
|
|
2700
|
+
/// cannot say that, so the declaration does — a caller budgeting round-trips needs to know this is
|
|
2701
|
+
/// not a query.
|
|
2585
2702
|
///
|
|
2586
2703
|
/// The ledger failure is `#Unavailable`, not `#Invalid`: a dependency refused or timed out, the
|
|
2587
2704
|
/// request was fine, and retry is the correct response. That is the one arm in the whole set that
|
|
2588
2705
|
/// means "try again", and it is the reason `Error` is a closed variant rather than a sentence.
|
|
2589
2706
|
///
|
|
2590
|
-
/// ⟨
|
|
2591
|
-
/// UPDATE, marked
|
|
2592
|
-
/// to any gate; the glyph is what
|
|
2707
|
+
/// ⟨update-for-read⟩ MARKER ADDED 2026-08-23, reasoning above UNCHANGED — this block already said "Stays an
|
|
2708
|
+
/// UPDATE, marked as a read served as an update: it awaits three ICRC-1 ledgers". It was marked in
|
|
2709
|
+
/// prose and invisible to any gate; the glyph is what the update-for-read gate matches.
|
|
2593
2710
|
getWalletBalances: () -> (Result_63);
|
|
2594
2711
|
/// Cycles-only getter used by EngramClient.walletBalance and its stdio MCP/OpenClaw callers.
|
|
2595
2712
|
/// The earlier walletBalance/walletBalances one-letter pair remains retired: this name states
|
|
2596
2713
|
/// the unit, while getWalletBalances retains the distinct full token-wallet operation.
|
|
2597
2714
|
/// A token-ledger outage cannot prevent this local fuel read; it uses the same operation as
|
|
2598
2715
|
/// remote engram_wallet_balance and never sends an outgoing call.
|
|
2599
|
-
/// ⟨
|
|
2716
|
+
/// ⟨update-for-read⟩ UPDATE despite having no await: preserve the existing wallet facade's per-agent quota
|
|
2600
2717
|
/// charge and lastSeenNs update, including when wallet permission is subsequently refused.
|
|
2601
2718
|
/// A query would discard those writes and silently loosen the agent's existing rate limit.
|
|
2602
2719
|
getWalletCycles: () -> (Result_15);
|
|
@@ -2605,7 +2722,7 @@ type Engram =
|
|
|
2605
2722
|
/// engram has no World ID configuration" — handed to a caller who merely lacks a grant. The
|
|
2606
2723
|
/// fabrication is indistinguishable from the truth by construction.
|
|
2607
2724
|
getWorldIdConfig: () -> (Result_62) query;
|
|
2608
|
-
/// ⟨
|
|
2725
|
+
/// ⟨update-for-read⟩ UPDATE, NOT QUERY: this awaits THREE system calls — `raw_rand()` for the nonce,
|
|
2609
2726
|
/// `Call.signWithEcdsa` for the signature, and `worldIdRpPublicKey()` for the derived key. A
|
|
2610
2727
|
/// query can do none of them.
|
|
2611
2728
|
///
|
|
@@ -2619,11 +2736,11 @@ type Engram =
|
|
|
2619
2736
|
/// Portal — the engram never holds or exports a private key (only threshold shares exist, on the
|
|
2620
2737
|
/// subnet). Distinct from the payment/EVM address by construction.
|
|
2621
2738
|
///
|
|
2622
|
-
/// ⟨
|
|
2739
|
+
/// ⟨update-for-read⟩ UPDATE, NOT QUERY, for TWO reasons and the second is the one a reader would miss. It
|
|
2623
2740
|
/// awaits `worldIdRpPublicKey()` (management `ecdsa_public_key`), and it calls `denied()` on
|
|
2624
2741
|
/// refusal — a state write, which a query cannot perform. So even if the key were cached this
|
|
2625
|
-
/// could not become a query without silently retiring its denial record (
|
|
2626
|
-
/// ⟨2026-11-03, the pre-
|
|
2742
|
+
/// could not become a query without silently retiring its denial record (the refusal-over-fabrication class).
|
|
2743
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2627
2744
|
/// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
|
|
2628
2745
|
/// engram is unchanged.
|
|
2629
2746
|
getWorldIdRpSignerAddress: () -> (Result_58);
|
|
@@ -2641,15 +2758,15 @@ type Engram =
|
|
|
2641
2758
|
/// nothing.
|
|
2642
2759
|
///
|
|
2643
2760
|
/// ⟨CORRECTED 2026-08-21 — this said `metrics().verifiedHuman`, and `metrics()` no longer exists:
|
|
2644
|
-
///
|
|
2761
|
+
/// The same-concept-same-name law folded it and `status()` into `about()`, which carries the field. The sentence is a
|
|
2645
2762
|
/// `///`, so the dead name was PUBLISHED in engram.did and pointed every client at a method the
|
|
2646
2763
|
/// canister does not serve. The tombstones below and at `about()` are historical and correct as
|
|
2647
2764
|
/// written; this one was present tense, which is the difference that matters.⟩
|
|
2648
2765
|
getWorldIdVerification: () -> (Result_60) query;
|
|
2649
|
-
/// ⟨0.16.0,
|
|
2650
|
-
/// absence of a `#Conflict` here is the point: these are the calls someone
|
|
2651
|
-
/// is going wrong, and the only two answers that help are "you may not do this"
|
|
2652
|
-
/// nothing by that name". A missing PERMISSION is `#Refused` rather than `#Conflict` — the
|
|
2766
|
+
/// ⟨0.16.0, refusals are values, never traps⟩ THE EMERGENCY FAMILY. Every refusal below is `#Refused`
|
|
2767
|
+
/// or `#NotFound`, and the absence of a `#Conflict` here is the point: these are the calls someone
|
|
2768
|
+
/// makes while something is going wrong, and the only two answers that help are "you may not do this"
|
|
2769
|
+
/// and "there is nothing by that name". A missing PERMISSION is `#Refused` rather than `#Conflict` — the
|
|
2653
2770
|
/// guardian's standing is what fell short, and no change to engram state would let them through.
|
|
2654
2771
|
guardianRevokeAgent: (agentPrincipal: principal) -> (Result_2);
|
|
2655
2772
|
/// The HTTP surface: canister-info JSON, OAuth discovery documents, and the MCP route's query
|
|
@@ -2670,7 +2787,7 @@ type Engram =
|
|
|
2670
2787
|
/// arm inside records.
|
|
2671
2788
|
http_request_update: (request: HttpRequest) -> (HttpResponse);
|
|
2672
2789
|
/// ⟨0.16.0⟩ `isPaidMemoryReadEnabled()` DELETED — folded to `about().paidMemoryReadEnabled`
|
|
2673
|
-
/// (
|
|
2790
|
+
/// (one idiom for a boolean feature — a setter plus the flag on its family's projection).
|
|
2674
2791
|
/// Its callers are a buyer's pre-check and the market canister, both ANONYMOUS, so the public
|
|
2675
2792
|
/// projection is exactly where it belongs.
|
|
2676
2793
|
/// PUBLIC: a wallet calls this BEFORE its user has any standing on this engram — that is what the
|
|
@@ -2720,7 +2837,7 @@ type Engram =
|
|
|
2720
2837
|
///
|
|
2721
2838
|
/// Owner-gated because it reports on custody posture, and answered as a Result so that a
|
|
2722
2839
|
/// wrong-identity caller gets a refusal rather than a bare `false` that reads as "no address yet".
|
|
2723
|
-
/// ⟨2026-11-03, the pre-
|
|
2840
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2724
2841
|
/// an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
|
|
2725
2842
|
/// engram is unchanged.
|
|
2726
2843
|
isEvmAddressCached: () -> (Result_59) query;
|
|
@@ -2739,8 +2856,8 @@ type Engram =
|
|
|
2739
2856
|
/// Hourly (timestamp, totalMemoryReads, totalMemoryWrites) snapshots, ~30 days.
|
|
2740
2857
|
/// Same guard + fail-to-empty shape as getCycleHistory. Diff consecutive rows for a
|
|
2741
2858
|
/// per-engram activity time-series (retention instrumentation).
|
|
2742
|
-
/// RENAMED from `getActivityHistory` (
|
|
2743
|
-
/// were positionally indistinguishable.
|
|
2859
|
+
/// RENAMED from `getActivityHistory` (a `get*` returns one value, a `list*` a page); named fields replace a
|
|
2860
|
+
/// bare 3-tuple whose two Nats were positionally indistinguishable.
|
|
2744
2861
|
///
|
|
2745
2862
|
/// Refusal reason preserved, and it is the sharpest of this family: a masked `[]` reads as a
|
|
2746
2863
|
/// DORMANT engram and corrupts retention math — a fabricated empty here does not just misinform a
|
|
@@ -2754,8 +2871,8 @@ type Engram =
|
|
|
2754
2871
|
/// Callers: an owner console's agent list (paired agents and sign-ins on one page, with the
|
|
2755
2872
|
/// admission count), read by the owner or a seated sign-in.
|
|
2756
2873
|
listAgentRoster: (start: nat, limit: nat) -> (Result_56) query;
|
|
2757
|
-
/// ⟨2026-10-21,
|
|
2758
|
-
///
|
|
2874
|
+
/// ⟨2026-10-21, the owner approved every item of the mobile design's eleventh round of changes, this
|
|
2875
|
+
/// one included⟩ OWNER-ONLY: what each agent has spent today, beside the daily limit in force for it, so the
|
|
2759
2876
|
/// agent rows can say "$0.50 of $5.00 today" where they said a count of payments. Read from the
|
|
2760
2877
|
/// state the payment path already keeps — `outboundSpendToday`, through `SpendCeiling.callerSpentOn`
|
|
2761
2878
|
/// (the reader `x402SignFor` uses) — and the limits from `gate.getPolicy(<the agent's key>)`, the
|
|
@@ -2770,10 +2887,11 @@ type Engram =
|
|
|
2770
2887
|
/// because the payment path keeps no figure then (`SpendCeiling.AgentSpendRow` says why).
|
|
2771
2888
|
/// WHAT WOULD MAKE THIS WRONG: `x402SignFor` keeping the per-caller total by something other than
|
|
2772
2889
|
/// the calling key, or under another day boundary.
|
|
2773
|
-
/// ⟨2026-11-03, the pre-
|
|
2890
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2774
2891
|
/// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
2775
2892
|
listAgentSpendToday: (start: nat, limit: nat) -> (Result_55) query;
|
|
2776
|
-
/// ⟨0.16.0⟩ THE PAGE EXEMPLAR. Trap → `#Refused`, bare array → `Result<Page<T>>` (
|
|
2893
|
+
/// ⟨0.16.0⟩ THE PAGE EXEMPLAR. Trap → `#Refused`, bare array → `Result<Page<T>>` (refusals are values; a
|
|
2894
|
+
/// list answers the one page shape).
|
|
2777
2895
|
///
|
|
2778
2896
|
/// The refusal prose that used to be `gatedTrap`'s `whyNotEmpty` argument is not lost — it is why
|
|
2779
2897
|
/// this method could never fail soft, and it now travels ON THE WIRE inside `#Refused` where a
|
|
@@ -2786,17 +2904,17 @@ type Engram =
|
|
|
2786
2904
|
/// behaviour (silently truncate, look complete) is unrepresentable.
|
|
2787
2905
|
///
|
|
2788
2906
|
/// `withheld` is 0: this roster is owner-only in whole, so there is no partial-visibility case.
|
|
2789
|
-
/// A method that filters rows by caller sets it —
|
|
2790
|
-
/// ⟨2026-11-03, the pre-
|
|
2907
|
+
/// A method that filters rows by caller sets it — the row-level honesty rule.
|
|
2908
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2791
2909
|
/// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
2792
2910
|
listAgents: (start: nat, limit: nat) -> (Result_54) query;
|
|
2793
2911
|
/// The GUARDIAN-audience projection of the agent roster — three fields, not the full record.
|
|
2794
2912
|
///
|
|
2795
|
-
/// Two audiences, two methods (
|
|
2796
|
-
/// guardian needs enough to revoke (who, what they are called,
|
|
2797
|
-
/// more. Field-masking would make the same call return different
|
|
2798
|
-
/// which is the design
|
|
2799
|
-
/// inside a build closure where no gate can read it.
|
|
2913
|
+
/// Two audiences, two methods (one result shape per method; the disclosure law), rather than one
|
|
2914
|
+
/// method masking fields by caller: a guardian needs enough to revoke (who, what they are called,
|
|
2915
|
+
/// whether they are active) and no more. Field-masking would make the same call return different
|
|
2916
|
+
/// shapes to different callers, which is the design the one-result-shape law abolished — and it would
|
|
2917
|
+
/// put the decision about what a guardian may see inside a build closure where no gate can read it.
|
|
2800
2918
|
///
|
|
2801
2919
|
/// Refusal reason preserved: `[]` reads as "this engram has no agents", and this is the list a
|
|
2802
2920
|
/// guardian consults BEFORE REVOKING ONE. A fabricated empty here does not merely misinform —
|
|
@@ -2804,9 +2922,9 @@ type Engram =
|
|
|
2804
2922
|
listAgentsForGuardian: (start: nat, limit: nat) -> (Result_53) query;
|
|
2805
2923
|
/// Owner-only: rows carry caller, amount, operation and free-text rationale. The SDK omits it.
|
|
2806
2924
|
///
|
|
2807
|
-
/// The optional leading filter SURVIVES the
|
|
2808
|
-
/// assumed, because Billing.vue calls the filtered
|
|
2809
|
-
/// would make the console fetch a queue to discard most of it.
|
|
2925
|
+
/// The optional leading filter SURVIVES the page-shape reshape — ratified in the 0.16.0 interface plan (a
|
|
2926
|
+
/// list may take an optional leading filter) rather than assumed, because Billing.vue calls the filtered
|
|
2927
|
+
/// form live and pushing the filter client-side would make the console fetch a queue to discard most of it.
|
|
2810
2928
|
///
|
|
2811
2929
|
/// `total` counts the FILTERED set, not the whole queue: with a filter applied, "how many match"
|
|
2812
2930
|
/// is the number a pager needs, and reporting the unfiltered count would make every filtered view
|
|
@@ -2827,15 +2945,15 @@ type Engram =
|
|
|
2827
2945
|
/// Refusal reason preserved: for an unauthenticated integrity check the caller wants
|
|
2828
2946
|
/// `getCertifiedAuditHead()`, which is public and subnet-certified. The BODIES are role-gated.
|
|
2829
2947
|
///
|
|
2830
|
-
/// ⟨2026-09-29, owner ruling
|
|
2831
|
-
/// owner and guardians read everything (`RecordView`). So `limit` is
|
|
2832
|
-
/// to examine from `start` — and an agent's page holds the entries in
|
|
2833
|
-
/// its own key, with `withheld` counting the rest: `items.size() +
|
|
2834
|
-
/// For the owner and a guardian `withheld` is 0 and the page is the
|
|
2835
|
-
/// WRONG: a reader who must see the whole record without being the owner
|
|
2836
|
-
/// public certified head is the answer for integrity, and nothing else is.
|
|
2948
|
+
/// ⟨2026-09-29, the owner's ruling that an agent reads only the entries it caused⟩ AN AGENT READS
|
|
2949
|
+
/// ONLY THE ENTRIES IT CAUSED; the owner and guardians read everything (`RecordView`). So `limit` is
|
|
2950
|
+
/// a SPAN — how many record ids to examine from `start` — and an agent's page holds the entries in
|
|
2951
|
+
/// that span whose caller is its own key, with `withheld` counting the rest: `items.size() +
|
|
2952
|
+
/// withheld` is the span examined. For the owner and a guardian `withheld` is 0 and the page is the
|
|
2953
|
+
/// span. WHAT WOULD MAKE THIS WRONG: a reader who must see the whole record without being the owner
|
|
2954
|
+
/// or a guardian — the public certified head is the answer for integrity, and nothing else is.
|
|
2837
2955
|
///
|
|
2838
|
-
/// ⟨2026-10-15, the owner's ruling
|
|
2956
|
+
/// ⟨2026-10-15, the owner's chained-record ruling of 2026-10-14⟩ PUBLIC NOW, AND THE COUNT BECAME ROWS. The
|
|
2839
2957
|
/// reply is a `Wire.RecordPage`: every entry in the span the reader may not see in full comes back
|
|
2840
2958
|
/// as a hash-only row in `sealed` (id, SHA-256 of its body, entry hash) instead of being counted in
|
|
2841
2959
|
/// `withheld`, so `items.size() + sealed.size()` is the span examined. Each entry is hashed first,
|
|
@@ -2849,27 +2967,29 @@ type Engram =
|
|
|
2849
2967
|
/// at read time; nothing new is stored. WHAT WOULD MAKE THIS WRONG: a sealed row carrying any part
|
|
2850
2968
|
/// of a body, or a stranger reaching `items` (test/record-view.test.mo pins both).
|
|
2851
2969
|
listAuditEntries: (start: nat, limit: nat) -> (Result_52) query;
|
|
2852
|
-
/// ⟨0.16.0,
|
|
2970
|
+
/// ⟨0.16.0, refusals are values; the one page shape — ruled in the 0.16.0 interface plan⟩ THE
|
|
2971
|
+
/// TWO-MECHANISM EXCEPTION DISSOLVES.
|
|
2853
2972
|
///
|
|
2854
2973
|
/// This method used to answer THREE ways to one question: a list, an `#Err` text, and a trap,
|
|
2855
2974
|
/// picked by which kind of caller asked. That split existed only because the return type could
|
|
2856
2975
|
/// not carry a refusal — with `Result<Page<T>>` it can, so every caller gets one shape and the
|
|
2857
2976
|
/// arm says which no it is. A paired agent lacking `canReadBackup` is `#Refused`; so is
|
|
2858
2977
|
/// everyone else who may not ask. The trap is gone: `Debug.trap` is for invariant violations,
|
|
2859
|
-
/// never authorization (
|
|
2978
|
+
/// never authorization (refusals are values, never traps), and a refusal a caller cannot catch is not
|
|
2979
|
+
/// a better refusal.
|
|
2860
2980
|
///
|
|
2861
2981
|
/// ⚠ THE RATIFIED LOCKSTEP EXCEPTION THIS CARRIED IS SUPERSEDED, not quietly dropped.
|
|
2862
|
-
/// `
|
|
2982
|
+
/// The recorded lockstep exception for `listBackups` existed because published
|
|
2863
2983
|
/// @engramx/client 0.15.0 declares `IDL.Vec(BackupMetadata)` here and cannot decode a variant at
|
|
2864
2984
|
/// all — it throws — and @engramx/openclaw's dedup probe catches that throw and degrades to
|
|
2865
2985
|
/// "skipped", so every database silently stops being backed up while the CLI reports success.
|
|
2866
|
-
/// That analysis was correct and is still correct. What changed is its PREMISE: plan
|
|
2986
|
+
/// That analysis was correct and is still correct. What changed is its PREMISE: the redesign plan measured
|
|
2867
2987
|
/// the installed base at zero external users (prod = two engrams, both ours; npm published
|
|
2868
2988
|
/// 2026-08-14), so the population the ceremony protected does not exist. The SDK is republished
|
|
2869
2989
|
/// at 0.16.0 in this same campaign. If an outside caller ever appears before that ships,
|
|
2870
2990
|
/// this reasoning is void and the lockstep is owed again.
|
|
2871
2991
|
///
|
|
2872
|
-
/// `dbTypeFilter` DIES on the wire (
|
|
2992
|
+
/// `dbTypeFilter` DIES on the wire (the 0.16.0 interface plan). The capability does not: `EngramClient.listBackups`
|
|
2873
2993
|
/// keeps its optional filter and applies it to the page, so no caller loses the ability to ask
|
|
2874
2994
|
/// "backups of this database" — it stops being a thing the canister has to page around.
|
|
2875
2995
|
listBackups: (start: nat, limit: nat) -> (Result_51) query;
|
|
@@ -2882,7 +3002,7 @@ type Engram =
|
|
|
2882
3002
|
/// `bearerTokenStore.list()` already resolves each token's status at read time (a token that
|
|
2883
3003
|
/// merely stopped being used is reported `#Expired`, not a stale `#Active`), so the page carries
|
|
2884
3004
|
/// the same honesty the store gained on 2026-08-17.
|
|
2885
|
-
/// ⟨2026-11-03, the pre-
|
|
3005
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
2886
3006
|
/// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
2887
3007
|
listBearerTokens: (start: nat, limit: nat) -> (Result_50) query;
|
|
2888
3008
|
/// The condense checkpoints in the retained log at or above `startSeq`, oldest first.
|
|
@@ -2897,7 +3017,7 @@ type Engram =
|
|
|
2897
3017
|
listCondenseCheckpoints: (startSeq: nat, max: nat) -> (Result_49) query;
|
|
2898
3018
|
/// ⟨0.16.0⟩ `metrics()` DELETED — absorbed by `about()`.
|
|
2899
3019
|
///
|
|
2900
|
-
/// Two public projections of one canister (
|
|
3020
|
+
/// Two public projections of one canister (one concept, one name): `metrics()` and `status()` both answered "what
|
|
2901
3021
|
/// is this engram like" and disagreed on which counters they carried, so a consumer had to fetch
|
|
2902
3022
|
/// both and know which one owned each field. Every field here survives on `about()`, day-flooring
|
|
2903
3023
|
/// included.
|
|
@@ -2906,7 +3026,8 @@ type Engram =
|
|
|
2906
3026
|
/// for non-owners just as silently, and a caller could not tell a filtered tombstone list from a
|
|
2907
3027
|
/// complete one. Counted before slicing, so policy-hidden rows never blur into paging.
|
|
2908
3028
|
listDeletedMemoryFiles: (start: nat, limit: nat) -> (Result_47) query;
|
|
2909
|
-
/// Stays on the engram under
|
|
3029
|
+
/// Stays on the engram under the 0.16.0 split (commerce to the market, signing here): withdrawal
|
|
3030
|
+
/// custody does not leave.
|
|
2910
3031
|
///
|
|
2911
3032
|
/// NAMED item, not a `(Text, Int)` tuple. The Int is an activation time, and a bare Int beside a
|
|
2912
3033
|
/// bare Text told a reader nothing about which was which — the same defect fixed on the purge log.
|
|
@@ -2915,28 +3036,29 @@ type Engram =
|
|
|
2915
3036
|
/// engram may withdraw nowhere", OR — worse — as "no allowlist is in force", which is the
|
|
2916
3037
|
/// opposite security posture. It also erases any pending 24h activation from view.
|
|
2917
3038
|
///
|
|
2918
|
-
/// ⟨2026-10-14,
|
|
3039
|
+
/// ⟨2026-10-14, the destination-list ruling⟩ One action's list: `typeId` names the action, and an unregistered one is
|
|
2919
3040
|
/// `#NotFound` rather than an empty page (an empty page means "this action may sign to nothing").
|
|
2920
3041
|
/// The item's field is `value`, not `address`: a list may hold a venue value that is no address.
|
|
2921
3042
|
/// Readable by the owner, an active agent or an active guardian, as the old list was.
|
|
2922
3043
|
listEip712Destinations: (typeId: blob, start: nat, limit: nat) ->
|
|
2923
3044
|
(Result_46) query;
|
|
2924
|
-
/// The registered shapes —
|
|
2925
|
-
/// Stays on the engram under
|
|
3045
|
+
/// The registered shapes — encodeTypeString is the display artifact, verbatim.
|
|
3046
|
+
/// Stays on the engram under the 0.16.0 split (commerce to the market, signing here): EIP-712 signing is
|
|
3047
|
+
/// custody, and custody does not leave.
|
|
2926
3048
|
///
|
|
2927
3049
|
/// Refusal reason preserved: `[]` reads as "this engram can sign nothing" — a claim about SIGNING
|
|
2928
3050
|
/// AUTHORITY, which is not a thing to hand an unauthorized reader. The public trail of every
|
|
2929
3051
|
/// registration remains the audit chain under getCertifiedAuditHead.
|
|
2930
3052
|
///
|
|
2931
|
-
/// ⟨2026-10-14, the owner's ruling
|
|
3053
|
+
/// ⟨2026-10-14, the owner's registration-bar ruling⟩ Each row carries its per-field rules (`fieldRules`), joined in
|
|
2932
3054
|
/// from `eip712FieldRules` — they are part of what the type authorises, so a reader of the list must
|
|
2933
3055
|
/// not have to make a second call to learn them. The row type is `Eip712TypeView`.
|
|
2934
3056
|
listEip712Types: (start: nat, limit: nat) -> (Result_45) query;
|
|
2935
|
-
/// ⟨2026-10-21,
|
|
2936
|
-
/// `listRepudiations` and `listRecordNotes`: the owner and ACTIVE guardians
|
|
2937
|
-
/// agent gets an empty page whose `withheld` counts them (
|
|
2938
|
-
///
|
|
2939
|
-
/// refused.
|
|
3057
|
+
/// ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ Guardians' disputes, oldest
|
|
3058
|
+
/// first. Same visibility as `listRepudiations` and `listRecordNotes`: the owner and ACTIVE guardians
|
|
3059
|
+
/// read the rows; an agent gets an empty page whose `withheld` counts them (the 2026-09-29 ruling
|
|
3060
|
+
/// that an agent reads only the entries it caused holds — a dispute is the guardian's entry, not the
|
|
3061
|
+
/// agent's); a stranger, a pending guardian and the anonymous caller are refused.
|
|
2940
3062
|
listGuardianDisputes: (start: nat, limit: nat) -> (Result_44) query;
|
|
2941
3063
|
/// Accessible by owner and guardians.
|
|
2942
3064
|
///
|
|
@@ -2947,21 +3069,23 @@ type Engram =
|
|
|
2947
3069
|
listGuardians: (start: nat, limit: nat) -> (Result_43) query;
|
|
2948
3070
|
/// The export receipts in the retained log at or above `startSeq`, oldest first.
|
|
2949
3071
|
///
|
|
2950
|
-
/// ⟨0.16.0,
|
|
3072
|
+
/// ⟨0.16.0, the one page shape⟩ ONE LIST, ONE QUESTION. This method used to return receipts AND checkpoints
|
|
2951
3073
|
/// together behind a backward `before`/`max` cursor. They answer different questions — what may be
|
|
2952
3074
|
/// condensed, and what already was — so a caller wanting one paid to decode the other, and the
|
|
2953
3075
|
/// merged shape had to carry two arrays, a truncation flag and an opaque cursor to stay honest
|
|
2954
3076
|
/// about a walk that served both. `listCondenseCheckpoints` is the other half.
|
|
2955
3077
|
///
|
|
2956
|
-
/// The cursor dies with it (
|
|
2957
|
-
/// at `scannedThroughSeq + 1` and is finished when that passes
|
|
2958
|
-
/// gone because it has nothing left to say — "I stopped at entry N"
|
|
2959
|
-
/// says it as a position rather than a flag a reader has to pair with
|
|
3078
|
+
/// The cursor dies with it (the 0.16.0 plan unifies the paging idioms): paging is by ABSOLUTE SEQ
|
|
3079
|
+
/// now, forward, so a caller resumes at `scannedThroughSeq + 1` and is finished when that passes
|
|
3080
|
+
/// `page.total`. `scanTruncated` is gone because it has nothing left to say — "I stopped at entry N"
|
|
3081
|
+
/// is the same claim it made, and says it as a position rather than a flag a reader has to pair with
|
|
3082
|
+
/// a second field.
|
|
2960
3083
|
///
|
|
2961
3084
|
/// Read `MemoryRouter.ReceiptPage` before reading `page.total` as a receipt count. It is not one;
|
|
2962
3085
|
/// it is the chain's length, and the declaration says why.
|
|
2963
3086
|
listMemoryExportReceipts: (startSeq: nat, max: nat) -> (Result_42) query;
|
|
2964
|
-
/// ⟨0.16.0⟩ THE `withheld` EXEMPLAR —
|
|
3087
|
+
/// ⟨0.16.0⟩ THE `withheld` EXEMPLAR — the 0.16.0 interface law on refusals names this exact method as
|
|
3088
|
+
/// the defect it fixes.
|
|
2965
3089
|
///
|
|
2966
3090
|
/// A non-owner's answer silently dropped every `config/` and `secrets/` row. Not "refused the
|
|
2967
3091
|
/// call" and not "returned a marker" — the rows simply were not there, with nothing in band
|
|
@@ -2977,11 +3101,11 @@ type Engram =
|
|
|
2977
3101
|
/// by POLICY, never rows merely off the end of this page — those are `total`'s job. Conflating
|
|
2978
3102
|
/// the two would rebuild the ambiguity in a new place.
|
|
2979
3103
|
///
|
|
2980
|
-
/// ⟨2026-10-21, the owner's
|
|
3104
|
+
/// ⟨2026-10-21, the owner's approval of the mobile design's changes: an author on every file row⟩ Each row also
|
|
2981
3105
|
/// carries `lastModifiedBy` (`Types.MemoryFileRow`): the key that wrote the file's current
|
|
2982
3106
|
/// version, so a phone's file list can say "changed 2 h ago by Recorder" without a read per
|
|
2983
3107
|
/// file. It is what `readMemory` already serves to the same callers under the same gate, so it
|
|
2984
|
-
/// tells no caller anything it could not read. Born `opt` (
|
|
3108
|
+
/// tells no caller anything it could not read. Born `opt` (a field added to a response record is `opt`). Looked up only for
|
|
2985
3109
|
/// the rows of THIS page (`MemoryRouter.info`), after the slice, so the cost is one lookup per
|
|
2986
3110
|
/// row served, never one per file stored. A WIDENED REPLY: a reader that decodes the row by
|
|
2987
3111
|
/// position rather than by field name breaks — none in this repository does.
|
|
@@ -2993,14 +3117,14 @@ type Engram =
|
|
|
2993
3117
|
/// that, never by "last entry returned + 1", which stalls forever on the first empty page. Stop
|
|
2994
3118
|
/// when the window passes `total`.
|
|
2995
3119
|
///
|
|
2996
|
-
/// ⟨0.16.0,
|
|
2997
|
-
/// "authorFilter dropped (kills the filtered-window
|
|
2998
|
-
/// diagnosis is right; amputating the filter is not the
|
|
2999
|
-
/// `Archive.vue` ships a working author-filter UI, and "what
|
|
3000
|
-
/// question an owner asks of an evidence log. The filter STAYS. What kills
|
|
3001
|
-
/// `withheld`: it carries the count this filter removed from the window, so a
|
|
3002
|
-
/// filtered page is no longer ambiguous between "nobody wrote here" and "the window
|
|
3003
|
-
/// and the correct cursor advance is computable from the page itself. `pageCap` therefore dies
|
|
3120
|
+
/// ⟨0.16.0, the one page shape — A CONFLICT WITH THE INTERFACE PLAN, RECORDED⟩ The plan's entry for
|
|
3121
|
+
/// this method says `→R<P<MemoryLogEvent>>` and "authorFilter dropped (kills the filtered-window
|
|
3122
|
+
/// cursor stall)". The stall is real and the diagnosis is right; amputating the filter is not the
|
|
3123
|
+
/// only cure, and it is the expensive one — `Archive.vue` ships a working author-filter UI, and "what
|
|
3124
|
+
/// did this agent write" is a question an owner asks of an evidence log. The filter STAYS. What kills
|
|
3125
|
+
/// the stall instead is `withheld`: it carries the count this filter removed from the window, so a
|
|
3126
|
+
/// short or empty filtered page is no longer ambiguous between "nobody wrote here" and "the window
|
|
3127
|
+
/// was small", and the correct cursor advance is computable from the page itself. `pageCap` therefore dies
|
|
3004
3128
|
/// with nothing lost — it existed only to disclose a window that `items.size() + withheld` now
|
|
3005
3129
|
/// states directly.
|
|
3006
3130
|
///
|
|
@@ -3008,11 +3132,11 @@ type Engram =
|
|
|
3008
3132
|
/// chain, not this slice: the condense floor tells a caller reading an archived range where the
|
|
3009
3133
|
/// log now begins instead of letting them read it as empty, and the head is what a third party
|
|
3010
3134
|
/// checks the page against. Flattening to a bare `Page` to satisfy the shape would buy uniformity
|
|
3011
|
-
/// with the disclosures that make the page verifiable — the hidden-bound defect the
|
|
3012
|
-
/// names on previewCondense's
|
|
3135
|
+
/// with the disclosures that make the page verifiable — the hidden-bound defect the interface plan
|
|
3136
|
+
/// itself names on previewCondense's entry.
|
|
3013
3137
|
listMemoryLog: (startSeq: nat, max: nat, authorFilter: opt principal) ->
|
|
3014
3138
|
(Result_40) query;
|
|
3015
|
-
/// The caller's OWN spend-approval requests. ⟨0.16.0,
|
|
3139
|
+
/// The caller's OWN spend-approval requests. ⟨0.16.0, refusals are values; the one page shape — fixed 2026-08-18⟩
|
|
3016
3140
|
///
|
|
3017
3141
|
/// Two defects in seven lines, and the first is the one this release exists to remove:
|
|
3018
3142
|
///
|
|
@@ -3039,7 +3163,7 @@ type Engram =
|
|
|
3039
3163
|
/// same reason. The order is the order sessions were opened.
|
|
3040
3164
|
listMySessions: (start: nat, limit: nat) -> (Result_38) query;
|
|
3041
3165
|
///
|
|
3042
|
-
/// ⟨0.16.0,
|
|
3166
|
+
/// ⟨0.16.0, the one page shape⟩ Paged and enveloped like every other `list*`, and the envelope here is uniformity
|
|
3043
3167
|
/// rather than gating: this method cannot refuse anybody, so `#Err` is unreachable on it. That is
|
|
3044
3168
|
/// deliberate — the off-chain verifier that reads this chain reads several other lists beside it,
|
|
3045
3169
|
/// and one shape for all of them is worth more than saving a variant tag on the one that is
|
|
@@ -3051,7 +3175,7 @@ type Engram =
|
|
|
3051
3175
|
/// IT recorded, so this chain is what a caller composes with when currency matters — which it
|
|
3052
3176
|
/// cannot do if it needs a role here.
|
|
3053
3177
|
listOwnershipTransfers: (start: nat, limit: nat) -> (Result_37) query;
|
|
3054
|
-
/// ⟨2026-09-29,
|
|
3178
|
+
/// ⟨2026-09-29, a question from the build review⟩ OWNER-ONLY: how many payment
|
|
3055
3179
|
/// signatures each agent has obtained today, and the daily limit (200, `PaymentSignCap`). The
|
|
3056
3180
|
/// owner's console stated the rule and showed no number, because nothing served one; a number it
|
|
3057
3181
|
/// made up would be a fabricated zero. Anyone else is refused by name (`#Refused
|
|
@@ -3062,11 +3186,11 @@ type Engram =
|
|
|
3062
3186
|
/// MAKE THIS WRONG: a count kept by something other than the agent's root (`PaymentSignCap.rowFor`
|
|
3063
3187
|
/// says so beside it).
|
|
3064
3188
|
///
|
|
3065
|
-
/// ⟨2026-09-30, following the owner's
|
|
3066
|
-
/// marketplace's one shared count today is in the reply's
|
|
3067
|
-
/// engram enforces for it — beside the agents, never a row
|
|
3068
|
-
/// (`PaymentSignCap.marketplaceRow`). Null when no marketplace is set.
|
|
3069
|
-
/// ⟨2026-11-03, the pre-
|
|
3189
|
+
/// ⟨2026-09-30, following the owner's acceptance that day of the marketplace's one shared count⟩ "is
|
|
3190
|
+
/// not here" no longer holds: the marketplace's one shared count today is in the reply's
|
|
3191
|
+
/// `marketplace` field, with the limit this engram enforces for it — beside the agents, never a row
|
|
3192
|
+
/// among them (`PaymentSignCap.marketplaceRow`). Null when no marketplace is set.
|
|
3193
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
3070
3194
|
/// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
3071
3195
|
listPaymentSignatureCounts: (start: nat, limit: nat) -> (Result_36) query;
|
|
3072
3196
|
/// Agent records removed by a reset. Each row is a NAMED record with the fields `principal`,
|
|
@@ -3094,7 +3218,7 @@ type Engram =
|
|
|
3094
3218
|
/// ⟨CORRECTED 2026-10-02: it no longer traps. It is gated through `gatedResult`, so a refusal
|
|
3095
3219
|
/// comes back as an `Err` VALUE that names this method — still never as an empty page, which is
|
|
3096
3220
|
/// the property the sentence above was protecting.⟩
|
|
3097
|
-
/// RENAMED from `getOperatorPurgeLog` (
|
|
3221
|
+
/// RENAMED from `getOperatorPurgeLog` (a `get*` returns one value, a `list*` returns a Page —
|
|
3098
3222
|
/// the old name promised a scalar and delivered an array).
|
|
3099
3223
|
///
|
|
3100
3224
|
/// Refusal reason preserved: an empty list must mean "no reset has removed an agent", never
|
|
@@ -3104,11 +3228,11 @@ type Engram =
|
|
|
3104
3228
|
/// at the client — swapping registeredAt and purgedAt would have type-checked everywhere and been
|
|
3105
3229
|
/// visible only as nonsense in a UI.
|
|
3106
3230
|
///
|
|
3107
|
-
/// ⟨2026-09-29,
|
|
3108
|
-
/// `invite` its enrolment named, and `ended` — why and on what day
|
|
3109
|
-
/// earlier ending, or the reset) — the facts `resyncAgentEdges`
|
|
3110
|
-
/// served as they are.
|
|
3111
|
-
/// ⟨2026-11-03, the pre-
|
|
3231
|
+
/// ⟨2026-09-29, the finding that an ending the registry missed is kept and re-sent⟩ Each row now also
|
|
3232
|
+
/// carries the agent's `root`, the `invite` its enrolment named, and `ended` — why and on what day
|
|
3233
|
+
/// its engagement ended (its own earlier ending, or the reset) — the facts `resyncAgentEdges`
|
|
3234
|
+
/// re-sends. The stored rows are served as they are.
|
|
3235
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
3112
3236
|
/// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
3113
3237
|
listPurgedAgents: (start: nat, limit: nat) -> (Result_35) query;
|
|
3114
3238
|
/// ⟨0.16.0⟩ ONE ACCESSOR, folding `readReadLog` and `getDenialLog` — and the fold only became
|
|
@@ -3121,7 +3245,7 @@ type Engram =
|
|
|
3121
3245
|
/// when the Page conversion started publishing `total = totalAppended()` — the head is now a fact
|
|
3122
3246
|
/// a caller can read, so paging backward from it is ordinary arithmetic.
|
|
3123
3247
|
///
|
|
3124
|
-
/// The
|
|
3248
|
+
/// The 0.16.0 interface plan proposed deleting `readReadLog` outright as a "duplicate accessor". Checked at the
|
|
3125
3249
|
/// site, that premise was false: `getDenialLog` filtered `not e.success`, so deleting the other
|
|
3126
3250
|
/// would have removed the only way to read SUCCESSFUL entries — and this ring is overwhelmingly
|
|
3127
3251
|
/// successful MCP reads. Folded instead, which keeps both capabilities and still ends the pair.
|
|
@@ -3134,7 +3258,7 @@ type Engram =
|
|
|
3134
3258
|
/// A caller knows exactly which ids were examined: `[start, start + limit)`.
|
|
3135
3259
|
///
|
|
3136
3260
|
/// `earliest` is gone as a field and lost nothing: entries carry their own `id`, so a caller
|
|
3137
|
-
/// paging from 0 reads the oldest retained id off the first item. That is
|
|
3261
|
+
/// paging from 0 reads the oldest retained id off the first item. That is the page shape's stated design —
|
|
3138
3262
|
/// items self-identify — rather than a second number to keep in sync.
|
|
3139
3263
|
///
|
|
3140
3264
|
/// `withheld` is 0 even when filtering. The filter is CALLER-REQUESTED; `withheld` means rows
|
|
@@ -3156,7 +3280,7 @@ type Engram =
|
|
|
3156
3280
|
/// This mattered beyond the file: doc comments are emitted into `engram.did`, so every SDK and
|
|
3157
3281
|
/// hand-written client has been reading the pre-fix rule off the interface for three days.
|
|
3158
3282
|
///
|
|
3159
|
-
/// Named `listReadLog`, not the
|
|
3283
|
+
/// Named `listReadLog`, not the interface plan's `listDenialEntries`: that name assumed only the denial
|
|
3160
3284
|
/// half survived. A method serving every row must not be named for one of them.
|
|
3161
3285
|
///
|
|
3162
3286
|
/// Refusal reason preserved from both: this log has NO public counterpart — no certified head to
|
|
@@ -3168,31 +3292,32 @@ type Engram =
|
|
|
3168
3292
|
/// so do settle failures, webhook auto-disables, expiry sweeps and MCP rate limits. Do not narrow
|
|
3169
3293
|
/// this to a name it does not carry.
|
|
3170
3294
|
///
|
|
3171
|
-
/// ⟨2026-09-29, owner ruling
|
|
3172
|
-
/// on the chained record — the same `RecordView` filter, and `withheld` counts what
|
|
3173
|
-
/// together with what `successFilter` removed. WHAT WOULD MAKE THIS WRONG: see `listAuditEntries`.
|
|
3295
|
+
/// ⟨2026-09-29, the owner's ruling that an agent reads only the entries it caused⟩ An agent reads only the
|
|
3296
|
+
/// entries it caused, here as on the chained record — the same `RecordView` filter, and `withheld` counts what
|
|
3297
|
+
/// it removed together with what `successFilter` removed. WHAT WOULD MAKE THIS WRONG: see `listAuditEntries`.
|
|
3174
3298
|
listReadLog: (successFilter: opt bool, start: nat, limit: nat) ->
|
|
3175
3299
|
(Result_34) query;
|
|
3176
|
-
/// ⟨2026-10-21,
|
|
3177
|
-
/// `listRepudiations`, for the same reason: the owner and ACTIVE guardians read
|
|
3178
|
-
/// reads only the entries it caused (
|
|
3179
|
-
/// gets an empty page whose `withheld` counts the notes in its
|
|
3180
|
-
/// stranger, a pending guardian and the anonymous caller are refused.
|
|
3300
|
+
/// ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ The owner's notes, oldest first.
|
|
3301
|
+
/// Same visibility as `listRepudiations`, for the same reason: the owner and ACTIVE guardians read
|
|
3302
|
+
/// the rows; an agent reads only the entries it caused (the owner's ruling of 2026-09-29), and every
|
|
3303
|
+
/// note is the owner's, so an agent gets an empty page whose `withheld` counts the notes in its
|
|
3304
|
+
/// window — never "there are none". A stranger, a pending guardian and the anonymous caller are refused.
|
|
3181
3305
|
listRecordNotes: (start: nat, limit: nat) -> (Result_33) query;
|
|
3182
3306
|
/// Same visibility as listAuditEntries: the owner, this engram's agents, and ACTIVE guardians
|
|
3183
3307
|
/// see disputes. An unauthorized read REFUSES — it does not return an empty list, because an
|
|
3184
3308
|
/// empty list reads as "no disputes have been filed", which is a claim, not an absence of one.
|
|
3185
|
-
/// RENAMED from `getRepudiations` (
|
|
3186
|
-
/// "no disputes have been filed" — and a dispute record that can be mistaken for an
|
|
3187
|
-
/// disputes is worse than no record at all. Not public by design.
|
|
3188
|
-
///
|
|
3189
|
-
/// ⟨CORRECTED 2026-09-29, owner ruling
|
|
3190
|
-
/// still holds, and so the first sentence no longer does: an agent
|
|
3191
|
-
/// caused, and every dispute here is the owner's own
|
|
3192
|
-
/// guardians get the rows; an agent gets an empty page
|
|
3193
|
-
/// window — which says disputes exist without showing them,
|
|
3194
|
-
/// WOULD MAKE THIS WRONG: a ruling that an agent may see the
|
|
3195
|
-
/// then have to look up each disputed version's writer, which
|
|
3309
|
+
/// RENAMED from `getRepudiations` (a `get*` returns one value, a `list*` a page). Refusal reason preserved:
|
|
3310
|
+
/// an empty list would read as "no disputes have been filed" — and a dispute record that can be mistaken for an
|
|
3311
|
+
/// absence of disputes is worse than no record at all. Not public by design.
|
|
3312
|
+
///
|
|
3313
|
+
/// ⟨CORRECTED 2026-09-29, the owner's ruling that an agent reads only the entries it caused⟩ "Same
|
|
3314
|
+
/// visibility as listAuditEntries" still holds, and so the first sentence no longer does: an agent
|
|
3315
|
+
/// reads only the record entries it caused, and every dispute here is the owner's own
|
|
3316
|
+
/// `memory.repudiate` entry. So the owner and guardians get the rows; an agent gets an empty page
|
|
3317
|
+
/// whose `withheld` counts the rows in its window — which says disputes exist without showing them,
|
|
3318
|
+
/// never "none have been filed". WHAT WOULD MAKE THIS WRONG: a ruling that an agent may see the
|
|
3319
|
+
/// disputes of its own writes; this would then have to look up each disputed version's writer, which
|
|
3320
|
+
/// it does not do today.
|
|
3196
3321
|
listRepudiations: (start: nat, limit: nat) -> (Result_32) query;
|
|
3197
3322
|
/// The seller list, a page at a time, as `Types.SellerView` (a raise whose wait is over shown applied;
|
|
3198
3323
|
/// `liveNow` — false for every row while an engram opened through another has no sign-in seated; what
|
|
@@ -3201,15 +3326,15 @@ type Engram =
|
|
|
3201
3326
|
/// which would read as "no sellers". A QUERY: the refusal is in the reply, not the denial log.
|
|
3202
3327
|
/// Named callers: an owner console's seller list.
|
|
3203
3328
|
listSellers: (start: nat, limit: nat) -> (Result_31) query;
|
|
3204
|
-
/// ⟨2026-10-21, the owner's
|
|
3205
|
-
/// registered. The same tokens, in the same order and paged the same way, as
|
|
3206
|
-
/// each beside `clientName` — the RFC 7591 `client_name` the app registered when
|
|
3207
|
-
/// issued (`People.SignIn` says when it is null, and that it is the app's own claim). A phone
|
|
3329
|
+
/// ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ OWNER-ONLY: the sign-ins, each
|
|
3330
|
+
/// with the name its app registered. The same tokens, in the same order and paged the same way, as
|
|
3331
|
+
/// `listBearerTokens`, each beside `clientName` — the RFC 7591 `client_name` the app registered when
|
|
3332
|
+
/// the token was issued (`People.SignIn` says when it is null, and that it is the app's own claim). A phone
|
|
3208
3333
|
/// owner read "localhost" for every app signed in through a local bridge and could not tell two
|
|
3209
3334
|
/// apps apart. A NEW method rather than a field on `BearerToken`: that record is stored (M0170)
|
|
3210
3335
|
/// and `listBearerTokens`' reply is shipped (never widened). An agent, a guardian, a stranger and
|
|
3211
3336
|
/// the anonymous caller are refused, by `listBearerTokens`' own gate and for its reason.
|
|
3212
|
-
/// ⟨2026-11-03, the pre-
|
|
3337
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
3213
3338
|
/// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
3214
3339
|
listSignIns: (start: nat, limit: nat) -> (Result_30) query;
|
|
3215
3340
|
/// Owner: advance the review cursor — "I have seen everything up to and including uptoAuditId"
|
|
@@ -3222,10 +3347,10 @@ type Engram =
|
|
|
3222
3347
|
/// and this never inspects an operation or a role. Widening what the review shows therefore
|
|
3223
3348
|
/// changes only which ids the console can pass here — it cannot desynchronise the cursor.
|
|
3224
3349
|
markAgentWritesReviewed: (uptoAuditId: opt nat) -> (Result_15);
|
|
3225
|
-
/// ⟨2026-10-21, the owner's
|
|
3226
|
-
/// only (`People.AgentGrant`): what it may read, where it may write, its rate, and
|
|
3227
|
-
/// limits enforced against that key. It reveals nothing a refusal does not already say,
|
|
3228
|
-
/// an agent correct itself before it writes rather than after the owner explains a refusal by
|
|
3350
|
+
/// ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ AN AGENT READS ITS OWN GRANT —
|
|
3351
|
+
/// to the calling key only (`People.AgentGrant`): what it may read, where it may write, its rate, and
|
|
3352
|
+
/// the payment limits enforced against that key. It reveals nothing a refusal does not already say,
|
|
3353
|
+
/// and lets an agent correct itself before it writes rather than after the owner explains a refusal by
|
|
3229
3354
|
/// hand. `getSpendPolicy` and `listAgents` stay owner-only; this answers one row, the caller's.
|
|
3230
3355
|
///
|
|
3231
3356
|
/// WHO: an ACTIVE agent (`Gated.authorize(#agentOrOwner)`). Refused, each by its own text: the
|
|
@@ -3233,11 +3358,11 @@ type Engram =
|
|
|
3233
3358
|
/// "Agent has resigned" — an ended agent may do nothing, and its old grant would read as powers),
|
|
3234
3359
|
/// a guardian and a stranger ("Not authorized"), the anonymous caller. A query: it writes nothing.
|
|
3235
3360
|
///
|
|
3236
|
-
/// ⟨2026-10-29, the owner's ruling
|
|
3237
|
-
/// the key could pay now (`paymentsFrozen`, `paymentsNow`), read from
|
|
3238
|
-
/// checks — the brake, the key's policy and stored total, the engram-wide ceiling and
|
|
3239
|
-
/// the caps alone no longer read as money an agent can spend. `People.SpendState` names each one.
|
|
3240
|
-
/// ⟨2026-10-29, review
|
|
3361
|
+
/// ⟨2026-10-29, the owner's ruling that an agent's grant read tells the truth about paying⟩ It also says
|
|
3362
|
+
/// whether the payments brake is on and what the key could pay now (`paymentsFrozen`, `paymentsNow`), read from
|
|
3363
|
+
/// the values `x402SignFor` checks — the brake, the key's policy and stored total, the engram-wide ceiling and
|
|
3364
|
+
/// total — so the caps alone no longer read as money an agent can spend. `People.SpendState` names each one.
|
|
3365
|
+
/// ⟨2026-10-29, a review finding⟩ And which whole-key refusal stops every payment now, if one does
|
|
3241
3366
|
/// (`paymentsStoppedBy`: the brake, the signing floor, the daily count of payment signatures).
|
|
3242
3367
|
myGrant: () -> (Result_29) query;
|
|
3243
3368
|
/// The AGENT's current key nominates the key that will replace it. Nothing moves yet: the new
|
|
@@ -3263,7 +3388,7 @@ type Engram =
|
|
|
3263
3388
|
/// network's refund. Every outcome is written to the record under `agent.openChild` in the message
|
|
3264
3389
|
/// that hears the registry's answer, before the reply — in the alerts' money class.
|
|
3265
3390
|
///
|
|
3266
|
-
/// ⟨CORRECTED 2026-10-01, review
|
|
3391
|
+
/// ⟨CORRECTED 2026-10-01, two review findings — the sentence "If the registry refuses or cannot be
|
|
3267
3392
|
/// reached, the opening is GIVEN BACK" above is what was first built.⟩ The opening is given back only
|
|
3268
3393
|
/// when the WHOLE attachment came back as the call's refund (the registry accepted none of it) and
|
|
3269
3394
|
/// the owner has not set this agent's count since the take (`ChildAllowance.settle`). A refusal after
|
|
@@ -3275,7 +3400,7 @@ type Engram =
|
|
|
3275
3400
|
/// WHAT WOULD MAKE THIS WRONG: an await added between `ChildAllowance.take` and the registry call; the
|
|
3276
3401
|
/// registry's `CHILD_MIN_ATTACHED_CYCLES` moving without `CHILD_ATTACH_CYCLES`.
|
|
3277
3402
|
///
|
|
3278
|
-
/// ⟨2026-11-02, the owner's ruling
|
|
3403
|
+
/// ⟨2026-11-02, the owner's ruling to take the recommended answers (the child build's sign-in step)⟩ THE
|
|
3279
3404
|
/// SIGN-IN. `signIn` names the opened engram's sign-in — the person running the agent, on a second
|
|
3280
3405
|
/// credential; null opens it with none, and it then keeps small limits for life. It goes to the
|
|
3281
3406
|
/// registry's door and from there into the opened engram's init record, so that engram never runs a
|
|
@@ -3283,11 +3408,11 @@ type Engram =
|
|
|
3283
3408
|
/// door's own three rules (`OwnerSignIn.candidateRefusal`): the agent's lasting key itself, the
|
|
3284
3409
|
/// anonymous principal, a canister — so the agent sees the refusal before any cycles move. The
|
|
3285
3410
|
/// record entry says `signIn=set` or `signIn=none`, never the principal.
|
|
3286
|
-
/// ⟨2026-11-02, the
|
|
3287
|
-
/// call is signed by — the agent's session key — is refused as the sign-in too
|
|
3411
|
+
/// ⟨2026-11-02, the review of the child build's sign-in step, beside the above⟩ And a fourth, the
|
|
3412
|
+
/// door's own: the key this call is signed by — the agent's session key — is refused as the sign-in too
|
|
3288
3413
|
/// (`OwnerSignIn.agentKeyRefusal`), at the same place.
|
|
3289
3414
|
///
|
|
3290
|
-
/// ⟨2026-11-02, the child build's
|
|
3415
|
+
/// ⟨2026-11-02, the child build's sign-in step — RENAMED from `openChildEngram`, beside the paragraphs
|
|
3291
3416
|
/// above, which describe the same door⟩ It was `openChildEngram()`, with no argument. A second
|
|
3292
3417
|
/// positional argument would grow its argument tuple, and a shipped tuple is frozen (evolution
|
|
3293
3418
|
/// happens inside records), so the door takes ONE record whose later fields are optional, under a
|
|
@@ -3304,27 +3429,28 @@ type Engram =
|
|
|
3304
3429
|
/// Guardian freeze only blocks agent/public operations.
|
|
3305
3430
|
ownerWithdraw: (amount: TokenAmount, ownerAuth: opt ActionAuth) ->
|
|
3306
3431
|
(Result_15);
|
|
3307
|
-
/// ⟨0.16.0⟩ `payRentFromEarnings` DELETED — ruled TWICE (
|
|
3308
|
-
///
|
|
3432
|
+
/// ⟨0.16.0⟩ `payRentFromEarnings` DELETED — ruled TWICE (commerce moved to the market; rent is the
|
|
3433
|
+
/// biller's), and it was the single clearest case in this repository of the engram reaching into a
|
|
3434
|
+
/// deployment's billing canister.
|
|
3309
3435
|
///
|
|
3310
|
-
/// It hand-declared four
|
|
3436
|
+
/// It hand-declared four biller methods inline, read `getFeeSchedule`, computed
|
|
3311
3437
|
/// `priceE6 = rentUsdE6PerEngramYear * months / 12`, and deposited `priceE6 + 3 * CKUSDC_FEE`
|
|
3312
3438
|
/// under a comment explaining that three is "the three token fees the cashier's rail spends" —
|
|
3313
3439
|
/// a PUBLIC canister hardcoding how many ledger fees a PRIVATE one consumes internally. Any
|
|
3314
|
-
/// change to the
|
|
3440
|
+
/// change to the biller's rail silently mispriced this call.
|
|
3315
3441
|
///
|
|
3316
3442
|
/// It also carried the only RE-ENTRANT cross-canister chain in the system: engram →
|
|
3317
3443
|
/// cashier.payRentWithStablecoin → (registry, ledger, CMC …) → back into the SAME engram's
|
|
3318
3444
|
/// sysRecordFeeEvent while the originating message was still suspended, both writing the same audit
|
|
3319
3445
|
/// ring, with no lock.
|
|
3320
3446
|
///
|
|
3321
|
-
/// Rent is the
|
|
3447
|
+
/// Rent is the biller's entirely. Owners pay through the biller's rails; the engram keeps
|
|
3322
3448
|
/// append-only receipts and no fee math.
|
|
3323
|
-
/// ⟨0.16.0,
|
|
3324
|
-
/// the
|
|
3325
|
-
/// principal HAS held agent access, and no code will give it
|
|
3326
|
-
/// `#Conflict` knows to pair a fresh key; a caller reading `#Refused` would
|
|
3327
|
-
/// same identity, which is exactly the loop the one-shot rule was written to stop.
|
|
3449
|
+
/// ⟨0.16.0, refusals are values — ruled in the 0.16.0 interface plan⟩ THE ONE-SHOT ARM. Re-redemption is
|
|
3450
|
+
/// `#Err(#Conflict)`, named in the interface plan's entry for this method, and it is the arm the
|
|
3451
|
+
/// whole guard exists to express: this principal HAS held agent access, and no code will give it
|
|
3452
|
+
/// back. A caller reading `#Conflict` knows to pair a fresh key; a caller reading `#Refused` would
|
|
3453
|
+
/// keep presenting the same identity, which is exactly the loop the one-shot rule was written to stop.
|
|
3328
3454
|
/// Redeem an invite code minted by `createAgentInvite`. The CALLER becomes the agent, so
|
|
3329
3455
|
/// redeem from the wallet that will do the work.
|
|
3330
3456
|
///
|
|
@@ -3354,7 +3480,7 @@ type Engram =
|
|
|
3354
3480
|
/// record gets `agent.invite.void`), and after that every attempt with it is refused
|
|
3355
3481
|
/// `#Conflict` before any check is made (`InviteFailures`).
|
|
3356
3482
|
///
|
|
3357
|
-
/// ⟨RESHAPED 2026-09-29, review finding
|
|
3483
|
+
/// ⟨RESHAPED 2026-09-29, a review finding⟩ The reply is `Types.Pairing`: the agent
|
|
3358
3484
|
/// record AND `trackRecord`, which says plainly when the registry refused or failed to record the
|
|
3359
3485
|
/// engagement on the agent's track record, and what to do. Before, the reply was `#Ok` with the
|
|
3360
3486
|
/// record alone even when the registry had refused the start, so the agent was never told.
|
|
@@ -3362,10 +3488,10 @@ type Engram =
|
|
|
3362
3488
|
code: text;
|
|
3363
3489
|
enrolment: Enrolment;
|
|
3364
3490
|
}) -> (Result_26);
|
|
3365
|
-
/// ⟨0.16.0,
|
|
3491
|
+
/// ⟨0.16.0, same concept, same name — renamed from `guardianPauseWrites`⟩ Same correction as freezePayments above:
|
|
3366
3492
|
/// owner-or-guardian, and `resumeWrites` never carried the prefix either.
|
|
3367
3493
|
pauseWrites: () -> (Result_2);
|
|
3368
|
-
/// ⟨2026-10-21, the owner's
|
|
3494
|
+
/// ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ `pauseWrites` with a reason; everything said of
|
|
3369
3495
|
/// `freezePaymentsWithReason` holds, with `canPauseWrites` as the guardian's grant.
|
|
3370
3496
|
pauseWritesWithReason: (reason: text) -> (Result_2);
|
|
3371
3497
|
/// Plan the same visible session page, filtering, order and slice used by session helpers.
|
|
@@ -3400,9 +3526,9 @@ type Engram =
|
|
|
3400
3526
|
/// minimum and per-call cost BEFORE signing anything, and gating the quote behind a role would
|
|
3401
3527
|
/// mean the only way to learn this engram's price is to already be permitted to pay it.
|
|
3402
3528
|
///
|
|
3403
|
-
/// ⟨CORRECTED 2026-08-24 — this said "⟨
|
|
3404
|
-
///
|
|
3405
|
-
/// `quotePayment` and `previewOpenSession` become queries, and
|
|
3529
|
+
/// ⟨CORRECTED 2026-08-24 — this said "⟨update-for-read⟩ UPDATE, NOT QUERY" and cited a market ruling that
|
|
3530
|
+
/// the 2026-08-24 quote-convention ruling had already closed.⟩ QUERY, per the ruled quote convention: FAST READS. Both
|
|
3531
|
+
/// `quotePayment` and `previewOpenSession` become queries, and the update-for-read rule's open-ruling exception
|
|
3406
3532
|
/// retires with them — so the argument written here for keeping it an update was arguing the
|
|
3407
3533
|
/// losing side of a decision already made, and was added the same day by not reading forward
|
|
3408
3534
|
/// to the ruling. `gate.offerSession` is pure — it validates the intent and returns it — so
|
|
@@ -3413,14 +3539,14 @@ type Engram =
|
|
|
3413
3539
|
/// commitment happens in `openSession`, which IS a certified update call, and a buyer who needs
|
|
3414
3540
|
/// the price attested rather than quoted takes it from that reply.
|
|
3415
3541
|
///
|
|
3416
|
-
/// ⟨RESTORED 2026-08-24, owner ruling
|
|
3417
|
-
/// same act against a different seller and a reader comparing the two
|
|
3418
|
-
/// two verbs for it.
|
|
3542
|
+
/// ⟨RESTORED 2026-08-24, the owner's ruling to build the paid-session seam⟩ Named to match the
|
|
3543
|
+
/// market's, because it is the same act against a different seller and a reader comparing the two
|
|
3544
|
+
/// should not have to learn two verbs for it.
|
|
3419
3545
|
///
|
|
3420
3546
|
/// ⟨2026-10-02⟩ Answers the house `Types.SessionIntent` — ic402's intent with `expiry` spelled
|
|
3421
3547
|
/// `expiryNs`. Same value, same meaning; only the name carries the unit now.
|
|
3422
3548
|
previewOpenSession: () -> (SessionIntent) query;
|
|
3423
|
-
/// ⟨2026-10-21, the owner's
|
|
3549
|
+
/// ⟨2026-10-21, the owner's approval of the mobile design's changes: a trim preview⟩ What a PROPOSED history policy
|
|
3424
3550
|
/// would remove from the store as it stands — "about N old copies in F files would be removed" —
|
|
3425
3551
|
/// asked BEFORE the owner saves it. A query: nothing is saved, armed or evicted.
|
|
3426
3552
|
///
|
|
@@ -3437,7 +3563,7 @@ type Engram =
|
|
|
3437
3563
|
/// takes effect change it.
|
|
3438
3564
|
/// HONEST WHEN CUT SHORT: `complete = false` when the planning budget
|
|
3439
3565
|
/// (`MemoryRouter.PREVIEW_MAX_DROPS`) ran out — the totals are then a floor, and say so.
|
|
3440
|
-
/// ⟨2026-11-03, the pre-
|
|
3566
|
+
/// ⟨2026-11-03, the child build's pre-release fixes⟩ Also the seated sign-in of
|
|
3441
3567
|
/// an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
3442
3568
|
previewRetention: (entries: vec record {
|
|
3443
3569
|
text;
|
|
@@ -3450,8 +3576,8 @@ type Engram =
|
|
|
3450
3576
|
///
|
|
3451
3577
|
/// ⚠ `config/` AND `secrets/` ARE OWNER-ONLY whatever the grant says, and the refusal is
|
|
3452
3578
|
/// `#Refused` rather than `#Invalid` deliberately: the path is well-formed and the file may well
|
|
3453
|
-
/// exist — the caller simply may not have it.
|
|
3454
|
-
/// on, which is the whole reason `Error` is a closed variant rather than a sentence.
|
|
3579
|
+
/// exist — the caller simply may not have it. A refusal being a typed value, that distinction is the
|
|
3580
|
+
/// caller's to branch on, which is the whole reason `Error` is a closed variant rather than a sentence.
|
|
3455
3581
|
///
|
|
3456
3582
|
/// ⚠ A QUERY, so it does NOT count as a read. The IC discards query-path state changes, so a
|
|
3457
3583
|
/// counter here could never persist; read counting lives on the update path
|
|
@@ -3466,7 +3592,7 @@ type Engram =
|
|
|
3466
3592
|
/// · Over the path cap it returned `[("", #Err(#Invalid …))]` — ONE row, for a path the caller
|
|
3467
3593
|
/// never asked about. A consumer looping rows saw a result for the empty path and no result
|
|
3468
3594
|
/// for any real one. The call as a whole failed; dressing that as a per-path outcome is the
|
|
3469
|
-
/// fabrication
|
|
3595
|
+
/// fabrication that the refusal-over-fabrication rule is about.
|
|
3470
3596
|
/// · An AUTHORIZATION refusal was fanned out across every requested path, so one "no" arrived
|
|
3471
3597
|
/// as N per-path noes and read like N independent permission facts about N files.
|
|
3472
3598
|
///
|
|
@@ -3475,8 +3601,8 @@ type Engram =
|
|
|
3475
3601
|
/// a genuine per-path fact.
|
|
3476
3602
|
readMemoryBatch: (paths: vec text) -> (Result_22) query;
|
|
3477
3603
|
/// ⟨0.16.0⟩ `getMemoryRetentionGuards` DELETED — folded into `getMemoryRetentionPolicy` above.
|
|
3478
|
-
/// It was the second
|
|
3479
|
-
/// was the defect described there. Its own docs are preserved at the fold site.
|
|
3604
|
+
/// It was the second array-returning `get*` (a `get*` returns one value), and separating it from the
|
|
3605
|
+
/// policy it modifies was the defect described there. Its own docs are preserved at the fold site.
|
|
3480
3606
|
/// One page of a file's content — the paged read the whole-file surfaces point at.
|
|
3481
3607
|
///
|
|
3482
3608
|
/// `version = null` reads the live file; a version reads that version as it was recorded.
|
|
@@ -3496,7 +3622,7 @@ type Engram =
|
|
|
3496
3622
|
/// `deposited >= consumed + fee`, and vouchers may consume up to the full deposit — so a payer
|
|
3497
3623
|
/// who spends their whole budget makes their own session unsettleable, with no adversary
|
|
3498
3624
|
/// involved. Before this, the refusal text told them to call `recoverEscrow`, which existed on no
|
|
3499
|
-
/// canister they could reach.
|
|
3625
|
+
/// canister they could reach. The spend ceiling caps consumable spend so ordinary use cannot reach that state;
|
|
3500
3626
|
/// this is the way back for a session that already has.
|
|
3501
3627
|
///
|
|
3502
3628
|
/// ⟨CORRECTION 2026-09-30, beside the paragraph above and the first line⟩ No longer true. ic402
|
|
@@ -3548,7 +3674,7 @@ type Engram =
|
|
|
3548
3674
|
/// the amount can be read back — a session closed in the same moment as the recovery and cleaned up
|
|
3549
3675
|
/// during its transfer — it answers `#Other` naming the block, never a guessed amount.
|
|
3550
3676
|
recoverEscrow: (sessionId: text, amountE6: nat) -> (Result_20);
|
|
3551
|
-
/// ⟨0.16.0,
|
|
3677
|
+
/// ⟨0.16.0, refusals are values, never traps⟩ A REDEMPTION PATH, where the arm choice is a disclosure decision.
|
|
3552
3678
|
///
|
|
3553
3679
|
/// Four of these refusals are about the CODE and one is about the caller. The code arms restate
|
|
3554
3680
|
/// exactly what the text already said — an unknown code is `#NotFound`, a used or expired one is
|
|
@@ -3568,8 +3694,9 @@ type Engram =
|
|
|
3568
3694
|
/// override is to overwrite it with a frozen copy of the global policy, which then stops
|
|
3569
3695
|
/// following later changes. That makes every override permanent in effect.
|
|
3570
3696
|
removeCallerSpendPolicy: (caller: principal) -> (Result_2);
|
|
3571
|
-
/// ⟨2026-10-14,
|
|
3572
|
-
/// removal TIGHTENS, and a frozen engram must still be able to shrink what it
|
|
3697
|
+
/// ⟨2026-10-14, the destination-list ruling⟩ Remove a destination from one action's list. Instant,
|
|
3698
|
+
/// and NOT freeze-gated: removal TIGHTENS, and a frozen engram must still be able to shrink what it
|
|
3699
|
+
/// could sign to.
|
|
3573
3700
|
removeEip712Destination: (typeId: blob, value: text) -> (Result_2);
|
|
3574
3701
|
/// De-register a type that has NEVER SIGNED. Exists because of a hazard the first external
|
|
3575
3702
|
/// validation found within hours (consumer report, 2026-08-06): a bare-name #standard registration —
|
|
@@ -3580,7 +3707,7 @@ type Engram =
|
|
|
3580
3707
|
/// removes only authority that was never exercised, which is removing nothing but the mistake.
|
|
3581
3708
|
/// NOT freeze-gated, same reasoning as removeEvmWithdrawDestination: this is TIGHTENING, and a
|
|
3582
3709
|
/// frozen engram must still be able to shrink what it could sign.
|
|
3583
|
-
/// ⟨2026-10-14⟩ `removeEvmWithdrawDestination` is now `removeEip712Destination` (ruling
|
|
3710
|
+
/// ⟨2026-10-14⟩ `removeEvmWithdrawDestination` is now `removeEip712Destination` (the destination-list ruling); same
|
|
3584
3711
|
/// reasoning. Removing a type now also drops its rules and its own destination list.
|
|
3585
3712
|
removeEip712Type: (typeId: blob) -> (Result_2);
|
|
3586
3713
|
/// Owner-only: remove a guardian from the roster.
|
|
@@ -3599,7 +3726,7 @@ type Engram =
|
|
|
3599
3726
|
/// Named callers: an owner console's seller list, and the owner kit (the key file's way to stop a
|
|
3600
3727
|
/// seller).
|
|
3601
3728
|
removeSeller: (payTo: text) -> (Result_2);
|
|
3602
|
-
/// ⟨2026-10-21, the owner's
|
|
3729
|
+
/// ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ OWNER-ONLY: give an agent a new name. A name was
|
|
3603
3730
|
/// fixed at the invite, and two agents both called "agent" is how the 2026-10-20 session started.
|
|
3604
3731
|
/// Only the VALUE of the stored `AgentRecord.name` changes — no new state, no reshaped record —
|
|
3605
3732
|
/// and the change is on the record as `agent.rename` (`principal=<key> name=<new name>`, the name
|
|
@@ -3633,8 +3760,8 @@ type Engram =
|
|
|
3633
3760
|
/// · ⟨2026-10-02⟩ the seat weeks of every engagement (`agentSeatWeeks`), with the signature count
|
|
3634
3761
|
/// they sit beside, and the owner's switch over the metrics reader's read and the reader it
|
|
3635
3762
|
/// names — a reset severs access, it does not change who may read what was kept.
|
|
3636
|
-
/// · ⟨2026-11-02, the child build — decided "unless you object", recorded at
|
|
3637
|
-
/// list and the paid history (`listSellers`, `getRecipientHistory`), as the typed-data
|
|
3763
|
+
/// · ⟨2026-11-02, the child build — decided "unless you object", recorded at its withdrawal-pinning
|
|
3764
|
+
/// step⟩ the seller list and the paid history (`listSellers`, `getRecipientHistory`), as the typed-data
|
|
3638
3765
|
/// destinations are kept: a reset severs access, it does not forget which counterparties the
|
|
3639
3766
|
/// owner approved or which addresses this engram has paid.
|
|
3640
3767
|
///
|
|
@@ -3676,7 +3803,7 @@ type Engram =
|
|
|
3676
3803
|
/// throw, against a method that could not say no; it now counts `#Ok` answers.⟩ It re-sends
|
|
3677
3804
|
/// starts only: an ending carries a reason this roster does not keep per principal.
|
|
3678
3805
|
///
|
|
3679
|
-
/// ⟨CORRECTED 2026-09-29, review finding
|
|
3806
|
+
/// ⟨CORRECTED 2026-09-29, a review finding — the owner's ruling⟩ It now re-sends ENDINGS as
|
|
3680
3807
|
/// well as starts, endings first (`AgentEdges.resyncPlan` says why): every ended record on the
|
|
3681
3808
|
/// roster and every agent a reset removed keeps its ending's reason and day
|
|
3682
3809
|
/// (`Types.AgentEnding`), so an ending the registry never received — the one loss that used to
|
|
@@ -3708,7 +3835,7 @@ type Engram =
|
|
|
3708
3835
|
/// Replacing is safe here in a way it was not in the legacy store: the prior version is not
|
|
3709
3836
|
/// overwritten, it is superseded. It stays readable, its hash stays committed, and the agent
|
|
3710
3837
|
/// floor keeps its bytes for the window a counterparty needs to extract them.
|
|
3711
|
-
/// ⟨0.16.0,
|
|
3838
|
+
/// ⟨0.16.0, refusals are values, never traps⟩ FIVE AGENT REFUSALS, ALL `#Refused`, AND THE UNIFORMITY IS THE FINDING.
|
|
3712
3839
|
///
|
|
3713
3840
|
/// Reserved path, protected path, missing permission, ungranted revise path, `#vault` class — a
|
|
3714
3841
|
/// caller could previously tell these apart only by reading five different sentences, and every
|
|
@@ -3756,9 +3883,10 @@ type Engram =
|
|
|
3756
3883
|
///
|
|
3757
3884
|
/// Tokens are re-issuable: revoking them is not permanent the way revoking an agent is.
|
|
3758
3885
|
revokeAllBearerTokens: () -> (Result_15);
|
|
3759
|
-
/// ⟨0.16.0⟩ `removeAllGuardians` DELETED — test-only (
|
|
3760
|
-
/// mass-revoke set. The destructive phase-07 suite iterates
|
|
3761
|
-
/// loses a capability: what dies is a bulk spelling no runbook ever
|
|
3886
|
+
/// ⟨0.16.0⟩ `removeAllGuardians` DELETED — test-only (every method has a named caller; none is test-only),
|
|
3887
|
+
/// and verified NOT part of KILL-SWITCH's mass-revoke set. The destructive phase-07 suite iterates
|
|
3888
|
+
/// `removeGuardian` instead, so nothing loses a capability: what dies is a bulk spelling no runbook ever
|
|
3889
|
+
/// invoked.
|
|
3762
3890
|
/// Owner-only panic button: void every unredeemed invite. Returns how many were voided.
|
|
3763
3891
|
///
|
|
3764
3892
|
/// Separate from `revokeAllAgents`: this stops invites that have NOT been redeemed yet and
|
|
@@ -3771,7 +3899,7 @@ type Engram =
|
|
|
3771
3899
|
/// Revoke a bearer token by its public tokenId. Idempotent.
|
|
3772
3900
|
/// Subsequent /mcp requests using this token will be rejected.
|
|
3773
3901
|
revokeBearerToken: (tokenId: text) -> (Result_2);
|
|
3774
|
-
/// ⟨0.16.0,
|
|
3902
|
+
/// ⟨0.16.0, the interface plan⟩ RETURNS A REAL RECEIPT, not `R<()>` — same reason as the delete
|
|
3775
3903
|
/// above, and sharper here: a rollback WRITES A NEW VERSION, so the caller's next question is
|
|
3776
3904
|
/// always "which version am I on now". `r.version` was already read for the audit line.
|
|
3777
3905
|
rollbackMemory: (path: text, toVersion: nat) -> (Result);
|
|
@@ -3783,7 +3911,7 @@ type Engram =
|
|
|
3783
3911
|
/// one-shot registration rule. So this is the answer to "my key is compromised", and it is NOT a
|
|
3784
3912
|
/// way to move an agent seat to a different wallet — that is a new invite, and only if the
|
|
3785
3913
|
/// old principal was never revoked.
|
|
3786
|
-
/// ⟨CORRECTED 2026-09-29, the owner's ruling of that date
|
|
3914
|
+
/// ⟨CORRECTED 2026-09-29, the owner's ruling of that date⟩ Two sentences
|
|
3787
3915
|
/// above are no longer true. An agent's record CAN now move to a different key, in one step and
|
|
3788
3916
|
/// with no new invite: `nominateAgentKey` from the current key, then `acceptAgentKeyNomination`
|
|
3789
3917
|
/// from the new one. And a compromised key is answered by that move — this method only changes a
|
|
@@ -3808,10 +3936,10 @@ type Engram =
|
|
|
3808
3936
|
saveMemoryEntry: (entry: MemoryEntry) -> (Result_16);
|
|
3809
3937
|
/// Send money from this engram's wallet to the engram it was opened through — "up", and only up:
|
|
3810
3938
|
/// the destination is always the parent engram's own default account, never an address the caller
|
|
3811
|
-
/// names. ANY amount (the owner's ruling
|
|
3939
|
+
/// names. ANY amount (the owner's send-up ruling); the answer is the ledger's block index.
|
|
3812
3940
|
///
|
|
3813
3941
|
/// WHO: the owner's key file or the sign-in, in an engram opened through another (the build's
|
|
3814
|
-
/// resolution
|
|
3942
|
+
/// resolution: both may send — the key file's honest sweep needs it, and the sign-in may sweep
|
|
3815
3943
|
/// too); refused to anyone else. In a first engram there is nothing above it, and it refuses with
|
|
3816
3944
|
/// `#Conflict`. NOT freeze-gated: up is not out, so a payments freeze does not stop it.
|
|
3817
3945
|
///
|
|
@@ -3819,7 +3947,7 @@ type Engram =
|
|
|
3819
3947
|
/// then ONE call to the registry — refused unless the registry shows the parent registered, active
|
|
3820
3948
|
/// and not abandoned (`#Refused`; the registry unreachable is `#Unavailable`; nothing sent either
|
|
3821
3949
|
/// way) — then ONE ledger transfer, the same per-token ledger as `ownerWithdraw`. Both calls are
|
|
3822
|
-
/// counted (
|
|
3950
|
+
/// counted (the timer-pause rule of 2026-10-28), so near its freezing line this engram may be unable to send the registry
|
|
3823
3951
|
/// call at all; it then answers `#Unavailable` and nothing moves.
|
|
3824
3952
|
///
|
|
3825
3953
|
/// NO RE-CHECK between the two calls, deliberately: the parent can be abandoned in between, and the
|
|
@@ -3836,7 +3964,7 @@ type Engram =
|
|
|
3836
3964
|
/// authorized by the voucher rather than by a role.
|
|
3837
3965
|
/// ⟨2026-09-30, ic402 2.17.0⟩ Authorized by the payer's own call with the voucher: only the
|
|
3838
3966
|
/// principal that opened the session, calling as that key, can spend it (see `sessionReadMemory`).
|
|
3839
|
-
/// ⟨CORRECTED 2026-09-30, the owner's
|
|
3967
|
+
/// ⟨CORRECTED 2026-09-30, the owner's fresh-key ruling⟩ Authorized by the session KEY's own
|
|
3840
3968
|
/// call: the fresh key the payer named at open. The write is attributed to the payer, who paid;
|
|
3841
3969
|
/// the record row also names the key that made it.
|
|
3842
3970
|
///
|
|
@@ -3845,7 +3973,7 @@ type Engram =
|
|
|
3845
3973
|
/// when the engram is client-side encrypted: a paid session appending plaintext to an encrypted
|
|
3846
3974
|
/// store would CORRUPT it, so that refusal is protecting the owner's data rather than gating
|
|
3847
3975
|
/// access. Append through the EngramX client/SDK instead.
|
|
3848
|
-
/// ⟨
|
|
3976
|
+
/// ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ RETURNS THE SAME RECEIPT THE FREE WRITER DOES.
|
|
3849
3977
|
/// It answered `Wire.Result<Nat>`: the version, and nothing else. The free `writeMemory` returns
|
|
3850
3978
|
/// `{ version; seq; head }`, so a PAYING writer got strictly LESS evidence than a caller who paid
|
|
3851
3979
|
/// nothing — on the one rail a stranger can buy, where the receipt is the whole product. The head
|
|
@@ -3855,18 +3983,19 @@ type Engram =
|
|
|
3855
3983
|
/// It cost nothing to fix: `r` was already in scope and already being read — the old body did
|
|
3856
3984
|
/// `let v = r.version` and passed `r` to `receiptSuffix(r)` for the audit line, then discarded
|
|
3857
3985
|
/// everything but the version on the way out. Free until the cut, breaking forever after, which
|
|
3858
|
-
/// is why it lands now rather than after the test migration (
|
|
3986
|
+
/// is why it lands now rather than after the test migration (as ruled 2026-08-24).
|
|
3859
3987
|
sessionAppendMemory: (voucher: Voucher, path: text, content: blob) ->
|
|
3860
3988
|
(Result);
|
|
3861
3989
|
/// The whole engram in one call — newest-first, byte-capped — for an AI host to inject at session
|
|
3862
3990
|
/// start. The "read me back" that continuity is built on. `clientLabel` names the reading host
|
|
3863
3991
|
/// (e.g. "openclaw", "claude.ai") for the distinct-reader set.
|
|
3864
3992
|
///
|
|
3865
|
-
/// ⚠ AN UPDATE, NOT A QUERY, AND ON PURPOSE (
|
|
3866
|
-
/// therefore CANNOT persist a read count; this runs on
|
|
3867
|
-
/// counters, so a builder whose SDK calls `startSession()`
|
|
3868
|
-
/// byproduct of normal use rather than through an elective,
|
|
3869
|
-
/// update latency and consensus cost here, and get a recorded
|
|
3993
|
+
/// ⚠ AN UPDATE, NOT A QUERY, AND ON PURPOSE (a read served as an update says why).
|
|
3994
|
+
/// `readMemory`/`readMemoryBatch` are queries and therefore CANNOT persist a read count; this runs on
|
|
3995
|
+
/// the update path and bumps the reuse counters, so a builder whose SDK calls `startSession()`
|
|
3996
|
+
/// registers a weekly-reused engram as a byproduct of normal use rather than through an elective,
|
|
3997
|
+
/// separate read. Callers should expect update latency and consensus cost here, and get a recorded
|
|
3998
|
+
/// read in exchange.
|
|
3870
3999
|
///
|
|
3871
4000
|
/// ⚠ IT DOES NOT RETURN EVERYTHING, and the omission is deliberate: `config/` and `secrets/` are
|
|
3872
4001
|
/// SKIPPED. Those are operational, not agent memory, and must never be blindly spilled into a
|
|
@@ -3883,7 +4012,7 @@ type Engram =
|
|
|
3883
4012
|
/// Ed25519 key that opened it. The voucher still carries the amount and the sequence; the
|
|
3884
4013
|
/// authorization is now the call itself, and the canister no longer checks a voucher signature.
|
|
3885
4014
|
/// A stranger can still pay to use this rail — by opening a session of their own.
|
|
3886
|
-
/// ⟨CORRECTED 2026-09-30, the owner's
|
|
4015
|
+
/// ⟨CORRECTED 2026-09-30, the owner's fresh-key ruling⟩ Not the payer: the session's own key
|
|
3887
4016
|
/// — the fresh Ed25519 key the payer named at open — calling as itself. The payer, who opened
|
|
3888
4017
|
/// the session and closes it, is refused here like anyone else who is not that key.
|
|
3889
4018
|
/// ⟨CORRECTED 2026-09-30, review⟩ …unless the payer named their own identity key at open, which
|
|
@@ -3938,7 +4067,7 @@ type Engram =
|
|
|
3938
4067
|
/// for that. What a bare prefix would do — "MEMORY.md" also matching "MEMORY.md.bak" — is the
|
|
3939
4068
|
/// kind of accident a permission surface must not have.
|
|
3940
4069
|
setAgentRevisablePaths: (paths: vec text) -> (Result_2);
|
|
3941
|
-
/// ⟨0.16.0 —
|
|
4070
|
+
/// ⟨0.16.0 — the interface plan's entry⟩ Returns the APPLIED config, which is how this closes the
|
|
3942
4071
|
/// setter-without-a-getter gap without adding a method: the write is the read.
|
|
3943
4072
|
///
|
|
3944
4073
|
/// `prunedBackups` is the part that matters. Enforcing a retention cap DELETES finalized backups
|
|
@@ -3947,7 +4076,7 @@ type Engram =
|
|
|
3947
4076
|
/// by a `Debug.print` nobody reads. An owner lowering the cap is destroying their own backups;
|
|
3948
4077
|
/// they are told how many, in the reply and in the audit line.
|
|
3949
4078
|
///
|
|
3950
|
-
/// ⟨2026-10-21, the owner's
|
|
4079
|
+
/// ⟨2026-10-21, the owner's answers on backups in the mobile-first app design⟩ The number now bounds EACH creator's
|
|
3951
4080
|
/// backups of the kind (`Backup.enforceRetention`): an agent's finalize prunes only that agent's
|
|
3952
4081
|
/// own, and this setter applies the number to every creator's set, so `prunedBackups` counts
|
|
3953
4082
|
/// across all of them. "The write is the read" above went stale for a second phone, which never
|
|
@@ -3981,7 +4110,7 @@ type Engram =
|
|
|
3981
4110
|
/// pairs this call with a migration (`useMemoryEncryption`'s `migrate` / `migrateToPlaintext`)
|
|
3982
4111
|
/// for exactly that reason; a caller reaching this method directly gets the flag and nothing else.
|
|
3983
4112
|
///
|
|
3984
|
-
/// ⚠ ENABLING IS REFUSED while the
|
|
4113
|
+
/// ⚠ ENABLING IS REFUSED while the spawning registry's principal holds memory-read access as an
|
|
3985
4114
|
/// agent — it could derive the decryption key, which would make Private mode a claim rather
|
|
3986
4115
|
/// than a property. Revoke that agent's read access first. The refusal says so, and it is a
|
|
3987
4116
|
/// `#Conflict` rather than a `#Refused` because the caller IS the owner and the problem is the
|
|
@@ -4009,7 +4138,7 @@ type Engram =
|
|
|
4009
4138
|
/// Per-prefix retention policy. The longest rule that covers a path wins; anything uncovered
|
|
4010
4139
|
/// keeps everything.
|
|
4011
4140
|
///
|
|
4012
|
-
/// ⟨2026-10-21, the owner's
|
|
4141
|
+
/// ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ "Covers" is the folder matcher
|
|
4013
4142
|
/// (`AgentPaths.covers`, through `RetentionPolicy.resolve`): a rule ending in "/" governs
|
|
4014
4143
|
/// everything beneath it, any other rule exactly one path. It was bare text prefix until that day.
|
|
4015
4144
|
///
|
|
@@ -4049,18 +4178,18 @@ type Engram =
|
|
|
4049
4178
|
/// `getEngramCard`'s `x402Support` reports THIS flag, so a buyer can read the rail's state before
|
|
4050
4179
|
/// paying rather than discovering it in a refusal.
|
|
4051
4180
|
setPaidMemoryReadEnabled: (enabled: bool) -> (Result_2);
|
|
4052
|
-
/// Open or close the paid-memory WRITE rail (
|
|
4181
|
+
/// Open or close the paid-memory WRITE rail (off by default since 2026-08-26). Owner-only, like its read twin.
|
|
4053
4182
|
///
|
|
4054
4183
|
/// Kept as a SEPARATE flag rather than widening `setPaidMemoryReadEnabled` into one switch: an
|
|
4055
4184
|
/// owner selling read access has not thereby agreed to sell write access, and a single flag makes
|
|
4056
4185
|
/// the larger permission ride in on the smaller one. Two flags is the shape that lets an owner
|
|
4057
4186
|
/// say yes to one and no to the other, which is the common case.
|
|
4058
4187
|
setPaidMemoryWriteEnabled: (enabled: bool) -> (Result_2);
|
|
4059
|
-
/// ⟨0.16.0,
|
|
4060
|
-
/// split is worth stating once for the whole whole-value-config family below:
|
|
4061
|
-
/// the CALLER'S to fix and retrying with a corrected list works, while "max 20"
|
|
4062
|
-
/// this engram that no argument gets around. A caller that cannot tell those apart
|
|
4063
|
-
/// forever or gives up on a request that was one character from valid.
|
|
4188
|
+
/// ⟨0.16.0, refusals are values, never traps⟩ Every validation refusal here is `#Invalid` and the cap
|
|
4189
|
+
/// is `#Conflict`, and the split is worth stating once for the whole whole-value-config family below:
|
|
4190
|
+
/// a malformed path is the CALLER'S to fix and retrying with a corrected list works, while "max 20"
|
|
4191
|
+
/// is a property of this engram that no argument gets around. A caller that cannot tell those apart
|
|
4192
|
+
/// either edits forever or gives up on a request that was one character from valid.
|
|
4064
4193
|
setProtectedPaths: (paths: vec text) -> (Result_2);
|
|
4065
4194
|
/// OWNER-ONLY: switch the metrics reader's read of the seat weeks off (`false`) or back on (`true`).
|
|
4066
4195
|
/// On from birth, by the owner's ruling of 2026-10-02. Off, `sysGetAgentSeatWeeks` refuses the
|
|
@@ -4077,14 +4206,14 @@ type Engram =
|
|
|
4077
4206
|
setSellerCap: (payTo: text, perDayCapE6: nat) -> (Result_11);
|
|
4078
4207
|
/// Set the most this engram may spend per day ACROSS EVERY CALLER — five agents, the owner and the
|
|
4079
4208
|
/// marketplace together. `null` removes the ceiling. ⟨2026-09-28⟩
|
|
4080
|
-
/// ⟨CORRECTED 2026-09-29, review finding
|
|
4209
|
+
/// ⟨CORRECTED 2026-09-29, a review finding: "spend" was too wide. The ceiling covers the x402
|
|
4081
4210
|
/// payments this engram signs (`signX402Payment` and the marketplace's `sysSignX402Payment`) and
|
|
4082
4211
|
/// nothing else: it is the most this engram may sign in x402 payments per day. Two other signing
|
|
4083
4212
|
/// paths are NOT counted against it — typed-data signatures (`signEip712` / `sysSignEip712`),
|
|
4084
4213
|
/// bounded instead by each registered type's daily count and destination list; and agent-
|
|
4085
4214
|
/// registration transactions (`signEngramRegistration`), bounded by three per caller per day and
|
|
4086
4215
|
/// the 500-gwei gas ceiling. Whether the ceiling should cover them is a separate owner question.⟩
|
|
4087
|
-
/// ⟨2026-10-14, the owner's
|
|
4216
|
+
/// ⟨2026-10-14, the owner's typed-data signing rulings⟩ Typed-data signatures are now bounded by each
|
|
4088
4217
|
/// registered type's daily count, its per-field rules ("at most N", "must equal X") and ITS OWN
|
|
4089
4218
|
/// destination list, and the signing floor (`SigningFloor`) guards them as it guards x402 payments.
|
|
4090
4219
|
/// They are still not counted against this ceiling.
|
|
@@ -4098,15 +4227,15 @@ type Engram =
|
|
|
4098
4227
|
/// A payment that would take today's engram-wide total past this number is not signed: the caller
|
|
4099
4228
|
/// gives a reason and it becomes a row in the approval queue, exactly as over a per-caller cap.
|
|
4100
4229
|
/// `0` is allowed and means every payment needs the owner's approval.
|
|
4101
|
-
/// ⟨CORRECTED 2026-09-29, review finding
|
|
4230
|
+
/// ⟨CORRECTED 2026-09-29, a review finding: not every payment — a payment of amount 0 crosses no
|
|
4102
4231
|
/// limit, so it is signed under a ceiling of 0 too. Whether amount-0 payments should be refused is
|
|
4103
|
-
/// an open owner question.⟩ ⟨CORRECTED 2026-09-29, later — the owner ruled
|
|
4232
|
+
/// an open owner question.⟩ ⟨CORRECTED 2026-09-29, later — the owner ruled:
|
|
4104
4233
|
/// a payment of amount 0 is now refused by name before any limit is read (`X402Input.refusal`), so
|
|
4105
4234
|
/// under a ceiling of 0 every payment that can be signed at all does need the owner's approval.
|
|
4106
4235
|
/// And a new engram no longer starts with no ceiling: it starts at `SpendCeiling.DEFAULT_ENGRAM_DAY`
|
|
4107
|
-
/// ($10.00 a day
|
|
4108
|
-
///
|
|
4109
|
-
///
|
|
4236
|
+
/// ($10.00 a day, as the owner ruled).⟩ Takes effect on the next payment, counted against what was
|
|
4237
|
+
/// ALREADY spent today (the total is kept whether or not a ceiling is set), so setting a ceiling at
|
|
4238
|
+
/// noon does not grant a fresh day.
|
|
4110
4239
|
///
|
|
4111
4240
|
/// Unlike `setSpendPolicy`, this does NOT auto-approve pending requests it now covers — a request
|
|
4112
4241
|
/// held by the ceiling waits for `approveRequest`, or the caller retries against the new ceiling.
|
|
@@ -4141,7 +4270,7 @@ type Engram =
|
|
|
4141
4270
|
///
|
|
4142
4271
|
/// The cooldown defaults to five minutes. `cooldownSeconds = 0` removes the gap entirely, which
|
|
4143
4272
|
/// is a real choice and not an error.
|
|
4144
|
-
/// ⟨
|
|
4273
|
+
/// ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ ONE RECORD, NOT TWO ADJACENT NATS. This took
|
|
4145
4274
|
/// `(newMaxCkusdcE6s : Nat, cooldownSeconds : Nat)` — the documented swap class, and a live one:
|
|
4146
4275
|
/// the suite calls `setTopUpLimits(10_000_000n, 300n)`, and a caller who transposes those gets a
|
|
4147
4276
|
/// 300-e6 cap with a 116-DAY cooldown. Candid matches positionally and both are `nat`, so the
|
|
@@ -4170,14 +4299,14 @@ type Engram =
|
|
|
4170
4299
|
/// and stores the result ONLY on a real verification success — never self-asserted.
|
|
4171
4300
|
setWorldIdProof: (resultJson: text, nullifier: text) -> (Result_2);
|
|
4172
4301
|
/// Sign a registered type. ONE call, owner-only, freeze-gated — the delay lives on registration
|
|
4173
|
-
/// (
|
|
4302
|
+
/// (the typed-data design of 2026-08-04), never here: an emergency withdrawal must not need two owner round-trips.
|
|
4174
4303
|
///
|
|
4175
|
-
/// ⟨0.16.0⟩ PERSISTS beside the market's `sysSignEip712` (
|
|
4304
|
+
/// ⟨0.16.0⟩ PERSISTS beside the market's `sysSignEip712` (ruled in the 0.16.0 interface plan). The owner does
|
|
4176
4305
|
/// not lose the ability to sign because a marketplace gained it, and the two share every control
|
|
4177
4306
|
/// below the caller gate.
|
|
4178
4307
|
///
|
|
4179
|
-
/// ⟨2026-11-02, the owner's ruling
|
|
4180
|
-
/// — the child build's
|
|
4308
|
+
/// ⟨2026-11-02, the owner's ruling to take the recommended answers (the sign-in "approves trading keys")
|
|
4309
|
+
/// — the child build's withdrawal-pinning step⟩ In an engram opened through another, a type named
|
|
4181
4310
|
/// `HyperliquidTransaction:ApproveAgent` (`Eip712Policy.childSignInOnlyToSign`) is signed by the
|
|
4182
4311
|
/// sign-in alone: the key file is refused it by name, and the sign-in may sign it (as the owner, on
|
|
4183
4312
|
/// the record). Every other type is the key file's to sign, as before. An access check beside the
|
|
@@ -4194,15 +4323,15 @@ type Engram =
|
|
|
4194
4323
|
/// 2026-08-17; `registerAgent` — the engram method that broadcast the registration itself — left
|
|
4195
4324
|
/// the candid surface in commit d25b53b, so the comparison had outlived its other term. The
|
|
4196
4325
|
/// saving was real and is now simply the shape of this method: no RPC outcall, no receipt poll.
|
|
4197
|
-
/// ⟨
|
|
4326
|
+
/// ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ ONE REQUEST RECORD, not three adjacent nats.
|
|
4198
4327
|
///
|
|
4199
|
-
/// ⟨
|
|
4200
|
-
/// signEip712 + registered type") and
|
|
4328
|
+
/// ⟨The owner's ruling to keep it⟩ This method KEEPS. The 0.16.0 interface plan dispositions it `die`
|
|
4329
|
+
/// ("test-only; folds into signEip712 + registered type") and records the owner's answer: RULED 2026-08-20 —
|
|
4201
4330
|
/// KEEP, ERC-8004 stays. Both halves of the `die` rationale fail at the site: it is not
|
|
4202
4331
|
/// test-only (a downstream web client's billing page calls it), and it is not a shipped customer
|
|
4203
4332
|
/// capability either — that panel sits behind `evmBilling: { mode: 'off' }` in both the flag
|
|
4204
4333
|
/// defaults and the shipped config, and its own dialog says the signature is dormant and not
|
|
4205
|
-
/// broadcastable. It is a real surface in a disabled state, which is neither thing the
|
|
4334
|
+
/// broadcastable. It is a real surface in a disabled state, which is neither thing the plan's
|
|
4206
4335
|
/// row claimed.
|
|
4207
4336
|
///
|
|
4208
4337
|
/// THE SWAP CLASS, and here it is three-deep: `nonce`, `maxFeePerGas` and `maxPriorityFeePerGas`
|
|
@@ -4226,9 +4355,9 @@ type Engram =
|
|
|
4226
4355
|
/// Client probes the URL, extracts chain/token/recipient/amount from the 402, and calls this.
|
|
4227
4356
|
/// Canister signs → returns header → client retries with header.
|
|
4228
4357
|
///
|
|
4229
|
-
/// ⟨0.16.0⟩ PERSISTS beside the market's `sysSignX402Payment` (
|
|
4358
|
+
/// ⟨0.16.0⟩ PERSISTS beside the market's `sysSignX402Payment` (ruled in the 0.16.0 interface plan). An agent
|
|
4230
4359
|
/// with an x402 rail does not lose it because a marketplace gained one, and both run the same body.
|
|
4231
|
-
/// ⟨
|
|
4360
|
+
/// ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ ONE REQUEST RECORD, not eight positional arguments.
|
|
4232
4361
|
///
|
|
4233
4362
|
/// THE HAZARD IS FUNDS MISDIRECTION, and it is the sharpest case in this batch. `tokenAddress`
|
|
4234
4363
|
/// and `recipient` were ADJACENT and both `Text`. Candid matches positionally, so transposing
|
|
@@ -4253,7 +4382,7 @@ type Engram =
|
|
|
4253
4382
|
tokenName: text;
|
|
4254
4383
|
tokenVersion: text;
|
|
4255
4384
|
}) -> (Result_4);
|
|
4256
|
-
/// ⟨2026-10-21, the owner's
|
|
4385
|
+
/// ⟨2026-10-21, the owner's approval of the mobile design's changes⟩ A GUARDIAN STEPS DOWN: the caller ends their own
|
|
4257
4386
|
/// guardianship of this engram. It removes a power from the one who holds it and grants none.
|
|
4258
4387
|
/// Before, only the owner could remove a guardian, so one who wanted out could only stop watching
|
|
4259
4388
|
/// without anyone knowing — worse than an honest exit on the record.
|
|
@@ -4284,7 +4413,7 @@ type Engram =
|
|
|
4284
4413
|
storeKeyBackup: (ciphertext: blob) -> (Result_2);
|
|
4285
4414
|
/// OWNER force-close, for a session the payer abandoned.
|
|
4286
4415
|
///
|
|
4287
|
-
/// ⟨
|
|
4416
|
+
/// ⟨ruled 2026-08-26: owner-gated, NO guardian.⟩ It moves someone else's money, and only ever
|
|
4288
4417
|
/// BACK TO THEM — the destination is the session's own payer and is not caller-influenced, so the
|
|
4289
4418
|
/// guardian ceremony that guards destination changes buys nothing here and would strand payers on
|
|
4290
4419
|
/// engrams that have no guardian.
|
|
@@ -4306,14 +4435,14 @@ type Engram =
|
|
|
4306
4435
|
///
|
|
4307
4436
|
/// CALLER: the metrics reader the spawning registry named on this engram (`metricsReaderId`), and
|
|
4308
4437
|
/// nobody else — not the owner (who reads `getAgentSeatWeeks`), an agent, a guardian, the registry,
|
|
4309
|
-
/// the biller or the market (
|
|
4438
|
+
/// the biller or the market (the surface-budget rule of 2026-08-16: a `sys` method names its caller). Answered only while the
|
|
4310
4439
|
/// owner leaves it on (`seatWeeksReadEnabled`, on from birth by the owner's ruling of 2026-10-02).
|
|
4311
4440
|
///
|
|
4312
4441
|
/// WHAT LEAVES: per engagement, the pairing day, the first and last payment-signature days, the
|
|
4313
4442
|
/// 64-week map and the count — NO root, NO invite, NO amount, recipient or nonce. The reader matches
|
|
4314
4443
|
/// rows to the registry's engagements by day, so no agent's identity leaves this engram here.
|
|
4315
4444
|
///
|
|
4316
|
-
/// ⟨
|
|
4445
|
+
/// ⟨update-for-read⟩ UPDATE, NOT QUERY, so a refusal leaves its `sysGetAgentSeatWeeks.denied` row naming the
|
|
4317
4446
|
/// caller's class, and an answered read leaves a `sysGetAgentSeatWeeks` row in the read log — the
|
|
4318
4447
|
/// owner can see every time the reader read. A refusal is `#Refused` naming this method and the
|
|
4319
4448
|
/// class (`SeatWeeks.readRefusal`), never an empty list: an empty list is a real answer ("no agent
|
|
@@ -4341,17 +4470,17 @@ type Engram =
|
|
|
4341
4470
|
/// to freeze. Called by another canister, a query runs replicated and this engram pays for it —
|
|
4342
4471
|
/// a few million cycles an hour, the cost of being watched.
|
|
4343
4472
|
sysGetRailHealth: () -> (Result_8) query;
|
|
4344
|
-
/// The
|
|
4473
|
+
/// The biller reads how many signatures this engram has produced, per caller and in total.
|
|
4345
4474
|
/// ⟨2026-09-28⟩ The owner's decision of that date: a running counter on the engram, exported to
|
|
4346
|
-
/// the
|
|
4475
|
+
/// the biller — and to nobody else (`AccessControl.requireCashierForSignatureCounts`).
|
|
4347
4476
|
///
|
|
4348
|
-
/// ONE NEW METHOD ON THE ENGRAM, not a field on the registry's `sysMeterEngram` reply.
|
|
4477
|
+
/// ONE NEW METHOD ON THE ENGRAM, not a field on the registry's `sysMeterEngram` reply. An earlier study
|
|
4349
4478
|
/// ruled out widening that reply to protect deployed clients, and that reason is gone (nothing is
|
|
4350
4479
|
/// launched; the next release reinstalls every canister). The deciding fact is a different one,
|
|
4351
4480
|
/// read at the site: `sysMeterEngram` is the REGISTRY's method and answers from the management
|
|
4352
4481
|
/// canister's `canister_status` — the registry holds no signature count. Carrying the count in its
|
|
4353
4482
|
/// reply would add a registry-to-engram call inside the meter and a second trust hop between the
|
|
4354
|
-
/// counter and the biller. The
|
|
4483
|
+
/// counter and the biller. The biller is already the canister this engram recognises (`cashierId`) and
|
|
4355
4484
|
/// already calls it directly (`sysRecordFeeEvent`), so it reads the count at the source.
|
|
4356
4485
|
///
|
|
4357
4486
|
/// UPDATE, NOT QUERY, so that a refusal leaves its `sysGetSignatureCounts.denied` row: a refused
|
|
@@ -4368,17 +4497,24 @@ type Engram =
|
|
|
4368
4497
|
/// not go under, and until when to keep its timers quiet.
|
|
4369
4498
|
///
|
|
4370
4499
|
/// CALLER: the registry that spawned this engram, from inside its owner's `restartMyStoppedEngram`,
|
|
4371
|
-
/// and nobody else (
|
|
4500
|
+
/// and nobody else (the surface-budget rule: a `sys` method names its caller) — the same authority as `sysSetBillerId`. The owner's next conversion
|
|
4372
4501
|
/// that lands pays the loan back first. The loan is capped at `RestartRepay.LOAN_MAX_CYCLES` and
|
|
4373
4502
|
/// the quiet window at 30 minutes, whatever the registry says.
|
|
4503
|
+
/// ⟨2026-11-15, from an adversarial review, beside "and nobody else" above⟩ AND ONLY WHILE THAT
|
|
4504
|
+
/// CALLER IS ONE OF THIS ENGRAM'S CONTROLLERS, asked of the network in this call (`controllerRefusal`): nobody else
|
|
4505
|
+
/// can have started it. A note changes no loan while one is unpaid, takes one new loan and opens one
|
|
4506
|
+
/// quiet window in any 24 hours (`RestartRepay.noteRestart`); a new loan inside the 24 hours is
|
|
4507
|
+
/// refused `#Conflict` with the time to retry after, and the registry's own retry delivers it then.
|
|
4508
|
+
/// REPLIES: `#Refused` (not the registry, or not a controller), `#Conflict` (a loan was taken less
|
|
4509
|
+
/// than 24 hours ago), `#Ok`.
|
|
4374
4510
|
sysNoteRestart: (r:
|
|
4375
4511
|
record {
|
|
4376
4512
|
keepCycles: nat;
|
|
4377
4513
|
loan: nat;
|
|
4378
4514
|
quietUntilNs: int;
|
|
4379
4515
|
}) -> (Result_2);
|
|
4380
|
-
/// Rent lifecycle notice — how the OWNER (not the agent) learns their subscription lapsed.
|
|
4381
|
-
/// shipped the handoff but every alarm it added talks to the operating service's watchdog; the
|
|
4516
|
+
/// Rent lifecycle notice — how the OWNER (not the agent) learns their subscription lapsed. The rent-handoff
|
|
4517
|
+
/// work shipped the handoff but every alarm it added talks to the operating service's watchdog; the
|
|
4382
4518
|
/// doc named the debt plainly: "an owner learns of their own lapse only by looking." This closes
|
|
4383
4519
|
/// it through the channel the owner already has: the entry lands in the audit log under `rent.*`,
|
|
4384
4520
|
/// ActionAlerts classifies that as #money (default ON), and the drain delivers it to the owner's
|
|
@@ -4394,16 +4530,16 @@ type Engram =
|
|
|
4394
4530
|
/// ⟨0.16.0, sys tier⟩ THE MARKET TELLING CUSTODY, which is the half of the wallet-activation
|
|
4395
4531
|
/// story the engram cannot see for itself.
|
|
4396
4532
|
///
|
|
4397
|
-
///
|
|
4533
|
+
/// The 0.16.0 split moved the storefront to the market, so listing an endpoint — a seller offering to be paid —
|
|
4398
4534
|
/// happens on a canister this one does not observe. `walletActivatedAt` exists to raise a custody
|
|
4399
4535
|
/// decision (a wallet-bearing engram is sovereign-by-default and its owner has a claimSovereignty
|
|
4400
4536
|
/// still to complete), and a seller who has never derived an EVM address would have gone
|
|
4401
4537
|
/// unstamped forever. That is the under-reporting direction, which is the harmful one: a missing
|
|
4402
4538
|
/// flag retires a decision that is still pending.
|
|
4403
4539
|
///
|
|
4404
|
-
/// ONE METHOD, NOT A FAMILY (
|
|
4405
|
-
/// session — is NOT here and is not an omission: measured at the market 2026-08-20,
|
|
4406
|
-
/// caller is a BUYER, and a buying engram signs with a key it derived through `getEvmAddress`,
|
|
4540
|
+
/// ONE METHOD, NOT A FAMILY (every method has a tier and a named caller). The other surface the old comment
|
|
4541
|
+
/// named — opening a payment session — is NOT here and is not an omission: measured at the market 2026-08-20,
|
|
4542
|
+
/// `openSession`'s caller is a BUYER, and a buying engram signs with a key it derived through `getEvmAddress`,
|
|
4407
4543
|
/// which stamps. It is already marked before it can pay. Adding a case for it would be surface
|
|
4408
4544
|
/// bought for a gap that does not exist.
|
|
4409
4545
|
///
|
|
@@ -4420,42 +4556,43 @@ type Engram =
|
|
|
4420
4556
|
/// the origin: only the configured market can pass that value, so the line cannot be produced by
|
|
4421
4557
|
/// any other caller.
|
|
4422
4558
|
sysNotifyWalletActivity: (surface: text) -> (Result_2);
|
|
4423
|
-
/// The rent RECEIPT seam (
|
|
4424
|
-
/// the engram appends a `fee.recorded` line to its own audit chain. It
|
|
4559
|
+
/// The rent RECEIPT seam (rent is the biller's; the engram keeps receipts): the biller tells this engram
|
|
4560
|
+
/// that money moved on its behalf, and the engram appends a `fee.recorded` line to its own audit chain. It
|
|
4561
|
+
/// computes nothing.
|
|
4425
4562
|
///
|
|
4426
4563
|
/// ⚠ GATED TO TWO PRINCIPALS AND NEITHER IS THE OWNER — the SPAWNING REGISTRY or the CONFIGURED
|
|
4427
4564
|
/// CASHIER. An owner cannot write their own fee receipts, which is the point: a receipt an owner
|
|
4428
|
-
/// could forge is not evidence. `getBillerId` publishes which
|
|
4565
|
+
/// could forge is not evidence. `getBillerId` publishes which biller this engram accepts, so the
|
|
4429
4566
|
/// same fact is checkable from outside.
|
|
4430
4567
|
///
|
|
4431
|
-
/// This is the whole of what
|
|
4432
|
-
///
|
|
4433
|
-
/// two is visible rather than reconciled silently.
|
|
4434
|
-
/// ⟨
|
|
4435
|
-
/// arguments.
|
|
4568
|
+
/// This is the whole of what moving rent to the biller left on the engram. Entitlement, custody and
|
|
4569
|
+
/// fee math live on the biller; here there is an append-only record and no arithmetic — so a
|
|
4570
|
+
/// disagreement between the two is visible rather than reconciled silently.
|
|
4571
|
+
/// ⟨2026-08-24, the 0.16.0 pre-cut audit⟩ ONE FEE-EVENT RECORD, not three positional
|
|
4572
|
+
/// arguments. The audit records that the interface review prescribed this fold and it "was refused for a
|
|
4436
4573
|
/// wire-break reason the ruling voids", with the instruction to execute it or ratify
|
|
4437
4574
|
/// positional-forever with a dated note — "silence spends the window". Executed.
|
|
4438
4575
|
///
|
|
4439
4576
|
/// The argument for a record here is EVOLUTION, not transposition: unlike `setTopUpLimits`'s two
|
|
4440
4577
|
/// adjacent nats, these three types differ, so a swap would not type-check. What positional
|
|
4441
4578
|
/// arguments cost is the next field. A fee event is exactly the shape that grows one — token,
|
|
4442
|
-
/// amount, rate — and
|
|
4579
|
+
/// amount, rate — and the interface-evolution rule (2026-08-16) is that an INBOUND record gains optional fields forever
|
|
4443
4580
|
/// while an argument LIST cannot gain anything without breaking every caller at once.
|
|
4444
4581
|
///
|
|
4445
|
-
/// ⚠ ALL FOUR CALLERS MOVE IN THE SAME CHANGE, and this is
|
|
4446
|
-
/// inline hand-IDLs in the
|
|
4582
|
+
/// ⚠ ALL FOUR CALLERS MOVE IN THE SAME CHANGE, and this is the fatal direction of the client-subset rule: three
|
|
4583
|
+
/// inline hand-IDLs in the biller and one in the registry declare this method's argument shape
|
|
4447
4584
|
/// structurally. Every one of them sits inside `try { … } catch (_e) {}`, which reads as
|
|
4448
4585
|
/// containment and is not: a reply-decode mismatch calls `ic0.trap` INSIDE the caller's own
|
|
4449
4586
|
/// callback, and Motoko's `catch` sees rejects, never traps. That is the failure that took
|
|
4450
4587
|
/// production monitoring dark for ~33h. The ENGRAM WASM MUST SHIP BEFORE its callers, and
|
|
4451
|
-
///
|
|
4588
|
+
/// the interface-compatibility gate is suspended for the cut, so nothing mechanical will catch a wrong order.
|
|
4452
4589
|
sysRecordFeeEvent: (fee:
|
|
4453
4590
|
record {
|
|
4454
4591
|
cycles: nat;
|
|
4455
4592
|
paidThroughNs: opt int;
|
|
4456
4593
|
scheduleVersion: opt text;
|
|
4457
4594
|
}) -> (Result_2);
|
|
4458
|
-
/// ⟨2026-11-04, the owner's ruling
|
|
4595
|
+
/// ⟨2026-11-04, the owner's ruling: a marketplace sale is paid into the selling engram's own
|
|
4459
4596
|
/// wallet, and the engram writes each sale to its record⟩ THE MARKET WRITING A SALE TO THIS ENGRAM'S
|
|
4460
4597
|
/// RECORD, after it has paid this engram's own account (ckUSDC) or address (another chain). The
|
|
4461
4598
|
/// money does not pass through here and nothing here moves any: a ledger account needs no running
|
|
@@ -4474,7 +4611,7 @@ type Engram =
|
|
|
4474
4611
|
/// IT AWAITS NOTHING, deliberately, and test/market-route-wiring.test.ts rule E3 holds that: no
|
|
4475
4612
|
/// outgoing call means nothing to count under wiring rule 20, and NO WAKE DOOR — a sale brings
|
|
4476
4613
|
/// dollars, not compute, so a paused engram's wake would find no room on every engram that is
|
|
4477
|
-
/// actually paused (
|
|
4614
|
+
/// actually paused (a design question, defaulted to "wakes nothing unless the owner objects").
|
|
4478
4615
|
///
|
|
4479
4616
|
/// NOT GATED ON a guardian's payment freeze (that stops this engram's own signing — money out;
|
|
4480
4617
|
/// `sysRecordFeeEvent` is not freeze-gated either), on `pauseWrites` (memory writes), or on the
|
|
@@ -4485,38 +4622,54 @@ type Engram =
|
|
|
4485
4622
|
/// The listing notice (`sysNotifyWalletActivity`) stays, as ruled 2026-08-20; whether to retire it
|
|
4486
4623
|
/// is the owner's question.
|
|
4487
4624
|
///
|
|
4488
|
-
/// ⟨2026-11-04, the owner's ruling
|
|
4489
|
-
/// YET", NOT A REFUSAL. With `marketId` null the
|
|
4490
|
-
/// market PARKS the notice (it drops a sale's line
|
|
4491
|
-
/// closes: the money landed and the line was lost for
|
|
4492
|
-
/// sets it later (`sysSetMarketId`), and then
|
|
4493
|
-
/// `registerSeller` writes the line; the market's 30-day age
|
|
4494
|
-
/// `sysRecordSale.denied` row: nothing was denied, and
|
|
4495
|
-
/// row per press would be spam on the owner's read
|
|
4496
|
-
/// once one is set, is still `#Refused` with its
|
|
4497
|
-
/// `marketId` that can be set to null on purpose (a
|
|
4498
|
-
/// mean "never", and parking for 30 days would hold
|
|
4499
|
-
/// Witness: test/market-route/sale-route.test.ts S7 and record-row.test.ts R3.
|
|
4625
|
+
/// ⟨2026-11-04, the owner's ruling that a sale's record line waits until a market is set, beside the
|
|
4626
|
+
/// gate paragraph above⟩ NO MARKET SET YET IS "NOT YET", NOT A REFUSAL. With `marketId` null the
|
|
4627
|
+
/// gate's refusal is answered `#Unavailable`, and the market PARKS the notice (it drops a sale's line
|
|
4628
|
+
/// on any other `#Err` at once — the defect this closes: the money landed and the line was lost for
|
|
4629
|
+
/// good). `marketId` is not final: the registry sets it later (`sysSetMarketId`), and then
|
|
4630
|
+
/// `retrySaleNotices` or the seller's next `registerSeller` writes the line; the market's 30-day age
|
|
4631
|
+
/// cap ends the wait. That arm writes NO `sysRecordSale.denied` row: nothing was denied, and
|
|
4632
|
+
/// `retrySaleNotices` is open to any caller, so a row per press would be spam on the owner's read
|
|
4633
|
+
/// log. A caller that is not the configured market, once one is set, is still `#Refused` with its
|
|
4634
|
+
/// row, unchanged. WHAT WOULD MAKE THIS WRONG: a `marketId` that can be set to null on purpose (a
|
|
4635
|
+
/// market retired from an engram) — then null would mean "never", and parking for 30 days would hold
|
|
4636
|
+
/// a line nobody can write. Witness: test/market-route/sale-route.test.ts S7 and record-row.test.ts R3.
|
|
4500
4637
|
sysRecordSale: (sale: SaleNotice) -> (Result_2);
|
|
4501
4638
|
/// Give back what a paid security update advanced this engram and the install did not use.
|
|
4502
4639
|
///
|
|
4503
4640
|
/// CALLER: the registry that spawned this engram, right after it installed a security update it
|
|
4504
|
-
/// paid for, and nobody else (
|
|
4641
|
+
/// 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
|
|
4505
4642
|
/// above its balance before the update, and what sits above its 30-day reserve plus send headroom
|
|
4506
4643
|
/// (`RestartRepay.giveBack`) — attached to the registry's `sysRepayUpgradeAdvance`, which accepts no
|
|
4507
4644
|
/// more than it advanced. The registry writes off what is not returned; nothing is owed after.
|
|
4508
|
-
/// ⟨CORRECTED 2026-10-28, beside "its 30-day reserve" above — the owner's ruling
|
|
4645
|
+
/// ⟨CORRECTED 2026-10-28, beside "its 30-day reserve" above — the owner's automatic-pause ruling⟩ The reserve is
|
|
4509
4646
|
/// this engram's freezing reserve at its own setting (`freezeReservation` = `lineEstimate`), not a
|
|
4510
4647
|
/// 30-day figure: about 430B more at a ~305-day setting.
|
|
4511
|
-
/// ⟨2026-10-26, the owner's review choice
|
|
4648
|
+
/// ⟨2026-10-26, the owner's review choice: "take back only what we added; anything left over goes
|
|
4512
4649
|
/// to the 90-day write-off"⟩ The registry now names the ONE advance it is asking for (`advanceId`,
|
|
4513
4650
|
/// the one its deposit for this install put on its ledger) and `advance` is that advance's amount
|
|
4514
4651
|
/// alone — never the sum of every advance this engram has out. The engram passes the id back to
|
|
4515
4652
|
/// `sysRepayUpgradeAdvance` unchanged, and the registry settles that advance only. The engram's own
|
|
4516
|
-
/// caps are unchanged (`RestartRepay.giveBack`). HONEST LIMIT, unchanged by
|
|
4653
|
+
/// caps are unchanged (`RestartRepay.giveBack`). HONEST LIMIT, unchanged by that choice: the engram cannot
|
|
4517
4654
|
/// tell its owner's top-up from the unused advance, so when the install used part of the advance and
|
|
4518
4655
|
/// the owner added compute meanwhile, up to the part the install used can still come from the
|
|
4519
4656
|
/// owner's top-up (the cap is the advance, not its unused part).
|
|
4657
|
+
/// ⟨2026-11-15, from an adversarial review, beside "and nobody else" and "The engram's own caps are
|
|
4658
|
+
/// unchanged" above⟩ THE CAPS CHANGED, and the caller's figures are upper bounds only. Answered
|
|
4659
|
+
/// once per upgrade this engram saw, within 30 minutes of it (`upgradeSeenAtNs`); only to a caller
|
|
4660
|
+
/// that is one of its controllers, asked of the network in this call (`controllerRefusal`); never more than
|
|
4661
|
+
/// 320.005B (`RestartRepay.ADVANCE_MAX_CYCLES`); and never taking this engram under its own
|
|
4662
|
+
/// signing floor (`RestartRepay.aboveFloor`) — was line + 0.1T, which is under that floor.
|
|
4663
|
+
/// ⟨CORRECTED 2026-11-15, later, beside "never taking this engram under its own signing floor"
|
|
4664
|
+
/// above⟩ That rule returned 0 to every registry that had really paid: a paid engram is under its
|
|
4665
|
+
/// signing floor by construction (MEASURED: 138.66B advanced, 0 returned). The floor is now
|
|
4666
|
+
/// `RestartRepay.giveBackFloor`: an update never leaves this engram lower than it was before it.
|
|
4667
|
+
/// One that could sign before the update can sign after the give-back; one already under its
|
|
4668
|
+
/// signing floor returns what was advanced and no more, never under its reserve and send headroom.
|
|
4669
|
+
/// The balance before is the caller's figure; RestartRepay.mo's header says what a controller that
|
|
4670
|
+
/// lies about it can take (at most the cap, once per real upgrade, never below reserve + headroom).
|
|
4671
|
+
/// RestartRepay.mo's header says what a controller can still do. The record line gains `left=`:
|
|
4672
|
+
/// what actually left, beside the registry's `returned=`.
|
|
4520
4673
|
sysReturnUpgradeAdvance: (a:
|
|
4521
4674
|
record {
|
|
4522
4675
|
advance: nat;
|
|
@@ -4526,8 +4679,8 @@ type Engram =
|
|
|
4526
4679
|
/// Point this engram at the biller that converts its tokens → cycles. Settable, not hardcoded:
|
|
4527
4680
|
/// coupling is by principal id, so the same wasm runs against any deployment's biller.
|
|
4528
4681
|
///
|
|
4529
|
-
/// ⟨0.16.0,
|
|
4530
|
-
///
|
|
4682
|
+
/// ⟨0.16.0, rent is the biller's; the engram keeps receipts⟩ Renamed from `setCashierId`, and NARROWED
|
|
4683
|
+
/// to the spawning registry (ruled in the 0.16.0 interface plan). Two changes, for two reasons:
|
|
4531
4684
|
/// · "cashier" is a PLATFORM word and this is the OSS wire. `biller` names the role, not the
|
|
4532
4685
|
/// product that fills it.
|
|
4533
4686
|
/// · The write is now sys-tier. It previously accepted the OWNER as well, and that second
|
|
@@ -4540,10 +4693,11 @@ type Engram =
|
|
|
4540
4693
|
/// rather than telling an owner to run a call they can no longer make.
|
|
4541
4694
|
sysSetBillerId: (id: principal) -> (Result_2);
|
|
4542
4695
|
/// Give this engram its BIRTH CHAIN: its ancestors' birth records and its own, root first, its own
|
|
4543
|
-
/// last ⟨2026-10-26, the owner's lineage rulings
|
|
4696
|
+
/// last ⟨2026-10-26, the owner's lineage rulings: each engram keeps its birth record and its ancestors'
|
|
4697
|
+
/// copies, and the registry certifies each record's fingerprint⟩.
|
|
4544
4698
|
///
|
|
4545
4699
|
/// CALLER: the registry that spawned this engram, from its birth push or its sweep's retry, and
|
|
4546
|
-
/// nobody else (
|
|
4700
|
+
/// nobody else (the surface-budget rule: a `sys` method names its caller) — the same authority as `sysSetBillerId`, through the named gate
|
|
4547
4701
|
/// `AccessControl.requireSpawningRegistry`. ⚠ THE REGISTRY'S CLIENT DECLARATION IS HAND-WRITTEN
|
|
4548
4702
|
/// (`sysSetBirthChain : ([BirthRecord.BirthRecord]) -> async Wire.Result<()>`, in `mintAndPush`): a
|
|
4549
4703
|
/// different reply type here traps inside the registry's callback, and a different name leaves every
|
|
@@ -4555,7 +4709,7 @@ type Engram =
|
|
|
4555
4709
|
/// certify and the client's `verifyBirthChain` to check.
|
|
4556
4710
|
sysSetBirthChain: (chain: vec BirthRecord) -> (Result_2);
|
|
4557
4711
|
/// Name the origin of the page where this engram's owner approves a connector sign-in.
|
|
4558
|
-
/// ⟨2026-11-08, the owner's ruling
|
|
4712
|
+
/// ⟨2026-11-08, the owner's ruling that an engram sends sign-ins to its own environment's app⟩
|
|
4559
4713
|
///
|
|
4560
4714
|
/// CALLER: the registry that spawned this engram, from its birth push (`pushToNewborn`), and nobody
|
|
4561
4715
|
/// else — the same authority as `sysSetMetricsReaderId`, through the named gate
|
|
@@ -4571,7 +4725,8 @@ type Engram =
|
|
|
4571
4725
|
/// and nothing changes. SET ONCE: the same origin again answers `#Ok` and changes nothing; another is
|
|
4572
4726
|
/// refused `#Conflict`. Never cleared. Recorded in the chained record (`oauth.sysSetConsentOrigin`).
|
|
4573
4727
|
sysSetConsentOrigin: (origin: text) -> (Result_2);
|
|
4574
|
-
/// Point this engram at the commerce satellite allowed to ask it for signatures. ⟨0.16.0,
|
|
4728
|
+
/// Point this engram at the commerce satellite allowed to ask it for signatures. ⟨0.16.0, commerce moved to
|
|
4729
|
+
/// the market; signing stayed here⟩
|
|
4575
4730
|
///
|
|
4576
4731
|
/// SAME AUTHORITY AS `sysSetBillerId`, and for a stronger reason. That one routes money; this one
|
|
4577
4732
|
/// confers the capability to ask this canister to sign with its own tECDSA key. Three writers for
|
|
@@ -4586,7 +4741,7 @@ type Engram =
|
|
|
4586
4741
|
/// Name the metrics reader allowed to read this engram's seat weeks (`sysGetAgentSeatWeeks`).
|
|
4587
4742
|
/// ⟨2026-10-02, the owner's ruling of that day⟩
|
|
4588
4743
|
///
|
|
4589
|
-
/// CALLER: the registry that spawned this engram, and nobody else (
|
|
4744
|
+
/// CALLER: the registry that spawned this engram, and nobody else (the surface-budget rule: a `sys` method names its caller) — the same authority
|
|
4590
4745
|
/// as `sysSetBillerId` and `sysSetMarketId`. The registry calls it once, at spawn, last of its
|
|
4591
4746
|
/// pushes, with exactly this interface: `sysSetMetricsReaderId : (Principal) -> async
|
|
4592
4747
|
/// Wire.Result<()>`. ⚠ THAT CLIENT DECLARATION IS HAND-WRITTEN AT THE REGISTRY: a different NAME
|
|
@@ -4598,33 +4753,37 @@ type Engram =
|
|
|
4598
4753
|
/// refused `#Invalid` and nothing changes — a person named here would be handed this engram's seat
|
|
4599
4754
|
/// counts. Set or replaced, never cleared: the owner's control is the switch
|
|
4600
4755
|
/// (`setSeatWeeksReadEnabled`), not the pointer.
|
|
4601
|
-
/// ⟨CORRECTED 2026-10-26, the owner's lineage ruling
|
|
4602
|
-
/// SET ONCE. The same reader again answers `#Ok` and
|
|
4603
|
-
/// (`AccessControl.setOnce` says why). Still never cleared. The
|
|
4604
|
-
/// (`metrics.sysSetMetricsReaderId`) is the evidence of when the read was granted, and to
|
|
4756
|
+
/// ⟨CORRECTED 2026-10-26, the owner's lineage ruling that the market, biller and usage reader are set once
|
|
4757
|
+
/// at birth⟩ "Set or replaced" is no longer true: it is SET ONCE. The same reader again answers `#Ok` and
|
|
4758
|
+
/// changes nothing; another is refused `#Conflict` (`AccessControl.setOnce` says why). Still never cleared. The
|
|
4759
|
+
/// chained record entry (`metrics.sysSetMetricsReaderId`) is the evidence of when the read was granted, and to
|
|
4760
|
+
/// whom.
|
|
4605
4761
|
sysSetMetricsReaderId: (reader: principal) -> (Result_2);
|
|
4606
|
-
/// The market asks this engram to sign a registered type —
|
|
4762
|
+
/// The market asks this engram to sign a registered type — the seam where commerce meets signing,
|
|
4763
|
+
/// settlement leg. ⟨0.16.0⟩
|
|
4607
4764
|
///
|
|
4608
4765
|
/// THE ENGRAM DOES NOT TRUST THE MARKET WITH ANYTHING BEYOND "ask". Every control that bounds
|
|
4609
4766
|
/// what may be signed stays here and is unchanged: the type must already be OWNER-REGISTERED
|
|
4610
4767
|
/// (the market cannot introduce a shape), its cool-off must have elapsed, its per-type daily cap
|
|
4611
4768
|
/// still binds, the destination allowlist still fails closed, and a payments freeze still stops
|
|
4612
4769
|
/// it. What the market supplies is the request; what the engram supplies is the whole policy.
|
|
4613
|
-
/// ⟨2026-10-14⟩ And the type's per-field rules, its own destination list (ruling
|
|
4614
|
-
/// signing floor (ruling
|
|
4615
|
-
/// owner; a refusal here is on the chained record under the market's caller
|
|
4770
|
+
/// ⟨2026-10-14⟩ And the type's per-field rules, its own destination list (the destination-list ruling) and
|
|
4771
|
+
/// the signing floor (the typed-data signing-floor ruling) — all in `eip712SignFor`, so they bind the
|
|
4772
|
+
/// market as they bind the owner; a refusal here is on the chained record under the market's caller
|
|
4773
|
+
/// and role.
|
|
4616
4774
|
///
|
|
4617
4775
|
/// That is what "signatures only" means in code, and it is why this method needs no new authority
|
|
4618
4776
|
/// model: an unregistered typeId is refused for the market exactly as it is for the owner.
|
|
4619
4777
|
///
|
|
4620
|
-
/// ⟨2026-11-02, the child build's
|
|
4778
|
+
/// ⟨2026-11-02, the child build's withdrawal-pinning step⟩ In an engram opened through another, approving a trading
|
|
4621
4779
|
/// key (`HyperliquidTransaction:ApproveAgent`) is refused to the market (`#Refused`): it is signed by
|
|
4622
4780
|
/// that engram's sign-in alone, through `signEip712`.
|
|
4623
4781
|
sysSignEip712: (typeId: blob, values: vec record {
|
|
4624
4782
|
text;
|
|
4625
4783
|
Eip712Value;
|
|
4626
4784
|
}) -> (Result_5);
|
|
4627
|
-
/// The market asks this engram to sign an x402 payment —
|
|
4785
|
+
/// The market asks this engram to sign an x402 payment — the seam where commerce meets signing, the
|
|
4786
|
+
/// paid-request leg. ⟨0.16.0⟩
|
|
4628
4787
|
///
|
|
4629
4788
|
/// THE MARKET SUPPLIES THE REQUEST; THE ENGRAM SUPPLIES THE POLICY. Every control below the caller
|
|
4630
4789
|
/// gate is unchanged and still binds: a payments freeze stops it, the recipient must be on the
|
|
@@ -4634,10 +4793,13 @@ type Engram =
|
|
|
4634
4793
|
/// `#ApprovalPending` is a real answer here, not an error, exactly as it is for an agent: the
|
|
4635
4794
|
/// market is told the spend needs the owner and can retry with the `approvalId` once granted. A
|
|
4636
4795
|
/// caller that treats it as a failure will simply never complete a spend the owner would have
|
|
4637
|
-
/// allowed — which is the safe direction, and the reason it rides inside `Ok` (
|
|
4796
|
+
/// allowed — which is the safe direction, and the reason it rides inside `Ok` (results spelled Ok/Err).
|
|
4638
4797
|
///
|
|
4639
4798
|
/// READ `x402SignFor`'s declaration before setting a policy for this caller. The cap is ONE bucket
|
|
4640
4799
|
/// for ALL market traffic; per-seller limits are not expressible in the store it reads.
|
|
4800
|
+
///
|
|
4801
|
+
/// ⟨2026-11-16⟩ REFUSED UNTIL THE OWNER SETS THAT POLICY. While the owner has set no spending
|
|
4802
|
+
/// policy for the market's principal, this method and `sysSignEip712` sign nothing.
|
|
4641
4803
|
sysSignX402Payment: (chainId: nat, tokenAddress: text, recipient:
|
|
4642
4804
|
text, amount: nat, tokenName: text, tokenVersion: text, rationale:
|
|
4643
4805
|
opt text, approvalId: opt text) -> (Result_4);
|
|
@@ -4650,21 +4812,22 @@ type Engram =
|
|
|
4650
4812
|
/// a delivery was just made). Requires the caller's own channel
|
|
4651
4813
|
/// to be armed so the test has somewhere to land for them.
|
|
4652
4814
|
testGuardianAlert: () -> (Result_2);
|
|
4653
|
-
/// RENAMED from `init` (
|
|
4654
|
-
/// owner-facing operation on the canister — and it was named for
|
|
4655
|
-
/// the actor's own `service : (initArgs)`. A reader scanning for
|
|
4656
|
-
/// nothing; a reader scanning for `init` found a constructor.
|
|
4815
|
+
/// RENAMED from `init` (a name says what happens, not the mechanism). This is the OWNERSHIP-TRANSFER
|
|
4816
|
+
/// method — the most consequential owner-facing operation on the canister — and it was named for
|
|
4817
|
+
/// first-time setup, colliding with the actor's own `service : (initArgs)`. A reader scanning for
|
|
4818
|
+
/// "how does ownership move" found nothing; a reader scanning for `init` found a constructor.
|
|
4657
4819
|
///
|
|
4658
4820
|
/// Its read counterpart is `listOwnershipTransfers` (was `getOwnershipHistory`), which now shares
|
|
4659
4821
|
/// the stem — the pair was previously unfindable from either half.
|
|
4660
|
-
/// ⟨0.16.0,
|
|
4822
|
+
/// ⟨0.16.0, refusals are values, never traps⟩ TWO OF THESE REFUSALS ARE THE FIRST-CLAIM PATH, and
|
|
4823
|
+
/// they are not authorization.
|
|
4661
4824
|
///
|
|
4662
4825
|
/// On an unowned engram there is no owner to refuse anyone, so "caller must set themselves as
|
|
4663
4826
|
/// owner" is a rule about the ARGUMENT — pass your own principal and it succeeds. `#Invalid` says
|
|
4664
4827
|
/// retrying with a different argument can work; `#Refused` would tell a first claimant their
|
|
4665
4828
|
/// standing was the problem, on the one call where nobody has standing yet.
|
|
4666
4829
|
///
|
|
4667
|
-
/// ⟨2026-09-29, owner
|
|
4830
|
+
/// ⟨2026-09-29, the owner's control-handover ruling⟩ A CHANGE OF OWNER HANDS OVER CONTROL OF THE
|
|
4668
4831
|
/// CODE. The new owner becomes a controller of this canister and the former owner stops being one;
|
|
4669
4832
|
/// the answer says who moved it (`ControlHandover`). Managed: the registry moves it while it
|
|
4670
4833
|
/// accepts the transfer. Sovereign: the registry answers `#EngramMustMove` and this engram sets
|
|
@@ -4674,7 +4837,7 @@ type Engram =
|
|
|
4674
4837
|
/// engram (no registry) cannot know who controls it and changes the owner only, answering
|
|
4675
4838
|
/// `#NotHeldHere`. The rules are `src/shared/ControlHandover.mo`'s.
|
|
4676
4839
|
///
|
|
4677
|
-
/// ⟨2026-09-29, review
|
|
4840
|
+
/// ⟨2026-09-29, a review finding: a half-finished change of owner⟩ The registry now MARKS a change of
|
|
4678
4841
|
/// owner as unfinished from the moment it moves its record until it sees control move. A sovereign
|
|
4679
4842
|
/// engram therefore reports the move (`sysConfirmOwnershipTransfer`) after setting its own
|
|
4680
4843
|
/// controllers; until the registry hears it, the registry refuses the new owner's
|
|
@@ -4682,11 +4845,32 @@ type Engram =
|
|
|
4682
4845
|
/// While a transfer is marked unfinished, a transfer to anyone but its would-be owner is refused by
|
|
4683
4846
|
/// the registry, by name; calling this again with that owner finishes it.
|
|
4684
4847
|
///
|
|
4685
|
-
/// ⟨2026-09-29, review finding
|
|
4848
|
+
/// ⟨2026-09-29, a review finding⟩ THE OWNER NAMING THEMSELVES IS A REPORT, NOT A HAND-ON. It is
|
|
4686
4849
|
/// the way out when the registry did not hear that a sovereign engram moved control: it moves
|
|
4687
4850
|
/// control to the same owner again and reports it, and it writes NO entry to
|
|
4688
4851
|
/// `listOwnershipTransfers` (until this day it wrote one from the owner to themselves, a hand-on
|
|
4689
4852
|
/// that did not happen). The record entry says it was a report. `ControlHandover.isReport`.
|
|
4853
|
+
///
|
|
4854
|
+
/// ⟨2026-11-15, from an adversarial review, ruled the same day: THE NEW OWNER MUST ACCEPT⟩ NAMING
|
|
4855
|
+
/// SOMEONE ELSE NOW OPENS AN OFFER AND CHANGES NOTHING ELSE. Until this day this one call, made by
|
|
4856
|
+
/// the current owner alone, moved the engram, the registry's record and control of the code to a
|
|
4857
|
+
/// principal who was never asked (`OwnershipOffer.mo` has the measurement). Now it records the
|
|
4858
|
+
/// offer here (`ownershipOffer`), files it at the registry that spawned this engram
|
|
4859
|
+
/// (`sysOfferOwnership`, which moves nothing either) and answers `#Offered` with the expiry
|
|
4860
|
+
/// (`OwnershipOffer.TTL_NS`, 7 days). The owner is still the owner, still controls the code, and
|
|
4861
|
+
/// every agent, guardian and limit is as it was. The hand-over happens when the named principal
|
|
4862
|
+
/// calls `acceptOwnership`, as themselves. A new offer replaces the open one; `cancelOwnershipOffer`
|
|
4863
|
+
/// withdraws it. Refused by the registry's own words when it refuses to file it (nothing is
|
|
4864
|
+
/// recorded here then), and `#Unavailable` when it cannot be reached.
|
|
4865
|
+
///
|
|
4866
|
+
/// TWO CALLS STILL MOVE AT ONCE, because in both the caller names THEMSELVES, so the consent is
|
|
4867
|
+
/// the call: the first claim of an unowned engram, and the owner's report (above). HOW THE REPORT
|
|
4868
|
+
/// RELATES TO THE OFFER: a report never opens one and never needs one. It is the repair for a
|
|
4869
|
+
/// hand-over that already happened under an acceptance and that the registry did not hear the end
|
|
4870
|
+
/// of; the registry treats it as a retry of a record it has already moved. An engram the registry
|
|
4871
|
+
/// reinstalled after the network erased it comes back owned by the principal the registry records
|
|
4872
|
+
/// and with no offer (the offer was in the erased state); its owner offers again, and the copy the
|
|
4873
|
+
/// registry kept of the old offer ends at its own expiry and cannot move anything by itself.
|
|
4690
4874
|
transferOwnership: (newOwner: principal) -> (Result_3);
|
|
4691
4875
|
/// OWNER-ONLY release of the payment freeze — and the asymmetry with `freezePayments` is the
|
|
4692
4876
|
/// governance design, not an oversight.
|
|
@@ -4704,12 +4888,13 @@ type Engram =
|
|
|
4704
4888
|
/// only. Refused, by name, below the room the hourly check-in needs; then nothing is armed.
|
|
4705
4889
|
///
|
|
4706
4890
|
/// CALLER: the engram's owner, from the owner's app (its status line and its compute page), and
|
|
4707
|
-
/// nobody else (
|
|
4708
|
-
///
|
|
4709
|
-
///
|
|
4710
|
-
///
|
|
4711
|
-
///
|
|
4712
|
-
///
|
|
4891
|
+
/// nobody else (the surface-budget rule: a `sys` method names its caller). ⟨2026-10-28, the owner's
|
|
4892
|
+
/// automatic-pause ruling: "it wakes on the next payment, agent request or your Wake"⟩ The automatic
|
|
4893
|
+
/// doors (the biller's receipt, Convert, an agent's MCP request) wake it when compute lands with
|
|
4894
|
+
/// room; this is the owner's door, for compute that arrived with no receipt (a bare top-up). It
|
|
4895
|
+
/// always reads the engram's own balance (no rate limit, no free filter), so a refusal states what
|
|
4896
|
+
/// the engram measured. Both figures in a refusal are its own READING above its line, which runs ~82B
|
|
4897
|
+
/// below the true figure, so the engram never calls it the gap.
|
|
4713
4898
|
wakeTimers: () -> (Result_1);
|
|
4714
4899
|
/// Consensus transform for the World ID /verify outcall. Replicas each call independently, so the raw
|
|
4715
4900
|
/// response (timestamps, `uses`, request-id headers) is non-deterministic. Collapse it to a single
|
|
@@ -4746,6 +4931,17 @@ type Engram =
|
|
|
4746
4931
|
/// `#Invalid` rather than a refusal it would waste time investigating.
|
|
4747
4932
|
writeMemory: (path: text, content: blob) -> (Result);
|
|
4748
4933
|
};
|
|
4934
|
+
type Ended =
|
|
4935
|
+
record {
|
|
4936
|
+
agentRecordsRemoved: nat;
|
|
4937
|
+
agentsEnded: nat;
|
|
4938
|
+
approvalsEnded: nat;
|
|
4939
|
+
callerPoliciesRemoved: nat;
|
|
4940
|
+
guardiansRemoved: nat;
|
|
4941
|
+
invitesVoided: nat;
|
|
4942
|
+
sellersRemoved: nat;
|
|
4943
|
+
typedDataDestinationsRemoved: nat;
|
|
4944
|
+
};
|
|
4749
4945
|
type End =
|
|
4750
4946
|
variant {
|
|
4751
4947
|
all;
|
|
@@ -4843,12 +5039,6 @@ type Conversion =
|
|
|
4843
5039
|
finishedBeforeRemovalSeen: bool;
|
|
4844
5040
|
token: text;
|
|
4845
5041
|
};
|
|
4846
|
-
type ControlHandover =
|
|
4847
|
-
variant {
|
|
4848
|
-
MovedByEngram;
|
|
4849
|
-
MovedByRegistry;
|
|
4850
|
-
NotHeldHere;
|
|
4851
|
-
};
|
|
4852
5042
|
type CondenseResult =
|
|
4853
5043
|
record {
|
|
4854
5044
|
fromSeq: nat;
|
|
@@ -5231,6 +5421,15 @@ type ActionAuth =
|
|
|
5231
5421
|
pubkey: blob;
|
|
5232
5422
|
signature: blob;
|
|
5233
5423
|
};
|
|
5424
|
+
type Accepted =
|
|
5425
|
+
record {
|
|
5426
|
+
closed: Ended;
|
|
5427
|
+
handed: variant {
|
|
5428
|
+
MovedByEngram;
|
|
5429
|
+
MovedByRegistry;
|
|
5430
|
+
NotHeldHere;
|
|
5431
|
+
};
|
|
5432
|
+
};
|
|
5234
5433
|
type About =
|
|
5235
5434
|
record {
|
|
5236
5435
|
activeAgentCount: opt nat;
|