Skip to content

Use compact typed SPM provenance contracts - #1239

Draft
anth-volk wants to merge 5 commits into
mainfrom
fix/compact-spm-provenance
Draft

anth-volk wants to merge 5 commits into
mainfrom
fix/compact-spm-provenance

Conversation

@anth-volk

@anth-volk anth-volk commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #1238

Summary

  • consume compact spm_provenance as the only SPM configuration source in completed household and society-wide results
  • reject live responses and persisted results that omit required v2 provenance, contain invalid provenance, or retain the superseded sibling spm_config field
  • keep request-side partial SPM selections unchanged and derive fully pinned reproduction selections from the completed receipt
  • display concise household and society-wide methodology fields instead of raw provenance JSON or internal diagnostics
  • update typed fixtures and integration coverage for point calculations, axes calculations, report-year recovery, exact reproduction, and cache invalidation

Coordinated changes

This is the frontend portion of the compact provenance contract introduced by:

Validation

  • bun run check
  • bun run vitest --run: 4,058 passed, 10 skipped
  • bun run build

The build completed for both website and calculator targets. It emitted only the existing bundle-size and mixed static/dynamic import warnings.

Visual verification

The methodology rendering changed. Automated browser-based visual inspection was intentionally not used; review the household and society-wide methodology sections in the PR preview.

@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
policyengine-calculator-next Ready Ready Preview Oct 1, 2026 5:00pm UTC
policyengine-website Ready Ready Preview Oct 1, 2026 5:00pm UTC

Request Review

This branch was successfully deployed

2 active deployments
Preview – policyengine-calculator-next — dd20e7ff Deployed Oct 1, 2026 by vercel[bot]
Preview – policyengine-website — dd20e7ff Deployed Oct 1, 2026 by vercel[bot]
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.

Use compact typed SPM provenance in calculation results

1 participant