Skip to content

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
mainfrom
david/g1c-bot-work
Closed

davidmckayv wants to merge 3 commits into
mainfrom
david/g1c-bot-work

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • A task thread: a Bot starting one (delegate), writing into one as the person (follow_up), or stopping one (stop).
  • A file it couldn't send: send_file pulled 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.
  • A subtask: a Bot's run_subagent started a run nobody watches, and neither its start nor its failure was on the trail.
  • A hop's chain: a hop's row named the Bot that handed the work on and nothing else, so a chain a routine started read like any other.

This gives Activity the words for the new rows and draws each with how it ended:

Row What Decision
task.delegated / task.followed_up / task.stopped Start a task / Tell a task more / Stop a task, with the task's title Task started / Sent to the task / Task stopped
task.delegate_refused / task.follow_up_refused / task.stop_refused Start a task / Tell a task more / Stop a task, with the task's title or what the Bot called it Refused (Blocked colour), with why in plain words from the row's reason code (TASK_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 code
file.send_refused Send a file, with its path Not sent (Blocked colour), with the sentence the person was told
file.send_failed Send a file Couldn't send it (Did not happen), with the sentence
agent.subagent_started Start a subtask, with its work Started
agent.subagent_finished / _handed_back / _failed Do a subtask Finished / Handed back to the conversation / Didn't finish (Did not happen), with why

A 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_refused and the three refused task actions join the Blocked view; file.send_failed and agent.subagent_failed join Did not happen. The CSV export carries every row and its payload as it does today.

Where it runs

  • New state that outlives a request? None. Words and drawing only.
  • What happens on the second replica? Nothing changes.
  • Anything serialised? No.
  • Anything fanned out to a browser? No.
  • New listener, port, or schedule? No.

Boundary and audit

  • Every acting call still goes through the gateway: resolve, decide, audit, then act.
  • New refusals and new failures each write a row. (The rows are written by the server; this draws them.)
  • Nothing new is trusted from the client that the server can resolve itself.

API and database

  • This changes nothing under api/, no app's requests, no database change and no release-policy.json.

Changelog

Activity.

  • Added: a Bot's task actions, files it couldn't send, and its subtasks. Activity shows a Bot starting, telling and stopping a task (and each of those refused, with why), a file it pulled and couldn't send (Blocked or Did not happen, with why), and each subtask's start and how it ended. A hop that a routine, a goal or a memory source started says so in Started by.

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 typecheck in app/.

…, 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.
@davidmckayv

Copy link
Copy Markdown
Contributor Author

Landed in #2869, which fused every G1 slice.

@davidmckayv davidmckayv closed this Dec 3, 2026
@davidmckayv
davidmckayv deleted the david/g1c-bot-work branch December 3, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant