Repository navigation
Conversation
mergePreflight decides, from the reviewed revision and one set of fresh GitHub facts, whether Merge may be offered and with which methods. A changed account, repository, PR, head or target asks for renewed confirmation. Closed, draft, conflicting, blocked, behind, unknown, queue-required and unreadable states stay unavailable, with Open in GitHub as the fallback. An offer lists only explicitly allowed methods and carries the reviewed head as expectedHeadSha. Check counts and model findings are refused as inputs. mergeOperation builds a merge operation only from an offered method. Pure and unwired: no GitHub request, read, IPC channel or UI. Refs #326. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage-agent
View coverage of the 2 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. |
|
Superseded by #416, now verified merged as The copied preflight implementation, tests and receipt match this PR at integration commit e988cdc; later changes share the merge types and document the connected adapter. The integration includes the reviewed write-race and uncertainty repairs. This closure records supersession, not live-write or human acceptance of #326. Your source worktree remains protected; no owner release or deletion is performed here. |
This adds CR-7's merge preflight (#326, AC4) as a pure, unwired decision next to the draft/intent model. It sends nothing to GitHub. The questions on #326 are still unanswered, so it adds no write code, read, IPC channel or UI.
mergePreflight(reviewed, facts)returns one of three results:expectedHeadSha.unstableis offered, with its state attached.Check counts and model findings aren't inputs. The exact-shape check refuses them, so they can't count as permission.
mergeOperationbuilds a merge operation only from a method the offer contains.Limits. No read supplies
MergeFactsyet; the merge increment adds that fresh main-owned read. The expected head SHA isn't an atomic base lock: the adapter repeats the preflight right before dispatch, and GitHub enforces its rules.Validation (local, macOS,
82b4bf1):pnpm build && pnpm test: exit 0. Desktop: 1,944 passed, 17 skipped, 0 failed.pnpm test:e2e: exit 0. 451 desktop and 7 site tests passed, 7 skipped.82b4bf1: all checks passed, including the requiredunit + e2e (macOS).This is independent of #410. Evidence. Mock only: no merge, comment, review or live write.
Refs #326, #319.
🤖 Generated with Claude Code