fix(agent-loop): tighten parallel tool-call safety
This commit is contained in:
@@ -823,12 +823,17 @@ function renderLifecycle(): string {
|
||||
` Driver->>Hooks: ${mermaidCode('agent/step-result')} waterfall`,
|
||||
` Driver->>Session: ${mermaidCode('assistant/message')}`,
|
||||
' Driver->>Tools: group calls by executionMode',
|
||||
' loop started tool calls (bounded pool)',
|
||||
` Driver->>Session: ${mermaidCode('tool/call')} pending audit`,
|
||||
' Driver->>Tools: ordered pre / pooled dispatch / ordered post',
|
||||
' Tools-->>Session: tool-owned events when applicable',
|
||||
' loop bounded rolling pool until group drains',
|
||||
' opt capacity available for an unstarted call',
|
||||
` Driver->>Session: ${mermaidCode('tool/call')} pending audit`,
|
||||
' Driver->>Tools: ordered pre / pooled dispatch',
|
||||
' Tools-->>Session: tool-owned events when applicable',
|
||||
' end',
|
||||
' opt next model-order result is ready',
|
||||
' Driver->>Tools: ordered post',
|
||||
` Driver->>Session: ${mermaidCode('tool/result')}`,
|
||||
' end',
|
||||
' end',
|
||||
` Driver->>Session: ${mermaidCode('tool/result')} in model order`,
|
||||
` Driver->>Session: ${mermaidCode('step/end')}`,
|
||||
` Driver->>Hooks: ${mermaidCode('agent/turn-continuation')} waterfall`,
|
||||
` Driver->>Hooks: ${mermaidCode('agent/turn-stop')} serial terminal checkpoint`,
|
||||
|
||||
Reference in New Issue
Block a user