Skip to content

Add runtime metadata for bundle validation #1658

@anth-volk

Description

@anth-volk

Goal

Add runtime metadata to policyengine-uk so bundle tooling can identify the country package, its data-build fingerprint, and the exact installed policyengine-core runtime used with it.

This is part of the broader PolicyEngine bundle system, where a bundle release should be able to validate the exact package set used for reproducible simulations.

Context

policyengine-core now exposes dependency-free runtime metadata. policyengine-uk should include that core identity in its own metadata so the bundle generator can verify that the selected UK model package and selected core package agree.

Acceptance criteria

  • Expose get_runtime_metadata() from policyengine_uk.build_metadata.
  • Include name, version, git_sha, data_build_fingerprint, and core.
  • Keep get_data_build_metadata() working for existing callers.
  • Keep policyengine-bundles out of runtime dependencies.
  • Add a test-only bundle contract validation job.
  • Raise the policyengine-core floor to a version containing get_runtime_metadata().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions