# Ops

## Canary on a schedule (systemd user timer)

`npm run canary` hits every enabled store once with a known-good part number and
exits non-zero if any store stopped parsing — the early-warning loop from
TECHNICAL-SPEC §4. To run it daily:

```sh
mkdir -p ~/.config/systemd/user
cp ops/canary.service ops/canary.timer ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable --now canary.timer
```

Check on it with:

```sh
systemctl --user list-timers canary.timer   # next/last run
journalctl --user -u canary.service         # per-store results history
```

Not enabled by default on purpose: it sends real traffic to the stores, so
turning it on is an explicit choice.
