Keep a record of each run's tool calls so bots can't claim work they never did
The wrap-up turn now gets the run's actual tool calls, each bot message keeps them as bot_messages.tool_log, and history follows recorded bot messages with an [App record] line. The coordinator also gets update_bot in workspaces, so it can fill a bot's core prompt from there. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -319,6 +319,10 @@ export type BUN_SQLITE_COBBLE_BOT_MESSAGES = {
|
||||
* The message this one replies to, quoted above it. Not a foreign key, so deleting the quoted message only drops the quote
|
||||
*/
|
||||
reply_to_message_id?: number | "";
|
||||
/**
|
||||
* JSON `[{ name, ok }]`: every tool call the run behind a bot message made (names only, never arguments), told to the bot with the message in later turns so it can't build on work it never did. Null: not recorded (user messages, interim ones, older messages)
|
||||
*/
|
||||
tool_log?: string;
|
||||
}
|
||||
|
||||
export type BUN_SQLITE_COBBLE_BOT_MESSAGE_REACTIONS = {
|
||||
|
||||
Reference in New Issue
Block a user