Files
codex-proxy-rs/backend/crates/gateway-core/tests/engine/mod.rs
T
736eca6593 feat(accounts): support configurable error protection rules (#547)
* feat(accounts): support configurable error protection rules

Replace capacity-specific freezing with bounded, configurable account error rules and shared attempt feedback.

Drop legacy settings without conversion and expose rule editing and freeze reasons in the admin UI.

Co-authored-by: Codex <noreply@openai.com>

* fix(accounts): preserve error protection scheduling boundaries

Keep xAI accounts excluded while recovery probes are pending, and cover
selection before and after recovery.

Separate scheduling cooldown reads from admin display details, share the
atomic Redis migration and selection logic, and use one policy revision.
Remove the unused adaptive concurrency reduction path and its tests.

Validation: 393 targeted backend tests, workspace Clippy with -D warnings,
Rustfmt, frontend type checking and build, and local service health checks.

Co-authored-by: Codex <noreply@openai.com>

---------

Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-10-28 21:50:51 +08:00

21 lines
440 B
Rust

//! 执行引擎各阶段与端口合同的测试入口
pub(crate) mod account_protection;
mod admission;
mod connection;
mod continuation;
mod coordinator;
mod execution;
mod extensions;
mod middleware;
mod policy;
mod provider;
mod response_control;
use gateway_core::engine::AttemptTrigger;
#[test]
fn attempt_trigger_names_should_match_ops_event_contract() {
assert_eq!(AttemptTrigger::AccountRetry.as_str(), "account_retry");
}