diff --git a/CLAUDE.md b/CLAUDE.md index 6603fe6..e263818 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -254,10 +254,42 @@ and speculate about nothing. - `ReservationCount` is reservations, not attendance. For a past class, the attendee list's `HasSignedIn` / `HasNoShow` flags are the real signal. +### Deployment + +Deployed to the hermes host at `~/repo/wodify`, with a wrapper at `~/.local/bin/wodify`. +The wrapper puts `src/` on `PYTHONPATH` rather than pip-installing: the query path is +stdlib-only, and staying out of the hermes venv means `hermes update` cannot clobber or drop +it. It uses the hermes venv's interpreter because `prime` needs `websockets` from there. + +Chrome runs on that host, so `prime` works locally with no tunnel. The `wodify-viewer` +hermes skill (v4.0.0) now tells the agent to use the CLI and treat the browser as fallback. + +Verified live on the host: `list date`, `list workout` (12 attendees + the WOD), and a full +`prime` whose walk log reads +`{"log":["schedule=true","date=true","classes=4","class=true","hasGoToWorkout=true","goto=true"],"ok":true}`. + +### Self-healing, confirmed in the wild + +Wodify redeployed mid-session (`moduleVersion` went `4qHsLi2Es1qvgd2NhStmPw` → +`Lr5GpsYppagRVIiIPnDo2g`). The stale cache did **not** return wrong data — it raised: + +``` +STALE: schedule: Wodify redeployed (module changed=True, api changed=False). Re-prime. +``` + +Exit 3, no fallback, no guess. Intended behaviour, fired unprompted. + +### Publishing + +Test fixtures use **fictional** names. Real gym members' names were scrubbed and the git +history squashed before first publication — do not reintroduce live attendee names into +fixtures or docs, even in examples. The gym host and location id are not secrets and stay. + ### Not yet done -- No deploy back to the CDP host / hermes skill rewiring — local build first, by request - `classes` (the Home variant of `GetClasses`) still returns placeholders only; superseded by `schedule` and kept solely as a labelled trap +- Not pushed to the remote: the git server exposes no SSH port, and HTTPS needs a password + that has to be entered by a human ## Gotchas found the hard way