Metadata-Version: 2.5
Name: fleet-sync
Version: 0.1.0.post43
Summary: Converge each host to the newest published version of the components it uses.
License-Expression: CC0-1.0
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# fleet-sync

Keeps every host on the newest published version of the components it uses,
and reports what it cannot keep current.

The design is in `docs/superpowers/specs/2026-11-01-fleet-sync-design.md`; the
implementation plan is in `docs/superpowers/plans/2026-11-01-fleet-core.md`.

Fleet never writes the OpenCode configuration. It compares each host's file
against the tracked base plus that host's manual values and reports the
difference.

## Commands

```sh
fleet sync            # converge this host now (what the timer runs)
fleet update          # the same, run by you
fleet update --all    # ...and poke every other host over ssh
fleet status          # every host's applied versions, plus config drift
fleet digest          # only what is behind or broken (exit 1 when anything is)
fleet selftest        # forge answers, state writable
fleet bootstrap --token <t>   # one manual run per host, then the timer takes over
```

The timer is a systemd **user** unit: `OnUnitActiveSec=5min`, `Persistent=true`,
so a host that was off catches up at boot. State is published as a commit to a
private `fleet-state` repo, which is why `fleet status` needs no inbound ssh.
