Skip to content

feat: a closed question a command asks in plain text goes to the question selector - #1137

Merged
tractorjuice merged 3 commits into
mainfrom
feat/closed-questions-selector
Nov 19, 2026
Merged

tractorjuice merged 3 commits into
mainfrom
feat/closed-questions-selector

Conversation

@tractorjuice

@tractorjuice tractorjuice commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

What this does

After the food overlay's selector (#1135, PR #1136), the maintainer asked for the same in every command where it makes sense. This is the result of reading every command that asks the user something.

Of 209 commands, 37 already used the question tool and 141 ask nothing. The rest were read line by line. Twenty-seven had a closed question asked in plain text.

A choice with no safe default (25 commands)

When a project number or name matches more than one project, a query matches more than one document, or no project is named and there are several, the command now lists the candidates and shows them as choices in Claude Code's question selector:

  • /arckit:research, /arckit:datascout, /arckit:grants, /arckit:gov-reuse, /arckit:tenders, /arckit:competitors
  • /arckit:aws-research, /arckit:azure-research, /arckit:gcp-research
  • /arckit:analyze, /arckit:trello, /arckit:navigator, /arckit:impact
  • the repository audit (arckit-repo)
  • eleven commands of the G-Cloud overlay

None of the choices is marked as recommended. With no answer the command stops without writing anything; it never picks the most recent. The build harness's workers, which have nobody to ask, used to take "the first option in the list" for any question with nothing marked; for this question they now stop and name the candidates.

A question with a safe default (3 commands)

The agent inventory and agent integration commands, on finding fewer than three agents, offer "proceed" as the recommended choice. The repository audit, before it scores a codebase against a project that may describe another system, offers the standalone audit as the recommended one. Each takes its default when unanswered, as the interview pattern already says.

The reference

references/interview-pattern.md gains section 5, "A choice only the user can make": list the candidates, offer them with none recommended, and stop when nobody answers. Rules 3 and 4 (a skipped question, and a run with nobody in it, take the default) do not apply to it, and rule 4 now says so. "What this is not" becomes section 6. The reference is a shared asset, so 39 copies change with it. docs/ENFORCEMENT.md lists the rule under what is asked of the model.

Left in plain text

Other assistants

They have no such tool. "use the AskUserQuestion tool to ask" is a phrasing scripts/converter.py already turns into "ask the user", and the sentence is written to read correctly either way: "list them, then ask the user which, offering them as the choices with none marked as recommended". The research commands reach other assistants through their single-agent prompts, which are unchanged.

Review

/code-review found ten things. Nine are fixed in the second commit: the commands the first pass missed, the wording, the candidates beyond four, an argument that matches several projects, and three contradictions between the new section and the build harness, rule 4 and the repository audit. The tenth is not: CLAUDE.md describes the interview pattern as one call with a recommended option on every question, and does not mention section 5. That file is the maintainer's to change.

How it was checked

  • tests/plugin/test_closed_questions_use_the_selector.py: 58 tests on the reference, each command's sentence, what happens with no answer, the build harness, the enforcement statement and how each command's own line reads for other assistants. The last one reads every command for a plain-text "which project" in any wording found so far, so the next one fails.
  • impact, navigator and trello now read a plugin file, so they carry the Read pre-approval the other commands have.
  • pytest tests: 5,958 passed. node --test tests/plugin/*.test.mjs: 1,054 passed. Shared assets, the nested plugin layout and the orchestrator-leak check pass.
  • Not run live: a headless run cannot show a selector.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hfsx56kefipenQbkB64qZ1

…tion selector

The maintainer asked, after the food overlay's selector (#1135), for the
same in every command where it makes sense. Of 209 commands, 37 already
use the question tool and 141 ask nothing. Reading the other 31 found 14
with a closed question asked in plain text.

A choice with no safe default, in eleven commands. When a project number
or name matches more than one project, or a query more than one
document, research, datascout, grants, gov-reuse, tenders, competitors,
analyze, trello, navigator, impact and the repository audit now put the
question with the question tool: the candidates as its options, none
marked (Recommended). With no answer the command stops and lists them. It
never picks the most recent, which the six research commands already
forbade in plain text. The repository audit asks the same way before it
scores a codebase against a project that may describe another system,
and with no answer runs the standalone audit.

A question with a safe default, in two commands. The agent inventory and
agent integration commands, on finding fewer than three agents, offer
"proceed" as the (Recommended) option and take it when unanswered, as
the interview pattern says.

references/interview-pattern.md gains section 5, "A choice only the user
can make": no option recommended, rule 3 does not apply, stop and list.
"What this is not" becomes section 6. The reference is a shared asset, so
its 39 copies change with it.

impact, navigator and trello now read a plugin file, so they carry the
Read pre-approval the other commands have.

Left in plain text, because the answer is the user's own words or a file:
the name of a data product, where an HLD or DLD is, the scope of an
agent inventory, a missing bid file. The food overlay is handled in
#1136.

Other assistants: "use the AskUserQuestion tool to ask" is a phrasing
scripts/converter.py already turns into "ask the user", so the generated
copies read "ask the user which, with the projects as its options".

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hfsx56kefipenQbkB64qZ1
@tractorjuice tractorjuice added the enhancement New feature or request label Nov 19, 2026
tractorjuice and others added 2 commits November 19, 2026 17:26
A code review of PR #1137 found ten things. Nine are fixed here; the
tenth, a line in the repository's CLAUDE.md, is left for the maintainer.

Commands the first pass missed. It searched for a handful of phrasings.
The same question was also written "ask to disambiguate" (the three
cloud research commands), "Ask user which project" (the step in analyze
that does the work; only its worked example had been changed), "list the
candidate projects and ask which one" (ten commands of the G-Cloud
overlay) and "ask the user which one they mean" (its service design
command). All now use the one sentence. A test reads every command for
any of these wordings, so the next one fails.

The sentence. "with the projects as its options and none marked
(Recommended)" left "its" with nothing to refer to once the converter
had removed the tool's name. It is now "list them, then use the
AskUserQuestion tool to ask which, offering them as the choices with
none marked as recommended", which reads correctly on any assistant.
Every command lists the candidates first, so a fifth or sixth match is
seen even though the selector takes four. navigator, trello and analyze
now cover an argument that matches more than one project, not only a
missing one.

Contradictions with the new section 5.
- The build harness told a worker to take "the first option in the list"
  for any question with nothing marked. A worker now stops without
  writing and names the candidates.
- Section 4 of the reference said every question takes its default in a
  run with nobody in it. It now names the one that has none, and section
  5 says rules 3 and 4 do not apply to it.
- Section 5 listed the repository audit's "against this project, or
  standalone?" as a choice with no default, while the command gave it
  one. That question has a safe default, so it is an ordinary question
  on the pattern with the standalone audit marked (Recommended), and the
  example is gone from section 5.

docs/ENFORCEMENT.md lists the rule under what is asked of the model, as
the repository's convention for a changed reference file requires.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hfsx56kefipenQbkB64qZ1
main gained the food overlay changes (#1133, #1136), the README rewrite
(#1134) and the posting record (#1131). One file conflicted:

- CHANGELOG.md: both sides added to [Unreleased]. Kept every entry, main's
  first under each heading.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hfsx56kefipenQbkB64qZ1
@tractorjuice
tractorjuice merged commit d29fb57 into main Nov 19, 2026
3 checks passed
@tractorjuice
tractorjuice deleted the feat/closed-questions-selector branch November 19, 2026 17:41
trednets pushed a commit to trednets/arc-kit that referenced this pull request Nov 20, 2026
CLAUDE.md said every command that asks the user anything asks once, marks
one (Recommended) option per question and takes the default for anything
unanswered. Two things merged on 19 November 2026 do otherwise, and both
code reviews flagged that this file did not say so:

- a choice only the user can make (which of several matching projects or
  documents; section 5 of the reference) has no default, so the command
  lists the candidates, marks none and stops when nobody answers (tractorjuice#1137);
- the food safety overlay is listed in the interview-pattern test as
  outside the pattern: it asks as many times as the pack has questions and
  never takes a default (tractorjuice#1133, tractorjuice#1136).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hfsx56kefipenQbkB64qZ1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant