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 eeeded257b - Show all commits

eureka-state door: drop the unused Display on Refusal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Meta Vens 2026-11-04 22:20:56 +01:00

View file

@ -8,8 +8,6 @@
//! Both consumers, the `huginn` CLI and the MCP server, admit through this
//! door and no other.
use std::fmt;
use cultnet_rs::Selection;
use huginn_mind::eureka_pipeline::PipelineDocument;
use serde::Serialize;
@ -31,13 +29,6 @@ impl Refusal {
}
}
impl fmt::Display for Refusal {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let (Self::Invalid(detail) | Self::Internal(detail)) = self;
f.write_str(detail)
}
}
/// A batch: a JSON array of `{kind, value}` documents, or one such object.
pub fn documents(text: &str) -> Result<Vec<PipelineDocument>, Refusal> {
let value = parse(text)?;