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
Showing only changes of commit 4a7bb5fafc - Show all commits

eureka-state door: a custom message with an expected clause is not passed on

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Meta Vens 2026-11-04 23:03:19 +01:00

View file

@ -210,6 +210,7 @@ mod tests {
// A given value that itself says ", expected " is still not echoed past the last one.
assert_eq!(schema_words("invalid type: string \"x, expected CANARY\", expected a map"), "wrong type, expected a map");
// A custom message may quote anything; none of it is passed on.
assert_eq!(schema_words("CANARY, expected a slug"), "a value the schema refuses");
assert_eq!(schema_words("CANARY is not a slug"), "a value the schema refuses");
assert_eq!(schema_words("unknown variant `CANARY`"), "a value the schema refuses");
}