# 本地真 Docker 复核:盘型口径修复(BUG-1131)数据库测试 > 给产品负责人在自己电脑上跑。Claude 的验收机没有 Docker,用独立 PostgreSQL 17.9 + 本地替身跑过全量数据库测试;这份清单用真 `postgres:17-alpine` 容器再确认一次,作为合入前的正式证据。 ## 你需要 - 已安装并启动 Docker Desktop(或 Linux 上的 Docker Engine + Compose)。 - Node 22(`node -v` 显示 v22.x)。 ## 步骤 1. 取代码(在仓库目录里): ```bash git fetch origin git worktree add .worktrees/varga-db-check origin/codex/rectification-varga-resolution-fix-20261001 cd .worktrees/varga-db-check/frontend npm ci ``` 2. 跑数据库测试(约 15–30 分钟),保存结果: ```bash npm run test:db 2>&1 | tee ../../varga-db-fix.log ``` 3. 看最后几行: ```bash grep -E "^# (tests|pass|fail|cancelled|skipped)" ../../varga-db-fix.log grep -E "^not ok" ../../varga-db-fix.log ``` ## 怎样算通过 | 看什么 | 期望 | | --- | --- | | `# fail` | **0**(Claude 的替身环境里有 3 条与基线相同的环境失败:备份加密、数据库环境变量校验、管理员身份隔离——它们依赖真容器,真 Docker 下应当通过;若仍失败,请在 `origin/staging` 上同样跑一遍,失败名单一致即可) | | `# cancelled` | 0 | | 下面几条必须是 `ok` | `segment opening PostgreSQL owns stable domain…`(开案,BUG-1131 本体);`post-bump historical exact Skill survives…`(旧校正会话升级后仍能打开);`segment adoption persists a noncandidate midnight minute…`(两条);`D7 PostgreSQL recomputes priority…`;`saved segment civil tuple flows…`(两条) | ## 把结果发给 Claude 把 `varga-db-fix.log` 最后 30 行和 `grep "^not ok"` 的输出贴回会话即可。 ## 跑完清理 ```bash cd ../../.. git worktree remove .worktrees/varga-db-check ```