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:
1 parent
814a44f0b9
commit
5e953c9fcb
123 files changed
+26816
-3505
No files matched your search
@@ -0,0 +1,30 @@
|
||||
"""Feature-flag defaults for the report-collaboration workbench."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from deerflow.config.app_config import AppConfig
|
||||
from deerflow.config.report_collaboration_config import ReportCollaborationConfig
|
||||
|
||||
|
||||
def test_report_collaboration_defaults_disabled() -> None:
|
||||
config = ReportCollaborationConfig()
|
||||
assert config.enabled is False
|
||||
assert config.worker_enabled is False
|
||||
assert "web_search" in config.allowed_tools
|
||||
assert config.intent_confirmation_threshold == 0.8
|
||||
|
||||
|
||||
def test_app_config_loads_report_collaboration_section() -> None:
|
||||
config = AppConfig.model_validate(
|
||||
{
|
||||
"sandbox": {"use": "deerflow.sandbox.local:LocalSandboxProvider"},
|
||||
"report_collaboration": {
|
||||
"enabled": False,
|
||||
"max_team_members": 6,
|
||||
"allowed_tools": ["web_search"],
|
||||
},
|
||||
}
|
||||
)
|
||||
assert config.report_collaboration.enabled is False
|
||||
assert config.report_collaboration.max_team_members == 6
|
||||
assert config.report_collaboration.allowed_tools == ["web_search"]
|
||||
Reference in new issue
Block a user