test(projectinstance): unify gate access and preview for duty modes

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
weichen
2026-09-14 06:58:06 +00:00
co-authored by Cursor
parent ea97a658c6
commit 1dd1cc039e
7 changed files with 264 additions and 0 deletions
+10
View File
@@ -101,6 +101,16 @@ func testResolver() *stubVersionResolver {
}
}
// OptionalDutyResolver 导出含可裁剪 research 文档的测试定义。
func OptionalDutyResolver() VersionResolver {
return optionalDutyResolver()
}
// OptionalDutyPlan 导出一份 full + none 测试规划。
func OptionalDutyPlan(intake, research DocDuty) WorkflowPlan {
return optionalDutyPlan(intake, research)
}
func optionalDutyResolver() *stubVersionResolver {
r := testResolver()
r.versions[workflowdef.OfficialKeyMain].Definition.Stages[0].DocTasks = []workflowdef.DocTaskDef{