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 #1027

Closed opened this in answer to
Closed without merging

A tell can now ask for several variants, and a swipe deck records likes and dislikes in the decision ledger. This push fixes the check failure that closed #998. tsc is clean and the targeted tests pass; I did not run the full suite, so the forge's check is the first complete run.

Notes

stopped closed without shipping deploy 08f750f

opened this

A tell can now ask for several variants, and a swipe deck records likes and dislikes in the decision ledger. This push fixes the check failure that closed #998. tsc is clean and the targeted tests pass; I did not run the full suite, so the forge's check is the first complete run.

Why #998 failed. The check stopped at the type check, so the tests never ran. Adding variantGroup to Issue broke the hand-built issue fixture in test/map.test.ts. My earlier "tsc clean" was wrong: tsc had silently failed because the dependencies weren't installed here. This time I installed them and read the actual output.

Fixes in this push

  • test/map.test.ts: the fixture now sets variantGroup: null.
  • src/core/dependencies.ts: the graph's edge query had no ORDER BY. The new migration changed SQLite's plan, which flipped the edge order and failed map.test.ts ("the data keeps its shape"). The query now orders by issue number, then blocker. That is the order the test already expects, and it is now guaranteed rather than incidental.
  • map.test.ts passed on the base commit and failed with my migration. It passes again.

Feature, unchanged

  • Grouping: siblings share a group id on the issue, the pull and the run. tell and the MCP tool accept variants (1–4).
  • Deck: /<owner>/<app>/variants/<group> has one card per sibling, reusing lookCard and previewCard. Swipe right, → or the Like button likes. Swipe left, ← or the Dislike button dislikes. Ship appears on the last liked pull once every sibling is answered.
  • Ledger: each answer is a lean row with answer like or dislike.
  • Dislike: closes the pull and its tell issue with a one-line "Not chosen: …" reason the builder sees on both threads.
  • Feed: an unanswered deck appears as a choose item.

Checked here. The checks ran in the same unsandboxed shell as before. test/variants.test.ts and test/map.test.ts pass. So do the issue, run, MCP, dispatch, runner, decision and pull tests, 44 in all, and the feed and studio tests passed on the earlier push.

Left out

  • There is no un-dislike.
  • The tell form offers 1–3 variants, though the core accepts 4.
  • The files the issue names (core/decisions.ts, pages/looks.ts, pages/apps.ts, crew/dispatch.ts) are mostly untouched, because the existing helpers were enough.

To try it, tell the crew with Variants set to 2 or 3. You land on the deck, and the cards fill in as the builders open pulls.

Closes #387

commented

Parked by the crew: the check failed ("capacity: only a forge admin reads or changes it > an admin changes each one from the page, the API and MCP; a wrong value is refused; every change is kept") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs