Spaces:
Running
Running
Commit History
13 days ago
-
chore: delete the legacy keyword-router cluster
Finishes the deletion docs/MIGRATION.md and the build_demo.py docstring have claimed since 3993fe3 (2026-07-23, single blueprint pipeline). The files stayed in the tree; nothing live imported them (AST scan of every module including function-level imports, plus git grep for string refs). Removed: scenario/selector.py, scenario/extractor.py, scenario/families.py, dataset/generators/* (6 files), dataset/preflight.py, dataset/company_contract.py, pipeline/dataset_first.py (import shim) and the build_dataset_first_demo / DatasetFirstBuild aliases in build_demo.py. tests/test_dataset_quality.py loses the 3 tests of deleted code (2 TemplateDatasetGenerator, 1 preflight); its other 6 tests stay. Kept on purpose: dataset/quality.py and dataset/explicit_prompt.py. Neither has had a live caller since 3993fe3, but newer tests use them (flat-measure gate, ISS-12, duplicate columns). Wiring or retiring them is a separate decision. Suite on ffa83a4 + this commit: 2512 passed, 6 skipped, 4 failed.…eb43069
-
Wire single blueprint pipeline; fix engine formula fidelity + insight direction
Replace the keyword-router generation path with one build_demo() pipeline: research -> LLM-authored DemoBlueprint -> deterministic BlueprintEngine -> validation -> derived DDL. No mode flag, no fallback. Engine fixes: - Compute derived measures from formatted (stored) base values so rows satisfy their formulas under the validator's re-check (no formula errors). - Never clamp derived values; a negative margin/inventory stays faithful. - Sign-aware sensitivity analysis maps an insight on a derived measure to the base that moves the metric the promised direction (ratios no longer invert; products scale by magnitude, not magnitude squared). Adds preflight + blueprint + McKesson regression tests and migration docs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>3993fe3