doctor-upgrade (osa/Codex): client-side colibri upgrade + git-behind fixable check #292
Labels
No labels
doctor-fix
first-proof blocker
hardening
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
clawdie/colibri#292
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Host/agent: osa / Codex (Agent B) · Branch from: current
mainDesign source of truth: docs/wiki/doctor.md (Option A — client-side upgrade)
Client-side self-rebuild + the one
fixable: truecheck.Blocked on
doctor-engine merge — needs the
fixablefield in the daemon JSON to know what--fixcan act on.Contract (read the same shape doctor-engine emits)
Scope
colibri upgradesubcommand.git fetch origin→ check HEAD behindorigin/main→cargo build --workspace --release→ stop daemon → swap binary → start daemon.#[cfg]: FreeBSD =service colibri_daemon restart, Linux =systemctl restart colibri-daemon. Everything else (fetch/build/swap) is shared.git-behind-origincheck —git rev-list --count HEAD..@{u}, integrated intocolibri doctoras a client-side supplement (NOT a daemon check). This is the firstfixable: truecheck.colibri upgrade --check— dry-run; reports whether an upgrade is available without building.colibri doctor --fix— runs daemon doctor, then for eachfixablewarn/fail triggers the appropriate fix (→colibri upgrade).Files
colibri-clientonly. Disjoint from doctor-engine; merge order irrelevant except the--fixwiring, which needs doctor-engine'sfixablefield merged first.