@engramx/idl 0.16.0-rc.9 → 0.16.1-rc.1

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