Registry Mirror
Skip to content

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Why

Agents trained on other tools write their recommendation into a choice label: - [ ] Foo (Recommended), the way Claude Code's AskUserQuestion teaches. The card then showed "(Recommended)" as label text, with no Recommended tag and no Accept recommended. The answer also lost "(your recommendation)".

What changed

  • The parser reads a marker in a label (packages/core/question-block.ts, questionChoiceWithoutRecommendedMarker). This applies only when the block has no Recommended: line; an empty one counts as a line.
    • Markers it reads: (recommended) / [recommended] at the end of a label, with or without its own emphasis, or a description that is the bare word or starts with a bracketed marker.
    • Pick one needs exactly one marked choice; pick any takes any number.
    • The marker leaves the label but never the question's key. The raw label stays an alias, so an answer stored against it still selects the choice. A label that would become a twin of another choice's label keeps its marker.
    • A bare "Recommended" followed by words is prose, not a marker.
    • The separator written after a bracketed description marker ((Recommended): …, [recommended] — …, (Recommended) - …) leaves with the marker. This was the review follow-up.
  • The Inbox store adds the marker-free label to choices stored before this change, so a click on the card's choice is not refused.
  • A send-result nudge, server-side for every host (Claude Code, Pi, OpenCode through the agent tool, Codex and others through MCP).
    • When a question has no Recommended: line and a label carries the marker, send_message's and submit_guide's results add recommendedInLabelText, and the structured field recommended_in_label: [keys].
    • It never refuses the send.
  • send_message's result hints are built as a list, the same commit as the compaction PR. The two PRs merge cleanly in either order (verified both ways on scratch branches).

Tests

  • packages/core/question-block.recommended-marker.test.ts
  • packages/shared/inbox/store-recommended-marker.test.ts
  • packages/server/inbox-recommended-marker.test.ts
  • QuestionBlock.test.tsx

All pass, and so do the server's MCP and Inbox suites.

Not changed, reported only: packages/ui/components/goal-setup/GoalSetupSurface.tsx:1309 exports its own (recommended) label convention.

Approved by the owner in the Inbox, 2026-10-27

With no Recommended: line, a choice whose label ends with (recommended) /
[recommended] (or whose description is or starts with one) is the
recommendation: exactly one on pick one, any on pick any. The marker leaves
the label (never the key); the raw label stays an alias, and the Inbox's
storedChoices adds the marker-free label to records stored before, so the
card's pick is not refused. Blocks with a Recommended: line are unchanged.
…e label

A question with no Recommended: line whose recommendation is marked in a
label adds recommendedInLabelText to the result and recommended_in_label:
[keys] to structuredContent. Never a refusal.
…ption marker; long-thread fixture uses Recommended:

Review follow-ups: a block with any Recommended: (or arrow) line, even an
empty one, never reads a label marker; `Foo — Recommended: no, too slow` is
prose (the description is a marker only as the bare word or led by a
bracketed marker); the QuestionChoice.recommended doc comment is updated;
the long-thread test fixture writes a clean label and a Recommended: line.
…rker-nudge

# Conflicts:
#	packages/server/inbox-mcp.ts
…d are nudged; leading and colon markers read

- With a Recommended: line naming something, the line decides and every
  recommended marker leaves its label (the raw label stays an alias, and a
  marked label is matched by its plain label too): no 'Foo (Recommended)
  (your recommendation)', no second recommendation on the card.
- [Recommended] Foo, (Recommended) Foo, (Recommended): Foo and
  Foo (Recommended): why are markers; 'Use the recommended defaults',
  '(not recommended)' and '(recommended by vendor)' stay prose.
- ParsedQuestion.recommendedMarker; the send result's nudge fires on any
  question written with a marker, with or without the line
  (inboxQuestionKeysWithRecommendedMarker).
- plannotator inbox --help: keep choice labels plain; mark the pick only with
  the Recommended: line (not in QUESTION_AUTHORING_GUIDE: send_message's
  description has 8 characters to spare before Claude Code's 2,048 cut).
@backnotprop
backnotprop merged commit 48b5969 into main Oct 27, 2026
38 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant