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,39 @@
"""Session and run records returned by ``GET /sessions/{id}``."""
from __future__ import annotations
from typing import Any
from pydantic import BaseModel, ConfigDict, Field
from app.report_collaboration.contracts.enums import ReportRunStatus, ReportSessionStatus
class ReportSession(BaseModel):
model_config = ConfigDict(extra="forbid")
id: str
title: str
status: ReportSessionStatus
requirement_revision: int
selected_plan_id: str | None = None
active_run_id: str | None = None
current_report_version_id: str | None = None
created_at: str
updated_at: str
class ReportRun(BaseModel):
model_config = ConfigDict(extra="forbid")
id: str
session_id: str
plan_id: str
status: ReportRunStatus
cancel_requested: bool = False
next_event_seq: int = 0
current_phase: str | None = None
usage: dict[str, Any] = Field(default_factory=dict)
budget_exhausted_reason: str | None = None
created_at: str
updated_at: str