@engramx/idl 0.16.0-rc.22 → 0.16.0-rc.23
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 +141 -6
- package/dist/engram.idl.d.ts +134 -4
- package/dist/engram.idl.js +34 -4
- 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 +151 -47
- package/dist/registry.idl.d.ts +154 -47
- package/dist/registry.idl.js +66 -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,7 @@ 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>;
|
|
759
781
|
/**
|
|
760
782
|
* / The ATTESTABLE custody-mode fact (agent-native model item 19): "managed" | "sovereign" |
|
|
761
783
|
* / "unknown", derived from the registry's OWN transition records (claimSovereignty /
|
|
@@ -780,7 +802,7 @@ export interface _SERVICE {
|
|
|
780
802
|
* / Derived from records, never probed: a canister_status call would trap for exactly the
|
|
781
803
|
* / canisters we are not the controller of, i.e. the sovereign ones this read exists to identify.
|
|
782
804
|
*/
|
|
783
|
-
getCustodyMode: ActorMethod<[Principal],
|
|
805
|
+
getCustodyMode: ActorMethod<[Principal], Result_11>;
|
|
784
806
|
/**
|
|
785
807
|
* / Cycles-health probe — slim, cycles-only shape; the money fields moved to the cashier's
|
|
786
808
|
* / getCycleReserveStatus. Read by health-alert.mjs in registry mode.
|
|
@@ -826,7 +848,7 @@ export interface _SERVICE {
|
|
|
826
848
|
* / `#NotFound` only to a permitted reader, for a key that opened nothing: a true answer, like
|
|
827
849
|
* / `listMyAgentDisputes`'s empty list.
|
|
828
850
|
*/
|
|
829
|
-
getEngramOpenedThrough: ActorMethod<[Principal],
|
|
851
|
+
getEngramOpenedThrough: ActorMethod<[Principal], Result_24>;
|
|
830
852
|
/**
|
|
831
853
|
* / The i-th 1 MiB slice of the attested engram wasm (0-indexed). The caller reassembles all
|
|
832
854
|
* / chunks in order and MUST verify sha256(reassembled) == getEngramWasmHash before installing —
|
|
@@ -839,7 +861,7 @@ export interface _SERVICE {
|
|
|
839
861
|
* / a truncated one, so it would hash a partial wasm and report a mismatch against the official
|
|
840
862
|
* / list, which reads as "this template is unofficial" rather than "I stopped reading too early".
|
|
841
863
|
*/
|
|
842
|
-
getEngramWasmChunk: ActorMethod<[bigint],
|
|
864
|
+
getEngramWasmChunk: ActorMethod<[bigint], Result_28>;
|
|
843
865
|
/**
|
|
844
866
|
* / The stored template's release class — FREE and UNGATED, because it is the checkable half of a
|
|
845
867
|
* / promise made to people who are not our customers. ⟨2026-10-25⟩ The funding rule it checks:
|
|
@@ -889,7 +911,7 @@ export interface _SERVICE {
|
|
|
889
911
|
* / site. L1 retired the motive of trapping-to-refuse; it did not give queries the ability to
|
|
890
912
|
* / write, which is the thing this actually depends on.
|
|
891
913
|
*/
|
|
892
|
-
getFleetMetrics: ActorMethod<[],
|
|
914
|
+
getFleetMetrics: ActorMethod<[], Result_27>;
|
|
893
915
|
/**
|
|
894
916
|
* / PUBLIC: a genesis note that only privileged callers could read would defeat its purpose —
|
|
895
917
|
* / the reader who most needs it is the stranger deciding whether to trust this chain.
|
|
@@ -967,7 +989,7 @@ export interface _SERVICE {
|
|
|
967
989
|
* / restart": `nextRestartAtNs` is only the weekly limit on a loan. A restart on the owner's own
|
|
968
990
|
* / compute is allowed now, whatever it says. Field name and shape unchanged.
|
|
969
991
|
*/
|
|
970
|
-
getMyRestartStatus: ActorMethod<[],
|
|
992
|
+
getMyRestartStatus: ActorMethod<[], Result_26>;
|
|
971
993
|
/**
|
|
972
994
|
* / ⟨2026-10-02⟩ How many engrams were ever opened, and how — lifetime sizes of state this registry
|
|
973
995
|
* / never deletes, plus the two counters of refused openings (`Funnel.OpeningCounts` names each).
|
|
@@ -978,7 +1000,7 @@ export interface _SERVICE {
|
|
|
978
1000
|
* / "nothing was ever opened". A QUERY: counts only, and cheap; its refusal is not in the denial
|
|
979
1001
|
* / log (`denied` says why a query cannot write).
|
|
980
1002
|
*/
|
|
981
|
-
getOpeningCounts: ActorMethod<[],
|
|
1003
|
+
getOpeningCounts: ActorMethod<[], Result_25>;
|
|
982
1004
|
/**
|
|
983
1005
|
* / Where an engram was opened from ⟨2026-10-26, the owner's lineage ruling L4: "a child reads its own
|
|
984
1006
|
* / parent by its canister id"⟩: the engram, the engram it was opened from, and the cut-off's time if
|
|
@@ -995,7 +1017,18 @@ export interface _SERVICE {
|
|
|
995
1017
|
* / this registry never opened is said to be one, not passed off as a first engram (ADR-0002).
|
|
996
1018
|
* / L8C: `listChildrenOf` is unchanged. L7B: the change-of-owner gate is unchanged.
|
|
997
1019
|
*/
|
|
998
|
-
getParentOf: ActorMethod<[Principal],
|
|
1020
|
+
getParentOf: ActorMethod<[Principal], Result_24>;
|
|
1021
|
+
/**
|
|
1022
|
+
* / PUBLIC: CALLER: the app, the owner kit and anyone checking an engram's record (ADR-0020). When this
|
|
1023
|
+
* / registry last REINSTALLED the engram on its own id after the network erased it (`recoverMyEngram`),
|
|
1024
|
+
* / or null — never recovered. ⟨2026-11-04, RECOVER-WALLET-1⟩ Public for `getAbandonedAtNs`'s reason: a
|
|
1025
|
+
* / record that restarted is a fact about the record that a stranger checking it needs, and the same date
|
|
1026
|
+
* / is certified in the engram's anchor leaf (`recoveredAtNs`, with its `era`).
|
|
1027
|
+
* / ⟨2026-11-05, beside the above⟩ Set when the reinstall BEGINS — the old record's anchors are set aside in
|
|
1028
|
+
* / the same message, before the install (`recoverMyEngram` says why) — so while a recover's install has not
|
|
1029
|
+
* / landed, the engram can read erased with this set; the compute probes' `recoverOpen` says one is open.
|
|
1030
|
+
*/
|
|
1031
|
+
getRecoveredAtNs: ActorMethod<[Principal], [] | [bigint]>;
|
|
999
1032
|
/**
|
|
1000
1033
|
* / ⟨2026-10-02⟩ How far agents reach across owners — COUNTS ONLY: agents by how many trees their
|
|
1001
1034
|
* / record spans (1 · 2 · 3–4 · 5+), engrams opened through a parent that are live or cut off, and
|
|
@@ -1009,7 +1042,7 @@ export interface _SERVICE {
|
|
|
1009
1042
|
* / weekly. Anyone else is REFUSED by name with their class — never zeros. A QUERY: its cost grows
|
|
1010
1043
|
* / with the agents and engrams it walks (one pass over each), so a reader asks weekly, not hourly.
|
|
1011
1044
|
*/
|
|
1012
|
-
getReferralCounts: ActorMethod<[Array<Principal>],
|
|
1045
|
+
getReferralCounts: ActorMethod<[Array<Principal>], Result_23>;
|
|
1013
1046
|
/**
|
|
1014
1047
|
* / ⟨2026-11-02, the owner's rulings "E ok." and "go ahead with your noticing failures changes"⟩ THE
|
|
1015
1048
|
* / REGISTRY'S HEALTH IN ONE READ: its cycle reserve, its roster, its anchoring counts — the same
|
|
@@ -1027,7 +1060,7 @@ export interface _SERVICE {
|
|
|
1027
1060
|
* / not in the denial log (a query cannot write; `denied` says why). One read where there were three
|
|
1028
1061
|
* / saves the monitor and this registry two calls an hour each.
|
|
1029
1062
|
*/
|
|
1030
|
-
getRegistryHealth: ActorMethod<[],
|
|
1063
|
+
getRegistryHealth: ActorMethod<[], Result_22>;
|
|
1031
1064
|
/**
|
|
1032
1065
|
* / PUBLIC: the biller identity is an operational fact a
|
|
1033
1066
|
* / payer's cashier must verify BEFORE taking money (paying into a cashier the registry does not
|
|
@@ -1152,7 +1185,7 @@ export interface _SERVICE {
|
|
|
1152
1185
|
* / — and the second is a claim about OUR OWN SPEND, not an absence of one. `#Ok(null)` now means
|
|
1153
1186
|
* / never funded, `#Err(#Refused)` means not your business, and no caller has to guess which.
|
|
1154
1187
|
*/
|
|
1155
|
-
getUpgradeFundedTemplate: ActorMethod<[Principal],
|
|
1188
|
+
getUpgradeFundedTemplate: ActorMethod<[Principal], Result_21>;
|
|
1156
1189
|
/**
|
|
1157
1190
|
* / Cumulative cycles the registry has granted to engrams for upgrades — ⟨2026-10-25⟩ the meter on
|
|
1158
1191
|
* / security-update funding: the registry pays only for security updates on running engrams (was:
|
|
@@ -1220,7 +1253,7 @@ export interface _SERVICE {
|
|
|
1220
1253
|
* / nowhere" — handed to a caller who merely lacks a grant. Readable by an admin, an audit viewer,
|
|
1221
1254
|
* / or that agent about itself.
|
|
1222
1255
|
*/
|
|
1223
|
-
listAgentEngrams: ActorMethod<[Principal],
|
|
1256
|
+
listAgentEngrams: ActorMethod<[Principal], Result_18>;
|
|
1224
1257
|
/**
|
|
1225
1258
|
* / Contradictory submissions, oldest-first. Empty is the normal case. Never trimmed.
|
|
1226
1259
|
* /
|
|
@@ -1249,7 +1282,7 @@ export interface _SERVICE {
|
|
|
1249
1282
|
* / while keeping the evidence that two of them disagree — the fabricate-on-refusal shape aimed at
|
|
1250
1283
|
* / the one reader the anchors exist for.
|
|
1251
1284
|
*/
|
|
1252
|
-
listAnchorConflicts: ActorMethod<[Principal, bigint, bigint],
|
|
1285
|
+
listAnchorConflicts: ActorMethod<[Principal, bigint, bigint], Result_20>;
|
|
1253
1286
|
/**
|
|
1254
1287
|
* / Witnessed heads for an engram, oldest-first. PUBLIC and ungated — an anchor a stranger cannot
|
|
1255
1288
|
* / read is not an anchor (ratified: "recorded where counterparties can check them").
|
|
@@ -1286,6 +1319,11 @@ export interface _SERVICE {
|
|
|
1286
1319
|
* / anything. A cap that is part of the ratified design is not the unbounded growth paging exists
|
|
1287
1320
|
* / for. WHAT WOULD MAKE THIS WRONG: the ring outgrowing one reply, or rows withheld per caller —
|
|
1288
1321
|
* / then it pages, and that is a break.
|
|
1322
|
+
* / ⟨2026-11-04, the owner's ruling 3A′ — RECOVER-WALLET-1⟩ EVERY ERA, oldest first. An engram the registry
|
|
1323
|
+
* / recovered after the network erased it has more than one record: each anchor carries `era` (0 = its
|
|
1324
|
+
* / first record, k = after its k-th recover), the earlier eras' anchors as they stood when each was set
|
|
1325
|
+
* / aside, then the current era's. Nothing is withheld or deleted. `disputed` is read against the
|
|
1326
|
+
* / contradictions recorded during the anchor's own era.
|
|
1289
1327
|
*/
|
|
1290
1328
|
listAnchors: ActorMethod<[Principal], Array<AnchorView>>;
|
|
1291
1329
|
/**
|
|
@@ -1316,7 +1354,7 @@ export interface _SERVICE {
|
|
|
1316
1354
|
* / for strangers were ruled for the engram's record, and the status console decides a signed-in
|
|
1317
1355
|
* / visitor's tier by whether this read refuses.
|
|
1318
1356
|
*/
|
|
1319
|
-
listAuditEntries: ActorMethod<[bigint, bigint],
|
|
1357
|
+
listAuditEntries: ActorMethod<[bigint, bigint], Result_19>;
|
|
1320
1358
|
/**
|
|
1321
1359
|
* / ⟨0.16.0, L2.2⟩ RENAMED from `getMetricsViewers` — the viewer triple unifies on "audit viewer"
|
|
1322
1360
|
* / across every canister, because a roster that grants audit reads should not be named after
|
|
@@ -1326,7 +1364,7 @@ export interface _SERVICE {
|
|
|
1326
1364
|
* / on 2026-08-11 while viewers existed. An empty vec reads as "nobody holds read-only ops access"
|
|
1327
1365
|
* / when the truth was "you are not on the roster".
|
|
1328
1366
|
*/
|
|
1329
|
-
listAuditViewers: ActorMethod<[],
|
|
1367
|
+
listAuditViewers: ActorMethod<[], Result_18>;
|
|
1330
1368
|
/**
|
|
1331
1369
|
* / PUBLIC: the release history, paged.
|
|
1332
1370
|
* /
|
|
@@ -1348,7 +1386,7 @@ export interface _SERVICE {
|
|
|
1348
1386
|
* / Built by a pass over `parentOf` rather than from a second, reverse index: one stored fact and a
|
|
1349
1387
|
* / pass bounded by the number of opened engrams, instead of two facts to keep in step.
|
|
1350
1388
|
*/
|
|
1351
|
-
listChildrenOf: ActorMethod<[Principal],
|
|
1389
|
+
listChildrenOf: ActorMethod<[Principal], Result_17>;
|
|
1352
1390
|
/**
|
|
1353
1391
|
* / ⟨0.16.0⟩ RENAMED from `readDenialLog`; the refusal becomes a value.
|
|
1354
1392
|
* /
|
|
@@ -1356,7 +1394,7 @@ export interface _SERVICE {
|
|
|
1356
1394
|
* / this log exists to record — so "empty" was never an acceptable answer to a caller who simply
|
|
1357
1395
|
* / lacks the grant. The old trap said so; this says the same thing as data.
|
|
1358
1396
|
*/
|
|
1359
|
-
listDenialEntries: ActorMethod<[bigint, bigint],
|
|
1397
|
+
listDenialEntries: ActorMethod<[bigint, bigint], Result_16>;
|
|
1360
1398
|
/**
|
|
1361
1399
|
* / ⟨2026-10-02⟩ ONE ROW PER ENGAGEMENT, for the deployment's own count of use — DAYS, never
|
|
1362
1400
|
* / instants, and NEVER the agent's root, enrolled key or invite.
|
|
@@ -1382,7 +1420,7 @@ export interface _SERVICE {
|
|
|
1382
1420
|
* / and a query cannot write (the reason `listEngrams` is an update). This is the most sensitive of
|
|
1383
1421
|
* / the three reads — one row per engagement — so who was turned away is worth a record.
|
|
1384
1422
|
*/
|
|
1385
|
-
listEngagementRows: ActorMethod<[bigint, bigint, bigint, Array<Principal>],
|
|
1423
|
+
listEngagementRows: ActorMethod<[bigint, bigint, bigint, Array<Principal>], Result_15>;
|
|
1386
1424
|
/**
|
|
1387
1425
|
* / ⟨0.16.0, L1⟩ THE `authorized : ?Bool` FLAG IS GONE, AND SO IS EVERYTHING BUILT AROUND IT.
|
|
1388
1426
|
* /
|
|
@@ -1415,7 +1453,7 @@ export interface _SERVICE {
|
|
|
1415
1453
|
* / own text had to be corrected for — the forcing call is not a system API at all, it is
|
|
1416
1454
|
* / `denied()`, a state write. See `scripts/check-update-for-read.mjs`.
|
|
1417
1455
|
*/
|
|
1418
|
-
listEngrams: ActorMethod<[bigint, bigint],
|
|
1456
|
+
listEngrams: ActorMethod<[bigint, bigint], Result_14>;
|
|
1419
1457
|
/**
|
|
1420
1458
|
* / ⟨2026-09-28, owner decision: an agent may read its own record⟩ The caller's OWN dispute
|
|
1421
1459
|
* / statements, oldest first, verbatim. Keyed by `msg.caller`, so it cannot be pointed at anyone
|
|
@@ -1470,12 +1508,12 @@ export interface _SERVICE {
|
|
|
1470
1508
|
* / choice in the fleet. That is the consequence this refusal exists to prevent, and it belongs in
|
|
1471
1509
|
* / the message a caller actually receives.
|
|
1472
1510
|
*/
|
|
1473
|
-
listUpdatePrefs: ActorMethod<[bigint, bigint],
|
|
1511
|
+
listUpdatePrefs: ActorMethod<[bigint, bigint], Result_13>;
|
|
1474
1512
|
/**
|
|
1475
1513
|
* / Mint one-shot reserve invites (invite-issuer or admin). Codes use IC-secure randomness over a
|
|
1476
1514
|
* / 32-symbol no-ambiguous alphabet (8 chars ≈ 40 bits). Batch-capped; table hard-capped.
|
|
1477
1515
|
*/
|
|
1478
|
-
mintReserveInvites: ActorMethod<[bigint],
|
|
1516
|
+
mintReserveInvites: ActorMethod<[bigint], Result_12>;
|
|
1479
1517
|
/**
|
|
1480
1518
|
* / The PROBED twin of `getCustodyMode`: same question, asked of the IC rather than of our
|
|
1481
1519
|
* / records — hence the `probe` verb rather than a second noun.
|
|
@@ -1503,7 +1541,7 @@ export interface _SERVICE {
|
|
|
1503
1541
|
* / LIVE from the management canister rather than from a stored transition record, so a query
|
|
1504
1542
|
* / could not produce it at all, not merely more cheaply.
|
|
1505
1543
|
*/
|
|
1506
|
-
probeCustodyMode: ActorMethod<[],
|
|
1544
|
+
probeCustodyMode: ActorMethod<[], Result_11>;
|
|
1507
1545
|
/**
|
|
1508
1546
|
* / What YOUR OWN engram's compute is, read by the registry — the one read that works while it is
|
|
1509
1547
|
* / frozen.
|
|
@@ -1522,7 +1560,25 @@ export interface _SERVICE {
|
|
|
1522
1560
|
* / call — INFERRED a few million cycles, not measured. `eraseAboutNs` is "about" and never invented:
|
|
1523
1561
|
* / null when the network reports no idle burn.
|
|
1524
1562
|
*/
|
|
1525
|
-
probeMyEngramCompute: ActorMethod<[],
|
|
1563
|
+
probeMyEngramCompute: ActorMethod<[], Result_10>;
|
|
1564
|
+
/**
|
|
1565
|
+
* / What an engram OPENED THROUGH ANOTHER is running on, read by the registry — for its key file and its
|
|
1566
|
+
* / sign-in (the person), the read `probeMyEngramCompute` is for a first engram's owner.
|
|
1567
|
+
* /
|
|
1568
|
+
* / CALLER: the app's Access page, signed in as the person, for a child row whose own `getOwnerSignIn`
|
|
1569
|
+
* / call is rejected (an erased child answers nothing) — and the owner kit, as the key file (ADR-0020).
|
|
1570
|
+
* / ⟨2026-11-04, the owner's ruling "1B" — "the registry starts keeping the person's sign-in for them"⟩
|
|
1571
|
+
* / The person may SEE, not ask and not pay: the ask (`recoverMyEngram`) and the payment (the cashier's
|
|
1572
|
+
* / top-up, admitted only from the key file) stay the key file's. Gated to the child's key file
|
|
1573
|
+
* / (`canisterToOwner`) and its sign-in AS NOTED HERE (`childSignIn`); refused to everyone else — the
|
|
1574
|
+
* / parent's owner included — with the SAME words whether or not `child` exists or is a child at all
|
|
1575
|
+
* / (`getEngramOpenedThrough`'s precedent: who works for whom is not disclosed by a refusal). UPDATE, not
|
|
1576
|
+
* / query, for `probeMyEngramCompute`'s reason (a query cannot call the management canister).
|
|
1577
|
+
* / ⟨L7⟩ ⟨marker added 2026-11-05, the reason above unchanged — platform check-update-for-read named it
|
|
1578
|
+
* / missing⟩ The system call that forces the update is `canister_status` on the management canister: a
|
|
1579
|
+
* / query cannot make an inter-canister call, so it could not read an erased child's network status at all.
|
|
1580
|
+
*/
|
|
1581
|
+
probeOpenedEngramCompute: ActorMethod<[Principal], Result_10>;
|
|
1526
1582
|
/**
|
|
1527
1583
|
* / ⟨0.16.0⟩ `Ok` CARRIES THE PRINCIPAL DIRECTLY, not a one-field record wrapping it.
|
|
1528
1584
|
* /
|
|
@@ -1547,6 +1603,38 @@ export interface _SERVICE {
|
|
|
1547
1603
|
],
|
|
1548
1604
|
Result_2
|
|
1549
1605
|
>;
|
|
1606
|
+
/**
|
|
1607
|
+
* / RECOVER YOUR OWN ERASED ENGRAM — reinstall it on the SAME id, so its wallet and EVM address come back.
|
|
1608
|
+
* /
|
|
1609
|
+
* / CALLER: the owner, from the app's "Recover my wallet" (a first engram), or an engram's key file through
|
|
1610
|
+
* / the owner kit's `--recover` (an engram an agent opened through another) — ADR-0020. ⟨2026-11-04, the
|
|
1611
|
+
* / owner's rulings "1D. 2A." and "1B. the rest as recommended."⟩ Recover.mo says what a recover is and
|
|
1612
|
+
* / what does and does not come back.
|
|
1613
|
+
* /
|
|
1614
|
+
* / THE ORDER: the owner first adds compute to the empty engram through the cashier's existing top-up
|
|
1615
|
+
* / (each step its own tap; nothing here moves money, lends or funds); then this call reads the network's
|
|
1616
|
+
* / status of the engram as its controller, refuses by name unless the engram is ERASED (no module) and
|
|
1617
|
+
* / holds enough compute to install (`UpgradeFunding.noDipBar` — the line plus the install hold plus a
|
|
1618
|
+
* / margin; the exact shortfall is named), writes a durable "recover in progress" mark, installs the
|
|
1619
|
+
* / current template with `#install` ONLY (the network refuses it on a canister that holds a module), with
|
|
1620
|
+
* / the init record from this registry's own records (owner, registry, parent, the kept sign-in,
|
|
1621
|
+
* / `recoveredAtNs`), starts the engram if it was found stopped, sets the old record's anchors aside as an
|
|
1622
|
+
* / earlier era (the certified leaf says so), and re-sends what a newborn is told: its biller, market and
|
|
1623
|
+
* / metrics reader, a first fee line and its birth record. The mark is removed once the biller is in
|
|
1624
|
+
* / place; until then a second call finishes the work and answers `#Ok` with `finished = true`.
|
|
1625
|
+
* / ⟨CHANGED 2026-11-05, the canister review's M1 and L1⟩ The old record's anchors are set aside (and
|
|
1626
|
+
* / `recoveredAtNs` recorded) with the mark, BEFORE the install — the record ended at the erase — and no
|
|
1627
|
+
* / first fee line is sent (the balance before the install is not a fee). The compute probes'
|
|
1628
|
+
* / `recoverOpen` says a recover is open. An upgrade that finds a recover's install landed records it first.
|
|
1629
|
+
* /
|
|
1630
|
+
* / Refused, before anything is written: not your engram (`#NotFound`); not active, or ABANDONED (ruling
|
|
1631
|
+
* / 2A: an abandoned engram is not recovered — withdraw your digital dollars before you abandon an engram);
|
|
1632
|
+
* / sovereign; a change of owner unfinished; a restart open or
|
|
1633
|
+
* / a restart/recover call running; an update installing; no template; the status unreadable; NOT ERASED
|
|
1634
|
+
* / (`#Conflict` — "already recovered at T" when this registry recovered it, and no install); compute
|
|
1635
|
+
* / under the bar (`#Conflict` naming the shortfall).
|
|
1636
|
+
*/
|
|
1637
|
+
recoverMyEngram: ActorMethod<[], Result_9>;
|
|
1550
1638
|
removeAuditViewer: ActorMethod<[Principal], Result>;
|
|
1551
1639
|
/**
|
|
1552
1640
|
* / ⟨0.16.0⟩ `Ok` IS THE ANSWER — the `{ reserved : Bool }` wrapper is gone.
|
|
@@ -1629,6 +1717,8 @@ export interface _SERVICE {
|
|
|
1629
1717
|
* / second call while one is still running for the same engram (`restartCallsRunning`), which is
|
|
1630
1718
|
* / what now keeps two interleaved calls from both lending or both stopping and starting — the week
|
|
1631
1719
|
* / used to double as that guard.
|
|
1720
|
+
* / ⟨2026-11-04, beside the lists above — BACKLOG ERASED-REFUSE-1⟩ Also refused, first after the status
|
|
1721
|
+
* / read: an ERASED engram (its canister holds no program) — nothing is stopped or lent into it.
|
|
1632
1722
|
*/
|
|
1633
1723
|
restartMyStoppedEngram: ActorMethod<[], Result_8>;
|
|
1634
1724
|
/**
|
|
@@ -1742,6 +1832,8 @@ export interface _SERVICE {
|
|
|
1742
1832
|
* / starts it. If the owner walks away, the sweep finishes it after 30 minutes: install if covered,
|
|
1743
1833
|
* / restore, start. Never left stopped. It lends nothing, so it takes no week; it refuses an engram
|
|
1744
1834
|
* / that is not stuck, so a healthy engram is never taken offline (spec question Q15).
|
|
1835
|
+
* / ⟨2026-11-04 — BACKLOG ERASED-REFUSE-1⟩ It also refuses an ERASED engram (its canister holds no
|
|
1836
|
+
* / program): there is nothing to restart, and nothing is stopped.
|
|
1745
1837
|
*/
|
|
1746
1838
|
stopMyEngramForRestart: ActorMethod<[], Result_6>;
|
|
1747
1839
|
/**
|
|
@@ -1801,6 +1893,17 @@ export interface _SERVICE {
|
|
|
1801
1893
|
* / (a single probe is not a completed round).
|
|
1802
1894
|
*/
|
|
1803
1895
|
sysMeterEngram: ActorMethod<[Principal], Result_4>;
|
|
1896
|
+
/**
|
|
1897
|
+
* / CALLER: an engram opened through another, from inside its three sign-in writers — `setOwnerSignIn`,
|
|
1898
|
+
* / `declineSignIn` (the sign-in's own decline) and `acceptSignIn` — BEFORE it writes its own seat
|
|
1899
|
+
* / (ADR-0020). ⟨2026-11-04, the owner's ruling "1B"⟩ The registry keeps the child's seated sign-in
|
|
1900
|
+
* / (`childSignIn` says why, and why the order is registry-first): `?p` notes `p` as the sign-in, `null`
|
|
1901
|
+
* / notes that none is seated. A record argument, so it can grow by opt fields (ADR-0018 rule 0).
|
|
1902
|
+
* / Refused, with nothing written: a caller this registry did not open through another engram (a first
|
|
1903
|
+
* / engram has no sign-in; anything else is no engram here), and a sign-in the door would refuse at
|
|
1904
|
+
* / birth (`ChildDoor.signInRefusal` — the key file itself, the anonymous principal, a canister).
|
|
1905
|
+
*/
|
|
1906
|
+
sysNoteChildSignIn: ActorMethod<[{ signIn: [] | [Principal] }], Result>;
|
|
1804
1907
|
/**
|
|
1805
1908
|
* / ⟨2026-10-02⟩ An engram tells this registry that its owner reset it.
|
|
1806
1909
|
* /
|
|
@@ -2056,6 +2159,8 @@ export interface _SERVICE {
|
|
|
2056
2159
|
* / paid only for a #Security update on a running engram. A push is the registry's own initiative,
|
|
2057
2160
|
* / so where the engram cannot hold the install even with its setting lowered, the push is SKIPPED
|
|
2058
2161
|
* / with `#Conflict` and not attempted — the owner can still pull it, and the pull is never refused.
|
|
2162
|
+
* / ⟨2026-11-04 — BACKLOG ERASED-REFUSE-1⟩ An ERASED engram (its canister holds no program) is not
|
|
2163
|
+
* / pushed: `#Conflict`, by name, before anything is added.
|
|
2059
2164
|
*/
|
|
2060
2165
|
upgradeEngram: ActorMethod<[Principal], Result>;
|
|
2061
2166
|
/**
|
|
@@ -2088,6 +2193,8 @@ export interface _SERVICE {
|
|
|
2088
2193
|
* / (UpgradeFunding.pullFailure): `#Conflict` when the engram needs more compute (the owner's
|
|
2089
2194
|
* / action — add compute), `#Unavailable` when the registry could not pay this time (retryable).
|
|
2090
2195
|
* / A failure after a paid or unneeded deposit answers `#Unavailable` with the network's reply.
|
|
2196
|
+
* / ⟨2026-11-04 — BACKLOG ERASED-REFUSE-1⟩ On an ERASED engram (its canister holds no program) nothing
|
|
2197
|
+
* / is paid; the install is still attempted, the network refuses it, and the reply says "erased".
|
|
2091
2198
|
* /
|
|
2092
2199
|
* / An engram already on the current template is a silent no-op. A SOVEREIGN engram gets
|
|
2093
2200
|
* / "registry is no longer a controller" — accurate, because it is no longer ours to install on.
|