Skip to content

land: a fresh stage F retry after the fenced push cannot check out the deleted land ref #697

Open

Description

@khaliqgant

Follow-up from #695 (kjgbot review).

Stage F's push fence deletes the run's land ref in the same atomic push that lands the squash. Cloud materializes every stage with a mode: "head" grant on that land ref at the pinned SHA (landRunRepositoryRequest; relayflow-v2-repository.ts:321-330 throws Repository head branch missing / Repository head authority mismatch).

So if stage F is reaped after a successful push and before its state write, a fresh hosted retry fails at checkout, before the flow's landedHere reconciliation can run. Outcome: the change landed exactly once and correctly, but Cloud records the run failed instead of landed. No double landing and nothing wrong on the base; only the run's recorded state is wrong.

Window: seconds, after a successful push. Not a blocker for the first auto runs.

Options:

  • Cloud reconciles before relaunching F: if the land ref is gone and the base carries this run's Land-Run trailer, finish the run landed without launching.
  • Or an authorized recovery checkout for F (base-branch grant) plus coverage through the real grant/materialization boundary, keeping the generic head-grant fail-closed behaviour.

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions