Skip to content

Add schema-v2 bundle importer#395

Merged
anth-volk merged 1 commit into
mainfrom
codex/import-bundle-v2-adapter
Jun 10, 2026
Merged

Add schema-v2 bundle importer#395
anth-volk merged 1 commit into
mainfrom
codex/import-bundle-v2-adapter

Conversation

@anth-volk

Copy link
Copy Markdown
Contributor

Fixes #394

Summary

  • Add a reusable policyengine.provenance.bundle_import module for importing schema-v2 policyengine-bundles archives.
  • Verify bundle archive safety and bundle digests before writing release manifests.
  • Translate schema-v2 country bundle metadata into the existing .py country release manifest schema.
  • Support optional pyproject pin updates, optional TRACE TRO regeneration, and single-country bundle archives.
  • Keep scripts/import_policyengine_bundle.py as a source-checkout-friendly CLI wrapper.

Validation

  • uv run --extra dev python scripts/import_policyengine_bundle.py --help
  • uv run --extra dev python -m pytest tests/test_import_policyengine_bundle.py
  • uv run --extra dev python -m pytest tests/test_release_manifests.py tests/test_bundle_refresh.py
  • uv run --extra dev ruff format --check .
  • uv run --extra dev ruff check .
  • uv run --extra dev towncrier build --draft --version 0.0.0

@anth-volk anth-volk force-pushed the codex/import-bundle-v2-adapter branch from 7c28ede to f23b128 Compare June 10, 2026 12:51
@anth-volk anth-volk marked this pull request as ready for review June 10, 2026 13:14
@anth-volk anth-volk force-pushed the codex/import-bundle-v2-adapter branch from f23b128 to a1118f5 Compare June 10, 2026 14:56
@anth-volk anth-volk marked this pull request as draft June 10, 2026 14:59
@anth-volk anth-volk marked this pull request as ready for review June 10, 2026 20:04
@anth-volk anth-volk merged commit 0a3bc1f into main Jun 10, 2026
11 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.

Add schema-v2 policyengine-bundles importer

1 participant