Make the wiki history check mandatory before stability-classify #19

Merged
oleks merged 2 commits from fix-17-stability-gate-wiki-check into main 2026-07-30 05:41:34 +03:00

2 Commits

Author SHA1 Message Date
Oleks 713469d0d9 Fix markdownlint line-length in the step 4b wiki-fetch snippet
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/pr/test Pipeline failed
Follow-up to the kotkan/claude-plugin-inference-arbitrage#17 commit.
2026-07-30 05:40:41 +03:00
Oleks 69ff443bd2 Make the wiki history check mandatory before stability-classify (fix kotkan/claude-plugin-inference-arbitrage#17)
bin/stability-classify only ever reads the local filesystem snapshot store
(by design, no bin/ script holds wiki credentials), but SKILL.md step 4b
documented seeding it from the wiki as a conditional "if the store is cold"
aside. That made a cold-but-not-actually-empty local cache indistinguishable
from a genuine first audit: both silently emit stability: unchecked and file
unstable candidates, as observed on the 2026-07-30 anxious run.

- bin/stability-classify: add a required --wiki-checked {empty,imported}
  flag; hard-error when the store is empty and the flag is omitted, instead
  of silently degrading to unchecked.
- tests/stability.test.sh: (g) no flag on an empty store errors, (h)
  --wiki-checked=empty behaves as before, (i) --wiki-checked=imported after a
  real `audit-snapshot import` runs the gate normally against the imported
  history.
- skills/offload-audit/SKILL.md: step 4b now fetches the wiki's
  Data/<target>/snapshots.jsonl and runs `audit-snapshot import`
  unconditionally (it dedupes by run_id, so this is safe every run) before
  invoking the gate.
- Bump plugin.json to 0.6.3.
2026-07-30 05:40:08 +03:00