From d811a480eaba818d2d563b51c523bcad73ad0639 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 14 May 2026 06:22:18 +0100 Subject: [PATCH] Remove raw JSON finding mapper hatch --- epiphany-codex-bridge/src/results.rs | 30 ---------------------- epiphany-core/src/lib.rs | 2 -- epiphany-core/src/surfaces/mod.rs | 2 -- epiphany-core/src/surfaces/role_result.rs | 9 +++++-- notes/fresh-workspace-handoff.md | 5 +++- state/ledgers.msgpack | Bin 112209 -> 112450 bytes state/map.yaml | 5 +++- 7 files changed, 15 insertions(+), 38 deletions(-) diff --git a/epiphany-codex-bridge/src/results.rs b/epiphany-codex-bridge/src/results.rs index e7b63771..0a1e6a93 100644 --- a/epiphany-codex-bridge/src/results.rs +++ b/epiphany-codex-bridge/src/results.rs @@ -12,20 +12,6 @@ use epiphany_core::EpiphanyRoleResultRoleId; use epiphany_core::EpiphanyRoleSelfPersistenceReview as CoreEpiphanyRoleSelfPersistenceReview; use epiphany_core::EpiphanyRoleSelfPersistenceStatus as CoreEpiphanyRoleSelfPersistenceStatus; use epiphany_core::EpiphanyRoleStatePatchDocument; -use epiphany_core::interpret_reorient_finding; -use epiphany_core::interpret_role_finding; - -pub fn map_epiphany_reorient_finding( - raw_result: serde_json::Value, - job_error: Option, - item_error: Option, -) -> ThreadEpiphanyReorientFinding { - map_protocol_reorient_finding(interpret_reorient_finding( - &raw_result, - job_error, - item_error, - )) -} pub fn map_protocol_reorient_finding( finding: EpiphanyReorientFindingInterpretation, @@ -46,22 +32,6 @@ pub fn map_protocol_reorient_finding( } } -pub fn map_epiphany_role_finding( - role_id: ThreadEpiphanyRoleId, - raw_result: serde_json::Value, - job_error: Option, - item_error: Option, -) -> ThreadEpiphanyRoleFinding { - let finding = interpret_role_finding( - map_core_role_result_role_id(role_id), - &raw_result, - None, - job_error, - item_error, - ); - map_protocol_role_finding(role_id, finding) -} - pub fn map_protocol_role_finding( role_id: ThreadEpiphanyRoleId, finding: EpiphanyRoleFindingInterpretation, diff --git a/epiphany-core/src/lib.rs b/epiphany-core/src/lib.rs index 877c73f4..004a2db6 100644 --- a/epiphany-core/src/lib.rs +++ b/epiphany-core/src/lib.rs @@ -256,8 +256,6 @@ pub use surfaces::derive_pressure_view; pub use surfaces::derive_role_board; pub use surfaces::derive_scene; pub use surfaces::imagination_role_state_patch_policy_errors; -pub use surfaces::interpret_reorient_finding; -pub use surfaces::interpret_role_finding; pub use surfaces::interpret_runtime_reorient_worker_result; pub use surfaces::interpret_runtime_role_worker_result; pub use surfaces::modeling_role_state_patch_policy_errors; diff --git a/epiphany-core/src/surfaces/mod.rs b/epiphany-core/src/surfaces/mod.rs index 6c7a4bff..17aa237e 100644 --- a/epiphany-core/src/surfaces/mod.rs +++ b/epiphany-core/src/surfaces/mod.rs @@ -104,8 +104,6 @@ pub use role_result::EpiphanyRoleSelfPersistenceStatus; pub use role_result::build_reorient_acceptance_bundle; pub use role_result::build_role_acceptance_bundle; pub use role_result::imagination_role_state_patch_policy_errors; -pub use role_result::interpret_reorient_finding; -pub use role_result::interpret_role_finding; pub use role_result::interpret_runtime_reorient_worker_result; pub use role_result::interpret_runtime_role_worker_result; pub use role_result::modeling_role_state_patch_policy_errors; diff --git a/epiphany-core/src/surfaces/role_result.rs b/epiphany-core/src/surfaces/role_result.rs index 4641e456..c3e2c9c8 100644 --- a/epiphany-core/src/surfaces/role_result.rs +++ b/epiphany-core/src/surfaces/role_result.rs @@ -106,7 +106,8 @@ pub struct EpiphanyReorientAcceptanceBundle { pub investigation_checkpoint: Option, } -pub fn interpret_role_finding( +#[cfg(test)] +fn interpret_role_finding( role_id: EpiphanyRoleResultRoleId, raw_result: &serde_json::Value, _legacy_state_patch_parse_error: Option, @@ -172,7 +173,8 @@ pub fn interpret_role_finding( } } -pub fn interpret_reorient_finding( +#[cfg(test)] +fn interpret_reorient_finding( raw_result: &serde_json::Value, job_error: Option, item_error: Option, @@ -468,6 +470,7 @@ pub fn review_role_self_patch( } } +#[cfg(test)] fn decode_role_self_patch( role_id: EpiphanyRoleResultRoleId, patch: &serde_json::Value, @@ -833,6 +836,7 @@ fn reorient_finding_investigation_checkpoint( checkpoint } +#[cfg(test)] fn json_string_field(value: &serde_json::Value, key: &str) -> Option { value .get(key) @@ -840,6 +844,7 @@ fn json_string_field(value: &serde_json::Value, key: &str) -> Option { .map(str::to_string) } +#[cfg(test)] fn json_string_array_field(value: &serde_json::Value, key: &str) -> Vec { value .get(key) diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index a852263f..5d432316 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -969,7 +969,10 @@ The typed worker-result boundary is now stricter. `roleResult` and CultCache documents to generic `EpiphanyRuntimeJobResult` lifecycle receipts. If a job completed without the typed worker-result document, the bridge reports backend-unavailable and names the missing document instead of laundering summary -strings into a reviewable finding. +strings into a reviewable finding. The old public bridge helpers that accepted +raw JSON role/reorient findings are deleted; the only remaining raw-result +interpreters in `epiphany-core` are private test fixtures for legacy contract +coverage. That husk has now been cut from `codex-core`. The root core crate no longer exports `plugins`, no longer depends on `codex-core-plugins` or `codex-plugin`, diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index a6c8dc86f52f1d363fb98ca53c1831638e6d114f..7291c148158c6dd5bf2451c053838076465e36be 100644 GIT binary patch delta 213 zcmcckhV9Thwh78i+c`F>PGe-$Xx_uPeGemJ{g&xp)-npRnOYecTA55|Ok&h#TsQq= zIioOtQc-3~da6QEV!5tYu)p8*eXNXP^$NL(1qG=^#nvEkg`(8r(wq{7%)FA+qJpB- zlEjkC{5*xsVuieXg`E7n^wc7SM1_LVq@2uTg`(2DlFZyx1;+qSg~YrRh2qkpvdps7 zVuk#?oJxhnVugaD%(BFiRE6aHqEv;F)Z!8#t1PuBF+EkUVT+N0k(sW6DX*@fNr(Z& Hu_jRf2e(Q> delta 36 ucmV+<0Nek