@engramx/idl 0.16.0-rc.22 → 0.16.0-rc.24
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 +458 -157
- package/dist/engram.idl.d.ts +429 -155
- package/dist/engram.idl.js +279 -184
- package/dist/market.did +119 -107
- package/dist/market.idl.d.ts +123 -110
- package/dist/market.idl.js +52 -49
- package/dist/registry.did +165 -47
- package/dist/registry.idl.d.ts +172 -47
- package/dist/registry.idl.js +68 -47
- package/package.json +1 -1
package/dist/registry.idl.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export interface AnchorStats {
|
|
|
29
29
|
engramsWithConflicts: bigint;
|
|
30
30
|
}
|
|
31
31
|
export interface AnchorView {
|
|
32
|
+
era: [] | [bigint];
|
|
32
33
|
total: bigint;
|
|
33
34
|
disputed: boolean;
|
|
34
35
|
atNs: bigint;
|
|
@@ -54,6 +55,7 @@ export interface CertifiedAnchor {
|
|
|
54
55
|
witness: Uint8Array | number[];
|
|
55
56
|
}
|
|
56
57
|
export interface CertifiedAnchorLeaf {
|
|
58
|
+
era: [] | [bigint];
|
|
57
59
|
total: bigint;
|
|
58
60
|
disputed: boolean;
|
|
59
61
|
atNs: bigint;
|
|
@@ -62,6 +64,7 @@ export interface CertifiedAnchorLeaf {
|
|
|
62
64
|
conflicts: bigint;
|
|
63
65
|
version: bigint;
|
|
64
66
|
refusedConflicts: bigint;
|
|
67
|
+
recoveredAtNs: [] | [bigint];
|
|
65
68
|
engram: Principal;
|
|
66
69
|
}
|
|
67
70
|
export interface CertifiedAuditHead {
|
|
@@ -129,13 +132,16 @@ export interface EngagementRow {
|
|
|
129
132
|
}
|
|
130
133
|
export interface EngramComputeView {
|
|
131
134
|
restartOpenUntilNs: [] | [bigint];
|
|
135
|
+
recoverOpen: [] | [boolean];
|
|
132
136
|
idlePerDay: bigint;
|
|
137
|
+
erased: [] | [boolean];
|
|
133
138
|
line: bigint;
|
|
134
139
|
quiet: boolean;
|
|
135
140
|
eraseAboutNs: [] | [bigint];
|
|
136
141
|
cycles: bigint;
|
|
137
142
|
runState: { stopped: null } | { stopping: null } | { running: null };
|
|
138
143
|
thresholdSecs: bigint;
|
|
144
|
+
recoveredAtNs: [] | [bigint];
|
|
139
145
|
updateWaiting: boolean;
|
|
140
146
|
frozen: boolean;
|
|
141
147
|
}
|
|
@@ -284,6 +290,14 @@ export interface RecordPage {
|
|
|
284
290
|
items: Array<AuditEntry>;
|
|
285
291
|
hashFirstFrom: bigint;
|
|
286
292
|
}
|
|
293
|
+
export interface RecoverReply {
|
|
294
|
+
billingLinked: boolean;
|
|
295
|
+
balance: bigint;
|
|
296
|
+
finished: boolean;
|
|
297
|
+
number: [] | [bigint];
|
|
298
|
+
restartLoanOwed: bigint;
|
|
299
|
+
template: string;
|
|
300
|
+
}
|
|
287
301
|
export interface ReferralCounts {
|
|
288
302
|
firstOrReopened: PairedSoon;
|
|
289
303
|
openedThroughParentLive: bigint;
|
|
@@ -341,29 +355,30 @@ export interface RestartTotals {
|
|
|
341
355
|
}
|
|
342
356
|
export type Result = { Ok: null } | { Err: Error };
|
|
343
357
|
export type Result_1 = { Ok: { accepted: bigint } } | { Err: Error };
|
|
344
|
-
export type Result_10 = { Ok:
|
|
345
|
-
export type Result_11 = { Ok:
|
|
346
|
-
export type Result_12 = { Ok:
|
|
347
|
-
export type Result_13 = { Ok:
|
|
348
|
-
export type Result_14 = { Ok:
|
|
349
|
-
export type Result_15 = { Ok:
|
|
350
|
-
export type Result_16 = { Ok:
|
|
351
|
-
export type Result_17 = { Ok:
|
|
352
|
-
export type Result_18 = { Ok:
|
|
353
|
-
export type Result_19 = { Ok:
|
|
358
|
+
export type Result_10 = { Ok: EngramComputeView } | { Err: Error };
|
|
359
|
+
export type Result_11 = { Ok: CustodyMode } | { Err: Error };
|
|
360
|
+
export type Result_12 = { Ok: Array<string> } | { Err: Error };
|
|
361
|
+
export type Result_13 = { Ok: Page } | { Err: Error };
|
|
362
|
+
export type Result_14 = { Ok: Page_1 } | { Err: Error };
|
|
363
|
+
export type Result_15 = { Ok: Page_2 } | { Err: Error };
|
|
364
|
+
export type Result_16 = { Ok: Page_3 } | { Err: Error };
|
|
365
|
+
export type Result_17 = { Ok: Array<OpenedEngram> } | { Err: Error };
|
|
366
|
+
export type Result_18 = { Ok: Page_5 } | { Err: Error };
|
|
367
|
+
export type Result_19 = { Ok: RecordPage } | { Err: Error };
|
|
354
368
|
export type Result_2 = { Ok: Principal } | { Err: Error };
|
|
355
|
-
export type Result_20 = { Ok:
|
|
356
|
-
export type Result_21 = { Ok:
|
|
357
|
-
export type Result_22 = { Ok:
|
|
358
|
-
export type Result_23 = { Ok:
|
|
359
|
-
export type Result_24 = { Ok:
|
|
360
|
-
export type Result_25 = { Ok:
|
|
361
|
-
export type Result_26 = { Ok:
|
|
362
|
-
export type Result_27 = { Ok:
|
|
363
|
-
export type Result_28 = { Ok:
|
|
364
|
-
export type Result_29 = { Ok:
|
|
369
|
+
export type Result_20 = { Ok: Page_6 } | { Err: Error };
|
|
370
|
+
export type Result_21 = { Ok: [] | [string] } | { Err: Error };
|
|
371
|
+
export type Result_22 = { Ok: RegistryHealth } | { Err: Error };
|
|
372
|
+
export type Result_23 = { Ok: ReferralCounts } | { Err: Error };
|
|
373
|
+
export type Result_24 = { Ok: OpenedThrough } | { Err: Error };
|
|
374
|
+
export type Result_25 = { Ok: OpeningCounts } | { Err: Error };
|
|
375
|
+
export type Result_26 = { Ok: RestartStatus } | { Err: Error };
|
|
376
|
+
export type Result_27 = { Ok: PrivateMetrics } | { Err: Error };
|
|
377
|
+
export type Result_28 = { Ok: Uint8Array | number[] } | { Err: Error };
|
|
378
|
+
export type Result_29 = { Ok: ChildSignInOffer } | { Err: Error };
|
|
365
379
|
export type Result_3 = { Ok: ControlStep } | { Err: Error };
|
|
366
|
-
export type Result_30 = { Ok:
|
|
380
|
+
export type Result_30 = { Ok: CertifiedStanding } | { Err: Error };
|
|
381
|
+
export type Result_31 = { Ok: FleetCycleHealth } | { Err: Error };
|
|
367
382
|
export type Result_4 = { Ok: MeterReading } | { Err: Error };
|
|
368
383
|
export type Result_5 = { Ok: { repaid: bigint; stillOwed: bigint } } | { Err: Error };
|
|
369
384
|
export type Result_6 =
|
|
@@ -373,7 +388,7 @@ export type Result_6 =
|
|
|
373
388
|
| { Err: Error };
|
|
374
389
|
export type Result_7 = { Ok: bigint } | { Err: Error };
|
|
375
390
|
export type Result_8 = { Ok: RestartReply } | { Err: Error };
|
|
376
|
-
export type Result_9 = { Ok:
|
|
391
|
+
export type Result_9 = { Ok: RecoverReply } | { Err: Error };
|
|
377
392
|
export type Role =
|
|
378
393
|
| { Anonymous: null }
|
|
379
394
|
| { Viewer: null }
|
|
@@ -434,6 +449,13 @@ export interface _SERVICE {
|
|
|
434
449
|
* /
|
|
435
450
|
* / ⟨2026-11-02⟩ REFUSED for an engram opened through another: it is never abandoned, so it stays on
|
|
436
451
|
* / this registry's security updates for life; it ends by its parent's cut-off or by running dry.
|
|
452
|
+
* /
|
|
453
|
+
* / ⟨2026-11-05, the owner's ruling 2A of 2026-11-04 — "abandoned engrams are NOT recoverable"⟩
|
|
454
|
+
* / WITHDRAW YOUR DIGITAL DOLLARS FIRST. Nobody pays for an abandoned engram: when its compute runs out it stops,
|
|
455
|
+
* / and the network erases it about 30 days later. An abandoned engram is never recovered once it is
|
|
456
|
+
* / erased (`recoverMyEngram` refuses it, and the cashier refuses its top-ups), so whatever its wallet
|
|
457
|
+
* / still holds then stays at its address with no program that can move it. Withdraw it while the
|
|
458
|
+
* / engram runs.
|
|
437
459
|
*/
|
|
438
460
|
abandonMyEngram: ActorMethod<[], Result>;
|
|
439
461
|
addAuditViewer: ActorMethod<[Principal], Result>;
|
|
@@ -544,7 +566,7 @@ export interface _SERVICE {
|
|
|
544
566
|
* / this one is a noun. That gate now reads the census's L7 citations as a second population for
|
|
545
567
|
* / exactly this blind spot.⟩
|
|
546
568
|
*/
|
|
547
|
-
fleetCycleHealth: ActorMethod<[bigint, bigint, bigint],
|
|
569
|
+
fleetCycleHealth: ActorMethod<[bigint, bigint, bigint], Result_31>;
|
|
548
570
|
/**
|
|
549
571
|
* / PUBLIC: ⟨0.16.0, L2.4⟩ `fleetSummary` — the ONE public projection of this registry,
|
|
550
572
|
* / replacing `status()` and ABSORBING `publicMetrics()`.
|
|
@@ -657,7 +679,7 @@ export interface _SERVICE {
|
|
|
657
679
|
* / `listAgents`. "The agent itself" is a caller holding that root key. A key for one engram has no
|
|
658
680
|
* / record of its own here; asking about one gets the refusal or, from the key itself, `#NotFound`.
|
|
659
681
|
*/
|
|
660
|
-
getAgentStanding: ActorMethod<[Principal],
|
|
682
|
+
getAgentStanding: ActorMethod<[Principal], Result_30>;
|
|
661
683
|
/**
|
|
662
684
|
* / Fleet-wide anchoring liveness. Exists because ABSENCE is otherwise uninformative: an engram
|
|
663
685
|
* / that never wrote, one still on a template without the push, and one whose push is broken all
|
|
@@ -755,7 +777,16 @@ export interface _SERVICE {
|
|
|
755
777
|
* / Called by: the owner kit's opening of an engram through a parent, signed by the agent's lasting
|
|
756
778
|
* / key, before it names the new engram's sign-in.
|
|
757
779
|
*/
|
|
758
|
-
getChildSignInOffer: ActorMethod<[Principal],
|
|
780
|
+
getChildSignInOffer: ActorMethod<[Principal], Result_29>;
|
|
781
|
+
/**
|
|
782
|
+
* / The consent origin every newborn engram is told — `null` until the admin sets one, and newborns are
|
|
783
|
+
* / then told none (they keep the default origin).
|
|
784
|
+
* /
|
|
785
|
+
* / CALLER: the deployment's setup step, reading back what it set; and anyone comparing an engram's
|
|
786
|
+
* / `GET /oauth/authorize` target with what its registry hands out. PUBLIC: an origin is not a secret,
|
|
787
|
+
* / and every owner of this deployment is sent there.
|
|
788
|
+
*/
|
|
789
|
+
getConsentOrigin: ActorMethod<[], [] | [string]>;
|
|
759
790
|
/**
|
|
760
791
|
* / The ATTESTABLE custody-mode fact (agent-native model item 19): "managed" | "sovereign" |
|
|
761
792
|
* / "unknown", derived from the registry's OWN transition records (claimSovereignty /
|
|
@@ -780,7 +811,7 @@ export interface _SERVICE {
|
|
|
780
811
|
* / Derived from records, never probed: a canister_status call would trap for exactly the
|
|
781
812
|
* / canisters we are not the controller of, i.e. the sovereign ones this read exists to identify.
|
|
782
813
|
*/
|
|
783
|
-
getCustodyMode: ActorMethod<[Principal],
|
|
814
|
+
getCustodyMode: ActorMethod<[Principal], Result_11>;
|
|
784
815
|
/**
|
|
785
816
|
* / Cycles-health probe — slim, cycles-only shape; the money fields moved to the cashier's
|
|
786
817
|
* / getCycleReserveStatus. Read by health-alert.mjs in registry mode.
|
|
@@ -826,7 +857,7 @@ export interface _SERVICE {
|
|
|
826
857
|
* / `#NotFound` only to a permitted reader, for a key that opened nothing: a true answer, like
|
|
827
858
|
* / `listMyAgentDisputes`'s empty list.
|
|
828
859
|
*/
|
|
829
|
-
getEngramOpenedThrough: ActorMethod<[Principal],
|
|
860
|
+
getEngramOpenedThrough: ActorMethod<[Principal], Result_24>;
|
|
830
861
|
/**
|
|
831
862
|
* / The i-th 1 MiB slice of the attested engram wasm (0-indexed). The caller reassembles all
|
|
832
863
|
* / chunks in order and MUST verify sha256(reassembled) == getEngramWasmHash before installing —
|
|
@@ -839,7 +870,7 @@ export interface _SERVICE {
|
|
|
839
870
|
* / a truncated one, so it would hash a partial wasm and report a mismatch against the official
|
|
840
871
|
* / list, which reads as "this template is unofficial" rather than "I stopped reading too early".
|
|
841
872
|
*/
|
|
842
|
-
getEngramWasmChunk: ActorMethod<[bigint],
|
|
873
|
+
getEngramWasmChunk: ActorMethod<[bigint], Result_28>;
|
|
843
874
|
/**
|
|
844
875
|
* / The stored template's release class — FREE and UNGATED, because it is the checkable half of a
|
|
845
876
|
* / promise made to people who are not our customers. ⟨2026-10-25⟩ The funding rule it checks:
|
|
@@ -889,7 +920,7 @@ export interface _SERVICE {
|
|
|
889
920
|
* / site. L1 retired the motive of trapping-to-refuse; it did not give queries the ability to
|
|
890
921
|
* / write, which is the thing this actually depends on.
|
|
891
922
|
*/
|
|
892
|
-
getFleetMetrics: ActorMethod<[],
|
|
923
|
+
getFleetMetrics: ActorMethod<[], Result_27>;
|
|
893
924
|
/**
|
|
894
925
|
* / PUBLIC: a genesis note that only privileged callers could read would defeat its purpose —
|
|
895
926
|
* / the reader who most needs it is the stranger deciding whether to trust this chain.
|
|
@@ -967,7 +998,7 @@ export interface _SERVICE {
|
|
|
967
998
|
* / restart": `nextRestartAtNs` is only the weekly limit on a loan. A restart on the owner's own
|
|
968
999
|
* / compute is allowed now, whatever it says. Field name and shape unchanged.
|
|
969
1000
|
*/
|
|
970
|
-
getMyRestartStatus: ActorMethod<[],
|
|
1001
|
+
getMyRestartStatus: ActorMethod<[], Result_26>;
|
|
971
1002
|
/**
|
|
972
1003
|
* / ⟨2026-10-02⟩ How many engrams were ever opened, and how — lifetime sizes of state this registry
|
|
973
1004
|
* / never deletes, plus the two counters of refused openings (`Funnel.OpeningCounts` names each).
|
|
@@ -978,7 +1009,7 @@ export interface _SERVICE {
|
|
|
978
1009
|
* / "nothing was ever opened". A QUERY: counts only, and cheap; its refusal is not in the denial
|
|
979
1010
|
* / log (`denied` says why a query cannot write).
|
|
980
1011
|
*/
|
|
981
|
-
getOpeningCounts: ActorMethod<[],
|
|
1012
|
+
getOpeningCounts: ActorMethod<[], Result_25>;
|
|
982
1013
|
/**
|
|
983
1014
|
* / Where an engram was opened from ⟨2026-10-26, the owner's lineage ruling L4: "a child reads its own
|
|
984
1015
|
* / parent by its canister id"⟩: the engram, the engram it was opened from, and the cut-off's time if
|
|
@@ -995,7 +1026,18 @@ export interface _SERVICE {
|
|
|
995
1026
|
* / this registry never opened is said to be one, not passed off as a first engram (ADR-0002).
|
|
996
1027
|
* / L8C: `listChildrenOf` is unchanged. L7B: the change-of-owner gate is unchanged.
|
|
997
1028
|
*/
|
|
998
|
-
getParentOf: ActorMethod<[Principal],
|
|
1029
|
+
getParentOf: ActorMethod<[Principal], Result_24>;
|
|
1030
|
+
/**
|
|
1031
|
+
* / PUBLIC: CALLER: the app, the owner kit and anyone checking an engram's record (ADR-0020). When this
|
|
1032
|
+
* / registry last REINSTALLED the engram on its own id after the network erased it (`recoverMyEngram`),
|
|
1033
|
+
* / or null — never recovered. ⟨2026-11-04, RECOVER-WALLET-1⟩ Public for `getAbandonedAtNs`'s reason: a
|
|
1034
|
+
* / record that restarted is a fact about the record that a stranger checking it needs, and the same date
|
|
1035
|
+
* / is certified in the engram's anchor leaf (`recoveredAtNs`, with its `era`).
|
|
1036
|
+
* / ⟨2026-11-05, beside the above⟩ Set when the reinstall BEGINS — the old record's anchors are set aside in
|
|
1037
|
+
* / the same message, before the install (`recoverMyEngram` says why) — so while a recover's install has not
|
|
1038
|
+
* / landed, the engram can read erased with this set; the compute probes' `recoverOpen` says one is open.
|
|
1039
|
+
*/
|
|
1040
|
+
getRecoveredAtNs: ActorMethod<[Principal], [] | [bigint]>;
|
|
999
1041
|
/**
|
|
1000
1042
|
* / ⟨2026-10-02⟩ How far agents reach across owners — COUNTS ONLY: agents by how many trees their
|
|
1001
1043
|
* / record spans (1 · 2 · 3–4 · 5+), engrams opened through a parent that are live or cut off, and
|
|
@@ -1009,7 +1051,7 @@ export interface _SERVICE {
|
|
|
1009
1051
|
* / weekly. Anyone else is REFUSED by name with their class — never zeros. A QUERY: its cost grows
|
|
1010
1052
|
* / with the agents and engrams it walks (one pass over each), so a reader asks weekly, not hourly.
|
|
1011
1053
|
*/
|
|
1012
|
-
getReferralCounts: ActorMethod<[Array<Principal>],
|
|
1054
|
+
getReferralCounts: ActorMethod<[Array<Principal>], Result_23>;
|
|
1013
1055
|
/**
|
|
1014
1056
|
* / ⟨2026-11-02, the owner's rulings "E ok." and "go ahead with your noticing failures changes"⟩ THE
|
|
1015
1057
|
* / REGISTRY'S HEALTH IN ONE READ: its cycle reserve, its roster, its anchoring counts — the same
|
|
@@ -1027,7 +1069,7 @@ export interface _SERVICE {
|
|
|
1027
1069
|
* / not in the denial log (a query cannot write; `denied` says why). One read where there were three
|
|
1028
1070
|
* / saves the monitor and this registry two calls an hour each.
|
|
1029
1071
|
*/
|
|
1030
|
-
getRegistryHealth: ActorMethod<[],
|
|
1072
|
+
getRegistryHealth: ActorMethod<[], Result_22>;
|
|
1031
1073
|
/**
|
|
1032
1074
|
* / PUBLIC: the biller identity is an operational fact a
|
|
1033
1075
|
* / payer's cashier must verify BEFORE taking money (paying into a cashier the registry does not
|
|
@@ -1152,7 +1194,7 @@ export interface _SERVICE {
|
|
|
1152
1194
|
* / — and the second is a claim about OUR OWN SPEND, not an absence of one. `#Ok(null)` now means
|
|
1153
1195
|
* / never funded, `#Err(#Refused)` means not your business, and no caller has to guess which.
|
|
1154
1196
|
*/
|
|
1155
|
-
getUpgradeFundedTemplate: ActorMethod<[Principal],
|
|
1197
|
+
getUpgradeFundedTemplate: ActorMethod<[Principal], Result_21>;
|
|
1156
1198
|
/**
|
|
1157
1199
|
* / Cumulative cycles the registry has granted to engrams for upgrades — ⟨2026-10-25⟩ the meter on
|
|
1158
1200
|
* / security-update funding: the registry pays only for security updates on running engrams (was:
|
|
@@ -1220,7 +1262,7 @@ export interface _SERVICE {
|
|
|
1220
1262
|
* / nowhere" — handed to a caller who merely lacks a grant. Readable by an admin, an audit viewer,
|
|
1221
1263
|
* / or that agent about itself.
|
|
1222
1264
|
*/
|
|
1223
|
-
listAgentEngrams: ActorMethod<[Principal],
|
|
1265
|
+
listAgentEngrams: ActorMethod<[Principal], Result_18>;
|
|
1224
1266
|
/**
|
|
1225
1267
|
* / Contradictory submissions, oldest-first. Empty is the normal case. Never trimmed.
|
|
1226
1268
|
* /
|
|
@@ -1249,7 +1291,7 @@ export interface _SERVICE {
|
|
|
1249
1291
|
* / while keeping the evidence that two of them disagree — the fabricate-on-refusal shape aimed at
|
|
1250
1292
|
* / the one reader the anchors exist for.
|
|
1251
1293
|
*/
|
|
1252
|
-
listAnchorConflicts: ActorMethod<[Principal, bigint, bigint],
|
|
1294
|
+
listAnchorConflicts: ActorMethod<[Principal, bigint, bigint], Result_20>;
|
|
1253
1295
|
/**
|
|
1254
1296
|
* / Witnessed heads for an engram, oldest-first. PUBLIC and ungated — an anchor a stranger cannot
|
|
1255
1297
|
* / read is not an anchor (ratified: "recorded where counterparties can check them").
|
|
@@ -1286,6 +1328,11 @@ export interface _SERVICE {
|
|
|
1286
1328
|
* / anything. A cap that is part of the ratified design is not the unbounded growth paging exists
|
|
1287
1329
|
* / for. WHAT WOULD MAKE THIS WRONG: the ring outgrowing one reply, or rows withheld per caller —
|
|
1288
1330
|
* / then it pages, and that is a break.
|
|
1331
|
+
* / ⟨2026-11-04, the owner's ruling 3A′ — RECOVER-WALLET-1⟩ EVERY ERA, oldest first. An engram the registry
|
|
1332
|
+
* / recovered after the network erased it has more than one record: each anchor carries `era` (0 = its
|
|
1333
|
+
* / first record, k = after its k-th recover), the earlier eras' anchors as they stood when each was set
|
|
1334
|
+
* / aside, then the current era's. Nothing is withheld or deleted. `disputed` is read against the
|
|
1335
|
+
* / contradictions recorded during the anchor's own era.
|
|
1289
1336
|
*/
|
|
1290
1337
|
listAnchors: ActorMethod<[Principal], Array<AnchorView>>;
|
|
1291
1338
|
/**
|
|
@@ -1316,7 +1363,7 @@ export interface _SERVICE {
|
|
|
1316
1363
|
* / for strangers were ruled for the engram's record, and the status console decides a signed-in
|
|
1317
1364
|
* / visitor's tier by whether this read refuses.
|
|
1318
1365
|
*/
|
|
1319
|
-
listAuditEntries: ActorMethod<[bigint, bigint],
|
|
1366
|
+
listAuditEntries: ActorMethod<[bigint, bigint], Result_19>;
|
|
1320
1367
|
/**
|
|
1321
1368
|
* / ⟨0.16.0, L2.2⟩ RENAMED from `getMetricsViewers` — the viewer triple unifies on "audit viewer"
|
|
1322
1369
|
* / across every canister, because a roster that grants audit reads should not be named after
|
|
@@ -1326,7 +1373,7 @@ export interface _SERVICE {
|
|
|
1326
1373
|
* / on 2026-08-11 while viewers existed. An empty vec reads as "nobody holds read-only ops access"
|
|
1327
1374
|
* / when the truth was "you are not on the roster".
|
|
1328
1375
|
*/
|
|
1329
|
-
listAuditViewers: ActorMethod<[],
|
|
1376
|
+
listAuditViewers: ActorMethod<[], Result_18>;
|
|
1330
1377
|
/**
|
|
1331
1378
|
* / PUBLIC: the release history, paged.
|
|
1332
1379
|
* /
|
|
@@ -1348,7 +1395,7 @@ export interface _SERVICE {
|
|
|
1348
1395
|
* / Built by a pass over `parentOf` rather than from a second, reverse index: one stored fact and a
|
|
1349
1396
|
* / pass bounded by the number of opened engrams, instead of two facts to keep in step.
|
|
1350
1397
|
*/
|
|
1351
|
-
listChildrenOf: ActorMethod<[Principal],
|
|
1398
|
+
listChildrenOf: ActorMethod<[Principal], Result_17>;
|
|
1352
1399
|
/**
|
|
1353
1400
|
* / ⟨0.16.0⟩ RENAMED from `readDenialLog`; the refusal becomes a value.
|
|
1354
1401
|
* /
|
|
@@ -1356,7 +1403,7 @@ export interface _SERVICE {
|
|
|
1356
1403
|
* / this log exists to record — so "empty" was never an acceptable answer to a caller who simply
|
|
1357
1404
|
* / lacks the grant. The old trap said so; this says the same thing as data.
|
|
1358
1405
|
*/
|
|
1359
|
-
listDenialEntries: ActorMethod<[bigint, bigint],
|
|
1406
|
+
listDenialEntries: ActorMethod<[bigint, bigint], Result_16>;
|
|
1360
1407
|
/**
|
|
1361
1408
|
* / ⟨2026-10-02⟩ ONE ROW PER ENGAGEMENT, for the deployment's own count of use — DAYS, never
|
|
1362
1409
|
* / instants, and NEVER the agent's root, enrolled key or invite.
|
|
@@ -1382,7 +1429,7 @@ export interface _SERVICE {
|
|
|
1382
1429
|
* / and a query cannot write (the reason `listEngrams` is an update). This is the most sensitive of
|
|
1383
1430
|
* / the three reads — one row per engagement — so who was turned away is worth a record.
|
|
1384
1431
|
*/
|
|
1385
|
-
listEngagementRows: ActorMethod<[bigint, bigint, bigint, Array<Principal>],
|
|
1432
|
+
listEngagementRows: ActorMethod<[bigint, bigint, bigint, Array<Principal>], Result_15>;
|
|
1386
1433
|
/**
|
|
1387
1434
|
* / ⟨0.16.0, L1⟩ THE `authorized : ?Bool` FLAG IS GONE, AND SO IS EVERYTHING BUILT AROUND IT.
|
|
1388
1435
|
* /
|
|
@@ -1415,7 +1462,7 @@ export interface _SERVICE {
|
|
|
1415
1462
|
* / own text had to be corrected for — the forcing call is not a system API at all, it is
|
|
1416
1463
|
* / `denied()`, a state write. See `scripts/check-update-for-read.mjs`.
|
|
1417
1464
|
*/
|
|
1418
|
-
listEngrams: ActorMethod<[bigint, bigint],
|
|
1465
|
+
listEngrams: ActorMethod<[bigint, bigint], Result_14>;
|
|
1419
1466
|
/**
|
|
1420
1467
|
* / ⟨2026-09-28, owner decision: an agent may read its own record⟩ The caller's OWN dispute
|
|
1421
1468
|
* / statements, oldest first, verbatim. Keyed by `msg.caller`, so it cannot be pointed at anyone
|
|
@@ -1470,12 +1517,12 @@ export interface _SERVICE {
|
|
|
1470
1517
|
* / choice in the fleet. That is the consequence this refusal exists to prevent, and it belongs in
|
|
1471
1518
|
* / the message a caller actually receives.
|
|
1472
1519
|
*/
|
|
1473
|
-
listUpdatePrefs: ActorMethod<[bigint, bigint],
|
|
1520
|
+
listUpdatePrefs: ActorMethod<[bigint, bigint], Result_13>;
|
|
1474
1521
|
/**
|
|
1475
1522
|
* / Mint one-shot reserve invites (invite-issuer or admin). Codes use IC-secure randomness over a
|
|
1476
1523
|
* / 32-symbol no-ambiguous alphabet (8 chars ≈ 40 bits). Batch-capped; table hard-capped.
|
|
1477
1524
|
*/
|
|
1478
|
-
mintReserveInvites: ActorMethod<[bigint],
|
|
1525
|
+
mintReserveInvites: ActorMethod<[bigint], Result_12>;
|
|
1479
1526
|
/**
|
|
1480
1527
|
* / The PROBED twin of `getCustodyMode`: same question, asked of the IC rather than of our
|
|
1481
1528
|
* / records — hence the `probe` verb rather than a second noun.
|
|
@@ -1503,7 +1550,7 @@ export interface _SERVICE {
|
|
|
1503
1550
|
* / LIVE from the management canister rather than from a stored transition record, so a query
|
|
1504
1551
|
* / could not produce it at all, not merely more cheaply.
|
|
1505
1552
|
*/
|
|
1506
|
-
probeCustodyMode: ActorMethod<[],
|
|
1553
|
+
probeCustodyMode: ActorMethod<[], Result_11>;
|
|
1507
1554
|
/**
|
|
1508
1555
|
* / What YOUR OWN engram's compute is, read by the registry — the one read that works while it is
|
|
1509
1556
|
* / frozen.
|
|
@@ -1522,7 +1569,25 @@ export interface _SERVICE {
|
|
|
1522
1569
|
* / call — INFERRED a few million cycles, not measured. `eraseAboutNs` is "about" and never invented:
|
|
1523
1570
|
* / null when the network reports no idle burn.
|
|
1524
1571
|
*/
|
|
1525
|
-
probeMyEngramCompute: ActorMethod<[],
|
|
1572
|
+
probeMyEngramCompute: ActorMethod<[], Result_10>;
|
|
1573
|
+
/**
|
|
1574
|
+
* / What an engram OPENED THROUGH ANOTHER is running on, read by the registry — for its key file and its
|
|
1575
|
+
* / sign-in (the person), the read `probeMyEngramCompute` is for a first engram's owner.
|
|
1576
|
+
* /
|
|
1577
|
+
* / CALLER: the app's Access page, signed in as the person, for a child row whose own `getOwnerSignIn`
|
|
1578
|
+
* / call is rejected (an erased child answers nothing) — and the owner kit, as the key file (ADR-0020).
|
|
1579
|
+
* / ⟨2026-11-04, the owner's ruling "1B" — "the registry starts keeping the person's sign-in for them"⟩
|
|
1580
|
+
* / The person may SEE, not ask and not pay: the ask (`recoverMyEngram`) and the payment (the cashier's
|
|
1581
|
+
* / top-up, admitted only from the key file) stay the key file's. Gated to the child's key file
|
|
1582
|
+
* / (`canisterToOwner`) and its sign-in AS NOTED HERE (`childSignIn`); refused to everyone else — the
|
|
1583
|
+
* / parent's owner included — with the SAME words whether or not `child` exists or is a child at all
|
|
1584
|
+
* / (`getEngramOpenedThrough`'s precedent: who works for whom is not disclosed by a refusal). UPDATE, not
|
|
1585
|
+
* / query, for `probeMyEngramCompute`'s reason (a query cannot call the management canister).
|
|
1586
|
+
* / ⟨L7⟩ ⟨marker added 2026-11-05, the reason above unchanged — platform check-update-for-read named it
|
|
1587
|
+
* / missing⟩ The system call that forces the update is `canister_status` on the management canister: a
|
|
1588
|
+
* / query cannot make an inter-canister call, so it could not read an erased child's network status at all.
|
|
1589
|
+
*/
|
|
1590
|
+
probeOpenedEngramCompute: ActorMethod<[Principal], Result_10>;
|
|
1526
1591
|
/**
|
|
1527
1592
|
* / ⟨0.16.0⟩ `Ok` CARRIES THE PRINCIPAL DIRECTLY, not a one-field record wrapping it.
|
|
1528
1593
|
* /
|
|
@@ -1547,6 +1612,38 @@ export interface _SERVICE {
|
|
|
1547
1612
|
],
|
|
1548
1613
|
Result_2
|
|
1549
1614
|
>;
|
|
1615
|
+
/**
|
|
1616
|
+
* / RECOVER YOUR OWN ERASED ENGRAM — reinstall it on the SAME id, so its wallet and EVM address come back.
|
|
1617
|
+
* /
|
|
1618
|
+
* / CALLER: the owner, from the app's "Recover my wallet" (a first engram), or an engram's key file through
|
|
1619
|
+
* / the owner kit's `--recover` (an engram an agent opened through another) — ADR-0020. ⟨2026-11-04, the
|
|
1620
|
+
* / owner's rulings "1D. 2A." and "1B. the rest as recommended."⟩ Recover.mo says what a recover is and
|
|
1621
|
+
* / what does and does not come back.
|
|
1622
|
+
* /
|
|
1623
|
+
* / THE ORDER: the owner first adds compute to the empty engram through the cashier's existing top-up
|
|
1624
|
+
* / (each step its own tap; nothing here moves money, lends or funds); then this call reads the network's
|
|
1625
|
+
* / status of the engram as its controller, refuses by name unless the engram is ERASED (no module) and
|
|
1626
|
+
* / holds enough compute to install (`UpgradeFunding.noDipBar` — the line plus the install hold plus a
|
|
1627
|
+
* / margin; the exact shortfall is named), writes a durable "recover in progress" mark, installs the
|
|
1628
|
+
* / current template with `#install` ONLY (the network refuses it on a canister that holds a module), with
|
|
1629
|
+
* / the init record from this registry's own records (owner, registry, parent, the kept sign-in,
|
|
1630
|
+
* / `recoveredAtNs`), starts the engram if it was found stopped, sets the old record's anchors aside as an
|
|
1631
|
+
* / earlier era (the certified leaf says so), and re-sends what a newborn is told: its biller, market and
|
|
1632
|
+
* / metrics reader, a first fee line and its birth record. The mark is removed once the biller is in
|
|
1633
|
+
* / place; until then a second call finishes the work and answers `#Ok` with `finished = true`.
|
|
1634
|
+
* / ⟨CHANGED 2026-11-05, the canister review's M1 and L1⟩ The old record's anchors are set aside (and
|
|
1635
|
+
* / `recoveredAtNs` recorded) with the mark, BEFORE the install — the record ended at the erase — and no
|
|
1636
|
+
* / first fee line is sent (the balance before the install is not a fee). The compute probes'
|
|
1637
|
+
* / `recoverOpen` says a recover is open. An upgrade that finds a recover's install landed records it first.
|
|
1638
|
+
* /
|
|
1639
|
+
* / Refused, before anything is written: not your engram (`#NotFound`); not active, or ABANDONED (ruling
|
|
1640
|
+
* / 2A: an abandoned engram is not recovered — withdraw your digital dollars before you abandon an engram);
|
|
1641
|
+
* / sovereign; a change of owner unfinished; a restart open or
|
|
1642
|
+
* / a restart/recover call running; an update installing; no template; the status unreadable; NOT ERASED
|
|
1643
|
+
* / (`#Conflict` — "already recovered at T" when this registry recovered it, and no install); compute
|
|
1644
|
+
* / under the bar (`#Conflict` naming the shortfall).
|
|
1645
|
+
*/
|
|
1646
|
+
recoverMyEngram: ActorMethod<[], Result_9>;
|
|
1550
1647
|
removeAuditViewer: ActorMethod<[Principal], Result>;
|
|
1551
1648
|
/**
|
|
1552
1649
|
* / ⟨0.16.0⟩ `Ok` IS THE ANSWER — the `{ reserved : Bool }` wrapper is gone.
|
|
@@ -1629,6 +1726,8 @@ export interface _SERVICE {
|
|
|
1629
1726
|
* / second call while one is still running for the same engram (`restartCallsRunning`), which is
|
|
1630
1727
|
* / what now keeps two interleaved calls from both lending or both stopping and starting — the week
|
|
1631
1728
|
* / used to double as that guard.
|
|
1729
|
+
* / ⟨2026-11-04, beside the lists above — BACKLOG ERASED-REFUSE-1⟩ Also refused, first after the status
|
|
1730
|
+
* / read: an ERASED engram (its canister holds no program) — nothing is stopped or lent into it.
|
|
1632
1731
|
*/
|
|
1633
1732
|
restartMyStoppedEngram: ActorMethod<[], Result_8>;
|
|
1634
1733
|
/**
|
|
@@ -1643,6 +1742,15 @@ export interface _SERVICE {
|
|
|
1643
1742
|
* / controller can set it. When admin is set: the current admin hands off, or REGISTRY_ROOT reclaims.
|
|
1644
1743
|
*/
|
|
1645
1744
|
setAdmin: ActorMethod<[Principal], Result>;
|
|
1745
|
+
/**
|
|
1746
|
+
* / Set the consent origin every engram spawned from now on is told (admin only; `null` clears it, and
|
|
1747
|
+
* / newborns are then told none). An https origin only — no path, query or fragment, lowercase, bounded
|
|
1748
|
+
* / (`ConsentOrigin.check`); anything else is `#Invalid` and nothing changes. Engrams already born keep
|
|
1749
|
+
* / what they were told.
|
|
1750
|
+
* /
|
|
1751
|
+
* / CALLER: the registry admin, from the deployment's setup step, before the deployment's first spawn.
|
|
1752
|
+
*/
|
|
1753
|
+
setConsentOrigin: ActorMethod<[[] | [string]], Result>;
|
|
1646
1754
|
/**
|
|
1647
1755
|
* / Upload the engram template in ONE message — the single-shot path. For a wasm too large to
|
|
1648
1756
|
* / fit, use `engramWasmInit` → `engramWasmPushChunk` × N → `engramWasmFinalize` instead; the two
|
|
@@ -1742,6 +1850,8 @@ export interface _SERVICE {
|
|
|
1742
1850
|
* / starts it. If the owner walks away, the sweep finishes it after 30 minutes: install if covered,
|
|
1743
1851
|
* / restore, start. Never left stopped. It lends nothing, so it takes no week; it refuses an engram
|
|
1744
1852
|
* / that is not stuck, so a healthy engram is never taken offline (spec question Q15).
|
|
1853
|
+
* / ⟨2026-11-04 — BACKLOG ERASED-REFUSE-1⟩ It also refuses an ERASED engram (its canister holds no
|
|
1854
|
+
* / program): there is nothing to restart, and nothing is stopped.
|
|
1745
1855
|
*/
|
|
1746
1856
|
stopMyEngramForRestart: ActorMethod<[], Result_6>;
|
|
1747
1857
|
/**
|
|
@@ -1801,6 +1911,17 @@ export interface _SERVICE {
|
|
|
1801
1911
|
* / (a single probe is not a completed round).
|
|
1802
1912
|
*/
|
|
1803
1913
|
sysMeterEngram: ActorMethod<[Principal], Result_4>;
|
|
1914
|
+
/**
|
|
1915
|
+
* / CALLER: an engram opened through another, from inside its three sign-in writers — `setOwnerSignIn`,
|
|
1916
|
+
* / `declineSignIn` (the sign-in's own decline) and `acceptSignIn` — BEFORE it writes its own seat
|
|
1917
|
+
* / (ADR-0020). ⟨2026-11-04, the owner's ruling "1B"⟩ The registry keeps the child's seated sign-in
|
|
1918
|
+
* / (`childSignIn` says why, and why the order is registry-first): `?p` notes `p` as the sign-in, `null`
|
|
1919
|
+
* / notes that none is seated. A record argument, so it can grow by opt fields (ADR-0018 rule 0).
|
|
1920
|
+
* / Refused, with nothing written: a caller this registry did not open through another engram (a first
|
|
1921
|
+
* / engram has no sign-in; anything else is no engram here), and a sign-in the door would refuse at
|
|
1922
|
+
* / birth (`ChildDoor.signInRefusal` — the key file itself, the anonymous principal, a canister).
|
|
1923
|
+
*/
|
|
1924
|
+
sysNoteChildSignIn: ActorMethod<[{ signIn: [] | [Principal] }], Result>;
|
|
1804
1925
|
/**
|
|
1805
1926
|
* / ⟨2026-10-02⟩ An engram tells this registry that its owner reset it.
|
|
1806
1927
|
* /
|
|
@@ -2056,6 +2177,8 @@ export interface _SERVICE {
|
|
|
2056
2177
|
* / paid only for a #Security update on a running engram. A push is the registry's own initiative,
|
|
2057
2178
|
* / so where the engram cannot hold the install even with its setting lowered, the push is SKIPPED
|
|
2058
2179
|
* / with `#Conflict` and not attempted — the owner can still pull it, and the pull is never refused.
|
|
2180
|
+
* / ⟨2026-11-04 — BACKLOG ERASED-REFUSE-1⟩ An ERASED engram (its canister holds no program) is not
|
|
2181
|
+
* / pushed: `#Conflict`, by name, before anything is added.
|
|
2059
2182
|
*/
|
|
2060
2183
|
upgradeEngram: ActorMethod<[Principal], Result>;
|
|
2061
2184
|
/**
|
|
@@ -2088,6 +2211,8 @@ export interface _SERVICE {
|
|
|
2088
2211
|
* / (UpgradeFunding.pullFailure): `#Conflict` when the engram needs more compute (the owner's
|
|
2089
2212
|
* / action — add compute), `#Unavailable` when the registry could not pay this time (retryable).
|
|
2090
2213
|
* / A failure after a paid or unneeded deposit answers `#Unavailable` with the network's reply.
|
|
2214
|
+
* / ⟨2026-11-04 — BACKLOG ERASED-REFUSE-1⟩ On an ERASED engram (its canister holds no program) nothing
|
|
2215
|
+
* / is paid; the install is still attempted, the network refuses it, and the reply says "erased".
|
|
2091
2216
|
* /
|
|
2092
2217
|
* / An engram already on the current template is a silent no-op. A SOVEREIGN engram gets
|
|
2093
2218
|
* / "registry is no longer a controller" — accurate, because it is no longer ours to install on.
|