pub mod a029;
pub mod controller;
pub mod edit_apply;
pub mod edit_planner;
pub mod envelope;
pub mod executor;
pub mod gates;
pub mod golden_replay;
pub mod handler;
pub mod ledger;
pub mod planner;
pub mod runtime;
pub mod status;
pub mod surface;
#[cfg(feature = "server")]
pub mod surface_list;
pub use crate::stel_core::{calibration, ledger_store, types};
#[cfg(test)]
mod calibration_summary_tests;
pub use a029::{
A029_T2_PASS_THRESHOLD, A029SpikeResults, A029T2Row, A029Verdict, T2Equivalence,
classify_t2_equivalence, evaluate_a029_verdict, normalize_spike_results,
};
pub use calibration::{
CORRECTION_FACTOR_CAP, CalibrationVerdict, NO_CORRECTION_FACTOR, PredictionSample,
SC002_MAE_REDUCTION_MARGIN, StelCalibrationSummary, TUNING_MIN_CORPUS, TUNING_MIN_SAMPLES,
TUNING_REVIEW_MIN_EVENTS, apply_factor, compute_calibration_verdict,
format_calibration_section, render_calibration_verdict, summarize_calibration,
validate_candidate,
};
pub use controller::{
COMPACT_INVOKE_TOKENS, COMPACT_SCHEMA_TOKENS, EconomicsBreakdown, SERVE_MARGIN_TOKENS,
STATIC_MANUAL_FLOOR, STATIC_RESPONSE_FLOOR, active_tuning_in_force, build_estimate,
detect_pff_bypass, estimate_economics, estimate_economics_tuned, evaluate_edit_plan,
evaluate_plan, evaluate_plan_with_session,
};
#[cfg(feature = "server")]
pub use edit_apply::run_pre_apply_gates;
pub use edit_apply::{
PreApplyOutcome, ResolvedEditSymbol, apply_requested, format_already_applied_body,
format_apply_metadata, run_pre_apply_gates_on_ready,
};
pub use edit_planner::{
EditValidationError, build_edit_plan, edit_plan_summary_line, validate_edit_request,
};
pub use envelope::{TrustEnvelopeInput, format_trust_envelope};
pub use executor::{
COMPACT_SERVE_EXPLORE_MAX_TOKENS, COMPACT_SERVE_FIND_REFERENCES_FILE_LIMIT,
COMPACT_SERVE_FIND_REFERENCES_MAX_PER_FILE, ServedStepResult, apply_compact_serve_caps,
apply_degrade_to_plan, chain_failure_decision, extract_served_step_bodies, format_bypass_body,
format_cache_hit_body, format_multi_step_serve_body, format_partial_multi_step_serve_body,
format_serve_step_meta, format_single_step_serve_body, is_degrade, is_enforced_bypass,
is_pff_bypass_body, route_tool_label, serve_chain_outcome_class, serve_step_failed,
serve_step_outcome, should_skip_legacy_dispatch, tools_executed,
};
pub use gates::{
BatteryResults, BatteryRow, BatteryRowStel, GateStatus, Phase2GateReport, Phase2GateStatuses,
compute_phase2_gates, format_gate_report_markdown, h3_scope_rows, is_small_file_task_id,
normalize_battery_results, phase2_minimum_gates_pass,
};
pub use golden_replay::{
GOLDEN_ROUTES_FIXTURE, GROUNDED_ECONOMICS_BYPASS_ROW_IDS, GoldenCorpusClassification,
GoldenReplayCategory, ReplayValidation, S4_EXIT_ROW_IDS, S4_REPLAY_CORPUS,
classify_golden_corpus, classify_golden_row, corpus_for_row_id, corpus_marker_for_row_id,
load_golden_rows, parse_golden_rows, request_for_golden_row, s4_exit_rows, supported_pff_rows,
supported_serve_rows, validate_pff_replay_output, validate_s4_replay_output,
validate_serve_replay_output,
};
pub use handler::{
DecisionEnvelopeMetrics, StubServeMetrics, envelope_for_decision, envelope_for_stub_serve,
finalize_symforge_output, format_preview_body, format_preview_body_for_plan,
format_preview_estimate, metrics_for_decision, prepend_envelope, stub_plan_summary,
};
pub use ledger::{
LedgerCaptureInput, LedgerEnvelopeMeta, SessionLedger, build_ledger_event, capture_ledger,
format_ledger_envelope_line,
};
pub use planner::{
ParamDisposition, build_plan, classify_param_dispositions, confidence_label,
is_find_fusion_plan, plan_summary_line,
};
pub use status::{
DEFERRED_ITEMS, DurableLedgerState, DurableLedgerSummary, PHASE0_EVIDENCE_COMMIT,
PHASE0_GO_COMMIT, ProxyOwnedStatusLines, SUPERSEDED_ITEMS, StelStatusContext,
format_durable_ledger_line, format_last_ledger_lines, format_stel_status,
render_proxy_owned_lines,
};
pub use surface::{
COMPACT_SURFACE_TOOL_COUNT, COMPACT_TOOL_NAMES, CORE_TOOL_NAMES, CompactSurfaceTool,
};
#[cfg(feature = "server")]
pub use surface_list::{
compact_surface_list_schema_bytes, compact_surface_tools, symforge_edit_schema_bytes,
};
pub use types::{
AdmissionDecision, CalibrationState, CoreToolName, GoldenRouteRow, IndexRef, IntentBucket,
RouteConfidence, StelBypassBody, StelCacheBody, StelDecision, StelEditIntent, StelEditOp,
StelEditRequest, StelEstimate, StelExecution, StelExecutionTotals, StelLedgerEvent, StelPlan,
StelPlanStep, StelRequest, StelStatusDetail, StelStatusRequest, StelStepExecution,
SymforgeCallInput,
};