A step's question carries options and images, and an answer carries an option, words and task files #198
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "task/3761-s3-questions-with-options-images-and-fil"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tracker: #3761
Step 3 of #3672's planspec: questions with options, images and files.
What it delivers
options: [{key, text, recommended?}]andimages: [<path in the run's home or worktree>]with an out that leads to Needs you, andSTEP_REPORT_HOWtells the agent so. Reaching Needs you, the flow run keeps the options and the image files inoptionsandimages(cleared withquestion),needs_youanswers both, and theneeds_youevent records them.POST /api/tasks/:id/filesbefore it closes the stream, taggedreferencewhen the project has that tag and untagged otherwise, and the report it sends names the file ids inimages. An image outside the home and the worktree (links followed), one it cannot read, or one sak refuses (415, 413) is dropped and named in the report'sdropped.POST /api/flow-runs/:id/answertakesanswer,optionandfiles, at least one ofanswerandoption; theanswerevent records all three. Anoptionthe question does not offer answers400 unknown_option, a file that is not a file of the run's task400 foreign_file.run_requestafilescolumn: the run request the answer queues carries the files, a run queued again keeps them, and the claim answers them. The runner fetches each throughGET /api/files/:idinto the home'sanswer/directory as<id>.<extension>, and the re-run's prompt names them there with the option's text and the words.queue_proposerlists the question's options andPROPOSER_HOWlets the Proposer's answer name one asoption; the flow run keeps it inproposal_option, theproposalevent records it,needs_you.proposalanswers it, and taking the proposal answers with it. An option the question does not offer is dropped and the text kept./proposeSuggest, and its types carryneeds_you.options,needs_you.imagesandproposal.option.Tests
tests/runner_core.sx's flow-run harness (
check_question_options) pins each acceptance case:answer/<id>.png, its bytes) and prompt;dropped, and the one in the home is a file of the task taggedreferencethatneeds_you.imagesshows;needs_you.proposal.option, and one naming an option the question does not offer keeps only its text;400 unknown_optionand400 foreign_file, one case each.tests/runner_flows.sx pins the console's line for an answer of an option alone. The schema-head checks move to version 57, and the tests that take a database back to an earlier version drop
run_request.files. This is new behaviour, not a regression fix, so there is no fail-before case.Goldens
The Suggest label re-records, in one full run of
playwright.config.ts(chromium, darwin), the goldens that show the Needs you actions; no other snapshot changes:work-the-flows.spec.ts:needs-you-question(light, dark),needs-you-run-limit,needs-you-proposed-stop,needs-you-stop-proposed,flow-refused(light, dark, phone light, phone dark),needs-you-proposal(light, dark);surfaces.spec.ts:task-asks,task-run-strip(light, dark, phone light, phone dark).The phone scenes of
needs-you-questionandneeds-you-proposaldo not show the button and are unchanged. The design check reports 0.Gates
sak-gate full, gate run 3, atb525f16d: passed (72 sx tests, release and step9_release, deploy contract, e2e 777 passed and 1 skipped, runner e2e 10 passed).