{"record":{"id":"87c0e741db14219a","repo":"jdx/mise","slug":"not-set-up","errorCode":null,"errorMessage":"not set up","messagePattern":"not set up","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/history/sync/onboard.rs","lineNumber":288,"sourceCode":"    request.dry_run = true;\n    // Pending decisions belong only to this preview store.\n    run::sync(&planning_store, &tracked, &request)?;\n    let mut preview = ApplyRequest::automatic();\n    preview.automatic = false;\n    preview.dry_run = true;\n    preview.plan_only = true;\n    apply::apply(&planning_store, &tracked, &preview).await?;\n    if onboarding.dry_run {\n        let preview_config = Some(preview_configuration(&planning_store)?);\n        miseprintln!(\"Dry run: nothing was changed.\");\n        return Ok(Outcome {\n            preview_config,\n            durable_access: true,\n            setup_held: false,\n        });\n    }\n    if !super::origin::confirmed(onboarding.yes, \"Set this machine up from the repository?\")? {\n        bail!(\"not set up\");\n    }\n\n    // Recompute after confirmation against current local files and remote\n    // refs; never apply a stale preview or restore over a watcher's new state.\n    refuse_other_connection(store, &onboarding.origin, &onboarding.branch)?;\n    seed_confirmed_fetch(store, &planning_store)?;\n    request.capture = true;\n    request.dry_run = false;\n    run::sync(store, &tracked, &request)?;\n\n    // the connection: declared machine-locally, recorded for the watcher\n    run::update_status(state_dir, run::STATUS_LOCK_WAIT, |status| {\n        status.origin_url = Some(onboarding.origin.clone());\n        status.origin_branch = Some(onboarding.branch.clone());\n        status.disconnected = false;\n    })?;\n    super::origin::write_config(&onboarding.origin, &onboarding.branch, None)?;\n    crate::system::history::notify::warn_if_release_signing_unavailable();","sourceCodeStart":270,"sourceCodeEnd":306,"githubUrl":"https://github.com/jdx/mise/blob/afd2eddd3a50c16190efc1c7e94404b48f72af57/src/system/history/sync/onboard.rs#L270-L306","documentation":"State precondition in onboard run(): the machine is not yet set up for history synchronization (no tracked state/connection for onboarding to act on), detected while running the dry-run preview of sync and apply. The onboarding flow requires an initialized setup before proceeding.","triggerScenarios":"Thrown at src/system/history/sync/onboard.rs:288 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Complete the initial bootstrap/dotfiles setup before invoking the onboarding step","Check that the history store and tracked set are initialized in the state dir","Re-run onboarding after setup succeeds"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"afd2eddd3a50c16190efc1c7e94404b48f72af57","analyzedAt":"2026-09-09T01:38:25.179Z","contentChangedAt":"2026-09-09T01:38:25.179Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}