{
  "date": "2026-10-29",
  "schemaVersion": 30,
  "scope": "N+1、查询索引、PoC损坏状态拒绝",
  "status": "completed",
  "queryCounts": {
    "tenantPage20": {
      "before": 42,
      "after": 4
    },
    "packagePage20": {
      "before": 42,
      "after": 4
    },
    "ordinaryRoles1_20_100": {
      "before": [
        4,
        23,
        103
      ],
      "after": [
        4,
        4,
        4
      ]
    },
    "codegenTables20": {
      "after": 3
    }
  },
  "checks": {
    "workspaceRaceVet24": "passed",
    "independentModules24": "passed",
    "nilness24": "passed",
    "mysqlTargeted": "passed",
    "postgresTargeted": "passed",
    "mysqlMigrationTargeted": "passed",
    "postgresMigrationTargeted": "passed",
    "dmCompile": "passed",
    "mysqlFull": "173通过、2显式跳过、2共享Redis限流干扰；两项在独立Redis补验通过",
    "postgresFull": "175通过、2显式跳过",
    "documents": "sync/check/build passed; built M5 section, migration v30 anchor and four sidebar sections browser checked",
    "mysqlMigrationFull": "23 passed",
    "postgresMigrationFull": "23 passed"
  },
  "postgresPlans": {
    "database": "PostgreSQL 16.6 一次性专用库",
    "noticeRows": 200000,
    "queuedRows": 100,
    "noticeBuffersBefore": 6897,
    "noticeBuffersAfter": 8,
    "roleLinks": 200001,
    "matchingRoleLinks": 1,
    "roleBuffersBefore": 1274,
    "roleBuffersAfter": 7
  },
  "limits": [
    "未运行生产部署或组合恢复",
    "达梦v30真实数据库迁移、业务与执行计划未认证",
    "MySQL执行计划未重新测量",
    "golangci-lint未安装，旧staticcheck不兼容Go1.27，均未计为通过",
    "Redis Streams专项和容量基准为显式开关，本轮未启用；文件HTTP使用既有内存故障存储，未重跑S3真实对象存储或真实外部IdP/browser专项。"
  ],
  "fagoCommit": "74baf2e6f80f993bc38f4dc6c8920f5e6d15a32d",
  "applicationRegression": {
    "postgres": {
      "passed": 175,
      "skipped": [
        "TestIntegrationMessageRedis",
        "TestIntegrationReleaseCapacity"
      ],
      "failed": []
    },
    "mysql": {
      "passedInFullRun": 173,
      "skipped": [
        "TestIntegrationMessageRedis",
        "TestIntegrationReleaseCapacity"
      ],
      "failedInSharedRedisRun": [
        "TestIntegrationServiceHTTP",
        "TestIntegrationSSORuntimeHTTP"
      ],
      "isolatedRedisRetry": {
        "passed": [
          "TestIntegrationServiceHTTP",
          "TestIntegrationSSORuntimeHTTP"
        ],
        "transportSubcases": 6,
        "failed": []
      },
      "outcome": "全部默认集成用例经全量与独立Redis补验覆盖，无剩余失败"
    }
  },
  "testFixtureRepair": "服务HTTP限流夹具改为每夹具随机公开无效key，保留20次失败/第21次限流断言，生产限流规则未修改。",
  "commands": [
    {
      "directory": ".",
      "command": "bash scripts/test-backend.sh"
    },
    {
      "directory": ".",
      "command": "bash scripts/test-independent.sh"
    },
    {
      "directory": "each workspace module",
      "command": "go vet -vettool=/tmp/fago-review-nilness ./..."
    },
    {
      "directory": "fago/fago-server/apps/fago-server",
      "command": "go test -tags fago_mysql -race -timeout 30m -count=1 -v -run TestIntegration ."
    },
    {
      "directory": "fago/fago-server/fago-migrations",
      "command": "go test -tags fago_mysql -race -timeout 30m -count=1 -v -run TestIntegration ."
    },
    {
      "directory": "fago/fago-server/apps/fago-server",
      "command": "go test -tags fago_postgres -race -timeout 30m -count=1 -v -run TestIntegration ."
    },
    {
      "directory": "fago/fago-server/fago-migrations",
      "command": "go test -tags fago_postgres -race -timeout 30m -count=1 -v -run TestIntegration ."
    },
    {
      "directory": "fago/fago-server/apps/fago-server",
      "environment": "独立Redis；FAGO_INTEGRATION=1，APP_DATABASE_DRIVER=mysql",
      "command": "go test -tags fago_mysql -race -timeout 5m -count=1 -v -run '^(TestIntegrationServiceHTTP|TestIntegrationSSORuntimeHTTP)$' ."
    },
    {
      "directory": "fago/fago-server/fago-migrations",
      "command": "go test -tags fago_dm ./..."
    },
    {
      "directory": "fago-doc",
      "command": "npm run docs:sync && npm run docs:check && npm run build && npm run docs:check"
    }
  ],
  "environment": {
    "go": "1.27.3",
    "runtime": "darwin/arm64",
    "postgres": "16.6",
    "mysql": "8.4.13",
    "redis": "8.0.3",
    "frontendChanged": false
  },
  "preparationFailures": [
    "首轮未设置PostgreSQL构建标签，补齐标签后双库专项通过。",
    "全量首轮缺Redis；中断重跑遗留的测试账号影响恢复人数断言，已重建本次专用空库后重跑。",
    "双库全量共用Redis导致两项MySQL限流测试串扰，独立Redis补验通过。"
  ],
  "logSHA256": {
    "fago-fix-workspace.log": "7b1924a44bf9a037f9774830d2abfbb34c7eb880391a11f1c20a83e4216df47f",
    "fago-fix-independent.log": "3166631d75dfc0907fe48df1ac8aa655fb4d2fec94c60d1472a0a27279f608ce",
    "fago-fix-nilness.log": "9f64d26e7712e34f2b447647b954a734ecd75ecb51523738903d0d29d0cdf828",
    "fago-fix-final-app-nilness.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "fago-fix-pg-target.log": "29547d9d25e697b3ea1299a9d7cb365f7b382ee5490d0e918c3f7bac58e4f445",
    "fago-fix-mysql-target.log": "506c53d397986fb494e5ceb6b9066768d872ec3c45a42d00140b2c35fa3b0ba6",
    "fago-fix-pg-final-target.log": "16090fefdca6ba040710946b07675a34d657bda2cea8d2782644973a7c07341d",
    "fago-fix-mysql-final-target.log": "b1505d09e42c0d500d85c85d73096042fd4537547901f5e424ec6a2df5ea59ad",
    "fago-fix-pg-migration-target.log": "2a16e79c9241edd2fb7d7b8b6b058b2ac96c90bb47c0a392179dd448a95be3de",
    "fago-fix-mysql-migration-target.log": "62476d41cc41cc41742a470f970a393a14c3f53430fcb9b8b4dea7bb8d83f090",
    "fago-fix-mysql-index-final.log": "67002dadfa71bd41f947866fc401c52d186b78c9f7901c29a428dc1661620847",
    "fago-fix-pg-verified.log": "d98f18544b24f3b52522d07abf6ad12085918f8729623e6224f8c86bd1a4b928",
    "fago-fix-mysql-verified.log": "3ee7557fa1d79ef97efc4b5ada451b8d7563babe8b98e7560227efdce129f52c",
    "fago-fix-pg-migration-verified.log": "46575b8bc65dfbb808b3eeccd4cd7798f3ab5170796cdec2e90061e044002901",
    "fago-fix-mysql-migration-verified.log": "6a60052175d7a3ac9502f5b74688a364666c48e28d963fd09bba74085459ae26",
    "fago-fix-mysql-isolated-http.log": "e6f6533a73e1c644169b483c255b3c2570cbe1e264ad3aeb0b60c5645a397e1a",
    "fago-fix-pg-plans.log": "658b45fc6333993f1b02e19b5cfe7978b270a8eb89f77538c0bfd027d832ae53",
    "fago-fix-probe.log": "4c305492e85b11077e262b8a4885bfa7f700455b8dd533f4159aec85d84ac88d",
    "fago-fix-dm-build.log": "b0709fa817770a8dacd0136337d69afcba1404d8bcc7e5a1daf14b22dcd69027"
  },
  "temporaryEnvironmentCleanup": "本次四个数据库/Redis容器及匿名卷、私有环境文件、文档验收页面与本机预览服务已清理；保留忽略目录下的无敏感证据日志。",
  "goEnvironmentPrecondition": "所有Go命令先在外层仓库根source scripts/go-env.sh；真实集成只连接本次创建的专用测试数据库，不发布连接凭据。"
}
