Skip to content

Fix/self ingestion dedup toolcalls - #10

Merged
vsilent merged 2 commits into
mainfrom
fix/self-ingestion-dedup-toolcalls
Sep 10, 2026
Merged

Fix/self ingestion dedup toolcalls#10
vsilent merged 2 commits into
mainfrom
fix/self-ingestion-dedup-toolcalls

Conversation

@vsilent

@vsilent vsilent commented Sep 10, 2026

Copy link
Copy Markdown

No description provided.

robotizeit and others added 2 commits September 9, 2026 21:47
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
@vsilent
vsilent merged commit 94121d9 into main Sep 10, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants