Query-Recipe Reference + Runtime Test Suite
Goal
Author references/seam-queries.md documenting every detector’s composed query, its noise filters, and its mandatory verification step (the recipes validated this session). Complete the runtime pytest suite (gates / dispatch / state per script-first.md §4) + a __main__ --self-test end-to-end.
Implementation Sketch
The reference doc is the recipe SSOT a reviewer or future detector author consults; each recipe pairs the cypher with its filters and the file:line-verification it requires. --self-test exercises the full seam_scan -> worklist -> gate path against a fixture graph (graph-down degrades gracefully).
Spec References
.claude/rules/script-first.md §4 (tests/ coverage + --self-test); impl-hygiene.md Finding Categories (category-name vocabulary the recipes cite).
Work Items
- Write
references/seam-queries.md(per-detector: query + filters + required verification step) - Complete runtime pytest coverage (gates, dispatch, state) per script-first §4
- Add
python -m scripts.impl_hygiene_review_runtime --self-testend-to-end