v0.21 alpha add research brief and compressed findings

This commit is contained in:
kai
2026-05-06 19:23:30 +08:00
parent db626f1d58
commit 0644a68ecc
13 changed files with 539 additions and 27 deletions
+19
View File
@@ -45,6 +45,23 @@ def test_orchestrator_reads_research_method_from_manifest(tmp_path: Path) -> Non
"## 第1章 GMP 体系差距需要按法规和风险双轴定位\n\n研究思路。",
encoding="utf-8",
)
(project / "phase1" / "research_brief.json").write_text(
json.dumps(
{
"research_method": "gmp_gap_assessment",
"work_language": "zh",
"task_planning": {
"required_skills": ["search-gateway", "evidence-table"],
"search_routes_by_axis": {"regulatory_gap": ["general", "news"]},
"axis_prompt_briefs": {"regulatory_gap": "逐条映射法规基线与审计差距。"},
"stop_conditions": ["证据不足则回炉补证。"],
},
"materials": [{"path": "phase0/extracted/audit.md"}],
},
ensure_ascii=False,
),
encoding="utf-8",
)
cards = create_phase2_task_cards(project, dry_run=True)
@@ -53,3 +70,5 @@ def test_orchestrator_reads_research_method_from_manifest(tmp_path: Path) -> Non
"risk_classification",
"capa_design",
]
assert cards[0]["prompt_brief"] == "逐条映射法规基线与审计差距。"
assert cards[0]["allowed_materials"] == ["phase0/extracted/audit.md"]