Skip to content

fix: derive runtime source commit from observed product head#457

Merged
ozand merged 1 commit into
mainfrom
fix/456-source-commit-provenance
May 2, 2026
Merged

fix: derive runtime source commit from observed product head#457
ozand merged 1 commit into
mainfrom
fix/456-source-commit-provenance

Conversation

@ozand
Copy link
Copy Markdown
Owner

@ozand ozand commented May 2, 2026

Summary

  • Fixes runtime source provenance for archive/deployed runtimes that cannot read local git metadata.
  • Adds fallback from workspace/state/self_evolution/current_state.json.observed_product_head.commit into _runtime_source_fingerprint().
  • Preserves env and git provenance precedence; only uses observed product head when env/git commit is unavailable.
  • Adds regression for the eeepc deployed-runtime shape that caused source_commit_missing.

Fixes #456

Test Plan

  • python3 -m pytest tests/test_runtime_coordinator.py::test_runtime_source_fingerprint_falls_back_to_observed_product_head_when_git_is_unavailable tests/test_runtime_coordinator.py::test_runtime_source_fingerprint_prefers_explicit_release_env_for_archived_runtime -q → 2 passed
  • python3 -m pytest tests/test_runtime_coordinator.py tests/test_promotion_workflow.py -q → 67 passed
  • python3 -m pytest tests -q → 696 passed, 5 skipped

Live follow-up required after merge

  • Deploy/restart local cycle/dashboard collection.
  • Run one cycle with current_state observed product head available.
  • Verify /api/mission-control.headline no longer reports Blocked: source_commit_missing for the active candidate, or report the next blocker if promotion advances.

@ozand ozand merged commit 3b9235a into main May 2, 2026
3 checks passed
@ozand ozand deleted the fix/456-source-commit-provenance branch May 2, 2026 11:05
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.

Persist source_commit provenance for self-evolving promotion readiness

1 participant