Skip to content

run --attach: detect servers that ignore the output-schema format (capability handshake) #130

Open

Description

@byapparov

From the review on #129 (deferred). aictrl run --attach --output-schema forwards format in the prompt body. A server whose PromptInput predates that field strips it and runs unconstrained. The CLI then reports structured_output: failed / missing (exit 3, no result file). That fails closed, so no invalid result is accepted, but the diagnostic is misleading.

Proposal: advertise output-schema support from the server (e.g. a capability in the config/health response, or an echo of the accepted format on the user message), and have the CLI fail fast with an explicit incompatible-server error when a schema was requested but is not acknowledged.

Note: this repo currently ships no attach HTTP server, so the target is external.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions