feat(report-collaboration): complete RC-BE-015–018 backend, eval suite, and MySQL sync

Ship report rewrite/version APIs, security budget and audit persistence, AgentScope worker wiring, and the 20-task quality eval harness so the frontend can integrate against a stable contract once enabled in config.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
董宏凯andCursor committed 2026-09-06 17:32:15 +08:00
1 parent 814a44f0b9
commit 5e953c9fcb
123 files changed
+26816 -3505

No files matched your search

@@ -0,0 +1,27 @@
"""``GET /sessions/{id}`` snapshot — the frontend's only fact source before SSE."""
from __future__ import annotations
from pydantic import BaseModel, ConfigDict, Field
from app.report_collaboration.contracts.agent_runs import AgentRun
from app.report_collaboration.contracts.commands import CollaborationCommand
from app.report_collaboration.contracts.messages import CollaborationMessage
from app.report_collaboration.contracts.nodes import CollaborationNodeState
from app.report_collaboration.contracts.plans import ReportPlanCandidate
from app.report_collaboration.contracts.reports import ReportVersion
from app.report_collaboration.contracts.runs import ReportRun, ReportSession
class SessionSnapshot(BaseModel):
model_config = ConfigDict(extra="forbid")
session: ReportSession
messages: list[CollaborationMessage] = Field(default_factory=list)
plans: list[ReportPlanCandidate] = Field(default_factory=list)
run: ReportRun | None = None
nodes: list[CollaborationNodeState] = Field(default_factory=list)
agent_runs: list[AgentRun] = Field(default_factory=list)
commands: list[CollaborationCommand] = Field(default_factory=list)
report_versions: list[ReportVersion] = Field(default_factory=list)
last_seq: int = 0