You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setup refusal hides its cause: collection_setup_conflict drops the plan rejection, and owners are told to ask the owner #1518
When the atomic setup plan cannot be admitted, validate_setup_operations in runtime/crates/core/src/setup/envelope.rs maps every crate::plan rejection to the same issue:
crate::plan(&request, state,&PlanOptions{stage:Stage::Head}).map_err(|_| {issue("collection_setup_conflict","the complete atomic setup plan cannot be admitted")})?;
The rejection's code, reason and location are discarded. The SDK then shows (runtime/packages/sdk/src/describe-error.ts):
Collection setup conflicts
This collection's definitions conflict with what this app requires. Ask its owner to review them, or choose a different collection. Setup cannot continue while these conflicts remain.
Why it matters
A real case (callumalpass/tasknotes-app#432, mdbase-dev/mdbase-contracts#22): the tasknotes.task pack rc.19 replaced a managed contract that a customised, renamed task type still implemented. The plan was rejected with data_contract_version_mismatch at _types/tasknotes-task.md ("no version of tasknotes.task satisfies 0.3.0-rc.3"). The app could only show the screen above:
Nothing names the file or the reason, so the cause had to be found by replaying the pack against a copy of the collection with the engine.
The person seeing the screen was the collection's owner, and was told to ask the owner.
The screen is terminal: the only action is choosing another collection.
Suggested change
Keep the plan rejection on the issue (code, reason, path) so clients can show it, at least under technical details.
Give the SDK copy that works for an owner: say which definition conflicts and why, and drop "ask its owner" when the signed-in account owns the collection.
#1513 did the equivalent for collection_setup_namespace_conflict.
Activity
fix: say why collection setup is refused (mdbase-dev#1518) (mdbase-de…