mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-23 13:52:01 +00:00
完善口径管理、主动调查与后台任务,修复通用问题
- 完善口径编辑、只读试运行、统一质量验证与执行语义指纹 - 增加可执行指标约束、有预算的主动调查和过程评测 - 提取发布检查、证据读取与起草服务,支持任务停止、重试和检查点恢复 - 增加版本传递影响分析,修复并发覆盖、敏感值遮罩、异常评分及页面状态问题 - 修复 SQLite 复合查询追溯和 microVM 可选依赖缺失处理 - 纳入当前设计文档及部署配置调整 验证:相关主回归 3822 项通过,4 项跳过、8 项预期失败;补充回归通过。 前端构建、文案检查及 git diff --check 通过。 全量检查仍有环境权限、PostgreSQL 可选依赖和既有部署配置、SQLite 文件基线差异导致的未通过项。
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
- 数据问题:两边查询结果上「查询区间里这张表没有数据」(快照的 no_data)fail,SQL 检查的错误级结果(快照的 checks,level
|
||||
error)warn。
|
||||
|
||||
判定:有 fail → incomparable;只有 warn → conditional;其余 comparable(有核对不了的项照实写在判定语后面)。
|
||||
判定:有 fail → incomparable;有 warn 或 unknown → conditional;全部核对通过才是 comparable。
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -437,7 +437,7 @@ def _decide(checks: list[Check], base: Span | None, target: Span | None) -> Outc
|
||||
fails = [r for c in checks if c.status == "fail" for r in c.reasons]
|
||||
warns = [r for c in checks if c.status == "warn" for r in c.reasons]
|
||||
unknown = [CHECK_NAMES[c.id] for c in checks if c.status == "unknown"]
|
||||
verdict = "incomparable" if fails else "conditional" if warns else "comparable"
|
||||
verdict = "incomparable" if fails else "conditional" if warns or unknown else "comparable"
|
||||
reasons = fails + warns
|
||||
structure = next((c.reasons[0] for c in checks if c.id == "same_query" and c.status == "fail" and c.reasons), None)
|
||||
return Outcome(checks, verdict, reasons, unknown, ph.comparable_phrase(verdict, reasons, unknown), structure,
|
||||
|
||||
@@ -41,15 +41,15 @@ MODES: dict[str, tuple[str, ...]] = {
|
||||
}
|
||||
#: 每个算子(和模式)的方法名与版本:改算法就升版本号,结论里记下实际用的那一版
|
||||
METHODS: dict[tuple[str, str | None], str] = {
|
||||
("decompose", "additive"): "decompose.additive@1",
|
||||
("decompose", "ratio"): "decompose.ratio@1",
|
||||
("decompose", "factor"): "decompose.factor@1",
|
||||
("baseline", None): "baseline.robust@1",
|
||||
("trend", None): "trend.theil_sen_mk@1",
|
||||
("differ", "rate"): "differ.rate@1",
|
||||
("differ", "mean"): "differ.welch@1",
|
||||
("differ", "rows"): "differ.welch_rows@1",
|
||||
("comparable", None): "comparable@1",
|
||||
("decompose", "additive"): "decompose.additive@2",
|
||||
("decompose", "ratio"): "decompose.ratio@2",
|
||||
("decompose", "factor"): "decompose.factor@2",
|
||||
("baseline", None): "baseline.robust@2",
|
||||
("trend", None): "trend.theil_sen_mk@2",
|
||||
("differ", "rate"): "differ.rate@2",
|
||||
("differ", "mean"): "differ.welch@2",
|
||||
("differ", "rows"): "differ.welch_rows@2",
|
||||
("comparable", None): "comparable@2",
|
||||
}
|
||||
#: agent 分析工具的名字(tools/builtin 里注册),一个算子一个工具:参数各自聚焦,模型少写错
|
||||
TOOL_NAMES: dict[str, str] = {op: f"analysis_{op}" for op in OPS}
|
||||
|
||||
@@ -523,7 +523,8 @@ def comparable_phrase(verdict: str, reasons: Sequence[str], unknown: Sequence[st
|
||||
if verdict == "incomparable":
|
||||
return "两期不可比:" + ";".join(reasons)
|
||||
if verdict == "conditional":
|
||||
return "两期有条件可比:" + ";".join(reasons)
|
||||
details = [*reasons, *([f"{'、'.join(unknown)}核对不了"] if unknown else [])]
|
||||
return "两期有条件可比:" + ";".join(details)
|
||||
return "两期可比" + (f",{'、'.join(unknown)}核对不了" if unknown else "")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user