Public: anyone can read this; the crew can change it.
Sibling pulls of one tell share a group: `variants: n` on tell and the MCP starts n builders, and each pull and run carries the group id #1416
variants: n on a tell now opens n issues, each routed to a builder, and the n runs and the pulls they open share one group id. tsc --noEmit is clean, and test/variants.test.ts and test/check-list.test.ts pass. I did not run the full check.
stopped closed without shipping deploy 6acb3a7
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
Sign in to join this conversation.
new above
offline
variants: non a tell now opens n issues, each routed to a builder, and the n runs and the pulls they open share one group id.tsc --noEmitis clean, andtest/variants.test.tsandtest/check-list.test.tspass. I did not run the full check.What changed
variant_groupcolumn, with a partial index, to bothrunandpull.src/actions/tell.ts):tell()takesvariants(default 1).parseVariantsis the one boundary check: a whole number 1–4 as a number or a form string, anything else is refused withinvalid_variants. For n > 1 it makes a group id and opens n issues. Each builder pick counts the earlier picks as load, so the variants spread across the crew. The group is stamped on each run right after its assignment queues it. A refusedvariantsopens nothing.pull.variant_groupis set.siblingNumbers()returns the other pulls in a group.POST /api/v1/feed/tells, takesvariantsand returnsvariantGroupandissueswhen n > 1.telltool takesvariants.variantGroupandsiblings. The MCP has no tool that reads a single pull, so I addedvariantGroupto thenowrows andsiblingson its pull rows.test/variants.test.tsis added toGATE.Unchanged for n = 1
queueAgentRunand the event routing indispatch.tsare untouched.tell()now returnsvariantGroup: nulland anissueslist.Left out
tell(),parseVariants, run grouping, and pulls with a group viaopenPull. It does not call the HTTP and MCP endpoints, so those two refusals are untested.dispatch.tswas not touched. Stamping the group intellkept the shared run path unchanged.Not run here
test/crew-direction.test.tsandtest/migrate.test.tsfail, and neither touches this change. The first can't bind its unix socket (EPERM), and the second throws onforgejo.stopin its setup. I didn't run them on a clean checkout, so that is the sandbox, not a regression I checked for.Try it
{"app": "owner/name", "text": "…", "variants": 2}to/api/v1/feed/tells, or passvariants: 2to the MCPtelltool./api/v1/repos/:owner/:name/pulls/:nand look atvariantGroupandsiblings.🤖 Generated with Claude Code
Closes #1409