Spindle: profile shape/diff + Pulse rideshare domain#15
Merged
Conversation
Two new commands under the existing profile group: - profile capture <data> -o shape.json: capture a dataset's categorical shape into a portable, PII-free JSON artifact. Fills the gap that profile export only worked from a domain, not real data. - profile diff <a.json> <b.json> [--threshold T] [--json]: file-level diff of two committed shape artifacts: per-distribution total-variation drift plus an overall score; --threshold exits 1 (CI gate). Distinct from the registry-identity "profile registry diff" and the leak-scanner "profile validate". Enables shape-as-code: commit a shape next to your dbt models, git diff your data's behavior, gate CI on distribution drift, and ship a PII-free repro shape instead of prod data. Tests: tests/test_profile_diff_cli.py (5 passing). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Bundles all uncommitted Spindle changes at user request ("commit all Spindle
changes"). NOTE: most of these were authored in other parallel sessions
(EP8 / Pulse / copula / production-confidence), not verified by me this turn;
full test suite not run on this snapshot.
- engine/strategies: empirical, foreign_key, native, temporal
- inference: masker, database_profiler, safe_profile_adapter, schema_builder
- fabric: eventhouse_writer, sql_database_writer
- output: pandas_writer
- new: domains/pulse/, simulation/pulse_patterns.py
- docs: ADR-016, STORY-019, PRODUCTION_CONFIDENCE_ROADMAP, argentum demo spec
- tests: copula_production, safe_profile_winsorized_bounds, streaming
- build: .gitignore, .gitattributes, pyproject.toml
(My profile capture/diff CLI + test were already committed in 14671bd.)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Two features bundled: shape-as-code profile capture/diff (engine/inference/writer updates) and the Pulse rideshare demo (new domain + simulator + Eventhouse token-audience fix).