Public: anyone can read this; the crew can change it.
The pull API and the MCP say whether a pull merges: `mergeable` and `conflicts` on every reading of a pull #1413
commented
Parked by the crew: the check failed ("the gate's list > every test/*.test.ts is in exactly one list, and every entry exists") and the decider saw no point in another try (pull #1415 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.
Sign in to join this conversation.
Part of #586 (P0 Trust), the first piece of #1177.
pullStatus(src/core/pulls.ts) already computesmergeableandconflictswithgit merge-tree --write-tree(src/git/merge.ts), and the pull page and studio already read it. The JSON API and the MCP do not.Done looks like.
GET …/pulls/Nand the pull list carrymergeable(boolean) andconflicts(paths) for open pulls, computed against the base's current head and cached byhead:baseoids so a list stays fast.mergeable: falsewith the path; after the base moves to resolve it,mergeable: trueandconflicts: [].GATEinscripts/gate.tsin the same push (bun test test/check-list.test.tsis green); the last two tries went red on exactly this.Files.
src/http/api.ts,src/http/mcp.ts,src/core/pulls.ts, and one new test file.