@engramx/idl 0.16.0-rc.8 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/engram.did +2038 -656
- package/dist/engram.idl.d.ts +1941 -658
- package/dist/engram.idl.js +691 -309
- package/dist/market.did +199 -152
- package/dist/market.idl.d.ts +201 -159
- package/dist/market.idl.js +74 -58
- package/dist/registry.did +907 -225
- package/dist/registry.idl.d.ts +875 -220
- package/dist/registry.idl.js +209 -52
- package/package.json +2 -2
package/dist/registry.idl.d.ts
CHANGED
|
@@ -2,6 +2,11 @@ import type { Principal } from '@icp-sdk/core/principal';
|
|
|
2
2
|
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
3
3
|
import type { IDL } from '@icp-sdk/core/candid';
|
|
4
4
|
|
|
5
|
+
export interface AcceptedAtRegistry {
|
|
6
|
+
expiresAtNs: bigint;
|
|
7
|
+
from: Principal;
|
|
8
|
+
custody: { Sovereign: null } | { Managed: null };
|
|
9
|
+
}
|
|
5
10
|
export interface ActivationFunnel {
|
|
6
11
|
spawnsToday: bigint;
|
|
7
12
|
reserved: bigint;
|
|
@@ -22,11 +27,14 @@ export interface AnchorConflict {
|
|
|
22
27
|
}
|
|
23
28
|
export interface AnchorStats {
|
|
24
29
|
lastAnchorAtNs: [] | [bigint];
|
|
30
|
+
lastEngramAnchorAtNs: [] | [bigint];
|
|
25
31
|
engramsAnchored: bigint;
|
|
26
32
|
totalAnchors: bigint;
|
|
33
|
+
engramChainsAnchored: [] | [bigint];
|
|
27
34
|
engramsWithConflicts: bigint;
|
|
28
35
|
}
|
|
29
36
|
export interface AnchorView {
|
|
37
|
+
era: [] | [bigint];
|
|
30
38
|
total: bigint;
|
|
31
39
|
disputed: boolean;
|
|
32
40
|
atNs: bigint;
|
|
@@ -52,6 +60,7 @@ export interface CertifiedAnchor {
|
|
|
52
60
|
witness: Uint8Array | number[];
|
|
53
61
|
}
|
|
54
62
|
export interface CertifiedAnchorLeaf {
|
|
63
|
+
era: [] | [bigint];
|
|
55
64
|
total: bigint;
|
|
56
65
|
disputed: boolean;
|
|
57
66
|
atNs: bigint;
|
|
@@ -60,6 +69,7 @@ export interface CertifiedAnchorLeaf {
|
|
|
60
69
|
conflicts: bigint;
|
|
61
70
|
version: bigint;
|
|
62
71
|
refusedConflicts: bigint;
|
|
72
|
+
recoveredAtNs: [] | [bigint];
|
|
63
73
|
engram: Principal;
|
|
64
74
|
}
|
|
65
75
|
export interface CertifiedAuditHead {
|
|
@@ -69,6 +79,10 @@ export interface CertifiedAuditHead {
|
|
|
69
79
|
size: bigint;
|
|
70
80
|
witness: [] | [Uint8Array | number[]];
|
|
71
81
|
}
|
|
82
|
+
export interface CertifiedBirth {
|
|
83
|
+
certificate: [] | [Uint8Array | number[]];
|
|
84
|
+
witness: Uint8Array | number[];
|
|
85
|
+
}
|
|
72
86
|
export interface CertifiedStanding {
|
|
73
87
|
certificate: [] | [Uint8Array | number[]];
|
|
74
88
|
leaf: StandingLeaf;
|
|
@@ -80,6 +94,16 @@ export interface ChangelogEntry {
|
|
|
80
94
|
releaseNotes: string;
|
|
81
95
|
version: string;
|
|
82
96
|
}
|
|
97
|
+
export interface ChangesCaused {
|
|
98
|
+
sinceBirth: boolean;
|
|
99
|
+
count: bigint;
|
|
100
|
+
inFlight: bigint;
|
|
101
|
+
}
|
|
102
|
+
export interface ChildSignInOffer {
|
|
103
|
+
parentActive: boolean;
|
|
104
|
+
parentIsFirstEngram: boolean;
|
|
105
|
+
parentOwner: [] | [Principal];
|
|
106
|
+
}
|
|
83
107
|
export type ControlStep = { EngramMustMove: null } | { MovedByRegistry: null };
|
|
84
108
|
export type CustodyMode = { Sovereign: null } | { Managed: null };
|
|
85
109
|
export interface Dispute {
|
|
@@ -116,8 +140,24 @@ export interface EngagementRow {
|
|
|
116
140
|
startedDay: bigint;
|
|
117
141
|
engram: Principal;
|
|
118
142
|
}
|
|
143
|
+
export interface EngramComputeView {
|
|
144
|
+
restartOpenUntilNs: [] | [bigint];
|
|
145
|
+
recoverOpen: [] | [boolean];
|
|
146
|
+
idlePerDay: bigint;
|
|
147
|
+
erased: [] | [boolean];
|
|
148
|
+
line: bigint;
|
|
149
|
+
quiet: boolean;
|
|
150
|
+
eraseAboutNs: [] | [bigint];
|
|
151
|
+
cycles: bigint;
|
|
152
|
+
runState: { stopped: null } | { stopping: null } | { running: null };
|
|
153
|
+
thresholdSecs: bigint;
|
|
154
|
+
recoveredAtNs: [] | [bigint];
|
|
155
|
+
updateWaiting: boolean;
|
|
156
|
+
frozen: boolean;
|
|
157
|
+
}
|
|
119
158
|
export interface EngramRecordView {
|
|
120
159
|
status: EngramStatus;
|
|
160
|
+
changesCaused: [] | [ChangesCaused];
|
|
121
161
|
owner: Principal;
|
|
122
162
|
createdAtNs: bigint;
|
|
123
163
|
canisterId: Principal;
|
|
@@ -254,6 +294,21 @@ export interface PrivateMetrics {
|
|
|
254
294
|
totalEngrams: bigint;
|
|
255
295
|
activeEngrams: bigint;
|
|
256
296
|
}
|
|
297
|
+
export interface RecordPage {
|
|
298
|
+
ringFloor: bigint;
|
|
299
|
+
total: bigint;
|
|
300
|
+
sealed: Array<SealedEntry>;
|
|
301
|
+
items: Array<AuditEntry>;
|
|
302
|
+
hashFirstFrom: bigint;
|
|
303
|
+
}
|
|
304
|
+
export interface RecoverReply {
|
|
305
|
+
billingLinked: boolean;
|
|
306
|
+
balance: bigint;
|
|
307
|
+
finished: boolean;
|
|
308
|
+
number: [] | [bigint];
|
|
309
|
+
restartLoanOwed: bigint;
|
|
310
|
+
template: string;
|
|
311
|
+
}
|
|
257
312
|
export interface ReferralCounts {
|
|
258
313
|
firstOrReopened: PairedSoon;
|
|
259
314
|
openedThroughParentLive: bigint;
|
|
@@ -261,6 +316,23 @@ export interface ReferralCounts {
|
|
|
261
316
|
throughParent: PairedSoon;
|
|
262
317
|
agentsByTreesSpanned: TreesSpanned;
|
|
263
318
|
}
|
|
319
|
+
export interface RegistryClockHealth {
|
|
320
|
+
nextWakeAtNs: [] | [bigint];
|
|
321
|
+
lastAttemptAtNs: [] | [bigint];
|
|
322
|
+
attemptTotal: [] | [bigint];
|
|
323
|
+
lastErrorAtNs: [] | [bigint];
|
|
324
|
+
okTotal: [] | [bigint];
|
|
325
|
+
overdue: [] | [bigint];
|
|
326
|
+
lastError: [] | [string];
|
|
327
|
+
lastOkAtNs: [] | [bigint];
|
|
328
|
+
}
|
|
329
|
+
export interface RegistryHealth {
|
|
330
|
+
anchors: [] | [AnchorStats];
|
|
331
|
+
adminRoles: [] | [AdminRoles];
|
|
332
|
+
atNs: [] | [bigint];
|
|
333
|
+
clock: [] | [RegistryClockHealth];
|
|
334
|
+
cycleReserve: [] | [{ cycleBalance: bigint; minOperatingReserveCycles: bigint }];
|
|
335
|
+
}
|
|
264
336
|
export type ReleaseClass = { Security: null } | { Feature: null };
|
|
265
337
|
export interface ReservationView {
|
|
266
338
|
reservedAtNs: bigint;
|
|
@@ -270,28 +342,65 @@ export interface ReserveGateConfig {
|
|
|
270
342
|
inviteIssuer: Principal;
|
|
271
343
|
trustedSigners: Array<Principal>;
|
|
272
344
|
}
|
|
345
|
+
export interface RestartReply {
|
|
346
|
+
securityInstalled: boolean;
|
|
347
|
+
lentCycles: bigint;
|
|
348
|
+
updateWaiting: boolean;
|
|
349
|
+
installError: [] | [string];
|
|
350
|
+
engramTold: boolean;
|
|
351
|
+
}
|
|
352
|
+
export interface RestartStatus {
|
|
353
|
+
nextRestartAtNs: [] | [bigint];
|
|
354
|
+
loanOwed: bigint;
|
|
355
|
+
openUntilNs: [] | [bigint];
|
|
356
|
+
}
|
|
357
|
+
export interface RestartTotals {
|
|
358
|
+
repaid: bigint;
|
|
359
|
+
advanceOutstanding: bigint;
|
|
360
|
+
outstanding: bigint;
|
|
361
|
+
lent: bigint;
|
|
362
|
+
advanceReturned: bigint;
|
|
363
|
+
writtenOff: bigint;
|
|
364
|
+
advanceWrittenOff: bigint;
|
|
365
|
+
advancePaid: bigint;
|
|
366
|
+
}
|
|
273
367
|
export type Result = { Ok: null } | { Err: Error };
|
|
274
|
-
export type Result_1 = { Ok:
|
|
275
|
-
export type Result_10 = { Ok:
|
|
276
|
-
export type Result_11 = { Ok:
|
|
277
|
-
export type Result_12 = { Ok:
|
|
278
|
-
export type Result_13 = { Ok:
|
|
279
|
-
export type Result_14 = { Ok:
|
|
280
|
-
export type Result_15 = { Ok:
|
|
281
|
-
export type Result_16 = { Ok:
|
|
282
|
-
export type Result_17 = { Ok:
|
|
283
|
-
export type Result_18 = { Ok:
|
|
284
|
-
export type Result_19 = { Ok:
|
|
285
|
-
export type Result_2 = { Ok:
|
|
286
|
-
export type Result_20 = { Ok:
|
|
287
|
-
export type Result_21 = { Ok:
|
|
288
|
-
export type
|
|
289
|
-
export type
|
|
290
|
-
export type
|
|
291
|
-
export type
|
|
292
|
-
export type
|
|
293
|
-
export type
|
|
294
|
-
export type
|
|
368
|
+
export type Result_1 = { Ok: { accepted: bigint } } | { Err: Error };
|
|
369
|
+
export type Result_10 = { Ok: EngramComputeView } | { Err: Error };
|
|
370
|
+
export type Result_11 = { Ok: CustodyMode } | { Err: Error };
|
|
371
|
+
export type Result_12 = { Ok: Array<string> } | { Err: Error };
|
|
372
|
+
export type Result_13 = { Ok: Page } | { Err: Error };
|
|
373
|
+
export type Result_14 = { Ok: Page_1 } | { Err: Error };
|
|
374
|
+
export type Result_15 = { Ok: Page_2 } | { Err: Error };
|
|
375
|
+
export type Result_16 = { Ok: Page_3 } | { Err: Error };
|
|
376
|
+
export type Result_17 = { Ok: Array<OpenedEngram> } | { Err: Error };
|
|
377
|
+
export type Result_18 = { Ok: Page_5 } | { Err: Error };
|
|
378
|
+
export type Result_19 = { Ok: RecordPage } | { Err: Error };
|
|
379
|
+
export type Result_2 = { Ok: Principal } | { Err: Error };
|
|
380
|
+
export type Result_20 = { Ok: Page_6 } | { Err: Error };
|
|
381
|
+
export type Result_21 = { Ok: [] | [string] } | { Err: Error };
|
|
382
|
+
export type Result_22 = { Ok: RegistryHealth } | { Err: Error };
|
|
383
|
+
export type Result_23 = { Ok: ReferralCounts } | { Err: Error };
|
|
384
|
+
export type Result_24 = { Ok: OpenedThrough } | { Err: Error };
|
|
385
|
+
export type Result_25 = { Ok: OpeningCounts } | { Err: Error };
|
|
386
|
+
export type Result_26 = { Ok: RestartStatus } | { Err: Error };
|
|
387
|
+
export type Result_27 = { Ok: PrivateMetrics } | { Err: Error };
|
|
388
|
+
export type Result_28 = { Ok: Uint8Array | number[] } | { Err: Error };
|
|
389
|
+
export type Result_29 = { Ok: ChildSignInOffer } | { Err: Error };
|
|
390
|
+
export type Result_3 = { Ok: ControlStep } | { Err: Error };
|
|
391
|
+
export type Result_30 = { Ok: CertifiedStanding } | { Err: Error };
|
|
392
|
+
export type Result_31 = { Ok: FleetCycleHealth } | { Err: Error };
|
|
393
|
+
export type Result_32 = { Ok: AcceptedAtRegistry } | { Err: Error };
|
|
394
|
+
export type Result_4 = { Ok: MeterReading } | { Err: Error };
|
|
395
|
+
export type Result_5 = { Ok: { repaid: bigint; stillOwed: bigint } } | { Err: Error };
|
|
396
|
+
export type Result_6 =
|
|
397
|
+
| {
|
|
398
|
+
Ok: { updateWaiting: boolean; finishByNs: bigint };
|
|
399
|
+
}
|
|
400
|
+
| { Err: Error };
|
|
401
|
+
export type Result_7 = { Ok: bigint } | { Err: Error };
|
|
402
|
+
export type Result_8 = { Ok: RestartReply } | { Err: Error };
|
|
403
|
+
export type Result_9 = { Ok: RecoverReply } | { Err: Error };
|
|
295
404
|
export type Role =
|
|
296
405
|
| { Anonymous: null }
|
|
297
406
|
| { Viewer: null }
|
|
@@ -313,6 +422,11 @@ export interface RowEnding {
|
|
|
313
422
|
day: bigint;
|
|
314
423
|
reason: EndReason;
|
|
315
424
|
}
|
|
425
|
+
export interface SealedEntry {
|
|
426
|
+
id: bigint;
|
|
427
|
+
entryHash: Uint8Array | number[];
|
|
428
|
+
digest: Uint8Array | number[];
|
|
429
|
+
}
|
|
316
430
|
export interface StandingLeaf {
|
|
317
431
|
disputes: bigint;
|
|
318
432
|
live: bigint;
|
|
@@ -344,8 +458,35 @@ export interface _SERVICE {
|
|
|
344
458
|
* / CANISTER ID, so an engram's ciphertext and wallet cannot follow it anywhere (engramx
|
|
345
459
|
* / docs/ENCRYPTION-OPERATIONS.md, "Canister-id binding"). Abandoning is starting over, not
|
|
346
460
|
* / migrating, and the caller must be told so before they do it.
|
|
461
|
+
* /
|
|
462
|
+
* / ⟨2026-11-02⟩ REFUSED for an engram opened through another: it is never abandoned, so it stays on
|
|
463
|
+
* / this registry's security updates for life; it ends by its parent's cut-off or by running dry.
|
|
464
|
+
* /
|
|
465
|
+
* / ⟨2026-11-05, the owner's ruling of 2026-11-04 — "abandoned engrams are NOT recoverable"⟩
|
|
466
|
+
* / WITHDRAW YOUR DIGITAL DOLLARS FIRST. Nobody pays for an abandoned engram: when its compute runs out it stops,
|
|
467
|
+
* / and the network erases it about 30 days later. An abandoned engram is never recovered once it is
|
|
468
|
+
* / erased (`recoverMyEngram` refuses it, and the biller refuses its top-ups), so whatever its wallet
|
|
469
|
+
* / still holds then stays at its address with no program that can move it. Withdraw it while the
|
|
470
|
+
* / engram runs.
|
|
347
471
|
*/
|
|
348
472
|
abandonMyEngram: ActorMethod<[], Result>;
|
|
473
|
+
/**
|
|
474
|
+
* / ⟨2026-11-15, the same ruling⟩ THE NAMED PRINCIPAL ACCEPTS AN ENGRAM OFFERED TO THEM, as
|
|
475
|
+
* / themselves. This is the registry's only evidence that they agreed, and the only writer of
|
|
476
|
+
* / `acceptedAtNs`.
|
|
477
|
+
* /
|
|
478
|
+
* / IT STILL MOVES NOTHING. It marks the offer accepted; the record and control of the code move
|
|
479
|
+
* / when the caller then calls `acceptOwnership` on the engram, which reports here
|
|
480
|
+
* / (`sysNotifyOwnershipTransfer`). The answer says who offered it, when the offer ends, and
|
|
481
|
+
* / whether the engram is `#Sovereign`: a sovereign engram's code is written by its owner, not
|
|
482
|
+
* / installed by this registry, so the caller should check what it runs before the second call.
|
|
483
|
+
* /
|
|
484
|
+
* / Refused, with nothing changed: no open offer of that engram names the caller (one text for
|
|
485
|
+
* / "none", "someone else's" and "expired"); the caller already has an active engram (one engram
|
|
486
|
+
* / per owner; the offer stays open, and nothing of theirs is touched); the caller is opening an
|
|
487
|
+
* / engram right now. `declineEngramOffer` takes an acceptance back.
|
|
488
|
+
*/
|
|
489
|
+
acceptEngramOffer: ActorMethod<[Principal], Result_32>;
|
|
349
490
|
addAuditViewer: ActorMethod<[Principal], Result>;
|
|
350
491
|
/**
|
|
351
492
|
* / Add a changelog entry (admin only)
|
|
@@ -386,8 +527,17 @@ export interface _SERVICE {
|
|
|
386
527
|
* / ⚠ IT IS REVERSIBLE, which is the fact most worth publishing: the engram's own
|
|
387
528
|
* / `returnToManaged` adds the registry back ALONGSIDE the owner. Sovereignty is a door, not a
|
|
388
529
|
* / cliff.
|
|
530
|
+
* /
|
|
531
|
+
* / ⟨2026-11-02, the owner's sole-controller ruling⟩ REFUSED for an engram opened
|
|
532
|
+
* / through another: it stays managed by this registry for life, and its key is never a controller.
|
|
389
533
|
*/
|
|
390
534
|
claimSovereignty: ActorMethod<[], Result>;
|
|
535
|
+
/**
|
|
536
|
+
* / ⟨2026-11-15, the same ruling⟩ The named principal declines an offer, or takes back an
|
|
537
|
+
* / acceptance made before `acceptOwnership` was called on the engram. The row is removed, so a
|
|
538
|
+
* / report of that change of owner is refused until the engram's owner offers again.
|
|
539
|
+
*/
|
|
540
|
+
declineEngramOffer: ActorMethod<[Principal], Result>;
|
|
391
541
|
/**
|
|
392
542
|
* / Assemble the pushed chunks into the engram template and install it as the current one.
|
|
393
543
|
* /
|
|
@@ -402,7 +552,7 @@ export interface _SERVICE {
|
|
|
402
552
|
* / protocol and are not, and the difference matters most on this one: it decides what code every
|
|
403
553
|
* / engram in the fleet will run.
|
|
404
554
|
*/
|
|
405
|
-
engramWasmFinalize: ActorMethod<[string],
|
|
555
|
+
engramWasmFinalize: ActorMethod<[string], Result_7>;
|
|
406
556
|
/**
|
|
407
557
|
* / Chunked WASM upload — for WASMs that exceed single-call ingress limits.
|
|
408
558
|
* / Flow: engramWasmInit → engramWasmPushChunk (×N) → engramWasmFinalize(hash)
|
|
@@ -421,7 +571,7 @@ export interface _SERVICE {
|
|
|
421
571
|
* / to clear and begin afresh. The messages say so because a caller who retries a chunk against a
|
|
422
572
|
* / full buffer will retry forever.
|
|
423
573
|
*/
|
|
424
|
-
engramWasmPushChunk: ActorMethod<[Uint8Array | number[]],
|
|
574
|
+
engramWasmPushChunk: ActorMethod<[Uint8Array | number[]], Result_7>;
|
|
425
575
|
/**
|
|
426
576
|
* / Fleet cycle-health scan. Admin or metrics-viewer, PAGINATED with a hard max of 50 per page —
|
|
427
577
|
* / each managed engram costs one `canister_status` await, so pages stay small to bound the
|
|
@@ -439,34 +589,35 @@ export interface _SERVICE {
|
|
|
439
589
|
* / its LIVE freezing reservation, which is memory-scaled, so a large engram can be low at a
|
|
440
590
|
* / balance a small one would be comfortable at.
|
|
441
591
|
* /
|
|
442
|
-
* / ⟨
|
|
592
|
+
* / ⟨update-for-read⟩ UPDATE, NOT QUERY, for BOTH of the reasons this law recognises — which is why it is worth
|
|
443
593
|
* / stating rather than leaving to be inferred from a body that scans a fleet. It awaits
|
|
444
594
|
* / `ic.canister_status` once per engram in the page, so no query could produce the figures at all;
|
|
445
595
|
* / and it calls `denied()` on refusal, a state write a query cannot perform, so making it a query
|
|
446
|
-
* / would also retire the record of who was turned away (
|
|
596
|
+
* / would also retire the record of who was turned away (the refusal-over-fabrication class, the same one
|
|
447
597
|
* / `listEngrams` settled at its own declaration).
|
|
448
598
|
* /
|
|
449
|
-
* / ⟨Marker added 2026-08-23. The
|
|
450
|
-
* /
|
|
451
|
-
* /
|
|
452
|
-
* /
|
|
599
|
+
* / ⟨Marker added 2026-08-23. The 0.16.0 interface plan's row for this method already cited the
|
|
600
|
+
* / update-for-read rule and
|
|
601
|
+
* / the site did not carry it — invisible to the deploying side's update-for-read check, whose
|
|
602
|
+
* / population is read-VERB names and this one is a noun. That check now reads the plan's
|
|
603
|
+
* / update-for-read citations as a second population for exactly this blind spot.⟩
|
|
453
604
|
*/
|
|
454
|
-
fleetCycleHealth: ActorMethod<[bigint, bigint, bigint],
|
|
605
|
+
fleetCycleHealth: ActorMethod<[bigint, bigint, bigint], Result_31>;
|
|
455
606
|
/**
|
|
456
|
-
* / PUBLIC: ⟨0.16.0,
|
|
457
|
-
* / replacing `status()` and ABSORBING `publicMetrics()`.
|
|
607
|
+
* / PUBLIC: ⟨0.16.0, same concept, same name across canisters⟩ `fleetSummary` — the ONE public
|
|
608
|
+
* / projection of this registry, replacing `status()` and ABSORBING `publicMetrics()`.
|
|
458
609
|
* /
|
|
459
|
-
* / Two public aggregates of one canister was the same
|
|
610
|
+
* / Two public aggregates of one canister was the same naming defect the engram had with
|
|
460
611
|
* / status()/metrics(): both answered "what is this registry like", they disagreed about which
|
|
461
612
|
* / counters they carried (status had cycles and the wasm hash, publicMetrics had unique owners,
|
|
462
613
|
* / sovereign engrams and registrySince), and a caller had to know which one held the field they
|
|
463
|
-
* / wanted. storage
|
|
614
|
+
* / wanted. An off-chain storage sweep cross-checked one against the other to infer a fact neither stated.
|
|
464
615
|
* /
|
|
465
616
|
* / Merged, not concatenated: `totalEngrams` and `activeEngrams` appeared in BOTH and are counted
|
|
466
617
|
* / once here, by the same pass.
|
|
467
618
|
* /
|
|
468
619
|
* / Everything in it identifies nobody — counts, a version, a hash, a cycle balance — which is why
|
|
469
|
-
* / it is ungated and marked for the
|
|
620
|
+
* / it is ungated and marked for the disclosure gate's grep.
|
|
470
621
|
*/
|
|
471
622
|
fleetSummary: ActorMethod<[], FleetSummary>;
|
|
472
623
|
/**
|
|
@@ -493,7 +644,8 @@ export interface _SERVICE {
|
|
|
493
644
|
* / PUBLIC: who holds authority here. A refusal a caller cannot attribute is a refusal they
|
|
494
645
|
* / cannot appeal, so the roster is readable by everyone the roster can refuse.
|
|
495
646
|
* /
|
|
496
|
-
* / ⟨0.16.0,
|
|
647
|
+
* / ⟨0.16.0, same concept, same name across canisters⟩
|
|
648
|
+
* / The shared `AdminRoles` shape, not a registry-specific record. It was
|
|
497
649
|
* / `{ admin; wasmAdmin }`, which could not express the ROOT identity at all — the principal that
|
|
498
650
|
* / bootstraps the first admin and can reclaim the role was simply absent from the published
|
|
499
651
|
* / answer, so "who can take this canister back" was a fact only the source told you. A list of
|
|
@@ -540,31 +692,42 @@ export interface _SERVICE {
|
|
|
540
692
|
* / was meant to replace, so there is no role gate. But a record spanning fewer than
|
|
541
693
|
* / `Engagements.STANDING_MIN_DISTINCT_ENGRAMS` distinct engrams is served ONLY to the agent itself:
|
|
542
694
|
* / at one or two engrams the summary IS their owners' experience, which is identification by
|
|
543
|
-
* / inference (
|
|
695
|
+
* / inference (L4-1 — our own reading of the law, not legal advice). That refusal is
|
|
544
696
|
* / LOUD, names this method, and covers a record of zero engagements with the same words, so the
|
|
545
697
|
* / refusal itself does not distinguish "never engaged" from "engaged in one to four engrams".
|
|
546
698
|
* / The agent itself reading an empty record gets `#NotFound` — it is asking about itself, so
|
|
547
699
|
* / there is nothing to hide from it.
|
|
548
700
|
* /
|
|
549
|
-
* / ⟨2026-09-28, review finding
|
|
701
|
+
* / ⟨2026-09-28, a review finding⟩ A THIN SELF-READ IS UNCERTIFIED: below the threshold the
|
|
550
702
|
* / record is not in the certified tree at all (its hash would leak it through every other
|
|
551
703
|
* / witness), so the agent is served its summary folded from the records, with `certificate =
|
|
552
704
|
* / null` and an empty `witness`. At and above the threshold every reader gets the stored bytes
|
|
553
705
|
* / with their proof.
|
|
554
706
|
* /
|
|
555
|
-
* / ⟨2026-10-01, the owner's ruling of that day
|
|
707
|
+
* / ⟨2026-10-01, the owner's ruling of that day⟩ The threshold counts TOPS, not engrams
|
|
556
708
|
* / (`Engagements.distinctTops`): engrams opened from one engram count as one, and an engram counts
|
|
557
709
|
* / as one with the engrams it replaced. The refusal's sentence says so.
|
|
558
710
|
* /
|
|
559
711
|
* / WHAT IT NEVER DOES: score, rank, recommend, or refuse anyone work. The decision to refuse an
|
|
560
712
|
* / agent belongs to the owner's own engram (L4-3).
|
|
561
713
|
* /
|
|
714
|
+
* / ⟨2026-11-15, from an adversarial review⟩ COUNTS, NOT INDEPENDENCE — READ THIS BEFORE TRUSTING A
|
|
715
|
+
* / RECORD. The certificate proves that this registry holds these counts for this agent. It does NOT
|
|
716
|
+
* / prove that the engrams behind them belong to different people. The registry links two engrams
|
|
717
|
+
* / only through a parent or a predecessor; engrams opened under separate principals are unlinked,
|
|
718
|
+
* / and one party can open several. So one party can give its own agent a certified record with no
|
|
719
|
+
* / one else involved (RUN 2026-11-15 on PocketIC: a stranger was refused at one engram, and served
|
|
720
|
+
* / a certified record of five live engagements and no bad endings once four more engrams, opened
|
|
721
|
+
* / under four other principals, had paired the same root). The five-engram threshold is a privacy
|
|
722
|
+
* / floor (L4-1), never a defence against a made-up record. A reader must not take these counts as
|
|
723
|
+
* / other owners' experience of the agent.
|
|
724
|
+
* /
|
|
562
725
|
* / ⟨2026-09-28, owner decision: one root key per agent, with an enrolled key per client⟩ `agent`
|
|
563
726
|
* / is the agent's ROOT principal — the identity an owner sees as `root` on each key in their own
|
|
564
727
|
* / `listAgents`. "The agent itself" is a caller holding that root key. A key for one engram has no
|
|
565
728
|
* / record of its own here; asking about one gets the refusal or, from the key itself, `#NotFound`.
|
|
566
729
|
*/
|
|
567
|
-
getAgentStanding: ActorMethod<[Principal],
|
|
730
|
+
getAgentStanding: ActorMethod<[Principal], Result_30>;
|
|
568
731
|
/**
|
|
569
732
|
* / Fleet-wide anchoring liveness. Exists because ABSENCE is otherwise uninformative: an engram
|
|
570
733
|
* / that never wrote, one still on a template without the push, and one whose push is broken all
|
|
@@ -575,11 +738,18 @@ export interface _SERVICE {
|
|
|
575
738
|
* / alive SOMEWHERE, which is what makes an individual engram's silence interpretable.
|
|
576
739
|
* /
|
|
577
740
|
* / PUBLIC: the same reader who needs the anchors needs to know whether to believe their absence.
|
|
741
|
+
* /
|
|
742
|
+
* / ⟨2026-10-11⟩ The ring also holds the TREASURY ANCHORER's chain (`getTreasuryAnchorId`), and
|
|
743
|
+
* / `engramsAnchored`, `totalAnchors` and `lastAnchorAtNs` count it as one more chain. The
|
|
744
|
+
* / engram-only pair leaves it out: `engramChainsAnchored` (always present on a registry that
|
|
745
|
+
* / serves it, 0 when no engram has anchored) and `lastEngramAnchorAtNs`. Read those to ask
|
|
746
|
+
* / whether ENGRAMS are anchoring — an active money chain must not stand in for them.
|
|
578
747
|
*/
|
|
579
748
|
getAnchorStats: ActorMethod<[], AnchorStats>;
|
|
580
749
|
/**
|
|
581
750
|
* / PUBLIC: the chain head exists to be compared, so an external monitor can detect tampering
|
|
582
|
-
* / without admin access (
|
|
751
|
+
* / without admin access (the log is a SHA-256 hash chain whose head is public). A head only whoever
|
|
752
|
+
* / runs this deployment can read witnesses nothing.
|
|
583
753
|
*/
|
|
584
754
|
getAuditHead: ActorMethod<[], AuditHead>;
|
|
585
755
|
/**
|
|
@@ -595,14 +765,14 @@ export interface _SERVICE {
|
|
|
595
765
|
*/
|
|
596
766
|
getCertifiedAnchor: ActorMethod<[Principal], [] | [CertifiedAnchor]>;
|
|
597
767
|
/**
|
|
598
|
-
* / ⟨0.16.0,
|
|
768
|
+
* / ⟨0.16.0, same concept, same name across canisters⟩ RENAMED BACK to `getCertifiedAuditHead`, the fleet-wide name.
|
|
599
769
|
* /
|
|
600
770
|
* / It was renamed AWAY from that on 2026-08-03, deliberately and for a good reason: the semantics
|
|
601
771
|
* / changed (certified_data became a merkle tree root covering the head AND the anchor set, so the
|
|
602
772
|
* / old certified_data == headHash byte-compare was gone), and a loud method-not-found was judged
|
|
603
773
|
* / better than a stale verifier quietly reporting verified=false forever.
|
|
604
774
|
* /
|
|
605
|
-
* / THAT ARGUMENT'S PREMISE IS NOW FALSE. It protected deployed verifiers;
|
|
775
|
+
* / THAT ARGUMENT'S PREMISE IS NOW FALSE. It protected deployed verifiers; every chain restarts fresh
|
|
606
776
|
* / at the 0.16.0 genesis and there are none. What remains is a fleet where three canisters answer
|
|
607
777
|
* / the same question under two names, which is the cost the rename was paying to avoid a hazard
|
|
608
778
|
* / that no longer exists. `witness` becomes `?Blob` to match the shared type — null where a
|
|
@@ -620,14 +790,63 @@ export interface _SERVICE {
|
|
|
620
790
|
*/
|
|
621
791
|
getCertifiedAuditHead: ActorMethod<[], CertifiedAuditHead>;
|
|
622
792
|
/**
|
|
623
|
-
* / The
|
|
793
|
+
* / The certified proof that a birth record's FINGERPRINT is in this registry's tree ⟨2026-10-26, the
|
|
794
|
+
* / owner's lineage ruling on certifying birth records⟩
|
|
795
|
+
* / — the half of an engram's birth chain the engram cannot give itself.
|
|
796
|
+
* /
|
|
797
|
+
* / PUBLIC: a proof a caller had to hold a role to fetch rests on the authority it was meant to
|
|
798
|
+
* / replace. It reveals only whether a fingerprint is present: the key is a salted hash (the record's
|
|
799
|
+
* / random secret is inside it) and the value a constant. Whoever holds the record — the engram's
|
|
800
|
+
* / owner, or whomever the owner showed it to — already knows the fingerprint; nobody else can ask
|
|
801
|
+
* / about a record they cannot guess.
|
|
802
|
+
* /
|
|
803
|
+
* / Verify as for `getCertifiedAnchor`, path ["births", <fingerprint>], leaf bytes = [0x01] (the
|
|
804
|
+
* / client's `verifyBirthChain` does it for a whole chain). `null` when absent, as `getCertifiedAnchor`
|
|
805
|
+
* / answers: there is no certified absence proof (a build choice the rulings left open). A
|
|
806
|
+
* / `fingerprint` that is not 32 bytes is never a fingerprint, and answers `null` before the lookup.
|
|
807
|
+
*/
|
|
808
|
+
getCertifiedBirth: ActorMethod<[Uint8Array | number[]], [] | [CertifiedBirth]>;
|
|
809
|
+
/**
|
|
810
|
+
* / ⟨2026-11-02, the owner's ruling on an opened engram's own sign-in; the child build's ruled answer
|
|
811
|
+
* / on the sign-in offer, with the fix its adversarial check found⟩
|
|
812
|
+
* / WHAT THE KIT OFFERS AS A NEW ENGRAM'S SIGN-IN, read before it opens one
|
|
813
|
+
* / through `parent`. The answer: the parent's owner — ONLY when the parent is a first engram (the
|
|
814
|
+
* / kit offers that principal as the default sign-in only then, after it prints it and the person
|
|
815
|
+
* / running the agent confirms it is theirs; for a parent opened through another the field is
|
|
816
|
+
* / absent, so the read never discloses a key file's principal); whether the parent is a first
|
|
817
|
+
* / engram; and whether it is registered, `#Active` and not abandoned (`isRegisteredActiveEngram`'s
|
|
818
|
+
* / rule).
|
|
819
|
+
* /
|
|
820
|
+
* / CALLER: a lasting key with a LIVE engagement with `parent` at this registry, in either store
|
|
821
|
+
* / (`Engagements.hasOpenEither` — the same fact `sysOpenChild`'s admission reads, so exactly the
|
|
822
|
+
* / keys that may be opened an engram through `parent` may read what it offers). It discloses the
|
|
823
|
+
* / parent's owner to the parent's own engaged agent, the party `getParentOf` answers once the child
|
|
824
|
+
* / exists. Anyone else is REFUSED loudly (refusal over fabrication), in the same words whether or not `parent` is
|
|
825
|
+
* / an engram, so a refusal tells a stranger nothing. A QUERY, so the refusal is not in the denial
|
|
826
|
+
* / log (`denied` says why a query cannot write). `#NotFound` only to an engaged caller, for a
|
|
827
|
+
* / parent this registry holds no owner for.
|
|
828
|
+
* / Called by: the owner kit's opening of an engram through a parent, signed by the agent's lasting
|
|
829
|
+
* / key, before it names the new engram's sign-in.
|
|
830
|
+
*/
|
|
831
|
+
getChildSignInOffer: ActorMethod<[Principal], Result_29>;
|
|
832
|
+
/**
|
|
833
|
+
* / The consent origin every newborn engram is told — `null` until the admin sets one, and newborns are
|
|
834
|
+
* / then told none (they keep the default origin).
|
|
835
|
+
* /
|
|
836
|
+
* / CALLER: the deployment's setup step, reading back what it set; and anyone comparing an engram's
|
|
837
|
+
* / `GET /oauth/authorize` target with what its registry hands out. PUBLIC: an origin is not a secret,
|
|
838
|
+
* / and every owner of this deployment is sent there.
|
|
839
|
+
*/
|
|
840
|
+
getConsentOrigin: ActorMethod<[], [] | [string]>;
|
|
841
|
+
/**
|
|
842
|
+
* / The ATTESTABLE custody-mode fact: "managed" | "sovereign" |
|
|
624
843
|
* / "unknown", derived from the registry's OWN transition records (claimSovereignty /
|
|
625
844
|
* / returnToManaged maintain sovereignEngramIds) — NOT from a canister_status probe, which needs
|
|
626
845
|
* / controllership and traps for exactly the sovereign engrams it should describe. Public, free,
|
|
627
846
|
* / forever (free-parity): custody mode is a trust fact every warranted proof will carry —
|
|
628
847
|
* / managed = engramx.ai can warrant its own controller conduct; sovereign = registry-side facts
|
|
629
848
|
* / only. (Money-origin, by contrast, is payer-blind and never a record fact.)
|
|
630
|
-
* / PUBLIC: ⟨0.16.0
|
|
849
|
+
* / PUBLIC: ⟨0.16.0⟩ Custody as a VARIANT, and the no-claim case says WHY rather than just
|
|
631
850
|
* / being a third string.
|
|
632
851
|
* /
|
|
633
852
|
* / ⟨CORRECTED 2026-08-24⟩ This block named an `#Unknown` ARM. There is none, and never was in
|
|
@@ -643,14 +862,14 @@ export interface _SERVICE {
|
|
|
643
862
|
* / Derived from records, never probed: a canister_status call would trap for exactly the
|
|
644
863
|
* / canisters we are not the controller of, i.e. the sovereign ones this read exists to identify.
|
|
645
864
|
*/
|
|
646
|
-
getCustodyMode: ActorMethod<[Principal],
|
|
865
|
+
getCustodyMode: ActorMethod<[Principal], Result_11>;
|
|
647
866
|
/**
|
|
648
|
-
* / Cycles-health probe — slim, cycles-only shape; the money fields moved to the
|
|
649
|
-
* / getCycleReserveStatus.
|
|
867
|
+
* / Cycles-health probe — slim, cycles-only shape; the money fields moved to the biller's
|
|
868
|
+
* / getCycleReserveStatus. scripts/audit-chain/health-alert.mjs reads it in its default cycles mode.
|
|
650
869
|
* /
|
|
651
870
|
* / PUBLIC: whether this registry can still afford to spawn is a fact every prospective owner
|
|
652
|
-
* / depends on and none of them can otherwise observe. Cycles only, by construction —
|
|
653
|
-
* / keeps the money on the
|
|
871
|
+
* / depends on and none of them can otherwise observe. Cycles only, by construction — money is the biller's, cycles are the registry's
|
|
872
|
+
* / keeps the money on the biller, so there is no balance here to withhold.
|
|
654
873
|
*/
|
|
655
874
|
getCycleReserveStatus: ActorMethod<
|
|
656
875
|
[],
|
|
@@ -661,11 +880,11 @@ export interface _SERVICE {
|
|
|
661
880
|
* / fact (its assignment is in the hash-chained audit log). null = spawned before numbering
|
|
662
881
|
* / existed, or by another registry.
|
|
663
882
|
* /
|
|
664
|
-
* / ⟨0.16.0,
|
|
883
|
+
* / ⟨0.16.0, the vocabulary ruling of 2026-08-17⟩ RENAMED from `sysEngramNumberOf`. The `sys` prefix names
|
|
665
884
|
* / the CALLER TIER a method was built for, and this one was never gated — it is a bare public
|
|
666
885
|
* / query, as the line above says. A prefix that reads as an authorization claim while carrying
|
|
667
886
|
* / none is worse than no prefix: it invites a reader to assume a gate that does not exist, and
|
|
668
|
-
* /
|
|
887
|
+
* / a disclosure sweep grepping `sys*` would have counted this as tiered surface it is not.
|
|
669
888
|
* /
|
|
670
889
|
* / PUBLIC: the spawn ordinal is a permanent, dual-recorded fact about an engram that its owner
|
|
671
890
|
* / publishes by existing — engram #7 is #7 to everyone. It identifies a canister, never a person.
|
|
@@ -675,10 +894,13 @@ export interface _SERVICE {
|
|
|
675
894
|
* / on two canisters is what a hand-written client cannot tell apart (a structural actor type
|
|
676
895
|
* / matches either target), so it gets the rule `getMarketCanister` already follows: distinct
|
|
677
896
|
* / names on distinct canisters. `…Of` says what the argument is for.
|
|
897
|
+
* /
|
|
898
|
+
* / ⟨2026-10-13⟩ The engram no longer serves `getEngramNumber` at all: its copy of the number went
|
|
899
|
+
* / with the genesis seed, so this is the one read of an engram's number.
|
|
678
900
|
*/
|
|
679
901
|
getEngramNumberOf: ActorMethod<[Principal], [] | [bigint]>;
|
|
680
902
|
/**
|
|
681
|
-
* / ⟨2026-10-01, the owner's ruling of that day
|
|
903
|
+
* / ⟨2026-10-01, the owner's ruling of that day⟩ What a lasting key opened through a parent:
|
|
682
904
|
* / the engram, the engram it was opened from, and the cut-off's time if there is one. GATED:
|
|
683
905
|
* / readable by the key itself (an agent asking about its own), the owner of the engram it was
|
|
684
906
|
* / opened from (whose console shows it), an admin or an audit viewer. Anyone else is REFUSED — the
|
|
@@ -686,12 +908,13 @@ export interface _SERVICE {
|
|
|
686
908
|
* / `#NotFound` only to a permitted reader, for a key that opened nothing: a true answer, like
|
|
687
909
|
* / `listMyAgentDisputes`'s empty list.
|
|
688
910
|
*/
|
|
689
|
-
getEngramOpenedThrough: ActorMethod<[Principal],
|
|
911
|
+
getEngramOpenedThrough: ActorMethod<[Principal], Result_24>;
|
|
690
912
|
/**
|
|
691
913
|
* / The i-th 1 MiB slice of the attested engram wasm (0-indexed). The caller reassembles all
|
|
692
914
|
* / chunks in order and MUST verify sha256(reassembled) == getEngramWasmHash before installing —
|
|
693
915
|
* / the hash is the attestation; the bytes are a convenience. Out-of-range index → empty blob.
|
|
694
|
-
* / PUBLIC: ⟨0.16.0,
|
|
916
|
+
* / PUBLIC: ⟨0.16.0, the honesty rule: no fabricated empties⟩ An out-of-range index is `#NotFound`,
|
|
917
|
+
* / not an empty blob.
|
|
695
918
|
* /
|
|
696
919
|
* / The empty blob was indistinguishable from a legitimately empty chunk AND from "no wasm is
|
|
697
920
|
* / staged at all" — and this is the surface a verifier walks to reassemble a template and check
|
|
@@ -699,17 +922,28 @@ export interface _SERVICE {
|
|
|
699
922
|
* / a truncated one, so it would hash a partial wasm and report a mismatch against the official
|
|
700
923
|
* / list, which reads as "this template is unofficial" rather than "I stopped reading too early".
|
|
701
924
|
*/
|
|
702
|
-
getEngramWasmChunk: ActorMethod<[bigint],
|
|
925
|
+
getEngramWasmChunk: ActorMethod<[bigint], Result_28>;
|
|
703
926
|
/**
|
|
704
927
|
* / The stored template's release class — FREE and UNGATED, because it is the checkable half of a
|
|
705
|
-
* / promise made to people who are not our customers.
|
|
706
|
-
* /
|
|
707
|
-
* /
|
|
928
|
+
* / promise made to people who are not our customers. ⟨2026-10-25⟩ The funding rule it checks:
|
|
929
|
+
* / #Security — the registry pays for the install on every running engram it can reach, any size;
|
|
930
|
+
* / #Feature — the registry pays for no install, and each engram runs it on its own compute. (Was:
|
|
931
|
+
* / "pair it with getRentStatus … #Feature funds metered ones" — rent no longer enters it.)
|
|
932
|
+
* / PUBLIC: ⟨0.16.0⟩ The release class as a VARIANT, not a stringly-typed enum.
|
|
708
933
|
* /
|
|
709
934
|
* / It returned "security" or "feature" as `Text`, so every consumer compared strings and no
|
|
710
935
|
* / compiler anywhere could catch a typo or a third class arriving. A variant makes the set closed
|
|
711
936
|
* / and the comparison checked — and this value gates whether an upgrade is funded, so a caller
|
|
712
937
|
* / that silently fails to match "security" funds nothing and reports no error.
|
|
938
|
+
* / ⟨CORRECTED 2026-10-26, later — the owner's restart choice of that day: "pay whenever the engram is
|
|
939
|
+
* / missing any security release, whatever the latest release is labelled"⟩ "#Feature — the
|
|
940
|
+
* / registry pays for no install" no longer holds for every engram: an engram still missing an
|
|
941
|
+
* / earlier security release is paid as a security update even while this reads #Feature, because
|
|
942
|
+
* / the current template carries that fix (UpgradeFunding.effectiveClass) — unless the current
|
|
943
|
+
* / template is itself behind a security release (an older build re-uploaded), which cannot deliver
|
|
944
|
+
* / the fix. An engram missing no security release is still never paid for a #Feature install.
|
|
945
|
+
* / So this value is the declared label, not the whole funding rule: the `upgrade.topUp` audit line
|
|
946
|
+
* / says `class=Security declared=Feature` when the two differ.
|
|
713
947
|
*/
|
|
714
948
|
getEngramWasmClass: ActorMethod<[], ReleaseClass>;
|
|
715
949
|
/**
|
|
@@ -729,16 +963,17 @@ export interface _SERVICE {
|
|
|
729
963
|
*/
|
|
730
964
|
getEngramWasmInfo: ActorMethod<[], EngramWasmInfo>;
|
|
731
965
|
/**
|
|
732
|
-
* / ⟨
|
|
966
|
+
* / ⟨update-for-read⟩ UPDATE, NOT QUERY, and NOT because of a system call — this body awaits nothing. The
|
|
733
967
|
* / update exists so the DENIAL IS RECORDED: `denied()` is a state write, and a query cannot
|
|
734
968
|
* / write. Exactly the argument `listEngrams` settled at its own declaration, and the same
|
|
735
969
|
* / conclusion: a query here would silently retire the record of who was refused.
|
|
736
970
|
* /
|
|
737
|
-
* / So
|
|
738
|
-
* /
|
|
971
|
+
* / So the update-for-read rule's own claim, that the one-Result-shape rule retired the denial-logging
|
|
972
|
+
* / motive for update-for-read, does not hold at this site. That rule retired the motive of
|
|
973
|
+
* / trapping-to-refuse; it did not give queries the ability to
|
|
739
974
|
* / write, which is the thing this actually depends on.
|
|
740
975
|
*/
|
|
741
|
-
getFleetMetrics: ActorMethod<[],
|
|
976
|
+
getFleetMetrics: ActorMethod<[], Result_27>;
|
|
742
977
|
/**
|
|
743
978
|
* / PUBLIC: a genesis note that only privileged callers could read would defeat its purpose —
|
|
744
979
|
* / the reader who most needs it is the stranger deciding whether to trust this chain.
|
|
@@ -753,11 +988,12 @@ export interface _SERVICE {
|
|
|
753
988
|
* / It does NOT date the engram's running code — a re-run fleet push marches `at` forward while
|
|
754
989
|
* / nothing changes. Use `changedAt` for that: it is stamped only when code actually changed, and
|
|
755
990
|
* / is null for an engram that has never been upgraded since this field shipped.
|
|
756
|
-
* / ⟨0.16.0,
|
|
757
|
-
* / fields encode is unchanged — `atNs` is when THIS registry last upgraded
|
|
758
|
-
* / `changedAtNs` is when its module hash last moved by any hand, so a
|
|
759
|
-
* / install shows up as a change with no matching upgrade. Renaming here is
|
|
760
|
-
* / built at the query boundary, and the stable state it reads keeps its own
|
|
991
|
+
* / ⟨0.16.0, nanosecond times named AtNs⟩ `atNs`/`changedAtNs`: ns timestamps carry the suffix. The
|
|
992
|
+
* / honesty split the two fields encode is unchanged — `atNs` is when THIS registry last upgraded
|
|
993
|
+
* / the canister, and `changedAtNs` is when its module hash last moved by any hand, so a
|
|
994
|
+
* / self-upgrade or a manual install shows up as a change with no matching upgrade. Renaming here is
|
|
995
|
+
* / free: the record is built at the query boundary, and the stable state it reads keeps its own
|
|
996
|
+
* / spelling.
|
|
761
997
|
* / ⟨CORRECTED 2026-10-02: "by any hand … shows up" is false, and so is "stamped only when code
|
|
762
998
|
* / actually changed" above, read without its limit.⟩ `changedAtNs` is written at exactly two
|
|
763
999
|
* / places, both right after THIS registry's own successful install on the engram
|
|
@@ -805,6 +1041,18 @@ export interface _SERVICE {
|
|
|
805
1041
|
* / provision rather than reserve again.
|
|
806
1042
|
*/
|
|
807
1043
|
getMyReservation: ActorMethod<[], [] | [ReservationView]>;
|
|
1044
|
+
/**
|
|
1045
|
+
* / CALLER: the app's restart sheet, for the owner (the surface budget: every method names its caller). What the caller's engram owes from a
|
|
1046
|
+
* / restart, when the next restart is allowed, and whether one is open. Refused loudly to anyone
|
|
1047
|
+
* / with no engram here — never "0 owed" to a caller it cannot answer for (refusal over fabrication).
|
|
1048
|
+
* / ⟨2026-10-26⟩ `openUntilNs` now reads the open restart's `finishByNs` (`restartsOpen`): when the
|
|
1049
|
+
* / call or the sweep will have started the engram. Shape unchanged.
|
|
1050
|
+
* / ⟨CORRECTED 2026-10-26, later — the owner's restart choice of that day: "apply the weekly limit only when
|
|
1051
|
+
* / we lend"⟩ "when the next restart is allowed" now reads "when the registry can next LEND to a
|
|
1052
|
+
* / restart": `nextRestartAtNs` is only the weekly limit on a loan. A restart on the owner's own
|
|
1053
|
+
* / compute is allowed now, whatever it says. Field name and shape unchanged.
|
|
1054
|
+
*/
|
|
1055
|
+
getMyRestartStatus: ActorMethod<[], Result_26>;
|
|
808
1056
|
/**
|
|
809
1057
|
* / ⟨2026-10-02⟩ How many engrams were ever opened, and how — lifetime sizes of state this registry
|
|
810
1058
|
* / never deletes, plus the two counters of refused openings (`Funnel.OpeningCounts` names each).
|
|
@@ -815,7 +1063,36 @@ export interface _SERVICE {
|
|
|
815
1063
|
* / "nothing was ever opened". A QUERY: counts only, and cheap; its refusal is not in the denial
|
|
816
1064
|
* / log (`denied` says why a query cannot write).
|
|
817
1065
|
*/
|
|
818
|
-
getOpeningCounts: ActorMethod<[],
|
|
1066
|
+
getOpeningCounts: ActorMethod<[], Result_25>;
|
|
1067
|
+
/**
|
|
1068
|
+
* / Where an engram was opened from ⟨2026-10-26, the owner's lineage ruling: "a child reads its own
|
|
1069
|
+
* / parent by its canister id"⟩: the engram, the engram it was opened from, and the cut-off's time if
|
|
1070
|
+
* / there is one. Closes "a handed-on child cannot read its own parent" — `getEngramOpenedThrough` is
|
|
1071
|
+
* / keyed by the lasting key that OPENED the engram, which a new owner does not hold.
|
|
1072
|
+
* /
|
|
1073
|
+
* / CALLER: the engram's CURRENT owner, the current owner of the engram it was opened from, or this
|
|
1074
|
+
* / registry's admin and audit viewers (the surface budget: every method names its caller). Reuses `parentOf`; no new state. The two owners are
|
|
1075
|
+
* / answered first; anyone else goes through the registry's combinator (`#adminOrViewer`), which
|
|
1076
|
+
* / refuses every other caller in the same words whether or not the id is an engram, so a refusal
|
|
1077
|
+
* / tells a stranger nothing. A QUERY, so the refusal is not written to the denial log (`denied`
|
|
1078
|
+
* / says why a query cannot write).
|
|
1079
|
+
* / `#NotFound` only to a permitted reader: a first engram has no parent (a true answer), and an id
|
|
1080
|
+
* / this registry never opened is said to be one, not passed off as a first engram (refusal over fabrication).
|
|
1081
|
+
* / The owner's lineage rulings of 2026-10-26 keep `listChildrenOf` unchanged and the change-of-owner
|
|
1082
|
+
* / gate unchanged.
|
|
1083
|
+
*/
|
|
1084
|
+
getParentOf: ActorMethod<[Principal], Result_24>;
|
|
1085
|
+
/**
|
|
1086
|
+
* / PUBLIC: CALLER: the app, the owner kit and anyone checking an engram's record (the surface budget: every method names its caller). When this
|
|
1087
|
+
* / registry last REINSTALLED the engram on its own id after the network erased it (`recoverMyEngram`),
|
|
1088
|
+
* / or null — never recovered. ⟨2026-11-04⟩ Public for `getAbandonedAtNs`'s reason: a
|
|
1089
|
+
* / record that restarted is a fact about the record that a stranger checking it needs, and the same date
|
|
1090
|
+
* / is certified in the engram's anchor leaf (`recoveredAtNs`, with its `era`).
|
|
1091
|
+
* / ⟨2026-11-05, beside the above⟩ Set when the reinstall BEGINS — the old record's anchors are set aside in
|
|
1092
|
+
* / the same message, before the install (`recoverMyEngram` says why) — so while a recover's install has not
|
|
1093
|
+
* / landed, the engram can read erased with this set; the compute probes' `recoverOpen` says one is open.
|
|
1094
|
+
*/
|
|
1095
|
+
getRecoveredAtNs: ActorMethod<[Principal], [] | [bigint]>;
|
|
819
1096
|
/**
|
|
820
1097
|
* / ⟨2026-10-02⟩ How far agents reach across owners — COUNTS ONLY: agents by how many trees their
|
|
821
1098
|
* / record spans (1 · 2 · 3–4 · 5+), engrams opened through a parent that are live or cut off, and
|
|
@@ -829,17 +1106,36 @@ export interface _SERVICE {
|
|
|
829
1106
|
* / weekly. Anyone else is REFUSED by name with their class — never zeros. A QUERY: its cost grows
|
|
830
1107
|
* / with the agents and engrams it walks (one pass over each), so a reader asks weekly, not hourly.
|
|
831
1108
|
*/
|
|
832
|
-
getReferralCounts: ActorMethod<[Array<Principal>],
|
|
1109
|
+
getReferralCounts: ActorMethod<[Array<Principal>], Result_23>;
|
|
1110
|
+
/**
|
|
1111
|
+
* / ⟨2026-11-02, the owner's rulings that one combined health read replaces separate status
|
|
1112
|
+
* / questions, and "go ahead with your noticing failures changes"⟩ THE
|
|
1113
|
+
* / REGISTRY'S HEALTH IN ONE READ: its cycle reserve, its roster, its anchoring counts — the same
|
|
1114
|
+
* / answers `getCycleReserveStatus`, `getAdminRoles` and `getAnchorStats` give, which stay served
|
|
1115
|
+
* / unchanged for everyone who reads them one at a time — and the stamps of its clock, which wakes only
|
|
1116
|
+
* / at the deadlines it records (with a six-hour net) and so is silent by design: `clock.nextWakeAtNs`
|
|
1117
|
+
* / more than an hour behind `atNs` is a lost clock. `Types.RegistryHealth` says what each field
|
|
1118
|
+
* / means, and why every field is `opt` and always filled.
|
|
1119
|
+
* /
|
|
1120
|
+
* / CALLER: the deployment's monitor, once an hour, under the audit-viewer grant its daily count-of-use
|
|
1121
|
+
* / reading already holds (the surface budget: every method names its caller). Also the admin.
|
|
1122
|
+
* /
|
|
1123
|
+
* / GATED, LIKE THE COUNT-OF-USE READS THAT MONITOR MAKES (`getOpeningCounts`): the admin or an audit
|
|
1124
|
+
* / viewer; anyone else is REFUSED by name — never an empty or zero reading. A QUERY: its refusal is
|
|
1125
|
+
* / not in the denial log (a query cannot write; `denied` says why). One read where there were three
|
|
1126
|
+
* / saves the monitor and this registry two calls an hour each.
|
|
1127
|
+
*/
|
|
1128
|
+
getRegistryHealth: ActorMethod<[], Result_22>;
|
|
833
1129
|
/**
|
|
834
1130
|
* / PUBLIC: the biller identity is an operational fact a
|
|
835
|
-
* / payer's
|
|
1131
|
+
* / payer's biller must verify BEFORE taking money (paying into a biller the registry does not
|
|
836
1132
|
* / recognize as biller would collect funds it cannot convert into credit).
|
|
837
1133
|
*/
|
|
838
1134
|
getRentBiller: ActorMethod<[], [] | [Principal]>;
|
|
839
1135
|
/**
|
|
840
1136
|
* / Public transparency: is the gate armed, and which identity issuers are exempt?
|
|
841
|
-
* / ⟨0.16.0
|
|
842
|
-
* / without adding a method: `setInviteIssuer` could write a principal that nothing could read
|
|
1137
|
+
* / ⟨0.16.0⟩ Gains `inviteIssuer`, closing the setter-without-a-getter gap the August 2026 interface
|
|
1138
|
+
* / audit found, without adding a method: `setInviteIssuer` could write a principal that nothing could read
|
|
843
1139
|
* / back, so "who may mint reserve invites" was unanswerable from outside.
|
|
844
1140
|
* /
|
|
845
1141
|
* / It serves the EFFECTIVE issuer, not the raw `?Principal`. The stored value is null until
|
|
@@ -853,6 +1149,33 @@ export interface _SERVICE {
|
|
|
853
1149
|
* / prospective user can act on.
|
|
854
1150
|
*/
|
|
855
1151
|
getReserveGateConfig: ActorMethod<[], ReserveGateConfig>;
|
|
1152
|
+
/**
|
|
1153
|
+
* / PUBLIC: CALLER: the status page (the surface budget: every method names its caller). What the registry has lent to restart stopped engrams
|
|
1154
|
+
* / — lent, repaid, written off, outstanding — and what engrams gave back of the compute a paid
|
|
1155
|
+
* / security update advanced them (returned, written off). Ungated, because a subsidy we would not
|
|
1156
|
+
* / publish is one we should not spend. `getUpgradeSubsidyTotal` stays the gross figure.
|
|
1157
|
+
* / ⟨2026-10-26, the owner's ruling "write it off, but accounting should be exact"⟩ Two exact
|
|
1158
|
+
* / identities hold between any two messages: lent = repaid + writtenOff + outstanding, and
|
|
1159
|
+
* / advancePaid = advanceReturned + advanceWrittenOff + advanceOutstanding.
|
|
1160
|
+
* / ⟨2026-10-26, later — the owner's restart choice of that day: "add the release name to each write-off
|
|
1161
|
+
* / record. This needs no new storage."⟩ These totals are fleet-wide. PER RELEASE, read the audit
|
|
1162
|
+
* / chain: every line that moves an advance names the release it was paid for, `template=<module
|
|
1163
|
+
* / hash>` (and `version=` when the release history names one) — `upgrade.topUp` (paid, `added=`),
|
|
1164
|
+
* / `upgrade.advance.returned` (`returned=`, `writtenOff=`) and `upgrade.advance.writtenOff`
|
|
1165
|
+
* / (`writtenOff=`, including the 90-day write-off of an advance left outstanding, per the owner's restart choice).
|
|
1166
|
+
* / Summed by `template=`, they give each release's paid, returned and written-off figures exactly;
|
|
1167
|
+
* / what is still out per release is paid − returned − written off. Restart-loan lines are not per
|
|
1168
|
+
* / release (a loan pays for no release).
|
|
1169
|
+
* / ⟨CORRECTED 2026-10-26, later — a review fix⟩ "exactly" holds only over a
|
|
1170
|
+
* / COMPLETE copy of the audit chain. The registry keeps the most recent 10,000 audit entries
|
|
1171
|
+
* / (AuditLog's `MAX_ENTRIES`; on overflow it drops back to 9,000, oldest first), and a give-back or
|
|
1172
|
+
* / a 90-day write-off can land long after its `upgrade.topUp` line was dropped. A per-release sum
|
|
1173
|
+
* / read from the registry alone can therefore miss lines. Exact per-release figures need an archive
|
|
1174
|
+
* / of the chain kept from the first line on (scripts/audit-chain/monitor.mjs `--archive`); whether
|
|
1175
|
+
* / such an archive is kept durably is an operator's choice, not this registry's. The fleet totals
|
|
1176
|
+
* / this method answers are exact regardless.
|
|
1177
|
+
*/
|
|
1178
|
+
getRestartTotals: ActorMethod<[], RestartTotals>;
|
|
856
1179
|
/**
|
|
857
1180
|
* / PUBLIC: transparency without a doxx — how many principals the deployment currently screens (0 = seam
|
|
858
1181
|
* / disarmed, the shipped default). The list itself is never enumerable publicly.
|
|
@@ -860,7 +1183,8 @@ export interface _SERVICE {
|
|
|
860
1183
|
getScreeningDenylistSize: ActorMethod<[], bigint>;
|
|
861
1184
|
/**
|
|
862
1185
|
* / How many engram template releases this registry has declared `#Security` — the class that
|
|
863
|
-
* / skips any delay and
|
|
1186
|
+
* / skips any delay and whose install the registry pays for on every running engram (⟨2026-10-25⟩
|
|
1187
|
+
* / was "is funded for every engram"). ⟨2026-09-28, owner decision: publish the
|
|
864
1188
|
* / count only; the status page shows the number.⟩ It moves only when a template's class is
|
|
865
1189
|
* / declared INTO `#Security` (`setEngramWasmClass`), never on `#Feature`, never down.
|
|
866
1190
|
* / ⟨CORRECTED 2026-09-29⟩ It counts TEMPLATES, not declarations: each distinct template (by its
|
|
@@ -875,8 +1199,8 @@ export interface _SERVICE {
|
|
|
875
1199
|
*/
|
|
876
1200
|
getSecurityReleaseCount: ActorMethod<[], bigint>;
|
|
877
1201
|
/**
|
|
878
|
-
* / ⟨2026-10-01, the owner's ruling of that day
|
|
879
|
-
* / door (`
|
|
1202
|
+
* / ⟨2026-10-01, the owner's ruling of that day⟩ Cumulative cycles accepted at the sponsored
|
|
1203
|
+
* / door (`sysOpenChild`) and forwarded into engrams opened through another — cycles the calling
|
|
880
1204
|
* / engrams attached, never the registry's own. Kept apart from the grant counter
|
|
881
1205
|
* / (`totalCyclesAllocated`) so neither figure is inflated by the other.
|
|
882
1206
|
* /
|
|
@@ -895,7 +1219,7 @@ export interface _SERVICE {
|
|
|
895
1219
|
*/
|
|
896
1220
|
getTreasuryAnchorId: ActorMethod<[], [] | [Principal]>;
|
|
897
1221
|
/**
|
|
898
|
-
* / ⟨0.16.0,
|
|
1222
|
+
* / ⟨0.16.0, the honesty rule against fabricated answers⟩ `null` MEANS NEVER CHOSE. It used to mean `#AutoUpdate`.
|
|
899
1223
|
* /
|
|
900
1224
|
* / Returning the shipped default for a caller who has never expressed a preference is a
|
|
901
1225
|
* / fabricated CONSENT: the registry answered "this owner opted into automatic upgrades" when the
|
|
@@ -926,10 +1250,16 @@ export interface _SERVICE {
|
|
|
926
1250
|
* / — and the second is a claim about OUR OWN SPEND, not an absence of one. `#Ok(null)` now means
|
|
927
1251
|
* / never funded, `#Err(#Refused)` means not your business, and no caller has to guess which.
|
|
928
1252
|
*/
|
|
929
|
-
getUpgradeFundedTemplate: ActorMethod<[Principal],
|
|
1253
|
+
getUpgradeFundedTemplate: ActorMethod<[Principal], Result_21>;
|
|
930
1254
|
/**
|
|
931
|
-
* / Cumulative cycles the registry has granted to engrams for upgrades — the meter on
|
|
932
|
-
* /
|
|
1255
|
+
* / Cumulative cycles the registry has granted to engrams for upgrades — ⟨2026-10-25⟩ the meter on
|
|
1256
|
+
* / security-update funding: the registry pays only for security updates on running engrams (was:
|
|
1257
|
+
* / "the meter on the never-gated pull path"; the pull is still never refused, and a feature update
|
|
1258
|
+
* / it installs is not paid for).
|
|
1259
|
+
* / ⟨CORRECTED 2026-10-26, later — the owner's restart choice on paying for security updates⟩
|
|
1260
|
+
* / "a feature update it installs is
|
|
1261
|
+
* / not paid for" now excepts an engram still missing an earlier security release: that install is
|
|
1262
|
+
* / paid as a security update and counted here (UpgradeFunding.effectiveClass).
|
|
933
1263
|
* /
|
|
934
1264
|
* / PUBLIC: a subsidy we would not publish is one we should not spend. Free and ungated.
|
|
935
1265
|
*/
|
|
@@ -973,7 +1303,7 @@ export interface _SERVICE {
|
|
|
973
1303
|
*/
|
|
974
1304
|
isOfficialEngramWasm: ActorMethod<[string], boolean>;
|
|
975
1305
|
/**
|
|
976
|
-
* / "Is this a registered, `#Active` engram?" — no owner argument, only a Bool. The
|
|
1306
|
+
* / "Is this a registered, `#Active` engram?" — no owner argument, only a Bool. The biller uses
|
|
977
1307
|
* / it to authorize an engram funding its OWN cycles: on that path the caller IS the engram
|
|
978
1308
|
* / canister, and this confirms it is a live one.
|
|
979
1309
|
* /
|
|
@@ -989,11 +1319,12 @@ export interface _SERVICE {
|
|
|
989
1319
|
* / nowhere" — handed to a caller who merely lacks a grant. Readable by an admin, an audit viewer,
|
|
990
1320
|
* / or that agent about itself.
|
|
991
1321
|
*/
|
|
992
|
-
listAgentEngrams: ActorMethod<[Principal],
|
|
1322
|
+
listAgentEngrams: ActorMethod<[Principal], Result_18>;
|
|
993
1323
|
/**
|
|
994
1324
|
* / Contradictory submissions, oldest-first. Empty is the normal case. Never trimmed.
|
|
995
1325
|
* /
|
|
996
|
-
* / ⟨0.16.0,
|
|
1326
|
+
* / ⟨0.16.0, every list returns one page shape — PAGED 2026-08-18⟩
|
|
1327
|
+
* / This returned the WHOLE list, and the list is one an engram
|
|
997
1328
|
* / can grow itself: `sysAnchorHead` appends a conflict on every contradictory submission and the
|
|
998
1329
|
* / policy is deliberately never-evict. An uncapped reply over a caller-growable list eventually
|
|
999
1330
|
* / exceeds the response limit, and an oversized Candid reply does not truncate — it fails to
|
|
@@ -1005,8 +1336,8 @@ export interface _SERVICE {
|
|
|
1005
1336
|
* / ⚠ THE WRITE SIDE IS STILL UNBOUNDED and is NOT fixed here. An engram can append to its own
|
|
1006
1337
|
* / conflict list without limit, which is unbounded state on a shared canister paid for by the
|
|
1007
1338
|
* / registry's cycles. Capping it means deciding what to drop from an evidence store whose whole
|
|
1008
|
-
* / promise is that nothing is dropped — a retention ruling, not a shape fix.
|
|
1009
|
-
* /
|
|
1339
|
+
* / promise is that nothing is dropped — a retention ruling, not a shape fix. Left open rather
|
|
1340
|
+
* / than decided here.
|
|
1010
1341
|
* / ⟨CORRECTED 2026-09-28 — the paragraph above is no longer true: the owner ruled "never delete;
|
|
1011
1342
|
* / cap submissions; publish the refusal count". Nothing is dropped; the WRITE side is now bounded
|
|
1012
1343
|
* / at `AnchorConflicts.MAX_CONFLICTS_PER_ENGRAM` rows per engram, `sysAnchorHead` refuses further
|
|
@@ -1018,7 +1349,7 @@ export interface _SERVICE {
|
|
|
1018
1349
|
* / while keeping the evidence that two of them disagree — the fabricate-on-refusal shape aimed at
|
|
1019
1350
|
* / the one reader the anchors exist for.
|
|
1020
1351
|
*/
|
|
1021
|
-
listAnchorConflicts: ActorMethod<[Principal, bigint, bigint],
|
|
1352
|
+
listAnchorConflicts: ActorMethod<[Principal, bigint, bigint], Result_20>;
|
|
1022
1353
|
/**
|
|
1023
1354
|
* / Witnessed heads for an engram, oldest-first. PUBLIC and ungated — an anchor a stranger cannot
|
|
1024
1355
|
* / read is not an anchor (ratified: "recorded where counterparties can check them").
|
|
@@ -1055,10 +1386,16 @@ export interface _SERVICE {
|
|
|
1055
1386
|
* / anything. A cap that is part of the ratified design is not the unbounded growth paging exists
|
|
1056
1387
|
* / for. WHAT WOULD MAKE THIS WRONG: the ring outgrowing one reply, or rows withheld per caller —
|
|
1057
1388
|
* / then it pages, and that is a break.
|
|
1389
|
+
* / ⟨2026-11-04, the owner's old-record ruling⟩ EVERY ERA, oldest first. An engram the registry
|
|
1390
|
+
* / recovered after the network erased it has more than one record: each anchor carries `era` (0 = its
|
|
1391
|
+
* / first record, k = after its k-th recover), the earlier eras' anchors as they stood when each was set
|
|
1392
|
+
* / aside, then the current era's. Nothing is withheld or deleted. `disputed` is read against the
|
|
1393
|
+
* / contradictions recorded during the anchor's own era.
|
|
1058
1394
|
*/
|
|
1059
1395
|
listAnchors: ActorMethod<[Principal], Array<AnchorView>>;
|
|
1060
1396
|
/**
|
|
1061
|
-
* / ⟨0.16.0,
|
|
1397
|
+
* / ⟨0.16.0, refusals are values; a list method returns a page⟩ RENAMED from `readAuditLog`, and the
|
|
1398
|
+
* / refusal is now a VALUE.
|
|
1062
1399
|
* /
|
|
1063
1400
|
* / It refused by `Debug.trap`, which was the right call when the alternative was a fabricated
|
|
1064
1401
|
* / answer — and the fabrication it replaced is worth restating, because it is the sharpest one
|
|
@@ -1074,10 +1411,21 @@ export interface _SERVICE {
|
|
|
1074
1411
|
* /
|
|
1075
1412
|
* / The inline record dies for a `Page`: `earliestId` was redundant with the ring's own paging,
|
|
1076
1413
|
* / and `size`/`headHash` are `getAuditHead`'s answer, published free to everyone.
|
|
1414
|
+
* /
|
|
1415
|
+
* / ⟨2026-10-15, the owner's ruling of 2026-10-14 on the chained record⟩ The reply is the shared `Wire.RecordPage`,
|
|
1416
|
+
* / the shape every chain canister's record read now serves, so one checker reads all of them. A
|
|
1417
|
+
* / viewer sees every entry, so `sealed` is always empty here; what the page adds is `ringFloor`
|
|
1418
|
+
* / (where the ring starts — a `start` below it begins at it) and `hashFirstFrom` (where this
|
|
1419
|
+
* / record switched to the hash-first rule: entries below it were hashed SHA-256(prev ‖ body)).
|
|
1420
|
+
* / `total` is now the head counter, as everywhere else — it was the size of the 1,000-entry window
|
|
1421
|
+
* / this read sliced, which is not a number about the record. The gate is unchanged: hash-only rows
|
|
1422
|
+
* / for strangers were ruled for the engram's record, and the status console decides a signed-in
|
|
1423
|
+
* / visitor's tier by whether this read refuses.
|
|
1077
1424
|
*/
|
|
1078
|
-
listAuditEntries: ActorMethod<[bigint, bigint],
|
|
1425
|
+
listAuditEntries: ActorMethod<[bigint, bigint], Result_19>;
|
|
1079
1426
|
/**
|
|
1080
|
-
* / ⟨0.16.0,
|
|
1427
|
+
* / ⟨0.16.0, same concept, same name across canisters⟩
|
|
1428
|
+
* / RENAMED from `getMetricsViewers` — the viewer triple unifies on "audit viewer"
|
|
1081
1429
|
* / across every canister, because a roster that grants audit reads should not be named after
|
|
1082
1430
|
* / metrics on one canister and audit on another.
|
|
1083
1431
|
* /
|
|
@@ -1085,29 +1433,29 @@ export interface _SERVICE {
|
|
|
1085
1433
|
* / on 2026-08-11 while viewers existed. An empty vec reads as "nobody holds read-only ops access"
|
|
1086
1434
|
* / when the truth was "you are not on the roster".
|
|
1087
1435
|
*/
|
|
1088
|
-
listAuditViewers: ActorMethod<[],
|
|
1436
|
+
listAuditViewers: ActorMethod<[], Result_18>;
|
|
1089
1437
|
/**
|
|
1090
1438
|
* / PUBLIC: the release history, paged.
|
|
1091
1439
|
* /
|
|
1092
|
-
* / ⟨0.16.0,
|
|
1093
|
-
* / call with no way to say it had been truncated — and a list that cannot
|
|
1094
|
-
* / looks complete at exactly the size where it stops being so.
|
|
1440
|
+
* / ⟨0.16.0, a list method returns a page⟩ A `Page`, not a bare vec. The old shape returned the
|
|
1441
|
+
* / WHOLE changelog on every call with no way to say it had been truncated — and a list that cannot
|
|
1442
|
+
* / say "there is more" looks complete at exactly the size where it stops being so.
|
|
1095
1443
|
*/
|
|
1096
1444
|
listChangelogEntries: ActorMethod<[bigint, bigint], Page_4>;
|
|
1097
1445
|
/**
|
|
1098
|
-
* / ⟨2026-10-01, the owner's ruling of that day
|
|
1446
|
+
* / ⟨2026-10-01, the owner's ruling of that day⟩ The engrams opened through `engram`, each with
|
|
1099
1447
|
* / its owner now and its cut-off time if any. GATED: readable by `engram`'s owner, an admin or an
|
|
1100
1448
|
* / audit viewer. The link says who works for whom, so it is not public (unlike the predecessor
|
|
1101
1449
|
* / chain, which exists to be walked by a stranger).
|
|
1102
1450
|
* /
|
|
1103
|
-
* / REFUSED LOUDLY, never `[]`, to anyone else (
|
|
1451
|
+
* / REFUSED LOUDLY, never `[]`, to anyone else (refusal over fabrication): an empty list handed to a caller who
|
|
1104
1452
|
* / merely lacks a grant would be a claim about another owner's engram. A QUERY, so the refusal is
|
|
1105
1453
|
* / not in the denial log (`denied` says why a query cannot write).
|
|
1106
1454
|
* /
|
|
1107
1455
|
* / Built by a pass over `parentOf` rather than from a second, reverse index: one stored fact and a
|
|
1108
1456
|
* / pass bounded by the number of opened engrams, instead of two facts to keep in step.
|
|
1109
1457
|
*/
|
|
1110
|
-
listChildrenOf: ActorMethod<[Principal],
|
|
1458
|
+
listChildrenOf: ActorMethod<[Principal], Result_17>;
|
|
1111
1459
|
/**
|
|
1112
1460
|
* / ⟨0.16.0⟩ RENAMED from `readDenialLog`; the refusal becomes a value.
|
|
1113
1461
|
* /
|
|
@@ -1115,7 +1463,7 @@ export interface _SERVICE {
|
|
|
1115
1463
|
* / this log exists to record — so "empty" was never an acceptable answer to a caller who simply
|
|
1116
1464
|
* / lacks the grant. The old trap said so; this says the same thing as data.
|
|
1117
1465
|
*/
|
|
1118
|
-
listDenialEntries: ActorMethod<[bigint, bigint],
|
|
1466
|
+
listDenialEntries: ActorMethod<[bigint, bigint], Result_16>;
|
|
1119
1467
|
/**
|
|
1120
1468
|
* / ⟨2026-10-02⟩ ONE ROW PER ENGAGEMENT, for the deployment's own count of use — DAYS, never
|
|
1121
1469
|
* / instants, and NEVER the agent's root, enrolled key or invite.
|
|
@@ -1123,7 +1471,7 @@ export interface _SERVICE {
|
|
|
1123
1471
|
* / CALLERS: the admin, and the audit viewers — the reader the deployment runs for this purpose
|
|
1124
1472
|
* / holds a viewer grant and calls this once a day. Anyone else is REFUSED by name, with their
|
|
1125
1473
|
* / class (the anonymous principal, an engram, the template key, an engram's owner, a stranger) —
|
|
1126
|
-
* / never an empty page, which is what a lost history would also look like (
|
|
1474
|
+
* / never an empty page, which is what a lost history would also look like (refusal over fabrication).
|
|
1127
1475
|
* /
|
|
1128
1476
|
* / ARGUMENTS. `sinceDay`: any instant, floored to its UTC day; a row is served when the LATEST of
|
|
1129
1477
|
* / its start, its ending, its engram's abandonment and any reset since it started is on or after
|
|
@@ -1137,13 +1485,14 @@ export interface _SERVICE {
|
|
|
1137
1485
|
* / The reply is a page whose `total` is every engagement ever recorded here. Each row's fields
|
|
1138
1486
|
* / are described at `Funnel.EngagementRow`; the walk and its cost at `Funnel.engagementRows`.
|
|
1139
1487
|
* /
|
|
1140
|
-
* / ⟨
|
|
1488
|
+
* / ⟨update-for-read⟩ An UPDATE, not a query, so a refused attempt is RECORDED: `denied()` is a state write,
|
|
1141
1489
|
* / and a query cannot write (the reason `listEngrams` is an update). This is the most sensitive of
|
|
1142
1490
|
* / the three reads — one row per engagement — so who was turned away is worth a record.
|
|
1143
1491
|
*/
|
|
1144
|
-
listEngagementRows: ActorMethod<[bigint, bigint, bigint, Array<Principal>],
|
|
1492
|
+
listEngagementRows: ActorMethod<[bigint, bigint, bigint, Array<Principal>], Result_15>;
|
|
1145
1493
|
/**
|
|
1146
|
-
* / ⟨0.16.0,
|
|
1494
|
+
* / ⟨0.16.0, one Result shape for every gated method⟩
|
|
1495
|
+
* / THE `authorized : ?Bool` FLAG IS GONE, AND SO IS EVERYTHING BUILT AROUND IT.
|
|
1147
1496
|
* /
|
|
1148
1497
|
* / The flag was the most carefully-argued compromise in this canister, and every word of that
|
|
1149
1498
|
* / argument rested on ONE premise: this method could not refuse. It is an UPDATE because
|
|
@@ -1157,24 +1506,24 @@ export interface _SERVICE {
|
|
|
1157
1506
|
* / There is no masked payload left to check a flag against.
|
|
1158
1507
|
* /
|
|
1159
1508
|
* / What goes with it: the three-state ?true/?false/null protocol and the "a reader that collapses
|
|
1160
|
-
* / null to false fabricates a refusal" rule; the
|
|
1509
|
+
* / null to false fabricates a refusal" rule; the interface-evolution rule's opt-from-birth ceremony this field was
|
|
1161
1510
|
* / the motivating example for; the fleet collector's dual-IDL split; and the cross-check against
|
|
1162
|
-
* / the public engram count that storage
|
|
1511
|
+
* / the public engram count that an off-chain storage sweep used as a discriminator. All of it was
|
|
1163
1512
|
* / scaffolding around "we cannot say no in a value", and none of it is load-bearing once we can.
|
|
1164
1513
|
* /
|
|
1165
|
-
* / ⚠
|
|
1514
|
+
* / ⚠ A CONFLICT WITH THE 0.16.0 INTERFACE PLAN, resolved at the site. That plan says "query again" — reasoning that the
|
|
1166
1515
|
* / only thing forcing an update was the masking problem. It was not: the update exists so the
|
|
1167
1516
|
* / DENIAL IS RECORDED, and a query cannot write, so making this a query would silently retire
|
|
1168
1517
|
* / the audit trail the original comment correctly called worth more than the false answer.
|
|
1169
1518
|
* / Staying an update keeps both — the legible refusal AND the record of who was refused — which
|
|
1170
1519
|
* / is strictly better than either option the old design had to choose between.
|
|
1171
1520
|
* /
|
|
1172
|
-
* / ⟨
|
|
1173
|
-
* / written and correct; what it lacked was the glyph a gate can see. Its case is the one
|
|
1174
|
-
* / own text had to be corrected for — the forcing call is not a system API at all, it is
|
|
1175
|
-
* / `denied()`, a state write.
|
|
1521
|
+
* / ⟨update-for-read⟩ MARKER ADDED 2026-08-23, reasoning above UNCHANGED. This method's reason was already
|
|
1522
|
+
* / written and correct; what it lacked was the glyph a gate can see. Its case is the one the
|
|
1523
|
+
* / update-for-read rule's own text had to be corrected for — the forcing call is not a system API at all, it is
|
|
1524
|
+
* / `denied()`, a state write. (The deploying side's update-for-read check reads this marker.)
|
|
1176
1525
|
*/
|
|
1177
|
-
listEngrams: ActorMethod<[bigint, bigint],
|
|
1526
|
+
listEngrams: ActorMethod<[bigint, bigint], Result_14>;
|
|
1178
1527
|
/**
|
|
1179
1528
|
* / ⟨2026-09-28, owner decision: an agent may read its own record⟩ The caller's OWN dispute
|
|
1180
1529
|
* / statements, oldest first, verbatim. Keyed by `msg.caller`, so it cannot be pointed at anyone
|
|
@@ -1214,11 +1563,12 @@ export interface _SERVICE {
|
|
|
1214
1563
|
* / fresh start. Abandon-and-respawn is reputation laundering performed by our own feature unless
|
|
1215
1564
|
* / a stranger can walk this, so the walk has to be answerable to a stranger.
|
|
1216
1565
|
* /
|
|
1217
|
-
* / ⟨2026-09-30, the owner's
|
|
1218
|
-
* / predecessor (`ControlHandover.predecessorsFor`), so the lineage is
|
|
1219
|
-
* / every engram this one named, then every engram those named, each
|
|
1220
|
-
* / predecessor per engram reads exactly as before. The walk is
|
|
1221
|
-
* / test/control-handover.test.mo runs it; the `seen` rule and the
|
|
1566
|
+
* / ⟨2026-09-30, the owner's ruling that an abandoned engram stays in its owner's history⟩ An engram
|
|
1567
|
+
* / can now name more than one predecessor (`ControlHandover.predecessorsFor`), so the lineage is
|
|
1568
|
+
* / walked a generation at a time: every engram this one named, then every engram those named, each
|
|
1569
|
+
* / listed once. A chain with one predecessor per engram reads exactly as before. The walk is
|
|
1570
|
+
* / `ControlHandover.lineage`, where test/control-handover.test.mo runs it; the `seen` rule and the
|
|
1571
|
+
* / length cap above still hold.
|
|
1222
1572
|
*/
|
|
1223
1573
|
listPredecessors: ActorMethod<[Principal], Array<Principal>>;
|
|
1224
1574
|
/**
|
|
@@ -1229,17 +1579,18 @@ export interface _SERVICE {
|
|
|
1229
1579
|
* / choice in the fleet. That is the consequence this refusal exists to prevent, and it belongs in
|
|
1230
1580
|
* / the message a caller actually receives.
|
|
1231
1581
|
*/
|
|
1232
|
-
listUpdatePrefs: ActorMethod<[bigint, bigint],
|
|
1582
|
+
listUpdatePrefs: ActorMethod<[bigint, bigint], Result_13>;
|
|
1233
1583
|
/**
|
|
1234
1584
|
* / Mint one-shot reserve invites (invite-issuer or admin). Codes use IC-secure randomness over a
|
|
1235
1585
|
* / 32-symbol no-ambiguous alphabet (8 chars ≈ 40 bits). Batch-capped; table hard-capped.
|
|
1236
1586
|
*/
|
|
1237
|
-
mintReserveInvites: ActorMethod<[bigint],
|
|
1587
|
+
mintReserveInvites: ActorMethod<[bigint], Result_12>;
|
|
1238
1588
|
/**
|
|
1239
1589
|
* / The PROBED twin of `getCustodyMode`: same question, asked of the IC rather than of our
|
|
1240
1590
|
* / records — hence the `probe` verb rather than a second noun.
|
|
1241
1591
|
* /
|
|
1242
|
-
* / ⟨0.16.0,
|
|
1592
|
+
* / ⟨0.16.0, same concept, same name across canisters⟩
|
|
1593
|
+
* / RENAMED from `getSovereigntyStatus`. Both methods answer the same type,
|
|
1243
1594
|
* / `Result<CustodyMode>`, so the old name introduced a SovereigntyStatus noun that no type in
|
|
1244
1595
|
* / this interface has. A reader comparing the two names had to open both to learn they were
|
|
1245
1596
|
* / one question; comparing the stems now shows it. What differs is HOW the answer is obtained
|
|
@@ -1247,7 +1598,7 @@ export interface _SERVICE {
|
|
|
1247
1598
|
* / for. The arity difference is real and stays: `getCustodyMode` answers about any canister,
|
|
1248
1599
|
* / this one about the CALLER's own engram.
|
|
1249
1600
|
* /
|
|
1250
|
-
* / ⟨0.16.0
|
|
1601
|
+
* / ⟨0.16.0⟩ Both arms of the old `#Unknown` move into the envelope, and they are DIFFERENT
|
|
1251
1602
|
* / facts that the single tag was flattening: "you have no engram here" is #NotFound, while
|
|
1252
1603
|
* / "canister_status did not answer" is #Unavailable and means retry.
|
|
1253
1604
|
* /
|
|
@@ -1257,18 +1608,63 @@ export interface _SERVICE {
|
|
|
1257
1608
|
* / a controller. Reporting #Sovereign there would tell an owner they had achieved sovereignty
|
|
1258
1609
|
* / they do not have.
|
|
1259
1610
|
* /
|
|
1260
|
-
* / ⟨
|
|
1611
|
+
* / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
|
|
1261
1612
|
* / `ic.canister_status`. That is also the whole point of the `probe` verb — the value is read
|
|
1262
1613
|
* / LIVE from the management canister rather than from a stored transition record, so a query
|
|
1263
1614
|
* / could not produce it at all, not merely more cheaply.
|
|
1264
1615
|
*/
|
|
1265
|
-
probeCustodyMode: ActorMethod<[],
|
|
1616
|
+
probeCustodyMode: ActorMethod<[], Result_11>;
|
|
1617
|
+
/**
|
|
1618
|
+
* / What YOUR OWN engram's compute is, read by the registry — the one read that works while it is
|
|
1619
|
+
* / frozen.
|
|
1620
|
+
* /
|
|
1621
|
+
* / CALLER: the owner, from the app's status strip, Billing and System pages (the surface budget: every method names its caller).
|
|
1622
|
+
* / ⟨2026-10-26, the owner's ruling that we pay nothing for a stopped engram: tell the owner, using
|
|
1623
|
+
* / signals that work while frozen⟩ The
|
|
1624
|
+
* / registry is a controller, and the network answers a controller canister's status call for a
|
|
1625
|
+
* / frozen engram where it refuses the owner's own (IC0207, read in the network's source by a study
|
|
1626
|
+
* / of stopped engrams). UPDATE, not query: it awaits the management canister (the `probe` verb, as
|
|
1627
|
+
* / `probeCustodyMode`).
|
|
1628
|
+
* / ⟨update-for-read⟩ ⟨marker added 2026-10-26; the reason above unchanged⟩ The system call that
|
|
1629
|
+
* / forces the update is `canister_status` on the management canister: a query cannot make an
|
|
1630
|
+
* / inter-canister call, so a query could not read the engram's network status at all — and that
|
|
1631
|
+
* / status is the only signal that still answers while the engram is frozen.
|
|
1632
|
+
* / No rate limit (the do-less): each call costs the registry one management
|
|
1633
|
+
* / call — INFERRED a few million cycles, not measured. `eraseAboutNs` is "about" and never invented:
|
|
1634
|
+
* / null when the network reports no idle burn.
|
|
1635
|
+
*/
|
|
1636
|
+
probeMyEngramCompute: ActorMethod<[], Result_10>;
|
|
1637
|
+
/**
|
|
1638
|
+
* / What an engram OPENED THROUGH ANOTHER is running on, read by the registry — for its key file and its
|
|
1639
|
+
* / sign-in (the person), the read `probeMyEngramCompute` is for a first engram's owner.
|
|
1640
|
+
* /
|
|
1641
|
+
* / CALLER: the app's Access page, signed in as the person, for a child row whose own `getOwnerSignIn`
|
|
1642
|
+
* / call is rejected (an erased child answers nothing) — and the owner kit, as the key file (the surface budget: every method names its caller).
|
|
1643
|
+
* / ⟨2026-11-04, the owner's ruling — "the registry starts keeping the person's sign-in for them"⟩
|
|
1644
|
+
* / The person may SEE, not ask and not pay: the ask (`recoverMyEngram`) and the payment (the biller's
|
|
1645
|
+
* / top-up, admitted only from the key file) stay the key file's. Gated to the child's key file
|
|
1646
|
+
* / (`canisterToOwner`) and its sign-in AS NOTED HERE (`childSignIn`); refused to everyone else — the
|
|
1647
|
+
* / parent's owner included — with the SAME words whether or not `child` exists or is a child at all
|
|
1648
|
+
* / (`getEngramOpenedThrough`'s precedent: who works for whom is not disclosed by a refusal). UPDATE, not
|
|
1649
|
+
* / query, for `probeMyEngramCompute`'s reason (a query cannot call the management canister).
|
|
1650
|
+
* / ⟨update-for-read⟩ ⟨marker added 2026-11-05, the reason above unchanged — a consumer's
|
|
1651
|
+
* / update-for-read check named it missing⟩ The system call that forces the update is
|
|
1652
|
+
* / `canister_status` on the management canister: a query cannot make an inter-canister call, so it
|
|
1653
|
+
* / could not read an erased child's network status at all.
|
|
1654
|
+
*/
|
|
1655
|
+
probeOpenedEngramCompute: ActorMethod<[Principal], Result_10>;
|
|
1266
1656
|
/**
|
|
1267
1657
|
* / ⟨0.16.0⟩ `Ok` CARRIES THE PRINCIPAL DIRECTLY, not a one-field record wrapping it.
|
|
1268
1658
|
* /
|
|
1269
1659
|
* / `#Ok : { canisterId : Principal }` was a record with nothing to disambiguate: the success of a
|
|
1270
1660
|
* / spawn IS the canister it produced. The wrapper cost every caller a field access to reach the
|
|
1271
1661
|
* / only thing the call returns, and invited a second field later that would belong somewhere else.
|
|
1662
|
+
* /
|
|
1663
|
+
* / ⟨2026-10-13, the owner's ruling: no genesis seed, no number copy⟩ `opts.genesis` (an optional
|
|
1664
|
+
* / first file, written as the canister spawned) is retired: the console creates an engram with no
|
|
1665
|
+
* / content (the owner's ruling of 2026-09-30 on the set-up page), the owner kit never calls this,
|
|
1666
|
+
* / and only test harnesses passed one. A caller still sending the field is unaffected — Candid
|
|
1667
|
+
* / ignores a record field the receiver does not declare.
|
|
1272
1668
|
*/
|
|
1273
1669
|
provisionEngram: ActorMethod<
|
|
1274
1670
|
[
|
|
@@ -1277,12 +1673,44 @@ export interface _SERVICE {
|
|
|
1277
1673
|
{
|
|
1278
1674
|
walletProof: [] | [Uint8Array | number[]];
|
|
1279
1675
|
invite: [] | [string];
|
|
1280
|
-
genesis: [] | [{ content: Uint8Array | number[]; path: string }];
|
|
1281
1676
|
},
|
|
1282
1677
|
],
|
|
1283
1678
|
],
|
|
1284
|
-
|
|
1679
|
+
Result_2
|
|
1285
1680
|
>;
|
|
1681
|
+
/**
|
|
1682
|
+
* / RECOVER YOUR OWN ERASED ENGRAM — reinstall it on the SAME id, so its wallet and EVM address come back.
|
|
1683
|
+
* /
|
|
1684
|
+
* / CALLER: the owner, from the app's "Recover my wallet" (a first engram), or an engram's key file through
|
|
1685
|
+
* / the owner kit's `--recover` (an engram an agent opened through another) — the surface budget: every method names its caller. ⟨2026-11-04, the
|
|
1686
|
+
* / owner's rulings of that day: no engram moves money on its own; an erased engram is reinstalled on
|
|
1687
|
+
* / its id, children included⟩ Recover.mo says what a recover is and
|
|
1688
|
+
* / what does and does not come back.
|
|
1689
|
+
* /
|
|
1690
|
+
* / THE ORDER: the owner first adds compute to the empty engram through the biller's existing top-up
|
|
1691
|
+
* / (each step its own tap; nothing here moves money, lends or funds); then this call reads the network's
|
|
1692
|
+
* / status of the engram as its controller, refuses by name unless the engram is ERASED (no module) and
|
|
1693
|
+
* / holds enough compute to install (`UpgradeFunding.noDipBar` — the line plus the install hold plus a
|
|
1694
|
+
* / margin; the exact shortfall is named), writes a durable "recover in progress" mark, installs the
|
|
1695
|
+
* / current template with `#install` ONLY (the network refuses it on a canister that holds a module), with
|
|
1696
|
+
* / the init record from this registry's own records (owner, registry, parent, the kept sign-in,
|
|
1697
|
+
* / `recoveredAtNs`), starts the engram if it was found stopped, sets the old record's anchors aside as an
|
|
1698
|
+
* / earlier era (the certified leaf says so), and re-sends what a newborn is told: its biller, market and
|
|
1699
|
+
* / metrics reader, a first fee line and its birth record. The mark is removed once the biller is in
|
|
1700
|
+
* / place; until then a second call finishes the work and answers `#Ok` with `finished = true`.
|
|
1701
|
+
* / ⟨CHANGED 2026-11-05, from the review of the recover-my-wallet build⟩ The old record's anchors are set aside (and
|
|
1702
|
+
* / `recoveredAtNs` recorded) with the mark, BEFORE the install — the record ended at the erase — and no
|
|
1703
|
+
* / first fee line is sent (the balance before the install is not a fee). The compute probes'
|
|
1704
|
+
* / `recoverOpen` says a recover is open. An upgrade that finds a recover's install landed records it first.
|
|
1705
|
+
* /
|
|
1706
|
+
* / Refused, before anything is written: not your engram (`#NotFound`); not active, or ABANDONED (the owner's ruling
|
|
1707
|
+
* / of 2026-11-04: an abandoned engram is not recovered — withdraw your digital dollars before you abandon an engram);
|
|
1708
|
+
* / sovereign; a change of owner unfinished; a restart open or
|
|
1709
|
+
* / a restart/recover call running; an update installing; no template; the status unreadable; NOT ERASED
|
|
1710
|
+
* / (`#Conflict` — "already recovered at T" when this registry recovered it, and no install); compute
|
|
1711
|
+
* / under the bar (`#Conflict` naming the shortfall).
|
|
1712
|
+
*/
|
|
1713
|
+
recoverMyEngram: ActorMethod<[], Result_9>;
|
|
1286
1714
|
removeAuditViewer: ActorMethod<[Principal], Result>;
|
|
1287
1715
|
/**
|
|
1288
1716
|
* / ⟨0.16.0⟩ `Ok` IS THE ANSWER — the `{ reserved : Bool }` wrapper is gone.
|
|
@@ -1303,8 +1731,82 @@ export interface _SERVICE {
|
|
|
1303
1731
|
],
|
|
1304
1732
|
Result
|
|
1305
1733
|
>;
|
|
1734
|
+
/**
|
|
1735
|
+
* / Admin (the wasm admin): give one grown engram's working memory back, in place. The engram's
|
|
1736
|
+
* / stable graph is copied into its stable memory and the SAME module is reinstalled with
|
|
1737
|
+
* / `wasm_memory_persistence = ?#replace`, so the engram restarts in a fresh, small wasm memory with
|
|
1738
|
+
* / every file, version, record entry, setting and key it had (MemoryReset.mo).
|
|
1739
|
+
* /
|
|
1740
|
+
* / REFUSES, and changes nothing, when: the caller is not the wasm admin; the registry does not know
|
|
1741
|
+
* / the engram; a change of owner or a restart is open; its status cannot be read (a sovereign engram);
|
|
1742
|
+
* / it is not running; it is not on the current template; its wasm memory is under
|
|
1743
|
+
* / `MemoryReset.WASM_FLOOR_BYTES` (nothing to give back — and so a second reset straight after a
|
|
1744
|
+
* / first); its balance is short of the install hold above its own freezing line (no dip, no deposit);
|
|
1745
|
+
* / or one of its own calls is in flight ("Busy, try again").
|
|
1746
|
+
* /
|
|
1747
|
+
* / WHO PAYS: the engram, as for any install — `install_code` is charged to the canister it installs
|
|
1748
|
+
* / on, and the stabilise / rebuild steps are the engram's own messages. The registry deposits
|
|
1749
|
+
* / nothing; it pays only for its own calls. Two installs run: an ordinary one of the same module
|
|
1750
|
+
* / first, which is the network's test for a call in flight while nothing is yet at stake, then the
|
|
1751
|
+
* / replace.
|
|
1752
|
+
* /
|
|
1753
|
+
* / ONCE STARTED it finishes or says the engram is HELD: between the stabilise call and the replace
|
|
1754
|
+
* / install the engram refuses every message, so a failure there answers `#Unavailable` naming the
|
|
1755
|
+
* / step, and running this method again picks up where it stopped (it reads the held state from the
|
|
1756
|
+
* / engram itself). Do not publish a new template while a reset is held.
|
|
1757
|
+
* /
|
|
1758
|
+
* / Never run on production engrams (the owner's ruling). On the staging network, as the wasm admin,
|
|
1759
|
+
* / with the engram's canister id in ENGRAM:
|
|
1760
|
+
* / icp canister call registry-staging resetEngramMemory "(principal \"$ENGRAM\")" -e ic
|
|
1761
|
+
* / ⟨2026-11-15, beside "Never run on production engrams" above — from an adversarial review⟩ Both are CHECKS now, not
|
|
1762
|
+
* / comments. A build that carries the canonical root refuses the reset before anything is read
|
|
1763
|
+
* / (`MemoryReset.canonicalBuild`), and an engram whose owner chose `#ManualOnly` is refused unless an
|
|
1764
|
+
* / earlier reset already holds it (`MemoryReset.MANUAL_ONLY_REFUSAL`), as `pushUpgrade` refuses it.
|
|
1765
|
+
*/
|
|
1766
|
+
resetEngramMemory: ActorMethod<[Principal], Result>;
|
|
1767
|
+
/**
|
|
1768
|
+
* / Restart YOUR OWN stopped engram.
|
|
1769
|
+
* /
|
|
1770
|
+
* / CALLER: the owner, from the app's restart sheet (the surface budget: every method names its caller). Afterwards the app runs the engram's
|
|
1771
|
+
* / own `convertEarningsToCycles` as the owner, which pays any loan back FIRST.
|
|
1772
|
+
* /
|
|
1773
|
+
* / ⟨REWRITTEN 2026-10-26, the owner's ruling of that day on restarts⟩ What it does, in this order: stops the
|
|
1774
|
+
* / engram; adds compute — the owner's own (already added through `stopMyEngramForRestart` and a
|
|
1775
|
+
* / top-up from their account), or a loan of what it still lacks to run at its OWN setting (at most
|
|
1776
|
+
* / 0.25T, only after the biller confirms the wallet holds enough to repay it); installs the waiting
|
|
1777
|
+
* / security release if the engram is behind one and the owner allows automatic updates (paid as a
|
|
1778
|
+
* / security update — we pay because we do not want security incidents); puts the owner's freezing
|
|
1779
|
+
* / setting back; and only then starts it. It never lowers the setting on a running engram. A step
|
|
1780
|
+
* / that fails never leaves the engram stopped: the registry's sweep finishes it within minutes.
|
|
1781
|
+
* /
|
|
1782
|
+
* / Refused BEFORE anything is stopped, saying why: not your engram; sovereign; a change of owner
|
|
1783
|
+
* / unfinished; restarted in the last 7 days; a loan still owed; an update installing; a restart
|
|
1784
|
+
* / already running; code the registry never published; running (nothing to restart); needing more
|
|
1785
|
+
* / than one loan; a waiting security update that this restart could not cover (it would start old
|
|
1786
|
+
* / code); an engram opened through another engram that would need a loan; the fleet-wide ceiling;
|
|
1787
|
+
* / no biller, or a wallet too low to repay. A restart that lent nothing does not spend the week.
|
|
1788
|
+
* / ⟨CORRECTED 2026-10-26, later — the owner's restart choices of that day on lending to children and on
|
|
1789
|
+
* / the weekly limit⟩ The list above is
|
|
1790
|
+
* / the record of the build before them. Now: "restarted in the last 7 days" and "a loan still owed"
|
|
1791
|
+
* / refuse ONLY a restart that would LEND (the owner's restart choice: "apply the weekly limit only when
|
|
1792
|
+
* / we lend") — asked once the plan knows the loan, and again after every await before the loan is made
|
|
1793
|
+
* / (`RestartLoan.lendGate`); a restart on the owner's own compute is never refused by them and never
|
|
1794
|
+
* / spends the week, which is taken only in the step that records a loan. "An engram opened through
|
|
1795
|
+
* / another engram that would need a loan" is GONE (the owner's restart choice: "lend to children like any
|
|
1796
|
+
* / other engram") —
|
|
1797
|
+
* / such an engram is lent to under the same ceiling, wallet check and repay-first as any other: the
|
|
1798
|
+
* / biller reads the engram's OWN wallet by its own id, and the engram's own Convert repays. New: a
|
|
1799
|
+
* / second call while one is still running for the same engram (`restartCallsRunning`), which is
|
|
1800
|
+
* / what now keeps two interleaved calls from both lending or both stopping and starting — the week
|
|
1801
|
+
* / used to double as that guard.
|
|
1802
|
+
* / ⟨2026-11-04, beside the lists above⟩ Also refused, first after the status
|
|
1803
|
+
* / read: an ERASED engram (its canister holds no program) — nothing is stopped or lent into it.
|
|
1804
|
+
*/
|
|
1805
|
+
restartMyStoppedEngram: ActorMethod<[], Result_8>;
|
|
1306
1806
|
/**
|
|
1307
1807
|
* / Return to managed: user calls AFTER adding registry back as controller
|
|
1808
|
+
* /
|
|
1809
|
+
* / ⟨2026-11-02⟩ Refused for an engram opened through another, which is never independent.
|
|
1308
1810
|
*/
|
|
1309
1811
|
returnToManaged: ActorMethod<[], Result>;
|
|
1310
1812
|
/**
|
|
@@ -1313,6 +1815,15 @@ export interface _SERVICE {
|
|
|
1313
1815
|
* / controller can set it. When admin is set: the current admin hands off, or REGISTRY_ROOT reclaims.
|
|
1314
1816
|
*/
|
|
1315
1817
|
setAdmin: ActorMethod<[Principal], Result>;
|
|
1818
|
+
/**
|
|
1819
|
+
* / Set the consent origin every engram spawned from now on is told (admin only; `null` clears it, and
|
|
1820
|
+
* / newborns are then told none). An https origin only — no path, query or fragment, lowercase, bounded
|
|
1821
|
+
* / (`ConsentOrigin.check`); anything else is `#Invalid` and nothing changes. Engrams already born keep
|
|
1822
|
+
* / what they were told.
|
|
1823
|
+
* /
|
|
1824
|
+
* / CALLER: the registry admin, from the deployment's setup step, before the deployment's first spawn.
|
|
1825
|
+
*/
|
|
1826
|
+
setConsentOrigin: ActorMethod<[[] | [string]], Result>;
|
|
1316
1827
|
/**
|
|
1317
1828
|
* / Upload the engram template in ONE message — the single-shot path. For a wasm too large to
|
|
1318
1829
|
* / fit, use `engramWasmInit` → `engramWasmPushChunk` × N → `engramWasmFinalize` instead; the two
|
|
@@ -1344,11 +1855,11 @@ export interface _SERVICE {
|
|
|
1344
1855
|
* / of it — which is exactly the power this note exists to deny.
|
|
1345
1856
|
* /
|
|
1346
1857
|
* / ⟨RENAMED 2026-10-02 from `sysSetGenesisPredecessor` — the sys-tier retier ruled 2026-08-24,
|
|
1347
|
-
* / executed under the owner's 2026-10-02 ruling to carry out the
|
|
1348
|
-
* / recommended.⟩ CALLER: this registry's admin, a person, once, after the
|
|
1349
|
-
* / final head is captured. The `sys` prefix names the canister-to-canister
|
|
1350
|
-
* / admin-called method inside it made "a `sys` method has no human caller" false and
|
|
1351
|
-
* / uncheckable. The audit label moves with the name (`setGenesisPredecessor.denied`).
|
|
1858
|
+
* / executed under the owner's 2026-10-02 ruling to carry out the interface decisions reviewed
|
|
1859
|
+
* / before the 0.16.0 cut as recommended.⟩ CALLER: this registry's admin, a person, once, after the
|
|
1860
|
+
* / predecessor chain's final head is captured. The `sys` prefix names the canister-to-canister
|
|
1861
|
+
* / tier, so an admin-called method inside it made "a `sys` method has no human caller" false and
|
|
1862
|
+
* / therefore uncheckable. The audit label moves with the name (`setGenesisPredecessor.denied`).
|
|
1352
1863
|
*/
|
|
1353
1864
|
setGenesisPredecessor: ActorMethod<[Uint8Array | number[], bigint], Result>;
|
|
1354
1865
|
/**
|
|
@@ -1372,7 +1883,7 @@ export interface _SERVICE {
|
|
|
1372
1883
|
*/
|
|
1373
1884
|
setReserveGateEnabled: ActorMethod<[boolean], Result>;
|
|
1374
1885
|
setScreeningDenylist: ActorMethod<[Array<Principal>], Result>;
|
|
1375
|
-
setSpawnCeiling: ActorMethod<[bigint],
|
|
1886
|
+
setSpawnCeiling: ActorMethod<[bigint], Result_7>;
|
|
1376
1887
|
setTreasuryAnchorId: ActorMethod<[[] | [Principal]], Result>;
|
|
1377
1888
|
/**
|
|
1378
1889
|
* / Set the wallet-canister allowlist for the wallet-rooted exemption (admin-only). Small by
|
|
@@ -1385,6 +1896,9 @@ export interface _SERVICE {
|
|
|
1385
1896
|
* /
|
|
1386
1897
|
* / `claimSovereignty` sets this to `#ManualOnly` as a side effect, since a registry that is no
|
|
1387
1898
|
* / longer a controller could not honour anything else.
|
|
1899
|
+
* /
|
|
1900
|
+
* / ⟨2026-11-02⟩ An engram opened through another is refused `#ManualOnly`: it takes this registry's
|
|
1901
|
+
* / updates automatically for life.
|
|
1388
1902
|
*/
|
|
1389
1903
|
setUpdatePreference: ActorMethod<[UpdatePreference], Result>;
|
|
1390
1904
|
/**
|
|
@@ -1394,11 +1908,26 @@ export interface _SERVICE {
|
|
|
1394
1908
|
* / Admin dial for the upgrade top-up floor (0 = disabled). Capped at one endowment so the dial
|
|
1395
1909
|
* / itself cannot turn upgrades into an unbounded drain.
|
|
1396
1910
|
*/
|
|
1397
|
-
setUpgradeTopUpFloor: ActorMethod<[bigint],
|
|
1911
|
+
setUpgradeTopUpFloor: ActorMethod<[bigint], Result_7>;
|
|
1398
1912
|
/**
|
|
1399
1913
|
* / Root admin assigns the role key (pass null to clear, reverting the role to the root admin).
|
|
1400
1914
|
*/
|
|
1401
1915
|
setWasmAdmin: ActorMethod<[[] | [Principal]], Result>;
|
|
1916
|
+
/**
|
|
1917
|
+
* / Stop YOUR OWN stopped-or-starving engram so you can add compute from your account and restart it.
|
|
1918
|
+
* /
|
|
1919
|
+
* / CALLER: the owner, from the app's "Add compute from my account" when the engram has stopped and
|
|
1920
|
+
* / a security update is waiting (the surface budget: every method names its caller).
|
|
1921
|
+
* / ⟨2026-10-26, the owner's ruling on restarts⟩ Stops the engram so that compute the owner adds
|
|
1922
|
+
* / next cannot wake its old code; the owner then adds compute through the biller's own top-up and
|
|
1923
|
+
* / calls `restartMyStoppedEngram`, which installs the waiting update and starts it. If the owner
|
|
1924
|
+
* / walks away, the sweep finishes it after 30 minutes: install if covered, restore, start. Never
|
|
1925
|
+
* / left stopped. It lends nothing, so it takes no week; it refuses an engram that is not stuck, so
|
|
1926
|
+
* / a healthy engram is never taken offline (a build choice the rulings left open).
|
|
1927
|
+
* / ⟨2026-11-04⟩ It also refuses an ERASED engram (its canister holds no
|
|
1928
|
+
* / program): there is nothing to restart, and nothing is stopped.
|
|
1929
|
+
*/
|
|
1930
|
+
stopMyEngramForRestart: ActorMethod<[], Result_6>;
|
|
1402
1931
|
/**
|
|
1403
1932
|
* / An engram witnesses its own audit head. Callable ONLY by a registered engram — msg.caller is
|
|
1404
1933
|
* / the engram principal, so attribution needs no signature and cannot be forged by a third party.
|
|
@@ -1413,7 +1942,8 @@ export interface _SERVICE {
|
|
|
1413
1942
|
* / `AnchorConflicts.MAX_CONFLICTS_PER_ENGRAM` recorded contradictions gets `#Conflict` naming
|
|
1414
1943
|
* / this method, and the refusal is COUNTED in its certified leaf (`refusedConflicts`). The
|
|
1415
1944
|
* / evidence is not lost — the recorded ones stay forever and the count certifies that more came.
|
|
1416
|
-
* / ⟨0.16.0,
|
|
1945
|
+
* / ⟨0.16.0, canister-to-canister methods carry the sys prefix⟩
|
|
1946
|
+
* / RENAMED from `anchorHead` — a mutation wearing a noun, and a `sys` edge that
|
|
1417
1947
|
* / did not say so. It is called canister-to-canister (an engram or the market pushing its head
|
|
1418
1948
|
* / here), never by a person, and the `sys` prefix is what tells a reader scanning the surface
|
|
1419
1949
|
* / which methods are machine-to-machine.
|
|
@@ -1423,7 +1953,18 @@ export interface _SERVICE {
|
|
|
1423
1953
|
*/
|
|
1424
1954
|
sysAnchorHead: ActorMethod<[Uint8Array | number[], bigint], Result>;
|
|
1425
1955
|
/**
|
|
1426
|
-
* /
|
|
1956
|
+
* / CALLER: an engram, from inside its owner's `convertEarningsToCycles`, once the conversion landed
|
|
1957
|
+
* / (the surface budget: every method names its caller). Attach up to what is owed: the registry accepts no more than the outstanding loan
|
|
1958
|
+
* / (the network returns the rest) and records it. `#NotFound` when nothing is owed (the loan was
|
|
1959
|
+
* / written off, or repaid): the engram then clears its own record.
|
|
1960
|
+
* / ⟨CHANGED 2026-10-26, the owner's ruling on restarts⟩ REPAY-ONLY. It no longer puts a freezing setting back
|
|
1961
|
+
* / (the restart restores it before the start) and no longer queues a security push (the restart
|
|
1962
|
+
* / installs it before the start; the wake watcher covers other wakes). The name and reply are
|
|
1963
|
+
* / unchanged, so the engram's hand client still matches.
|
|
1964
|
+
*/
|
|
1965
|
+
sysCloseRestart: ActorMethod<[], Result_5>;
|
|
1966
|
+
/**
|
|
1967
|
+
* / ⟨2026-09-29, a review: a half-finished change of owner⟩ A SOVEREIGN engram reports that it
|
|
1427
1968
|
* / moved control of its code to `newOwner`, which ends the change of owner this registry marked
|
|
1428
1969
|
* / when it moved its record (`ControlHandover.Pending`). Until this arrives the registry refuses the
|
|
1429
1970
|
* / new owner's control-changing calls on the engram, because it cannot see a sovereign engram's
|
|
@@ -1444,12 +1985,24 @@ export interface _SERVICE {
|
|
|
1444
1985
|
* / cycles-attached like the sweep; same row semantics, one engram, no heartbeat stamp
|
|
1445
1986
|
* / (a single probe is not a completed round).
|
|
1446
1987
|
*/
|
|
1447
|
-
sysMeterEngram: ActorMethod<[Principal],
|
|
1988
|
+
sysMeterEngram: ActorMethod<[Principal], Result_4>;
|
|
1989
|
+
/**
|
|
1990
|
+
* / CALLER: an engram opened through another, from inside its three sign-in writers — `setOwnerSignIn`,
|
|
1991
|
+
* / `declineSignIn` (the sign-in's own decline) and `acceptSignIn` — BEFORE it writes its own seat
|
|
1992
|
+
* / (the surface budget: every method names its caller). ⟨2026-11-04, the owner's ruling that the registry
|
|
1993
|
+
* / keeps a child's sign-in⟩ The registry keeps the child's seated sign-in
|
|
1994
|
+
* / (`childSignIn` says why, and why the order is registry-first): `?p` notes `p` as the sign-in, `null`
|
|
1995
|
+
* / notes that none is seated. A record argument, so it can grow by opt fields (the interface-evolution rule: an argument tuple is frozen once released).
|
|
1996
|
+
* / Refused, with nothing written: a caller this registry did not open through another engram (a first
|
|
1997
|
+
* / engram has no sign-in; anything else is no engram here), and a sign-in the door would refuse at
|
|
1998
|
+
* / birth (`ChildDoor.signInRefusal` — the key file itself, the anonymous principal, a canister).
|
|
1999
|
+
*/
|
|
2000
|
+
sysNoteChildSignIn: ActorMethod<[{ signIn: [] | [Principal] }], Result>;
|
|
1448
2001
|
/**
|
|
1449
2002
|
* / ⟨2026-10-02⟩ An engram tells this registry that its owner reset it.
|
|
1450
2003
|
* /
|
|
1451
2004
|
* / CALLER: a registered engram, about itself — `canisterToOwner` membership, checked first
|
|
1452
|
-
* / (
|
|
2005
|
+
* / (the surface budget: every `sys` method names and checks its caller). The engram sends it from its reset
|
|
1453
2006
|
* / path. WHY IT EXISTS: a reset purges the engram's roster, and the endings it sends reach this
|
|
1454
2007
|
* / registry only for agents still active, so a reset after the last agent left reached this
|
|
1455
2008
|
* / registry nowhere and the engram read as kept.
|
|
@@ -1464,7 +2017,7 @@ export interface _SERVICE {
|
|
|
1464
2017
|
* / ⟨0.16.0, RULED 2026-08-17, BUILT 2026-08-20⟩ The engram tells this registry that custody moved.
|
|
1465
2018
|
* /
|
|
1466
2019
|
* / WHAT IT FIXES: `transferOwnership` lives on the ENGRAM and, until this method existed, told the
|
|
1467
|
-
* / registry nothing. `verifyEngramActiveOwner` — the
|
|
2020
|
+
* / registry nothing. `verifyEngramActiveOwner` — the biller's money gate — therefore kept
|
|
1468
2021
|
* / answering for the ORIGINAL owner, so a new owner could not fund the engram they now own. The
|
|
1469
2022
|
* / old comment above `verifyEngramActiveOwner` called that gap "by design"; it was not, and the
|
|
1470
2023
|
* / 2026-08-17 ruling shipped this seam to close it inside the free-break window.
|
|
@@ -1490,9 +2043,9 @@ export interface _SERVICE {
|
|
|
1490
2043
|
* / guard behind. The check below mirrors the spawn guard EXACTLY — active AND not abandoned —
|
|
1491
2044
|
* / because an abandoned engram is not a live claim on its owner's slot.
|
|
1492
2045
|
* /
|
|
1493
|
-
* / ⟨2026-09-29, owner ruling
|
|
1494
|
-
* /
|
|
1495
|
-
* /
|
|
2046
|
+
* / ⟨2026-09-29, the owner's ruling: a change of owner hands over control of the code⟩ THIS METHOD
|
|
2047
|
+
* / NOW MOVES CONTROL TOO, or tells the engram to. It used to move the record and nothing else, so
|
|
2048
|
+
* / the former owner stayed a controller and could still replace the code. Now:
|
|
1496
2049
|
* / · MANAGED (the registry is a controller): the registry sets the controllers to itself and the
|
|
1497
2050
|
* / new owner and answers `#MovedByRegistry`. If that fails, the record is put back and the
|
|
1498
2051
|
* / answer is `#Err` — the engram then does not change owner.
|
|
@@ -1505,7 +2058,106 @@ export interface _SERVICE {
|
|
|
1505
2058
|
* / a transfer the engram did not finish, and moves control again (that is the way out `stuck`
|
|
1506
2059
|
* / names). The rules are in `src/shared/ControlHandover.mo`.
|
|
1507
2060
|
*/
|
|
1508
|
-
sysNotifyOwnershipTransfer: ActorMethod<[Principal],
|
|
2061
|
+
sysNotifyOwnershipTransfer: ActorMethod<[Principal], Result_3>;
|
|
2062
|
+
/**
|
|
2063
|
+
* / ⟨2026-11-15, from an adversarial review, ruled the same day: the new owner must accept⟩ AN ENGRAM
|
|
2064
|
+
* / FILES ITS OWNER'S OFFER of a change of owner to `newOwner` (the engram's `transferOwnership`).
|
|
2065
|
+
* /
|
|
2066
|
+
* / IT MOVES NOTHING. The record of who owns the engram, control of its code, the predecessor
|
|
2067
|
+
* / links and everything filed under `newOwner`'s key are untouched; `newOwner` is not looked up at
|
|
2068
|
+
* / all, so the answer says nothing about them and no call of theirs answers differently. The row
|
|
2069
|
+
* / is filed by engram (`ownershipOffers`), replaces any earlier offer of the same engram together
|
|
2070
|
+
* / with its acceptance, and ends at `expiresAtNs` or at this registry's own limit
|
|
2071
|
+
* / (`OwnershipOffer.TTL_NS`, 7 days), whichever is sooner.
|
|
2072
|
+
* /
|
|
2073
|
+
* / Gated like `sysNotifyOwnershipTransfer`: the caller must BE a registered engram. Refused for
|
|
2074
|
+
* / an engram opened through another (it never changes owner), for an offer to the owner the
|
|
2075
|
+
* / registry already records, and, while a change of owner is unfinished, for an offer to anyone
|
|
2076
|
+
* / but its would-be owner.
|
|
2077
|
+
* /
|
|
2078
|
+
* / TRUST: the engram's word is taken for the OFFER only, and an offer binds nobody. The
|
|
2079
|
+
* / acceptance is `acceptEngramOffer`, which only the named principal can make.
|
|
2080
|
+
*/
|
|
2081
|
+
sysOfferOwnership: ActorMethod<[Principal, bigint], Result>;
|
|
2082
|
+
/**
|
|
2083
|
+
* / ⟨2026-10-01, the owner's ruling of that day: build this now, not at the first paid engagement⟩
|
|
2084
|
+
* / THE SPONSORED DOOR. An engram opens an engram for one of its agents: the caller is the engram
|
|
2085
|
+
* / (the engram it is opened from — `parentOf` in code), `ownerKey` is the agent's LASTING key, which
|
|
2086
|
+
* / owns what is opened, and the cycles the opened engram lives on are the ones the caller ATTACHES.
|
|
2087
|
+
* /
|
|
2088
|
+
* / CALLER: a registered engram — `canisterToOwner` membership, checked first, exactly as
|
|
2089
|
+
* / `sysRecordAgentEdge` checks it (the surface budget: every `sys` method names and checks its caller). The
|
|
2090
|
+
* / engram's own rules (the owner's standing allowance for this agent, its frozen-payments state,
|
|
2091
|
+
* / its balance) are the engram's to check before it calls; this method checks what only the
|
|
2092
|
+
* / registry can know.
|
|
2093
|
+
* /
|
|
2094
|
+
* / NOTHING IS ACCEPTED UNTIL EVERY CHECK HAS PASSED (`ChildDoor.admission`, cheapest first), so
|
|
2095
|
+
* / every refusal before the accept returns the attached cycles to the caller by construction —
|
|
2096
|
+
* / the IC returns unaccepted cycles when the call replies. After the accept:
|
|
2097
|
+
* / · the network refuses the canister → what it refunded is deposited back to the caller, and
|
|
2098
|
+
* / the reply says how much came back;
|
|
2099
|
+
* / · the template will not install after one retry → the cycles are INSIDE the new canister and
|
|
2100
|
+
* / no canister can withdraw another's cycles. The one honest exception to "returned on every
|
|
2101
|
+
* / failure": nothing is recorded, and the reply names the canister, its controllers (this
|
|
2102
|
+
* / registry and the key) and what the key can do with it;
|
|
2103
|
+
* / ⟨CORRECTED 2026-11-02, beside the line above — the owner's ruling that the registry alone
|
|
2104
|
+
* / controls an opened engram⟩ The controller is THIS REGISTRY ALONE; the key is not one and can install
|
|
2105
|
+
* / nothing. The reply names the canister and says the cycles sit in it unrecorded, for whoever
|
|
2106
|
+
* / runs this deployment to decide on;
|
|
2107
|
+
* / · the key came to own an engram during the awaits → the new canister is named, nothing is
|
|
2108
|
+
* / recorded (the same third guard `spawnEngramFor` carries).
|
|
2109
|
+
* /
|
|
2110
|
+
* / WHAT IT DOES NOT DO, deliberately: it never attaches the registry's own cycles (the grant stays
|
|
2111
|
+
* / with first engrams); it never writes a predecessor (a key with any record was refused); it never
|
|
2112
|
+
* / consults the reserve gate (the parent owner's approval is this door's admission — the gate's
|
|
2113
|
+
* / arming note stays on `provisionEngram`); it never tells the calling engram anything but this
|
|
2114
|
+
* / reply. No payment AMOUNT reaches it (money is the biller's, cycles are the registry's): it carries cycles and a key, nothing else.
|
|
2115
|
+
* /
|
|
2116
|
+
* / THE RATE LIMIT ⟨2026-10-01, evening — the owner's ruling that evening; until then this door shared
|
|
2117
|
+
* / first engrams' limiter in full: their 24-hour count, their in-flight count and
|
|
2118
|
+
* / `effectiveDailyCap`⟩. The door shares only the DIAL (`spawnCeiling`) and the WINDOW LENGTH (24
|
|
2119
|
+
* / hours). Its count is its own (`sponsoredCreationTimestampsBuf`, pruned by
|
|
2120
|
+
* / `pruneSponsoredWindow`), its in-flight count is its own (`sponsoredInFlight`), and its cap is
|
|
2121
|
+
* / `spawnCeiling` alone — the reserve-derived term never applies, because the opened engram lives
|
|
2122
|
+
* / on the cycles the caller attached and the registry funds nothing. So an opening never uses up a
|
|
2123
|
+
* / first engram's slot, and is never refused for the registry's own low balance. The per-key
|
|
2124
|
+
* / pending mark (`createEngramPending`) stays shared: it is about ONE key, not a count, and a key
|
|
2125
|
+
* / must not be mid-spawn at both doors at once.
|
|
2126
|
+
* /
|
|
2127
|
+
* / THE CUT-OFF AT BIRTH. If the caller ended the key's engagement while the canister was being
|
|
2128
|
+
* / created (the ending is recorded by `sysRecordAgentEdge` between this method's awaits), the
|
|
2129
|
+
* / opened engram is recorded AND cut off in the same step — the cycles are already in it, so the
|
|
2130
|
+
* / key keeps it, but it starts on nobody's record. Without this the ending's cut-off writer would
|
|
2131
|
+
* / have found no `openedThroughParent` row yet, and the engram would never be cut off.
|
|
2132
|
+
* / WHAT WOULD MAKE THIS WRONG: a second path that writes `parentOf`, or an `await` placed between
|
|
2133
|
+
* / the post-await re-check and the record below.
|
|
2134
|
+
* /
|
|
2135
|
+
* / ⟨2026-11-02, the owner's rulings that the registry alone controls an opened engram, and "1-4 all as
|
|
2136
|
+
* / you recommended"⟩ CONTROLLED BY THIS REGISTRY ALONE, AND BORN KNOWING ITS PARENT AND ITS SIGN-IN.
|
|
2137
|
+
* / The canister's controllers are `[this registry]` — the key is not a controller, so it can never
|
|
2138
|
+
* / reinstall, delete or re-control the engram; only this registry installs code on it. Such an
|
|
2139
|
+
* / engram is managed for life: `claimSovereignty`, `returnToManaged`, `abandonMyEngram`, a
|
|
2140
|
+
* / `#ManualOnly` preference and a change of owner (`sysNotifyOwnershipTransfer`) are all refused
|
|
2141
|
+
* / for it, by `parentOf`. `signIn` is the opened engram's second credential, named by the person
|
|
2142
|
+
* / running the agent (`ChildDoor.signInRefusal` refuses the key itself, the anonymous principal and
|
|
2143
|
+
* / a canister); it and the parent travel in the engram's init record, so the engram knows both
|
|
2144
|
+
* / before it answers its first message. `null` = no sign-in: the engram keeps small limits for life.
|
|
2145
|
+
* / An engram built before this argument sends one argument; the missing trailing `opt` decodes as
|
|
2146
|
+
* / `null` (Candid's rule for a missing optional argument), and the engram opens with no sign-in.
|
|
2147
|
+
* / ⟨CORRECTED 2026-11-02, later — from the review of the step that made the registry a child's only
|
|
2148
|
+
* / controller, beside the two lines above, which no longer hold⟩
|
|
2149
|
+
* / ONE RECORD, A NEW NAME. This door was `sysSpawnChild(ownerKey : Principal)`; giving
|
|
2150
|
+
* / it a second positional argument grew its argument TUPLE, which the interface-evolution rule freezes once released ("evolution
|
|
2151
|
+
* / happens inside records", ratified 2026-08-16) and the interface gate reads as ILLEGAL. So the door is
|
|
2152
|
+
* / `sysOpenChild({ ownerKey; signIn })` — later fields are opt fields of this record, never another
|
|
2153
|
+
* / argument — and `sysSpawnChild` is REMOVED (a NOTICE at the gate). An engram built before this
|
|
2154
|
+
* / change still calls `sysSpawnChild`; this registry no longer serves it, so that call is REJECTED
|
|
2155
|
+
* / (IC0536, a reject the engram's `try` catches — a probe of the interface-evolution rule), the attached cycles come back
|
|
2156
|
+
* / as the call's refund, and nothing is opened. An older engram therefore never opens an engram with
|
|
2157
|
+
* / no sign-in by accident; it opens them again once it runs a template that calls this method.
|
|
2158
|
+
* / (Was: the one-argument call decoded `signIn` as `null` — INFERRED for moc 2.1.0, never witnessed.)
|
|
2159
|
+
*/
|
|
2160
|
+
sysOpenChild: ActorMethod<[{ ownerKey: Principal; signIn: [] | [Principal] }], Result_2>;
|
|
1509
2161
|
/**
|
|
1510
2162
|
* / ⟨2026-09-28, owner decision: build the full agent track-record design for the launch release⟩
|
|
1511
2163
|
* / An engram tells this registry that one of its agents started, or ended and WHY.
|
|
@@ -1543,22 +2195,22 @@ export interface _SERVICE {
|
|
|
1543
2195
|
* / row and one summary. The key never reaches the registry; the plan's separate new `sys-` method
|
|
1544
2196
|
* / for the root is not built — this method was itself new in the same release, so it carries the
|
|
1545
2197
|
* / root instead of the key, and a second method would be a parallel path for one fact.
|
|
1546
|
-
* / ⟨CORRECTED 2026-09-28, review finding
|
|
2198
|
+
* / ⟨CORRECTED 2026-09-28, a review finding: the trust in this paragraph was misplaced, and
|
|
1547
2199
|
* / "the key never reaches the registry" is no longer true. An engram's owner is a controller of
|
|
1548
2200
|
* / its canister and can install code that reports any root, so a start now carries the root's
|
|
1549
2201
|
* / enrolment statement (`Engagements.EnrolmentProof`) and THIS method verifies it
|
|
1550
|
-
* / (`EdgeProof.rootOf`), and refuses past `Engagements.MAX_ENGAGEMENTS_PER_ENGRAM` (
|
|
2202
|
+
* / (`EdgeProof.rootOf`), and refuses past `Engagements.MAX_ENGAGEMENTS_PER_ENGRAM` (a review finding). The
|
|
1551
2203
|
* / enrolled key therefore DOES reach the registry, stored on the engagement record and never
|
|
1552
2204
|
* / served. The ending's reason is still the owner's assertion; the agent's remedy for a false
|
|
1553
2205
|
* / one is its dispute. Records stay keyed by the agent's root, as above.⟩
|
|
1554
|
-
* / ⟨MOVED 2026-09-29, review finding
|
|
2206
|
+
* / ⟨MOVED 2026-09-29, a review finding: the correction above stood in the middle of this
|
|
1555
2207
|
* / paragraph, so the sentence it corrects came after it and read as the last word — in this file
|
|
1556
2208
|
* / and in the published registry.did.⟩
|
|
1557
|
-
* / ⟨2026-09-29, review finding
|
|
2209
|
+
* / ⟨2026-09-29, a review finding⟩ An engagement is matched on the enrolled key AND the invite
|
|
1558
2210
|
* / its statement names, not on the key alone: one statement opens at most one engagement, and a
|
|
1559
2211
|
* / key the engram re-admits after a reset, under a fresh statement for a fresh invite, opens a new
|
|
1560
2212
|
* / one (`Engagements.admit`).
|
|
1561
|
-
* / ⟨CORRECTED 2026-09-29, review finding
|
|
2213
|
+
* / ⟨CORRECTED 2026-09-29, a review finding: "a repeated `#Ended` writes nothing, and both
|
|
1562
2214
|
* / answer `#Ok`" is now narrower. An ending names the engagement it ends (the enrolled key and the
|
|
1563
2215
|
* / invite) and the day the engram recorded it, because a lost ending is now RE-SENT by the
|
|
1564
2216
|
* / engram's `resyncAgentEdges`. The same ending again answers `#Ok` and writes nothing; one
|
|
@@ -1567,96 +2219,99 @@ export interface _SERVICE {
|
|
|
1567
2219
|
*/
|
|
1568
2220
|
sysRecordAgentEdge: ActorMethod<[{ root: Principal; event: EdgeEvent }], Result>;
|
|
1569
2221
|
/**
|
|
1570
|
-
* /
|
|
1571
|
-
* /
|
|
1572
|
-
* /
|
|
1573
|
-
* /
|
|
2222
|
+
* / CALLER: an engram, from inside its `sysReturnUpgradeAdvance` (the surface budget: every method names its caller). Attach what is being
|
|
2223
|
+
* / given back of the compute a paid security update advanced it. The registry accepts no more than
|
|
2224
|
+
* / the outstanding advance (the network returns the rest) and writes off whatever was not returned
|
|
2225
|
+
* / — what the install used and what the engram had to keep — never carried as a debt.
|
|
2226
|
+
* / ⟨2026-10-26, the owner's ruling "accounting should be exact"⟩ The write-off here is the exact
|
|
2227
|
+
* / figure advance − accepted, from the ledger entry and the cycles actually accepted, and the audit
|
|
2228
|
+
* / line carries advance, returned and writtenOff.
|
|
2229
|
+
* / ⟨2026-10-26, later — the owner's restart choices on naming the release and on the 90-day write-off⟩
|
|
2230
|
+
* / The engram may have more than one
|
|
2231
|
+
* / advance out (one per release paid; RestartLoan.repayAdvances): the cycles are accepted up to their
|
|
2232
|
+
* / sum and settled OLDEST FIRST, and each advance gets its own audit line naming the release it was
|
|
2233
|
+
* / paid for (`template=`), with its own returned and written-off parts — the lines sum exactly to
|
|
2234
|
+
* / `accepted` and to the write-off. AN ADVANCE ALREADY WRITTEN OFF (the 90-day sweep) IS NOT ON THE
|
|
2235
|
+
* / LEDGER, so nothing sent for it is accepted — the network returns those cycles to the engram — and
|
|
2236
|
+
* / `advanceReturned` never counts a written-off cycle: no double count. When nothing at all is out,
|
|
2237
|
+
* / the reply is `#NotFound` and nothing is accepted (as before).
|
|
2238
|
+
* / ⟨CORRECTED 2026-10-26, later — a review fix to the owner's restart choice to name the release⟩
|
|
2239
|
+
* / NEWEST first, not oldest first: the engram can
|
|
2240
|
+
* / give back only what it holds above its balance before the latest deposit, so the cycles are the
|
|
2241
|
+
* / newest advance's (RestartLoan.repayAdvances says why, and when that reading is wrong).
|
|
2242
|
+
* / ⟨CHANGED 2026-10-26, the owner's give-back ruling: "take back only what we added; anything left
|
|
2243
|
+
* / over goes to the 90-day write-off"⟩ The engram now names THE ADVANCE it is giving back
|
|
2244
|
+
* / (`advanceId`, which the registry handed it in `sysReturnUpgradeAdvance` — the one this install's
|
|
2245
|
+
* / deposit put on the ledger). The registry accepts AT MOST THAT ADVANCE'S AMOUNT, settles THAT
|
|
2246
|
+
* / entry alone (returned + written off = its amount, one `upgrade.advance.returned` line naming its
|
|
2247
|
+
* / release and id) and leaves every other advance of the engram on the ledger, for its own
|
|
2248
|
+
* / give-back or the 90-day write-off. The paragraphs above about "the sum", "settled OLDEST FIRST"
|
|
2249
|
+
* / and "NEWEST first" describe the shape this replaces. An id that is not on the ledger for this
|
|
2250
|
+
* / caller (already settled, written off after 90 days, or never its own) accepts nothing — the
|
|
2251
|
+
* / network returns the attached cycles to the engram — and answers `#NotFound`; when a recorded
|
|
2252
|
+
* / engram attached cycles, an `upgrade.advance.notOut` line in the registry's unchained refusal log
|
|
2253
|
+
* / says so (never the chained audit log: it moves nothing, and any engram can send it). Nothing is
|
|
2254
|
+
* / ever counted twice.
|
|
2255
|
+
* / WHAT WOULD MAKE THIS WRONG: an engram naming an id other than the one it was handed — it can only
|
|
2256
|
+
* / name one of its OWN advances (the caller must match), so the worst it can do is settle its own
|
|
2257
|
+
* / other advance early with cycles that are still the registry's.
|
|
2258
|
+
*/
|
|
2259
|
+
sysRepayUpgradeAdvance: ActorMethod<[{ advanceId: bigint }], Result_1>;
|
|
2260
|
+
/**
|
|
2261
|
+
* / ⟨2026-09-29, the owner's code-handover ruling⟩ A SOVEREIGN engram could not change its own
|
|
2262
|
+
* / controllers after this registry moved its record, and asks for the record back so the transfer
|
|
2263
|
+
* / does not complete. Gated like `sysNotifyOwnershipTransfer` (the caller must BE the engram), and
|
|
2264
|
+
* / only for an engram the registry records as sovereign — a managed engram's controllers are this
|
|
1574
2265
|
* / registry's to move, and its record is put back inside `sysNotifyOwnershipTransfer` itself.
|
|
1575
2266
|
* / Refuses, saying why, when the record cannot be put back (`ControlHandover.revertRefusal`); the
|
|
1576
2267
|
* / engram then answers its owner with `ControlHandover.stuck`.
|
|
1577
2268
|
*/
|
|
1578
2269
|
sysRevertOwnershipTransfer: ActorMethod<[Principal], Result>;
|
|
1579
|
-
/**
|
|
1580
|
-
* / ⟨2026-10-01, the owner's ruling of that day: the October concept's decision 1, "build it now"⟩
|
|
1581
|
-
* / THE SPONSORED DOOR. An engram opens an engram for one of its agents: the caller is the engram
|
|
1582
|
-
* / (the engram it is opened from — `parentOf` in code), `ownerKey` is the agent's LASTING key, which
|
|
1583
|
-
* / owns what is opened, and the cycles the opened engram lives on are the ones the caller ATTACHES.
|
|
1584
|
-
* /
|
|
1585
|
-
* / CALLER: a registered engram — `canisterToOwner` membership, checked first, exactly as
|
|
1586
|
-
* / `sysRecordAgentEdge` checks it (ADR-0020: every `sys` method names and checks its caller). The
|
|
1587
|
-
* / engram's own rules (the owner's standing allowance for this agent, its frozen-payments state,
|
|
1588
|
-
* / its balance) are the engram's to check before it calls; this method checks what only the
|
|
1589
|
-
* / registry can know.
|
|
1590
|
-
* /
|
|
1591
|
-
* / NOTHING IS ACCEPTED UNTIL EVERY CHECK HAS PASSED (`ChildDoor.admission`, cheapest first), so
|
|
1592
|
-
* / every refusal before the accept returns the attached cycles to the caller by construction —
|
|
1593
|
-
* / the IC returns unaccepted cycles when the call replies. After the accept:
|
|
1594
|
-
* / · the network refuses the canister → what it refunded is deposited back to the caller, and
|
|
1595
|
-
* / the reply says how much came back;
|
|
1596
|
-
* / · the template will not install after one retry → the cycles are INSIDE the new canister and
|
|
1597
|
-
* / no canister can withdraw another's cycles. The one honest exception to "returned on every
|
|
1598
|
-
* / failure": nothing is recorded, and the reply names the canister, its controllers (this
|
|
1599
|
-
* / registry and the key) and what the key can do with it;
|
|
1600
|
-
* / · the key came to own an engram during the awaits → the new canister is named, nothing is
|
|
1601
|
-
* / recorded (the same third guard `spawnEngramFor` carries).
|
|
1602
|
-
* /
|
|
1603
|
-
* / WHAT IT DOES NOT DO, deliberately: it never attaches the registry's own cycles (the grant stays
|
|
1604
|
-
* / with first engrams); it never writes a predecessor (a key with any record was refused); it never
|
|
1605
|
-
* / consults the reserve gate (the parent owner's approval is this door's admission — the gate's
|
|
1606
|
-
* / arming note stays on `provisionEngram`); it never tells the calling engram anything but this
|
|
1607
|
-
* / reply. No payment AMOUNT reaches it (ADR-0005): it carries cycles and a key, nothing else.
|
|
1608
|
-
* /
|
|
1609
|
-
* / THE RATE LIMIT ⟨2026-10-01, evening — the owner's ruling "1B"; until then this door shared
|
|
1610
|
-
* / first engrams' limiter in full: their 24-hour count, their in-flight count and
|
|
1611
|
-
* / `effectiveDailyCap`⟩. The door shares only the DIAL (`spawnCeiling`) and the WINDOW LENGTH (24
|
|
1612
|
-
* / hours). Its count is its own (`sponsoredCreationTimestampsBuf`, pruned by
|
|
1613
|
-
* / `pruneSponsoredWindow`), its in-flight count is its own (`sponsoredInFlight`), and its cap is
|
|
1614
|
-
* / `spawnCeiling` alone — the reserve-derived term never applies, because the opened engram lives
|
|
1615
|
-
* / on the cycles the caller attached and the registry funds nothing. So an opening never uses up a
|
|
1616
|
-
* / first engram's slot, and is never refused for the registry's own low balance. The per-key
|
|
1617
|
-
* / pending mark (`createEngramPending`) stays shared: it is about ONE key, not a count, and a key
|
|
1618
|
-
* / must not be mid-spawn at both doors at once.
|
|
1619
|
-
* /
|
|
1620
|
-
* / THE CUT-OFF AT BIRTH. If the caller ended the key's engagement while the canister was being
|
|
1621
|
-
* / created (the ending is recorded by `sysRecordAgentEdge` between this method's awaits), the
|
|
1622
|
-
* / opened engram is recorded AND cut off in the same step — the cycles are already in it, so the
|
|
1623
|
-
* / key keeps it, but it starts on nobody's record. Without this the ending's cut-off writer would
|
|
1624
|
-
* / have found no `openedThroughParent` row yet, and the engram would never be cut off.
|
|
1625
|
-
* / WHAT WOULD MAKE THIS WRONG: a second path that writes `parentOf`, or an `await` placed between
|
|
1626
|
-
* / the post-await re-check and the record below.
|
|
1627
|
-
*/
|
|
1628
|
-
sysSpawnChild: ActorMethod<[Principal], Result_1>;
|
|
1629
2270
|
/**
|
|
1630
2271
|
* / Admin: upgrade one engram to the current template. RESPECTS the owner's update preference —
|
|
1631
2272
|
* / an engram set to `#ManualOnly` is not moved by this method, which is what makes the preference
|
|
1632
2273
|
* / meaningful rather than advisory. The owner's own `upgradeMyEngram` is unaffected either way.
|
|
2274
|
+
* /
|
|
2275
|
+
* / ⟨2026-10-25, the owner's ruling of that day⟩ Same funding decision and dip as the owner's pull:
|
|
2276
|
+
* / paid only for a #Security update on a running engram. A push is the registry's own initiative,
|
|
2277
|
+
* / so where the engram cannot hold the install even with its setting lowered, the push is SKIPPED
|
|
2278
|
+
* / with `#Conflict` and not attempted — the owner can still pull it, and the pull is never refused.
|
|
2279
|
+
* / ⟨2026-11-04⟩ An ERASED engram (its canister holds no program) is not
|
|
2280
|
+
* / pushed: `#Conflict`, by name, before anything is added.
|
|
1633
2281
|
*/
|
|
1634
2282
|
upgradeEngram: ActorMethod<[Principal], Result>;
|
|
1635
2283
|
/**
|
|
1636
2284
|
* / Upgrade YOUR OWN engram to the registry's current template. Self-service — no admin, no
|
|
1637
2285
|
* / queue, no approval.
|
|
1638
2286
|
* /
|
|
1639
|
-
* /
|
|
1640
|
-
* /
|
|
1641
|
-
* /
|
|
1642
|
-
* /
|
|
1643
|
-
* /
|
|
1644
|
-
* /
|
|
1645
|
-
* /
|
|
1646
|
-
* /
|
|
1647
|
-
* /
|
|
1648
|
-
* /
|
|
1649
|
-
* /
|
|
1650
|
-
* /
|
|
1651
|
-
* /
|
|
1652
|
-
* /
|
|
1653
|
-
* /
|
|
1654
|
-
* /
|
|
1655
|
-
* /
|
|
1656
|
-
* /
|
|
1657
|
-
* /
|
|
1658
|
-
* /
|
|
1659
|
-
* /
|
|
2287
|
+
* / ⟨2026-10-25, the owner's ruling of that day⟩ THE INSTALL IS ALWAYS ATTEMPTED. Refusing an owner
|
|
2288
|
+
* / their own update for nonpayment is the ransom the continuity model forbids, so this method never
|
|
2289
|
+
* / refuses for compute or payment. What the registry PAYS for is narrower: a #Security update on a
|
|
2290
|
+
* / running engram, any size — paid because we do not want security incidents (the owner,
|
|
2291
|
+
* / 2026-10-25). A #Feature update runs on the engram's own compute. Four standing exclusions are
|
|
2292
|
+
* / never paid for: an engram that has stopped (below its running line — it runs nothing, so its old
|
|
2293
|
+
* / code is not exposed while stopped), one opened through a parent (the ruling of 2026-10-01), one
|
|
2294
|
+
* / running a module the registry never published (2026-09-28), and a second deposit for the same
|
|
2295
|
+
* / release.
|
|
2296
|
+
* / ⟨CORRECTED 2026-10-26, the owner's rulings of that day⟩ THREE standing exclusions: an engram
|
|
2297
|
+
* / opened through a parent is now paid for a security update like any other ("including child
|
|
2298
|
+
* / engrams, but not including engrams running unofficial code"), and a #Feature update is never
|
|
2299
|
+
* / paid, rent or no rent ("where rent is paid, feature upgrades are paid by the engram").
|
|
2300
|
+
* / ⟨CORRECTED 2026-10-26, later — the owner's restart choice of that day: "pay whenever the engram is
|
|
2301
|
+
* / missing any security release, whatever the latest release is labelled"⟩ "a #Feature update is
|
|
2302
|
+
* / never paid" now excepts an engram still missing an earlier security release: its install of a
|
|
2303
|
+
* / #Feature template is paid as a security update, because the template carries that fix
|
|
2304
|
+
* / (UpgradeFunding.effectiveClass) — unless the template is itself behind a security release.
|
|
2305
|
+
* / When it helps, the registry lowers the engram's freezing setting to one hour for the
|
|
2306
|
+
* / install and puts the owner's value back after (the dip), so an install needs only ~0.32T above
|
|
2307
|
+
* / an hour's burn rather than the hold above the whole 30-day line.
|
|
2308
|
+
* /
|
|
2309
|
+
* / When the install FAILS after the registry declined to pay, the reply says why and what to do
|
|
2310
|
+
* / (UpgradeFunding.pullFailure): `#Conflict` when the engram needs more compute (the owner's
|
|
2311
|
+
* / action — add compute), `#Unavailable` when the registry could not pay this time (retryable).
|
|
2312
|
+
* / A failure after a paid or unneeded deposit answers `#Unavailable` with the network's reply.
|
|
2313
|
+
* / ⟨2026-11-04⟩ On an ERASED engram (its canister holds no program) nothing
|
|
2314
|
+
* / is paid; the install is still attempted, the network refuses it, and the reply says "erased".
|
|
1660
2315
|
* /
|
|
1661
2316
|
* / An engram already on the current template is a silent no-op. A SOVEREIGN engram gets
|
|
1662
2317
|
* / "registry is no longer a controller" — accurate, because it is no longer ours to install on.
|
|
@@ -1667,7 +2322,7 @@ export interface _SERVICE {
|
|
|
1667
2322
|
*/
|
|
1668
2323
|
upgradeMyEngram: ActorMethod<[], Result>;
|
|
1669
2324
|
/**
|
|
1670
|
-
* / True iff `canisterId` is a registered, `#Active` engram owned by `claimedOwner`. The
|
|
2325
|
+
* / True iff `canisterId` is a registered, `#Active` engram owned by `claimedOwner`. The biller's
|
|
1671
2326
|
* / money gate: fund ONLY an active engram the paying caller owns, since minting cycles to a
|
|
1672
2327
|
* / frozen or deleted canister strands the funds.
|
|
1673
2328
|
* /
|
|
@@ -1682,7 +2337,7 @@ export interface _SERVICE {
|
|
|
1682
2337
|
* / born-clean badge does. A query cannot make inter-canister calls, so this one cannot ask.
|
|
1683
2338
|
* /
|
|
1684
2339
|
* / ⟨Promoted from `//` to `///` 2026-08-21. Everything above was written as plain comments, so
|
|
1685
|
-
* / registry.did published the
|
|
2340
|
+
* / registry.did published the biller's money gate with NO explanation at all while 53 lines of
|
|
1686
2341
|
* / it sat in the source. The correction history stays `//` on purpose — it is addressed to an
|
|
1687
2342
|
* / editor, and only what a CALLER needs belongs in the interface.⟩
|
|
1688
2343
|
*/
|