@engramx/idl 0.16.0-rc.26 → 0.16.0-rc.27

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;
@@ -379,6 +384,7 @@ export type Result_29 = { Ok: ChildSignInOffer } | { Err: Error };
379
384
  export type Result_3 = { Ok: ControlStep } | { Err: Error };
380
385
  export type Result_30 = { Ok: CertifiedStanding } | { Err: Error };
381
386
  export type Result_31 = { Ok: FleetCycleHealth } | { Err: Error };
387
+ export type Result_32 = { Ok: AcceptedAtRegistry } | { Err: Error };
382
388
  export type Result_4 = { Ok: MeterReading } | { Err: Error };
383
389
  export type Result_5 = { Ok: { repaid: bigint; stillOwed: bigint } } | { Err: Error };
384
390
  export type Result_6 =
@@ -450,14 +456,31 @@ export interface _SERVICE {
450
456
  * / ⟨2026-11-02⟩ REFUSED for an engram opened through another: it is never abandoned, so it stays on
451
457
  * / this registry's security updates for life; it ends by its parent's cut-off or by running dry.
452
458
  * /
453
- * / ⟨2026-11-05, the owner's ruling 2A of 2026-11-04 — "abandoned engrams are NOT recoverable"⟩
459
+ * / ⟨2026-11-05, the owner's ruling of 2026-11-04 — "abandoned engrams are NOT recoverable"⟩
454
460
  * / WITHDRAW YOUR DIGITAL DOLLARS FIRST. Nobody pays for an abandoned engram: when its compute runs out it stops,
455
461
  * / and the network erases it about 30 days later. An abandoned engram is never recovered once it is
456
- * / erased (`recoverMyEngram` refuses it, and the cashier refuses its top-ups), so whatever its wallet
462
+ * / erased (`recoverMyEngram` refuses it, and the biller refuses its top-ups), so whatever its wallet
457
463
  * / still holds then stays at its address with no program that can move it. Withdraw it while the
458
464
  * / engram runs.
459
465
  */
460
466
  abandonMyEngram: ActorMethod<[], Result>;
467
+ /**
468
+ * / ⟨2026-11-15, the same ruling⟩ THE NAMED PRINCIPAL ACCEPTS AN ENGRAM OFFERED TO THEM, as
469
+ * / themselves. This is the registry's only evidence that they agreed, and the only writer of
470
+ * / `acceptedAtNs`.
471
+ * /
472
+ * / IT STILL MOVES NOTHING. It marks the offer accepted; the record and control of the code move
473
+ * / when the caller then calls `acceptOwnership` on the engram, which reports here
474
+ * / (`sysNotifyOwnershipTransfer`). The answer says who offered it, when the offer ends, and
475
+ * / whether the engram is `#Sovereign`: a sovereign engram's code is written by its owner, not
476
+ * / installed by this registry, so the caller should check what it runs before the second call.
477
+ * /
478
+ * / Refused, with nothing changed: no open offer of that engram names the caller (one text for
479
+ * / "none", "someone else's" and "expired"); the caller already has an active engram (one engram
480
+ * / per owner; the offer stays open, and nothing of theirs is touched); the caller is opening an
481
+ * / engram right now. `declineEngramOffer` takes an acceptance back.
482
+ */
483
+ acceptEngramOffer: ActorMethod<[Principal], Result_32>;
461
484
  addAuditViewer: ActorMethod<[Principal], Result>;
462
485
  /**
463
486
  * / Add a changelog entry (admin only)
@@ -499,10 +522,16 @@ export interface _SERVICE {
499
522
  * / `returnToManaged` adds the registry back ALONGSIDE the owner. Sovereignty is a door, not a
500
523
  * / cliff.
501
524
  * /
502
- * / ⟨2026-11-02, the owner's ruling "choice 4 without hand over"⟩ REFUSED for an engram opened
525
+ * / ⟨2026-11-02, the owner's sole-controller ruling⟩ REFUSED for an engram opened
503
526
  * / through another: it stays managed by this registry for life, and its key is never a controller.
504
527
  */
505
528
  claimSovereignty: ActorMethod<[], Result>;
529
+ /**
530
+ * / ⟨2026-11-15, the same ruling⟩ The named principal declines an offer, or takes back an
531
+ * / acceptance made before `acceptOwnership` was called on the engram. The row is removed, so a
532
+ * / report of that change of owner is refused until the engram's owner offers again.
533
+ */
534
+ declineEngramOffer: ActorMethod<[Principal], Result>;
506
535
  /**
507
536
  * / Assemble the pushed chunks into the engram template and install it as the current one.
508
537
  * /
@@ -554,34 +583,35 @@ export interface _SERVICE {
554
583
  * / its LIVE freezing reservation, which is memory-scaled, so a large engram can be low at a
555
584
  * / balance a small one would be comfortable at.
556
585
  * /
557
- * / ⟨L7⟩ UPDATE, NOT QUERY, for BOTH of the reasons this law recognises — which is why it is worth
586
+ * / ⟨update-for-read⟩ UPDATE, NOT QUERY, for BOTH of the reasons this law recognises — which is why it is worth
558
587
  * / stating rather than leaving to be inferred from a body that scans a fleet. It awaits
559
588
  * / `ic.canister_status` once per engram in the page, so no query could produce the figures at all;
560
589
  * / and it calls `denied()` on refusal, a state write a query cannot perform, so making it a query
561
- * / would also retire the record of who was turned away (ADR-0002's class, the same one
590
+ * / would also retire the record of who was turned away (the refusal-over-fabrication class, the same one
562
591
  * / `listEngrams` settled at its own declaration).
563
592
  * /
564
- * / ⟨Marker added 2026-08-23. The census row for this method already cited L7 and the site did not
565
- * / carry it — invisible to `check-update-for-read.mjs`, whose population is read-VERB names and
566
- * / this one is a noun. That gate now reads the census's L7 citations as a second population for
567
- * / exactly this blind spot.⟩
593
+ * / ⟨Marker added 2026-08-23. The 0.16.0 interface plan's row for this method already cited the
594
+ * / update-for-read rule and
595
+ * / the site did not carry it — invisible to the deploying side's update-for-read check, whose
596
+ * / population is read-VERB names and this one is a noun. That check now reads the plan's
597
+ * / update-for-read citations as a second population for exactly this blind spot.⟩
568
598
  */
569
599
  fleetCycleHealth: ActorMethod<[bigint, bigint, bigint], Result_31>;
570
600
  /**
571
- * / PUBLIC: ⟨0.16.0, L2.4⟩ `fleetSummary` — the ONE public projection of this registry,
572
- * / replacing `status()` and ABSORBING `publicMetrics()`.
601
+ * / PUBLIC: ⟨0.16.0, same concept, same name across canisters⟩ `fleetSummary` — the ONE public
602
+ * / projection of this registry, replacing `status()` and ABSORBING `publicMetrics()`.
573
603
  * /
574
- * / Two public aggregates of one canister was the same L2.4 defect the engram had with
604
+ * / Two public aggregates of one canister was the same naming defect the engram had with
575
605
  * / status()/metrics(): both answered "what is this registry like", they disagreed about which
576
606
  * / counters they carried (status had cycles and the wasm hash, publicMetrics had unique owners,
577
607
  * / sovereign engrams and registrySince), and a caller had to know which one held the field they
578
- * / wanted. storage-sweep.sh cross-checked one against the other to infer a fact neither stated.
608
+ * / wanted. An off-chain storage sweep cross-checked one against the other to infer a fact neither stated.
579
609
  * /
580
610
  * / Merged, not concatenated: `totalEngrams` and `activeEngrams` appeared in BOTH and are counted
581
611
  * / once here, by the same pass.
582
612
  * /
583
613
  * / Everything in it identifies nobody — counts, a version, a hash, a cycle balance — which is why
584
- * / it is ungated and marked for the L8 gate-grep.
614
+ * / it is ungated and marked for the disclosure gate's grep.
585
615
  */
586
616
  fleetSummary: ActorMethod<[], FleetSummary>;
587
617
  /**
@@ -608,7 +638,8 @@ export interface _SERVICE {
608
638
  * / PUBLIC: who holds authority here. A refusal a caller cannot attribute is a refusal they
609
639
  * / cannot appeal, so the roster is readable by everyone the roster can refuse.
610
640
  * /
611
- * / ⟨0.16.0, L2.2⟩ The shared `AdminRoles` shape, not a registry-specific record. It was
641
+ * / ⟨0.16.0, same concept, same name across canisters⟩
642
+ * / The shared `AdminRoles` shape, not a registry-specific record. It was
612
643
  * / `{ admin; wasmAdmin }`, which could not express the ROOT identity at all — the principal that
613
644
  * / bootstraps the first admin and can reclaim the role was simply absent from the published
614
645
  * / answer, so "who can take this canister back" was a fact only the source told you. A list of
@@ -655,25 +686,36 @@ export interface _SERVICE {
655
686
  * / was meant to replace, so there is no role gate. But a record spanning fewer than
656
687
  * / `Engagements.STANDING_MIN_DISTINCT_ENGRAMS` distinct engrams is served ONLY to the agent itself:
657
688
  * / at one or two engrams the summary IS their owners' experience, which is identification by
658
- * / inference (R-6 §4.5 L4-1 — our own reading of the law, not legal advice). That refusal is
689
+ * / inference (L4-1 — our own reading of the law, not legal advice). That refusal is
659
690
  * / LOUD, names this method, and covers a record of zero engagements with the same words, so the
660
691
  * / refusal itself does not distinguish "never engaged" from "engaged in one to four engrams".
661
692
  * / The agent itself reading an empty record gets `#NotFound` — it is asking about itself, so
662
693
  * / there is nothing to hide from it.
663
694
  * /
664
- * / ⟨2026-09-28, review finding OPS-2⟩ A THIN SELF-READ IS UNCERTIFIED: below the threshold the
695
+ * / ⟨2026-09-28, a review finding⟩ A THIN SELF-READ IS UNCERTIFIED: below the threshold the
665
696
  * / record is not in the certified tree at all (its hash would leak it through every other
666
697
  * / witness), so the agent is served its summary folded from the records, with `certificate =
667
698
  * / null` and an empty `witness`. At and above the threshold every reader gets the stored bytes
668
699
  * / with their proof.
669
700
  * /
670
- * / ⟨2026-10-01, the owner's ruling of that day (2 A)⟩ The threshold counts TOPS, not engrams
701
+ * / ⟨2026-10-01, the owner's ruling of that day⟩ The threshold counts TOPS, not engrams
671
702
  * / (`Engagements.distinctTops`): engrams opened from one engram count as one, and an engram counts
672
703
  * / as one with the engrams it replaced. The refusal's sentence says so.
673
704
  * /
674
705
  * / WHAT IT NEVER DOES: score, rank, recommend, or refuse anyone work. The decision to refuse an
675
706
  * / agent belongs to the owner's own engram (L4-3).
676
707
  * /
708
+ * / ⟨2026-11-15, from an adversarial review⟩ COUNTS, NOT INDEPENDENCE — READ THIS BEFORE TRUSTING A
709
+ * / RECORD. The certificate proves that this registry holds these counts for this agent. It does NOT
710
+ * / prove that the engrams behind them belong to different people. The registry links two engrams
711
+ * / only through a parent or a predecessor; engrams opened under separate principals are unlinked,
712
+ * / and one party can open several. So one party can give its own agent a certified record with no
713
+ * / one else involved (RUN 2026-11-15 on PocketIC: a stranger was refused at one engram, and served
714
+ * / a certified record of five live engagements and no bad endings once four more engrams, opened
715
+ * / under four other principals, had paired the same root). The five-engram threshold is a privacy
716
+ * / floor (L4-1), never a defence against a made-up record. A reader must not take these counts as
717
+ * / other owners' experience of the agent.
718
+ * /
677
719
  * / ⟨2026-09-28, owner decision: one root key per agent, with an enrolled key per client⟩ `agent`
678
720
  * / is the agent's ROOT principal — the identity an owner sees as `root` on each key in their own
679
721
  * / `listAgents`. "The agent itself" is a caller holding that root key. A key for one engram has no
@@ -700,7 +742,8 @@ export interface _SERVICE {
700
742
  getAnchorStats: ActorMethod<[], AnchorStats>;
701
743
  /**
702
744
  * / PUBLIC: the chain head exists to be compared, so an external monitor can detect tampering
703
- * / without admin access (D3). A head only whoever runs this deployment can read witnesses nothing.
745
+ * / without admin access (the log is a SHA-256 hash chain whose head is public). A head only whoever
746
+ * / runs this deployment can read witnesses nothing.
704
747
  */
705
748
  getAuditHead: ActorMethod<[], AuditHead>;
706
749
  /**
@@ -716,14 +759,14 @@ export interface _SERVICE {
716
759
  */
717
760
  getCertifiedAnchor: ActorMethod<[Principal], [] | [CertifiedAnchor]>;
718
761
  /**
719
- * / ⟨0.16.0, L2.2⟩ RENAMED BACK to `getCertifiedAuditHead`, the fleet-wide name.
762
+ * / ⟨0.16.0, same concept, same name across canisters⟩ RENAMED BACK to `getCertifiedAuditHead`, the fleet-wide name.
720
763
  * /
721
764
  * / It was renamed AWAY from that on 2026-08-03, deliberately and for a good reason: the semantics
722
765
  * / changed (certified_data became a merkle tree root covering the head AND the anchor set, so the
723
766
  * / old certified_data == headHash byte-compare was gone), and a loud method-not-found was judged
724
767
  * / better than a stale verifier quietly reporting verified=false forever.
725
768
  * /
726
- * / THAT ARGUMENT'S PREMISE IS NOW FALSE. It protected deployed verifiers; B4 restarts every chain
769
+ * / THAT ARGUMENT'S PREMISE IS NOW FALSE. It protected deployed verifiers; every chain restarts fresh
727
770
  * / at the 0.16.0 genesis and there are none. What remains is a fleet where three canisters answer
728
771
  * / the same question under two names, which is the cost the rename was paying to avoid a hazard
729
772
  * / that no longer exists. `witness` becomes `?Blob` to match the shared type — null where a
@@ -742,7 +785,8 @@ export interface _SERVICE {
742
785
  getCertifiedAuditHead: ActorMethod<[], CertifiedAuditHead>;
743
786
  /**
744
787
  * / The certified proof that a birth record's FINGERPRINT is in this registry's tree ⟨2026-10-26, the
745
- * / owner's lineage ruling L3A⟩ — the half of an engram's birth chain the engram cannot give itself.
788
+ * / owner's lineage ruling on certifying birth records⟩
789
+ * / — the half of an engram's birth chain the engram cannot give itself.
746
790
  * /
747
791
  * / PUBLIC: a proof a caller had to hold a role to fetch rests on the authority it was meant to
748
792
  * / replace. It reveals only whether a fingerprint is present: the key is a salted hash (the record's
@@ -752,13 +796,14 @@ export interface _SERVICE {
752
796
  * /
753
797
  * / Verify as for `getCertifiedAnchor`, path ["births", <fingerprint>], leaf bytes = [0x01] (the
754
798
  * / client's `verifyBirthChain` does it for a whole chain). `null` when absent, as `getCertifiedAnchor`
755
- * / answers: there is no certified absence proof (spec question Q8). A `fingerprint` that is not 32
756
- * / bytes is never a fingerprint, and answers `null` before the lookup.
799
+ * / answers: there is no certified absence proof (a build choice the rulings left open). A
800
+ * / `fingerprint` that is not 32 bytes is never a fingerprint, and answers `null` before the lookup.
757
801
  */
758
802
  getCertifiedBirth: ActorMethod<[Uint8Array | number[]], [] | [CertifiedBirth]>;
759
803
  /**
760
- * / ⟨2026-11-02, the owner's ruling "1-4 all as you recommended"; the lead's answer L4 with the
761
- * / Challenge's fix C3.2⟩ WHAT THE KIT OFFERS AS A NEW ENGRAM'S SIGN-IN, read before it opens one
804
+ * / ⟨2026-11-02, the owner's ruling on an opened engram's own sign-in; the child build's ruled answer
805
+ * / on the sign-in offer, with the fix its adversarial check found⟩
806
+ * / WHAT THE KIT OFFERS AS A NEW ENGRAM'S SIGN-IN, read before it opens one
762
807
  * / through `parent`. The answer: the parent's owner — ONLY when the parent is a first engram (the
763
808
  * / kit offers that principal as the default sign-in only then, after it prints it and the person
764
809
  * / running the agent confirms it is theirs; for a parent opened through another the field is
@@ -770,7 +815,7 @@ export interface _SERVICE {
770
815
  * / (`Engagements.hasOpenEither` — the same fact `sysOpenChild`'s admission reads, so exactly the
771
816
  * / keys that may be opened an engram through `parent` may read what it offers). It discloses the
772
817
  * / parent's owner to the parent's own engaged agent, the party `getParentOf` answers once the child
773
- * / exists. Anyone else is REFUSED loudly (ADR-0002), in the same words whether or not `parent` is
818
+ * / exists. Anyone else is REFUSED loudly (refusal over fabrication), in the same words whether or not `parent` is
774
819
  * / an engram, so a refusal tells a stranger nothing. A QUERY, so the refusal is not in the denial
775
820
  * / log (`denied` says why a query cannot write). `#NotFound` only to an engaged caller, for a
776
821
  * / parent this registry holds no owner for.
@@ -788,14 +833,14 @@ export interface _SERVICE {
788
833
  */
789
834
  getConsentOrigin: ActorMethod<[], [] | [string]>;
790
835
  /**
791
- * / The ATTESTABLE custody-mode fact (agent-native model item 19): "managed" | "sovereign" |
836
+ * / The ATTESTABLE custody-mode fact: "managed" | "sovereign" |
792
837
  * / "unknown", derived from the registry's OWN transition records (claimSovereignty /
793
838
  * / returnToManaged maintain sovereignEngramIds) — NOT from a canister_status probe, which needs
794
839
  * / controllership and traps for exactly the sovereign engrams it should describe. Public, free,
795
840
  * / forever (free-parity): custody mode is a trust fact every warranted proof will carry —
796
841
  * / managed = engramx.ai can warrant its own controller conduct; sovereign = registry-side facts
797
842
  * / only. (Money-origin, by contrast, is payer-blind and never a record fact.)
798
- * / PUBLIC: ⟨0.16.0, L3⟩ Custody as a VARIANT, and the no-claim case says WHY rather than just
843
+ * / PUBLIC: ⟨0.16.0⟩ Custody as a VARIANT, and the no-claim case says WHY rather than just
799
844
  * / being a third string.
800
845
  * /
801
846
  * / ⟨CORRECTED 2026-08-24⟩ This block named an `#Unknown` ARM. There is none, and never was in
@@ -813,12 +858,12 @@ export interface _SERVICE {
813
858
  */
814
859
  getCustodyMode: ActorMethod<[Principal], Result_11>;
815
860
  /**
816
- * / Cycles-health probe — slim, cycles-only shape; the money fields moved to the cashier's
817
- * / getCycleReserveStatus. Read by health-alert.mjs in registry mode.
861
+ * / Cycles-health probe — slim, cycles-only shape; the money fields moved to the biller's
862
+ * / getCycleReserveStatus. scripts/audit-chain/health-alert.mjs reads it in its default cycles mode.
818
863
  * /
819
864
  * / PUBLIC: whether this registry can still afford to spawn is a fact every prospective owner
820
- * / depends on and none of them can otherwise observe. Cycles only, by construction — ADR-0005
821
- * / keeps the money on the cashier, so there is no balance here to withhold.
865
+ * / depends on and none of them can otherwise observe. Cycles only, by construction — money is the biller's, cycles are the registry's
866
+ * / keeps the money on the biller, so there is no balance here to withhold.
822
867
  */
823
868
  getCycleReserveStatus: ActorMethod<
824
869
  [],
@@ -829,11 +874,11 @@ export interface _SERVICE {
829
874
  * / fact (its assignment is in the hash-chained audit log). null = spawned before numbering
830
875
  * / existed, or by another registry.
831
876
  * /
832
- * / ⟨0.16.0, tier-2 ruling 2026-08-17⟩ RENAMED from `sysEngramNumberOf`. The `sys` prefix names
877
+ * / ⟨0.16.0, the vocabulary ruling of 2026-08-17⟩ RENAMED from `sysEngramNumberOf`. The `sys` prefix names
833
878
  * / the CALLER TIER a method was built for, and this one was never gated — it is a bare public
834
879
  * / query, as the line above says. A prefix that reads as an authorization claim while carrying
835
880
  * / none is worse than no prefix: it invites a reader to assume a gate that does not exist, and
836
- * / an L8 sweep grepping `sys*` would have counted this as tiered surface it is not.
881
+ * / a disclosure sweep grepping `sys*` would have counted this as tiered surface it is not.
837
882
  * /
838
883
  * / PUBLIC: the spawn ordinal is a permanent, dual-recorded fact about an engram that its owner
839
884
  * / publishes by existing — engram #7 is #7 to everyone. It identifies a canister, never a person.
@@ -849,7 +894,7 @@ export interface _SERVICE {
849
894
  */
850
895
  getEngramNumberOf: ActorMethod<[Principal], [] | [bigint]>;
851
896
  /**
852
- * / ⟨2026-10-01, the owner's ruling of that day (2 A)⟩ What a lasting key opened through a parent:
897
+ * / ⟨2026-10-01, the owner's ruling of that day⟩ What a lasting key opened through a parent:
853
898
  * / the engram, the engram it was opened from, and the cut-off's time if there is one. GATED:
854
899
  * / readable by the key itself (an agent asking about its own), the owner of the engram it was
855
900
  * / opened from (whose console shows it), an admin or an audit viewer. Anyone else is REFUSED — the
@@ -862,7 +907,8 @@ export interface _SERVICE {
862
907
  * / The i-th 1 MiB slice of the attested engram wasm (0-indexed). The caller reassembles all
863
908
  * / chunks in order and MUST verify sha256(reassembled) == getEngramWasmHash before installing —
864
909
  * / the hash is the attestation; the bytes are a convenience. Out-of-range index → empty blob.
865
- * / PUBLIC: ⟨0.16.0, L11⟩ An out-of-range index is `#NotFound`, not an empty blob.
910
+ * / PUBLIC: ⟨0.16.0, the honesty rule: no fabricated empties⟩ An out-of-range index is `#NotFound`,
911
+ * / not an empty blob.
866
912
  * /
867
913
  * / The empty blob was indistinguishable from a legitimately empty chunk AND from "no wasm is
868
914
  * / staged at all" — and this is the surface a verifier walks to reassemble a template and check
@@ -877,13 +923,13 @@ export interface _SERVICE {
877
923
  * / #Security — the registry pays for the install on every running engram it can reach, any size;
878
924
  * / #Feature — the registry pays for no install, and each engram runs it on its own compute. (Was:
879
925
  * / "pair it with getRentStatus … #Feature funds metered ones" — rent no longer enters it.)
880
- * / PUBLIC: ⟨0.16.0, L3⟩ The release class as a VARIANT, not a stringly-typed enum.
926
+ * / PUBLIC: ⟨0.16.0⟩ The release class as a VARIANT, not a stringly-typed enum.
881
927
  * /
882
928
  * / It returned "security" or "feature" as `Text`, so every consumer compared strings and no
883
929
  * / compiler anywhere could catch a typo or a third class arriving. A variant makes the set closed
884
930
  * / and the comparison checked — and this value gates whether an upgrade is funded, so a caller
885
931
  * / that silently fails to match "security" funds nothing and reports no error.
886
- * / ⟨CORRECTED 2026-10-26, later — the owner's restart choice 3A: "pay whenever the engram is
932
+ * / ⟨CORRECTED 2026-10-26, later — the owner's restart choice of that day: "pay whenever the engram is
887
933
  * / missing any security release, whatever the latest release is labelled"⟩ "#Feature — the
888
934
  * / registry pays for no install" no longer holds for every engram: an engram still missing an
889
935
  * / earlier security release is paid as a security update even while this reads #Feature, because
@@ -911,13 +957,14 @@ export interface _SERVICE {
911
957
  */
912
958
  getEngramWasmInfo: ActorMethod<[], EngramWasmInfo>;
913
959
  /**
914
- * / ⟨L7⟩ UPDATE, NOT QUERY, and NOT because of a system call — this body awaits nothing. The
960
+ * / ⟨update-for-read⟩ UPDATE, NOT QUERY, and NOT because of a system call — this body awaits nothing. The
915
961
  * / update exists so the DENIAL IS RECORDED: `denied()` is a state write, and a query cannot
916
962
  * / write. Exactly the argument `listEngrams` settled at its own declaration, and the same
917
963
  * / conclusion: a query here would silently retire the record of who was refused.
918
964
  * /
919
- * / So L7's "the denial-logging motive for update-for-read is retired by L1" does not hold at this
920
- * / site. L1 retired the motive of trapping-to-refuse; it did not give queries the ability to
965
+ * / So the update-for-read rule's own claim, that the one-Result-shape rule retired the denial-logging
966
+ * / motive for update-for-read, does not hold at this site. That rule retired the motive of
967
+ * / trapping-to-refuse; it did not give queries the ability to
921
968
  * / write, which is the thing this actually depends on.
922
969
  */
923
970
  getFleetMetrics: ActorMethod<[], Result_27>;
@@ -935,11 +982,12 @@ export interface _SERVICE {
935
982
  * / It does NOT date the engram's running code — a re-run fleet push marches `at` forward while
936
983
  * / nothing changes. Use `changedAt` for that: it is stamped only when code actually changed, and
937
984
  * / is null for an engram that has never been upgraded since this field shipped.
938
- * / ⟨0.16.0, L4⟩ `atNs`/`changedAtNs`: ns timestamps carry the suffix. The honesty split the two
939
- * / fields encode is unchanged — `atNs` is when THIS registry last upgraded the canister, and
940
- * / `changedAtNs` is when its module hash last moved by any hand, so a self-upgrade or a manual
941
- * / install shows up as a change with no matching upgrade. Renaming here is free: the record is
942
- * / built at the query boundary, and the stable state it reads keeps its own spelling.
985
+ * / ⟨0.16.0, nanosecond times named AtNs⟩ `atNs`/`changedAtNs`: ns timestamps carry the suffix. The
986
+ * / honesty split the two fields encode is unchanged — `atNs` is when THIS registry last upgraded
987
+ * / the canister, and `changedAtNs` is when its module hash last moved by any hand, so a
988
+ * / self-upgrade or a manual install shows up as a change with no matching upgrade. Renaming here is
989
+ * / free: the record is built at the query boundary, and the stable state it reads keeps its own
990
+ * / spelling.
943
991
  * / ⟨CORRECTED 2026-10-02: "by any hand … shows up" is false, and so is "stamped only when code
944
992
  * / actually changed" above, read without its limit.⟩ `changedAtNs` is written at exactly two
945
993
  * / places, both right after THIS registry's own successful install on the engram
@@ -988,12 +1036,12 @@ export interface _SERVICE {
988
1036
  */
989
1037
  getMyReservation: ActorMethod<[], [] | [ReservationView]>;
990
1038
  /**
991
- * / CALLER: the app's restart sheet, for the owner (ADR-0020). What the caller's engram owes from a
1039
+ * / 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
992
1040
  * / restart, when the next restart is allowed, and whether one is open. Refused loudly to anyone
993
- * / with no engram here — never "0 owed" to a caller it cannot answer for (ADR-0002).
1041
+ * / with no engram here — never "0 owed" to a caller it cannot answer for (refusal over fabrication).
994
1042
  * / ⟨2026-10-26⟩ `openUntilNs` now reads the open restart's `finishByNs` (`restartsOpen`): when the
995
1043
  * / call or the sweep will have started the engram. Shape unchanged.
996
- * / ⟨CORRECTED 2026-10-26, later — the owner's restart choice 2A: "apply the weekly limit only when
1044
+ * / ⟨CORRECTED 2026-10-26, later — the owner's restart choice of that day: "apply the weekly limit only when
997
1045
  * / we lend"⟩ "when the next restart is allowed" now reads "when the registry can next LEND to a
998
1046
  * / restart": `nextRestartAtNs` is only the weekly limit on a loan. A restart on the owner's own
999
1047
  * / compute is allowed now, whatever it says. Field name and shape unchanged.
@@ -1011,26 +1059,27 @@ export interface _SERVICE {
1011
1059
  */
1012
1060
  getOpeningCounts: ActorMethod<[], Result_25>;
1013
1061
  /**
1014
- * / Where an engram was opened from ⟨2026-10-26, the owner's lineage ruling L4: "a child reads its own
1062
+ * / Where an engram was opened from ⟨2026-10-26, the owner's lineage ruling: "a child reads its own
1015
1063
  * / parent by its canister id"⟩: the engram, the engram it was opened from, and the cut-off's time if
1016
1064
  * / there is one. Closes "a handed-on child cannot read its own parent" — `getEngramOpenedThrough` is
1017
1065
  * / keyed by the lasting key that OPENED the engram, which a new owner does not hold.
1018
1066
  * /
1019
1067
  * / CALLER: the engram's CURRENT owner, the current owner of the engram it was opened from, or this
1020
- * / registry's admin and audit viewers (ADR-0020). Reuses `parentOf`; no new state. The two owners are
1068
+ * / registry's admin and audit viewers (the surface budget: every method names its caller). Reuses `parentOf`; no new state. The two owners are
1021
1069
  * / answered first; anyone else goes through the registry's combinator (`#adminOrViewer`), which
1022
1070
  * / refuses every other caller in the same words whether or not the id is an engram, so a refusal
1023
1071
  * / tells a stranger nothing. A QUERY, so the refusal is not written to the denial log (`denied`
1024
1072
  * / says why a query cannot write).
1025
1073
  * / `#NotFound` only to a permitted reader: a first engram has no parent (a true answer), and an id
1026
- * / this registry never opened is said to be one, not passed off as a first engram (ADR-0002).
1027
- * / L8C: `listChildrenOf` is unchanged. L7B: the change-of-owner gate is unchanged.
1074
+ * / this registry never opened is said to be one, not passed off as a first engram (refusal over fabrication).
1075
+ * / The owner's lineage rulings of 2026-10-26 keep `listChildrenOf` unchanged and the change-of-owner
1076
+ * / gate unchanged.
1028
1077
  */
1029
1078
  getParentOf: ActorMethod<[Principal], Result_24>;
1030
1079
  /**
1031
- * / PUBLIC: CALLER: the app, the owner kit and anyone checking an engram's record (ADR-0020). When this
1080
+ * / PUBLIC: CALLER: the app, the owner kit and anyone checking an engram's record (the surface budget: every method names its caller). When this
1032
1081
  * / registry last REINSTALLED the engram on its own id after the network erased it (`recoverMyEngram`),
1033
- * / or null — never recovered. ⟨2026-11-04, RECOVER-WALLET-1⟩ Public for `getAbandonedAtNs`'s reason: a
1082
+ * / or null — never recovered. ⟨2026-11-04⟩ Public for `getAbandonedAtNs`'s reason: a
1034
1083
  * / record that restarted is a fact about the record that a stranger checking it needs, and the same date
1035
1084
  * / is certified in the engram's anchor leaf (`recoveredAtNs`, with its `era`).
1036
1085
  * / ⟨2026-11-05, beside the above⟩ Set when the reinstall BEGINS — the old record's anchors are set aside in
@@ -1053,7 +1102,8 @@ export interface _SERVICE {
1053
1102
  */
1054
1103
  getReferralCounts: ActorMethod<[Array<Principal>], Result_23>;
1055
1104
  /**
1056
- * / ⟨2026-11-02, the owner's rulings "E ok." and "go ahead with your noticing failures changes"⟩ THE
1105
+ * / ⟨2026-11-02, the owner's rulings that one combined health read replaces separate status
1106
+ * / questions, and "go ahead with your noticing failures changes"⟩ THE
1057
1107
  * / REGISTRY'S HEALTH IN ONE READ: its cycle reserve, its roster, its anchoring counts — the same
1058
1108
  * / answers `getCycleReserveStatus`, `getAdminRoles` and `getAnchorStats` give, which stay served
1059
1109
  * / unchanged for everyone who reads them one at a time — and the stamps of its clock, which wakes only
@@ -1062,7 +1112,7 @@ export interface _SERVICE {
1062
1112
  * / means, and why every field is `opt` and always filled.
1063
1113
  * /
1064
1114
  * / CALLER: the deployment's monitor, once an hour, under the audit-viewer grant its daily count-of-use
1065
- * / reading already holds (ADR-0020 rule 1). Also the admin.
1115
+ * / reading already holds (the surface budget: every method names its caller). Also the admin.
1066
1116
  * /
1067
1117
  * / GATED, LIKE THE COUNT-OF-USE READS THAT MONITOR MAKES (`getOpeningCounts`): the admin or an audit
1068
1118
  * / viewer; anyone else is REFUSED by name — never an empty or zero reading. A QUERY: its refusal is
@@ -1072,14 +1122,14 @@ export interface _SERVICE {
1072
1122
  getRegistryHealth: ActorMethod<[], Result_22>;
1073
1123
  /**
1074
1124
  * / PUBLIC: the biller identity is an operational fact a
1075
- * / payer's cashier must verify BEFORE taking money (paying into a cashier the registry does not
1125
+ * / payer's biller must verify BEFORE taking money (paying into a biller the registry does not
1076
1126
  * / recognize as biller would collect funds it cannot convert into credit).
1077
1127
  */
1078
1128
  getRentBiller: ActorMethod<[], [] | [Principal]>;
1079
1129
  /**
1080
1130
  * / Public transparency: is the gate armed, and which identity issuers are exempt?
1081
- * / ⟨0.16.0 — census row⟩ Gains `inviteIssuer`, closing the R5 setter-without-a-getter gap
1082
- * / without adding a method: `setInviteIssuer` could write a principal that nothing could read
1131
+ * / ⟨0.16.0⟩ Gains `inviteIssuer`, closing the setter-without-a-getter gap the August 2026 interface
1132
+ * / audit found, without adding a method: `setInviteIssuer` could write a principal that nothing could read
1083
1133
  * / back, so "who may mint reserve invites" was unanswerable from outside.
1084
1134
  * /
1085
1135
  * / It serves the EFFECTIVE issuer, not the raw `?Principal`. The stored value is null until
@@ -1094,23 +1144,23 @@ export interface _SERVICE {
1094
1144
  */
1095
1145
  getReserveGateConfig: ActorMethod<[], ReserveGateConfig>;
1096
1146
  /**
1097
- * / PUBLIC: CALLER: the status page (ADR-0020). What the registry has lent to restart stopped engrams
1147
+ * / PUBLIC: CALLER: the status page (the surface budget: every method names its caller). What the registry has lent to restart stopped engrams
1098
1148
  * / — lent, repaid, written off, outstanding — and what engrams gave back of the compute a paid
1099
1149
  * / security update advanced them (returned, written off). Ungated, because a subsidy we would not
1100
1150
  * / publish is one we should not spend. `getUpgradeSubsidyTotal` stays the gross figure.
1101
1151
  * / ⟨2026-10-26, the owner's ruling "write it off, but accounting should be exact"⟩ Two exact
1102
1152
  * / identities hold between any two messages: lent = repaid + writtenOff + outstanding, and
1103
1153
  * / advancePaid = advanceReturned + advanceWrittenOff + advanceOutstanding.
1104
- * / ⟨2026-10-26, later — the owner's restart choice 4A: "add the release name to each write-off
1154
+ * / ⟨2026-10-26, later — the owner's restart choice of that day: "add the release name to each write-off
1105
1155
  * / record. This needs no new storage."⟩ These totals are fleet-wide. PER RELEASE, read the audit
1106
1156
  * / chain: every line that moves an advance names the release it was paid for, `template=<module
1107
1157
  * / hash>` (and `version=` when the release history names one) — `upgrade.topUp` (paid, `added=`),
1108
1158
  * / `upgrade.advance.returned` (`returned=`, `writtenOff=`) and `upgrade.advance.writtenOff`
1109
- * / (`writtenOff=`, including the 90-day write-off of an advance left outstanding, restart choice 5A).
1159
+ * / (`writtenOff=`, including the 90-day write-off of an advance left outstanding, per the owner's restart choice).
1110
1160
  * / Summed by `template=`, they give each release's paid, returned and written-off figures exactly;
1111
1161
  * / what is still out per release is paid − returned − written off. Restart-loan lines are not per
1112
1162
  * / release (a loan pays for no release).
1113
- * / ⟨CORRECTED 2026-10-26, later — the fix pass (the ledger review)⟩ "exactly" holds only over a
1163
+ * / ⟨CORRECTED 2026-10-26, later — a review fix⟩ "exactly" holds only over a
1114
1164
  * / COMPLETE copy of the audit chain. The registry keeps the most recent 10,000 audit entries
1115
1165
  * / (AuditLog's `MAX_ENTRIES`; on overflow it drops back to 9,000, oldest first), and a give-back or
1116
1166
  * / a 90-day write-off can land long after its `upgrade.topUp` line was dropped. A per-release sum
@@ -1143,7 +1193,7 @@ export interface _SERVICE {
1143
1193
  */
1144
1194
  getSecurityReleaseCount: ActorMethod<[], bigint>;
1145
1195
  /**
1146
- * / ⟨2026-10-01, the owner's ruling of that day (2 A)⟩ Cumulative cycles accepted at the sponsored
1196
+ * / ⟨2026-10-01, the owner's ruling of that day⟩ Cumulative cycles accepted at the sponsored
1147
1197
  * / door (`sysOpenChild`) and forwarded into engrams opened through another — cycles the calling
1148
1198
  * / engrams attached, never the registry's own. Kept apart from the grant counter
1149
1199
  * / (`totalCyclesAllocated`) so neither figure is inflated by the other.
@@ -1163,7 +1213,7 @@ export interface _SERVICE {
1163
1213
  */
1164
1214
  getTreasuryAnchorId: ActorMethod<[], [] | [Principal]>;
1165
1215
  /**
1166
- * / ⟨0.16.0, L11⟩ `null` MEANS NEVER CHOSE. It used to mean `#AutoUpdate`.
1216
+ * / ⟨0.16.0, the honesty rule against fabricated answers⟩ `null` MEANS NEVER CHOSE. It used to mean `#AutoUpdate`.
1167
1217
  * /
1168
1218
  * / Returning the shipped default for a caller who has never expressed a preference is a
1169
1219
  * / fabricated CONSENT: the registry answered "this owner opted into automatic upgrades" when the
@@ -1200,7 +1250,8 @@ export interface _SERVICE {
1200
1250
  * / security-update funding: the registry pays only for security updates on running engrams (was:
1201
1251
  * / "the meter on the never-gated pull path"; the pull is still never refused, and a feature update
1202
1252
  * / it installs is not paid for).
1203
- * / ⟨CORRECTED 2026-10-26, later — the owner's restart choice 3A⟩ "a feature update it installs is
1253
+ * / ⟨CORRECTED 2026-10-26, later — the owner's restart choice on paying for security updates⟩
1254
+ * / "a feature update it installs is
1204
1255
  * / not paid for" now excepts an engram still missing an earlier security release: that install is
1205
1256
  * / paid as a security update and counted here (UpgradeFunding.effectiveClass).
1206
1257
  * /
@@ -1246,7 +1297,7 @@ export interface _SERVICE {
1246
1297
  */
1247
1298
  isOfficialEngramWasm: ActorMethod<[string], boolean>;
1248
1299
  /**
1249
- * / "Is this a registered, `#Active` engram?" — no owner argument, only a Bool. The cashier uses
1300
+ * / "Is this a registered, `#Active` engram?" — no owner argument, only a Bool. The biller uses
1250
1301
  * / it to authorize an engram funding its OWN cycles: on that path the caller IS the engram
1251
1302
  * / canister, and this confirms it is a live one.
1252
1303
  * /
@@ -1266,7 +1317,8 @@ export interface _SERVICE {
1266
1317
  /**
1267
1318
  * / Contradictory submissions, oldest-first. Empty is the normal case. Never trimmed.
1268
1319
  * /
1269
- * / ⟨0.16.0, L3 — PAGED 2026-08-18⟩ This returned the WHOLE list, and the list is one an engram
1320
+ * / ⟨0.16.0, every list returns one page shape — PAGED 2026-08-18⟩
1321
+ * / This returned the WHOLE list, and the list is one an engram
1270
1322
  * / can grow itself: `sysAnchorHead` appends a conflict on every contradictory submission and the
1271
1323
  * / policy is deliberately never-evict. An uncapped reply over a caller-growable list eventually
1272
1324
  * / exceeds the response limit, and an oversized Candid reply does not truncate — it fails to
@@ -1278,8 +1330,8 @@ export interface _SERVICE {
1278
1330
  * / ⚠ THE WRITE SIDE IS STILL UNBOUNDED and is NOT fixed here. An engram can append to its own
1279
1331
  * / conflict list without limit, which is unbounded state on a shared canister paid for by the
1280
1332
  * / registry's cycles. Capping it means deciding what to drop from an evidence store whose whole
1281
- * / promise is that nothing is dropped — a retention ruling, not a shape fix. Recorded in the
1282
- * / backlog rather than decided here.
1333
+ * / promise is that nothing is dropped — a retention ruling, not a shape fix. Left open rather
1334
+ * / than decided here.
1283
1335
  * / ⟨CORRECTED 2026-09-28 — the paragraph above is no longer true: the owner ruled "never delete;
1284
1336
  * / cap submissions; publish the refusal count". Nothing is dropped; the WRITE side is now bounded
1285
1337
  * / at `AnchorConflicts.MAX_CONFLICTS_PER_ENGRAM` rows per engram, `sysAnchorHead` refuses further
@@ -1328,7 +1380,7 @@ export interface _SERVICE {
1328
1380
  * / anything. A cap that is part of the ratified design is not the unbounded growth paging exists
1329
1381
  * / for. WHAT WOULD MAKE THIS WRONG: the ring outgrowing one reply, or rows withheld per caller —
1330
1382
  * / then it pages, and that is a break.
1331
- * / ⟨2026-11-04, the owner's ruling 3A′ — RECOVER-WALLET-1⟩ EVERY ERA, oldest first. An engram the registry
1383
+ * / ⟨2026-11-04, the owner's old-record ruling⟩ EVERY ERA, oldest first. An engram the registry
1332
1384
  * / recovered after the network erased it has more than one record: each anchor carries `era` (0 = its
1333
1385
  * / first record, k = after its k-th recover), the earlier eras' anchors as they stood when each was set
1334
1386
  * / aside, then the current era's. Nothing is withheld or deleted. `disputed` is read against the
@@ -1336,7 +1388,8 @@ export interface _SERVICE {
1336
1388
  */
1337
1389
  listAnchors: ActorMethod<[Principal], Array<AnchorView>>;
1338
1390
  /**
1339
- * / ⟨0.16.0, L1 + L2.1⟩ RENAMED from `readAuditLog`, and the refusal is now a VALUE.
1391
+ * / ⟨0.16.0, refusals are values; a list method returns a page⟩ RENAMED from `readAuditLog`, and the
1392
+ * / refusal is now a VALUE.
1340
1393
  * /
1341
1394
  * / It refused by `Debug.trap`, which was the right call when the alternative was a fabricated
1342
1395
  * / answer — and the fabrication it replaced is worth restating, because it is the sharpest one
@@ -1353,7 +1406,7 @@ export interface _SERVICE {
1353
1406
  * / The inline record dies for a `Page`: `earliestId` was redundant with the ring's own paging,
1354
1407
  * / and `size`/`headHash` are `getAuditHead`'s answer, published free to everyone.
1355
1408
  * /
1356
- * / ⟨2026-10-15, the owner's ruling 6B of 2026-10-14⟩ The reply is the shared `Wire.RecordPage`,
1409
+ * / ⟨2026-10-15, the owner's ruling of 2026-10-14 on the chained record⟩ The reply is the shared `Wire.RecordPage`,
1357
1410
  * / the shape every chain canister's record read now serves, so one checker reads all of them. A
1358
1411
  * / viewer sees every entry, so `sealed` is always empty here; what the page adds is `ringFloor`
1359
1412
  * / (where the ring starts — a `start` below it begins at it) and `hashFirstFrom` (where this
@@ -1365,7 +1418,8 @@ export interface _SERVICE {
1365
1418
  */
1366
1419
  listAuditEntries: ActorMethod<[bigint, bigint], Result_19>;
1367
1420
  /**
1368
- * / ⟨0.16.0, L2.2⟩ RENAMED from `getMetricsViewers` — the viewer triple unifies on "audit viewer"
1421
+ * / ⟨0.16.0, same concept, same name across canisters⟩
1422
+ * / RENAMED from `getMetricsViewers` — the viewer triple unifies on "audit viewer"
1369
1423
  * / across every canister, because a roster that grants audit reads should not be named after
1370
1424
  * / metrics on one canister and audit on another.
1371
1425
  * /
@@ -1377,18 +1431,18 @@ export interface _SERVICE {
1377
1431
  /**
1378
1432
  * / PUBLIC: the release history, paged.
1379
1433
  * /
1380
- * / ⟨0.16.0, L2.1⟩ A `Page`, not a bare vec. The old shape returned the WHOLE changelog on every
1381
- * / call with no way to say it had been truncated — and a list that cannot say "there is more"
1382
- * / looks complete at exactly the size where it stops being so.
1434
+ * / ⟨0.16.0, a list method returns a page⟩ A `Page`, not a bare vec. The old shape returned the
1435
+ * / WHOLE changelog on every call with no way to say it had been truncated — and a list that cannot
1436
+ * / say "there is more" looks complete at exactly the size where it stops being so.
1383
1437
  */
1384
1438
  listChangelogEntries: ActorMethod<[bigint, bigint], Page_4>;
1385
1439
  /**
1386
- * / ⟨2026-10-01, the owner's ruling of that day (2 A)⟩ The engrams opened through `engram`, each with
1440
+ * / ⟨2026-10-01, the owner's ruling of that day⟩ The engrams opened through `engram`, each with
1387
1441
  * / its owner now and its cut-off time if any. GATED: readable by `engram`'s owner, an admin or an
1388
1442
  * / audit viewer. The link says who works for whom, so it is not public (unlike the predecessor
1389
1443
  * / chain, which exists to be walked by a stranger).
1390
1444
  * /
1391
- * / REFUSED LOUDLY, never `[]`, to anyone else (ADR-0002): an empty list handed to a caller who
1445
+ * / REFUSED LOUDLY, never `[]`, to anyone else (refusal over fabrication): an empty list handed to a caller who
1392
1446
  * / merely lacks a grant would be a claim about another owner's engram. A QUERY, so the refusal is
1393
1447
  * / not in the denial log (`denied` says why a query cannot write).
1394
1448
  * /
@@ -1411,7 +1465,7 @@ export interface _SERVICE {
1411
1465
  * / CALLERS: the admin, and the audit viewers — the reader the deployment runs for this purpose
1412
1466
  * / holds a viewer grant and calls this once a day. Anyone else is REFUSED by name, with their
1413
1467
  * / class (the anonymous principal, an engram, the template key, an engram's owner, a stranger) —
1414
- * / never an empty page, which is what a lost history would also look like (ADR-0002).
1468
+ * / never an empty page, which is what a lost history would also look like (refusal over fabrication).
1415
1469
  * /
1416
1470
  * / ARGUMENTS. `sinceDay`: any instant, floored to its UTC day; a row is served when the LATEST of
1417
1471
  * / its start, its ending, its engram's abandonment and any reset since it started is on or after
@@ -1425,13 +1479,14 @@ export interface _SERVICE {
1425
1479
  * / The reply is a page whose `total` is every engagement ever recorded here. Each row's fields
1426
1480
  * / are described at `Funnel.EngagementRow`; the walk and its cost at `Funnel.engagementRows`.
1427
1481
  * /
1428
- * / ⟨L7⟩ An UPDATE, not a query, so a refused attempt is RECORDED: `denied()` is a state write,
1482
+ * / ⟨update-for-read⟩ An UPDATE, not a query, so a refused attempt is RECORDED: `denied()` is a state write,
1429
1483
  * / and a query cannot write (the reason `listEngrams` is an update). This is the most sensitive of
1430
1484
  * / the three reads — one row per engagement — so who was turned away is worth a record.
1431
1485
  */
1432
1486
  listEngagementRows: ActorMethod<[bigint, bigint, bigint, Array<Principal>], Result_15>;
1433
1487
  /**
1434
- * / ⟨0.16.0, L1⟩ THE `authorized : ?Bool` FLAG IS GONE, AND SO IS EVERYTHING BUILT AROUND IT.
1488
+ * / ⟨0.16.0, one Result shape for every gated method⟩
1489
+ * / THE `authorized : ?Bool` FLAG IS GONE, AND SO IS EVERYTHING BUILT AROUND IT.
1435
1490
  * /
1436
1491
  * / The flag was the most carefully-argued compromise in this canister, and every word of that
1437
1492
  * / argument rested on ONE premise: this method could not refuse. It is an UPDATE because
@@ -1445,22 +1500,22 @@ export interface _SERVICE {
1445
1500
  * / There is no masked payload left to check a flag against.
1446
1501
  * /
1447
1502
  * / What goes with it: the three-state ?true/?false/null protocol and the "a reader that collapses
1448
- * / null to false fabricates a refusal" rule; the ADR-0018 opt-from-birth ceremony this field was
1503
+ * / null to false fabricates a refusal" rule; the interface-evolution rule's opt-from-birth ceremony this field was
1449
1504
  * / the motivating example for; the fleet collector's dual-IDL split; and the cross-check against
1450
- * / the public engram count that storage-sweep.sh used as a discriminator. All of it was
1505
+ * / the public engram count that an off-chain storage sweep used as a discriminator. All of it was
1451
1506
  * / scaffolding around "we cannot say no in a value", and none of it is load-bearing once we can.
1452
1507
  * /
1453
- * / ⚠ CENSUS CONFLICT, resolved at the site. The census says "query again" — reasoning that the
1508
+ * / ⚠ A CONFLICT WITH THE 0.16.0 INTERFACE PLAN, resolved at the site. That plan says "query again" — reasoning that the
1454
1509
  * / only thing forcing an update was the masking problem. It was not: the update exists so the
1455
1510
  * / DENIAL IS RECORDED, and a query cannot write, so making this a query would silently retire
1456
1511
  * / the audit trail the original comment correctly called worth more than the false answer.
1457
1512
  * / Staying an update keeps both — the legible refusal AND the record of who was refused — which
1458
1513
  * / is strictly better than either option the old design had to choose between.
1459
1514
  * /
1460
- * / ⟨L7⟩ MARKER ADDED 2026-08-23, reasoning above UNCHANGED. This method's reason was already
1461
- * / written and correct; what it lacked was the glyph a gate can see. Its case is the one L7's
1462
- * / own text had to be corrected for — the forcing call is not a system API at all, it is
1463
- * / `denied()`, a state write. See `scripts/check-update-for-read.mjs`.
1515
+ * / ⟨update-for-read⟩ MARKER ADDED 2026-08-23, reasoning above UNCHANGED. This method's reason was already
1516
+ * / written and correct; what it lacked was the glyph a gate can see. Its case is the one the
1517
+ * / update-for-read rule's own text had to be corrected for — the forcing call is not a system API at all, it is
1518
+ * / `denied()`, a state write. (The deploying side's update-for-read check reads this marker.)
1464
1519
  */
1465
1520
  listEngrams: ActorMethod<[bigint, bigint], Result_14>;
1466
1521
  /**
@@ -1502,11 +1557,12 @@ export interface _SERVICE {
1502
1557
  * / fresh start. Abandon-and-respawn is reputation laundering performed by our own feature unless
1503
1558
  * / a stranger can walk this, so the walk has to be answerable to a stranger.
1504
1559
  * /
1505
- * / ⟨2026-09-30, the owner's answer 3 of that date⟩ An engram can now name more than one
1506
- * / predecessor (`ControlHandover.predecessorsFor`), so the lineage is walked a generation at a time:
1507
- * / every engram this one named, then every engram those named, each listed once. A chain with one
1508
- * / predecessor per engram reads exactly as before. The walk is `ControlHandover.lineage`, where
1509
- * / test/control-handover.test.mo runs it; the `seen` rule and the length cap above still hold.
1560
+ * / ⟨2026-09-30, the owner's ruling that an abandoned engram stays in its owner's history⟩ An engram
1561
+ * / can now name more than one predecessor (`ControlHandover.predecessorsFor`), so the lineage is
1562
+ * / walked a generation at a time: every engram this one named, then every engram those named, each
1563
+ * / listed once. A chain with one predecessor per engram reads exactly as before. The walk is
1564
+ * / `ControlHandover.lineage`, where test/control-handover.test.mo runs it; the `seen` rule and the
1565
+ * / length cap above still hold.
1510
1566
  */
1511
1567
  listPredecessors: ActorMethod<[Principal], Array<Principal>>;
1512
1568
  /**
@@ -1527,7 +1583,8 @@ export interface _SERVICE {
1527
1583
  * / The PROBED twin of `getCustodyMode`: same question, asked of the IC rather than of our
1528
1584
  * / records — hence the `probe` verb rather than a second noun.
1529
1585
  * /
1530
- * / ⟨0.16.0, L2.2⟩ RENAMED from `getSovereigntyStatus`. Both methods answer the same type,
1586
+ * / ⟨0.16.0, same concept, same name across canisters⟩
1587
+ * / RENAMED from `getSovereigntyStatus`. Both methods answer the same type,
1531
1588
  * / `Result<CustodyMode>`, so the old name introduced a SovereigntyStatus noun that no type in
1532
1589
  * / this interface has. A reader comparing the two names had to open both to learn they were
1533
1590
  * / one question; comparing the stems now shows it. What differs is HOW the answer is obtained
@@ -1535,7 +1592,7 @@ export interface _SERVICE {
1535
1592
  * / for. The arity difference is real and stays: `getCustodyMode` answers about any canister,
1536
1593
  * / this one about the CALLER's own engram.
1537
1594
  * /
1538
- * / ⟨0.16.0, L7⟩ Both arms of the old `#Unknown` move into the envelope, and they are DIFFERENT
1595
+ * / ⟨0.16.0⟩ Both arms of the old `#Unknown` move into the envelope, and they are DIFFERENT
1539
1596
  * / facts that the single tag was flattening: "you have no engram here" is #NotFound, while
1540
1597
  * / "canister_status did not answer" is #Unavailable and means retry.
1541
1598
  * /
@@ -1545,7 +1602,7 @@ export interface _SERVICE {
1545
1602
  * / a controller. Reporting #Sovereign there would tell an owner they had achieved sovereignty
1546
1603
  * / they do not have.
1547
1604
  * /
1548
- * / ⟨L7⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1605
+ * / ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
1549
1606
  * / `ic.canister_status`. That is also the whole point of the `probe` verb — the value is read
1550
1607
  * / LIVE from the management canister rather than from a stored transition record, so a query
1551
1608
  * / could not produce it at all, not merely more cheaply.
@@ -1555,13 +1612,14 @@ export interface _SERVICE {
1555
1612
  * / What YOUR OWN engram's compute is, read by the registry — the one read that works while it is
1556
1613
  * / frozen.
1557
1614
  * /
1558
- * / CALLER: the owner, from the app's status strip, Billing and System pages (ADR-0020).
1559
- * / ⟨2026-10-26, the owner's ruling 1A: tell the owner, using signals that work while frozen⟩ The
1615
+ * / CALLER: the owner, from the app's status strip, Billing and System pages (the surface budget: every method names its caller).
1616
+ * / ⟨2026-10-26, the owner's ruling that we pay nothing for a stopped engram: tell the owner, using
1617
+ * / signals that work while frozen⟩ The
1560
1618
  * / registry is a controller, and the network answers a controller canister's status call for a
1561
- * / frozen engram where it refuses the owner's own (IC0207, the stopped-engram study's network read
1562
- * / §6). UPDATE, not query: it awaits the management canister (the `probe` verb, as
1619
+ * / frozen engram where it refuses the owner's own (IC0207, read in the network's source by a study
1620
+ * / of stopped engrams). UPDATE, not query: it awaits the management canister (the `probe` verb, as
1563
1621
  * / `probeCustodyMode`).
1564
- * / ⟨L7⟩ ⟨marker added 2026-10-26, Finish phase; the reason above unchanged⟩ The system call that
1622
+ * / ⟨update-for-read⟩ ⟨marker added 2026-10-26; the reason above unchanged⟩ The system call that
1565
1623
  * / forces the update is `canister_status` on the management canister: a query cannot make an
1566
1624
  * / inter-canister call, so a query could not read the engram's network status at all — and that
1567
1625
  * / status is the only signal that still answers while the engram is frozen.
@@ -1575,17 +1633,18 @@ export interface _SERVICE {
1575
1633
  * / sign-in (the person), the read `probeMyEngramCompute` is for a first engram's owner.
1576
1634
  * /
1577
1635
  * / CALLER: the app's Access page, signed in as the person, for a child row whose own `getOwnerSignIn`
1578
- * / call is rejected (an erased child answers nothing) — and the owner kit, as the key file (ADR-0020).
1579
- * / ⟨2026-11-04, the owner's ruling "1B" — "the registry starts keeping the person's sign-in for them"⟩
1580
- * / The person may SEE, not ask and not pay: the ask (`recoverMyEngram`) and the payment (the cashier's
1636
+ * / call is rejected (an erased child answers nothing) — and the owner kit, as the key file (the surface budget: every method names its caller).
1637
+ * / ⟨2026-11-04, the owner's ruling — "the registry starts keeping the person's sign-in for them"⟩
1638
+ * / The person may SEE, not ask and not pay: the ask (`recoverMyEngram`) and the payment (the biller's
1581
1639
  * / top-up, admitted only from the key file) stay the key file's. Gated to the child's key file
1582
1640
  * / (`canisterToOwner`) and its sign-in AS NOTED HERE (`childSignIn`); refused to everyone else — the
1583
1641
  * / parent's owner included — with the SAME words whether or not `child` exists or is a child at all
1584
1642
  * / (`getEngramOpenedThrough`'s precedent: who works for whom is not disclosed by a refusal). UPDATE, not
1585
1643
  * / query, for `probeMyEngramCompute`'s reason (a query cannot call the management canister).
1586
- * / ⟨L7⟩ ⟨marker added 2026-11-05, the reason above unchanged — platform check-update-for-read named it
1587
- * / missing⟩ The system call that forces the update is `canister_status` on the management canister: a
1588
- * / query cannot make an inter-canister call, so it could not read an erased child's network status at all.
1644
+ * / ⟨update-for-read⟩ ⟨marker added 2026-11-05, the reason above unchanged — a consumer's
1645
+ * / update-for-read check named it missing⟩ The system call that forces the update is
1646
+ * / `canister_status` on the management canister: a query cannot make an inter-canister call, so it
1647
+ * / could not read an erased child's network status at all.
1589
1648
  */
1590
1649
  probeOpenedEngramCompute: ActorMethod<[Principal], Result_10>;
1591
1650
  /**
@@ -1595,10 +1654,11 @@ export interface _SERVICE {
1595
1654
  * / spawn IS the canister it produced. The wrapper cost every caller a field access to reach the
1596
1655
  * / only thing the call returns, and invited a second field later that would belong somewhere else.
1597
1656
  * /
1598
- * / ⟨2026-10-13, the owner's 6A⟩ `opts.genesis` (an optional first file, written as the canister
1599
- * / spawned) is retired: the console creates an engram with no content (decision 2 B(b),
1600
- * / 2026-09-30), the owner kit never calls this, and only test harnesses passed one. A caller still
1601
- * / sending the field is unaffected — Candid ignores a record field the receiver does not declare.
1657
+ * / ⟨2026-10-13, the owner's ruling: no genesis seed, no number copy⟩ `opts.genesis` (an optional
1658
+ * / first file, written as the canister spawned) is retired: the console creates an engram with no
1659
+ * / content (the owner's ruling of 2026-09-30 on the set-up page), the owner kit never calls this,
1660
+ * / and only test harnesses passed one. A caller still sending the field is unaffected — Candid
1661
+ * / ignores a record field the receiver does not declare.
1602
1662
  */
1603
1663
  provisionEngram: ActorMethod<
1604
1664
  [
@@ -1616,11 +1676,12 @@ export interface _SERVICE {
1616
1676
  * / RECOVER YOUR OWN ERASED ENGRAM — reinstall it on the SAME id, so its wallet and EVM address come back.
1617
1677
  * /
1618
1678
  * / CALLER: the owner, from the app's "Recover my wallet" (a first engram), or an engram's key file through
1619
- * / the owner kit's `--recover` (an engram an agent opened through another) — ADR-0020. ⟨2026-11-04, the
1620
- * / owner's rulings "1D. 2A." and "1B. the rest as recommended."⟩ Recover.mo says what a recover is and
1679
+ * / the owner kit's `--recover` (an engram an agent opened through another) — the surface budget: every method names its caller. ⟨2026-11-04, the
1680
+ * / owner's rulings of that day: no engram moves money on its own; an erased engram is reinstalled on
1681
+ * / its id, children included⟩ Recover.mo says what a recover is and
1621
1682
  * / what does and does not come back.
1622
1683
  * /
1623
- * / THE ORDER: the owner first adds compute to the empty engram through the cashier's existing top-up
1684
+ * / THE ORDER: the owner first adds compute to the empty engram through the biller's existing top-up
1624
1685
  * / (each step its own tap; nothing here moves money, lends or funds); then this call reads the network's
1625
1686
  * / status of the engram as its controller, refuses by name unless the engram is ERASED (no module) and
1626
1687
  * / holds enough compute to install (`UpgradeFunding.noDipBar` — the line plus the install hold plus a
@@ -1631,13 +1692,13 @@ export interface _SERVICE {
1631
1692
  * / earlier era (the certified leaf says so), and re-sends what a newborn is told: its biller, market and
1632
1693
  * / metrics reader, a first fee line and its birth record. The mark is removed once the biller is in
1633
1694
  * / place; until then a second call finishes the work and answers `#Ok` with `finished = true`.
1634
- * / ⟨CHANGED 2026-11-05, the canister review's M1 and L1⟩ The old record's anchors are set aside (and
1695
+ * / ⟨CHANGED 2026-11-05, from the review of the recover-my-wallet build⟩ The old record's anchors are set aside (and
1635
1696
  * / `recoveredAtNs` recorded) with the mark, BEFORE the install — the record ended at the erase — and no
1636
1697
  * / first fee line is sent (the balance before the install is not a fee). The compute probes'
1637
1698
  * / `recoverOpen` says a recover is open. An upgrade that finds a recover's install landed records it first.
1638
1699
  * /
1639
- * / Refused, before anything is written: not your engram (`#NotFound`); not active, or ABANDONED (ruling
1640
- * / 2A: an abandoned engram is not recovered — withdraw your digital dollars before you abandon an engram);
1700
+ * / Refused, before anything is written: not your engram (`#NotFound`); not active, or ABANDONED (the owner's ruling
1701
+ * / of 2026-11-04: an abandoned engram is not recovered — withdraw your digital dollars before you abandon an engram);
1641
1702
  * / sovereign; a change of owner unfinished; a restart open or
1642
1703
  * / a restart/recover call running; an update installing; no template; the status unreadable; NOT ERASED
1643
1704
  * / (`#Conflict` — "already recovered at T" when this registry recovered it, and no install); compute
@@ -1691,15 +1752,19 @@ export interface _SERVICE {
1691
1752
  * / Never run on production engrams (the owner's ruling). On the staging network, as the wasm admin,
1692
1753
  * / with the engram's canister id in ENGRAM:
1693
1754
  * / icp canister call registry-staging resetEngramMemory "(principal \"$ENGRAM\")" -e ic
1755
+ * / ⟨2026-11-15, beside "Never run on production engrams" above — from an adversarial review⟩ Both are CHECKS now, not
1756
+ * / comments. A build that carries the canonical root refuses the reset before anything is read
1757
+ * / (`MemoryReset.canonicalBuild`), and an engram whose owner chose `#ManualOnly` is refused unless an
1758
+ * / earlier reset already holds it (`MemoryReset.MANUAL_ONLY_REFUSAL`), as `pushUpgrade` refuses it.
1694
1759
  */
1695
1760
  resetEngramMemory: ActorMethod<[Principal], Result>;
1696
1761
  /**
1697
1762
  * / Restart YOUR OWN stopped engram.
1698
1763
  * /
1699
- * / CALLER: the owner, from the app's restart sheet (ADR-0020). Afterwards the app runs the engram's
1764
+ * / CALLER: the owner, from the app's restart sheet (the surface budget: every method names its caller). Afterwards the app runs the engram's
1700
1765
  * / own `convertEarningsToCycles` as the owner, which pays any loan back FIRST.
1701
1766
  * /
1702
- * / ⟨REWRITTEN 2026-10-26, the owner's ruling 2A of that day⟩ What it does, in this order: stops the
1767
+ * / ⟨REWRITTEN 2026-10-26, the owner's ruling of that day on restarts⟩ What it does, in this order: stops the
1703
1768
  * / engram; adds compute — the owner's own (already added through `stopMyEngramForRestart` and a
1704
1769
  * / top-up from their account), or a loan of what it still lacks to run at its OWN setting (at most
1705
1770
  * / 0.25T, only after the biller confirms the wallet holds enough to repay it); installs the waiting
@@ -1714,19 +1779,21 @@ export interface _SERVICE {
1714
1779
  * / than one loan; a waiting security update that this restart could not cover (it would start old
1715
1780
  * / code); an engram opened through another engram that would need a loan; the fleet-wide ceiling;
1716
1781
  * / no biller, or a wallet too low to repay. A restart that lent nothing does not spend the week.
1717
- * / ⟨CORRECTED 2026-10-26, later — the owner's restart choices 1A and 2A of that day⟩ The list above is
1782
+ * / ⟨CORRECTED 2026-10-26, later — the owner's restart choices of that day on lending to children and on
1783
+ * / the weekly limit⟩ The list above is
1718
1784
  * / the record of the build before them. Now: "restarted in the last 7 days" and "a loan still owed"
1719
- * / refuse ONLY a restart that would LEND (2A: "apply the weekly limit only when we lend") — asked
1720
- * / once the plan knows the loan, and again after every await before the loan is made
1785
+ * / refuse ONLY a restart that would LEND (the owner's restart choice: "apply the weekly limit only when
1786
+ * / we lend") — asked once the plan knows the loan, and again after every await before the loan is made
1721
1787
  * / (`RestartLoan.lendGate`); a restart on the owner's own compute is never refused by them and never
1722
1788
  * / spends the week, which is taken only in the step that records a loan. "An engram opened through
1723
- * / another engram that would need a loan" is GONE (1A: "lend to children like any other engram") —
1789
+ * / another engram that would need a loan" is GONE (the owner's restart choice: "lend to children like any
1790
+ * / other engram") —
1724
1791
  * / such an engram is lent to under the same ceiling, wallet check and repay-first as any other: the
1725
1792
  * / biller reads the engram's OWN wallet by its own id, and the engram's own Convert repays. New: a
1726
1793
  * / second call while one is still running for the same engram (`restartCallsRunning`), which is
1727
1794
  * / what now keeps two interleaved calls from both lending or both stopping and starting — the week
1728
1795
  * / used to double as that guard.
1729
- * / ⟨2026-11-04, beside the lists above — BACKLOG ERASED-REFUSE-1⟩ Also refused, first after the status
1796
+ * / ⟨2026-11-04, beside the lists above⟩ Also refused, first after the status
1730
1797
  * / read: an ERASED engram (its canister holds no program) — nothing is stopped or lent into it.
1731
1798
  */
1732
1799
  restartMyStoppedEngram: ActorMethod<[], Result_8>;
@@ -1782,11 +1849,11 @@ export interface _SERVICE {
1782
1849
  * / of it — which is exactly the power this note exists to deny.
1783
1850
  * /
1784
1851
  * / ⟨RENAMED 2026-10-02 from `sysSetGenesisPredecessor` — the sys-tier retier ruled 2026-08-24,
1785
- * / executed under the owner's 2026-10-02 ruling to carry out the pre-cut interface decisions as
1786
- * / recommended.⟩ CALLER: this registry's admin, a person, once, after the predecessor chain's
1787
- * / final head is captured. The `sys` prefix names the canister-to-canister tier, so an
1788
- * / admin-called method inside it made "a `sys` method has no human caller" false and therefore
1789
- * / uncheckable. The audit label moves with the name (`setGenesisPredecessor.denied`).
1852
+ * / executed under the owner's 2026-10-02 ruling to carry out the interface decisions reviewed
1853
+ * / before the 0.16.0 cut as recommended.⟩ CALLER: this registry's admin, a person, once, after the
1854
+ * / predecessor chain's final head is captured. The `sys` prefix names the canister-to-canister
1855
+ * / tier, so an admin-called method inside it made "a `sys` method has no human caller" false and
1856
+ * / therefore uncheckable. The audit label moves with the name (`setGenesisPredecessor.denied`).
1790
1857
  */
1791
1858
  setGenesisPredecessor: ActorMethod<[Uint8Array | number[], bigint], Result>;
1792
1859
  /**
@@ -1843,14 +1910,15 @@ export interface _SERVICE {
1843
1910
  /**
1844
1911
  * / Stop YOUR OWN stopped-or-starving engram so you can add compute from your account and restart it.
1845
1912
  * /
1846
- * / CALLER: the owner, from the app's "Add compute from my account" when the engram has stopped and a
1847
- * / security update is waiting (ADR-0020). ⟨2026-10-26, the owner's ruling 2A⟩ Stops the engram so
1848
- * / that compute the owner adds next cannot wake its old code; the owner then adds compute through
1849
- * / the biller's own top-up and calls `restartMyStoppedEngram`, which installs the waiting update and
1850
- * / starts it. If the owner walks away, the sweep finishes it after 30 minutes: install if covered,
1851
- * / restore, start. Never left stopped. It lends nothing, so it takes no week; it refuses an engram
1852
- * / that is not stuck, so a healthy engram is never taken offline (spec question Q15).
1853
- * / ⟨2026-11-04 — BACKLOG ERASED-REFUSE-1⟩ It also refuses an ERASED engram (its canister holds no
1913
+ * / CALLER: the owner, from the app's "Add compute from my account" when the engram has stopped and
1914
+ * / a security update is waiting (the surface budget: every method names its caller).
1915
+ * / ⟨2026-10-26, the owner's ruling on restarts⟩ Stops the engram so that compute the owner adds
1916
+ * / next cannot wake its old code; the owner then adds compute through the biller's own top-up and
1917
+ * / calls `restartMyStoppedEngram`, which installs the waiting update and starts it. If the owner
1918
+ * / walks away, the sweep finishes it after 30 minutes: install if covered, restore, start. Never
1919
+ * / left stopped. It lends nothing, so it takes no week; it refuses an engram that is not stuck, so
1920
+ * / a healthy engram is never taken offline (a build choice the rulings left open).
1921
+ * / ⟨2026-11-04⟩ It also refuses an ERASED engram (its canister holds no
1854
1922
  * / program): there is nothing to restart, and nothing is stopped.
1855
1923
  */
1856
1924
  stopMyEngramForRestart: ActorMethod<[], Result_6>;
@@ -1868,7 +1936,8 @@ export interface _SERVICE {
1868
1936
  * / `AnchorConflicts.MAX_CONFLICTS_PER_ENGRAM` recorded contradictions gets `#Conflict` naming
1869
1937
  * / this method, and the refusal is COUNTED in its certified leaf (`refusedConflicts`). The
1870
1938
  * / evidence is not lost — the recorded ones stay forever and the count certifies that more came.
1871
- * / ⟨0.16.0, L2.3⟩ RENAMED from `anchorHead` — a mutation wearing a noun, and a `sys` edge that
1939
+ * / ⟨0.16.0, canister-to-canister methods carry the sys prefix⟩
1940
+ * / RENAMED from `anchorHead` — a mutation wearing a noun, and a `sys` edge that
1872
1941
  * / did not say so. It is called canister-to-canister (an engram or the market pushing its head
1873
1942
  * / here), never by a person, and the `sys` prefix is what tells a reader scanning the surface
1874
1943
  * / which methods are machine-to-machine.
@@ -1879,17 +1948,17 @@ export interface _SERVICE {
1879
1948
  sysAnchorHead: ActorMethod<[Uint8Array | number[], bigint], Result>;
1880
1949
  /**
1881
1950
  * / CALLER: an engram, from inside its owner's `convertEarningsToCycles`, once the conversion landed
1882
- * / (ADR-0020). Attach up to what is owed: the registry accepts no more than the outstanding loan
1951
+ * / (the surface budget: every method names its caller). Attach up to what is owed: the registry accepts no more than the outstanding loan
1883
1952
  * / (the network returns the rest) and records it. `#NotFound` when nothing is owed (the loan was
1884
1953
  * / written off, or repaid): the engram then clears its own record.
1885
- * / ⟨CHANGED 2026-10-26, the owner's ruling 2A⟩ REPAY-ONLY. It no longer puts a freezing setting back
1954
+ * / ⟨CHANGED 2026-10-26, the owner's ruling on restarts⟩ REPAY-ONLY. It no longer puts a freezing setting back
1886
1955
  * / (the restart restores it before the start) and no longer queues a security push (the restart
1887
1956
  * / installs it before the start; the wake watcher covers other wakes). The name and reply are
1888
1957
  * / unchanged, so the engram's hand client still matches.
1889
1958
  */
1890
1959
  sysCloseRestart: ActorMethod<[], Result_5>;
1891
1960
  /**
1892
- * / ⟨2026-09-29, review PR-3: a half-finished change of owner⟩ A SOVEREIGN engram reports that it
1961
+ * / ⟨2026-09-29, a review: a half-finished change of owner⟩ A SOVEREIGN engram reports that it
1893
1962
  * / moved control of its code to `newOwner`, which ends the change of owner this registry marked
1894
1963
  * / when it moved its record (`ControlHandover.Pending`). Until this arrives the registry refuses the
1895
1964
  * / new owner's control-changing calls on the engram, because it cannot see a sovereign engram's
@@ -1914,9 +1983,10 @@ export interface _SERVICE {
1914
1983
  /**
1915
1984
  * / CALLER: an engram opened through another, from inside its three sign-in writers — `setOwnerSignIn`,
1916
1985
  * / `declineSignIn` (the sign-in's own decline) and `acceptSignIn` — BEFORE it writes its own seat
1917
- * / (ADR-0020). ⟨2026-11-04, the owner's ruling "1B"⟩ The registry keeps the child's seated sign-in
1986
+ * / (the surface budget: every method names its caller). ⟨2026-11-04, the owner's ruling that the registry
1987
+ * / keeps a child's sign-in⟩ The registry keeps the child's seated sign-in
1918
1988
  * / (`childSignIn` says why, and why the order is registry-first): `?p` notes `p` as the sign-in, `null`
1919
- * / notes that none is seated. A record argument, so it can grow by opt fields (ADR-0018 rule 0).
1989
+ * / 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).
1920
1990
  * / Refused, with nothing written: a caller this registry did not open through another engram (a first
1921
1991
  * / engram has no sign-in; anything else is no engram here), and a sign-in the door would refuse at
1922
1992
  * / birth (`ChildDoor.signInRefusal` — the key file itself, the anonymous principal, a canister).
@@ -1926,7 +1996,7 @@ export interface _SERVICE {
1926
1996
  * / ⟨2026-10-02⟩ An engram tells this registry that its owner reset it.
1927
1997
  * /
1928
1998
  * / CALLER: a registered engram, about itself — `canisterToOwner` membership, checked first
1929
- * / (ADR-0020: every `sys` method names and checks its caller). The engram sends it from its reset
1999
+ * / (the surface budget: every `sys` method names and checks its caller). The engram sends it from its reset
1930
2000
  * / path. WHY IT EXISTS: a reset purges the engram's roster, and the endings it sends reach this
1931
2001
  * / registry only for agents still active, so a reset after the last agent left reached this
1932
2002
  * / registry nowhere and the engram read as kept.
@@ -1941,7 +2011,7 @@ export interface _SERVICE {
1941
2011
  * / ⟨0.16.0, RULED 2026-08-17, BUILT 2026-08-20⟩ The engram tells this registry that custody moved.
1942
2012
  * /
1943
2013
  * / WHAT IT FIXES: `transferOwnership` lives on the ENGRAM and, until this method existed, told the
1944
- * / registry nothing. `verifyEngramActiveOwner` — the cashier's money gate — therefore kept
2014
+ * / registry nothing. `verifyEngramActiveOwner` — the biller's money gate — therefore kept
1945
2015
  * / answering for the ORIGINAL owner, so a new owner could not fund the engram they now own. The
1946
2016
  * / old comment above `verifyEngramActiveOwner` called that gap "by design"; it was not, and the
1947
2017
  * / 2026-08-17 ruling shipped this seam to close it inside the free-break window.
@@ -1967,9 +2037,9 @@ export interface _SERVICE {
1967
2037
  * / guard behind. The check below mirrors the spawn guard EXACTLY — active AND not abandoned —
1968
2038
  * / because an abandoned engram is not a live claim on its owner's slot.
1969
2039
  * /
1970
- * / ⟨2026-09-29, owner ruling follow-up 8 (option A): a change of owner hands over control of the
1971
- * / code⟩ THIS METHOD NOW MOVES CONTROL TOO, or tells the engram to. It used to move the record and
1972
- * / nothing else, so the former owner stayed a controller and could still replace the code. Now:
2040
+ * / ⟨2026-09-29, the owner's ruling: a change of owner hands over control of the code⟩ THIS METHOD
2041
+ * / NOW MOVES CONTROL TOO, or tells the engram to. It used to move the record and nothing else, so
2042
+ * / the former owner stayed a controller and could still replace the code. Now:
1973
2043
  * / · MANAGED (the registry is a controller): the registry sets the controllers to itself and the
1974
2044
  * / new owner and answers `#MovedByRegistry`. If that fails, the record is put back and the
1975
2045
  * / answer is `#Err` — the engram then does not change owner.
@@ -1984,13 +2054,33 @@ export interface _SERVICE {
1984
2054
  */
1985
2055
  sysNotifyOwnershipTransfer: ActorMethod<[Principal], Result_3>;
1986
2056
  /**
1987
- * / ⟨2026-10-01, the owner's ruling of that day: the October concept's decision 1, "build it now"⟩
2057
+ * / ⟨2026-11-15, from an adversarial review, ruled the same day: the new owner must accept⟩ AN ENGRAM
2058
+ * / FILES ITS OWNER'S OFFER of a change of owner to `newOwner` (the engram's `transferOwnership`).
2059
+ * /
2060
+ * / IT MOVES NOTHING. The record of who owns the engram, control of its code, the predecessor
2061
+ * / links and everything filed under `newOwner`'s key are untouched; `newOwner` is not looked up at
2062
+ * / all, so the answer says nothing about them and no call of theirs answers differently. The row
2063
+ * / is filed by engram (`ownershipOffers`), replaces any earlier offer of the same engram together
2064
+ * / with its acceptance, and ends at `expiresAtNs` or at this registry's own limit
2065
+ * / (`OwnershipOffer.TTL_NS`, 7 days), whichever is sooner.
2066
+ * /
2067
+ * / Gated like `sysNotifyOwnershipTransfer`: the caller must BE a registered engram. Refused for
2068
+ * / an engram opened through another (it never changes owner), for an offer to the owner the
2069
+ * / registry already records, and, while a change of owner is unfinished, for an offer to anyone
2070
+ * / but its would-be owner.
2071
+ * /
2072
+ * / TRUST: the engram's word is taken for the OFFER only, and an offer binds nobody. The
2073
+ * / acceptance is `acceptEngramOffer`, which only the named principal can make.
2074
+ */
2075
+ sysOfferOwnership: ActorMethod<[Principal, bigint], Result>;
2076
+ /**
2077
+ * / ⟨2026-10-01, the owner's ruling of that day: build this now, not at the first paid engagement⟩
1988
2078
  * / THE SPONSORED DOOR. An engram opens an engram for one of its agents: the caller is the engram
1989
2079
  * / (the engram it is opened from — `parentOf` in code), `ownerKey` is the agent's LASTING key, which
1990
2080
  * / owns what is opened, and the cycles the opened engram lives on are the ones the caller ATTACHES.
1991
2081
  * /
1992
2082
  * / CALLER: a registered engram — `canisterToOwner` membership, checked first, exactly as
1993
- * / `sysRecordAgentEdge` checks it (ADR-0020: every `sys` method names and checks its caller). The
2083
+ * / `sysRecordAgentEdge` checks it (the surface budget: every `sys` method names and checks its caller). The
1994
2084
  * / engram's own rules (the owner's standing allowance for this agent, its frozen-payments state,
1995
2085
  * / its balance) are the engram's to check before it calls; this method checks what only the
1996
2086
  * / registry can know.
@@ -2004,8 +2094,8 @@ export interface _SERVICE {
2004
2094
  * / no canister can withdraw another's cycles. The one honest exception to "returned on every
2005
2095
  * / failure": nothing is recorded, and the reply names the canister, its controllers (this
2006
2096
  * / registry and the key) and what the key can do with it;
2007
- * / ⟨CORRECTED 2026-11-02, beside the line above — the owner's ruling "choice 4 without hand
2008
- * / over" (V0)⟩ The controller is THIS REGISTRY ALONE; the key is not one and can install
2097
+ * / ⟨CORRECTED 2026-11-02, beside the line above — the owner's ruling that the registry alone
2098
+ * / controls an opened engram⟩ The controller is THIS REGISTRY ALONE; the key is not one and can install
2009
2099
  * / nothing. The reply names the canister and says the cycles sit in it unrecorded, for whoever
2010
2100
  * / runs this deployment to decide on;
2011
2101
  * / · the key came to own an engram during the awaits → the new canister is named, nothing is
@@ -2015,9 +2105,9 @@ export interface _SERVICE {
2015
2105
  * / with first engrams); it never writes a predecessor (a key with any record was refused); it never
2016
2106
  * / consults the reserve gate (the parent owner's approval is this door's admission — the gate's
2017
2107
  * / arming note stays on `provisionEngram`); it never tells the calling engram anything but this
2018
- * / reply. No payment AMOUNT reaches it (ADR-0005): it carries cycles and a key, nothing else.
2108
+ * / reply. No payment AMOUNT reaches it (money is the biller's, cycles are the registry's): it carries cycles and a key, nothing else.
2019
2109
  * /
2020
- * / THE RATE LIMIT ⟨2026-10-01, evening — the owner's ruling "1B"; until then this door shared
2110
+ * / THE RATE LIMIT ⟨2026-10-01, evening — the owner's ruling that evening; until then this door shared
2021
2111
  * / first engrams' limiter in full: their 24-hour count, their in-flight count and
2022
2112
  * / `effectiveDailyCap`⟩. The door shares only the DIAL (`spawnCeiling`) and the WINDOW LENGTH (24
2023
2113
  * / hours). Its count is its own (`sponsoredCreationTimestampsBuf`, pruned by
@@ -2036,8 +2126,8 @@ export interface _SERVICE {
2036
2126
  * / WHAT WOULD MAKE THIS WRONG: a second path that writes `parentOf`, or an `await` placed between
2037
2127
  * / the post-await re-check and the record below.
2038
2128
  * /
2039
- * / ⟨2026-11-02, the owner's rulings "choice 4 without hand over" (V0) and "1-4 all as you
2040
- * / recommended"⟩ CONTROLLED BY THIS REGISTRY ALONE, AND BORN KNOWING ITS PARENT AND ITS SIGN-IN.
2129
+ * / ⟨2026-11-02, the owner's rulings that the registry alone controls an opened engram, and "1-4 all as
2130
+ * / you recommended"⟩ CONTROLLED BY THIS REGISTRY ALONE, AND BORN KNOWING ITS PARENT AND ITS SIGN-IN.
2041
2131
  * / The canister's controllers are `[this registry]` — the key is not a controller, so it can never
2042
2132
  * / reinstall, delete or re-control the engram; only this registry installs code on it. Such an
2043
2133
  * / engram is managed for life: `claimSovereignty`, `returnToManaged`, `abandonMyEngram`, a
@@ -2048,14 +2138,15 @@ export interface _SERVICE {
2048
2138
  * / before it answers its first message. `null` = no sign-in: the engram keeps small limits for life.
2049
2139
  * / An engram built before this argument sends one argument; the missing trailing `opt` decodes as
2050
2140
  * / `null` (Candid's rule for a missing optional argument), and the engram opens with no sign-in.
2051
- * / ⟨CORRECTED 2026-11-02, later — the stage-1 review's B1, beside the two lines above, which no
2052
- * / longer hold⟩ ONE RECORD, A NEW NAME. This door was `sysSpawnChild(ownerKey : Principal)`; giving
2053
- * / it a second positional argument grew its argument TUPLE, which ADR-0018 rule 0 freezes ("evolution
2054
- * / happens inside records", ratified R1) and the interface gate reads as ILLEGAL. So the door is
2141
+ * / ⟨CORRECTED 2026-11-02, later — from the review of the step that made the registry a child's only
2142
+ * / controller, beside the two lines above, which no longer hold⟩
2143
+ * / ONE RECORD, A NEW NAME. This door was `sysSpawnChild(ownerKey : Principal)`; giving
2144
+ * / it a second positional argument grew its argument TUPLE, which the interface-evolution rule freezes once released ("evolution
2145
+ * / happens inside records", ratified 2026-08-16) and the interface gate reads as ILLEGAL. So the door is
2055
2146
  * / `sysOpenChild({ ownerKey; signIn })` — later fields are opt fields of this record, never another
2056
2147
  * / argument — and `sysSpawnChild` is REMOVED (a NOTICE at the gate). An engram built before this
2057
2148
  * / change still calls `sysSpawnChild`; this registry no longer serves it, so that call is REJECTED
2058
- * / (IC0536, a reject the engram's `try` catches — ADR-0018 probe 11), the attached cycles come back
2149
+ * / (IC0536, a reject the engram's `try` catches — a probe of the interface-evolution rule), the attached cycles come back
2059
2150
  * / as the call's refund, and nothing is opened. An older engram therefore never opens an engram with
2060
2151
  * / no sign-in by accident; it opens them again once it runs a template that calls this method.
2061
2152
  * / (Was: the one-argument call decoded `signIn` as `null` — INFERRED for moc 2.1.0, never witnessed.)
@@ -2098,22 +2189,22 @@ export interface _SERVICE {
2098
2189
  * / row and one summary. The key never reaches the registry; the plan's separate new `sys-` method
2099
2190
  * / for the root is not built — this method was itself new in the same release, so it carries the
2100
2191
  * / root instead of the key, and a second method would be a parallel path for one fact.
2101
- * / ⟨CORRECTED 2026-09-28, review finding OPS-1: the trust in this paragraph was misplaced, and
2192
+ * / ⟨CORRECTED 2026-09-28, a review finding: the trust in this paragraph was misplaced, and
2102
2193
  * / "the key never reaches the registry" is no longer true. An engram's owner is a controller of
2103
2194
  * / its canister and can install code that reports any root, so a start now carries the root's
2104
2195
  * / enrolment statement (`Engagements.EnrolmentProof`) and THIS method verifies it
2105
- * / (`EdgeProof.rootOf`), and refuses past `Engagements.MAX_ENGAGEMENTS_PER_ENGRAM` (OPS-3). The
2196
+ * / (`EdgeProof.rootOf`), and refuses past `Engagements.MAX_ENGAGEMENTS_PER_ENGRAM` (a review finding). The
2106
2197
  * / enrolled key therefore DOES reach the registry, stored on the engagement record and never
2107
2198
  * / served. The ending's reason is still the owner's assertion; the agent's remedy for a false
2108
2199
  * / one is its dispute. Records stay keyed by the agent's root, as above.⟩
2109
- * / ⟨MOVED 2026-09-29, review finding LIFE-11: the correction above stood in the middle of this
2200
+ * / ⟨MOVED 2026-09-29, a review finding: the correction above stood in the middle of this
2110
2201
  * / paragraph, so the sentence it corrects came after it and read as the last word — in this file
2111
2202
  * / and in the published registry.did.⟩
2112
- * / ⟨2026-09-29, review finding LIFE-1⟩ An engagement is matched on the enrolled key AND the invite
2203
+ * / ⟨2026-09-29, a review finding⟩ An engagement is matched on the enrolled key AND the invite
2113
2204
  * / its statement names, not on the key alone: one statement opens at most one engagement, and a
2114
2205
  * / key the engram re-admits after a reset, under a fresh statement for a fresh invite, opens a new
2115
2206
  * / one (`Engagements.admit`).
2116
- * / ⟨CORRECTED 2026-09-29, review finding LIFE-2: "a repeated `#Ended` writes nothing, and both
2207
+ * / ⟨CORRECTED 2026-09-29, a review finding: "a repeated `#Ended` writes nothing, and both
2117
2208
  * / answer `#Ok`" is now narrower. An ending names the engagement it ends (the enrolled key and the
2118
2209
  * / invite) and the day the engram recorded it, because a lost ending is now RE-SENT by the
2119
2210
  * / engram's `resyncAgentEdges`. The same ending again answers `#Ok` and writes nothing; one
@@ -2122,14 +2213,15 @@ export interface _SERVICE {
2122
2213
  */
2123
2214
  sysRecordAgentEdge: ActorMethod<[{ root: Principal; event: EdgeEvent }], Result>;
2124
2215
  /**
2125
- * / CALLER: an engram, from inside its `sysReturnUpgradeAdvance` (ADR-0020). Attach what is being
2216
+ * / CALLER: an engram, from inside its `sysReturnUpgradeAdvance` (the surface budget: every method names its caller). Attach what is being
2126
2217
  * / given back of the compute a paid security update advanced it. The registry accepts no more than
2127
2218
  * / the outstanding advance (the network returns the rest) and writes off whatever was not returned
2128
2219
  * / — what the install used and what the engram had to keep — never carried as a debt.
2129
2220
  * / ⟨2026-10-26, the owner's ruling "accounting should be exact"⟩ The write-off here is the exact
2130
2221
  * / figure advance − accepted, from the ledger entry and the cycles actually accepted, and the audit
2131
2222
  * / line carries advance, returned and writtenOff.
2132
- * / ⟨2026-10-26, later — the owner's restart choices 4A and 5A⟩ The engram may have more than one
2223
+ * / ⟨2026-10-26, later — the owner's restart choices on naming the release and on the 90-day write-off⟩
2224
+ * / The engram may have more than one
2133
2225
  * / advance out (one per release paid; RestartLoan.repayAdvances): the cycles are accepted up to their
2134
2226
  * / sum and settled OLDEST FIRST, and each advance gets its own audit line naming the release it was
2135
2227
  * / paid for (`template=`), with its own returned and written-off parts — the lines sum exactly to
@@ -2137,10 +2229,11 @@ export interface _SERVICE {
2137
2229
  * / LEDGER, so nothing sent for it is accepted — the network returns those cycles to the engram — and
2138
2230
  * / `advanceReturned` never counts a written-off cycle: no double count. When nothing at all is out,
2139
2231
  * / the reply is `#NotFound` and nothing is accepted (as before).
2140
- * / ⟨CORRECTED 2026-10-26, later — the fix pass on 4A⟩ NEWEST first, not oldest first: the engram can
2232
+ * / ⟨CORRECTED 2026-10-26, later — a review fix to the owner's restart choice to name the release⟩
2233
+ * / NEWEST first, not oldest first: the engram can
2141
2234
  * / give back only what it holds above its balance before the latest deposit, so the cycles are the
2142
2235
  * / newest advance's (RestartLoan.repayAdvances says why, and when that reading is wrong).
2143
- * / ⟨CHANGED 2026-10-26, the owner's review choice 1B: "take back only what we added; anything left
2236
+ * / ⟨CHANGED 2026-10-26, the owner's give-back ruling: "take back only what we added; anything left
2144
2237
  * / over goes to the 90-day write-off"⟩ The engram now names THE ADVANCE it is giving back
2145
2238
  * / (`advanceId`, which the registry handed it in `sysReturnUpgradeAdvance` — the one this install's
2146
2239
  * / deposit put on the ledger). The registry accepts AT MOST THAT ADVANCE'S AMOUNT, settles THAT
@@ -2159,10 +2252,10 @@ export interface _SERVICE {
2159
2252
  */
2160
2253
  sysRepayUpgradeAdvance: ActorMethod<[{ advanceId: bigint }], Result_1>;
2161
2254
  /**
2162
- * / ⟨2026-09-29, owner ruling follow-up 8⟩ A SOVEREIGN engram could not change its own controllers
2163
- * / after this registry moved its record, and asks for the record back so the transfer does not
2164
- * / complete. Gated like `sysNotifyOwnershipTransfer` (the caller must BE the engram), and only for
2165
- * / an engram the registry records as sovereign — a managed engram's controllers are this
2255
+ * / ⟨2026-09-29, the owner's code-handover ruling⟩ A SOVEREIGN engram could not change its own
2256
+ * / controllers after this registry moved its record, and asks for the record back so the transfer
2257
+ * / does not complete. Gated like `sysNotifyOwnershipTransfer` (the caller must BE the engram), and
2258
+ * / only for an engram the registry records as sovereign — a managed engram's controllers are this
2166
2259
  * / registry's to move, and its record is put back inside `sysNotifyOwnershipTransfer` itself.
2167
2260
  * / Refuses, saying why, when the record cannot be put back (`ControlHandover.revertRefusal`); the
2168
2261
  * / engram then answers its owner with `ControlHandover.stuck`.
@@ -2177,7 +2270,7 @@ export interface _SERVICE {
2177
2270
  * / paid only for a #Security update on a running engram. A push is the registry's own initiative,
2178
2271
  * / so where the engram cannot hold the install even with its setting lowered, the push is SKIPPED
2179
2272
  * / with `#Conflict` and not attempted — the owner can still pull it, and the pull is never refused.
2180
- * / ⟨2026-11-04 — BACKLOG ERASED-REFUSE-1⟩ An ERASED engram (its canister holds no program) is not
2273
+ * / ⟨2026-11-04⟩ An ERASED engram (its canister holds no program) is not
2181
2274
  * / pushed: `#Conflict`, by name, before anything is added.
2182
2275
  */
2183
2276
  upgradeEngram: ActorMethod<[Principal], Result>;
@@ -2198,7 +2291,7 @@ export interface _SERVICE {
2198
2291
  * / opened through a parent is now paid for a security update like any other ("including child
2199
2292
  * / engrams, but not including engrams running unofficial code"), and a #Feature update is never
2200
2293
  * / paid, rent or no rent ("where rent is paid, feature upgrades are paid by the engram").
2201
- * / ⟨CORRECTED 2026-10-26, later — the owner's restart choice 3A: "pay whenever the engram is
2294
+ * / ⟨CORRECTED 2026-10-26, later — the owner's restart choice of that day: "pay whenever the engram is
2202
2295
  * / missing any security release, whatever the latest release is labelled"⟩ "a #Feature update is
2203
2296
  * / never paid" now excepts an engram still missing an earlier security release: its install of a
2204
2297
  * / #Feature template is paid as a security update, because the template carries that fix
@@ -2211,7 +2304,7 @@ export interface _SERVICE {
2211
2304
  * / (UpgradeFunding.pullFailure): `#Conflict` when the engram needs more compute (the owner's
2212
2305
  * / action — add compute), `#Unavailable` when the registry could not pay this time (retryable).
2213
2306
  * / A failure after a paid or unneeded deposit answers `#Unavailable` with the network's reply.
2214
- * / ⟨2026-11-04 — BACKLOG ERASED-REFUSE-1⟩ On an ERASED engram (its canister holds no program) nothing
2307
+ * / ⟨2026-11-04⟩ On an ERASED engram (its canister holds no program) nothing
2215
2308
  * / is paid; the install is still attempted, the network refuses it, and the reply says "erased".
2216
2309
  * /
2217
2310
  * / An engram already on the current template is a silent no-op. A SOVEREIGN engram gets
@@ -2223,7 +2316,7 @@ export interface _SERVICE {
2223
2316
  */
2224
2317
  upgradeMyEngram: ActorMethod<[], Result>;
2225
2318
  /**
2226
- * / True iff `canisterId` is a registered, `#Active` engram owned by `claimedOwner`. The cashier's
2319
+ * / True iff `canisterId` is a registered, `#Active` engram owned by `claimedOwner`. The biller's
2227
2320
  * / money gate: fund ONLY an active engram the paying caller owns, since minting cycles to a
2228
2321
  * / frozen or deleted canister strands the funds.
2229
2322
  * /
@@ -2238,7 +2331,7 @@ export interface _SERVICE {
2238
2331
  * / born-clean badge does. A query cannot make inter-canister calls, so this one cannot ask.
2239
2332
  * /
2240
2333
  * / ⟨Promoted from `//` to `///` 2026-08-21. Everything above was written as plain comments, so
2241
- * / registry.did published the cashier's money gate with NO explanation at all while 53 lines of
2334
+ * / registry.did published the biller's money gate with NO explanation at all while 53 lines of
2242
2335
  * / it sat in the source. The correction history stays `//` on purpose — it is addressed to an
2243
2336
  * / editor, and only what a CALLER needs belongs in the interface.⟩
2244
2337
  */