The MCP admit goes through the one strict door; refusals name the field #5

Merged
eureka merged 8 commits from hands/eureka-body-typed-research into main 2026-11-04 22:16:42 +00:00
Owner

Fix batches h4 and h5 of cut typed-research, Soul s3 and s4. The MCP no longer drops unknown keys, and a decode failure names its path in both doors, never a value. Stored documents replay clean through it.

?? Generated with Claude Code

Fix batches h4 and h5 of cut typed-research, Soul s3 and s4. The MCP no longer drops unknown keys, and a decode failure names its path in both doors, never a value. Stored documents replay clean through it. ?? Generated with [Claude Code](https://claude.com/claude-code)
The strict decode that refuses unknown keys by path moves from the huginn
binary to eureka_state::door; the CLI re-exports it and the MCP admit takes
documents as a Value (schema still Vec<PipelineDocument>) and decodes through
it, answering InvalidInput before any call. A research note with extra keys is
refused by path and nothing is stored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Documents decode one by one through serde_path_to_error, so the refusal says
documents[i].path and what is wrong, in the schema's words: a field name, the
allowed variants, the expected type. Serde's own text quotes the input, so it
is not passed through.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eureka merged commit 809a93c4a6 into main 2026-11-04 22:16:42 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Huginn!5
No description provided.