Skip to content

Let the person type an amount the assistant does not know - #882

Open
ccomb wants to merge 2 commits into
mainfrom
typed-amounts
Open

ccomb wants to merge 2 commits into
mainfrom
typed-amounts

Conversation

@ccomb

@ccomb ccomb commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

An assistant that does not know the amount of a line it adds has three choices today. It can make a figure up, ask in the conversation and write it itself, or send no amount and get a JSON error. In all three cases the history cannot tell a figure the person gave from one the assistant proposed.

edit_exchanges and edit_activities now accept an added line with its amount left out, or null. A client that shows forms gets one form with a number field per missing line, titled with the supplier or flow and its unit. The edit then runs with what the person typed. The journal stores "typed": true on those lines only, and the history shows them as "typed by the user". No request field carries the mark. Like the acceptance of terms, it trusts the client to answer only what the person typed.

  • The edit is judged with 1 in every gap before the form, so a refused edit is refused before anyone types: unknown supplier, read-only database, a note on one element of edit_activities.
  • Zero or an empty field brings the form back with the reason. Decline or close change nothing.
  • A client that shows no form gets an error naming each line, telling the assistant to ask the person.
  • Terms are recorded before the amounts are asked: a later round carries only the amounts answer.
  • HTTP still requires amount. set_amounts, prices and masses are unchanged.

How to test: connect an assistant to a local engine with an uploaded database, ask it to add an input "without knowing the amount", type the amount in the form, then read get_database_history. Already run: an old-era client gets the plain refusal, and a client with no screen (claude -p) gets the closed-form refusal, and nothing is written.

An assistant adding a line to a process can now leave its amount out, or
send null. When its client shows forms, the engine asks the person for each
missing amount in one form and runs the edit with what they typed. The
journal marks those lines, and the history says "typed by the user", so a
figure the person gave stands apart from one the assistant proposed.

The edit is judged with 1 in every gap before any form, so nobody types a
number for an edit refused anyway. Zero or an empty field brings the form
back with the reason. A client that shows no form is told which lines lack
an amount and to ask the person. The terms of a database are recorded before
the amounts are asked, since answers are not carried from one round to the
next. Lines added over HTTP still need their amount.
The pass before the form now translates edit_activities as the tool does,
so a refusal names every faulty process at once instead of the first one.
The form shows the unit the edit will take for a supplier line that names
none: what the supplier produces first. The line schemas accept null, as
their text says, and the HTTP operation's description no longer tells its
readers they may leave an amount out.
@ccomb ccomb added the agent-reviewed pr-cycle ran label Nov 26, 2026

This branch has not been deployed

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

Labels

agent-reviewed pr-cycle ran

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant