Skip to content

ACP question forms ignore requestedSchema.required: optional fields must be answered and count toward the 4-field limit #6131

Closed

Description

@sunnymodi21

1. Summary

With the rebuilt ACP adapter (bb--provider-acp-next), bb turns an ACP elicitation/create form into user questions, but it never reads requestedSchema.required. Every property becomes a question that must be answered, and every property counts toward the 4-question limit. Factory Droid's built-in AskUser tool shows both problems:

  • A one-question form makes the user also answer an optional "Other answer" text field. Leaving it blank declines the whole form.
  • A four-question form (8 properties, 4 of them optional) is declined outright with "the form has 8 fields and bb shows at most 4", and Droid reports Tool execution cancelled by user.

Expected: optional properties can be left blank and are left out of the response.

2. Versions and environment

  • bb desktop app 0.46.1 (macOS 26, darwin 25.5.0, arm64), "ACP providers [New adapter]" (bb--provider-acp-next) enabled.
  • Provider: Factory Droid 0.245.0 over ACP (droid exec --output-format acp), registered by the bb-droid plugin 0.3.2 as acp-droid.
  • Code checked against main at 6e5fb6e.

3. Steps to reproduce

Live (1 question):

  1. Enable "ACP providers [New adapter]" and have acp-droid registered.
  2. bb thread spawn --project <id> --provider acp-droid --model gpt-6-luna --prompt 'Call the AskUser tool exactly once with a single multiple-choice question: "Which color?" with options "Red" and "Blue". After you get the answer, reply "You picked: <answer>".'
  3. bb thread interactions list <thread> shows 2 questions for the one asked: question_1 (Red / Blue / Other answer) and question_1_other (free text).
  4. bb thread interactions answer <interaction> <thread> --choice question_1=option_1

Live (4 questions): any Droid turn where AskUser asks 4 questions with options.

Unit-level, at the exact code path: call planAcpElicitation with Droid's form shape:

{"mode":"form","message":"Droid needs your answers to continue.","requestedSchema":{"type":"object","required":["question_1"],"properties":{
  "question_1":{"type":"string","title":"Color","description":"Which color?","oneOf":[{"const":"option_0","title":"Red"},{"const":"option_1","title":"Blue"},{"const":"other","title":"Other answer"}]},
  "question_1_other":{"type":"string","title":"Color: Other answer","description":"Enter your answer here if you select Other answer."}}}}

It plans two questions, and toResponse with only question_1 answered returns {action:"decline"}. The same shape repeated for question_1…question_4 (8 properties, required lists 4) returns unsupported.

4. Expected vs actual

Actual (step 4, 1 question):

Error: Missing answer for question 'question_1_other'.

Actual (4 questions), thread warning and Droid's tool result:

The agent asked a question bb could not show
The request was declined because the form has 8 fields and bb shows at most 4.
Error: Tool execution cancelled by user

Expected:

  • Properties not listed in requestedSchema.required can be left unanswered and are left out of content.
  • The limit counts what is actually shown, so a 4-question Droid form fits.

5. Evidence

  • planAcpElicitation never reads required. It counts all properties against USER_QUESTION_MAX_QUESTIONS (L272-L277), plans one question per property (L279-L297), and declines the form when any planned field lacks a decodable answer (L310-L321).
  • Droid marks only the main field required. Its AskUser → elicitation builder (droid 0.245.0) adds question_N to required and adds question_N_other without it:
    let l=`question_${i.index}`; s.push(l); …
    o[`${l}_other`]={type:"string",title:`${i.topic}: Other answer`,description:"Enter your answer here if you select Other answer."}
    return {mode:"form", …, requestedSchema:{type:"object",properties:o,required:s}}
  • Droid also asks for the form only if the client advertises clientCapabilities.elicitation.form, which the new adapter does. Under provider-acp it cancels its own question instead.
  • Threads: thr_mfrrdvhkjk (1 question, answered end to end after filling the "Other" field with n/a); thr_csg8pbr3in (4 questions, declined). Investigation: bb thread thr_7tdk79zn5d.

6. What you ruled out

7. Suggested priority and effort

Medium; low effort. Honoring required in planAcpElicitation fixes the "must answer optional fields" part for every ACP agent, whatever it names its fields. Optional fields would allow an empty answer, be left out of content, and possibly not count toward the limit. Adding the _other / "Other answer" convention next to #6032's __other folding fixes the split question and the 8-field limit for Droid. Workaround today: fill the "Other" field with any text, and tell Droid in AGENTS.md to ask at most 2 questions per AskUser call.

AGENT GENERATED

Activity

  1. added theissue type on Oct 22, 2026
  2. added
    providers
    provider-acp
    confirmed-repro
    on Oct 22, 2026
  3. bb-slop-cop commented on Oct 22, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Medium priority · Low effort; added providers and provider-acp. All classification values were previously missing.
    • Reproduction report: REPRODUCED, high root-cause confidence; label: confirmed-repro.
    • Root cause: ACP planning ignores requestedSchema.required, counts raw properties, and declines missing answers. Shared interaction validation also requires every displayed question to be answered.
    • Verification: both regression assertions fail as expected in two clean trusted-main checkouts; the existing ACP suite passes (535 passed, 4 skipped).
    • No PR: a complete repair requires a cross-subsystem optional-question contract or a product decision about skip/presentation behavior, outside the simple-fix safety gate.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-reproprovider-acpproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions