Skip to content

Add sync health checks and doctor output #77

@onsails

Description

@onsails

Context

Future work from docs/superpowers/specs/2026-05-24-local-libsql-migration-design.md.

The local libsql migration and embedded replica/sync mode are prerequisites. This issue should expose direct status signals rather than inferring health from side effects.

Scope

  • Add explicit health probes for configured cloud-backed storage modes.
  • Report sync/replica status through doctor and runtime health surfaces.
  • Define thresholds for stale sync, authentication failures, and unreachable remote databases.
  • Ensure errors propagate to logs and operator-visible checks.

Acceptance Criteria

  • Local-only agents do not show irrelevant cloud warnings.
  • Cloud-backed agents expose direct sync status and last-error details.
  • Doctor output includes actionable remediation without leaking secrets.
  • Tests cover healthy, stale, auth-failed, and unreachable states.

Out Of Scope

  • Designing cloud configuration.
  • Implementing backup/restore UX.
  • Migrating from rusqlite to local libsql.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions