Add tool-confirmation module: Spring AI 2.1 human-in-the-loop tool calls (requiresConfirmation, ToolCallConfirmationPolicy, ToolCallDecisions pause and resume), a server-side approval store with approver check, replay guard and audit log, and an approver page over SSE and htmx; 17 transcripts. The model is a scripted ChatModel; the htmx page was not opened in a browser. Spring Boot 4.1.3, Spring AI 2.1.0, Java 25.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b5x1ufsjyvu9RJFUUb
This commit is contained in:
Claude
2026-11-24 05:57:07 +05:30
parent 7612fca082
commit 45d83826da
68 changed files with 2917 additions and 0 deletions
@@ -0,0 +1,10 @@
# Three refused resumes
1. no decision for call_1:
IllegalArgumentException: Every tool call of the reply needs a decision; missing: [call_1]
2. a decision for a key that is not in the reply (call_99):
IllegalArgumentException: No tool call has the key 'call_99'; the reply's tool call keys: [call_1]
3. allowed call, but its tool is not on the Prompt:
IllegalArgumentException: The prompt does not carry the tool 'bookFlight' of the allowed call 'call_1'; an allowed call runs only with a tool of the prompt
ledger after all three: []