mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-07 08:27:12 +00:00
Consolidation pass over the fallback feature, no intended behavior changes beyond noted validation and event-shape cleanups: - Unify the two parallel notice types: FallbackPlanNotice is gone; ModelFallbackNotice now owns the runtime NoNearbyReasoningLevel case and the shared ChainEmpty wording. Notices emit through a new Emitter::notice_scoped with their own level, and each distinct notice is emitted once per run instead of on every LLM call. - Move canonical_model_id onto Catalog so chain keys are written and read through one function; reject provider-qualified fallback keys, which could never match at dispatch and were silently dead config. - Type FallbackTarget as ProviderId/ModelId, removing repeated ProviderId::new re-wrapping at every use site. - Derive FallbackPlan's current route from a position index instead of storing current/requested_controls copies; advance() no longer has unreachable None branches. - Bundle the agent invocation's live state (session, bridge, lease, forwarder, accounting) into LiveAgentInvocation; failover_agent_session drops from 21 parameters to 7 and the six copies of the abort/discard/classify teardown collapse into two methods. - Share one route_request builder between one_shot and its failover loop; complete_one_shot_request takes the request by value instead of deep-cloning the message payload per call. - Event::Failover carries FailoverProps directly; the props' original route and attempt fields are now required, and reasoning efforts are typed ReasoningEffort instead of strings. - Reuse RunModelSettings/RunModelControls in fabro-api via with_replacement, add the missing controls property to the OpenAPI schema, regenerate the TS client, and add the type-identity/JSON parity test. - Smaller cleanups: ReasoningEffort::closest_supported uses enum discriminants; ModelFallbackPolicy gains len(); resolve_model_fallbacks takes a provider slice; duplicate-target filtering lives only in the resolver. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| agent_session_activated_props_round_trip.rs | ||
| automation_round_trip.rs | ||
| billed_token_counts_round_trip.rs | ||
| command_termination_round_trip.rs | ||
| completion_message_round_trip.rs | ||
| completion_usage_round_trip.rs | ||
| cost_source_round_trip.rs | ||
| create_completion_request_round_trip.rs | ||
| diff_stats_round_trip.rs | ||
| diff_summary_round_trip.rs | ||
| environment_round_trip.rs | ||
| event_envelope_round_trip.rs | ||
| git_context_round_trip.rs | ||
| interview_option_round_trip.rs | ||
| interview_question_record_round_trip.rs | ||
| mcp_server_round_trip.rs | ||
| mcp_transport_round_trip.rs | ||
| model_costs_round_trip.rs | ||
| model_features_round_trip.rs | ||
| model_limits_round_trip.rs | ||
| model_round_trip.rs | ||
| model_test_mode_round_trip.rs | ||
| pair_round_trip.rs | ||
| parallel_branch_id_round_trip.rs | ||
| pending_interview_record_round_trip.rs | ||
| pre_run_push_outcome_round_trip.rs | ||
| principal_round_trip.rs | ||
| provider_id_round_trip.rs | ||
| provider_round_trip.rs | ||
| pull_request_round_trip.rs | ||
| question_type_round_trip.rs | ||
| reasoning_output_round_trip.rs | ||
| run_billing_stage_round_trip.rs | ||
| run_event_round_trip.rs | ||
| run_failure_round_trip.rs | ||
| run_integrations_round_trip.rs | ||
| run_model_settings_round_trip.rs | ||
| run_projection_round_trip.rs | ||
| run_sandbox_round_trip.rs | ||
| run_summary_round_trip.rs | ||
| sandbox_details_round_trip.rs | ||
| sandbox_inventory_round_trip.rs | ||
| sandbox_services_round_trip.rs | ||
| secret_metadata_round_trip.rs | ||
| secret_type_round_trip.rs | ||
| server_settings_round_trip.rs | ||
| session_contract_round_trip.rs | ||
| stage_completion_round_trip.rs | ||
| stage_handler_round_trip.rs | ||
| stage_id_round_trip.rs | ||
| stage_model_usage_round_trip.rs | ||
| stage_outcome_round_trip.rs | ||
| stage_projection_round_trip.rs | ||
| stage_state_round_trip.rs | ||
| status_round_trip.rs | ||
| submit_answer_request_round_trip.rs | ||
| system_integrations_round_trip.rs | ||
| variable_round_trip.rs | ||
| workflow_settings_round_trip.rs | ||