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

2026-11-04

Meta Vens
eureka-state door: a custom message with an expected clause is not passed on
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 23:03:19 +01:00
Meta Vens
eureka-state door: pin schema_words by behaviour
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 22:58:42 +01:00
Meta Vens
eureka-state tests: an unknown kind names documents[i].kind
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 22:47:07 +01:00
Meta Vens
eureka-state door: a decode refusal names the field path, never a value
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>
2026-11-04 22:45:48 +01:00
Meta Vens
eureka-state door: drop the unused Display on Refusal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 22:20:56 +01:00
Meta Vens
eureka-state door: tidy test module
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 22:10:10 +01:00
Meta Vens
eureka-state: close the moved door's test modules
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 22:07:59 +01:00
Meta Vens
eureka-state: one text door; the MCP admit decodes through it
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>
2026-11-04 22:06:41 +01:00