Repository navigation
Activity: a Bot's task actions, a file it couldn't send, its subtasks, and where a hop's chain began - #2851
Closed
davidmckayv wants to merge 3 commits into
Closed
Activity: a Bot's task actions, a file it couldn't send, its subtasks, and where a hop's chain began#2851davidmckayv wants to merge 3 commits into
davidmckayv wants to merge 3 commits into
Conversation
…, and where a hop's chain began A Bot starting, telling and stopping a task thread, a file it pulled from its computer and never sent, and a subtask that started and never finished now have rows on the trail. Activity says each in words with how it ended: - Start a task, Tell a task more, Stop a task, with the task's title. - Send a file: Not sent (drawn as blocked) or Couldn't send it (did not happen), with the sentence the person was told. - Start a subtask and Do a subtask: Started, Finished, Handed back to the conversation, or Didn't finish (did not happen) with why. A hop's row now carries what started its chain (`payload.origin`), so a hop a routine, a goal or a memory source started reads "Handed on by Notes, started by a routine" in Started by. Tested by app/tests/audit-bot-work-rows.test.tsx, and in Chromium and WebKit, light and dark, wide and on a phone, by app/tests/audit-bot-work-layout.test.tsx.
A Bot's delegate, follow_up or stop that was refused before anything happened (one answer's cap on new tasks, a task nobody could find, the person's words fitting another task, a task already over) now has a row. Activity draws it as Start a task, Tell a task more or Stop a task, Refused in the refusal colour, with the sentence the Bot was told, and names the task by its title or, where none was found, by what the Bot called it. The three join the Blocked view.
A refused task action's row now keeps a reason code (cap_reached, no_match,
several_match, already_over, missing_brief and the rest), never the sentence
the Bot was told, which is written for the model ("Call again with the
taskId..."). Activity says each code in plain words from TASK_REFUSAL_WORDS
("The Bot had already started as many tasks as one reply can.", "No task in
this conversation matched."), and shows nothing for a code it has no words
for, never the code itself.
2 tasks done
Contributor
Author
|
Landed in #2869, which fused every G1 slice. |
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.
What this changes
Nothing anyone or any Bot does in OpenBot should leave no trace. Four things a Bot does on its own had no row on Activity, or a row that lost something:
delegate), writing into one as the person (follow_up), or stopping one (stop).send_filepulled the file (that row read "Allowed"), then refused it as too large, or couldn't keep it. Nothing more was said, so it read as sent.run_subagentstarted a run nobody watches, and neither its start nor its failure was on the trail.This gives Activity the words for the new rows and draws each with how it ended:
task.delegated/task.followed_up/task.stoppedtask.delegate_refused/task.follow_up_refused/task.stop_refusedTASK_REFUSAL_WORDS: "The Bot had already started as many tasks as one reply can.", "No task in this conversation matched."). Never the sentence the Bot was told, and never the codefile.send_refusedfile.send_failedagent.subagent_startedagent.subagent_finished/_handed_back/_failedA hop's row now carries
payload.origin, what started its chain. Started by reads "Handed on by Notes, started by a routine" (or a goal, or a memory source).file.send_refusedand the three refused task actions join the Blocked view;file.send_failedandagent.subagent_failedjoin Did not happen. The CSV export carries every row and its payload as it does today.Where it runs
Boundary and audit
API and database
api/, no app's requests, no database change and norelease-policy.json.Changelog
Activity.
Proof
bun test app/tests/audit-bot-work-rows.test.tsx: the page draws each row's What, Bot and Decision, the task title and subtask work under What, "Handed on by Notes, started by a routine", and no stored name. Red before this change (the rows read "Task delegated", "Bot subagent failed", "Send file", all "Allowed"), green after.OPENBOT_APP_BROWSER=1 OPENBOT_APP_ENGINES=chromium,webkit bun test app/tests/audit-bot-work-layout.test.tsx: 8 of 8 in Chromium and WebKit, light and dark, 1440px and 390px. No sideways scroll; Not sent in the refusal colour, Couldn't send it and Didn't finish in the warning colour. Screenshots checked by eye against the existing Activity rows: same columns, type, spacing and colours as a computer action's row.bun test audit activity copy words(333 pass),bun run lint,bun run typecheckinapp/.