@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.
- package/dist/engram.did +681 -482
- package/dist/engram.idl.d.ts +666 -477
- package/dist/engram.idl.js +77 -48
- package/dist/market.did +56 -50
- package/dist/market.idl.d.ts +56 -50
- package/dist/registry.did +277 -182
- package/dist/registry.idl.d.ts +275 -182
- package/dist/registry.idl.js +9 -0
- package/package.json +1 -1
package/dist/registry.did
CHANGED
|
@@ -96,6 +96,11 @@ type Result_4 =
|
|
|
96
96
|
Err: Error;
|
|
97
97
|
Ok: MeterReading;
|
|
98
98
|
};
|
|
99
|
+
type Result_32 =
|
|
100
|
+
variant {
|
|
101
|
+
Err: Error;
|
|
102
|
+
Ok: AcceptedAtRegistry;
|
|
103
|
+
};
|
|
99
104
|
type Result_31 =
|
|
100
105
|
variant {
|
|
101
106
|
Err: Error;
|
|
@@ -655,6 +660,15 @@ type ActivationFunnel =
|
|
|
655
660
|
spawnCeiling: nat;
|
|
656
661
|
spawnsToday: nat;
|
|
657
662
|
};
|
|
663
|
+
type AcceptedAtRegistry =
|
|
664
|
+
record {
|
|
665
|
+
custody: variant {
|
|
666
|
+
Managed;
|
|
667
|
+
Sovereign;
|
|
668
|
+
};
|
|
669
|
+
expiresAtNs: int;
|
|
670
|
+
from: principal;
|
|
671
|
+
};
|
|
658
672
|
service : {
|
|
659
673
|
/// Abandon the caller's engram. Owner-initiated, terminal, and NOT deletion: the record stays,
|
|
660
674
|
/// stays readable, stays verifiable. It frees the owner to create ONE new engram, which will
|
|
@@ -669,13 +683,28 @@ service : {
|
|
|
669
683
|
/// ⟨2026-11-02⟩ REFUSED for an engram opened through another: it is never abandoned, so it stays on
|
|
670
684
|
/// this registry's security updates for life; it ends by its parent's cut-off or by running dry.
|
|
671
685
|
///
|
|
672
|
-
/// ⟨2026-11-05, the owner's ruling
|
|
686
|
+
/// ⟨2026-11-05, the owner's ruling of 2026-11-04 — "abandoned engrams are NOT recoverable"⟩
|
|
673
687
|
/// WITHDRAW YOUR DIGITAL DOLLARS FIRST. Nobody pays for an abandoned engram: when its compute runs out it stops,
|
|
674
688
|
/// and the network erases it about 30 days later. An abandoned engram is never recovered once it is
|
|
675
|
-
/// erased (`recoverMyEngram` refuses it, and the
|
|
689
|
+
/// erased (`recoverMyEngram` refuses it, and the biller refuses its top-ups), so whatever its wallet
|
|
676
690
|
/// still holds then stays at its address with no program that can move it. Withdraw it while the
|
|
677
691
|
/// engram runs.
|
|
678
692
|
abandonMyEngram: () -> (Result);
|
|
693
|
+
/// ⟨2026-11-15, the same ruling⟩ THE NAMED PRINCIPAL ACCEPTS AN ENGRAM OFFERED TO THEM, as
|
|
694
|
+
/// themselves. This is the registry's only evidence that they agreed, and the only writer of
|
|
695
|
+
/// `acceptedAtNs`.
|
|
696
|
+
///
|
|
697
|
+
/// IT STILL MOVES NOTHING. It marks the offer accepted; the record and control of the code move
|
|
698
|
+
/// when the caller then calls `acceptOwnership` on the engram, which reports here
|
|
699
|
+
/// (`sysNotifyOwnershipTransfer`). The answer says who offered it, when the offer ends, and
|
|
700
|
+
/// whether the engram is `#Sovereign`: a sovereign engram's code is written by its owner, not
|
|
701
|
+
/// installed by this registry, so the caller should check what it runs before the second call.
|
|
702
|
+
///
|
|
703
|
+
/// Refused, with nothing changed: no open offer of that engram names the caller (one text for
|
|
704
|
+
/// "none", "someone else's" and "expired"); the caller already has an active engram (one engram
|
|
705
|
+
/// per owner; the offer stays open, and nothing of theirs is touched); the caller is opening an
|
|
706
|
+
/// engram right now. `declineEngramOffer` takes an acceptance back.
|
|
707
|
+
acceptEngramOffer: (engram: principal) -> (Result_32);
|
|
679
708
|
addAuditViewer: (viewer: principal) -> (Result);
|
|
680
709
|
/// Add a changelog entry (admin only)
|
|
681
710
|
addChangelogEntry: (version: text, releaseNotes: text) -> (Result);
|
|
@@ -712,9 +741,13 @@ service : {
|
|
|
712
741
|
/// `returnToManaged` adds the registry back ALONGSIDE the owner. Sovereignty is a door, not a
|
|
713
742
|
/// cliff.
|
|
714
743
|
///
|
|
715
|
-
/// ⟨2026-11-02, the owner's ruling
|
|
744
|
+
/// ⟨2026-11-02, the owner's sole-controller ruling⟩ REFUSED for an engram opened
|
|
716
745
|
/// through another: it stays managed by this registry for life, and its key is never a controller.
|
|
717
746
|
claimSovereignty: () -> (Result);
|
|
747
|
+
/// ⟨2026-11-15, the same ruling⟩ The named principal declines an offer, or takes back an
|
|
748
|
+
/// acceptance made before `acceptOwnership` was called on the engram. The row is removed, so a
|
|
749
|
+
/// report of that change of owner is refused until the engram's owner offers again.
|
|
750
|
+
declineEngramOffer: (engram: principal) -> (Result);
|
|
718
751
|
/// Assemble the pushed chunks into the engram template and install it as the current one.
|
|
719
752
|
///
|
|
720
753
|
/// ⚠ THE HASH IS VERIFIED, exactly as in `setEngramWasm`: the assembled bytes are hashed and
|
|
@@ -759,33 +792,34 @@ service : {
|
|
|
759
792
|
/// its LIVE freezing reservation, which is memory-scaled, so a large engram can be low at a
|
|
760
793
|
/// balance a small one would be comfortable at.
|
|
761
794
|
///
|
|
762
|
-
/// ⟨
|
|
795
|
+
/// ⟨update-for-read⟩ UPDATE, NOT QUERY, for BOTH of the reasons this law recognises — which is why it is worth
|
|
763
796
|
/// stating rather than leaving to be inferred from a body that scans a fleet. It awaits
|
|
764
797
|
/// `ic.canister_status` once per engram in the page, so no query could produce the figures at all;
|
|
765
798
|
/// and it calls `denied()` on refusal, a state write a query cannot perform, so making it a query
|
|
766
|
-
/// would also retire the record of who was turned away (
|
|
799
|
+
/// would also retire the record of who was turned away (the refusal-over-fabrication class, the same one
|
|
767
800
|
/// `listEngrams` settled at its own declaration).
|
|
768
801
|
///
|
|
769
|
-
/// ⟨Marker added 2026-08-23. The
|
|
770
|
-
///
|
|
771
|
-
///
|
|
772
|
-
///
|
|
802
|
+
/// ⟨Marker added 2026-08-23. The 0.16.0 interface plan's row for this method already cited the
|
|
803
|
+
/// update-for-read rule and
|
|
804
|
+
/// the site did not carry it — invisible to the deploying side's update-for-read check, whose
|
|
805
|
+
/// population is read-VERB names and this one is a noun. That check now reads the plan's
|
|
806
|
+
/// update-for-read citations as a second population for exactly this blind spot.⟩
|
|
773
807
|
fleetCycleHealth: (offset: nat, limit: nat, thresholdCycles: nat) ->
|
|
774
808
|
(Result_31);
|
|
775
|
-
/// PUBLIC: ⟨0.16.0,
|
|
776
|
-
/// replacing `status()` and ABSORBING `publicMetrics()`.
|
|
809
|
+
/// PUBLIC: ⟨0.16.0, same concept, same name across canisters⟩ `fleetSummary` — the ONE public
|
|
810
|
+
/// projection of this registry, replacing `status()` and ABSORBING `publicMetrics()`.
|
|
777
811
|
///
|
|
778
|
-
/// Two public aggregates of one canister was the same
|
|
812
|
+
/// Two public aggregates of one canister was the same naming defect the engram had with
|
|
779
813
|
/// status()/metrics(): both answered "what is this registry like", they disagreed about which
|
|
780
814
|
/// counters they carried (status had cycles and the wasm hash, publicMetrics had unique owners,
|
|
781
815
|
/// sovereign engrams and registrySince), and a caller had to know which one held the field they
|
|
782
|
-
/// wanted. storage
|
|
816
|
+
/// wanted. An off-chain storage sweep cross-checked one against the other to infer a fact neither stated.
|
|
783
817
|
///
|
|
784
818
|
/// Merged, not concatenated: `totalEngrams` and `activeEngrams` appeared in BOTH and are counted
|
|
785
819
|
/// once here, by the same pass.
|
|
786
820
|
///
|
|
787
821
|
/// Everything in it identifies nobody — counts, a version, a hash, a cycle balance — which is why
|
|
788
|
-
/// it is ungated and marked for the
|
|
822
|
+
/// it is ungated and marked for the disclosure gate's grep.
|
|
789
823
|
fleetSummary: () -> (FleetSummary) query;
|
|
790
824
|
/// When an engram was abandoned, if it was.
|
|
791
825
|
///
|
|
@@ -806,7 +840,8 @@ service : {
|
|
|
806
840
|
/// PUBLIC: who holds authority here. A refusal a caller cannot attribute is a refusal they
|
|
807
841
|
/// cannot appeal, so the roster is readable by everyone the roster can refuse.
|
|
808
842
|
///
|
|
809
|
-
/// ⟨0.16.0,
|
|
843
|
+
/// ⟨0.16.0, same concept, same name across canisters⟩
|
|
844
|
+
/// The shared `AdminRoles` shape, not a registry-specific record. It was
|
|
810
845
|
/// `{ admin; wasmAdmin }`, which could not express the ROOT identity at all — the principal that
|
|
811
846
|
/// bootstraps the first admin and can reclaim the role was simply absent from the published
|
|
812
847
|
/// answer, so "who can take this canister back" was a fact only the source told you. A list of
|
|
@@ -852,25 +887,36 @@ service : {
|
|
|
852
887
|
/// was meant to replace, so there is no role gate. But a record spanning fewer than
|
|
853
888
|
/// `Engagements.STANDING_MIN_DISTINCT_ENGRAMS` distinct engrams is served ONLY to the agent itself:
|
|
854
889
|
/// at one or two engrams the summary IS their owners' experience, which is identification by
|
|
855
|
-
/// inference (
|
|
890
|
+
/// inference (L4-1 — our own reading of the law, not legal advice). That refusal is
|
|
856
891
|
/// LOUD, names this method, and covers a record of zero engagements with the same words, so the
|
|
857
892
|
/// refusal itself does not distinguish "never engaged" from "engaged in one to four engrams".
|
|
858
893
|
/// The agent itself reading an empty record gets `#NotFound` — it is asking about itself, so
|
|
859
894
|
/// there is nothing to hide from it.
|
|
860
895
|
///
|
|
861
|
-
/// ⟨2026-09-28, review finding
|
|
896
|
+
/// ⟨2026-09-28, a review finding⟩ A THIN SELF-READ IS UNCERTIFIED: below the threshold the
|
|
862
897
|
/// record is not in the certified tree at all (its hash would leak it through every other
|
|
863
898
|
/// witness), so the agent is served its summary folded from the records, with `certificate =
|
|
864
899
|
/// null` and an empty `witness`. At and above the threshold every reader gets the stored bytes
|
|
865
900
|
/// with their proof.
|
|
866
901
|
///
|
|
867
|
-
/// ⟨2026-10-01, the owner's ruling of that day
|
|
902
|
+
/// ⟨2026-10-01, the owner's ruling of that day⟩ The threshold counts TOPS, not engrams
|
|
868
903
|
/// (`Engagements.distinctTops`): engrams opened from one engram count as one, and an engram counts
|
|
869
904
|
/// as one with the engrams it replaced. The refusal's sentence says so.
|
|
870
905
|
///
|
|
871
906
|
/// WHAT IT NEVER DOES: score, rank, recommend, or refuse anyone work. The decision to refuse an
|
|
872
907
|
/// agent belongs to the owner's own engram (L4-3).
|
|
873
908
|
///
|
|
909
|
+
/// ⟨2026-11-15, from an adversarial review⟩ COUNTS, NOT INDEPENDENCE — READ THIS BEFORE TRUSTING A
|
|
910
|
+
/// RECORD. The certificate proves that this registry holds these counts for this agent. It does NOT
|
|
911
|
+
/// prove that the engrams behind them belong to different people. The registry links two engrams
|
|
912
|
+
/// only through a parent or a predecessor; engrams opened under separate principals are unlinked,
|
|
913
|
+
/// and one party can open several. So one party can give its own agent a certified record with no
|
|
914
|
+
/// one else involved (RUN 2026-11-15 on PocketIC: a stranger was refused at one engram, and served
|
|
915
|
+
/// a certified record of five live engagements and no bad endings once four more engrams, opened
|
|
916
|
+
/// under four other principals, had paired the same root). The five-engram threshold is a privacy
|
|
917
|
+
/// floor (L4-1), never a defence against a made-up record. A reader must not take these counts as
|
|
918
|
+
/// other owners' experience of the agent.
|
|
919
|
+
///
|
|
874
920
|
/// ⟨2026-09-28, owner decision: one root key per agent, with an enrolled key per client⟩ `agent`
|
|
875
921
|
/// is the agent's ROOT principal — the identity an owner sees as `root` on each key in their own
|
|
876
922
|
/// `listAgents`. "The agent itself" is a caller holding that root key. A key for one engram has no
|
|
@@ -893,7 +939,8 @@ service : {
|
|
|
893
939
|
/// whether ENGRAMS are anchoring — an active money chain must not stand in for them.
|
|
894
940
|
getAnchorStats: () -> (AnchorStats) query;
|
|
895
941
|
/// PUBLIC: the chain head exists to be compared, so an external monitor can detect tampering
|
|
896
|
-
/// without admin access (
|
|
942
|
+
/// without admin access (the log is a SHA-256 hash chain whose head is public). A head only whoever
|
|
943
|
+
/// runs this deployment can read witnesses nothing.
|
|
897
944
|
getAuditHead: () -> (AuditHead) query;
|
|
898
945
|
/// An engram's LATEST witnessed anchor, certified. The leaf (Types.CertifiedAnchorLeaf, Candid —
|
|
899
946
|
/// decode with to_candid's standard encoding) carries the anchor AND its conflict count, so the
|
|
@@ -905,14 +952,14 @@ service : {
|
|
|
905
952
|
/// replace. The certificate's whole value is that a stranger can check it against the NNS root
|
|
906
953
|
/// key without trusting this registry, and a stranger is exactly who cannot hold a role here.
|
|
907
954
|
getCertifiedAnchor: (canisterId: principal) -> (opt CertifiedAnchor) query;
|
|
908
|
-
/// ⟨0.16.0,
|
|
955
|
+
/// ⟨0.16.0, same concept, same name across canisters⟩ RENAMED BACK to `getCertifiedAuditHead`, the fleet-wide name.
|
|
909
956
|
///
|
|
910
957
|
/// It was renamed AWAY from that on 2026-08-03, deliberately and for a good reason: the semantics
|
|
911
958
|
/// changed (certified_data became a merkle tree root covering the head AND the anchor set, so the
|
|
912
959
|
/// old certified_data == headHash byte-compare was gone), and a loud method-not-found was judged
|
|
913
960
|
/// better than a stale verifier quietly reporting verified=false forever.
|
|
914
961
|
///
|
|
915
|
-
/// THAT ARGUMENT'S PREMISE IS NOW FALSE. It protected deployed verifiers;
|
|
962
|
+
/// THAT ARGUMENT'S PREMISE IS NOW FALSE. It protected deployed verifiers; every chain restarts fresh
|
|
916
963
|
/// at the 0.16.0 genesis and there are none. What remains is a fleet where three canisters answer
|
|
917
964
|
/// the same question under two names, which is the cost the rename was paying to avoid a hazard
|
|
918
965
|
/// that no longer exists. `witness` becomes `?Blob` to match the shared type — null where a
|
|
@@ -929,7 +976,8 @@ service : {
|
|
|
929
976
|
/// the authority it was introduced to remove.
|
|
930
977
|
getCertifiedAuditHead: () -> (CertifiedAuditHead) query;
|
|
931
978
|
/// The certified proof that a birth record's FINGERPRINT is in this registry's tree ⟨2026-10-26, the
|
|
932
|
-
/// owner's lineage ruling
|
|
979
|
+
/// owner's lineage ruling on certifying birth records⟩
|
|
980
|
+
/// — the half of an engram's birth chain the engram cannot give itself.
|
|
933
981
|
///
|
|
934
982
|
/// PUBLIC: a proof a caller had to hold a role to fetch rests on the authority it was meant to
|
|
935
983
|
/// replace. It reveals only whether a fingerprint is present: the key is a salted hash (the record's
|
|
@@ -939,11 +987,12 @@ service : {
|
|
|
939
987
|
///
|
|
940
988
|
/// Verify as for `getCertifiedAnchor`, path ["births", <fingerprint>], leaf bytes = [0x01] (the
|
|
941
989
|
/// client's `verifyBirthChain` does it for a whole chain). `null` when absent, as `getCertifiedAnchor`
|
|
942
|
-
/// answers: there is no certified absence proof (
|
|
943
|
-
/// bytes is never a fingerprint, and answers `null` before the lookup.
|
|
990
|
+
/// answers: there is no certified absence proof (a build choice the rulings left open). A
|
|
991
|
+
/// `fingerprint` that is not 32 bytes is never a fingerprint, and answers `null` before the lookup.
|
|
944
992
|
getCertifiedBirth: (fingerprint: blob) -> (opt CertifiedBirth) query;
|
|
945
|
-
/// ⟨2026-11-02, the owner's ruling
|
|
946
|
-
///
|
|
993
|
+
/// ⟨2026-11-02, the owner's ruling on an opened engram's own sign-in; the child build's ruled answer
|
|
994
|
+
/// on the sign-in offer, with the fix its adversarial check found⟩
|
|
995
|
+
/// WHAT THE KIT OFFERS AS A NEW ENGRAM'S SIGN-IN, read before it opens one
|
|
947
996
|
/// through `parent`. The answer: the parent's owner — ONLY when the parent is a first engram (the
|
|
948
997
|
/// kit offers that principal as the default sign-in only then, after it prints it and the person
|
|
949
998
|
/// running the agent confirms it is theirs; for a parent opened through another the field is
|
|
@@ -955,7 +1004,7 @@ service : {
|
|
|
955
1004
|
/// (`Engagements.hasOpenEither` — the same fact `sysOpenChild`'s admission reads, so exactly the
|
|
956
1005
|
/// keys that may be opened an engram through `parent` may read what it offers). It discloses the
|
|
957
1006
|
/// parent's owner to the parent's own engaged agent, the party `getParentOf` answers once the child
|
|
958
|
-
/// exists. Anyone else is REFUSED loudly (
|
|
1007
|
+
/// exists. Anyone else is REFUSED loudly (refusal over fabrication), in the same words whether or not `parent` is
|
|
959
1008
|
/// an engram, so a refusal tells a stranger nothing. A QUERY, so the refusal is not in the denial
|
|
960
1009
|
/// log (`denied` says why a query cannot write). `#NotFound` only to an engaged caller, for a
|
|
961
1010
|
/// parent this registry holds no owner for.
|
|
@@ -969,14 +1018,14 @@ service : {
|
|
|
969
1018
|
/// `GET /oauth/authorize` target with what its registry hands out. PUBLIC: an origin is not a secret,
|
|
970
1019
|
/// and every owner of this deployment is sent there.
|
|
971
1020
|
getConsentOrigin: () -> (opt text) query;
|
|
972
|
-
/// The ATTESTABLE custody-mode fact
|
|
1021
|
+
/// The ATTESTABLE custody-mode fact: "managed" | "sovereign" |
|
|
973
1022
|
/// "unknown", derived from the registry's OWN transition records (claimSovereignty /
|
|
974
1023
|
/// returnToManaged maintain sovereignEngramIds) — NOT from a canister_status probe, which needs
|
|
975
1024
|
/// controllership and traps for exactly the sovereign engrams it should describe. Public, free,
|
|
976
1025
|
/// forever (free-parity): custody mode is a trust fact every warranted proof will carry —
|
|
977
1026
|
/// managed = engramx.ai can warrant its own controller conduct; sovereign = registry-side facts
|
|
978
1027
|
/// only. (Money-origin, by contrast, is payer-blind and never a record fact.)
|
|
979
|
-
/// PUBLIC: ⟨0.16.0
|
|
1028
|
+
/// PUBLIC: ⟨0.16.0⟩ Custody as a VARIANT, and the no-claim case says WHY rather than just
|
|
980
1029
|
/// being a third string.
|
|
981
1030
|
///
|
|
982
1031
|
/// ⟨CORRECTED 2026-08-24⟩ This block named an `#Unknown` ARM. There is none, and never was in
|
|
@@ -992,12 +1041,12 @@ service : {
|
|
|
992
1041
|
/// Derived from records, never probed: a canister_status call would trap for exactly the
|
|
993
1042
|
/// canisters we are not the controller of, i.e. the sovereign ones this read exists to identify.
|
|
994
1043
|
getCustodyMode: (canisterId: principal) -> (Result_11) query;
|
|
995
|
-
/// Cycles-health probe — slim, cycles-only shape; the money fields moved to the
|
|
996
|
-
/// getCycleReserveStatus.
|
|
1044
|
+
/// Cycles-health probe — slim, cycles-only shape; the money fields moved to the biller's
|
|
1045
|
+
/// getCycleReserveStatus. scripts/audit-chain/health-alert.mjs reads it in its default cycles mode.
|
|
997
1046
|
///
|
|
998
1047
|
/// PUBLIC: whether this registry can still afford to spawn is a fact every prospective owner
|
|
999
|
-
/// depends on and none of them can otherwise observe. Cycles only, by construction —
|
|
1000
|
-
/// keeps the money on the
|
|
1048
|
+
/// depends on and none of them can otherwise observe. Cycles only, by construction — money is the biller's, cycles are the registry's
|
|
1049
|
+
/// keeps the money on the biller, so there is no balance here to withhold.
|
|
1001
1050
|
getCycleReserveStatus: () ->
|
|
1002
1051
|
(record {
|
|
1003
1052
|
cycleBalance: nat;
|
|
@@ -1007,11 +1056,11 @@ service : {
|
|
|
1007
1056
|
/// fact (its assignment is in the hash-chained audit log). null = spawned before numbering
|
|
1008
1057
|
/// existed, or by another registry.
|
|
1009
1058
|
///
|
|
1010
|
-
/// ⟨0.16.0,
|
|
1059
|
+
/// ⟨0.16.0, the vocabulary ruling of 2026-08-17⟩ RENAMED from `sysEngramNumberOf`. The `sys` prefix names
|
|
1011
1060
|
/// the CALLER TIER a method was built for, and this one was never gated — it is a bare public
|
|
1012
1061
|
/// query, as the line above says. A prefix that reads as an authorization claim while carrying
|
|
1013
1062
|
/// none is worse than no prefix: it invites a reader to assume a gate that does not exist, and
|
|
1014
|
-
///
|
|
1063
|
+
/// a disclosure sweep grepping `sys*` would have counted this as tiered surface it is not.
|
|
1015
1064
|
///
|
|
1016
1065
|
/// PUBLIC: the spawn ordinal is a permanent, dual-recorded fact about an engram that its owner
|
|
1017
1066
|
/// publishes by existing — engram #7 is #7 to everyone. It identifies a canister, never a person.
|
|
@@ -1025,7 +1074,7 @@ service : {
|
|
|
1025
1074
|
/// ⟨2026-10-13⟩ The engram no longer serves `getEngramNumber` at all: its copy of the number went
|
|
1026
1075
|
/// with the genesis seed, so this is the one read of an engram's number.
|
|
1027
1076
|
getEngramNumberOf: (canisterId: principal) -> (opt nat) query;
|
|
1028
|
-
/// ⟨2026-10-01, the owner's ruling of that day
|
|
1077
|
+
/// ⟨2026-10-01, the owner's ruling of that day⟩ What a lasting key opened through a parent:
|
|
1029
1078
|
/// the engram, the engram it was opened from, and the cut-off's time if there is one. GATED:
|
|
1030
1079
|
/// readable by the key itself (an agent asking about its own), the owner of the engram it was
|
|
1031
1080
|
/// opened from (whose console shows it), an admin or an audit viewer. Anyone else is REFUSED — the
|
|
@@ -1036,7 +1085,8 @@ service : {
|
|
|
1036
1085
|
/// The i-th 1 MiB slice of the attested engram wasm (0-indexed). The caller reassembles all
|
|
1037
1086
|
/// chunks in order and MUST verify sha256(reassembled) == getEngramWasmHash before installing —
|
|
1038
1087
|
/// the hash is the attestation; the bytes are a convenience. Out-of-range index → empty blob.
|
|
1039
|
-
/// PUBLIC: ⟨0.16.0,
|
|
1088
|
+
/// PUBLIC: ⟨0.16.0, the honesty rule: no fabricated empties⟩ An out-of-range index is `#NotFound`,
|
|
1089
|
+
/// not an empty blob.
|
|
1040
1090
|
///
|
|
1041
1091
|
/// The empty blob was indistinguishable from a legitimately empty chunk AND from "no wasm is
|
|
1042
1092
|
/// staged at all" — and this is the surface a verifier walks to reassemble a template and check
|
|
@@ -1049,13 +1099,13 @@ service : {
|
|
|
1049
1099
|
/// #Security — the registry pays for the install on every running engram it can reach, any size;
|
|
1050
1100
|
/// #Feature — the registry pays for no install, and each engram runs it on its own compute. (Was:
|
|
1051
1101
|
/// "pair it with getRentStatus … #Feature funds metered ones" — rent no longer enters it.)
|
|
1052
|
-
/// PUBLIC: ⟨0.16.0
|
|
1102
|
+
/// PUBLIC: ⟨0.16.0⟩ The release class as a VARIANT, not a stringly-typed enum.
|
|
1053
1103
|
///
|
|
1054
1104
|
/// It returned "security" or "feature" as `Text`, so every consumer compared strings and no
|
|
1055
1105
|
/// compiler anywhere could catch a typo or a third class arriving. A variant makes the set closed
|
|
1056
1106
|
/// and the comparison checked — and this value gates whether an upgrade is funded, so a caller
|
|
1057
1107
|
/// that silently fails to match "security" funds nothing and reports no error.
|
|
1058
|
-
/// ⟨CORRECTED 2026-10-26, later — the owner's restart choice
|
|
1108
|
+
/// ⟨CORRECTED 2026-10-26, later — the owner's restart choice of that day: "pay whenever the engram is
|
|
1059
1109
|
/// missing any security release, whatever the latest release is labelled"⟩ "#Feature — the
|
|
1060
1110
|
/// registry pays for no install" no longer holds for every engram: an engram still missing an
|
|
1061
1111
|
/// earlier security release is paid as a security update even while this reads #Feature, because
|
|
@@ -1077,13 +1127,14 @@ service : {
|
|
|
1077
1127
|
/// PUBLIC: the pull path it describes is itself ungated, so a gate here would only stop a caller
|
|
1078
1128
|
/// planning the calls it is already permitted to make.
|
|
1079
1129
|
getEngramWasmInfo: () -> (EngramWasmInfo) query;
|
|
1080
|
-
/// ⟨
|
|
1130
|
+
/// ⟨update-for-read⟩ UPDATE, NOT QUERY, and NOT because of a system call — this body awaits nothing. The
|
|
1081
1131
|
/// update exists so the DENIAL IS RECORDED: `denied()` is a state write, and a query cannot
|
|
1082
1132
|
/// write. Exactly the argument `listEngrams` settled at its own declaration, and the same
|
|
1083
1133
|
/// conclusion: a query here would silently retire the record of who was refused.
|
|
1084
1134
|
///
|
|
1085
|
-
/// So
|
|
1086
|
-
///
|
|
1135
|
+
/// So the update-for-read rule's own claim, that the one-Result-shape rule retired the denial-logging
|
|
1136
|
+
/// motive for update-for-read, does not hold at this site. That rule retired the motive of
|
|
1137
|
+
/// trapping-to-refuse; it did not give queries the ability to
|
|
1087
1138
|
/// write, which is the thing this actually depends on.
|
|
1088
1139
|
getFleetMetrics: () -> (Result_27);
|
|
1089
1140
|
/// PUBLIC: a genesis note that only privileged callers could read would defeat its purpose —
|
|
@@ -1097,11 +1148,12 @@ service : {
|
|
|
1097
1148
|
/// It does NOT date the engram's running code — a re-run fleet push marches `at` forward while
|
|
1098
1149
|
/// nothing changes. Use `changedAt` for that: it is stamped only when code actually changed, and
|
|
1099
1150
|
/// is null for an engram that has never been upgraded since this field shipped.
|
|
1100
|
-
/// ⟨0.16.0,
|
|
1101
|
-
/// fields encode is unchanged — `atNs` is when THIS registry last upgraded
|
|
1102
|
-
/// `changedAtNs` is when its module hash last moved by any hand, so a
|
|
1103
|
-
/// install shows up as a change with no matching upgrade. Renaming here is
|
|
1104
|
-
/// built at the query boundary, and the stable state it reads keeps its own
|
|
1151
|
+
/// ⟨0.16.0, nanosecond times named AtNs⟩ `atNs`/`changedAtNs`: ns timestamps carry the suffix. The
|
|
1152
|
+
/// honesty split the two fields encode is unchanged — `atNs` is when THIS registry last upgraded
|
|
1153
|
+
/// the canister, and `changedAtNs` is when its module hash last moved by any hand, so a
|
|
1154
|
+
/// self-upgrade or a manual install shows up as a change with no matching upgrade. Renaming here is
|
|
1155
|
+
/// free: the record is built at the query boundary, and the stable state it reads keeps its own
|
|
1156
|
+
/// spelling.
|
|
1105
1157
|
/// ⟨CORRECTED 2026-10-02: "by any hand … shows up" is false, and so is "stamped only when code
|
|
1106
1158
|
/// actually changed" above, read without its limit.⟩ `changedAtNs` is written at exactly two
|
|
1107
1159
|
/// places, both right after THIS registry's own successful install on the engram
|
|
@@ -1140,12 +1192,12 @@ service : {
|
|
|
1140
1192
|
/// so a caller can hold a reservation with no engram. Seeing it here is what tells them to retry
|
|
1141
1193
|
/// provision rather than reserve again.
|
|
1142
1194
|
getMyReservation: () -> (opt ReservationView) query;
|
|
1143
|
-
/// CALLER: the app's restart sheet, for the owner (
|
|
1195
|
+
/// 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
|
|
1144
1196
|
/// restart, when the next restart is allowed, and whether one is open. Refused loudly to anyone
|
|
1145
|
-
/// with no engram here — never "0 owed" to a caller it cannot answer for (
|
|
1197
|
+
/// with no engram here — never "0 owed" to a caller it cannot answer for (refusal over fabrication).
|
|
1146
1198
|
/// ⟨2026-10-26⟩ `openUntilNs` now reads the open restart's `finishByNs` (`restartsOpen`): when the
|
|
1147
1199
|
/// call or the sweep will have started the engram. Shape unchanged.
|
|
1148
|
-
/// ⟨CORRECTED 2026-10-26, later — the owner's restart choice
|
|
1200
|
+
/// ⟨CORRECTED 2026-10-26, later — the owner's restart choice of that day: "apply the weekly limit only when
|
|
1149
1201
|
/// we lend"⟩ "when the next restart is allowed" now reads "when the registry can next LEND to a
|
|
1150
1202
|
/// restart": `nextRestartAtNs` is only the weekly limit on a loan. A restart on the owner's own
|
|
1151
1203
|
/// compute is allowed now, whatever it says. Field name and shape unchanged.
|
|
@@ -1159,24 +1211,25 @@ service : {
|
|
|
1159
1211
|
/// "nothing was ever opened". A QUERY: counts only, and cheap; its refusal is not in the denial
|
|
1160
1212
|
/// log (`denied` says why a query cannot write).
|
|
1161
1213
|
getOpeningCounts: () -> (Result_25) query;
|
|
1162
|
-
/// Where an engram was opened from ⟨2026-10-26, the owner's lineage ruling
|
|
1214
|
+
/// Where an engram was opened from ⟨2026-10-26, the owner's lineage ruling: "a child reads its own
|
|
1163
1215
|
/// parent by its canister id"⟩: the engram, the engram it was opened from, and the cut-off's time if
|
|
1164
1216
|
/// there is one. Closes "a handed-on child cannot read its own parent" — `getEngramOpenedThrough` is
|
|
1165
1217
|
/// keyed by the lasting key that OPENED the engram, which a new owner does not hold.
|
|
1166
1218
|
///
|
|
1167
1219
|
/// CALLER: the engram's CURRENT owner, the current owner of the engram it was opened from, or this
|
|
1168
|
-
/// registry's admin and audit viewers (
|
|
1220
|
+
/// registry's admin and audit viewers (the surface budget: every method names its caller). Reuses `parentOf`; no new state. The two owners are
|
|
1169
1221
|
/// answered first; anyone else goes through the registry's combinator (`#adminOrViewer`), which
|
|
1170
1222
|
/// refuses every other caller in the same words whether or not the id is an engram, so a refusal
|
|
1171
1223
|
/// tells a stranger nothing. A QUERY, so the refusal is not written to the denial log (`denied`
|
|
1172
1224
|
/// says why a query cannot write).
|
|
1173
1225
|
/// `#NotFound` only to a permitted reader: a first engram has no parent (a true answer), and an id
|
|
1174
|
-
/// this registry never opened is said to be one, not passed off as a first engram (
|
|
1175
|
-
///
|
|
1226
|
+
/// this registry never opened is said to be one, not passed off as a first engram (refusal over fabrication).
|
|
1227
|
+
/// The owner's lineage rulings of 2026-10-26 keep `listChildrenOf` unchanged and the change-of-owner
|
|
1228
|
+
/// gate unchanged.
|
|
1176
1229
|
getParentOf: (child: principal) -> (Result_24) query;
|
|
1177
|
-
/// PUBLIC: CALLER: the app, the owner kit and anyone checking an engram's record (
|
|
1230
|
+
/// PUBLIC: CALLER: the app, the owner kit and anyone checking an engram's record (the surface budget: every method names its caller). When this
|
|
1178
1231
|
/// registry last REINSTALLED the engram on its own id after the network erased it (`recoverMyEngram`),
|
|
1179
|
-
/// or null — never recovered. ⟨2026-11-04
|
|
1232
|
+
/// or null — never recovered. ⟨2026-11-04⟩ Public for `getAbandonedAtNs`'s reason: a
|
|
1180
1233
|
/// record that restarted is a fact about the record that a stranger checking it needs, and the same date
|
|
1181
1234
|
/// is certified in the engram's anchor leaf (`recoveredAtNs`, with its `era`).
|
|
1182
1235
|
/// ⟨2026-11-05, beside the above⟩ Set when the reinstall BEGINS — the old record's anchors are set aside in
|
|
@@ -1195,7 +1248,8 @@ service : {
|
|
|
1195
1248
|
/// weekly. Anyone else is REFUSED by name with their class — never zeros. A QUERY: its cost grows
|
|
1196
1249
|
/// with the agents and engrams it walks (one pass over each), so a reader asks weekly, not hourly.
|
|
1197
1250
|
getReferralCounts: (exclude: vec principal) -> (Result_23) query;
|
|
1198
|
-
/// ⟨2026-11-02, the owner's rulings
|
|
1251
|
+
/// ⟨2026-11-02, the owner's rulings that one combined health read replaces separate status
|
|
1252
|
+
/// questions, and "go ahead with your noticing failures changes"⟩ THE
|
|
1199
1253
|
/// REGISTRY'S HEALTH IN ONE READ: its cycle reserve, its roster, its anchoring counts — the same
|
|
1200
1254
|
/// answers `getCycleReserveStatus`, `getAdminRoles` and `getAnchorStats` give, which stay served
|
|
1201
1255
|
/// unchanged for everyone who reads them one at a time — and the stamps of its clock, which wakes only
|
|
@@ -1204,7 +1258,7 @@ service : {
|
|
|
1204
1258
|
/// means, and why every field is `opt` and always filled.
|
|
1205
1259
|
///
|
|
1206
1260
|
/// CALLER: the deployment's monitor, once an hour, under the audit-viewer grant its daily count-of-use
|
|
1207
|
-
/// reading already holds (
|
|
1261
|
+
/// reading already holds (the surface budget: every method names its caller). Also the admin.
|
|
1208
1262
|
///
|
|
1209
1263
|
/// GATED, LIKE THE COUNT-OF-USE READS THAT MONITOR MAKES (`getOpeningCounts`): the admin or an audit
|
|
1210
1264
|
/// viewer; anyone else is REFUSED by name — never an empty or zero reading. A QUERY: its refusal is
|
|
@@ -1212,12 +1266,12 @@ service : {
|
|
|
1212
1266
|
/// saves the monitor and this registry two calls an hour each.
|
|
1213
1267
|
getRegistryHealth: () -> (Result_22) query;
|
|
1214
1268
|
/// PUBLIC: the biller identity is an operational fact a
|
|
1215
|
-
/// payer's
|
|
1269
|
+
/// payer's biller must verify BEFORE taking money (paying into a biller the registry does not
|
|
1216
1270
|
/// recognize as biller would collect funds it cannot convert into credit).
|
|
1217
1271
|
getRentBiller: () -> (opt principal) query;
|
|
1218
1272
|
/// Public transparency: is the gate armed, and which identity issuers are exempt?
|
|
1219
|
-
/// ⟨0.16.0
|
|
1220
|
-
/// without adding a method: `setInviteIssuer` could write a principal that nothing could read
|
|
1273
|
+
/// ⟨0.16.0⟩ Gains `inviteIssuer`, closing the setter-without-a-getter gap the August 2026 interface
|
|
1274
|
+
/// audit found, without adding a method: `setInviteIssuer` could write a principal that nothing could read
|
|
1221
1275
|
/// back, so "who may mint reserve invites" was unanswerable from outside.
|
|
1222
1276
|
///
|
|
1223
1277
|
/// It serves the EFFECTIVE issuer, not the raw `?Principal`. The stored value is null until
|
|
@@ -1230,23 +1284,23 @@ service : {
|
|
|
1230
1284
|
/// stranger can sign up at all. An admission rule only the admitted can read is not a rule a
|
|
1231
1285
|
/// prospective user can act on.
|
|
1232
1286
|
getReserveGateConfig: () -> (ReserveGateConfig) query;
|
|
1233
|
-
/// PUBLIC: CALLER: the status page (
|
|
1287
|
+
/// PUBLIC: CALLER: the status page (the surface budget: every method names its caller). What the registry has lent to restart stopped engrams
|
|
1234
1288
|
/// — lent, repaid, written off, outstanding — and what engrams gave back of the compute a paid
|
|
1235
1289
|
/// security update advanced them (returned, written off). Ungated, because a subsidy we would not
|
|
1236
1290
|
/// publish is one we should not spend. `getUpgradeSubsidyTotal` stays the gross figure.
|
|
1237
1291
|
/// ⟨2026-10-26, the owner's ruling "write it off, but accounting should be exact"⟩ Two exact
|
|
1238
1292
|
/// identities hold between any two messages: lent = repaid + writtenOff + outstanding, and
|
|
1239
1293
|
/// advancePaid = advanceReturned + advanceWrittenOff + advanceOutstanding.
|
|
1240
|
-
/// ⟨2026-10-26, later — the owner's restart choice
|
|
1294
|
+
/// ⟨2026-10-26, later — the owner's restart choice of that day: "add the release name to each write-off
|
|
1241
1295
|
/// record. This needs no new storage."⟩ These totals are fleet-wide. PER RELEASE, read the audit
|
|
1242
1296
|
/// chain: every line that moves an advance names the release it was paid for, `template=<module
|
|
1243
1297
|
/// hash>` (and `version=` when the release history names one) — `upgrade.topUp` (paid, `added=`),
|
|
1244
1298
|
/// `upgrade.advance.returned` (`returned=`, `writtenOff=`) and `upgrade.advance.writtenOff`
|
|
1245
|
-
/// (`writtenOff=`, including the 90-day write-off of an advance left outstanding, restart choice
|
|
1299
|
+
/// (`writtenOff=`, including the 90-day write-off of an advance left outstanding, per the owner's restart choice).
|
|
1246
1300
|
/// Summed by `template=`, they give each release's paid, returned and written-off figures exactly;
|
|
1247
1301
|
/// what is still out per release is paid − returned − written off. Restart-loan lines are not per
|
|
1248
1302
|
/// release (a loan pays for no release).
|
|
1249
|
-
/// ⟨CORRECTED 2026-10-26, later —
|
|
1303
|
+
/// ⟨CORRECTED 2026-10-26, later — a review fix⟩ "exactly" holds only over a
|
|
1250
1304
|
/// COMPLETE copy of the audit chain. The registry keeps the most recent 10,000 audit entries
|
|
1251
1305
|
/// (AuditLog's `MAX_ENTRIES`; on overflow it drops back to 9,000, oldest first), and a give-back or
|
|
1252
1306
|
/// a 90-day write-off can land long after its `upgrade.topUp` line was dropped. A per-release sum
|
|
@@ -1273,7 +1327,7 @@ service : {
|
|
|
1273
1327
|
/// watch is how often we reach for the class that skips the wait. A gated count would be a check
|
|
1274
1328
|
/// on us that only we can read.
|
|
1275
1329
|
getSecurityReleaseCount: () -> (nat) query;
|
|
1276
|
-
/// ⟨2026-10-01, the owner's ruling of that day
|
|
1330
|
+
/// ⟨2026-10-01, the owner's ruling of that day⟩ Cumulative cycles accepted at the sponsored
|
|
1277
1331
|
/// door (`sysOpenChild`) and forwarded into engrams opened through another — cycles the calling
|
|
1278
1332
|
/// engrams attached, never the registry's own. Kept apart from the grant counter
|
|
1279
1333
|
/// (`totalCyclesAllocated`) so neither figure is inflated by the other.
|
|
@@ -1289,7 +1343,7 @@ service : {
|
|
|
1289
1343
|
/// its counterparty cannot be checked by anyone. A canister id is not a secret; withholding it
|
|
1290
1344
|
/// would leave a verifier holding an anchor with nothing to anchor it to.
|
|
1291
1345
|
getTreasuryAnchorId: () -> (opt principal) query;
|
|
1292
|
-
/// ⟨0.16.0,
|
|
1346
|
+
/// ⟨0.16.0, the honesty rule against fabricated answers⟩ `null` MEANS NEVER CHOSE. It used to mean `#AutoUpdate`.
|
|
1293
1347
|
///
|
|
1294
1348
|
/// Returning the shipped default for a caller who has never expressed a preference is a
|
|
1295
1349
|
/// fabricated CONSENT: the registry answered "this owner opted into automatic upgrades" when the
|
|
@@ -1322,7 +1376,8 @@ service : {
|
|
|
1322
1376
|
/// security-update funding: the registry pays only for security updates on running engrams (was:
|
|
1323
1377
|
/// "the meter on the never-gated pull path"; the pull is still never refused, and a feature update
|
|
1324
1378
|
/// it installs is not paid for).
|
|
1325
|
-
/// ⟨CORRECTED 2026-10-26, later — the owner's restart choice
|
|
1379
|
+
/// ⟨CORRECTED 2026-10-26, later — the owner's restart choice on paying for security updates⟩
|
|
1380
|
+
/// "a feature update it installs is
|
|
1326
1381
|
/// not paid for" now excepts an engram still missing an earlier security release: that install is
|
|
1327
1382
|
/// paid as a security update and counted here (UpgradeFunding.effectiveClass).
|
|
1328
1383
|
///
|
|
@@ -1361,7 +1416,7 @@ service : {
|
|
|
1361
1416
|
/// PUBLIC: this IS the verification surface, and a verification surface nobody can call verifies
|
|
1362
1417
|
/// nothing. Free and ungated for the same reason.
|
|
1363
1418
|
isOfficialEngramWasm: (hash: text) -> (bool) query;
|
|
1364
|
-
/// "Is this a registered, `#Active` engram?" — no owner argument, only a Bool. The
|
|
1419
|
+
/// "Is this a registered, `#Active` engram?" — no owner argument, only a Bool. The biller uses
|
|
1365
1420
|
/// it to authorize an engram funding its OWN cycles: on that path the caller IS the engram
|
|
1366
1421
|
/// canister, and this confirms it is a live one.
|
|
1367
1422
|
///
|
|
@@ -1377,7 +1432,8 @@ service : {
|
|
|
1377
1432
|
listAgentEngrams: (agent: principal) -> (Result_18) query;
|
|
1378
1433
|
/// Contradictory submissions, oldest-first. Empty is the normal case. Never trimmed.
|
|
1379
1434
|
///
|
|
1380
|
-
/// ⟨0.16.0,
|
|
1435
|
+
/// ⟨0.16.0, every list returns one page shape — PAGED 2026-08-18⟩
|
|
1436
|
+
/// This returned the WHOLE list, and the list is one an engram
|
|
1381
1437
|
/// can grow itself: `sysAnchorHead` appends a conflict on every contradictory submission and the
|
|
1382
1438
|
/// policy is deliberately never-evict. An uncapped reply over a caller-growable list eventually
|
|
1383
1439
|
/// exceeds the response limit, and an oversized Candid reply does not truncate — it fails to
|
|
@@ -1389,8 +1445,8 @@ service : {
|
|
|
1389
1445
|
/// ⚠ THE WRITE SIDE IS STILL UNBOUNDED and is NOT fixed here. An engram can append to its own
|
|
1390
1446
|
/// conflict list without limit, which is unbounded state on a shared canister paid for by the
|
|
1391
1447
|
/// registry's cycles. Capping it means deciding what to drop from an evidence store whose whole
|
|
1392
|
-
/// promise is that nothing is dropped — a retention ruling, not a shape fix.
|
|
1393
|
-
///
|
|
1448
|
+
/// promise is that nothing is dropped — a retention ruling, not a shape fix. Left open rather
|
|
1449
|
+
/// than decided here.
|
|
1394
1450
|
/// ⟨CORRECTED 2026-09-28 — the paragraph above is no longer true: the owner ruled "never delete;
|
|
1395
1451
|
/// cap submissions; publish the refusal count". Nothing is dropped; the WRITE side is now bounded
|
|
1396
1452
|
/// at `AnchorConflicts.MAX_CONFLICTS_PER_ENGRAM` rows per engram, `sysAnchorHead` refuses further
|
|
@@ -1438,13 +1494,14 @@ service : {
|
|
|
1438
1494
|
/// anything. A cap that is part of the ratified design is not the unbounded growth paging exists
|
|
1439
1495
|
/// for. WHAT WOULD MAKE THIS WRONG: the ring outgrowing one reply, or rows withheld per caller —
|
|
1440
1496
|
/// then it pages, and that is a break.
|
|
1441
|
-
/// ⟨2026-11-04, the owner's ruling
|
|
1497
|
+
/// ⟨2026-11-04, the owner's old-record ruling⟩ EVERY ERA, oldest first. An engram the registry
|
|
1442
1498
|
/// recovered after the network erased it has more than one record: each anchor carries `era` (0 = its
|
|
1443
1499
|
/// first record, k = after its k-th recover), the earlier eras' anchors as they stood when each was set
|
|
1444
1500
|
/// aside, then the current era's. Nothing is withheld or deleted. `disputed` is read against the
|
|
1445
1501
|
/// contradictions recorded during the anchor's own era.
|
|
1446
1502
|
listAnchors: (canisterId: principal) -> (vec AnchorView) query;
|
|
1447
|
-
/// ⟨0.16.0,
|
|
1503
|
+
/// ⟨0.16.0, refusals are values; a list method returns a page⟩ RENAMED from `readAuditLog`, and the
|
|
1504
|
+
/// refusal is now a VALUE.
|
|
1448
1505
|
///
|
|
1449
1506
|
/// It refused by `Debug.trap`, which was the right call when the alternative was a fabricated
|
|
1450
1507
|
/// answer — and the fabrication it replaced is worth restating, because it is the sharpest one
|
|
@@ -1461,7 +1518,7 @@ service : {
|
|
|
1461
1518
|
/// The inline record dies for a `Page`: `earliestId` was redundant with the ring's own paging,
|
|
1462
1519
|
/// and `size`/`headHash` are `getAuditHead`'s answer, published free to everyone.
|
|
1463
1520
|
///
|
|
1464
|
-
/// ⟨2026-10-15, the owner's ruling
|
|
1521
|
+
/// ⟨2026-10-15, the owner's ruling of 2026-10-14 on the chained record⟩ The reply is the shared `Wire.RecordPage`,
|
|
1465
1522
|
/// the shape every chain canister's record read now serves, so one checker reads all of them. A
|
|
1466
1523
|
/// viewer sees every entry, so `sealed` is always empty here; what the page adds is `ringFloor`
|
|
1467
1524
|
/// (where the ring starts — a `start` below it begins at it) and `hashFirstFrom` (where this
|
|
@@ -1471,7 +1528,8 @@ service : {
|
|
|
1471
1528
|
/// for strangers were ruled for the engram's record, and the status console decides a signed-in
|
|
1472
1529
|
/// visitor's tier by whether this read refuses.
|
|
1473
1530
|
listAuditEntries: (start: nat, limit: nat) -> (Result_19) query;
|
|
1474
|
-
/// ⟨0.16.0,
|
|
1531
|
+
/// ⟨0.16.0, same concept, same name across canisters⟩
|
|
1532
|
+
/// RENAMED from `getMetricsViewers` — the viewer triple unifies on "audit viewer"
|
|
1475
1533
|
/// across every canister, because a roster that grants audit reads should not be named after
|
|
1476
1534
|
/// metrics on one canister and audit on another.
|
|
1477
1535
|
///
|
|
@@ -1481,16 +1539,16 @@ service : {
|
|
|
1481
1539
|
listAuditViewers: () -> (Result_18) query;
|
|
1482
1540
|
/// PUBLIC: the release history, paged.
|
|
1483
1541
|
///
|
|
1484
|
-
/// ⟨0.16.0,
|
|
1485
|
-
/// call with no way to say it had been truncated — and a list that cannot
|
|
1486
|
-
/// looks complete at exactly the size where it stops being so.
|
|
1542
|
+
/// ⟨0.16.0, a list method returns a page⟩ A `Page`, not a bare vec. The old shape returned the
|
|
1543
|
+
/// WHOLE changelog on every call with no way to say it had been truncated — and a list that cannot
|
|
1544
|
+
/// say "there is more" looks complete at exactly the size where it stops being so.
|
|
1487
1545
|
listChangelogEntries: (start: nat, limit: nat) -> (Page_4) query;
|
|
1488
|
-
/// ⟨2026-10-01, the owner's ruling of that day
|
|
1546
|
+
/// ⟨2026-10-01, the owner's ruling of that day⟩ The engrams opened through `engram`, each with
|
|
1489
1547
|
/// its owner now and its cut-off time if any. GATED: readable by `engram`'s owner, an admin or an
|
|
1490
1548
|
/// audit viewer. The link says who works for whom, so it is not public (unlike the predecessor
|
|
1491
1549
|
/// chain, which exists to be walked by a stranger).
|
|
1492
1550
|
///
|
|
1493
|
-
/// REFUSED LOUDLY, never `[]`, to anyone else (
|
|
1551
|
+
/// REFUSED LOUDLY, never `[]`, to anyone else (refusal over fabrication): an empty list handed to a caller who
|
|
1494
1552
|
/// merely lacks a grant would be a claim about another owner's engram. A QUERY, so the refusal is
|
|
1495
1553
|
/// not in the denial log (`denied` says why a query cannot write).
|
|
1496
1554
|
///
|
|
@@ -1509,7 +1567,7 @@ service : {
|
|
|
1509
1567
|
/// CALLERS: the admin, and the audit viewers — the reader the deployment runs for this purpose
|
|
1510
1568
|
/// holds a viewer grant and calls this once a day. Anyone else is REFUSED by name, with their
|
|
1511
1569
|
/// class (the anonymous principal, an engram, the template key, an engram's owner, a stranger) —
|
|
1512
|
-
/// never an empty page, which is what a lost history would also look like (
|
|
1570
|
+
/// never an empty page, which is what a lost history would also look like (refusal over fabrication).
|
|
1513
1571
|
///
|
|
1514
1572
|
/// ARGUMENTS. `sinceDay`: any instant, floored to its UTC day; a row is served when the LATEST of
|
|
1515
1573
|
/// its start, its ending, its engram's abandonment and any reset since it started is on or after
|
|
@@ -1523,12 +1581,13 @@ service : {
|
|
|
1523
1581
|
/// The reply is a page whose `total` is every engagement ever recorded here. Each row's fields
|
|
1524
1582
|
/// are described at `Funnel.EngagementRow`; the walk and its cost at `Funnel.engagementRows`.
|
|
1525
1583
|
///
|
|
1526
|
-
/// ⟨
|
|
1584
|
+
/// ⟨update-for-read⟩ An UPDATE, not a query, so a refused attempt is RECORDED: `denied()` is a state write,
|
|
1527
1585
|
/// and a query cannot write (the reason `listEngrams` is an update). This is the most sensitive of
|
|
1528
1586
|
/// the three reads — one row per engagement — so who was turned away is worth a record.
|
|
1529
1587
|
listEngagementRows: (sinceDay: int, start: nat, limit: nat, companyList:
|
|
1530
1588
|
vec principal) -> (Result_15);
|
|
1531
|
-
/// ⟨0.16.0,
|
|
1589
|
+
/// ⟨0.16.0, one Result shape for every gated method⟩
|
|
1590
|
+
/// THE `authorized : ?Bool` FLAG IS GONE, AND SO IS EVERYTHING BUILT AROUND IT.
|
|
1532
1591
|
///
|
|
1533
1592
|
/// The flag was the most carefully-argued compromise in this canister, and every word of that
|
|
1534
1593
|
/// argument rested on ONE premise: this method could not refuse. It is an UPDATE because
|
|
@@ -1542,22 +1601,22 @@ service : {
|
|
|
1542
1601
|
/// There is no masked payload left to check a flag against.
|
|
1543
1602
|
///
|
|
1544
1603
|
/// What goes with it: the three-state ?true/?false/null protocol and the "a reader that collapses
|
|
1545
|
-
/// null to false fabricates a refusal" rule; the
|
|
1604
|
+
/// null to false fabricates a refusal" rule; the interface-evolution rule's opt-from-birth ceremony this field was
|
|
1546
1605
|
/// the motivating example for; the fleet collector's dual-IDL split; and the cross-check against
|
|
1547
|
-
/// the public engram count that storage
|
|
1606
|
+
/// the public engram count that an off-chain storage sweep used as a discriminator. All of it was
|
|
1548
1607
|
/// scaffolding around "we cannot say no in a value", and none of it is load-bearing once we can.
|
|
1549
1608
|
///
|
|
1550
|
-
/// ⚠
|
|
1609
|
+
/// ⚠ A CONFLICT WITH THE 0.16.0 INTERFACE PLAN, resolved at the site. That plan says "query again" — reasoning that the
|
|
1551
1610
|
/// only thing forcing an update was the masking problem. It was not: the update exists so the
|
|
1552
1611
|
/// DENIAL IS RECORDED, and a query cannot write, so making this a query would silently retire
|
|
1553
1612
|
/// the audit trail the original comment correctly called worth more than the false answer.
|
|
1554
1613
|
/// Staying an update keeps both — the legible refusal AND the record of who was refused — which
|
|
1555
1614
|
/// is strictly better than either option the old design had to choose between.
|
|
1556
1615
|
///
|
|
1557
|
-
/// ⟨
|
|
1558
|
-
/// written and correct; what it lacked was the glyph a gate can see. Its case is the one
|
|
1559
|
-
/// own text had to be corrected for — the forcing call is not a system API at all, it is
|
|
1560
|
-
/// `denied()`, a state write.
|
|
1616
|
+
/// ⟨update-for-read⟩ MARKER ADDED 2026-08-23, reasoning above UNCHANGED. This method's reason was already
|
|
1617
|
+
/// written and correct; what it lacked was the glyph a gate can see. Its case is the one the
|
|
1618
|
+
/// update-for-read rule's own text had to be corrected for — the forcing call is not a system API at all, it is
|
|
1619
|
+
/// `denied()`, a state write. (The deploying side's update-for-read check reads this marker.)
|
|
1561
1620
|
listEngrams: (offset: nat, limit: nat) -> (Result_14);
|
|
1562
1621
|
/// ⟨2026-09-28, owner decision: an agent may read its own record⟩ The caller's OWN dispute
|
|
1563
1622
|
/// statements, oldest first, verbatim. Keyed by `msg.caller`, so it cannot be pointed at anyone
|
|
@@ -1593,11 +1652,12 @@ service : {
|
|
|
1593
1652
|
/// fresh start. Abandon-and-respawn is reputation laundering performed by our own feature unless
|
|
1594
1653
|
/// a stranger can walk this, so the walk has to be answerable to a stranger.
|
|
1595
1654
|
///
|
|
1596
|
-
/// ⟨2026-09-30, the owner's
|
|
1597
|
-
/// predecessor (`ControlHandover.predecessorsFor`), so the lineage is
|
|
1598
|
-
/// every engram this one named, then every engram those named, each
|
|
1599
|
-
/// predecessor per engram reads exactly as before. The walk is
|
|
1600
|
-
/// test/control-handover.test.mo runs it; the `seen` rule and the
|
|
1655
|
+
/// ⟨2026-09-30, the owner's ruling that an abandoned engram stays in its owner's history⟩ An engram
|
|
1656
|
+
/// can now name more than one predecessor (`ControlHandover.predecessorsFor`), so the lineage is
|
|
1657
|
+
/// walked a generation at a time: every engram this one named, then every engram those named, each
|
|
1658
|
+
/// listed once. A chain with one predecessor per engram reads exactly as before. The walk is
|
|
1659
|
+
/// `ControlHandover.lineage`, where test/control-handover.test.mo runs it; the `seen` rule and the
|
|
1660
|
+
/// length cap above still hold.
|
|
1601
1661
|
listPredecessors: (canisterId: principal) -> (vec principal) query;
|
|
1602
1662
|
/// ⟨0.16.0⟩ The refusal becomes a value.
|
|
1603
1663
|
///
|
|
@@ -1612,7 +1672,8 @@ service : {
|
|
|
1612
1672
|
/// The PROBED twin of `getCustodyMode`: same question, asked of the IC rather than of our
|
|
1613
1673
|
/// records — hence the `probe` verb rather than a second noun.
|
|
1614
1674
|
///
|
|
1615
|
-
/// ⟨0.16.0,
|
|
1675
|
+
/// ⟨0.16.0, same concept, same name across canisters⟩
|
|
1676
|
+
/// RENAMED from `getSovereigntyStatus`. Both methods answer the same type,
|
|
1616
1677
|
/// `Result<CustodyMode>`, so the old name introduced a SovereigntyStatus noun that no type in
|
|
1617
1678
|
/// this interface has. A reader comparing the two names had to open both to learn they were
|
|
1618
1679
|
/// one question; comparing the stems now shows it. What differs is HOW the answer is obtained
|
|
@@ -1620,7 +1681,7 @@ service : {
|
|
|
1620
1681
|
/// for. The arity difference is real and stays: `getCustodyMode` answers about any canister,
|
|
1621
1682
|
/// this one about the CALLER's own engram.
|
|
1622
1683
|
///
|
|
1623
|
-
/// ⟨0.16.0
|
|
1684
|
+
/// ⟨0.16.0⟩ Both arms of the old `#Unknown` move into the envelope, and they are DIFFERENT
|
|
1624
1685
|
/// facts that the single tag was flattening: "you have no engram here" is #NotFound, while
|
|
1625
1686
|
/// "canister_status did not answer" is #Unavailable and means retry.
|
|
1626
1687
|
///
|
|
@@ -1630,7 +1691,7 @@ service : {
|
|
|
1630
1691
|
/// a controller. Reporting #Sovereign there would tell an owner they had achieved sovereignty
|
|
1631
1692
|
/// they do not have.
|
|
1632
1693
|
///
|
|
1633
|
-
/// ⟨
|
|
1694
|
+
/// ⟨update-for-read⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
|
|
1634
1695
|
/// `ic.canister_status`. That is also the whole point of the `probe` verb — the value is read
|
|
1635
1696
|
/// LIVE from the management canister rather than from a stored transition record, so a query
|
|
1636
1697
|
/// could not produce it at all, not merely more cheaply.
|
|
@@ -1638,13 +1699,14 @@ service : {
|
|
|
1638
1699
|
/// What YOUR OWN engram's compute is, read by the registry — the one read that works while it is
|
|
1639
1700
|
/// frozen.
|
|
1640
1701
|
///
|
|
1641
|
-
/// CALLER: the owner, from the app's status strip, Billing and System pages (
|
|
1642
|
-
/// ⟨2026-10-26, the owner's ruling
|
|
1702
|
+
/// CALLER: the owner, from the app's status strip, Billing and System pages (the surface budget: every method names its caller).
|
|
1703
|
+
/// ⟨2026-10-26, the owner's ruling that we pay nothing for a stopped engram: tell the owner, using
|
|
1704
|
+
/// signals that work while frozen⟩ The
|
|
1643
1705
|
/// registry is a controller, and the network answers a controller canister's status call for a
|
|
1644
|
-
/// frozen engram where it refuses the owner's own (IC0207, the
|
|
1645
|
-
///
|
|
1706
|
+
/// frozen engram where it refuses the owner's own (IC0207, read in the network's source by a study
|
|
1707
|
+
/// of stopped engrams). UPDATE, not query: it awaits the management canister (the `probe` verb, as
|
|
1646
1708
|
/// `probeCustodyMode`).
|
|
1647
|
-
/// ⟨
|
|
1709
|
+
/// ⟨update-for-read⟩ ⟨marker added 2026-10-26; the reason above unchanged⟩ The system call that
|
|
1648
1710
|
/// forces the update is `canister_status` on the management canister: a query cannot make an
|
|
1649
1711
|
/// inter-canister call, so a query could not read the engram's network status at all — and that
|
|
1650
1712
|
/// status is the only signal that still answers while the engram is frozen.
|
|
@@ -1656,17 +1718,18 @@ service : {
|
|
|
1656
1718
|
/// sign-in (the person), the read `probeMyEngramCompute` is for a first engram's owner.
|
|
1657
1719
|
///
|
|
1658
1720
|
/// CALLER: the app's Access page, signed in as the person, for a child row whose own `getOwnerSignIn`
|
|
1659
|
-
/// call is rejected (an erased child answers nothing) — and the owner kit, as the key file (
|
|
1660
|
-
/// ⟨2026-11-04, the owner's ruling
|
|
1661
|
-
/// The person may SEE, not ask and not pay: the ask (`recoverMyEngram`) and the payment (the
|
|
1721
|
+
/// call is rejected (an erased child answers nothing) — and the owner kit, as the key file (the surface budget: every method names its caller).
|
|
1722
|
+
/// ⟨2026-11-04, the owner's ruling — "the registry starts keeping the person's sign-in for them"⟩
|
|
1723
|
+
/// The person may SEE, not ask and not pay: the ask (`recoverMyEngram`) and the payment (the biller's
|
|
1662
1724
|
/// top-up, admitted only from the key file) stay the key file's. Gated to the child's key file
|
|
1663
1725
|
/// (`canisterToOwner`) and its sign-in AS NOTED HERE (`childSignIn`); refused to everyone else — the
|
|
1664
1726
|
/// parent's owner included — with the SAME words whether or not `child` exists or is a child at all
|
|
1665
1727
|
/// (`getEngramOpenedThrough`'s precedent: who works for whom is not disclosed by a refusal). UPDATE, not
|
|
1666
1728
|
/// query, for `probeMyEngramCompute`'s reason (a query cannot call the management canister).
|
|
1667
|
-
/// ⟨
|
|
1668
|
-
/// missing⟩ The system call that forces the update is
|
|
1669
|
-
/// query cannot make an inter-canister call, so it
|
|
1729
|
+
/// ⟨update-for-read⟩ ⟨marker added 2026-11-05, the reason above unchanged — a consumer's
|
|
1730
|
+
/// update-for-read check named it missing⟩ The system call that forces the update is
|
|
1731
|
+
/// `canister_status` on the management canister: a query cannot make an inter-canister call, so it
|
|
1732
|
+
/// could not read an erased child's network status at all.
|
|
1670
1733
|
probeOpenedEngramCompute: (child: principal) -> (Result_10);
|
|
1671
1734
|
/// ⟨0.16.0⟩ `Ok` CARRIES THE PRINCIPAL DIRECTLY, not a one-field record wrapping it.
|
|
1672
1735
|
///
|
|
@@ -1674,10 +1737,11 @@ service : {
|
|
|
1674
1737
|
/// spawn IS the canister it produced. The wrapper cost every caller a field access to reach the
|
|
1675
1738
|
/// only thing the call returns, and invited a second field later that would belong somewhere else.
|
|
1676
1739
|
///
|
|
1677
|
-
/// ⟨2026-10-13, the owner's
|
|
1678
|
-
/// spawned) is retired: the console creates an engram with no
|
|
1679
|
-
/// 2026-09-30), the owner kit never calls this,
|
|
1680
|
-
///
|
|
1740
|
+
/// ⟨2026-10-13, the owner's ruling: no genesis seed, no number copy⟩ `opts.genesis` (an optional
|
|
1741
|
+
/// first file, written as the canister spawned) is retired: the console creates an engram with no
|
|
1742
|
+
/// content (the owner's ruling of 2026-09-30 on the set-up page), the owner kit never calls this,
|
|
1743
|
+
/// and only test harnesses passed one. A caller still sending the field is unaffected — Candid
|
|
1744
|
+
/// ignores a record field the receiver does not declare.
|
|
1681
1745
|
provisionEngram: (opts:
|
|
1682
1746
|
opt record {
|
|
1683
1747
|
invite: opt text;
|
|
@@ -1686,11 +1750,12 @@ service : {
|
|
|
1686
1750
|
/// RECOVER YOUR OWN ERASED ENGRAM — reinstall it on the SAME id, so its wallet and EVM address come back.
|
|
1687
1751
|
///
|
|
1688
1752
|
/// CALLER: the owner, from the app's "Recover my wallet" (a first engram), or an engram's key file through
|
|
1689
|
-
/// the owner kit's `--recover` (an engram an agent opened through another) —
|
|
1690
|
-
/// owner's rulings
|
|
1753
|
+
/// the owner kit's `--recover` (an engram an agent opened through another) — the surface budget: every method names its caller. ⟨2026-11-04, the
|
|
1754
|
+
/// owner's rulings of that day: no engram moves money on its own; an erased engram is reinstalled on
|
|
1755
|
+
/// its id, children included⟩ Recover.mo says what a recover is and
|
|
1691
1756
|
/// what does and does not come back.
|
|
1692
1757
|
///
|
|
1693
|
-
/// THE ORDER: the owner first adds compute to the empty engram through the
|
|
1758
|
+
/// THE ORDER: the owner first adds compute to the empty engram through the biller's existing top-up
|
|
1694
1759
|
/// (each step its own tap; nothing here moves money, lends or funds); then this call reads the network's
|
|
1695
1760
|
/// status of the engram as its controller, refuses by name unless the engram is ERASED (no module) and
|
|
1696
1761
|
/// holds enough compute to install (`UpgradeFunding.noDipBar` — the line plus the install hold plus a
|
|
@@ -1701,13 +1766,13 @@ service : {
|
|
|
1701
1766
|
/// earlier era (the certified leaf says so), and re-sends what a newborn is told: its biller, market and
|
|
1702
1767
|
/// metrics reader, a first fee line and its birth record. The mark is removed once the biller is in
|
|
1703
1768
|
/// place; until then a second call finishes the work and answers `#Ok` with `finished = true`.
|
|
1704
|
-
/// ⟨CHANGED 2026-11-05, the
|
|
1769
|
+
/// ⟨CHANGED 2026-11-05, from the review of the recover-my-wallet build⟩ The old record's anchors are set aside (and
|
|
1705
1770
|
/// `recoveredAtNs` recorded) with the mark, BEFORE the install — the record ended at the erase — and no
|
|
1706
1771
|
/// first fee line is sent (the balance before the install is not a fee). The compute probes'
|
|
1707
1772
|
/// `recoverOpen` says a recover is open. An upgrade that finds a recover's install landed records it first.
|
|
1708
1773
|
///
|
|
1709
|
-
/// Refused, before anything is written: not your engram (`#NotFound`); not active, or ABANDONED (ruling
|
|
1710
|
-
///
|
|
1774
|
+
/// Refused, before anything is written: not your engram (`#NotFound`); not active, or ABANDONED (the owner's ruling
|
|
1775
|
+
/// of 2026-11-04: an abandoned engram is not recovered — withdraw your digital dollars before you abandon an engram);
|
|
1711
1776
|
/// sovereign; a change of owner unfinished; a restart open or
|
|
1712
1777
|
/// a restart/recover call running; an update installing; no template; the status unreadable; NOT ERASED
|
|
1713
1778
|
/// (`#Conflict` — "already recovered at T" when this registry recovered it, and no install); compute
|
|
@@ -1750,13 +1815,17 @@ service : {
|
|
|
1750
1815
|
/// Never run on production engrams (the owner's ruling). On the staging network, as the wasm admin,
|
|
1751
1816
|
/// with the engram's canister id in ENGRAM:
|
|
1752
1817
|
/// icp canister call registry-staging resetEngramMemory "(principal \"$ENGRAM\")" -e ic
|
|
1818
|
+
/// ⟨2026-11-15, beside "Never run on production engrams" above — from an adversarial review⟩ Both are CHECKS now, not
|
|
1819
|
+
/// comments. A build that carries the canonical root refuses the reset before anything is read
|
|
1820
|
+
/// (`MemoryReset.canonicalBuild`), and an engram whose owner chose `#ManualOnly` is refused unless an
|
|
1821
|
+
/// earlier reset already holds it (`MemoryReset.MANUAL_ONLY_REFUSAL`), as `pushUpgrade` refuses it.
|
|
1753
1822
|
resetEngramMemory: (canisterId: principal) -> (Result);
|
|
1754
1823
|
/// Restart YOUR OWN stopped engram.
|
|
1755
1824
|
///
|
|
1756
|
-
/// CALLER: the owner, from the app's restart sheet (
|
|
1825
|
+
/// CALLER: the owner, from the app's restart sheet (the surface budget: every method names its caller). Afterwards the app runs the engram's
|
|
1757
1826
|
/// own `convertEarningsToCycles` as the owner, which pays any loan back FIRST.
|
|
1758
1827
|
///
|
|
1759
|
-
/// ⟨REWRITTEN 2026-10-26, the owner's ruling
|
|
1828
|
+
/// ⟨REWRITTEN 2026-10-26, the owner's ruling of that day on restarts⟩ What it does, in this order: stops the
|
|
1760
1829
|
/// engram; adds compute — the owner's own (already added through `stopMyEngramForRestart` and a
|
|
1761
1830
|
/// top-up from their account), or a loan of what it still lacks to run at its OWN setting (at most
|
|
1762
1831
|
/// 0.25T, only after the biller confirms the wallet holds enough to repay it); installs the waiting
|
|
@@ -1771,19 +1840,21 @@ service : {
|
|
|
1771
1840
|
/// than one loan; a waiting security update that this restart could not cover (it would start old
|
|
1772
1841
|
/// code); an engram opened through another engram that would need a loan; the fleet-wide ceiling;
|
|
1773
1842
|
/// no biller, or a wallet too low to repay. A restart that lent nothing does not spend the week.
|
|
1774
|
-
/// ⟨CORRECTED 2026-10-26, later — the owner's restart choices
|
|
1843
|
+
/// ⟨CORRECTED 2026-10-26, later — the owner's restart choices of that day on lending to children and on
|
|
1844
|
+
/// the weekly limit⟩ The list above is
|
|
1775
1845
|
/// the record of the build before them. Now: "restarted in the last 7 days" and "a loan still owed"
|
|
1776
|
-
/// refuse ONLY a restart that would LEND (
|
|
1777
|
-
/// once the plan knows the loan, and again after every await before the loan is made
|
|
1846
|
+
/// refuse ONLY a restart that would LEND (the owner's restart choice: "apply the weekly limit only when
|
|
1847
|
+
/// we lend") — asked once the plan knows the loan, and again after every await before the loan is made
|
|
1778
1848
|
/// (`RestartLoan.lendGate`); a restart on the owner's own compute is never refused by them and never
|
|
1779
1849
|
/// spends the week, which is taken only in the step that records a loan. "An engram opened through
|
|
1780
|
-
/// another engram that would need a loan" is GONE (
|
|
1850
|
+
/// another engram that would need a loan" is GONE (the owner's restart choice: "lend to children like any
|
|
1851
|
+
/// other engram") —
|
|
1781
1852
|
/// such an engram is lent to under the same ceiling, wallet check and repay-first as any other: the
|
|
1782
1853
|
/// biller reads the engram's OWN wallet by its own id, and the engram's own Convert repays. New: a
|
|
1783
1854
|
/// second call while one is still running for the same engram (`restartCallsRunning`), which is
|
|
1784
1855
|
/// what now keeps two interleaved calls from both lending or both stopping and starting — the week
|
|
1785
1856
|
/// used to double as that guard.
|
|
1786
|
-
/// ⟨2026-11-04, beside the lists above
|
|
1857
|
+
/// ⟨2026-11-04, beside the lists above⟩ Also refused, first after the status
|
|
1787
1858
|
/// read: an ERASED engram (its canister holds no program) — nothing is stopped or lent into it.
|
|
1788
1859
|
restartMyStoppedEngram: () -> (Result_8);
|
|
1789
1860
|
/// Return to managed: user calls AFTER adding registry back as controller
|
|
@@ -1827,11 +1898,11 @@ service : {
|
|
|
1827
1898
|
/// of it — which is exactly the power this note exists to deny.
|
|
1828
1899
|
///
|
|
1829
1900
|
/// ⟨RENAMED 2026-10-02 from `sysSetGenesisPredecessor` — the sys-tier retier ruled 2026-08-24,
|
|
1830
|
-
/// executed under the owner's 2026-10-02 ruling to carry out the
|
|
1831
|
-
/// recommended.⟩ CALLER: this registry's admin, a person, once, after the
|
|
1832
|
-
/// final head is captured. The `sys` prefix names the canister-to-canister
|
|
1833
|
-
/// admin-called method inside it made "a `sys` method has no human caller" false and
|
|
1834
|
-
/// uncheckable. The audit label moves with the name (`setGenesisPredecessor.denied`).
|
|
1901
|
+
/// executed under the owner's 2026-10-02 ruling to carry out the interface decisions reviewed
|
|
1902
|
+
/// before the 0.16.0 cut as recommended.⟩ CALLER: this registry's admin, a person, once, after the
|
|
1903
|
+
/// predecessor chain's final head is captured. The `sys` prefix names the canister-to-canister
|
|
1904
|
+
/// tier, so an admin-called method inside it made "a `sys` method has no human caller" false and
|
|
1905
|
+
/// therefore uncheckable. The audit label moves with the name (`setGenesisPredecessor.denied`).
|
|
1835
1906
|
setGenesisPredecessor: (headHash: blob, size: nat) -> (Result);
|
|
1836
1907
|
/// Set (or clear) the least-privilege invite-mint key (admin-only). Mirrors setWasmAdmin.
|
|
1837
1908
|
setInviteIssuer: (p: opt principal) -> (Result);
|
|
@@ -1870,14 +1941,15 @@ service : {
|
|
|
1870
1941
|
setWasmAdmin: (p: opt principal) -> (Result);
|
|
1871
1942
|
/// Stop YOUR OWN stopped-or-starving engram so you can add compute from your account and restart it.
|
|
1872
1943
|
///
|
|
1873
|
-
/// CALLER: the owner, from the app's "Add compute from my account" when the engram has stopped and
|
|
1874
|
-
/// security update is waiting (
|
|
1875
|
-
///
|
|
1876
|
-
///
|
|
1877
|
-
///
|
|
1878
|
-
///
|
|
1879
|
-
///
|
|
1880
|
-
///
|
|
1944
|
+
/// CALLER: the owner, from the app's "Add compute from my account" when the engram has stopped and
|
|
1945
|
+
/// a security update is waiting (the surface budget: every method names its caller).
|
|
1946
|
+
/// ⟨2026-10-26, the owner's ruling on restarts⟩ Stops the engram so that compute the owner adds
|
|
1947
|
+
/// next cannot wake its old code; the owner then adds compute through the biller's own top-up and
|
|
1948
|
+
/// calls `restartMyStoppedEngram`, which installs the waiting update and starts it. If the owner
|
|
1949
|
+
/// walks away, the sweep finishes it after 30 minutes: install if covered, restore, start. Never
|
|
1950
|
+
/// left stopped. It lends nothing, so it takes no week; it refuses an engram that is not stuck, so
|
|
1951
|
+
/// a healthy engram is never taken offline (a build choice the rulings left open).
|
|
1952
|
+
/// ⟨2026-11-04⟩ It also refuses an ERASED engram (its canister holds no
|
|
1881
1953
|
/// program): there is nothing to restart, and nothing is stopped.
|
|
1882
1954
|
stopMyEngramForRestart: () -> (Result_6);
|
|
1883
1955
|
/// An engram witnesses its own audit head. Callable ONLY by a registered engram — msg.caller is
|
|
@@ -1893,7 +1965,8 @@ service : {
|
|
|
1893
1965
|
/// `AnchorConflicts.MAX_CONFLICTS_PER_ENGRAM` recorded contradictions gets `#Conflict` naming
|
|
1894
1966
|
/// this method, and the refusal is COUNTED in its certified leaf (`refusedConflicts`). The
|
|
1895
1967
|
/// evidence is not lost — the recorded ones stay forever and the count certifies that more came.
|
|
1896
|
-
/// ⟨0.16.0,
|
|
1968
|
+
/// ⟨0.16.0, canister-to-canister methods carry the sys prefix⟩
|
|
1969
|
+
/// RENAMED from `anchorHead` — a mutation wearing a noun, and a `sys` edge that
|
|
1897
1970
|
/// did not say so. It is called canister-to-canister (an engram or the market pushing its head
|
|
1898
1971
|
/// here), never by a person, and the `sys` prefix is what tells a reader scanning the surface
|
|
1899
1972
|
/// which methods are machine-to-machine.
|
|
@@ -1902,15 +1975,15 @@ service : {
|
|
|
1902
1975
|
/// hand-written client IDL type-checks against a method that does not exist.
|
|
1903
1976
|
sysAnchorHead: (head: blob, total: nat) -> (Result);
|
|
1904
1977
|
/// CALLER: an engram, from inside its owner's `convertEarningsToCycles`, once the conversion landed
|
|
1905
|
-
/// (
|
|
1978
|
+
/// (the surface budget: every method names its caller). Attach up to what is owed: the registry accepts no more than the outstanding loan
|
|
1906
1979
|
/// (the network returns the rest) and records it. `#NotFound` when nothing is owed (the loan was
|
|
1907
1980
|
/// written off, or repaid): the engram then clears its own record.
|
|
1908
|
-
/// ⟨CHANGED 2026-10-26, the owner's ruling
|
|
1981
|
+
/// ⟨CHANGED 2026-10-26, the owner's ruling on restarts⟩ REPAY-ONLY. It no longer puts a freezing setting back
|
|
1909
1982
|
/// (the restart restores it before the start) and no longer queues a security push (the restart
|
|
1910
1983
|
/// installs it before the start; the wake watcher covers other wakes). The name and reply are
|
|
1911
1984
|
/// unchanged, so the engram's hand client still matches.
|
|
1912
1985
|
sysCloseRestart: () -> (Result_5);
|
|
1913
|
-
/// ⟨2026-09-29, review
|
|
1986
|
+
/// ⟨2026-09-29, a review: a half-finished change of owner⟩ A SOVEREIGN engram reports that it
|
|
1914
1987
|
/// moved control of its code to `newOwner`, which ends the change of owner this registry marked
|
|
1915
1988
|
/// when it moved its record (`ControlHandover.Pending`). Until this arrives the registry refuses the
|
|
1916
1989
|
/// new owner's control-changing calls on the engram, because it cannot see a sovereign engram's
|
|
@@ -1931,9 +2004,10 @@ service : {
|
|
|
1931
2004
|
sysMeterEngram: (canisterId: principal) -> (Result_4);
|
|
1932
2005
|
/// CALLER: an engram opened through another, from inside its three sign-in writers — `setOwnerSignIn`,
|
|
1933
2006
|
/// `declineSignIn` (the sign-in's own decline) and `acceptSignIn` — BEFORE it writes its own seat
|
|
1934
|
-
/// (
|
|
2007
|
+
/// (the surface budget: every method names its caller). ⟨2026-11-04, the owner's ruling that the registry
|
|
2008
|
+
/// keeps a child's sign-in⟩ The registry keeps the child's seated sign-in
|
|
1935
2009
|
/// (`childSignIn` says why, and why the order is registry-first): `?p` notes `p` as the sign-in, `null`
|
|
1936
|
-
/// notes that none is seated. A record argument, so it can grow by opt fields (
|
|
2010
|
+
/// 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).
|
|
1937
2011
|
/// Refused, with nothing written: a caller this registry did not open through another engram (a first
|
|
1938
2012
|
/// engram has no sign-in; anything else is no engram here), and a sign-in the door would refuse at
|
|
1939
2013
|
/// birth (`ChildDoor.signInRefusal` — the key file itself, the anonymous principal, a canister).
|
|
@@ -1941,7 +2015,7 @@ service : {
|
|
|
1941
2015
|
/// ⟨2026-10-02⟩ An engram tells this registry that its owner reset it.
|
|
1942
2016
|
///
|
|
1943
2017
|
/// CALLER: a registered engram, about itself — `canisterToOwner` membership, checked first
|
|
1944
|
-
/// (
|
|
2018
|
+
/// (the surface budget: every `sys` method names and checks its caller). The engram sends it from its reset
|
|
1945
2019
|
/// path. WHY IT EXISTS: a reset purges the engram's roster, and the endings it sends reach this
|
|
1946
2020
|
/// registry only for agents still active, so a reset after the last agent left reached this
|
|
1947
2021
|
/// registry nowhere and the engram read as kept.
|
|
@@ -1954,7 +2028,7 @@ service : {
|
|
|
1954
2028
|
/// ⟨0.16.0, RULED 2026-08-17, BUILT 2026-08-20⟩ The engram tells this registry that custody moved.
|
|
1955
2029
|
///
|
|
1956
2030
|
/// WHAT IT FIXES: `transferOwnership` lives on the ENGRAM and, until this method existed, told the
|
|
1957
|
-
/// registry nothing. `verifyEngramActiveOwner` — the
|
|
2031
|
+
/// registry nothing. `verifyEngramActiveOwner` — the biller's money gate — therefore kept
|
|
1958
2032
|
/// answering for the ORIGINAL owner, so a new owner could not fund the engram they now own. The
|
|
1959
2033
|
/// old comment above `verifyEngramActiveOwner` called that gap "by design"; it was not, and the
|
|
1960
2034
|
/// 2026-08-17 ruling shipped this seam to close it inside the free-break window.
|
|
@@ -1980,9 +2054,9 @@ service : {
|
|
|
1980
2054
|
/// guard behind. The check below mirrors the spawn guard EXACTLY — active AND not abandoned —
|
|
1981
2055
|
/// because an abandoned engram is not a live claim on its owner's slot.
|
|
1982
2056
|
///
|
|
1983
|
-
/// ⟨2026-09-29, owner ruling
|
|
1984
|
-
///
|
|
1985
|
-
///
|
|
2057
|
+
/// ⟨2026-09-29, the owner's ruling: a change of owner hands over control of the code⟩ THIS METHOD
|
|
2058
|
+
/// NOW MOVES CONTROL TOO, or tells the engram to. It used to move the record and nothing else, so
|
|
2059
|
+
/// the former owner stayed a controller and could still replace the code. Now:
|
|
1986
2060
|
/// · MANAGED (the registry is a controller): the registry sets the controllers to itself and the
|
|
1987
2061
|
/// new owner and answers `#MovedByRegistry`. If that fails, the record is put back and the
|
|
1988
2062
|
/// answer is `#Err` — the engram then does not change owner.
|
|
@@ -1995,13 +2069,31 @@ service : {
|
|
|
1995
2069
|
/// a transfer the engram did not finish, and moves control again (that is the way out `stuck`
|
|
1996
2070
|
/// names). The rules are in `src/shared/ControlHandover.mo`.
|
|
1997
2071
|
sysNotifyOwnershipTransfer: (newOwner: principal) -> (Result_3);
|
|
1998
|
-
/// ⟨2026-
|
|
2072
|
+
/// ⟨2026-11-15, from an adversarial review, ruled the same day: the new owner must accept⟩ AN ENGRAM
|
|
2073
|
+
/// FILES ITS OWNER'S OFFER of a change of owner to `newOwner` (the engram's `transferOwnership`).
|
|
2074
|
+
///
|
|
2075
|
+
/// IT MOVES NOTHING. The record of who owns the engram, control of its code, the predecessor
|
|
2076
|
+
/// links and everything filed under `newOwner`'s key are untouched; `newOwner` is not looked up at
|
|
2077
|
+
/// all, so the answer says nothing about them and no call of theirs answers differently. The row
|
|
2078
|
+
/// is filed by engram (`ownershipOffers`), replaces any earlier offer of the same engram together
|
|
2079
|
+
/// with its acceptance, and ends at `expiresAtNs` or at this registry's own limit
|
|
2080
|
+
/// (`OwnershipOffer.TTL_NS`, 7 days), whichever is sooner.
|
|
2081
|
+
///
|
|
2082
|
+
/// Gated like `sysNotifyOwnershipTransfer`: the caller must BE a registered engram. Refused for
|
|
2083
|
+
/// an engram opened through another (it never changes owner), for an offer to the owner the
|
|
2084
|
+
/// registry already records, and, while a change of owner is unfinished, for an offer to anyone
|
|
2085
|
+
/// but its would-be owner.
|
|
2086
|
+
///
|
|
2087
|
+
/// TRUST: the engram's word is taken for the OFFER only, and an offer binds nobody. The
|
|
2088
|
+
/// acceptance is `acceptEngramOffer`, which only the named principal can make.
|
|
2089
|
+
sysOfferOwnership: (newOwner: principal, expiresAtNs: int) -> (Result);
|
|
2090
|
+
/// ⟨2026-10-01, the owner's ruling of that day: build this now, not at the first paid engagement⟩
|
|
1999
2091
|
/// THE SPONSORED DOOR. An engram opens an engram for one of its agents: the caller is the engram
|
|
2000
2092
|
/// (the engram it is opened from — `parentOf` in code), `ownerKey` is the agent's LASTING key, which
|
|
2001
2093
|
/// owns what is opened, and the cycles the opened engram lives on are the ones the caller ATTACHES.
|
|
2002
2094
|
///
|
|
2003
2095
|
/// CALLER: a registered engram — `canisterToOwner` membership, checked first, exactly as
|
|
2004
|
-
/// `sysRecordAgentEdge` checks it (
|
|
2096
|
+
/// `sysRecordAgentEdge` checks it (the surface budget: every `sys` method names and checks its caller). The
|
|
2005
2097
|
/// engram's own rules (the owner's standing allowance for this agent, its frozen-payments state,
|
|
2006
2098
|
/// its balance) are the engram's to check before it calls; this method checks what only the
|
|
2007
2099
|
/// registry can know.
|
|
@@ -2015,8 +2107,8 @@ service : {
|
|
|
2015
2107
|
/// no canister can withdraw another's cycles. The one honest exception to "returned on every
|
|
2016
2108
|
/// failure": nothing is recorded, and the reply names the canister, its controllers (this
|
|
2017
2109
|
/// registry and the key) and what the key can do with it;
|
|
2018
|
-
/// ⟨CORRECTED 2026-11-02, beside the line above — the owner's ruling
|
|
2019
|
-
///
|
|
2110
|
+
/// ⟨CORRECTED 2026-11-02, beside the line above — the owner's ruling that the registry alone
|
|
2111
|
+
/// controls an opened engram⟩ The controller is THIS REGISTRY ALONE; the key is not one and can install
|
|
2020
2112
|
/// nothing. The reply names the canister and says the cycles sit in it unrecorded, for whoever
|
|
2021
2113
|
/// runs this deployment to decide on;
|
|
2022
2114
|
/// · the key came to own an engram during the awaits → the new canister is named, nothing is
|
|
@@ -2026,9 +2118,9 @@ service : {
|
|
|
2026
2118
|
/// with first engrams); it never writes a predecessor (a key with any record was refused); it never
|
|
2027
2119
|
/// consults the reserve gate (the parent owner's approval is this door's admission — the gate's
|
|
2028
2120
|
/// arming note stays on `provisionEngram`); it never tells the calling engram anything but this
|
|
2029
|
-
/// reply. No payment AMOUNT reaches it (
|
|
2121
|
+
/// reply. No payment AMOUNT reaches it (money is the biller's, cycles are the registry's): it carries cycles and a key, nothing else.
|
|
2030
2122
|
///
|
|
2031
|
-
/// THE RATE LIMIT ⟨2026-10-01, evening — the owner's ruling
|
|
2123
|
+
/// THE RATE LIMIT ⟨2026-10-01, evening — the owner's ruling that evening; until then this door shared
|
|
2032
2124
|
/// first engrams' limiter in full: their 24-hour count, their in-flight count and
|
|
2033
2125
|
/// `effectiveDailyCap`⟩. The door shares only the DIAL (`spawnCeiling`) and the WINDOW LENGTH (24
|
|
2034
2126
|
/// hours). Its count is its own (`sponsoredCreationTimestampsBuf`, pruned by
|
|
@@ -2047,8 +2139,8 @@ service : {
|
|
|
2047
2139
|
/// WHAT WOULD MAKE THIS WRONG: a second path that writes `parentOf`, or an `await` placed between
|
|
2048
2140
|
/// the post-await re-check and the record below.
|
|
2049
2141
|
///
|
|
2050
|
-
/// ⟨2026-11-02, the owner's rulings
|
|
2051
|
-
/// recommended"⟩ CONTROLLED BY THIS REGISTRY ALONE, AND BORN KNOWING ITS PARENT AND ITS SIGN-IN.
|
|
2142
|
+
/// ⟨2026-11-02, the owner's rulings that the registry alone controls an opened engram, and "1-4 all as
|
|
2143
|
+
/// you recommended"⟩ CONTROLLED BY THIS REGISTRY ALONE, AND BORN KNOWING ITS PARENT AND ITS SIGN-IN.
|
|
2052
2144
|
/// The canister's controllers are `[this registry]` — the key is not a controller, so it can never
|
|
2053
2145
|
/// reinstall, delete or re-control the engram; only this registry installs code on it. Such an
|
|
2054
2146
|
/// engram is managed for life: `claimSovereignty`, `returnToManaged`, `abandonMyEngram`, a
|
|
@@ -2059,14 +2151,15 @@ service : {
|
|
|
2059
2151
|
/// before it answers its first message. `null` = no sign-in: the engram keeps small limits for life.
|
|
2060
2152
|
/// An engram built before this argument sends one argument; the missing trailing `opt` decodes as
|
|
2061
2153
|
/// `null` (Candid's rule for a missing optional argument), and the engram opens with no sign-in.
|
|
2062
|
-
/// ⟨CORRECTED 2026-11-02, later — the
|
|
2063
|
-
///
|
|
2064
|
-
///
|
|
2065
|
-
///
|
|
2154
|
+
/// ⟨CORRECTED 2026-11-02, later — from the review of the step that made the registry a child's only
|
|
2155
|
+
/// controller, beside the two lines above, which no longer hold⟩
|
|
2156
|
+
/// ONE RECORD, A NEW NAME. This door was `sysSpawnChild(ownerKey : Principal)`; giving
|
|
2157
|
+
/// it a second positional argument grew its argument TUPLE, which the interface-evolution rule freezes once released ("evolution
|
|
2158
|
+
/// happens inside records", ratified 2026-08-16) and the interface gate reads as ILLEGAL. So the door is
|
|
2066
2159
|
/// `sysOpenChild({ ownerKey; signIn })` — later fields are opt fields of this record, never another
|
|
2067
2160
|
/// argument — and `sysSpawnChild` is REMOVED (a NOTICE at the gate). An engram built before this
|
|
2068
2161
|
/// change still calls `sysSpawnChild`; this registry no longer serves it, so that call is REJECTED
|
|
2069
|
-
/// (IC0536, a reject the engram's `try` catches —
|
|
2162
|
+
/// (IC0536, a reject the engram's `try` catches — a probe of the interface-evolution rule), the attached cycles come back
|
|
2070
2163
|
/// as the call's refund, and nothing is opened. An older engram therefore never opens an engram with
|
|
2071
2164
|
/// no sign-in by accident; it opens them again once it runs a template that calls this method.
|
|
2072
2165
|
/// (Was: the one-argument call decoded `signIn` as `null` — INFERRED for moc 2.1.0, never witnessed.)
|
|
@@ -2110,22 +2203,22 @@ service : {
|
|
|
2110
2203
|
/// row and one summary. The key never reaches the registry; the plan's separate new `sys-` method
|
|
2111
2204
|
/// for the root is not built — this method was itself new in the same release, so it carries the
|
|
2112
2205
|
/// root instead of the key, and a second method would be a parallel path for one fact.
|
|
2113
|
-
/// ⟨CORRECTED 2026-09-28, review finding
|
|
2206
|
+
/// ⟨CORRECTED 2026-09-28, a review finding: the trust in this paragraph was misplaced, and
|
|
2114
2207
|
/// "the key never reaches the registry" is no longer true. An engram's owner is a controller of
|
|
2115
2208
|
/// its canister and can install code that reports any root, so a start now carries the root's
|
|
2116
2209
|
/// enrolment statement (`Engagements.EnrolmentProof`) and THIS method verifies it
|
|
2117
|
-
/// (`EdgeProof.rootOf`), and refuses past `Engagements.MAX_ENGAGEMENTS_PER_ENGRAM` (
|
|
2210
|
+
/// (`EdgeProof.rootOf`), and refuses past `Engagements.MAX_ENGAGEMENTS_PER_ENGRAM` (a review finding). The
|
|
2118
2211
|
/// enrolled key therefore DOES reach the registry, stored on the engagement record and never
|
|
2119
2212
|
/// served. The ending's reason is still the owner's assertion; the agent's remedy for a false
|
|
2120
2213
|
/// one is its dispute. Records stay keyed by the agent's root, as above.⟩
|
|
2121
|
-
/// ⟨MOVED 2026-09-29, review finding
|
|
2214
|
+
/// ⟨MOVED 2026-09-29, a review finding: the correction above stood in the middle of this
|
|
2122
2215
|
/// paragraph, so the sentence it corrects came after it and read as the last word — in this file
|
|
2123
2216
|
/// and in the published registry.did.⟩
|
|
2124
|
-
/// ⟨2026-09-29, review finding
|
|
2217
|
+
/// ⟨2026-09-29, a review finding⟩ An engagement is matched on the enrolled key AND the invite
|
|
2125
2218
|
/// its statement names, not on the key alone: one statement opens at most one engagement, and a
|
|
2126
2219
|
/// key the engram re-admits after a reset, under a fresh statement for a fresh invite, opens a new
|
|
2127
2220
|
/// one (`Engagements.admit`).
|
|
2128
|
-
/// ⟨CORRECTED 2026-09-29, review finding
|
|
2221
|
+
/// ⟨CORRECTED 2026-09-29, a review finding: "a repeated `#Ended` writes nothing, and both
|
|
2129
2222
|
/// answer `#Ok`" is now narrower. An ending names the engagement it ends (the enrolled key and the
|
|
2130
2223
|
/// invite) and the day the engram recorded it, because a lost ending is now RE-SENT by the
|
|
2131
2224
|
/// engram's `resyncAgentEdges`. The same ending again answers `#Ok` and writes nothing; one
|
|
@@ -2135,14 +2228,15 @@ service : {
|
|
|
2135
2228
|
event: EdgeEvent;
|
|
2136
2229
|
root: principal;
|
|
2137
2230
|
}) -> (Result);
|
|
2138
|
-
/// CALLER: an engram, from inside its `sysReturnUpgradeAdvance` (
|
|
2231
|
+
/// CALLER: an engram, from inside its `sysReturnUpgradeAdvance` (the surface budget: every method names its caller). Attach what is being
|
|
2139
2232
|
/// given back of the compute a paid security update advanced it. The registry accepts no more than
|
|
2140
2233
|
/// the outstanding advance (the network returns the rest) and writes off whatever was not returned
|
|
2141
2234
|
/// — what the install used and what the engram had to keep — never carried as a debt.
|
|
2142
2235
|
/// ⟨2026-10-26, the owner's ruling "accounting should be exact"⟩ The write-off here is the exact
|
|
2143
2236
|
/// figure advance − accepted, from the ledger entry and the cycles actually accepted, and the audit
|
|
2144
2237
|
/// line carries advance, returned and writtenOff.
|
|
2145
|
-
/// ⟨2026-10-26, later — the owner's restart choices
|
|
2238
|
+
/// ⟨2026-10-26, later — the owner's restart choices on naming the release and on the 90-day write-off⟩
|
|
2239
|
+
/// The engram may have more than one
|
|
2146
2240
|
/// advance out (one per release paid; RestartLoan.repayAdvances): the cycles are accepted up to their
|
|
2147
2241
|
/// sum and settled OLDEST FIRST, and each advance gets its own audit line naming the release it was
|
|
2148
2242
|
/// paid for (`template=`), with its own returned and written-off parts — the lines sum exactly to
|
|
@@ -2150,10 +2244,11 @@ service : {
|
|
|
2150
2244
|
/// LEDGER, so nothing sent for it is accepted — the network returns those cycles to the engram — and
|
|
2151
2245
|
/// `advanceReturned` never counts a written-off cycle: no double count. When nothing at all is out,
|
|
2152
2246
|
/// the reply is `#NotFound` and nothing is accepted (as before).
|
|
2153
|
-
/// ⟨CORRECTED 2026-10-26, later —
|
|
2247
|
+
/// ⟨CORRECTED 2026-10-26, later — a review fix to the owner's restart choice to name the release⟩
|
|
2248
|
+
/// NEWEST first, not oldest first: the engram can
|
|
2154
2249
|
/// give back only what it holds above its balance before the latest deposit, so the cycles are the
|
|
2155
2250
|
/// newest advance's (RestartLoan.repayAdvances says why, and when that reading is wrong).
|
|
2156
|
-
/// ⟨CHANGED 2026-10-26, the owner's
|
|
2251
|
+
/// ⟨CHANGED 2026-10-26, the owner's give-back ruling: "take back only what we added; anything left
|
|
2157
2252
|
/// over goes to the 90-day write-off"⟩ The engram now names THE ADVANCE it is giving back
|
|
2158
2253
|
/// (`advanceId`, which the registry handed it in `sysReturnUpgradeAdvance` — the one this install's
|
|
2159
2254
|
/// deposit put on the ledger). The registry accepts AT MOST THAT ADVANCE'S AMOUNT, settles THAT
|
|
@@ -2170,10 +2265,10 @@ service : {
|
|
|
2170
2265
|
/// name one of its OWN advances (the caller must match), so the worst it can do is settle its own
|
|
2171
2266
|
/// other advance early with cycles that are still the registry's.
|
|
2172
2267
|
sysRepayUpgradeAdvance: (a: record {advanceId: nat;}) -> (Result_1);
|
|
2173
|
-
/// ⟨2026-09-29, owner
|
|
2174
|
-
/// after this registry moved its record, and asks for the record back so the transfer
|
|
2175
|
-
/// complete. Gated like `sysNotifyOwnershipTransfer` (the caller must BE the engram), and
|
|
2176
|
-
/// an engram the registry records as sovereign — a managed engram's controllers are this
|
|
2268
|
+
/// ⟨2026-09-29, the owner's code-handover ruling⟩ A SOVEREIGN engram could not change its own
|
|
2269
|
+
/// controllers after this registry moved its record, and asks for the record back so the transfer
|
|
2270
|
+
/// does not complete. Gated like `sysNotifyOwnershipTransfer` (the caller must BE the engram), and
|
|
2271
|
+
/// only for an engram the registry records as sovereign — a managed engram's controllers are this
|
|
2177
2272
|
/// registry's to move, and its record is put back inside `sysNotifyOwnershipTransfer` itself.
|
|
2178
2273
|
/// Refuses, saying why, when the record cannot be put back (`ControlHandover.revertRefusal`); the
|
|
2179
2274
|
/// engram then answers its owner with `ControlHandover.stuck`.
|
|
@@ -2186,7 +2281,7 @@ service : {
|
|
|
2186
2281
|
/// paid only for a #Security update on a running engram. A push is the registry's own initiative,
|
|
2187
2282
|
/// so where the engram cannot hold the install even with its setting lowered, the push is SKIPPED
|
|
2188
2283
|
/// with `#Conflict` and not attempted — the owner can still pull it, and the pull is never refused.
|
|
2189
|
-
/// ⟨2026-11-04
|
|
2284
|
+
/// ⟨2026-11-04⟩ An ERASED engram (its canister holds no program) is not
|
|
2190
2285
|
/// pushed: `#Conflict`, by name, before anything is added.
|
|
2191
2286
|
upgradeEngram: (canisterId: principal) -> (Result);
|
|
2192
2287
|
/// Upgrade YOUR OWN engram to the registry's current template. Self-service — no admin, no
|
|
@@ -2205,7 +2300,7 @@ service : {
|
|
|
2205
2300
|
/// opened through a parent is now paid for a security update like any other ("including child
|
|
2206
2301
|
/// engrams, but not including engrams running unofficial code"), and a #Feature update is never
|
|
2207
2302
|
/// paid, rent or no rent ("where rent is paid, feature upgrades are paid by the engram").
|
|
2208
|
-
/// ⟨CORRECTED 2026-10-26, later — the owner's restart choice
|
|
2303
|
+
/// ⟨CORRECTED 2026-10-26, later — the owner's restart choice of that day: "pay whenever the engram is
|
|
2209
2304
|
/// missing any security release, whatever the latest release is labelled"⟩ "a #Feature update is
|
|
2210
2305
|
/// never paid" now excepts an engram still missing an earlier security release: its install of a
|
|
2211
2306
|
/// #Feature template is paid as a security update, because the template carries that fix
|
|
@@ -2218,7 +2313,7 @@ service : {
|
|
|
2218
2313
|
/// (UpgradeFunding.pullFailure): `#Conflict` when the engram needs more compute (the owner's
|
|
2219
2314
|
/// action — add compute), `#Unavailable` when the registry could not pay this time (retryable).
|
|
2220
2315
|
/// A failure after a paid or unneeded deposit answers `#Unavailable` with the network's reply.
|
|
2221
|
-
/// ⟨2026-11-04
|
|
2316
|
+
/// ⟨2026-11-04⟩ On an ERASED engram (its canister holds no program) nothing
|
|
2222
2317
|
/// is paid; the install is still attempted, the network refuses it, and the reply says "erased".
|
|
2223
2318
|
///
|
|
2224
2319
|
/// An engram already on the current template is a silent no-op. A SOVEREIGN engram gets
|
|
@@ -2228,7 +2323,7 @@ service : {
|
|
|
2228
2323
|
/// the deployment's fleet-upgrade tooling, so a caller reaching this method directly does not
|
|
2229
2324
|
/// get it.
|
|
2230
2325
|
upgradeMyEngram: () -> (Result);
|
|
2231
|
-
/// True iff `canisterId` is a registered, `#Active` engram owned by `claimedOwner`. The
|
|
2326
|
+
/// True iff `canisterId` is a registered, `#Active` engram owned by `claimedOwner`. The biller's
|
|
2232
2327
|
/// money gate: fund ONLY an active engram the paying caller owns, since minting cycles to a
|
|
2233
2328
|
/// frozen or deleted canister strands the funds.
|
|
2234
2329
|
///
|
|
@@ -2243,7 +2338,7 @@ service : {
|
|
|
2243
2338
|
/// born-clean badge does. A query cannot make inter-canister calls, so this one cannot ask.
|
|
2244
2339
|
///
|
|
2245
2340
|
/// ⟨Promoted from `//` to `///` 2026-08-21. Everything above was written as plain comments, so
|
|
2246
|
-
/// registry.did published the
|
|
2341
|
+
/// registry.did published the biller's money gate with NO explanation at all while 53 lines of
|
|
2247
2342
|
/// it sat in the source. The correction history stays `//` on purpose — it is addressed to an
|
|
2248
2343
|
/// editor, and only what a CALLER needs belongs in the interface.⟩
|
|
2249
2344
|
verifyEngramActiveOwner: (canisterId: principal, claimedOwner:
|