Skip to content

Conversation

mraszyk
Copy link
Contributor

@mraszyk mraszyk commented May 9, 2025

This PR specifies preconditions for installing canister code via the corresponding management canister endpoints that must be satisfied (if provided) for the call to succeed. The motivation is to prevent canisters that are not stopped from being installed and to enable compare-and-swap semantics for installing canisters (by atomically "comparing" the canister history before "swapping" the canister code).

@mraszyk mraszyk requested a review from a team as a code owner May 9, 2025 09:57
@github-actions github-actions bot added the interface-spec Changes to the IC Interface Specification label May 9, 2025
Copy link
Contributor

github-actions bot commented May 9, 2025

🤖 Here's your preview: https://zeh4i-iqaaa-aaaam-aeivq-cai.icp0.io

Copy link
Member

@Dfinity-Bjoern Dfinity-Bjoern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, please proceed and merge in line with roll-out

@oggy-dfin
Copy link
Member

Should we do the same for load_canister_snapshot_args?

@mraszyk
Copy link
Contributor Author

mraszyk commented Aug 4, 2025

Should we do the same for load_canister_snapshot_args?

Makes sense to me.

@marc0olo
Copy link
Member

@mraszyk can we merge this?

@mraszyk
Copy link
Contributor Author

mraszyk commented Aug 13, 2025

@mraszyk can we merge this?

Not really because it is not implemented in the protocol (this PR is merely a suggestion for a new protocol feature).

@mraszyk mraszyk marked this pull request as draft August 13, 2025 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interface-spec Changes to the IC Interface Specification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants