You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
workspace: decision-point answers carry the model's reason #3345
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).
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.
Activity
lex00 commentedon Oct 3, 2026
Design note for #3384. The model's reason is
reasonat the top level of the answer record and of a question inpoints --json, plusmodel.reasonon the model's answer. Inside an escalation entry it ismodel_reason, becausereasonthere 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.