Files
ljwx-platform/artifacts/closed-loop/20260303T041451Z/phase-29/local-attempt-1/collect.json
T
bruno 07c05c6823 fix(spec): Phase 54-58 评审问题修复 + commit-push-pr 工具
- Phase 54-58: 修复 ChatGPT 5.3 评审报告中的 12 个问题
  - 严重问题 4 个:XSS 防护、租户隔离、审计语义、公开接口边界
  - 高优先级 5 个:数据源简化、返回模型、配置来源、Promise 处理、backend 标记
  - 中等优先级 3 个:枚举统一、输入边界、SQL 安全加固
- 新增工具:commit-push-pr.sh 和 /cpp slash command
- 文档:添加 commit-push-pr 使用指南

详见: artifacts/closed-loop/20260303T052013Z/phase-54-58-review-fixes-complete.md
2026-03-03 14:23:25 +08:00

102 lines
17 KiB
JSON

{
"phase": "29",
"attempt": 1,
"generatedAt": "2026-03-03T04:17:22Z",
"checks": [
{
"check": "phase-29-precheck-gate",
"status": "fail",
"exitCode": 1,
"summary": "(node:7098) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.",
"logPath": "artifacts/closed-loop/20260303T041451Z/phase-29/local-attempt-1/logs/phase-29-precheck-gate.log",
"source": "local",
"errors": [
"(node:7098) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.",
" gate-rules: ERRORS=0 WARNINGS=18",
" WARNING new migration detected (append to lock after review): ljwx-platform-app/src/main/resources/db/migration/V031__create_sys_frontend_error.sql",
" gate-flyway-governance: ERRORS=0 WARNINGS=21",
"2026-03-03 12:15:26.767 [main] ERROR o.s.b.w.e.tomcat.TomcatStarter [traceId=] [tenantId=] [userId=] - Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'tenantDomainFilter' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/filter/TenantDomainFilter.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'tenantDomainAppService' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/appservice/TenantDomainAppService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'tenantDomainMapper' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/infra/mapper/TenantDomainMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionTemplate': Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unable to obtain connection from database: 尝试连线已失败。",
"Error Code : 0",
"2026-03-03 12:15:26.786 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext [traceId=] [tenantId=] [userId=] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server",
"Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.",
"2026-03-03 12:15:26.813 [main] ERROR o.s.boot.SpringApplication [traceId=] [tenantId=] [userId=] - Application run failed",
"org.springframework.context.ApplicationContextException: Unable to start web server",
"Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat",
"Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tenantDomainFilter' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/filter/TenantDomainFilter.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'tenantDomainAppService' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/appservice/TenantDomainAppService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'tenantDomainMapper' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/infra/mapper/TenantDomainMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionTemplate': Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unable to obtain connection from database: 尝试连线已失败。",
"Error Code : 0",
"Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tenantDomainAppService' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/appservice/TenantDomainAppService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'tenantDomainMapper' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/infra/mapper/TenantDomainMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionTemplate': Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unable to obtain connection from database: 尝试连线已失败。",
"Error Code : 0",
"Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tenantDomainMapper' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/infra/mapper/TenantDomainMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionTemplate': Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unable to obtain connection from database: 尝试连线已失败。",
"Error Code : 0",
"Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unable to obtain connection from database: 尝试连线已失败。",
"Error Code : 0",
"Caused by: org.flywaydb.core.internal.exception.FlywaySqlException: Unable to obtain connection from database: 尝试连线已失败。",
"Error Code : 0",
"Caused by: org.postgresql.util.PSQLException: 尝试连线已失败。",
"\tat com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:576)",
"Caused by: java.net.SocketException: Operation not permitted",
" gate-nfr: ERRORS=0 WARNINGS=3",
" FAIL scripts/gates/gate-test.sh",
" gate-baseline: ERRORS=0 WARNINGS=1",
" Total: 11 | Passed: 9 | Failed: 1 | Skipped: 1",
" FAILED RULES: R09",
" GATE RESULT: FAILED"
]
}
],
"failed": [
{
"check": "phase-29-precheck-gate",
"status": "fail",
"exitCode": 1,
"summary": "(node:7098) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.",
"logPath": "artifacts/closed-loop/20260303T041451Z/phase-29/local-attempt-1/logs/phase-29-precheck-gate.log",
"source": "local",
"errors": [
"(node:7098) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.",
" gate-rules: ERRORS=0 WARNINGS=18",
" WARNING new migration detected (append to lock after review): ljwx-platform-app/src/main/resources/db/migration/V031__create_sys_frontend_error.sql",
" gate-flyway-governance: ERRORS=0 WARNINGS=21",
"2026-03-03 12:15:26.767 [main] ERROR o.s.b.w.e.tomcat.TomcatStarter [traceId=] [tenantId=] [userId=] - Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'tenantDomainFilter' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/filter/TenantDomainFilter.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'tenantDomainAppService' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/appservice/TenantDomainAppService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'tenantDomainMapper' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/infra/mapper/TenantDomainMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionTemplate': Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unable to obtain connection from database: 尝试连线已失败。",
"Error Code : 0",
"2026-03-03 12:15:26.786 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext [traceId=] [tenantId=] [userId=] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server",
"Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.",
"2026-03-03 12:15:26.813 [main] ERROR o.s.boot.SpringApplication [traceId=] [tenantId=] [userId=] - Application run failed",
"org.springframework.context.ApplicationContextException: Unable to start web server",
"Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat",
"Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tenantDomainFilter' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/filter/TenantDomainFilter.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'tenantDomainAppService' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/appservice/TenantDomainAppService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'tenantDomainMapper' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/infra/mapper/TenantDomainMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionTemplate': Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unable to obtain connection from database: 尝试连线已失败。",
"Error Code : 0",
"Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tenantDomainAppService' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/appservice/TenantDomainAppService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'tenantDomainMapper' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/infra/mapper/TenantDomainMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionTemplate': Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unable to obtain connection from database: 尝试连线已失败。",
"Error Code : 0",
"Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tenantDomainMapper' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/infra/mapper/TenantDomainMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionTemplate': Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unable to obtain connection from database: 尝试连线已失败。",
"Error Code : 0",
"Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unable to obtain connection from database: 尝试连线已失败。",
"Error Code : 0",
"Caused by: org.flywaydb.core.internal.exception.FlywaySqlException: Unable to obtain connection from database: 尝试连线已失败。",
"Error Code : 0",
"Caused by: org.postgresql.util.PSQLException: 尝试连线已失败。",
"\tat com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:576)",
"Caused by: java.net.SocketException: Operation not permitted",
" gate-nfr: ERRORS=0 WARNINGS=3",
" FAIL scripts/gates/gate-test.sh",
" gate-baseline: ERRORS=0 WARNINGS=1",
" Total: 11 | Passed: 9 | Failed: 1 | Skipped: 1",
" FAILED RULES: R09",
" GATE RESULT: FAILED"
]
}
],
"summary": {
"totalChecks": 1,
"failedChecks": 1
},
"errorSummary": [
"[local:phase-29-precheck-gate] (node:7098) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.",
"[local:phase-29-precheck-gate] (node:7098) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.",
"[local:phase-29-precheck-gate] gate-rules: ERRORS=0 WARNINGS=18",
"[local:phase-29-precheck-gate] WARNING new migration detected (append to lock after review): ljwx-platform-app/src/main/resources/db/migration/V031__create_sys_frontend_error.sql",
"[local:phase-29-precheck-gate] gate-flyway-governance: ERRORS=0 WARNINGS=21",
"[local:phase-29-precheck-gate] 2026-03-03 12:15:26.767 [main] ERROR o.s.b.w.e.tomcat.TomcatStarter [traceId=] [tenantId=] [userId=] - Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'tenantDomainFilter' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/filter/TenantDomainFilter.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'tenantDomainAppService' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/appservice/TenantDomainAppService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'tenantDomainMapper' defined in URL [jar:nested:/Users/brunogao/work/codes/ljwx/ljwx-platform/ljwx-platform-app/target/ljwx-platform-app-1.0.0-SNAPSHOT.jar/!BOOT-INF/classes/!/com/ljwx/platform/app/infra/mapper/TenantDomainMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionTemplate': Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unable to obtain connection from database: 尝试连线已失败。"
]
}