Skip to content

workspace: decision-point answers carry the model's reason #3345

Closed

Description

@lex00

A model decider returns a reason with its answer, but chant drops it, so neither the answer record nor a reader (hud's decision-point prompt) can show why the model chose. Add an optional reason: string to WireAnswer (choice, noul, score) in packages/core/src/workspace/points.ts and to the decide wire format (op/decide-backend.ts docs); keep it in the decider chain's proposed outcome and in each model escalation entry; add reason to point-answer.schema.json (top level and in the escalation definition) so points ask writes it into the answer record and points --json returns it; accept it from points ask --response. Consumer: arugula-salad/studio#249 (the lobby's decide endpoint now returns the reason, studio PR #314).

Activity

  1. added
    area:workspace
    on Oct 3, 2026
  2. lex00 commented on Oct 3, 2026

    @lex00
    ContributorAuthor

    Design note for #3384. The model's reason is reason at the top level of the answer record and of a question in points --json, plus model.reason on the model's answer. Inside an escalation entry it is model_reason, because reason there is already the required field saying why the decider did not answer, and readers show it. A workspace's own copy of the answer schema is closed, so chant writes the reason only when that copy declares the field. An older copy keeps no reason and the write still succeeds. Consumers copy point-answer.schema.json anew to turn it on.

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

    area:workspace

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions