Skip to content

UAT promote follow-ups: abandon/resume race, two untested guards, no-recorded-head batches #6009

Backlog

Description

@eltmon

Follow-ups from the final independent review of #6003 (PAN-5995), comment #6003 (comment). None blocks: git and the database stay consistent in every case.

  1. Abandon vs. resume race. Journal-first abandon awaits the journal write between its safety checks and the status write. A resume that starts in that gap can finish while the abandon also goes through, so the batch ends promoted while the journal and the CLI say "abandoned". Fix: after the journal write, re-check for a running promote and re-read the row; answer 409 if either changed.
  2. Two guards have no test. Add tests that fail when removed:
    • landedStampRefusal's check for a missing recorded head;
    • the "promote running" re-check on the reconciler's containment path (uat-reconciler.ts:501).
  3. Older batches with no recorded head lose the landed-but-unstamped recovery on a normal promote. None exists under a registered project today, and --abandon-partial is the exit. Consider backfilling head_sha from the uat/* ref at first read, when the ref still matches the assembly record.

Activity

  1. added
    substrate-improvement
    on Dec 4, 2026
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

    substrate-improvement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions