You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit aa696f5
Browse filesBrowse the repository at this point in the historyBrowse files
hzq
committed
Confirm caller tool results before continuing the original run
Commit a returned batch, its audit, delivery cursor and tool option together. Verify the stored results before waking a parked run or delivering them to a native adapter. Replays retain the first outputs, and waiting on SQLite no longer stalls unrelated requests.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ English · [简体中文](CHANGELOG.zh-CN.md)
4
4
5
5
## Unreleased
6
6
7
+
- Caller-tool continuations now commit a result batch, its audits, delivery cursor and tool option together. Losing the SQLite acknowledgement no longer strands the last batch; rejected or replayed returns cannot change an existing run's tool choice.
7
8
- Manual approvals and denials now confirm both the decision and its audit event before notifying waiters. Losing a SQLite acknowledgement no longer strands an already approved run or prompts the operator to vote again. Waiting for the writer does not block unrelated requests.
8
9
- An approved tool no longer stalls until timeout if SQLite commits its return to the queue but loses the acknowledgement. The gateway confirms the original wake before running the tool, without requesting approval again.
9
10
- Queued and readmitted runs now confirm the stored start event before dispatch. Waiting for SQLite no longer blocks the gateway or prevents cancelling an attached start.
Copy file name to clipboardExpand all lines: docs/harness.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,7 @@ Key points:
160
160
- Only the **consecutive**`role: "tool"` messages at the **end** of `messages` count as the results returned this time; earlier history is flattened into text as before.
161
161
- The continuation credential is the `tool_call_id`. The gateway requires that it belong to the same owner and the same data partition (or an owner-level visible key), that the key have the `invoke` scope on the agent, and that all of them belong to the same run; if any condition fails (unknown, expired, belongs to someone else), the request is treated as new, the original run is not affected, and it is not revealed whether the ID exists.
162
162
- Returning the same batch of results twice (a network retry) does not overwrite results already written; it attaches to the same run.
163
+
- Only a valid return with new results can change the run to `tool_choice: "none"`. A bad batch or read-only replay leaves the option and output position unchanged. If storage cannot confirm a return, inspect the original run ID rather than executing the caller tools again.
163
164
- Streaming (`stream: true`): when the run parks, the frames are sent in this order: the role frame (with `content: null`, if one has not been sent before), one `tool_calls` delta frame per call (`index` starting at 0), the closing frame with `finish_reason: "tool_calls"`, then (if `include_usage` was requested) the usage frame and `[DONE]`. After continuation, the stream starts from where the last one ended and does not replay earlier text.
164
165
- When the arguments the model produces do not match the caller's schema, the call is not handed to the caller. Instead `{"error":"invalid_arguments","detail":...}` is returned to the model as the tool result so that it can fix the call and try again. This differs from argument errors of published tools (`invalid_tool_arguments`, where the run fails outright): the caller's schema is not under the publisher's control.
165
166
- Names: must match `^[a-zA-Z0-9_-]{1,64}$`. The internal alias replaces `-` with `_` and prepends `t_` when the first character is not a letter; the original name is always used externally. A conflict with a published tool, workflow, delegate, `execute_graph`, or another caller tool returns `client_tool_conflict`; more than 100 published tools plus caller tools returns `client_tools_too_many`; a schema that cannot be compiled returns `invalid_client_tool`. All of these are checked before any execution. Caller tools cannot appear in `execute_graph` or in workflows.
0 commit comments