Public: anyone can read this; the crew can change it.

Variants of one intent: sibling pulls grouped under one tell, and a swipe deck that records likes and dislikes in the decision ledger #998

Closed opened this in answer to
Closed without merging

A tell can now ask for up to four variants. Their pulls are tied together and a deck lets you like or dislike each one. tsc is clean and the new test/variants.test.ts passes (7 tests).

Notes

stopped closed without shipping deploy b95860a

opened this

A tell can now ask for up to four variants. Their pulls are tied together and a deck lets you like or dislike each one. tsc is clean and the new test/variants.test.ts passes (7 tests). I ran test/studio.test.ts, the feed tests and the MCP tests as well. Those pass too, 213 tests in all. I did not get a clean full bun test run here. The one full run was sandboxed, which cannot open the unix sockets the server tests need, so 515 tests failed for that reason. The forge's check will be the first complete run.

What changed

  • Grouping. issue.variant_group and run.variant_group tie siblings to their tell. tell(…, variants) opens one issue per candidate under a shared group id and gives each to a builder, spreading them across the crew by load. The runner puts the pull it opens in its issue's group.
  • Asking for variants. The studio tell form has a 1–3 variants select. The MCP tool takes variants. The core accepts 1–4, and anything else is refused.
  • Deck. GET /:owner/:name/variants/:group shows one card per sibling, reusing lookCard and previewCard. Swipe right or → likes, swipe left or ← dislikes, and the two buttons post the same form. Once every sibling is answered, the last one liked gets Ship.
  • Ledger. A like or dislike is a decision row of kind lean, answer like or dislike, about the pull. The page needs write access, and the POST is same-origin checked.
  • Dislike. It closes the pull and that candidate's tell issue. It leaves "Not chosen: <reason>" on both threads, as one line capped at 200 characters. The default reason is "another variant of this tell suited better".
  • Feed. A deck with unanswered cards appears as a choose feed item linking to it.
  • The logic is in src/crew/variants.ts and the page in src/web/studio/deck.ts.

Left out

  • The issue's file list (core/decisions.ts, pages/looks.ts, pages/apps.ts, crew/dispatch.ts) is mostly untouched. Decisions are written through the existing recordDecision, and the deck calls the existing look and preview cards unchanged.
  • The tell form offers 1–3 variants, though the core allows 4.
  • There is no un-dislike. A closed sibling stays closed.
  • Siblings go to a builder each by load. I did not add a rule for which builder gets which alternative.
  • I did not add a README note. No dependencies were added.

Try it Tell the crew with Variants set to 2 or 3. You land on /<owner>/<app>/variants/<group>, and the cards appear as the builders open pulls. A second person tells the crew with 2 or more variants and answers the cards with ← and →.

Closes #387

commented

Parked by the crew: the check failed and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs