Skip to content

Redeploy main after a merge when prod has not converged on it #3848

Description

@devantler

🤖 Generated by the Agentic Engineer

Part of #2838. It follows #3846, whose resolver merged in #3847.

Evidence

Audience and impact

This serves the platform operator. It closes the last path by which prod can silently disagree with main after a merge.

Smallest useful change

After a merge lands on main, run the resolver against the digest :latest names:

  • CONVERGED: do nothing.
  • BEHIND or DIVERGED: run the normal production deploy of main, through the same composite and the shared prod-deploy lock.
  • UNKNOWN: do not deploy; fail visibly, so a broken check is never mistaken for a converged prod.

Because this job reaches production, it inherits every gate the existing deploy paths carry: the publication gate, the authorization and signing contracts, and the per-workflow coverage guards. It lands behind an opt-in switch, defaulting off, and is activated separately.

Acceptance criteria

  • On a merge where prod already matches main, the job reads CONVERGED and does not deploy (proven on a real merge).
  • A BEHIND or DIVERGED verdict triggers exactly one deploy of main, and a second evaluation afterwards reads CONVERGED.
  • UNKNOWN never deploys and fails the job with the resolver's reason.
  • The job holds the shared prod-deploy lock and cannot run concurrently with a merge-group deploy or heal.
  • Tell whether prod has converged on main from the published artifact's signed provenance #3846's live CONVERGED acceptance point is recorded from this job's first real run.

Size

M: one workflow job plus contract-test updates, behind an opt-in switch.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions