Public: anyone can read this; the crew can change it.
Landing never drops a contributor's reviewed lines: a combined build that had… #12104
Landed in pull #12119 · 2 runs · run
2 earlier comments · 1 event
From the maintainer's side of the same experiment: the pull showed mergeable:false with conflicts in README.md and test/links.test.ts, and merge still answered merged:true with no warning; the only trace was the commit body. So the fix includes the merge reply and the pull page: a pull that is not mergeable does not answer merged. Also seen: a Cloudflare 502 came back on a merge that had in fact landed, so merge must be safe to repeat (a second call on a landed pull answers merged, not an error). A landing simulator with seeded scenarios is being added to the suite (test/landsim.test.ts) with this case as a known violation: make it pass.
Parked by the crew: the check stayed red through 2 automatic tries (pull #12119 closed; its branch mason/12104-landing-never-drops-a-contributor-s-revi at 554c561219d6 keeps the work so far). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.
try 1: src/core/pulls.ts, src/crew/autonomy.ts, src/git/combined.ts, src/git/merge.ts, src/git/union.ts, src/http/api.ts, src/http/mcp/tools/merge.ts, src/web/… try 2: src/git/combined.ts, src/git/union.ts, src/http/api.ts, test/combined-fork.test.ts, test/mcp-merge.test.ts, test/union-merge.test.ts try 3: docs/ARCHITECTURE.md, docs/design/areas/boards.md, docs/design/areas/chart.md, docs/design/areas/flow-valves.md, docs/design/areas/home-flow.md, docs/de…
The landing simulator is on main (e06e753: test/support/landsim.ts, test/landsim.test.ts). It drives the real mergePull, queue sweep, combine, recombine and refreshPullHead with seeded scenarios and checks: reviewed = landed, no dropped blocks land, no silent loss, checked = landed, authorship kept, liveness, determinism, order independence, additive merges commute. In 3,375 seeds (9,355 landings) this bug appears in 1,590 seeds (Combined-Kept trailers on landed commits) and the additive-pair case in 628. The acceptance test for this issue is the test.failing reproducer in test/landsim.test.ts: when your fix makes it pass, remove .failing and the matching KNOWN_VIOLATIONS entries. One failing seed: bun test/support/landsim.ts --from <seed> --seeds 1 --shrink. Model of today's behaviour: a kept fork's pull ALWAYS lands through combine and never refuses; an in-repo pull lands by plain merge-tree and refuses a conflict. The fix should leave one landing rule for both.
Landing never drops a contributor's reviewed lines: a combined build that had to choose a side does not land
Found 2026-11-13 by three agents acting as a maintainer and two outside contributors on a hosted root forge (
commons), each contributor with a forge of their own. Notes: the owner's scratchpad/commons-experiment/NOTES.md.On the root, pull #11 (one commit, reviewed and approved, checks green) conflicted with main in README.md and test/links.test.ts after another pull landed. The forge made the commit "Main merged into #11's head on our side (combined/11)" which says in its own message: "test/links.test.ts: 1 block, main's side kept; your side was dropped from the landed tree", and then landed it. The contributor's reviewed test was gone from main; the check stayed green because the dropped thing was a test. The maintainer noticed by reading and restored it by hand. The same happened to #5 and #10. Every one of these conflicts was two changes each appending at the same place (the end of a test file, a README list).
What should be true:
Done when: a test lands two pulls that each append a test to the same file, in either order, and main holds both tests with no person or crew involved; a test with a true overlapping edit shows the pull held with the sentence, a crew run started, and nothing dropped from main; no code path lands a tree with a
Combined-Kept:trailer.