feat(v2): 实现SQLite对公租赁经验加工与卡片预审轨迹闭环

This commit is contained in:
2026-10-01 13:38:03 +08:00
parent 9c351b08d3
commit fa4163b2d0
60 changed files with 2111 additions and 59 deletions
+2
View File
@@ -15,6 +15,7 @@ from __future__ import annotations
from contracts.prescreen import EventOutcome
from contracts.trajectory import ReviewOutcome, TrajectoryStep
from services import assistant_store as store
from services.trajectory_details import step_details
KIND = "review_outcome"
DEFAULT_PAGE = 50
@@ -82,6 +83,7 @@ def replay(db, project_id: str, run_id: str, cursor: str | None = None,
"run_id": run_id, "project_id": project_id, "status": run.get("status"),
"snapshot_id": run.get("input_snapshot_id"),
"steps": window,
"details": {step["id"]: step_details(run).get(step["id"], {}) for step in window},
"next_cursor": str(end) if end < len(steps) else None,
"read_only": True,
"note": "轨迹只记录可观察动作与版本;不包含模型内部推理过程",