llm: evaluation set — golden longitudinal questions with expected anchors (CCM, audio-only E/M, APCM, G2211, telehealth steps) #692

Closed
opened 2026-09-09 14:30:05 +00:00 by kert · 1 comment
Owner

Spec docs/superpowers/specs/2026-09-09-code-family-longitudinal-design.md (§Evaluation).

What. tests/llm/golden_lineage.yaml: question → expected (item_key, p_id) anchors that must appear in sources, expected event labels that must be cited in prose, and forbidden claims (e.g. no payment figure without a [PFS CY… Addendum B] label).

Seed questions and anchors:

  1. History of CCM coding and payment → DE2VH9PD ¶1249–1251; YBM4IZUS ¶1578; JJ6AM5HJ ¶1163.
  2. What replaced G2058 and why → YBM4IZUS ¶1578, ¶2369.
  3. How do APCM's elements differ from CCM's → JJ6AM5HJ ¶1164–1185 vs DE2VH9PD ¶1245–1247.
  4. When were audio-only E/M codes payable and why did 99441–99443 end → XFGGRBDH ¶489; pfs.rvu 99441 last year 2024.
  5. What did commenters say about G2211 in 2023 vs 2025 → CMS-2023-0121 (3,353 abstract hits) vs CMS-2025-0304 (146).
  6. Does 99490 pass telehealth Steps 1–3 → 2KVJ2HKX ¶394/¶396/¶398 and 99490's elements.
  7. How did G2064/G2065 → 99424/99426 change the RHC/FQHC G0511 rate → JE7KYBW3 ¶1100/¶1111; MZ24MX5S ¶1305.

Done when the set runs in CI against the live chat (nightly, like notebooks-integration) and files an issue on regression through the existing filer.

Spec docs/superpowers/specs/2026-09-09-code-family-longitudinal-design.md (§Evaluation). **What.** `tests/llm/golden_lineage.yaml`: question → expected `(item_key, p_id)` anchors that must appear in `sources`, expected event labels that must be cited in prose, and forbidden claims (e.g. no payment figure without a `[PFS CY… Addendum B]` label). Seed questions and anchors: 1. History of CCM coding and payment → `DE2VH9PD` ¶1249–1251; `YBM4IZUS` ¶1578; `JJ6AM5HJ` ¶1163. 2. What replaced G2058 and why → `YBM4IZUS` ¶1578, ¶2369. 3. How do APCM's elements differ from CCM's → `JJ6AM5HJ` ¶1164–1185 vs `DE2VH9PD` ¶1245–1247. 4. When were audio-only E/M codes payable and why did 99441–99443 end → `XFGGRBDH` ¶489; `pfs.rvu` 99441 last year 2024. 5. What did commenters say about G2211 in 2023 vs 2025 → CMS-2023-0121 (3,353 abstract hits) vs CMS-2025-0304 (146). 6. Does 99490 pass telehealth Steps 1–3 → `2KVJ2HKX` ¶394/¶396/¶398 and 99490's elements. 7. How did G2064/G2065 → 99424/99426 change the RHC/FQHC G0511 rate → `JE7KYBW3` ¶1100/¶1111; `MZ24MX5S` ¶1305. **Done when** the set runs in CI against the live chat (nightly, like notebooks-integration) and files an issue on regression through the existing filer.
kert added this to the P49: Code families as first-class objects — element model, lineage anchors, longitudinal chat milestone 2026-09-09 14:30:05 +00:00
kert added the llmquality labels 2026-09-09 14:30:05 +00:00
Author
Owner

Merged to main as da345bc. tests/llm/golden_lineage.yaml (7 questions: anchors, labels, forbidden claims, events, dockets, era counts) + dev/scripts/llm_golden.py (streams /chat, six pure checkers, exit 0 when filing issues) + nightly llm-golden workflow generated from dev/scripts/backends/gitea.py (03:40, runs inside the llm container, files/sweeps through nb_issue_filer with label llm). In-process against the branch code: 4/7 pass (ccm-history, audio-only-em, g2211 2023-vs-2025, g2064→99424 rate). Three documented gaps stay red on purpose: g2058-replacement misses YBM4IZUS ¶1578 (attached to 99439's replaces event, outside the 8-paragraph cap), apcm-vs-ccm-elements misses the element paragraphs, 99490-telehealth-steps needs the Step 1–3 paragraphs retrieved. NOTE: the deployed llm image predates this branch (no lineage event, sources without item_key/p_id), so the nightly will be red until the image is rebuilt and rolled (COMMIT_SHA in .env + compose build/up).

Merged to main as da345bc. tests/llm/golden_lineage.yaml (7 questions: anchors, labels, forbidden claims, events, dockets, era counts) + dev/scripts/llm_golden.py (streams /chat, six pure checkers, exit 0 when filing issues) + nightly llm-golden workflow generated from dev/scripts/backends/gitea.py (03:40, runs inside the llm container, files/sweeps through nb_issue_filer with label llm). In-process against the branch code: 4/7 pass (ccm-history, audio-only-em, g2211 2023-vs-2025, g2064→99424 rate). Three documented gaps stay red on purpose: g2058-replacement misses YBM4IZUS ¶1578 (attached to 99439's replaces event, outside the 8-paragraph cap), apcm-vs-ccm-elements misses the element paragraphs, 99490-telehealth-steps needs the Step 1–3 paragraphs retrieved. NOTE: the deployed llm image predates this branch (no lineage event, sources without item_key/p_id), so the nightly will be red until the image is rebuilt and rolled (COMMIT_SHA in .env + compose build/up).
kert closed this issue 2026-09-10 18:15:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: homelab/stack#692