A3 — synthetic data generator - #4
Merged
Merged
Conversation
Implements platform-ai#571. Adds a fully deterministic, seed-driven generator that produces all three fixture packs (Operations, Outcomes, Equity & Research) with the intentional signals required by downstream B/C tasks: MoM attendance trend (+5 pp/month across Q1), low-N AIAN subgroup suppression (n=4 < threshold 10), IEP attendance disparity (~11 pp gap), and satisfaction dip-and-recovery in October. Files added: - benchmark/datagen/spec.py — source-of-truth constants + signal docs - benchmark/datagen/messiness.py — deterministic RNG helpers (no global RNG) - benchmark/datagen/generator.py — three pack generators + CLI entry point - tests/unit/test_generator.py — 41 tests: determinism, schema, signals
|
Pre-commit pinned ruff v0.4.10 while CI installed ruff>=0.4 (0.15.15), and the two disagreed on formatting test_generator.py — CI's format check failed though pre-commit passed locally. Pin ruff==0.15.15 in dev deps and bump the pre-commit ruff hook to v0.15.15 so local and CI use the same formatter. Reformat the one affected file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
python -m benchmark.datagen.generator --seed 42 --out <dir>) that produces all three fixture packs: Operations, Outcomes, and Equity & Research.benchmark/schemas/fixture_schema.md.spec.pyfor exact values):suppressed=true,attendance_rate=null).Files added
benchmark/datagen/spec.pybenchmark/datagen/messiness.pybenchmark/datagen/generator.py--seed,--out,--pack)tests/unit/test_generator.pyTest plan
ruff check .— no issuesruff format --check .— no reformats neededmypy benchmark runner— no issuespytest— 81 passed (41 new generator tests + 40 pre-existing)pre-commit run --all-files— all hooks passpython -m benchmark.datagen.generator --seed 42 --out <dir>writes all three pack directories🤖 Generated with Claude Code