feat(replay): fixtures + augment script for v2 artifact-gate viewers
Add cte-plan-fixture.json, cte-result-fixture.json, and phase-summary-fixture.json — realistic Italian-language payloads for the cardiology DWH replay session, conforming exactly to contracts.md (A/B/C). Add augment-review-gates.mjs (pattern of augment-schema-linking.mjs): finds the F6 cte_plan gate, first CTE 1 cte_result gate, and Fase 5 phase-summary gate by title regex and swaps in the v2 artifact.data, so CtePlanViewer, CteResultViewer, and PhaseSummaryViewer render in the offline replay. Idempotent; exits 1 if an expected gate is missing. Document the augment scripts and re-extract note in tools/replay/README.md.
This commit is contained in:
+11
-1
@@ -109,7 +109,17 @@ I 20 gate della sessione 17:07: 4 `select` + 11 `confirm` + 5 `decide`.
|
||||
## File
|
||||
|
||||
- `extract.mjs` — estrattore fixture dal transcript Pi JSONL.
|
||||
- `augment-schema-linking.mjs` — riscrive il gate F4 tabelle/colonne come
|
||||
descrittore `schema-linking` (vedi `schema-linking-fixture.json`).
|
||||
- `augment-review-gates.mjs` — riscrive i gate F6 piano CTE, CTE 1 approvato e
|
||||
Fase 5 completata come descrittori v2 (`cte_plan`/`cte_result`/`phase`, vedi
|
||||
`cte-plan-fixture.json`, `cte-result-fixture.json`,
|
||||
`phase-summary-fixture.json`). **Nota:** questi tre gate sono ancora
|
||||
fixture sintetiche coerenti coi contratti v2 — dopo la prima sessione live
|
||||
che passa per un gate `cte_plan`/`cte_result`/`phase` reale, rilancia
|
||||
`extract.mjs` per catturare i descrittori v2 reali e sostituire le fixture.
|
||||
- `server.mjs` — server HTTP+SSE standalone (node:http, zero deps).
|
||||
- `replay.json` — fixture generata (committata per comodità).
|
||||
- `replay.json` — fixture generata (committata per comodità; rigenerata con
|
||||
`augment-schema-linking.mjs` poi `augment-review-gates.mjs`, in quest'ordine).
|
||||
- `web/` — bundle SPA costruito da `frontend/` con
|
||||
`VITE_BACKEND_URL=http://localhost:5333` (gitignorato; prodotto da `build`).
|
||||
|
||||
Reference in New Issue
Block a user