Add canonical US runtime stage contracts and docs#43
Draft
anth-volk wants to merge 10 commits into
Draft
Conversation
…nto us-runtime-stage-contracts # Conflicts: # pyproject.toml # uv.lock
86bc7ca to
f29c42b
Compare
Contributor
|
I opened #45 as a small stacked follow-up for the run-contract/stage-manifest bridge. Resolution there: keep this PR's 9 canonical stage IDs as the saved-run taxonomy, and map older operational run-contract IDs into that taxonomy when the dashboard reads |
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.
Summary
Implements the canonical 9-stage US Microplex runtime taxonomy proposed in #20.
Closes #42.
This adds:
microplex_us.pipelines.stage_contractsfor stable stage definitions, artifact contracts, validation placeholders, diagnostics, and resume posture.microplex_us.pipelines.stage_manifestfor saved-run stage manifests, validation evidence manifests, and Stage 6 entity checkpoint helpers.stage_manifest.json, source-plan, calibration-summary, PE entity checkpoint metadata, and validation evidence sidecars.Out of scope
Validation
ruff check src/microplex_us/pipelines/stage_contracts.py src/microplex_us/pipelines/stage_manifest.py src/microplex_us/pipelines/artifacts.py src/microplex_us/pipelines/data_flow_snapshot.py src/microplex_us/pipelines/pe_us_data_rebuild_checkpoint.py src/microplex_us/pipelines/__init__.py tests/pipelines/test_stage_contracts.py tests/pipelines/test_stage_manifest.py tests/pipelines/test_data_flow_snapshot.py tests/pipelines/test_artifacts.py tests/pipelines/test_pe_us_data_rebuild_checkpoint.py tests/pipelines/test_backfill_pe_native_audit.pyPYTHONPATH=/private/tmp/microplex-comparison/microplex/src:/private/tmp/microplex-comparison/microplex-us/src python -m py_compile src/microplex_us/pipelines/stage_contracts.py src/microplex_us/pipelines/stage_manifest.py src/microplex_us/pipelines/artifacts.py src/microplex_us/pipelines/data_flow_snapshot.py src/microplex_us/pipelines/pe_us_data_rebuild_checkpoint.py src/microplex_us/pipelines/__init__.pyPYTHONPATH=/private/tmp/microplex-comparison/microplex/src:/private/tmp/microplex-comparison/microplex-us/src python -m pytest tests/pipelines/test_stage_contracts.py tests/pipelines/test_stage_manifest.py tests/pipelines/test_data_flow_snapshot.py(9 passed, 1 skipped; skipped parquet roundtrip because local env lackspyarrow)PYTHONPATH=/private/tmp/microplex-comparison/microplex/src:/private/tmp/microplex-comparison/microplex-us/src python -m pytest tests/pipelines/test_pe_us_data_rebuild_checkpoint.py::test_attach_policyengine_us_data_rebuild_checkpoint_evidence_updates_manifest tests/pipelines/test_pe_us_data_rebuild_checkpoint.py::test_attach_policyengine_us_data_rebuild_checkpoint_evidence_registers_calibration_only_runs tests/pipelines/test_backfill_pe_native_audit.py(6 passed)PYTHONPATH=/private/tmp/microplex-comparison/microplex/src:/private/tmp/microplex-comparison/microplex-us/src jupyter-book build docs(passes; existing docs emit 206 warnings from pre-existing untoc'd pages/local absolute links)Local limitation
The existing artifact save path still cannot run end-to-end in this local environment because pandas parquet writes require
pyarroworfastparquet, neither of which is installed here.