Repository navigation
Conversation
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.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_exchangesandedit_activitiesnow 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": trueon 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.edit_activities.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.