{"record":{"id":"f2bf19edc6bdbe13","repo":"jdx/mise","slug":"managed-system-files-require-group-group-but-f2bf19","errorCode":null,"errorMessage":"managed system files require group '{group}', but that bootstrap group cannot be safely converged","messagePattern":"managed system files require group '(.+?)', but that bootstrap group cannot be safely converged","errorType":"error_code","errorClass":"eyre::Report","httpStatus":null,"severity":"error","filePath":"src/system/managed_files.rs","lineNumber":955,"sourceCode":"                }\n                Some(_) if allow_pending_accounts => {}\n                Some(_) | None => {\n                    resolve_user(owner)?;\n                }\n            }\n        }\n        if let Some(group) = group {\n            match accounts\n                .and_then(|accounts| accounts.groups.iter().find(|request| request.name == group))\n            {\n                Some(request) if request.state == super::accounts::AccountState::Absent => bail!(\n                    \"managed system files require group '{group}', but that bootstrap group is absent\"\n                ),\n                Some(request)\n                    if allow_pending_accounts\n                        && request.plan().action == ResourceAction::Unknown =>\n                {\n                    bail!(\n                        \"managed system files require group '{group}', but that bootstrap group cannot be safely converged\"\n                    )\n                }\n                Some(_) if allow_pending_accounts => {}\n                Some(_) | None => {\n                    resolve_group(group)?;\n                }\n            }\n        }\n    }\n    Ok(())\n}\n\n#[cfg(not(unix))]\npub(crate) fn validate_principals(\n    files: &[ManagedFileRequest],\n    directories: &[ManagedDirectoryRequest],\n    _accounts: Option<&super::accounts::AccountRequests>,","sourceCodeStart":937,"sourceCodeEnd":973,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/managed_files.rs#L937-L973","documentation":"When pending accounts are allowed, a referenced group's plan action being Unknown means mise cannot safely converge the group before applying file ownership. Validation bails early to avoid an indeterminate apply sequence rather than failing mid-run.","triggerScenarios":"`validate_principals` with `allow_pending_accounts = true`; a managed file/directory (state present) declares `group = \"g\"`; group g is present in the accounts config and not absent, but its `plan().action == ResourceAction::Unknown`.","commonSituations":"Group declarations with fields the planner cannot statically resolve (conditional gid, conflicting membership rules); templated/derived group names producing ambiguous plans.","solutions":["Simplify the [bootstrap.groups.g] declaration so its converge action is deterministic.","Ensure the group already exists on the target machine and reference it without pending-account handling.","Reference a group whose plan is known-safe (e.g. root or a plain present-state group)."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"fn group_plan_known(g: &GroupRequest, allow_pending: bool) -> bool {\n    g.state != AccountState::Absent && (!allow_pending || g.plan().action != ResourceAction::Unknown)\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Avoid conditional or templated fields in group declarations.","Pre-create groups outside bootstrap when their plan is hard to determine.","Validate with a dry-run before enabling allow-pending-accounts flows."],"tags":["config","accounts","planning","validation"],"backgroundTag":"invalid-state-transition","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}