docs: Batch 9 — principals and canister computational model#217
Conversation
|
Review notes Two issues to fix before merge: 1. Broken link (blocking):
2. Third-party product link: The canister control structure table links to No other issues: frontmatter complete, |
Review notesThree items to address before merging: 1. Broken link in
|
|
Feedback addressed:
|
dabad66 to
d191270
Compare
02a6947 to
d8b0cd9
Compare
- Add principals.md: 5 principal classes, self-authenticating IDs, anonymous principal, canister control model, upgrade behavior with stable memory - Expand canisters.md: inter-canister messaging callbacks, trap/rollback behavior (reverts to state after last outgoing call, not start of message) - Fix canisters.md: replace Learn Hub principal link with internal principals.md - Update concepts/index.md: add principals.md entry - Update glossary.md: replace verbose principal definition with concise entry linking to principals.md - Remove 4 consumed Learn Hub staging files
…cipals.md - Replace canister-format self-authenticating principal example with correct 29-byte user principal format - Fix broken Next steps link: authentication/index.md → authentication/internet-identity.md
…canisters The controller table and upgrade hook sequence belong conceptually with canisters, not principals. principals.md is now focused on identity only (principal classes + caller semantics). canisters.md absorbs the control structure table and detailed upgrade steps from the Canister Control Learn Hub article.
9268eaf to
eac260b
Compare
- Add concepts/principals to sidebar.mjs - Reframe principal classes: 'five classes, one never implemented' - Expand SNS acronym on first use in canisters.md controllers table
Summary
Content placement rationale
The "Canister Control" Learn Hub article was grouped with "What is a Principal?" in Learn Hub navigation, but the content (controller table, upgrade hooks) belongs with canisters under Diataxis. `principals.md` is focused on identity only; `canisters.md` absorbs all canister management content.
The "Computational Model" article is fully migrated into `canisters.md` (actor model, bidirectional messaging, guaranteed reply, trap/rollback in "Inter-canister messaging and error handling").
Staging files deleted
Sync recommendation
`principals.md`: `informed by Learn Hub article "What is a Principal?" (migrated, source retired)`
`canisters.md` additions: `informed by Learn Hub articles "Canister Smart Contracts", "Computational Model", "Canister Control" (migrated, source retired)`