Skip to content

Keep Check re-run allowances across the complete Delivery - #527

Merged
JacobStephens2 merged 2 commits into
mainfrom
issue-526
Oct 7, 2026
Merged

JacobStephens2 merged 2 commits into
mainfrom
issue-526

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

Keep each full head's factory Check re-run allowance for the complete Delivery, including later rounds and refused Self-merge reconciliation. Fresh CI watches still use the Base commit selected by the current clean merge.

Delivery
  Repair loop
    Check re-run decisions (pending Repair facts + consumed heads)
      unchanged Repair head -> consume allowance -> Check re-run
      later assessment -> fresh CI watch
      consumed head + own failures -> Declined CI fix

Closes #526

Evidence

  • Before: cargo test --bin thirdshift delivery::repair_loop::tests::own_failures_after_a_refused_self_merge_do_not_refresh_a_heads_check_re_run -- --exact failed: one head received 2 CI-fix Repairs and 2 Check re-runs after the refused Self-merge.
    After: the same regression passes: 1 CI-fix Repair and 1 Check re-run, followed by the existing Declined CI fix cause, with a fresh watch against the round's rewound Base commit.
  • 37 Repair loop tests, 19 CI module tests, 23 CI integration tests and 22 Merge run integration tests pass. Coverage includes inherited-only reconciliation/Base fixes, upstream moves, revisiting a consumed head, distinct full heads sharing a display prefix, changed-head ordinary watches and fresh allowances in a new Delivery.
  • Linux validation: cargo check --all-targets, cargo fmt --check, and cargo clippy --all-targets -- -D warnings pass. Full cargo test: 1492 passed, 0 failed, 1 existing ignored test across 39 test binaries, including Spec run integration coverage.

Test seams

  • Repair loop take_to_goal, through its existing Outside adapter: Delivery-long per-head allowances, fresh head/Base comparisons, bounded CI-fix Repairs and Check re-runs, and refused Self-merge reconciliation.
  • Existing CI, Merge run and Spec run interfaces retain their behavior coverage.

Review

Reviewed against main at 5ec943dcb0c4dfe26aa9f5d98916aa947f48ca42 with separate Standards and Spec reviewers. The Standards finding about duplicated test observation logic was addressed by shared helpers; the Spec review found no findings. Both reviewers read both changed files, CONTEXT.md and src/delivery/repair_loop.rs. Changed files left unread: none.

Unaddressed findings

Standards

None.

Spec

None.

Merge Danger

Door: two-way

Private, in-process history; no persistence or migration. Reverting restores the previous behavior.

Blast Radius: Delivery

Later own failures on a consumed head now take the existing Failed run preservation/drafting path before another CI-fix Repair. CI request reconciliation, Inherited failures, Repair/upstream-move budgets and exact watched-head Self-merge keep their existing interfaces.

Built with codex · gpt-6.1-sol · xhigh

@JacobStephens2
JacobStephens2 merged commit fee9a58 into main Oct 7, 2026
13 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-526 branch October 7, 2026 20:14
@JacobStephens2 JacobStephens2 mentioned this pull request Oct 8, 2026
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.

Deepen Check re-run decisions for the complete Delivery

1 participant