@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.did
CHANGED
|
@@ -63,7 +63,7 @@ type Role =
|
|
|
63
63
|
type Result_9 =
|
|
64
64
|
variant {
|
|
65
65
|
Err: Error;
|
|
66
|
-
Ok:
|
|
66
|
+
Ok: RecoverReply;
|
|
67
67
|
};
|
|
68
68
|
type Result_8 =
|
|
69
69
|
variant {
|
|
@@ -96,11 +96,16 @@ type Result_4 =
|
|
|
96
96
|
Err: Error;
|
|
97
97
|
Ok: MeterReading;
|
|
98
98
|
};
|
|
99
|
-
type
|
|
99
|
+
type Result_31 =
|
|
100
100
|
variant {
|
|
101
101
|
Err: Error;
|
|
102
102
|
Ok: FleetCycleHealth;
|
|
103
103
|
};
|
|
104
|
+
type Result_30 =
|
|
105
|
+
variant {
|
|
106
|
+
Err: Error;
|
|
107
|
+
Ok: CertifiedStanding;
|
|
108
|
+
};
|
|
104
109
|
type Result_3 =
|
|
105
110
|
variant {
|
|
106
111
|
Err: Error;
|
|
@@ -109,52 +114,52 @@ type Result_3 =
|
|
|
109
114
|
type Result_29 =
|
|
110
115
|
variant {
|
|
111
116
|
Err: Error;
|
|
112
|
-
Ok:
|
|
117
|
+
Ok: ChildSignInOffer;
|
|
113
118
|
};
|
|
114
119
|
type Result_28 =
|
|
115
120
|
variant {
|
|
116
121
|
Err: Error;
|
|
117
|
-
Ok:
|
|
122
|
+
Ok: blob;
|
|
118
123
|
};
|
|
119
124
|
type Result_27 =
|
|
120
125
|
variant {
|
|
121
126
|
Err: Error;
|
|
122
|
-
Ok:
|
|
127
|
+
Ok: PrivateMetrics;
|
|
123
128
|
};
|
|
124
129
|
type Result_26 =
|
|
125
130
|
variant {
|
|
126
131
|
Err: Error;
|
|
127
|
-
Ok:
|
|
132
|
+
Ok: RestartStatus;
|
|
128
133
|
};
|
|
129
134
|
type Result_25 =
|
|
130
135
|
variant {
|
|
131
136
|
Err: Error;
|
|
132
|
-
Ok:
|
|
137
|
+
Ok: OpeningCounts;
|
|
133
138
|
};
|
|
134
139
|
type Result_24 =
|
|
135
140
|
variant {
|
|
136
141
|
Err: Error;
|
|
137
|
-
Ok:
|
|
142
|
+
Ok: OpenedThrough;
|
|
138
143
|
};
|
|
139
144
|
type Result_23 =
|
|
140
145
|
variant {
|
|
141
146
|
Err: Error;
|
|
142
|
-
Ok:
|
|
147
|
+
Ok: ReferralCounts;
|
|
143
148
|
};
|
|
144
149
|
type Result_22 =
|
|
145
150
|
variant {
|
|
146
151
|
Err: Error;
|
|
147
|
-
Ok:
|
|
152
|
+
Ok: RegistryHealth;
|
|
148
153
|
};
|
|
149
154
|
type Result_21 =
|
|
150
155
|
variant {
|
|
151
156
|
Err: Error;
|
|
152
|
-
Ok:
|
|
157
|
+
Ok: opt text;
|
|
153
158
|
};
|
|
154
159
|
type Result_20 =
|
|
155
160
|
variant {
|
|
156
161
|
Err: Error;
|
|
157
|
-
Ok:
|
|
162
|
+
Ok: Page_6;
|
|
158
163
|
};
|
|
159
164
|
type Result_2 =
|
|
160
165
|
variant {
|
|
@@ -164,52 +169,52 @@ type Result_2 =
|
|
|
164
169
|
type Result_19 =
|
|
165
170
|
variant {
|
|
166
171
|
Err: Error;
|
|
167
|
-
Ok:
|
|
172
|
+
Ok: RecordPage;
|
|
168
173
|
};
|
|
169
174
|
type Result_18 =
|
|
170
175
|
variant {
|
|
171
176
|
Err: Error;
|
|
172
|
-
Ok:
|
|
177
|
+
Ok: Page_5;
|
|
173
178
|
};
|
|
174
179
|
type Result_17 =
|
|
175
180
|
variant {
|
|
176
181
|
Err: Error;
|
|
177
|
-
Ok:
|
|
182
|
+
Ok: vec OpenedEngram;
|
|
178
183
|
};
|
|
179
184
|
type Result_16 =
|
|
180
185
|
variant {
|
|
181
186
|
Err: Error;
|
|
182
|
-
Ok:
|
|
187
|
+
Ok: Page_3;
|
|
183
188
|
};
|
|
184
189
|
type Result_15 =
|
|
185
190
|
variant {
|
|
186
191
|
Err: Error;
|
|
187
|
-
Ok:
|
|
192
|
+
Ok: Page_2;
|
|
188
193
|
};
|
|
189
194
|
type Result_14 =
|
|
190
195
|
variant {
|
|
191
196
|
Err: Error;
|
|
192
|
-
Ok:
|
|
197
|
+
Ok: Page_1;
|
|
193
198
|
};
|
|
194
199
|
type Result_13 =
|
|
195
200
|
variant {
|
|
196
201
|
Err: Error;
|
|
197
|
-
Ok:
|
|
202
|
+
Ok: Page;
|
|
198
203
|
};
|
|
199
204
|
type Result_12 =
|
|
200
205
|
variant {
|
|
201
206
|
Err: Error;
|
|
202
|
-
Ok:
|
|
207
|
+
Ok: vec text;
|
|
203
208
|
};
|
|
204
209
|
type Result_11 =
|
|
205
210
|
variant {
|
|
206
211
|
Err: Error;
|
|
207
|
-
Ok:
|
|
212
|
+
Ok: CustodyMode;
|
|
208
213
|
};
|
|
209
214
|
type Result_10 =
|
|
210
215
|
variant {
|
|
211
216
|
Err: Error;
|
|
212
|
-
Ok:
|
|
217
|
+
Ok: EngramComputeView;
|
|
213
218
|
};
|
|
214
219
|
type Result_1 =
|
|
215
220
|
variant {
|
|
@@ -289,6 +294,15 @@ type ReferralCounts =
|
|
|
289
294
|
openedThroughParentLive: nat;
|
|
290
295
|
throughParent: PairedSoon;
|
|
291
296
|
};
|
|
297
|
+
type RecoverReply =
|
|
298
|
+
record {
|
|
299
|
+
balance: nat;
|
|
300
|
+
billingLinked: bool;
|
|
301
|
+
finished: bool;
|
|
302
|
+
number: opt nat;
|
|
303
|
+
restartLoanOwed: nat;
|
|
304
|
+
template: text;
|
|
305
|
+
};
|
|
292
306
|
type RecordPage =
|
|
293
307
|
record {
|
|
294
308
|
hashFirstFrom: nat;
|
|
@@ -469,10 +483,13 @@ type EngramComputeView =
|
|
|
469
483
|
record {
|
|
470
484
|
cycles: nat;
|
|
471
485
|
eraseAboutNs: opt int;
|
|
486
|
+
erased: opt bool;
|
|
472
487
|
frozen: bool;
|
|
473
488
|
idlePerDay: nat;
|
|
474
489
|
line: nat;
|
|
475
490
|
quiet: bool;
|
|
491
|
+
recoverOpen: opt bool;
|
|
492
|
+
recoveredAtNs: opt int;
|
|
476
493
|
restartOpenUntilNs: opt int;
|
|
477
494
|
runState: variant {
|
|
478
495
|
running;
|
|
@@ -573,7 +590,9 @@ type CertifiedAnchorLeaf =
|
|
|
573
590
|
conflicts: nat;
|
|
574
591
|
disputed: bool;
|
|
575
592
|
engram: principal;
|
|
593
|
+
era: opt nat;
|
|
576
594
|
head: blob;
|
|
595
|
+
recoveredAtNs: opt int;
|
|
577
596
|
refusedConflicts: nat;
|
|
578
597
|
total: nat;
|
|
579
598
|
version: nat;
|
|
@@ -605,6 +624,7 @@ type AnchorView =
|
|
|
605
624
|
record {
|
|
606
625
|
atNs: int;
|
|
607
626
|
disputed: bool;
|
|
627
|
+
era: opt nat;
|
|
608
628
|
head: blob;
|
|
609
629
|
total: nat;
|
|
610
630
|
};
|
|
@@ -648,6 +668,13 @@ service : {
|
|
|
648
668
|
///
|
|
649
669
|
/// ⟨2026-11-02⟩ REFUSED for an engram opened through another: it is never abandoned, so it stays on
|
|
650
670
|
/// this registry's security updates for life; it ends by its parent's cut-off or by running dry.
|
|
671
|
+
///
|
|
672
|
+
/// ⟨2026-11-05, the owner's ruling 2A of 2026-11-04 — "abandoned engrams are NOT recoverable"⟩
|
|
673
|
+
/// WITHDRAW YOUR DIGITAL DOLLARS FIRST. Nobody pays for an abandoned engram: when its compute runs out it stops,
|
|
674
|
+
/// and the network erases it about 30 days later. An abandoned engram is never recovered once it is
|
|
675
|
+
/// erased (`recoverMyEngram` refuses it, and the cashier refuses its top-ups), so whatever its wallet
|
|
676
|
+
/// still holds then stays at its address with no program that can move it. Withdraw it while the
|
|
677
|
+
/// engram runs.
|
|
651
678
|
abandonMyEngram: () -> (Result);
|
|
652
679
|
addAuditViewer: (viewer: principal) -> (Result);
|
|
653
680
|
/// Add a changelog entry (admin only)
|
|
@@ -744,7 +771,7 @@ service : {
|
|
|
744
771
|
/// this one is a noun. That gate now reads the census's L7 citations as a second population for
|
|
745
772
|
/// exactly this blind spot.⟩
|
|
746
773
|
fleetCycleHealth: (offset: nat, limit: nat, thresholdCycles: nat) ->
|
|
747
|
-
(
|
|
774
|
+
(Result_31);
|
|
748
775
|
/// PUBLIC: ⟨0.16.0, L2.4⟩ `fleetSummary` — the ONE public projection of this registry,
|
|
749
776
|
/// replacing `status()` and ABSORBING `publicMetrics()`.
|
|
750
777
|
///
|
|
@@ -848,7 +875,7 @@ service : {
|
|
|
848
875
|
/// is the agent's ROOT principal — the identity an owner sees as `root` on each key in their own
|
|
849
876
|
/// `listAgents`. "The agent itself" is a caller holding that root key. A key for one engram has no
|
|
850
877
|
/// record of its own here; asking about one gets the refusal or, from the key itself, `#NotFound`.
|
|
851
|
-
getAgentStanding: (agent: principal) -> (
|
|
878
|
+
getAgentStanding: (agent: principal) -> (Result_30) query;
|
|
852
879
|
/// Fleet-wide anchoring liveness. Exists because ABSENCE is otherwise uninformative: an engram
|
|
853
880
|
/// that never wrote, one still on a template without the push, and one whose push is broken all
|
|
854
881
|
/// render as an empty getAnchors. Nothing distinguishes the first from the third, so a silently
|
|
@@ -934,7 +961,14 @@ service : {
|
|
|
934
961
|
/// parent this registry holds no owner for.
|
|
935
962
|
/// Called by: the owner kit's opening of an engram through a parent, signed by the agent's lasting
|
|
936
963
|
/// key, before it names the new engram's sign-in.
|
|
937
|
-
getChildSignInOffer: (parent: principal) -> (
|
|
964
|
+
getChildSignInOffer: (parent: principal) -> (Result_29) query;
|
|
965
|
+
/// The consent origin every newborn engram is told — `null` until the admin sets one, and newborns are
|
|
966
|
+
/// then told none (they keep the default origin).
|
|
967
|
+
///
|
|
968
|
+
/// CALLER: the deployment's setup step, reading back what it set; and anyone comparing an engram's
|
|
969
|
+
/// `GET /oauth/authorize` target with what its registry hands out. PUBLIC: an origin is not a secret,
|
|
970
|
+
/// and every owner of this deployment is sent there.
|
|
971
|
+
getConsentOrigin: () -> (opt text) query;
|
|
938
972
|
/// The ATTESTABLE custody-mode fact (agent-native model item 19): "managed" | "sovereign" |
|
|
939
973
|
/// "unknown", derived from the registry's OWN transition records (claimSovereignty /
|
|
940
974
|
/// returnToManaged maintain sovereignEngramIds) — NOT from a canister_status probe, which needs
|
|
@@ -957,7 +991,7 @@ service : {
|
|
|
957
991
|
///
|
|
958
992
|
/// Derived from records, never probed: a canister_status call would trap for exactly the
|
|
959
993
|
/// canisters we are not the controller of, i.e. the sovereign ones this read exists to identify.
|
|
960
|
-
getCustodyMode: (canisterId: principal) -> (
|
|
994
|
+
getCustodyMode: (canisterId: principal) -> (Result_11) query;
|
|
961
995
|
/// Cycles-health probe — slim, cycles-only shape; the money fields moved to the cashier's
|
|
962
996
|
/// getCycleReserveStatus. Read by health-alert.mjs in registry mode.
|
|
963
997
|
///
|
|
@@ -998,7 +1032,7 @@ service : {
|
|
|
998
1032
|
/// same words whether or not the key opened anything, so the refusal tells a stranger nothing.
|
|
999
1033
|
/// `#NotFound` only to a permitted reader, for a key that opened nothing: a true answer, like
|
|
1000
1034
|
/// `listMyAgentDisputes`'s empty list.
|
|
1001
|
-
getEngramOpenedThrough: (key: principal) -> (
|
|
1035
|
+
getEngramOpenedThrough: (key: principal) -> (Result_24) query;
|
|
1002
1036
|
/// The i-th 1 MiB slice of the attested engram wasm (0-indexed). The caller reassembles all
|
|
1003
1037
|
/// chunks in order and MUST verify sha256(reassembled) == getEngramWasmHash before installing —
|
|
1004
1038
|
/// the hash is the attestation; the bytes are a convenience. Out-of-range index → empty blob.
|
|
@@ -1009,7 +1043,7 @@ service : {
|
|
|
1009
1043
|
/// its hash. A reassembler that reads `""` as end-of-stream cannot tell a finished download from
|
|
1010
1044
|
/// a truncated one, so it would hash a partial wasm and report a mismatch against the official
|
|
1011
1045
|
/// list, which reads as "this template is unofficial" rather than "I stopped reading too early".
|
|
1012
|
-
getEngramWasmChunk: (index: nat) -> (
|
|
1046
|
+
getEngramWasmChunk: (index: nat) -> (Result_28) query;
|
|
1013
1047
|
/// The stored template's release class — FREE and UNGATED, because it is the checkable half of a
|
|
1014
1048
|
/// promise made to people who are not our customers. ⟨2026-10-25⟩ The funding rule it checks:
|
|
1015
1049
|
/// #Security — the registry pays for the install on every running engram it can reach, any size;
|
|
@@ -1051,7 +1085,7 @@ service : {
|
|
|
1051
1085
|
/// So L7's "the denial-logging motive for update-for-read is retired by L1" does not hold at this
|
|
1052
1086
|
/// site. L1 retired the motive of trapping-to-refuse; it did not give queries the ability to
|
|
1053
1087
|
/// write, which is the thing this actually depends on.
|
|
1054
|
-
getFleetMetrics: () -> (
|
|
1088
|
+
getFleetMetrics: () -> (Result_27);
|
|
1055
1089
|
/// PUBLIC: a genesis note that only privileged callers could read would defeat its purpose —
|
|
1056
1090
|
/// the reader who most needs it is the stranger deciding whether to trust this chain.
|
|
1057
1091
|
getGenesisNote: () -> (GenesisNote) query;
|
|
@@ -1115,7 +1149,7 @@ service : {
|
|
|
1115
1149
|
/// we lend"⟩ "when the next restart is allowed" now reads "when the registry can next LEND to a
|
|
1116
1150
|
/// restart": `nextRestartAtNs` is only the weekly limit on a loan. A restart on the owner's own
|
|
1117
1151
|
/// compute is allowed now, whatever it says. Field name and shape unchanged.
|
|
1118
|
-
getMyRestartStatus: () -> (
|
|
1152
|
+
getMyRestartStatus: () -> (Result_26) query;
|
|
1119
1153
|
/// ⟨2026-10-02⟩ How many engrams were ever opened, and how — lifetime sizes of state this registry
|
|
1120
1154
|
/// never deletes, plus the two counters of refused openings (`Funnel.OpeningCounts` names each).
|
|
1121
1155
|
/// All O(1); a reader differences them day to day.
|
|
@@ -1124,7 +1158,7 @@ service : {
|
|
|
1124
1158
|
/// grant). Anyone else is REFUSED by name with their class — never a zero, which would read as
|
|
1125
1159
|
/// "nothing was ever opened". A QUERY: counts only, and cheap; its refusal is not in the denial
|
|
1126
1160
|
/// log (`denied` says why a query cannot write).
|
|
1127
|
-
getOpeningCounts: () -> (
|
|
1161
|
+
getOpeningCounts: () -> (Result_25) query;
|
|
1128
1162
|
/// Where an engram was opened from ⟨2026-10-26, the owner's lineage ruling L4: "a child reads its own
|
|
1129
1163
|
/// parent by its canister id"⟩: the engram, the engram it was opened from, and the cut-off's time if
|
|
1130
1164
|
/// there is one. Closes "a handed-on child cannot read its own parent" — `getEngramOpenedThrough` is
|
|
@@ -1139,7 +1173,16 @@ service : {
|
|
|
1139
1173
|
/// `#NotFound` only to a permitted reader: a first engram has no parent (a true answer), and an id
|
|
1140
1174
|
/// this registry never opened is said to be one, not passed off as a first engram (ADR-0002).
|
|
1141
1175
|
/// L8C: `listChildrenOf` is unchanged. L7B: the change-of-owner gate is unchanged.
|
|
1142
|
-
getParentOf: (child: principal) -> (
|
|
1176
|
+
getParentOf: (child: principal) -> (Result_24) query;
|
|
1177
|
+
/// PUBLIC: CALLER: the app, the owner kit and anyone checking an engram's record (ADR-0020). When this
|
|
1178
|
+
/// registry last REINSTALLED the engram on its own id after the network erased it (`recoverMyEngram`),
|
|
1179
|
+
/// or null — never recovered. ⟨2026-11-04, RECOVER-WALLET-1⟩ Public for `getAbandonedAtNs`'s reason: a
|
|
1180
|
+
/// record that restarted is a fact about the record that a stranger checking it needs, and the same date
|
|
1181
|
+
/// is certified in the engram's anchor leaf (`recoveredAtNs`, with its `era`).
|
|
1182
|
+
/// ⟨2026-11-05, beside the above⟩ Set when the reinstall BEGINS — the old record's anchors are set aside in
|
|
1183
|
+
/// the same message, before the install (`recoverMyEngram` says why) — so while a recover's install has not
|
|
1184
|
+
/// landed, the engram can read erased with this set; the compute probes' `recoverOpen` says one is open.
|
|
1185
|
+
getRecoveredAtNs: (canisterId: principal) -> (opt int) query;
|
|
1143
1186
|
/// ⟨2026-10-02⟩ How far agents reach across owners — COUNTS ONLY: agents by how many trees their
|
|
1144
1187
|
/// record spans (1 · 2 · 3–4 · 5+), engrams opened through a parent that are live or cut off, and
|
|
1145
1188
|
/// engrams that paired an agent within seven days of opening. No principal, no row, no per-agent
|
|
@@ -1151,7 +1194,7 @@ service : {
|
|
|
1151
1194
|
/// CALLERS: the admin and the audit viewers (the deployment's metrics reader holds a viewer grant),
|
|
1152
1195
|
/// weekly. Anyone else is REFUSED by name with their class — never zeros. A QUERY: its cost grows
|
|
1153
1196
|
/// with the agents and engrams it walks (one pass over each), so a reader asks weekly, not hourly.
|
|
1154
|
-
getReferralCounts: (exclude: vec principal) -> (
|
|
1197
|
+
getReferralCounts: (exclude: vec principal) -> (Result_23) query;
|
|
1155
1198
|
/// ⟨2026-11-02, the owner's rulings "E ok." and "go ahead with your noticing failures changes"⟩ THE
|
|
1156
1199
|
/// REGISTRY'S HEALTH IN ONE READ: its cycle reserve, its roster, its anchoring counts — the same
|
|
1157
1200
|
/// answers `getCycleReserveStatus`, `getAdminRoles` and `getAnchorStats` give, which stay served
|
|
@@ -1167,7 +1210,7 @@ service : {
|
|
|
1167
1210
|
/// viewer; anyone else is REFUSED by name — never an empty or zero reading. A QUERY: its refusal is
|
|
1168
1211
|
/// not in the denial log (a query cannot write; `denied` says why). One read where there were three
|
|
1169
1212
|
/// saves the monitor and this registry two calls an hour each.
|
|
1170
|
-
getRegistryHealth: () -> (
|
|
1213
|
+
getRegistryHealth: () -> (Result_22) query;
|
|
1171
1214
|
/// PUBLIC: the biller identity is an operational fact a
|
|
1172
1215
|
/// payer's cashier must verify BEFORE taking money (paying into a cashier the registry does not
|
|
1173
1216
|
/// recognize as biller would collect funds it cannot convert into credit).
|
|
@@ -1274,7 +1317,7 @@ service : {
|
|
|
1274
1317
|
/// `?Text` had to carry both "you may not ask" and "this engram was never funded for an upgrade"
|
|
1275
1318
|
/// — and the second is a claim about OUR OWN SPEND, not an absence of one. `#Ok(null)` now means
|
|
1276
1319
|
/// never funded, `#Err(#Refused)` means not your business, and no caller has to guess which.
|
|
1277
|
-
getUpgradeFundedTemplate: (canisterId: principal) -> (
|
|
1320
|
+
getUpgradeFundedTemplate: (canisterId: principal) -> (Result_21) query;
|
|
1278
1321
|
/// Cumulative cycles the registry has granted to engrams for upgrades — ⟨2026-10-25⟩ the meter on
|
|
1279
1322
|
/// security-update funding: the registry pays only for security updates on running engrams (was:
|
|
1280
1323
|
/// "the meter on the never-gated pull path"; the pull is still never refused, and a feature update
|
|
@@ -1331,7 +1374,7 @@ service : {
|
|
|
1331
1374
|
/// `[]` here is a SUBSTANTIVE CLAIM ABOUT ANOTHER PRINCIPAL'S FLEET — "this agent works
|
|
1332
1375
|
/// nowhere" — handed to a caller who merely lacks a grant. Readable by an admin, an audit viewer,
|
|
1333
1376
|
/// or that agent about itself.
|
|
1334
|
-
listAgentEngrams: (agent: principal) -> (
|
|
1377
|
+
listAgentEngrams: (agent: principal) -> (Result_18) query;
|
|
1335
1378
|
/// Contradictory submissions, oldest-first. Empty is the normal case. Never trimmed.
|
|
1336
1379
|
///
|
|
1337
1380
|
/// ⟨0.16.0, L3 — PAGED 2026-08-18⟩ This returned the WHOLE list, and the list is one an engram
|
|
@@ -1359,7 +1402,7 @@ service : {
|
|
|
1359
1402
|
/// while keeping the evidence that two of them disagree — the fabricate-on-refusal shape aimed at
|
|
1360
1403
|
/// the one reader the anchors exist for.
|
|
1361
1404
|
listAnchorConflicts: (canisterId: principal, start: nat, limit: nat) ->
|
|
1362
|
-
(
|
|
1405
|
+
(Result_20) query;
|
|
1363
1406
|
/// Witnessed heads for an engram, oldest-first. PUBLIC and ungated — an anchor a stranger cannot
|
|
1364
1407
|
/// read is not an anchor (ratified: "recorded where counterparties can check them").
|
|
1365
1408
|
///
|
|
@@ -1395,6 +1438,11 @@ service : {
|
|
|
1395
1438
|
/// anything. A cap that is part of the ratified design is not the unbounded growth paging exists
|
|
1396
1439
|
/// for. WHAT WOULD MAKE THIS WRONG: the ring outgrowing one reply, or rows withheld per caller —
|
|
1397
1440
|
/// then it pages, and that is a break.
|
|
1441
|
+
/// ⟨2026-11-04, the owner's ruling 3A′ — RECOVER-WALLET-1⟩ EVERY ERA, oldest first. An engram the registry
|
|
1442
|
+
/// recovered after the network erased it has more than one record: each anchor carries `era` (0 = its
|
|
1443
|
+
/// first record, k = after its k-th recover), the earlier eras' anchors as they stood when each was set
|
|
1444
|
+
/// aside, then the current era's. Nothing is withheld or deleted. `disputed` is read against the
|
|
1445
|
+
/// contradictions recorded during the anchor's own era.
|
|
1398
1446
|
listAnchors: (canisterId: principal) -> (vec AnchorView) query;
|
|
1399
1447
|
/// ⟨0.16.0, L1 + L2.1⟩ RENAMED from `readAuditLog`, and the refusal is now a VALUE.
|
|
1400
1448
|
///
|
|
@@ -1422,7 +1470,7 @@ service : {
|
|
|
1422
1470
|
/// this read sliced, which is not a number about the record. The gate is unchanged: hash-only rows
|
|
1423
1471
|
/// for strangers were ruled for the engram's record, and the status console decides a signed-in
|
|
1424
1472
|
/// visitor's tier by whether this read refuses.
|
|
1425
|
-
listAuditEntries: (start: nat, limit: nat) -> (
|
|
1473
|
+
listAuditEntries: (start: nat, limit: nat) -> (Result_19) query;
|
|
1426
1474
|
/// ⟨0.16.0, L2.2⟩ RENAMED from `getMetricsViewers` — the viewer triple unifies on "audit viewer"
|
|
1427
1475
|
/// across every canister, because a roster that grants audit reads should not be named after
|
|
1428
1476
|
/// metrics on one canister and audit on another.
|
|
@@ -1430,7 +1478,7 @@ service : {
|
|
|
1430
1478
|
/// MEASURED FABRICATION, kept in the record: this arm answered `(vec {})` to an ANONYMOUS caller
|
|
1431
1479
|
/// on 2026-08-11 while viewers existed. An empty vec reads as "nobody holds read-only ops access"
|
|
1432
1480
|
/// when the truth was "you are not on the roster".
|
|
1433
|
-
listAuditViewers: () -> (
|
|
1481
|
+
listAuditViewers: () -> (Result_18) query;
|
|
1434
1482
|
/// PUBLIC: the release history, paged.
|
|
1435
1483
|
///
|
|
1436
1484
|
/// ⟨0.16.0, L2.1⟩ A `Page`, not a bare vec. The old shape returned the WHOLE changelog on every
|
|
@@ -1448,13 +1496,13 @@ service : {
|
|
|
1448
1496
|
///
|
|
1449
1497
|
/// Built by a pass over `parentOf` rather than from a second, reverse index: one stored fact and a
|
|
1450
1498
|
/// pass bounded by the number of opened engrams, instead of two facts to keep in step.
|
|
1451
|
-
listChildrenOf: (engram: principal) -> (
|
|
1499
|
+
listChildrenOf: (engram: principal) -> (Result_17) query;
|
|
1452
1500
|
/// ⟨0.16.0⟩ RENAMED from `readDenialLog`; the refusal becomes a value.
|
|
1453
1501
|
///
|
|
1454
1502
|
/// An empty denial log reads as NOBODY HAS EVER BEEN REFUSED HERE, which is the opposite of what
|
|
1455
1503
|
/// this log exists to record — so "empty" was never an acceptable answer to a caller who simply
|
|
1456
1504
|
/// lacks the grant. The old trap said so; this says the same thing as data.
|
|
1457
|
-
listDenialEntries: (start: nat, limit: nat) -> (
|
|
1505
|
+
listDenialEntries: (start: nat, limit: nat) -> (Result_16) query;
|
|
1458
1506
|
/// ⟨2026-10-02⟩ ONE ROW PER ENGAGEMENT, for the deployment's own count of use — DAYS, never
|
|
1459
1507
|
/// instants, and NEVER the agent's root, enrolled key or invite.
|
|
1460
1508
|
///
|
|
@@ -1479,7 +1527,7 @@ service : {
|
|
|
1479
1527
|
/// and a query cannot write (the reason `listEngrams` is an update). This is the most sensitive of
|
|
1480
1528
|
/// the three reads — one row per engagement — so who was turned away is worth a record.
|
|
1481
1529
|
listEngagementRows: (sinceDay: int, start: nat, limit: nat, companyList:
|
|
1482
|
-
vec principal) -> (
|
|
1530
|
+
vec principal) -> (Result_15);
|
|
1483
1531
|
/// ⟨0.16.0, L1⟩ THE `authorized : ?Bool` FLAG IS GONE, AND SO IS EVERYTHING BUILT AROUND IT.
|
|
1484
1532
|
///
|
|
1485
1533
|
/// The flag was the most carefully-argued compromise in this canister, and every word of that
|
|
@@ -1510,7 +1558,7 @@ service : {
|
|
|
1510
1558
|
/// written and correct; what it lacked was the glyph a gate can see. Its case is the one L7's
|
|
1511
1559
|
/// own text had to be corrected for — the forcing call is not a system API at all, it is
|
|
1512
1560
|
/// `denied()`, a state write. See `scripts/check-update-for-read.mjs`.
|
|
1513
|
-
listEngrams: (offset: nat, limit: nat) -> (
|
|
1561
|
+
listEngrams: (offset: nat, limit: nat) -> (Result_14);
|
|
1514
1562
|
/// ⟨2026-09-28, owner decision: an agent may read its own record⟩ The caller's OWN dispute
|
|
1515
1563
|
/// statements, oldest first, verbatim. Keyed by `msg.caller`, so it cannot be pointed at anyone
|
|
1516
1564
|
/// else, and an empty list is a true answer about the caller ("you have appended none"), never a
|
|
@@ -1557,10 +1605,10 @@ service : {
|
|
|
1557
1605
|
/// that zero applies the SHIPPED DEFAULT — silently reversing every explicit ManualOnly consent
|
|
1558
1606
|
/// choice in the fleet. That is the consequence this refusal exists to prevent, and it belongs in
|
|
1559
1607
|
/// the message a caller actually receives.
|
|
1560
|
-
listUpdatePrefs: (start: nat, limit: nat) -> (
|
|
1608
|
+
listUpdatePrefs: (start: nat, limit: nat) -> (Result_13) query;
|
|
1561
1609
|
/// Mint one-shot reserve invites (invite-issuer or admin). Codes use IC-secure randomness over a
|
|
1562
1610
|
/// 32-symbol no-ambiguous alphabet (8 chars ≈ 40 bits). Batch-capped; table hard-capped.
|
|
1563
|
-
mintReserveInvites: (count: nat) -> (
|
|
1611
|
+
mintReserveInvites: (count: nat) -> (Result_12);
|
|
1564
1612
|
/// The PROBED twin of `getCustodyMode`: same question, asked of the IC rather than of our
|
|
1565
1613
|
/// records — hence the `probe` verb rather than a second noun.
|
|
1566
1614
|
///
|
|
@@ -1586,7 +1634,7 @@ service : {
|
|
|
1586
1634
|
/// `ic.canister_status`. That is also the whole point of the `probe` verb — the value is read
|
|
1587
1635
|
/// LIVE from the management canister rather than from a stored transition record, so a query
|
|
1588
1636
|
/// could not produce it at all, not merely more cheaply.
|
|
1589
|
-
probeCustodyMode: () -> (
|
|
1637
|
+
probeCustodyMode: () -> (Result_11);
|
|
1590
1638
|
/// What YOUR OWN engram's compute is, read by the registry — the one read that works while it is
|
|
1591
1639
|
/// frozen.
|
|
1592
1640
|
///
|
|
@@ -1603,7 +1651,23 @@ service : {
|
|
|
1603
1651
|
/// No rate limit (the do-less): each call costs the registry one management
|
|
1604
1652
|
/// call — INFERRED a few million cycles, not measured. `eraseAboutNs` is "about" and never invented:
|
|
1605
1653
|
/// null when the network reports no idle burn.
|
|
1606
|
-
probeMyEngramCompute: () -> (
|
|
1654
|
+
probeMyEngramCompute: () -> (Result_10);
|
|
1655
|
+
/// What an engram OPENED THROUGH ANOTHER is running on, read by the registry — for its key file and its
|
|
1656
|
+
/// sign-in (the person), the read `probeMyEngramCompute` is for a first engram's owner.
|
|
1657
|
+
///
|
|
1658
|
+
/// CALLER: the app's Access page, signed in as the person, for a child row whose own `getOwnerSignIn`
|
|
1659
|
+
/// call is rejected (an erased child answers nothing) — and the owner kit, as the key file (ADR-0020).
|
|
1660
|
+
/// ⟨2026-11-04, the owner's ruling "1B" — "the registry starts keeping the person's sign-in for them"⟩
|
|
1661
|
+
/// The person may SEE, not ask and not pay: the ask (`recoverMyEngram`) and the payment (the cashier's
|
|
1662
|
+
/// top-up, admitted only from the key file) stay the key file's. Gated to the child's key file
|
|
1663
|
+
/// (`canisterToOwner`) and its sign-in AS NOTED HERE (`childSignIn`); refused to everyone else — the
|
|
1664
|
+
/// parent's owner included — with the SAME words whether or not `child` exists or is a child at all
|
|
1665
|
+
/// (`getEngramOpenedThrough`'s precedent: who works for whom is not disclosed by a refusal). UPDATE, not
|
|
1666
|
+
/// query, for `probeMyEngramCompute`'s reason (a query cannot call the management canister).
|
|
1667
|
+
/// ⟨L7⟩ ⟨marker added 2026-11-05, the reason above unchanged — platform check-update-for-read named it
|
|
1668
|
+
/// missing⟩ The system call that forces the update is `canister_status` on the management canister: a
|
|
1669
|
+
/// query cannot make an inter-canister call, so it could not read an erased child's network status at all.
|
|
1670
|
+
probeOpenedEngramCompute: (child: principal) -> (Result_10);
|
|
1607
1671
|
/// ⟨0.16.0⟩ `Ok` CARRIES THE PRINCIPAL DIRECTLY, not a one-field record wrapping it.
|
|
1608
1672
|
///
|
|
1609
1673
|
/// `#Ok : { canisterId : Principal }` was a record with nothing to disambiguate: the success of a
|
|
@@ -1619,6 +1683,36 @@ service : {
|
|
|
1619
1683
|
invite: opt text;
|
|
1620
1684
|
walletProof: opt blob;
|
|
1621
1685
|
}) -> (Result_2);
|
|
1686
|
+
/// RECOVER YOUR OWN ERASED ENGRAM — reinstall it on the SAME id, so its wallet and EVM address come back.
|
|
1687
|
+
///
|
|
1688
|
+
/// CALLER: the owner, from the app's "Recover my wallet" (a first engram), or an engram's key file through
|
|
1689
|
+
/// the owner kit's `--recover` (an engram an agent opened through another) — ADR-0020. ⟨2026-11-04, the
|
|
1690
|
+
/// owner's rulings "1D. 2A." and "1B. the rest as recommended."⟩ Recover.mo says what a recover is and
|
|
1691
|
+
/// what does and does not come back.
|
|
1692
|
+
///
|
|
1693
|
+
/// THE ORDER: the owner first adds compute to the empty engram through the cashier's existing top-up
|
|
1694
|
+
/// (each step its own tap; nothing here moves money, lends or funds); then this call reads the network's
|
|
1695
|
+
/// status of the engram as its controller, refuses by name unless the engram is ERASED (no module) and
|
|
1696
|
+
/// holds enough compute to install (`UpgradeFunding.noDipBar` — the line plus the install hold plus a
|
|
1697
|
+
/// margin; the exact shortfall is named), writes a durable "recover in progress" mark, installs the
|
|
1698
|
+
/// current template with `#install` ONLY (the network refuses it on a canister that holds a module), with
|
|
1699
|
+
/// the init record from this registry's own records (owner, registry, parent, the kept sign-in,
|
|
1700
|
+
/// `recoveredAtNs`), starts the engram if it was found stopped, sets the old record's anchors aside as an
|
|
1701
|
+
/// earlier era (the certified leaf says so), and re-sends what a newborn is told: its biller, market and
|
|
1702
|
+
/// metrics reader, a first fee line and its birth record. The mark is removed once the biller is in
|
|
1703
|
+
/// place; until then a second call finishes the work and answers `#Ok` with `finished = true`.
|
|
1704
|
+
/// ⟨CHANGED 2026-11-05, the canister review's M1 and L1⟩ The old record's anchors are set aside (and
|
|
1705
|
+
/// `recoveredAtNs` recorded) with the mark, BEFORE the install — the record ended at the erase — and no
|
|
1706
|
+
/// first fee line is sent (the balance before the install is not a fee). The compute probes'
|
|
1707
|
+
/// `recoverOpen` says a recover is open. An upgrade that finds a recover's install landed records it first.
|
|
1708
|
+
///
|
|
1709
|
+
/// Refused, before anything is written: not your engram (`#NotFound`); not active, or ABANDONED (ruling
|
|
1710
|
+
/// 2A: an abandoned engram is not recovered — withdraw your digital dollars before you abandon an engram);
|
|
1711
|
+
/// sovereign; a change of owner unfinished; a restart open or
|
|
1712
|
+
/// a restart/recover call running; an update installing; no template; the status unreadable; NOT ERASED
|
|
1713
|
+
/// (`#Conflict` — "already recovered at T" when this registry recovered it, and no install); compute
|
|
1714
|
+
/// under the bar (`#Conflict` naming the shortfall).
|
|
1715
|
+
recoverMyEngram: () -> (Result_9);
|
|
1622
1716
|
removeAuditViewer: (viewer: principal) -> (Result);
|
|
1623
1717
|
/// ⟨0.16.0⟩ `Ok` IS THE ANSWER — the `{ reserved : Bool }` wrapper is gone.
|
|
1624
1718
|
///
|
|
@@ -1689,6 +1783,8 @@ service : {
|
|
|
1689
1783
|
/// second call while one is still running for the same engram (`restartCallsRunning`), which is
|
|
1690
1784
|
/// what now keeps two interleaved calls from both lending or both stopping and starting — the week
|
|
1691
1785
|
/// used to double as that guard.
|
|
1786
|
+
/// ⟨2026-11-04, beside the lists above — BACKLOG ERASED-REFUSE-1⟩ Also refused, first after the status
|
|
1787
|
+
/// read: an ERASED engram (its canister holds no program) — nothing is stopped or lent into it.
|
|
1692
1788
|
restartMyStoppedEngram: () -> (Result_8);
|
|
1693
1789
|
/// Return to managed: user calls AFTER adding registry back as controller
|
|
1694
1790
|
///
|
|
@@ -1698,6 +1794,13 @@ service : {
|
|
|
1698
1794
|
/// the async controller check + applies the outcome. When admin is null: REGISTRY_ROOT or a canister
|
|
1699
1795
|
/// controller can set it. When admin is set: the current admin hands off, or REGISTRY_ROOT reclaims.
|
|
1700
1796
|
setAdmin: (newAdmin: principal) -> (Result);
|
|
1797
|
+
/// Set the consent origin every engram spawned from now on is told (admin only; `null` clears it, and
|
|
1798
|
+
/// newborns are then told none). An https origin only — no path, query or fragment, lowercase, bounded
|
|
1799
|
+
/// (`ConsentOrigin.check`); anything else is `#Invalid` and nothing changes. Engrams already born keep
|
|
1800
|
+
/// what they were told.
|
|
1801
|
+
///
|
|
1802
|
+
/// CALLER: the registry admin, from the deployment's setup step, before the deployment's first spawn.
|
|
1803
|
+
setConsentOrigin: (o: opt text) -> (Result);
|
|
1701
1804
|
/// Upload the engram template in ONE message — the single-shot path. For a wasm too large to
|
|
1702
1805
|
/// fit, use `engramWasmInit` → `engramWasmPushChunk` × N → `engramWasmFinalize` instead; the two
|
|
1703
1806
|
/// paths produce the same result and differ only in how the bytes arrive.
|
|
@@ -1774,6 +1877,8 @@ service : {
|
|
|
1774
1877
|
/// starts it. If the owner walks away, the sweep finishes it after 30 minutes: install if covered,
|
|
1775
1878
|
/// restore, start. Never left stopped. It lends nothing, so it takes no week; it refuses an engram
|
|
1776
1879
|
/// that is not stuck, so a healthy engram is never taken offline (spec question Q15).
|
|
1880
|
+
/// ⟨2026-11-04 — BACKLOG ERASED-REFUSE-1⟩ It also refuses an ERASED engram (its canister holds no
|
|
1881
|
+
/// program): there is nothing to restart, and nothing is stopped.
|
|
1777
1882
|
stopMyEngramForRestart: () -> (Result_6);
|
|
1778
1883
|
/// An engram witnesses its own audit head. Callable ONLY by a registered engram — msg.caller is
|
|
1779
1884
|
/// the engram principal, so attribution needs no signature and cannot be forged by a third party.
|
|
@@ -1824,6 +1929,15 @@ service : {
|
|
|
1824
1929
|
/// cycles-attached like the sweep; same row semantics, one engram, no heartbeat stamp
|
|
1825
1930
|
/// (a single probe is not a completed round).
|
|
1826
1931
|
sysMeterEngram: (canisterId: principal) -> (Result_4);
|
|
1932
|
+
/// CALLER: an engram opened through another, from inside its three sign-in writers — `setOwnerSignIn`,
|
|
1933
|
+
/// `declineSignIn` (the sign-in's own decline) and `acceptSignIn` — BEFORE it writes its own seat
|
|
1934
|
+
/// (ADR-0020). ⟨2026-11-04, the owner's ruling "1B"⟩ The registry keeps the child's seated sign-in
|
|
1935
|
+
/// (`childSignIn` says why, and why the order is registry-first): `?p` notes `p` as the sign-in, `null`
|
|
1936
|
+
/// notes that none is seated. A record argument, so it can grow by opt fields (ADR-0018 rule 0).
|
|
1937
|
+
/// Refused, with nothing written: a caller this registry did not open through another engram (a first
|
|
1938
|
+
/// engram has no sign-in; anything else is no engram here), and a sign-in the door would refuse at
|
|
1939
|
+
/// birth (`ChildDoor.signInRefusal` — the key file itself, the anonymous principal, a canister).
|
|
1940
|
+
sysNoteChildSignIn: (req: record {signIn: opt principal;}) -> (Result);
|
|
1827
1941
|
/// ⟨2026-10-02⟩ An engram tells this registry that its owner reset it.
|
|
1828
1942
|
///
|
|
1829
1943
|
/// CALLER: a registered engram, about itself — `canisterToOwner` membership, checked first
|
|
@@ -2072,6 +2186,8 @@ service : {
|
|
|
2072
2186
|
/// paid only for a #Security update on a running engram. A push is the registry's own initiative,
|
|
2073
2187
|
/// so where the engram cannot hold the install even with its setting lowered, the push is SKIPPED
|
|
2074
2188
|
/// with `#Conflict` and not attempted — the owner can still pull it, and the pull is never refused.
|
|
2189
|
+
/// ⟨2026-11-04 — BACKLOG ERASED-REFUSE-1⟩ An ERASED engram (its canister holds no program) is not
|
|
2190
|
+
/// pushed: `#Conflict`, by name, before anything is added.
|
|
2075
2191
|
upgradeEngram: (canisterId: principal) -> (Result);
|
|
2076
2192
|
/// Upgrade YOUR OWN engram to the registry's current template. Self-service — no admin, no
|
|
2077
2193
|
/// queue, no approval.
|
|
@@ -2102,6 +2218,8 @@ service : {
|
|
|
2102
2218
|
/// (UpgradeFunding.pullFailure): `#Conflict` when the engram needs more compute (the owner's
|
|
2103
2219
|
/// action — add compute), `#Unavailable` when the registry could not pay this time (retryable).
|
|
2104
2220
|
/// A failure after a paid or unneeded deposit answers `#Unavailable` with the network's reply.
|
|
2221
|
+
/// ⟨2026-11-04 — BACKLOG ERASED-REFUSE-1⟩ On an ERASED engram (its canister holds no program) nothing
|
|
2222
|
+
/// is paid; the install is still attempted, the network refuses it, and the reply says "erased".
|
|
2105
2223
|
///
|
|
2106
2224
|
/// An engram already on the current template is a silent no-op. A SOVEREIGN engram gets
|
|
2107
2225
|
/// "registry is no longer a controller" — accurate, because it is no longer ours to install on.
|