=== RUN   TestWorkflowGovernance_PiAgent_PG_FullChain
2026/09/22 20:11:10 goose: no migrations to run. current version: 61
2026/09/22 20:11:10 goose: no migrations to run. current version: 61
2026/09/22 20:11:10 [kb] online=true dsn=postgres://regkb:***@127.0.0.1:5432/regulations?sslmode=disable
    workflow_governance_piagent_pg_test.go:265: ✓ [1. 项目创建] id=6013 code=pg-piagent-治-4f4c7049 wf=main
    workflow_governance_piagent_pg_test.go:265: ✓ [2. 工作流激活] instance_id=3
{"time":"2026-09-22T20:11:11.119719+08:00","level":"WARN","msg":"material chunk index failed","file":"project_brief.md","project_id":6013,"err":"http 401 Unauthorized: 无效的令牌 (request id: 20260922121111409046342c14228f56XRMr06Y) (batch=1 est_tokens≈102)"}
    workflow_governance_piagent_pg_test.go:265: ✓ [3. pi-agent intake] doc=doc_proj6013_bd_intake title=用户初始需求收集表 elapsed=4m1s
    workflow_governance_piagent_pg_test.go:265: ✓ [4. 文档批准] approve chain complete
    workflow_governance_piagent_pg_test.go:265: ✓ [5. 阶段推进] PG + pi-agent 治理全链路完成 wf=main
--- PASS: TestWorkflowGovernance_PiAgent_PG_FullChain (241.24s)
=== RUN   TestWorkflowGovernance_PiAgent_PG_ProductManager_FullChain
{"time":"2026-09-22T20:15:11.762833+08:00","level":"INFO","msg":"goose: no migrations to run. current version: 61"}
{"time":"2026-09-22T20:15:11.791269+08:00","level":"INFO","msg":"goose: no migrations to run. current version: 61"}
{"time":"2026-09-22T20:15:11.80399+08:00","level":"INFO","msg":"[kb] online=true dsn=postgres://regkb:***@127.0.0.1:5432/regulations?sslmode=disable"}
    workflow_governance_piagent_pg_test.go:279: ✓ [1. 项目创建] id=6014 code=pg-piagent-产-82673efe wf=product_manager
    workflow_governance_piagent_pg_test.go:279: ✓ [2. 工作流激活] instance_id=4
{"time":"2026-09-22T20:15:12.29388+08:00","level":"WARN","msg":"material chunk index failed","file":"intake_summary.md","project_id":6014,"err":"http 401 Unauthorized: 无效的令牌 (request id: 20260922121512590318568c14228f5T1bfYAXh) (batch=1 est_tokens≈77)"}
{"time":"2026-09-22T20:15:12.360478+08:00","level":"INFO","msg":"[kb-retriever] embed failed: http 401 Unauthorized: 无效的令牌 (request id: 20260922121512651341048c14228f5J93ic2eC) (batch=1 est_tokens≈26)"}
    workflow_governance_piagent_pg_test.go:279: ✓ [3. pi-agent system_reqs] doc=doc_proj6014_pm_system_reqs title=系统需求规格书 elapsed=12m27s
    workflow_governance_piagent_pg_test.go:279: ✓ [4. 文档批准] approve chain complete
    workflow_governance_piagent_pg_test.go:279: ✓ [5. 阶段推进] PG + pi-agent 治理全链路完成 wf=product_manager
--- PASS: TestWorkflowGovernance_PiAgent_PG_ProductManager_FullChain (747.42s)
=== RUN   TestWorkflowGovernance_PiAgent_PG_TestManager_FullChain
{"time":"2026-09-22T20:27:39.241089+08:00","level":"INFO","msg":"goose: no migrations to run. current version: 61"}
{"time":"2026-09-22T20:27:39.256673+08:00","level":"INFO","msg":"goose: no migrations to run. current version: 61"}
{"time":"2026-09-22T20:27:39.26679+08:00","level":"INFO","msg":"[kb] online=true dsn=postgres://regkb:***@127.0.0.1:5432/regulations?sslmode=disable"}
    workflow_governance_piagent_pg_test.go:294: ✓ [1. 项目创建] id=6015 code=pg-piagent-测-60ae1f04 wf=test_manager
    workflow_governance_piagent_pg_test.go:294: ✓ [2. 工作流激活] instance_id=5
{"time":"2026-09-22T20:27:39.691579+08:00","level":"WARN","msg":"material chunk index failed","file":"verification_scope.md","project_id":6015,"err":"http 401 Unauthorized: 无效的令牌 (request id: 20260922122739935178798c14228f5i5caUTwP) (batch=1 est_tokens≈88)"}
{"time":"2026-09-22T20:27:39.747887+08:00","level":"INFO","msg":"[kb-retriever] embed failed: http 401 Unauthorized: 无效的令牌 (request id: 20260922122739989406491c14228f5s4Rcrx1V) (batch=1 est_tokens≈26)"}
    workflow_governance_piagent_pg_test.go:294: ✓ [3. pi-agent test_manager] doc=doc_proj6015_tm_system_verification title=系统验证方案及计划 elapsed=14m58s
    workflow_governance_piagent_pg_test.go:294: ✓ [4. 文档批准] approve chain complete
    workflow_governance_piagent_pg_test.go:294: ✓ [5. 阶段推进] PG + pi-agent 治理全链路完成 wf=test_manager
--- PASS: TestWorkflowGovernance_PiAgent_PG_TestManager_FullChain (898.85s)
PASS
ok  	chat-agent-system/internal/server	1888.204s
