fix: prime bypasses the stale service worker; never saves an empty capture

After the 2026-11-10 Wodify redeploy, prime captured zero actions and every
query reported NOT PRIMED. It looked like another endpoint move. It was not:
every allowlisted path and response shape is unchanged.

The app's service worker was serving the old OutSystems runtime to pages
running the new screen code. That mixed app throws in
Controller.callServerDataSource before any data action is sent, so there was
nothing to observe. Measured per tab setting: bypassing the service worker
alone fixes it; disabling the HTTP cache alone does not.

- cdp.open_page: Network.setBypassServiceWorker on the prime tab. Per-tab,
  nothing in the profile is unregistered or cleared.
- cdp.close: close the tab the session opened. Every prime leaked one.
- prime: refuse to save a capture with no actions, leave the existing cache
  alone, and say why. Page errors are collected and reported, which is what
  separates "the browser's copy of the app is broken" from "Wodify moved its
  endpoints".
- Skill/: the cron prompts applied the generic exit-code table to `list`
  commands. For `list`, 3 is session expired, 4/5 are stale / not primed,
  6 is an unindexed class id. Exit 5 was not handled at all. Also document
  the `waitlist` value of the YOU column.
- CLAUDE.md / README: record the diagnosis, the measurements, the Firebase
  red herring, and both exit-code tables.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5.2 committed 2026-11-10 21:18:08 -08:00
1 parent cd7924d890
commit a15efa0874
9 files changed
+498 -16

No files matched your search

+4 -1
View File
@@ -12,7 +12,10 @@
- **没有预约就完全静默**——不发 "今天没课" 这种废话
- WOD 内容是 nice-to-have:拉不到也照常 nag,绝不编造课表
- CLI 挂了按 exit code 分级处理(2=session 过期,3/4=先 prime 再重试)
- CLI 挂了按 exit code 分级处理。两个 job 只用 `list` 命令,它的退出码是:
3=session 过期(停下,等人重新登录),4/5=缓存过期或未 prime(prime 一次再重试一次),
6=class ID 未索引,2=参数错误。注意这和 `bookings` 等通用命令的退出码(2/3/4)不同
- YOU 列取值:`signed in`(已签到)、`reserved`(已预约)、`waitlist`(候补,不算确认的预约)
## 安装(Hermes Agent 示例)