Fix/self ingestion dedup toolcalls - #10
Merged
Merged
Conversation
The tool-use loop never completed a single round: ToolRegistry::execute
returned results labelled with the tool name instead of the id of the call
they answered, so every request came back 400 ("'tool_call_id' of
'check_ip_status' not found in 'tool_calls' of previous message") and the
analyzer silently fell back to the pattern analyzer. The id is now stamped
in execute(), keeping all six executors unchanged.
Bans were only inspectable over SQL. Adds GET /api/security/bans (optional
status filter, capped limit) and DELETE /api/security/bans/{ip}, backed by
list_offenses() and a new IpBanEngine::unban_ip() that removes the firewall
rule, marks the offense released, and notifies — returning false for an
address with no active block so the endpoint can answer 404.
Also installs sqlite3 in the prod image, since inspecting the database
required a package the image did not ship.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PaYiQzdsosNr2C8L34ZJg1
get_container_info built ContainerInfo::name from Config.Hostname, which is
never what `docker ps` shows: under network_mode host it is the host's
hostname (alerts read "docker:try", the server's name), and otherwise Docker
defaults it to the short container ID (alerts read "container 2ef2d927f45a
[2ef2d927f45a]", the ID twice).
Uses the inspect name instead, trimming Docker's leading slash, and keeps
hostname then short ID as fallbacks so there is always something to print.
This also repairs mail guard targeting: its patterns ("wordpress", "php",
"apache") are matched against ContainerInfo::name, and could not match a
hostname or a short ID.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PaYiQzdsosNr2C8L34ZJg1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.