# W4 U12 workflow/run-control 独立 flag 测试报告 ## 一、 测试背景 (Background) U12 不得与 U10/U11 共用开关。W4 只做独立 flag dry-run 证据。 ## 二、 测试目标 (Test Objectives) - 仅 U12 on 时注册 run-control adapter - `workflow.run` 无 revision 可 dry-run;Denied fail-closed - 不升 PLAN_TIER ## 三、 测试方案与环境 (Test Plan & Environment) - 分支:`feature/w4-u9-segment-live`;Go 单测 - Playwright:**NOT RUN**(不升 confirm) - 证据:`.doc/test-reports/assets/2026-09-17-w4-u12-run-control/` ## 四、 预期结果 (Expected Results) flag 隔离;denied 无 receipt。 ## 五、 实际测试结果与判定 (Actual Results & Evaluation) ### 5.1 独立 dry-run - **测试输入 (Input)**:`go test ./internal/app/intentflow -run TestU12RunControlIndependentDryRun -v` - **实际输出 (Actual Output)**:PASS - **评价判定 (Evaluation / Verdict)**:PASS - **性能与耗时 (Duration & Latency)**:<10ms ### 5.2 Playwright - **测试输入 (Input)**:无 - **实际输出 (Actual Output)**:NOT RUN - **评价判定 (Evaluation / Verdict)**:不挡本 action dry-run 关闭 - **性能与耗时 (Duration & Latency)**:— ## 六、 自动化测试套件汇总 (Test Suite Execution) `go test ./internal/app/intentflow -run TestU12RunControlIndependentDryRun`:PASS ## 七、 测试结论与后续优化建议 (Conclusion & Next Steps) U12 独立 flag 证据闭环。workflow live 与升 confirm 另开授权。