Skip to content

Spindle: profile shape/diff + Pulse rideshare domain#15

Merged
sqllocks merged 2 commits into
mainfrom
feat/profile-shape-diff
Jun 8, 2026
Merged

Spindle: profile shape/diff + Pulse rideshare domain#15
sqllocks merged 2 commits into
mainfrom
feat/profile-shape-diff

Conversation

@sqllocks

@sqllocks sqllocks commented Jun 8, 2026

Copy link
Copy Markdown
Owner

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).

sqllocks and others added 2 commits June 8, 2026 06:33
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>
@sqllocks
sqllocks merged commit 9af299f into main Jun 8, 2026
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant