Skip to content

Make heavy-test validation identity exact and event-aware - #617

Merged
GraciousGazelles merged 6 commits into
mainfrom
fix/w12216-validation-summary-sha
Aug 15, 2026
Merged

GraciousGazelles merged 6 commits into
mainfrom
fix/w12216-validation-summary-sha

Conversation

@GraciousGazelles

@GraciousGazelles GraciousGazelles commented Aug 14, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Heavy-test lanes can execute one commit while a validation artifact records a different identity. Pull-request events may expose a synthetic merge SHA, manual branch or tag inputs can move between metadata resolution and lane checkout, and a hard-coded event policy can mislabel manual evidence as pull-request proof. Those mismatches make an otherwise green run unusable as exact-candidate evidence.

What changed

  • Resolve every supported checkout target to one immutable commit SHA before lane fan-out.
  • Bind pull-request runs to the pull-request head SHA.
  • Resolve manual full-SHA, branch, lightweight-tag, annotated-tag, and qualified-ref inputs to the peeled commit actually checked out.
  • Reject unsupported events and unsafe manual ref inputs before Git or output emission.
  • Preserve the requested ref only as display provenance while all 13 lane consumers receive the resolved immutable SHA.
  • Emit an event-specific proof policy:
    • pull_request_exact_head_lane_fingerprint for pull-request events
    • workflow_dispatch_exact_head_manual for manual events
  • Add real-Git regression fixtures for local and remote-only SHAs, branches, qualified refs, lightweight and annotated tags, ref movement, unsafe inputs, missing commits, output immutability, and complete downstream wiring.

Validation

  • Exact candidate: 4cb0dd8527cb196a1df1c88b7e5c89bb34982327
  • Hosted blocking-ci run 31850462568: required gates passed on the exact candidate; planner fixture suite reported 244 passing tests.
  • Hosted manual proof run 31850469799: success at the exact candidate.
  • validation-summary artifact 9237362051 records:
    • ci_proof_v1.head_sha=4cb0dd8527cb196a1df1c88b7e5c89bb34982327
    • ci_proof_v1.event_policy=workflow_dispatch_exact_head_manual
    • ci_proof_v1.lane=codex.workflow-ci-sanity
    • overall_conclusion=success
    • zero failed lanes
  • validation-lane-summary-codex-workflow-ci-sanity artifact 9237358367 records a successful lane with exit code 0.
  • Fresh exact-tree review ladder completed cleanly: three Luna coverage reviews, Terra whole-candidate synthesis, and Sol final ranking.

Scope

This change does not add workflow triggers or permissions, and it does not treat manual proof as pull-request or merge-queue proof.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the CI planner tests in .github/scripts/test_ci_planners.py to assert that checkout_sha="${PR_HEAD_SHA}" is present in the run script of the metadata step. There are no review comments, so I have no feedback to provide.

@GraciousGazelles GraciousGazelles changed the title Bind heavy-test summary to resolved PR head Make heavy-test validation identity exact and event-aware Aug 14, 2026
@GraciousGazelles
GraciousGazelles marked this pull request as ready for review August 14, 2026 23:57
@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Aug 15, 2026
Merged via the queue into main with commit b648a7d Aug 15, 2026
96 checks passed
@GraciousGazelles
GraciousGazelles deleted the fix/w12216-validation-summary-sha branch August 15, 2026 00:13
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.

1 participant