refactor: reorganize backend module boundaries

This commit is contained in:
jxxghp
2026-08-14 19:53:33 +08:00
parent fe0b444ceb
commit 369d7d6448
584 changed files with 2423 additions and 2275 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
"""
有界重试预算的端到端行为验证。
app/services/history.py 的查重闸真值表与计数器 API 已在
app/application/history.py 的查重闸真值表与计数器 API 已在
tests/test_transfer_history_gate.py 逐项覆盖,本文件换一个角度:把「同一源路径
连续多个监控事件」串成一条时间线,验证瞬时故障能在预算内自愈、耗尽预算后被拦、
以及删除整理记录会让预算重新满额,贴近真实使用场景。
@@ -9,8 +9,8 @@ tests/test_transfer_history_gate.py 逐项覆盖,本文件换一个角度:
from types import SimpleNamespace
from app import schemas
from app.platform.config import settings
from app.services.history import (
from app.runtime.config import settings
from app.application.history import (
HistoryGateAction,
clear_transfer_failures,
evaluate_history_gate,