Keep coordinator result status core-shaped
This commit is contained in:
parent
ee62efc885
commit
e0ac14bc26
5 changed files with 8 additions and 29 deletions
|
|
@ -118,30 +118,6 @@ fn map_core_crrc_reorient_action(
|
|||
}
|
||||
}
|
||||
|
||||
pub fn map_core_crrc_result_status(
|
||||
status: ThreadEpiphanyReorientResultStatus,
|
||||
) -> CoreEpiphanyCrrcResultStatus {
|
||||
match status {
|
||||
ThreadEpiphanyReorientResultStatus::MissingState => {
|
||||
CoreEpiphanyCrrcResultStatus::MissingState
|
||||
}
|
||||
ThreadEpiphanyReorientResultStatus::MissingBinding => {
|
||||
CoreEpiphanyCrrcResultStatus::MissingBinding
|
||||
}
|
||||
ThreadEpiphanyReorientResultStatus::BackendUnavailable => {
|
||||
CoreEpiphanyCrrcResultStatus::BackendUnavailable
|
||||
}
|
||||
ThreadEpiphanyReorientResultStatus::BackendMissing => {
|
||||
CoreEpiphanyCrrcResultStatus::BackendMissing
|
||||
}
|
||||
ThreadEpiphanyReorientResultStatus::Pending => CoreEpiphanyCrrcResultStatus::Pending,
|
||||
ThreadEpiphanyReorientResultStatus::Running => CoreEpiphanyCrrcResultStatus::Running,
|
||||
ThreadEpiphanyReorientResultStatus::Completed => CoreEpiphanyCrrcResultStatus::Completed,
|
||||
ThreadEpiphanyReorientResultStatus::Failed => CoreEpiphanyCrrcResultStatus::Failed,
|
||||
ThreadEpiphanyReorientResultStatus::Cancelled => CoreEpiphanyCrrcResultStatus::Cancelled,
|
||||
}
|
||||
}
|
||||
|
||||
fn map_protocol_coordinator_source_signals(
|
||||
signals: EpiphanyCoordinatorSourceSignals,
|
||||
) -> ThreadEpiphanyCoordinatorSignals {
|
||||
|
|
@ -287,7 +263,7 @@ pub async fn derive_epiphany_coordinator_status(
|
|||
recommendation: &CoreEpiphanyCrrcRecommendation,
|
||||
roles: Vec<EpiphanyRoleBoardLane>,
|
||||
reorient_decision: Option<&CoreEpiphanyReorientDecision>,
|
||||
reorient_result_status: ThreadEpiphanyReorientResultStatus,
|
||||
reorient_result_status: CoreEpiphanyCrrcResultStatus,
|
||||
reorient_finding: Option<&CoreEpiphanyReorientFinding>,
|
||||
checkpoint_present: bool,
|
||||
) -> EpiphanyCoordinatorStatus {
|
||||
|
|
@ -383,7 +359,7 @@ pub async fn derive_epiphany_coordinator_status(
|
|||
crrc_action: recommendation.action,
|
||||
modeling_result_status,
|
||||
verification_result_status,
|
||||
reorient_result_status: map_core_crrc_result_status(reorient_result_status),
|
||||
reorient_result_status,
|
||||
};
|
||||
let decision = map_epiphany_coordinator(
|
||||
state_status,
|
||||
|
|
@ -561,7 +537,7 @@ pub async fn select_epiphany_coordinator_automation(
|
|||
&crrc_recommendation,
|
||||
roles.roles,
|
||||
Some(&reorient_decision),
|
||||
map_protocol_crrc_result_status(reorient_result.status),
|
||||
reorient_result.status,
|
||||
reorient_result.finding.as_ref(),
|
||||
input.state.investigation_checkpoint.as_ref().is_some(),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -345,7 +345,7 @@ pub async fn map_epiphany_view_response(
|
|||
recommendation,
|
||||
roles.roles.clone(),
|
||||
core_reorient_decision.as_ref(),
|
||||
reorient_result_status,
|
||||
reorient_result.status,
|
||||
reorient_result.finding.as_ref(),
|
||||
checkpoint_present,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ remembers doctrine; the branch remembers the blade.
|
|||
- Role/reorient result response inputs now use core `EpiphanySurfaceSource`; `ThreadEpiphanyRolesSource` / `ThreadEpiphanyReorientSource` are response projection only.
|
||||
- Changed-field derivation now inspects typed `EpiphanyRoleStatePatchDocument` directly. The bridge no longer converts typed patches back into `ThreadEpiphanyUpdatePatch` merely to calculate changed fields.
|
||||
- View-lens orchestration now uses bridge-native `EpiphanyViewLens` selectors. App-server converts `ThreadEpiphanyViewLens` at the request wall, and the bridge maps back only for the legacy response echo.
|
||||
- Coordinator status derivation now receives core `EpiphanyCrrcResultStatus` for reorient result state; `ThreadEpiphanyReorientResultStatus` is projection-only for coordinator/view responses.
|
||||
- MCP remains JSON because MCP is a JSON protocol. The latest processor cut only moved MCP refresh/OAuth/status/resource/tool-call route handling into `codex_message_processor/mcp_routes.rs`, reducing the root processor to about 8,977 lines; it did not claim MCP payloads are CultNet or make MCP an Epiphany-owned runtime contract.
|
||||
- Codex account auth route handling remains in vendored Codex but now lives in `codex_message_processor/auth_routes.rs`: API-key login, ChatGPT browser/device-code/external-token login, logout, auth status, account, rate limits, and add-credits nudge handling. This preserves Codex ownership of subscription auth while cutting the root processor to about 8,094 lines.
|
||||
- One-off command execution and command stream write/resize/terminate route handling now live in `codex_message_processor/command_routes.rs`; `CommandExecManager` remains the lifecycle owner, while the root processor is about 7,800 lines.
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -366,7 +366,9 @@ current_status:
|
|||
converting patches back through `ThreadEpiphanyUpdatePatch` projection.
|
||||
View-lens orchestration now uses bridge-native `EpiphanyViewLens` selectors;
|
||||
app-server converts `ThreadEpiphanyViewLens` at the request wall and the
|
||||
bridge maps back only for the legacy response `lenses` echo.
|
||||
bridge maps back only for the legacy response `lenses` echo. Coordinator
|
||||
status derivation now receives core `EpiphanyCrrcResultStatus` for reorient
|
||||
result state instead of protocol `ThreadEpiphanyReorientResultStatus`.
|
||||
The bridge still depends on vendored Codex for app-server protocol DTOs and
|
||||
absolute path validation, so the purification is not done.
|
||||
next_action: Continue Codex starvation and CultNet liberation by cutting bridge-internal `ThreadEpiphany*` authority. Prioritize role-result/reorient-result DTO coupling next: derive typed CultNet surfaces first, push JSON-RPC projection into app-server, and keep MCP/OpenAI JSON only at their true protocol/text edges. Do not add compatibility adapters unless they protect a named ownership invariant.
|
||||
|
|
|
|||
Reference in a new issue