@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/registry.did CHANGED
@@ -63,7 +63,7 @@ type Role =
63
63
  type Result_9 =
64
64
  variant {
65
65
  Err: Error;
66
- Ok: EngramComputeView;
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 Result_30 =
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: CertifiedStanding;
117
+ Ok: ChildSignInOffer;
113
118
  };
114
119
  type Result_28 =
115
120
  variant {
116
121
  Err: Error;
117
- Ok: ChildSignInOffer;
122
+ Ok: blob;
118
123
  };
119
124
  type Result_27 =
120
125
  variant {
121
126
  Err: Error;
122
- Ok: blob;
127
+ Ok: PrivateMetrics;
123
128
  };
124
129
  type Result_26 =
125
130
  variant {
126
131
  Err: Error;
127
- Ok: PrivateMetrics;
132
+ Ok: RestartStatus;
128
133
  };
129
134
  type Result_25 =
130
135
  variant {
131
136
  Err: Error;
132
- Ok: RestartStatus;
137
+ Ok: OpeningCounts;
133
138
  };
134
139
  type Result_24 =
135
140
  variant {
136
141
  Err: Error;
137
- Ok: OpeningCounts;
142
+ Ok: OpenedThrough;
138
143
  };
139
144
  type Result_23 =
140
145
  variant {
141
146
  Err: Error;
142
- Ok: OpenedThrough;
147
+ Ok: ReferralCounts;
143
148
  };
144
149
  type Result_22 =
145
150
  variant {
146
151
  Err: Error;
147
- Ok: ReferralCounts;
152
+ Ok: RegistryHealth;
148
153
  };
149
154
  type Result_21 =
150
155
  variant {
151
156
  Err: Error;
152
- Ok: RegistryHealth;
157
+ Ok: opt text;
153
158
  };
154
159
  type Result_20 =
155
160
  variant {
156
161
  Err: Error;
157
- Ok: opt text;
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: Page_6;
172
+ Ok: RecordPage;
168
173
  };
169
174
  type Result_18 =
170
175
  variant {
171
176
  Err: Error;
172
- Ok: RecordPage;
177
+ Ok: Page_5;
173
178
  };
174
179
  type Result_17 =
175
180
  variant {
176
181
  Err: Error;
177
- Ok: Page_5;
182
+ Ok: vec OpenedEngram;
178
183
  };
179
184
  type Result_16 =
180
185
  variant {
181
186
  Err: Error;
182
- Ok: vec OpenedEngram;
187
+ Ok: Page_3;
183
188
  };
184
189
  type Result_15 =
185
190
  variant {
186
191
  Err: Error;
187
- Ok: Page_3;
192
+ Ok: Page_2;
188
193
  };
189
194
  type Result_14 =
190
195
  variant {
191
196
  Err: Error;
192
- Ok: Page_2;
197
+ Ok: Page_1;
193
198
  };
194
199
  type Result_13 =
195
200
  variant {
196
201
  Err: Error;
197
- Ok: Page_1;
202
+ Ok: Page;
198
203
  };
199
204
  type Result_12 =
200
205
  variant {
201
206
  Err: Error;
202
- Ok: Page;
207
+ Ok: vec text;
203
208
  };
204
209
  type Result_11 =
205
210
  variant {
206
211
  Err: Error;
207
- Ok: vec text;
212
+ Ok: CustodyMode;
208
213
  };
209
214
  type Result_10 =
210
215
  variant {
211
216
  Err: Error;
212
- Ok: CustodyMode;
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
- (Result_30);
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) -> (Result_29) query;
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,7 @@ 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) -> (Result_28) query;
964
+ getChildSignInOffer: (parent: principal) -> (Result_29) query;
938
965
  /// The ATTESTABLE custody-mode fact (agent-native model item 19): "managed" | "sovereign" |
939
966
  /// "unknown", derived from the registry's OWN transition records (claimSovereignty /
940
967
  /// returnToManaged maintain sovereignEngramIds) — NOT from a canister_status probe, which needs
@@ -957,7 +984,7 @@ service : {
957
984
  ///
958
985
  /// Derived from records, never probed: a canister_status call would trap for exactly the
959
986
  /// canisters we are not the controller of, i.e. the sovereign ones this read exists to identify.
960
- getCustodyMode: (canisterId: principal) -> (Result_10) query;
987
+ getCustodyMode: (canisterId: principal) -> (Result_11) query;
961
988
  /// Cycles-health probe — slim, cycles-only shape; the money fields moved to the cashier's
962
989
  /// getCycleReserveStatus. Read by health-alert.mjs in registry mode.
963
990
  ///
@@ -998,7 +1025,7 @@ service : {
998
1025
  /// same words whether or not the key opened anything, so the refusal tells a stranger nothing.
999
1026
  /// `#NotFound` only to a permitted reader, for a key that opened nothing: a true answer, like
1000
1027
  /// `listMyAgentDisputes`'s empty list.
1001
- getEngramOpenedThrough: (key: principal) -> (Result_23) query;
1028
+ getEngramOpenedThrough: (key: principal) -> (Result_24) query;
1002
1029
  /// The i-th 1 MiB slice of the attested engram wasm (0-indexed). The caller reassembles all
1003
1030
  /// chunks in order and MUST verify sha256(reassembled) == getEngramWasmHash before installing —
1004
1031
  /// the hash is the attestation; the bytes are a convenience. Out-of-range index → empty blob.
@@ -1009,7 +1036,7 @@ service : {
1009
1036
  /// its hash. A reassembler that reads `""` as end-of-stream cannot tell a finished download from
1010
1037
  /// a truncated one, so it would hash a partial wasm and report a mismatch against the official
1011
1038
  /// list, which reads as "this template is unofficial" rather than "I stopped reading too early".
1012
- getEngramWasmChunk: (index: nat) -> (Result_27) query;
1039
+ getEngramWasmChunk: (index: nat) -> (Result_28) query;
1013
1040
  /// The stored template's release class — FREE and UNGATED, because it is the checkable half of a
1014
1041
  /// promise made to people who are not our customers. ⟨2026-10-25⟩ The funding rule it checks:
1015
1042
  /// #Security — the registry pays for the install on every running engram it can reach, any size;
@@ -1051,7 +1078,7 @@ service : {
1051
1078
  /// So L7's "the denial-logging motive for update-for-read is retired by L1" does not hold at this
1052
1079
  /// site. L1 retired the motive of trapping-to-refuse; it did not give queries the ability to
1053
1080
  /// write, which is the thing this actually depends on.
1054
- getFleetMetrics: () -> (Result_26);
1081
+ getFleetMetrics: () -> (Result_27);
1055
1082
  /// PUBLIC: a genesis note that only privileged callers could read would defeat its purpose —
1056
1083
  /// the reader who most needs it is the stranger deciding whether to trust this chain.
1057
1084
  getGenesisNote: () -> (GenesisNote) query;
@@ -1115,7 +1142,7 @@ service : {
1115
1142
  /// we lend"⟩ "when the next restart is allowed" now reads "when the registry can next LEND to a
1116
1143
  /// restart": `nextRestartAtNs` is only the weekly limit on a loan. A restart on the owner's own
1117
1144
  /// compute is allowed now, whatever it says. Field name and shape unchanged.
1118
- getMyRestartStatus: () -> (Result_25) query;
1145
+ getMyRestartStatus: () -> (Result_26) query;
1119
1146
  /// ⟨2026-10-02⟩ How many engrams were ever opened, and how — lifetime sizes of state this registry
1120
1147
  /// never deletes, plus the two counters of refused openings (`Funnel.OpeningCounts` names each).
1121
1148
  /// All O(1); a reader differences them day to day.
@@ -1124,7 +1151,7 @@ service : {
1124
1151
  /// grant). Anyone else is REFUSED by name with their class — never a zero, which would read as
1125
1152
  /// "nothing was ever opened". A QUERY: counts only, and cheap; its refusal is not in the denial
1126
1153
  /// log (`denied` says why a query cannot write).
1127
- getOpeningCounts: () -> (Result_24) query;
1154
+ getOpeningCounts: () -> (Result_25) query;
1128
1155
  /// Where an engram was opened from ⟨2026-10-26, the owner's lineage ruling L4: "a child reads its own
1129
1156
  /// parent by its canister id"⟩: the engram, the engram it was opened from, and the cut-off's time if
1130
1157
  /// there is one. Closes "a handed-on child cannot read its own parent" — `getEngramOpenedThrough` is
@@ -1139,7 +1166,16 @@ service : {
1139
1166
  /// `#NotFound` only to a permitted reader: a first engram has no parent (a true answer), and an id
1140
1167
  /// this registry never opened is said to be one, not passed off as a first engram (ADR-0002).
1141
1168
  /// L8C: `listChildrenOf` is unchanged. L7B: the change-of-owner gate is unchanged.
1142
- getParentOf: (child: principal) -> (Result_23) query;
1169
+ getParentOf: (child: principal) -> (Result_24) query;
1170
+ /// PUBLIC: CALLER: the app, the owner kit and anyone checking an engram's record (ADR-0020). When this
1171
+ /// registry last REINSTALLED the engram on its own id after the network erased it (`recoverMyEngram`),
1172
+ /// or null — never recovered. ⟨2026-11-04, RECOVER-WALLET-1⟩ Public for `getAbandonedAtNs`'s reason: a
1173
+ /// record that restarted is a fact about the record that a stranger checking it needs, and the same date
1174
+ /// is certified in the engram's anchor leaf (`recoveredAtNs`, with its `era`).
1175
+ /// ⟨2026-11-05, beside the above⟩ Set when the reinstall BEGINS — the old record's anchors are set aside in
1176
+ /// the same message, before the install (`recoverMyEngram` says why) — so while a recover's install has not
1177
+ /// landed, the engram can read erased with this set; the compute probes' `recoverOpen` says one is open.
1178
+ getRecoveredAtNs: (canisterId: principal) -> (opt int) query;
1143
1179
  /// ⟨2026-10-02⟩ How far agents reach across owners — COUNTS ONLY: agents by how many trees their
1144
1180
  /// record spans (1 · 2 · 3–4 · 5+), engrams opened through a parent that are live or cut off, and
1145
1181
  /// engrams that paired an agent within seven days of opening. No principal, no row, no per-agent
@@ -1151,7 +1187,7 @@ service : {
1151
1187
  /// CALLERS: the admin and the audit viewers (the deployment's metrics reader holds a viewer grant),
1152
1188
  /// weekly. Anyone else is REFUSED by name with their class — never zeros. A QUERY: its cost grows
1153
1189
  /// with the agents and engrams it walks (one pass over each), so a reader asks weekly, not hourly.
1154
- getReferralCounts: (exclude: vec principal) -> (Result_22) query;
1190
+ getReferralCounts: (exclude: vec principal) -> (Result_23) query;
1155
1191
  /// ⟨2026-11-02, the owner's rulings "E ok." and "go ahead with your noticing failures changes"⟩ THE
1156
1192
  /// REGISTRY'S HEALTH IN ONE READ: its cycle reserve, its roster, its anchoring counts — the same
1157
1193
  /// answers `getCycleReserveStatus`, `getAdminRoles` and `getAnchorStats` give, which stay served
@@ -1167,7 +1203,7 @@ service : {
1167
1203
  /// viewer; anyone else is REFUSED by name — never an empty or zero reading. A QUERY: its refusal is
1168
1204
  /// not in the denial log (a query cannot write; `denied` says why). One read where there were three
1169
1205
  /// saves the monitor and this registry two calls an hour each.
1170
- getRegistryHealth: () -> (Result_21) query;
1206
+ getRegistryHealth: () -> (Result_22) query;
1171
1207
  /// PUBLIC: the biller identity is an operational fact a
1172
1208
  /// payer's cashier must verify BEFORE taking money (paying into a cashier the registry does not
1173
1209
  /// recognize as biller would collect funds it cannot convert into credit).
@@ -1274,7 +1310,7 @@ service : {
1274
1310
  /// `?Text` had to carry both "you may not ask" and "this engram was never funded for an upgrade"
1275
1311
  /// — and the second is a claim about OUR OWN SPEND, not an absence of one. `#Ok(null)` now means
1276
1312
  /// never funded, `#Err(#Refused)` means not your business, and no caller has to guess which.
1277
- getUpgradeFundedTemplate: (canisterId: principal) -> (Result_20) query;
1313
+ getUpgradeFundedTemplate: (canisterId: principal) -> (Result_21) query;
1278
1314
  /// Cumulative cycles the registry has granted to engrams for upgrades — ⟨2026-10-25⟩ the meter on
1279
1315
  /// security-update funding: the registry pays only for security updates on running engrams (was:
1280
1316
  /// "the meter on the never-gated pull path"; the pull is still never refused, and a feature update
@@ -1331,7 +1367,7 @@ service : {
1331
1367
  /// `[]` here is a SUBSTANTIVE CLAIM ABOUT ANOTHER PRINCIPAL'S FLEET — "this agent works
1332
1368
  /// nowhere" — handed to a caller who merely lacks a grant. Readable by an admin, an audit viewer,
1333
1369
  /// or that agent about itself.
1334
- listAgentEngrams: (agent: principal) -> (Result_17) query;
1370
+ listAgentEngrams: (agent: principal) -> (Result_18) query;
1335
1371
  /// Contradictory submissions, oldest-first. Empty is the normal case. Never trimmed.
1336
1372
  ///
1337
1373
  /// ⟨0.16.0, L3 — PAGED 2026-08-18⟩ This returned the WHOLE list, and the list is one an engram
@@ -1359,7 +1395,7 @@ service : {
1359
1395
  /// while keeping the evidence that two of them disagree — the fabricate-on-refusal shape aimed at
1360
1396
  /// the one reader the anchors exist for.
1361
1397
  listAnchorConflicts: (canisterId: principal, start: nat, limit: nat) ->
1362
- (Result_19) query;
1398
+ (Result_20) query;
1363
1399
  /// Witnessed heads for an engram, oldest-first. PUBLIC and ungated — an anchor a stranger cannot
1364
1400
  /// read is not an anchor (ratified: "recorded where counterparties can check them").
1365
1401
  ///
@@ -1395,6 +1431,11 @@ service : {
1395
1431
  /// anything. A cap that is part of the ratified design is not the unbounded growth paging exists
1396
1432
  /// for. WHAT WOULD MAKE THIS WRONG: the ring outgrowing one reply, or rows withheld per caller —
1397
1433
  /// then it pages, and that is a break.
1434
+ /// ⟨2026-11-04, the owner's ruling 3A′ — RECOVER-WALLET-1⟩ EVERY ERA, oldest first. An engram the registry
1435
+ /// recovered after the network erased it has more than one record: each anchor carries `era` (0 = its
1436
+ /// first record, k = after its k-th recover), the earlier eras' anchors as they stood when each was set
1437
+ /// aside, then the current era's. Nothing is withheld or deleted. `disputed` is read against the
1438
+ /// contradictions recorded during the anchor's own era.
1398
1439
  listAnchors: (canisterId: principal) -> (vec AnchorView) query;
1399
1440
  /// ⟨0.16.0, L1 + L2.1⟩ RENAMED from `readAuditLog`, and the refusal is now a VALUE.
1400
1441
  ///
@@ -1422,7 +1463,7 @@ service : {
1422
1463
  /// this read sliced, which is not a number about the record. The gate is unchanged: hash-only rows
1423
1464
  /// for strangers were ruled for the engram's record, and the status console decides a signed-in
1424
1465
  /// visitor's tier by whether this read refuses.
1425
- listAuditEntries: (start: nat, limit: nat) -> (Result_18) query;
1466
+ listAuditEntries: (start: nat, limit: nat) -> (Result_19) query;
1426
1467
  /// ⟨0.16.0, L2.2⟩ RENAMED from `getMetricsViewers` — the viewer triple unifies on "audit viewer"
1427
1468
  /// across every canister, because a roster that grants audit reads should not be named after
1428
1469
  /// metrics on one canister and audit on another.
@@ -1430,7 +1471,7 @@ service : {
1430
1471
  /// MEASURED FABRICATION, kept in the record: this arm answered `(vec {})` to an ANONYMOUS caller
1431
1472
  /// on 2026-08-11 while viewers existed. An empty vec reads as "nobody holds read-only ops access"
1432
1473
  /// when the truth was "you are not on the roster".
1433
- listAuditViewers: () -> (Result_17) query;
1474
+ listAuditViewers: () -> (Result_18) query;
1434
1475
  /// PUBLIC: the release history, paged.
1435
1476
  ///
1436
1477
  /// ⟨0.16.0, L2.1⟩ A `Page`, not a bare vec. The old shape returned the WHOLE changelog on every
@@ -1448,13 +1489,13 @@ service : {
1448
1489
  ///
1449
1490
  /// Built by a pass over `parentOf` rather than from a second, reverse index: one stored fact and a
1450
1491
  /// pass bounded by the number of opened engrams, instead of two facts to keep in step.
1451
- listChildrenOf: (engram: principal) -> (Result_16) query;
1492
+ listChildrenOf: (engram: principal) -> (Result_17) query;
1452
1493
  /// ⟨0.16.0⟩ RENAMED from `readDenialLog`; the refusal becomes a value.
1453
1494
  ///
1454
1495
  /// An empty denial log reads as NOBODY HAS EVER BEEN REFUSED HERE, which is the opposite of what
1455
1496
  /// this log exists to record — so "empty" was never an acceptable answer to a caller who simply
1456
1497
  /// lacks the grant. The old trap said so; this says the same thing as data.
1457
- listDenialEntries: (start: nat, limit: nat) -> (Result_15) query;
1498
+ listDenialEntries: (start: nat, limit: nat) -> (Result_16) query;
1458
1499
  /// ⟨2026-10-02⟩ ONE ROW PER ENGAGEMENT, for the deployment's own count of use — DAYS, never
1459
1500
  /// instants, and NEVER the agent's root, enrolled key or invite.
1460
1501
  ///
@@ -1479,7 +1520,7 @@ service : {
1479
1520
  /// and a query cannot write (the reason `listEngrams` is an update). This is the most sensitive of
1480
1521
  /// the three reads — one row per engagement — so who was turned away is worth a record.
1481
1522
  listEngagementRows: (sinceDay: int, start: nat, limit: nat, companyList:
1482
- vec principal) -> (Result_14);
1523
+ vec principal) -> (Result_15);
1483
1524
  /// ⟨0.16.0, L1⟩ THE `authorized : ?Bool` FLAG IS GONE, AND SO IS EVERYTHING BUILT AROUND IT.
1484
1525
  ///
1485
1526
  /// The flag was the most carefully-argued compromise in this canister, and every word of that
@@ -1510,7 +1551,7 @@ service : {
1510
1551
  /// written and correct; what it lacked was the glyph a gate can see. Its case is the one L7's
1511
1552
  /// own text had to be corrected for — the forcing call is not a system API at all, it is
1512
1553
  /// `denied()`, a state write. See `scripts/check-update-for-read.mjs`.
1513
- listEngrams: (offset: nat, limit: nat) -> (Result_13);
1554
+ listEngrams: (offset: nat, limit: nat) -> (Result_14);
1514
1555
  /// ⟨2026-09-28, owner decision: an agent may read its own record⟩ The caller's OWN dispute
1515
1556
  /// statements, oldest first, verbatim. Keyed by `msg.caller`, so it cannot be pointed at anyone
1516
1557
  /// else, and an empty list is a true answer about the caller ("you have appended none"), never a
@@ -1557,10 +1598,10 @@ service : {
1557
1598
  /// that zero applies the SHIPPED DEFAULT — silently reversing every explicit ManualOnly consent
1558
1599
  /// choice in the fleet. That is the consequence this refusal exists to prevent, and it belongs in
1559
1600
  /// the message a caller actually receives.
1560
- listUpdatePrefs: (start: nat, limit: nat) -> (Result_12) query;
1601
+ listUpdatePrefs: (start: nat, limit: nat) -> (Result_13) query;
1561
1602
  /// Mint one-shot reserve invites (invite-issuer or admin). Codes use IC-secure randomness over a
1562
1603
  /// 32-symbol no-ambiguous alphabet (8 chars ≈ 40 bits). Batch-capped; table hard-capped.
1563
- mintReserveInvites: (count: nat) -> (Result_11);
1604
+ mintReserveInvites: (count: nat) -> (Result_12);
1564
1605
  /// The PROBED twin of `getCustodyMode`: same question, asked of the IC rather than of our
1565
1606
  /// records — hence the `probe` verb rather than a second noun.
1566
1607
  ///
@@ -1586,7 +1627,7 @@ service : {
1586
1627
  /// `ic.canister_status`. That is also the whole point of the `probe` verb — the value is read
1587
1628
  /// LIVE from the management canister rather than from a stored transition record, so a query
1588
1629
  /// could not produce it at all, not merely more cheaply.
1589
- probeCustodyMode: () -> (Result_10);
1630
+ probeCustodyMode: () -> (Result_11);
1590
1631
  /// What YOUR OWN engram's compute is, read by the registry — the one read that works while it is
1591
1632
  /// frozen.
1592
1633
  ///
@@ -1603,7 +1644,23 @@ service : {
1603
1644
  /// No rate limit (the do-less): each call costs the registry one management
1604
1645
  /// call — INFERRED a few million cycles, not measured. `eraseAboutNs` is "about" and never invented:
1605
1646
  /// null when the network reports no idle burn.
1606
- probeMyEngramCompute: () -> (Result_9);
1647
+ probeMyEngramCompute: () -> (Result_10);
1648
+ /// What an engram OPENED THROUGH ANOTHER is running on, read by the registry — for its key file and its
1649
+ /// sign-in (the person), the read `probeMyEngramCompute` is for a first engram's owner.
1650
+ ///
1651
+ /// CALLER: the app's Access page, signed in as the person, for a child row whose own `getOwnerSignIn`
1652
+ /// call is rejected (an erased child answers nothing) — and the owner kit, as the key file (ADR-0020).
1653
+ /// ⟨2026-11-04, the owner's ruling "1B" — "the registry starts keeping the person's sign-in for them"⟩
1654
+ /// The person may SEE, not ask and not pay: the ask (`recoverMyEngram`) and the payment (the cashier's
1655
+ /// top-up, admitted only from the key file) stay the key file's. Gated to the child's key file
1656
+ /// (`canisterToOwner`) and its sign-in AS NOTED HERE (`childSignIn`); refused to everyone else — the
1657
+ /// parent's owner included — with the SAME words whether or not `child` exists or is a child at all
1658
+ /// (`getEngramOpenedThrough`'s precedent: who works for whom is not disclosed by a refusal). UPDATE, not
1659
+ /// query, for `probeMyEngramCompute`'s reason (a query cannot call the management canister).
1660
+ /// ⟨L7⟩ ⟨marker added 2026-11-05, the reason above unchanged — platform check-update-for-read named it
1661
+ /// missing⟩ The system call that forces the update is `canister_status` on the management canister: a
1662
+ /// query cannot make an inter-canister call, so it could not read an erased child's network status at all.
1663
+ probeOpenedEngramCompute: (child: principal) -> (Result_10);
1607
1664
  /// ⟨0.16.0⟩ `Ok` CARRIES THE PRINCIPAL DIRECTLY, not a one-field record wrapping it.
1608
1665
  ///
1609
1666
  /// `#Ok : { canisterId : Principal }` was a record with nothing to disambiguate: the success of a
@@ -1619,6 +1676,36 @@ service : {
1619
1676
  invite: opt text;
1620
1677
  walletProof: opt blob;
1621
1678
  }) -> (Result_2);
1679
+ /// RECOVER YOUR OWN ERASED ENGRAM — reinstall it on the SAME id, so its wallet and EVM address come back.
1680
+ ///
1681
+ /// CALLER: the owner, from the app's "Recover my wallet" (a first engram), or an engram's key file through
1682
+ /// the owner kit's `--recover` (an engram an agent opened through another) — ADR-0020. ⟨2026-11-04, the
1683
+ /// owner's rulings "1D. 2A." and "1B. the rest as recommended."⟩ Recover.mo says what a recover is and
1684
+ /// what does and does not come back.
1685
+ ///
1686
+ /// THE ORDER: the owner first adds compute to the empty engram through the cashier's existing top-up
1687
+ /// (each step its own tap; nothing here moves money, lends or funds); then this call reads the network's
1688
+ /// status of the engram as its controller, refuses by name unless the engram is ERASED (no module) and
1689
+ /// holds enough compute to install (`UpgradeFunding.noDipBar` — the line plus the install hold plus a
1690
+ /// margin; the exact shortfall is named), writes a durable "recover in progress" mark, installs the
1691
+ /// current template with `#install` ONLY (the network refuses it on a canister that holds a module), with
1692
+ /// the init record from this registry's own records (owner, registry, parent, the kept sign-in,
1693
+ /// `recoveredAtNs`), starts the engram if it was found stopped, sets the old record's anchors aside as an
1694
+ /// earlier era (the certified leaf says so), and re-sends what a newborn is told: its biller, market and
1695
+ /// metrics reader, a first fee line and its birth record. The mark is removed once the biller is in
1696
+ /// place; until then a second call finishes the work and answers `#Ok` with `finished = true`.
1697
+ /// ⟨CHANGED 2026-11-05, the canister review's M1 and L1⟩ The old record's anchors are set aside (and
1698
+ /// `recoveredAtNs` recorded) with the mark, BEFORE the install — the record ended at the erase — and no
1699
+ /// first fee line is sent (the balance before the install is not a fee). The compute probes'
1700
+ /// `recoverOpen` says a recover is open. An upgrade that finds a recover's install landed records it first.
1701
+ ///
1702
+ /// Refused, before anything is written: not your engram (`#NotFound`); not active, or ABANDONED (ruling
1703
+ /// 2A: an abandoned engram is not recovered — withdraw your digital dollars before you abandon an engram);
1704
+ /// sovereign; a change of owner unfinished; a restart open or
1705
+ /// a restart/recover call running; an update installing; no template; the status unreadable; NOT ERASED
1706
+ /// (`#Conflict` — "already recovered at T" when this registry recovered it, and no install); compute
1707
+ /// under the bar (`#Conflict` naming the shortfall).
1708
+ recoverMyEngram: () -> (Result_9);
1622
1709
  removeAuditViewer: (viewer: principal) -> (Result);
1623
1710
  /// ⟨0.16.0⟩ `Ok` IS THE ANSWER — the `{ reserved : Bool }` wrapper is gone.
1624
1711
  ///
@@ -1689,6 +1776,8 @@ service : {
1689
1776
  /// second call while one is still running for the same engram (`restartCallsRunning`), which is
1690
1777
  /// what now keeps two interleaved calls from both lending or both stopping and starting — the week
1691
1778
  /// used to double as that guard.
1779
+ /// ⟨2026-11-04, beside the lists above — BACKLOG ERASED-REFUSE-1⟩ Also refused, first after the status
1780
+ /// read: an ERASED engram (its canister holds no program) — nothing is stopped or lent into it.
1692
1781
  restartMyStoppedEngram: () -> (Result_8);
1693
1782
  /// Return to managed: user calls AFTER adding registry back as controller
1694
1783
  ///
@@ -1774,6 +1863,8 @@ service : {
1774
1863
  /// starts it. If the owner walks away, the sweep finishes it after 30 minutes: install if covered,
1775
1864
  /// restore, start. Never left stopped. It lends nothing, so it takes no week; it refuses an engram
1776
1865
  /// that is not stuck, so a healthy engram is never taken offline (spec question Q15).
1866
+ /// ⟨2026-11-04 — BACKLOG ERASED-REFUSE-1⟩ It also refuses an ERASED engram (its canister holds no
1867
+ /// program): there is nothing to restart, and nothing is stopped.
1777
1868
  stopMyEngramForRestart: () -> (Result_6);
1778
1869
  /// An engram witnesses its own audit head. Callable ONLY by a registered engram — msg.caller is
1779
1870
  /// the engram principal, so attribution needs no signature and cannot be forged by a third party.
@@ -1824,6 +1915,15 @@ service : {
1824
1915
  /// cycles-attached like the sweep; same row semantics, one engram, no heartbeat stamp
1825
1916
  /// (a single probe is not a completed round).
1826
1917
  sysMeterEngram: (canisterId: principal) -> (Result_4);
1918
+ /// CALLER: an engram opened through another, from inside its three sign-in writers — `setOwnerSignIn`,
1919
+ /// `declineSignIn` (the sign-in's own decline) and `acceptSignIn` — BEFORE it writes its own seat
1920
+ /// (ADR-0020). ⟨2026-11-04, the owner's ruling "1B"⟩ The registry keeps the child's seated sign-in
1921
+ /// (`childSignIn` says why, and why the order is registry-first): `?p` notes `p` as the sign-in, `null`
1922
+ /// notes that none is seated. A record argument, so it can grow by opt fields (ADR-0018 rule 0).
1923
+ /// Refused, with nothing written: a caller this registry did not open through another engram (a first
1924
+ /// engram has no sign-in; anything else is no engram here), and a sign-in the door would refuse at
1925
+ /// birth (`ChildDoor.signInRefusal` — the key file itself, the anonymous principal, a canister).
1926
+ sysNoteChildSignIn: (req: record {signIn: opt principal;}) -> (Result);
1827
1927
  /// ⟨2026-10-02⟩ An engram tells this registry that its owner reset it.
1828
1928
  ///
1829
1929
  /// CALLER: a registered engram, about itself — `canisterToOwner` membership, checked first
@@ -2072,6 +2172,8 @@ service : {
2072
2172
  /// paid only for a #Security update on a running engram. A push is the registry's own initiative,
2073
2173
  /// so where the engram cannot hold the install even with its setting lowered, the push is SKIPPED
2074
2174
  /// with `#Conflict` and not attempted — the owner can still pull it, and the pull is never refused.
2175
+ /// ⟨2026-11-04 — BACKLOG ERASED-REFUSE-1⟩ An ERASED engram (its canister holds no program) is not
2176
+ /// pushed: `#Conflict`, by name, before anything is added.
2075
2177
  upgradeEngram: (canisterId: principal) -> (Result);
2076
2178
  /// Upgrade YOUR OWN engram to the registry's current template. Self-service — no admin, no
2077
2179
  /// queue, no approval.
@@ -2102,6 +2204,8 @@ service : {
2102
2204
  /// (UpgradeFunding.pullFailure): `#Conflict` when the engram needs more compute (the owner's
2103
2205
  /// action — add compute), `#Unavailable` when the registry could not pay this time (retryable).
2104
2206
  /// A failure after a paid or unneeded deposit answers `#Unavailable` with the network's reply.
2207
+ /// ⟨2026-11-04 — BACKLOG ERASED-REFUSE-1⟩ On an ERASED engram (its canister holds no program) nothing
2208
+ /// is paid; the install is still attempted, the network refuses it, and the reply says "erased".
2105
2209
  ///
2106
2210
  /// An engram already on the current template is a silent no-op. A SOVEREIGN engram gets
2107
2211
  /// "registry is no longer a controller" — accurate, because it is no longer ours to install on.