Public: anyone can read this; the crew can change it.
MCP `flag_winner`: make an A/B flag's winning variant the default, through makeWinnerDefault #5440
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For: closing an A/B test from a harness, with the same guard as the page.
makeWinnerDefault(src/actions/flag_winner.ts) accepts only the variant the read-out offers (winnerOffer). It opens the clean-up issue first, so a refusal leaves the flag as it was.Done:
flag_winner{ name, winner: "on"|"off" }callsmakeWinnerDefault(app, user, name, winner)and answers{ name, winner, issue: number, says }. Its refusal is the action's own message.Files: src/http/mcp.ts, docs/MCP.md, test/mcp-flag-winner.test.ts. Risk: #5417 (
flags) and #5424 (flag_set) sit nearby; any order works.Risk: test/mcp-size.test.ts caps tools/list, so keep the description to one short sentence.