Skip to content

Add Stage 2 package identity specs#1042

Merged
anth-volk merged 6 commits into
mainfrom
agent/stage-2/pr-2a-specs-explicit-identity
May 22, 2026
Merged

Add Stage 2 package identity specs#1042
anth-volk merged 6 commits into
mainfrom
agent/stage-2/pr-2a-specs-explicit-identity

Conversation

@anth-volk
Copy link
Copy Markdown
Collaborator

Fixes #1041

Summary

  • add Stage 2 calibration-package specs for artifact paths and target-config identity
  • include target-config path, checksum, and mode in Stage 2 reuse and contract parameters
  • record calibration_package_contract.json as a durable Stage 2 manifest output and document the new Stage 2 waypoints

Validation

  • uv run --no-sync python -m py_compile policyengine_us_data/calibration_package/specs.py policyengine_us_data/calibration/unified_calibration.py policyengine_us_data/stage_contracts/calibration_package_schema.py policyengine_us_data/stage_contracts/calibration_package.py modal_app/pipeline.py modal_app/remote_calibration_runner.py
  • uv run --no-sync ruff format --check ...
  • uv run --no-sync ruff check ...
  • uv run --no-sync pytest tests/unit/calibration_package/test_specs.py tests/unit/test_calibration_package_stage_contract.py tests/unit/test_pipeline_docs_extractor.py tests/unit/test_pipeline_source_contracts.py
  • uv run --no-sync pytest tests/unit/test_remote_calibration_runner.py tests/unit/test_pipeline_doc_guards.py
  • uv run --no-sync --with pyyaml python scripts/run_quality_guards.py
  • make lint

Note: the full selector-emitted pytest bundle was attempted locally, but this macOS x86_64 environment cannot complete the full dependency path cleanly (uv sync --dev is blocked by the torch==2.9.1 wheel/platform constraint) and the selector bundle then stalled during collection after manually adding missing local dependencies. The focused changed-file unit tests above passed.

@anth-volk anth-volk force-pushed the agent/stage-2/pr-2a-specs-explicit-identity branch 2 times, most recently from b71effc to 158f759 Compare May 22, 2026 13:29
@anth-volk anth-volk force-pushed the agent/stage-2/pr-2a-specs-explicit-identity branch from 0d0734b to 66cb8c5 Compare May 22, 2026 14:27
@anth-volk anth-volk marked this pull request as ready for review May 22, 2026 15:00
@anth-volk anth-volk merged commit 5e5afbe into main May 22, 2026
13 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.

Stage 2 specs and explicit target config identity

1 participant