{
  "date": "2026-11-02",
  "schemaVersion": 39,
  "compilerVersion": "fago-compiler-v5",
  "goalStatus": "active",
  "status": "verified_increment",
  "scope": "W09首批后台accepted命令恢复；不代表持久timer/正式进程配置/W09或R3.1完整交付",
  "fagoCommit": "57b483cfe1f192cc59b3dda79e9b8a052cff031f",
  "fagoPush": "origin/master verified",
  "checks": {
    "fullMysqlApplication78Migration9": "passed",
    "fullPostgresApplication78Migration9": "passed",
    "finalWorkerMysqlPostgres": "each 9 application passed; final production source",
    "workspace26RaceVet": "passed",
    "independent26Fresh": "passed",
    "coreFinalRaceVet": "passed",
    "changedFiveModulesNilness": "passed",
    "dmMigrationBuild": "passed",
    "documents": "sync/check/build/check passed, 60 pages; static HTML headings/anchors/four sections passed; browser disabled"
  },
  "fullBaselineMatrix": {
    "mysql": {
      "driver": "mysql",
      "status": "passed",
      "commands": [
        {
          "module": "apps/fago-server",
          "passed": 78,
          "log": ".cache/m6-r31/integration-20261102T031902Z/mysql-fago-server.log"
        },
        {
          "module": "fago-migrations",
          "passed": 9,
          "log": ".cache/m6-r31/integration-20261102T031902Z/mysql-fago-migrations.log"
        }
      ],
      "applicationRun": "^TestIntegrationWorkflow",
      "cleanup": true
    },
    "postgres": {
      "driver": "postgres",
      "status": "passed",
      "commands": [
        {
          "module": "apps/fago-server",
          "passed": 78,
          "log": ".cache/m6-r31/integration-20261102T031902Z/postgres-fago-server.log"
        },
        {
          "module": "fago-migrations",
          "passed": 9,
          "log": ".cache/m6-r31/integration-20261102T031902Z/postgres-fago-migrations.log"
        }
      ],
      "applicationRun": "^TestIntegrationWorkflow",
      "cleanup": true
    }
  },
  "finalWorkerApplication": {
    "mysql": {
      "status": "passed",
      "passed": 9,
      "log": ".cache/m6-r31/integration-20261102T032727Z/mysql-fago-server.log",
      "applicationRun": "^TestIntegrationWorkflowCommandWorker"
    },
    "postgres": {
      "status": "passed",
      "passed": 9,
      "log": ".cache/m6-r31/integration-20261102T032727Z/postgres-fago-server.log",
      "applicationRun": "^TestIntegrationWorkflowCommandWorker"
    }
  },
  "verificationScope": "完整78项应用基线在最后取消凭证/attempt行数防护补强前编译；最终9项worker验证补强后的实际源。PostgreSQL升级夹具显式旧列修复后，完整基线的全部9项迁移重新编译并通过。独立模块检查用于依赖闭包，最终生产路径另有workspace/core和真实双库worker回归。",
  "invariants": [
    "BackgroundCommands要求AcceptedStarts/compiler v5且冻结manifest；旧档案省略，新适配器逐一明确合同，不给旧accepted补造job",
    "首次受理资源/实例/命令/job/真实outbox同事务；job或attempt写入故障全部回滚，有限预算不被半份认领消耗",
    "runtime→tenant→job短事务CAS领取；业务另按runtime→tenant→resource→instance→job恢复；owner/fence/version/expiry提交复核",
    "私有permit绑定同tx/full-call/work/lease，下一回调/返回/事务/取消/过期均失效；裸WorkIdentity/篡改/JSON不能授权",
    "当前tenant workflow.execution及form workflow.forms守卫；后台Actor为0，无原会话仍能恢复，命令原主体及发起人不变",
    "真实BPM恢复创建待办，当前审批人正常正文/投票/终结；后台不能首次提交/代投票/变更任务或读取正文",
    "每128步，无人工等待仍ready则accepted+pending+AppendWork，否则done冻结；Run实际轮询并取消join",
    "租约竞争只一位owner，过期重领推进fence，旧worker/重复执行/取消后迟到均零部分结果；最终job与attempt SQL延迟过期均整体回滚",
    "最多5次失败后dead；原主体当前权限明确恢复，保留失败历史；在线Resume与Cancel原子关闭未完成attempt并撤销旧lease",
    "支持版本过滤；不可用租户只持久延后due/version，不阻断其他租户且不消耗attempt；部分Claim错误不抛弃已得lease",
    "在线历史事件来源正actor/空work，后台actor0和workID/fence；原commands/initiator/decisions正用户约束不放宽",
    "v30–v38非空升级/重跑保留旧规范/收据/实例字节，旧事件新来源列为默认空，不自动建job/attempt"
  ],
  "queryRegression": {
    "ordinaryBodyCohorts1_20": 43,
    "resourceBodySources1_16": 47,
    "metadataPageSize1_100": 11,
    "scope": "full workflow baseline query/row counts passed; not worker EXPLAIN/p95 certification"
  },
  "limits": [
    "W09持久timer/审批超时竞争、正式worker进程工作流清单配置与跨进程恢复仍待实现，当前只显式装配Run",
    "W08可靠外部动作/其他命令受理/人工补偿，W07其他资源，W10全引用排空/池租约/原子退役/回滚，W11 API/页面及W12恢复/容量继续保留",
    "多engine/state IN与全局due排序的索引扫描/排序未做积压EXPLAIN；runtime排他锁的同engine跨租户串行成本待W10/W12验证",
    "未重跑完整历史业务/生产部署/真实DM v39；无生产支持或容量认证结论",
    "本地浏览器在Work设置禁用，文档仅构建/链接/生成HTML核对，未进行可视浏览器验收"
  ],
  "preparationFailures": [
    "初次终态fixture直接拒绝分支没有join可达路径，被编译门禁400002拒绝；改为真实条件分支保留合法join路径，双库通过",
    "只读复核发现停用租户队首阻塞及partial leases丢弃、在线恢复attempt未关闭、最后历史SQL之后漏验expiry，均已修复并加真实回归",
    "单元测试Code类型及BPM私有requireCall改名引用编译错误已修正，最终workspace及独立26模块通过",
    "Go构建缓存缺失导致迁移编译失败，清理可重建构建缓存后最终真实双库完成",
    "PostgreSQL升级夹具SELECT *缓存跨新列DDL报0A000，改为显式全部旧列并独立断言新列；最终9项升级通过"
  ],
  "commands": [
    "bash scripts/test-workflow.sh",
    "bash scripts/test-workflow.sh --application-run ^TestIntegrationWorkflowCommandWorker",
    "bash scripts/test-backend.sh",
    "bash scripts/test-independent.sh",
    "core go test -race ./... && go vet ./...",
    "changed five modules go vet -vettool=/tmp/fago-review-nilness ./...",
    "fago-migrations go test -tags fago_dm ./..."
  ],
  "goEnvironmentPrecondition": "所有Go命令先source根scripts/go-env.sh；数据库只用脚本自建专用库/独立Redis，无业务库连接",
  "cleanup": "两次专用数据库/Redis容器及匿名卷均由runner确认清理，无本轮临时浏览器或服务；保留忽略目录私有日志",
  "logSHA256": {
    "/tmp/fago-m6-command-worker-core.log": "a4f92883bf48a1e37da6463a22e881b6db18491afa6813895003ddf205024720",
    "/tmp/fago-m6-command-worker-workspace-final.log": "4beeb2817dc464f263d889ad3745e57562c16a8f8d1e02f7e08ef2c0a28a7481",
    "/tmp/fago-m6-command-worker-independent.log": "7327348c3f53cac9e50d04769321c2482597fc7634a97bf46ce6f12e2ff9e0ff",
    "/tmp/fago-m6-command-worker-nilness.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "/tmp/fago-m6-command-worker-dm.log": "66639f1a0277c2fdffb40fb7ffbea40b71e0a8d0dc89f362e350ce9767ed672c",
    ".cache/m6-r31/integration-20261102T031902Z/mysql-fago-migrations.log": "133f3f410f5e84261bb46c87e6162d41638f52c845acee9b59fa20a7dc44e895",
    ".cache/m6-r31/integration-20261102T031902Z/postgres-fago-migrations.log": "a05c6c77262a2c1d2d98833a0763a36e589a1ffcbfef9080c5f6901dfed49b6c",
    ".cache/m6-r31/integration-20261102T031902Z/mysql-fago-server.log": "af5154bd8f53c0d549f5e3c465d978d9e95a1c7fcedc9537a04dd43455af3f68",
    ".cache/m6-r31/integration-20261102T031902Z/postgres-fago-server.log": "6942a8c7585312c2bdb78930fc6545c681f0b11edec20cc751298f71b6357c70",
    ".cache/m6-r31/integration-20261102T032727Z/mysql-fago-server.log": "9471543bb6612cdb6e2ade4dfe92d055208919990e434639552191ed07a495f1",
    ".cache/m6-r31/integration-20261102T032727Z/postgres-fago-server.log": "b9edb4f139969400b918a193d68f651ffaaf3e71ab6fd0d5a75e4f8635589847"
  }
}
