{
  "schemaVersion": 1,
  "incidentId": "cgroup-mount-incident-001",
  "title": "宿主挂载入口丢失：恢复与有限范围验收",
  "generatedAtUTC": "2026-11-06T19:08:53.957756+00:00",
  "currentStatus": {
    "mountRecovery": "ACCEPTED_IN_RECORDED_SCOPE",
    "matchedOriginalMountRows": 34,
    "missingOriginalRows": 0,
    "extraHostRows": 0,
    "fullHostApplicationImpactAudit": "PENDING",
    "vmEndToEnd": "NOT_COMPLETED_BY_THIS_INCIDENT_ACCEPTANCE",
    "executionRelease": "固定派生OCI验收后释放完整Mooncake真实API/Guest/快照/冷恢复循环；元戎VM与PR仍待验收。",
    "oldNAT": "旧两个进程已精确结束，旧任务网络规则及默认路由已按原记录精确回滚；无新NAT。",
    "guardActual": "PASS_OWNER_RECORD_PENDING_LOCAL_RAW",
    "derivedAttemptOutcome": "FAIL_BUDGET_SAMPLING",
    "aptPackageInstallation": "NOT_RUN"
  },
  "summary": "任务宿主的cgroup2等挂载入口丢失，导致新systemd服务一度以219/CGROUP失败，并使任务Mooncake监督器退出。恢复owner利用保留的私有namespace视图恢复原文件系统身份。逐条multiset验收现为34/34；这不等于已完成全部服务、数据或VM业务影响审计。",
  "confirmedImpact": [
    {
      "kind": "new-unit-unavailable",
      "detail": "派生镜像unit在build-derived.py目标入口之前以219/CGROUP失败，未创建容器或执行apt；wrapper仅在unit请求前运行了UUID生成小进程。"
    },
    {
      "kind": "task-supervisor-failed",
      "detail": "任务Mooncake监督器在cgroup统计路径不可见时退出；其3个原生后端子进程在验收时仍存活于原CPU4/12GiB配额组，监督unit的failed异常保留，未按MainPID0盲目复制或重启后端。"
    },
    {
      "kind": "host-mount-entries-lost",
      "detail": "恢复范围共16条挂载条目：cgroup2一条、另13个原文件系统入口、同一路径上的autofs/binfmt_misc两层。挂载入口丢失期间的所有外部业务影响尚未完成审计。"
    },
    {
      "kind": "work-frozen",
      "detail": "发现后停止新unit、容器、mount/unmount、重启和普通cleanup；由root单独执行精确恢复。旧NAT先经身份固定后暂停，后续由root精确终止。"
    }
  ],
  "causeAssessment": {
    "status": "SOURCE_BACKED_INFERENCE_NOT_KERNEL_TRACE_PROVEN",
    "confirmedPreparationGap": "本任务从宿主mount namespace启动root NAT helper前，没有先建立并验证整棵递归private的外层挂载namespace。",
    "sourceFacts": [
      {
        "file": "sandbox.c",
        "line": 113,
        "fact": "unshare(CLONE_NEWNS)创建新挂载namespace。"
      },
      {
        "file": "sandbox.c",
        "line": 118,
        "fact": "仅对根执行MS_PRIVATE，没有MS_REC。"
      },
      {
        "file": "sandbox.c",
        "line": 170,
        "fact": "pivot_root切换到临时根。"
      },
      {
        "file": "sandbox.c",
        "line": 182,
        "fact": "umount2旧根并使用MNT_DETACH。"
      }
    ],
    "mechanism": "新namespace仍可保留共享子挂载关系；只把根设private不保证所有后代都private，随后detach旧树存在向共享peer传播的风险。现象与该风险一致。",
    "notEstablished": [
      "未重放破坏性传播实验，未获得内核syscall/传播链的排他性追踪证明。",
      "不能据此宣称事故只有一个已完全证实的根因。",
      "历史宿主传播peer IDs未捕获，不能宣称精确恢复了全部原peer ID。"
    ]
  },
  "recovery": {
    "cgroup": {
      "completedAtUTC": "2026-11-06T18:11:54Z",
      "timeEvidence": "root恢复记录/owner确认；此时刻不在摘要所附本地原始命令回执中。",
      "target": "/sys/fs/cgroup",
      "filesystem": "cgroup2",
      "device": "0:25",
      "root": "/",
      "rootInode": 1,
      "mountOptions": "rw,nosuid,nodev,noexec,relatime",
      "superOptions": "rw,seclabel,nsdelegate,memory_recursiveprot",
      "method": "重新暴露原有统一层级，随后核对原文件系统身份及controllers/配额可见性。"
    },
    "additionalOriginalFilesystems": {
      "completedAtUTC": "2026-11-06T18:23:22Z",
      "timeEvidence": "root恢复记录/owner确认；18:25:09Z独立14目标检查通过。",
      "count": 13,
      "method": "从保留视图open_tree detached clone，再move_mount到精确目标；核对device/inode、filesystem root/type/source与根权限。",
      "targets": [
        {
          "target": "/sys/kernel/security",
          "filesystem": "securityfs",
          "device": "0:6",
          "sameFilesystemIdentity": true,
          "sameFilesystemRoot": true,
          "sameRootPermissions": true
        },
        {
          "target": "/sys/fs/pstore",
          "filesystem": "pstore",
          "device": "0:26",
          "sameFilesystemIdentity": true,
          "sameFilesystemRoot": true,
          "sameRootPermissions": true
        },
        {
          "target": "/sys/fs/bpf",
          "filesystem": "bpf",
          "device": "0:27",
          "sameFilesystemIdentity": true,
          "sameFilesystemRoot": true,
          "sameRootPermissions": true
        },
        {
          "target": "/sys/fs/selinux",
          "filesystem": "selinuxfs",
          "device": "0:19",
          "sameFilesystemIdentity": true,
          "sameFilesystemRoot": true,
          "sameRootPermissions": true
        },
        {
          "target": "/sys/kernel/debug",
          "filesystem": "debugfs",
          "device": "0:7",
          "sameFilesystemIdentity": true,
          "sameFilesystemRoot": true,
          "sameRootPermissions": true
        },
        {
          "target": "/sys/kernel/debug/tracing",
          "filesystem": "tracefs",
          "device": "0:12",
          "sameFilesystemIdentity": true,
          "sameFilesystemRoot": true,
          "sameRootPermissions": true
        },
        {
          "target": "/sys/kernel/tracing",
          "filesystem": "tracefs",
          "device": "0:12",
          "sameFilesystemIdentity": true,
          "sameFilesystemRoot": true,
          "sameRootPermissions": true
        },
        {
          "target": "/sys/fs/fuse/connections",
          "filesystem": "fusectl",
          "device": "0:30",
          "sameFilesystemIdentity": true,
          "sameFilesystemRoot": true,
          "sameRootPermissions": true
        },
        {
          "target": "/sys/kernel/config",
          "filesystem": "configfs",
          "device": "0:31",
          "sameFilesystemIdentity": true,
          "sameFilesystemRoot": true,
          "sameRootPermissions": true
        },
        {
          "target": "/dev/shm",
          "filesystem": "tmpfs",
          "device": "0:22",
          "sameFilesystemIdentity": true,
          "sameFilesystemRoot": true,
          "sameRootPermissions": true
        },
        {
          "target": "/dev/pts",
          "filesystem": "devpts",
          "device": "0:23",
          "sameFilesystemIdentity": true,
          "sameFilesystemRoot": true,
          "sameRootPermissions": true
        },
        {
          "target": "/dev/hugepages",
          "filesystem": "hugetlbfs",
          "device": "0:29",
          "sameFilesystemIdentity": true,
          "sameFilesystemRoot": true,
          "sameRootPermissions": true
        },
        {
          "target": "/dev/mqueue",
          "filesystem": "mqueue",
          "device": "0:18",
          "sameFilesystemIdentity": true,
          "sameFilesystemRoot": true,
          "sameRootPermissions": true
        }
      ]
    },
    "binfmtTwoLayers": {
      "probeAtUTC": "2026-11-06T18:35:02.084420+00:00",
      "completedAtUTC": "2026-11-06T18:35:28.549309+00:00",
      "target": "/proc/sys/fs/binfmt_misc",
      "layers": [
        {
          "position": "lower",
          "filesystem": "autofs",
          "device": "0:28",
          "rootInode": 86376
        },
        {
          "position": "upper",
          "filesystem": "binfmt_misc",
          "device": "0:43",
          "rootInode": 1
        }
      ],
      "method": "在独立scratch namespace中先递归private、验证与host/source不同，再仅在scratch移开上层以克隆下层；按下层后上层回挂，原保留视图不做卸载。",
      "probeReturnCode": 0,
      "attachReturnCode": 0,
      "sourceSHA256": "a22d5016e8b21db9af946f28c33a206e6f03c646f7b5b420ae137381dcc701cb"
    },
    "identityBoundary": "保留的是原文件系统身份和根对象；detached clone后的mount ID可以改变。传播optional tags已记录，但私有基线在采集前已递归private，原host peer IDs不作为历史精确恢复证明。"
  },
  "timeline": [
    {
      "order": 1,
      "atUTC": null,
      "timeQuality": "NOT_CAPTURED_IN_LOCAL_RECEIPTS",
      "event": "任务root NAT helper启动后，派生unit的219/CGROUP暴露宿主挂载缺口；精确首次失挂/发现时刻未在本摘要本地回执中捕获。"
    },
    {
      "order": 2,
      "atUTC": null,
      "timeQuality": "NOT_CAPTURED_IN_LOCAL_RECEIPTS",
      "event": "冻结新unit/容器/挂载/普通cleanup，固定并暂停旧NAT两进程，root独占恢复。"
    },
    {
      "order": 3,
      "atUTC": "2026-11-06T18:11:54Z",
      "timeQuality": "OWNER_RECORDED",
      "event": "原统一cgroup2层级入口恢复；有界unit创建探针随后通过，但冻结继续。"
    },
    {
      "order": 4,
      "atUTC": "2026-11-06T18:23:22Z",
      "timeQuality": "OWNER_RECORDED",
      "event": "另13个原文件系统入口恢复。"
    },
    {
      "order": 5,
      "atUTC": "2026-11-06T18:25:09.594499+00:00",
      "timeQuality": "LOCAL_INDEPENDENT_RECEIPT",
      "event": "已知14目标身份检查通过，尚不足以代表完整挂载集合。"
    },
    {
      "order": 6,
      "atUTC": "2026-11-06T18:26:30.243689+00:00",
      "timeQuality": "LOCAL_INDEPENDENT_RECEIPT",
      "event": "完整mountinfo multiset检查FAIL：32/34匹配，发现同一路径的autofs与binfmt_misc两层仍缺；失败证据保留。"
    },
    {
      "order": 7,
      "atUTC": "2026-11-06T18:35:28.549309+00:00",
      "timeQuality": "LOCAL_ROOT_RECEIPT",
      "event": "原binfmt两层按顺序恢复成功。"
    },
    {
      "order": 8,
      "atUTC": "2026-11-06T18:36:02.817557+00:00",
      "timeQuality": "LOCAL_INDEPENDENT_RECEIPT",
      "event": "完整可比挂载集合34/34，missing0/extra0。"
    },
    {
      "order": 9,
      "atUTC": "2026-11-06T18:39:03.338187+00:00",
      "timeQuality": "LOCAL_INDEPENDENT_RECEIPT",
      "event": "有限范围独立恢复验收PASS；root核对原始三份审计SHA后接受，并仅释放单次带新guard的派生输入尝试。"
    },
    {
      "order": 10,
      "atUTC": "2026-11-06T18:40:49.154656+00:00",
      "timeQuality": "LOCAL_ROOT_RECEIPT",
      "event": "root核Restart=no、无ExecStop、所属cgroup恰2个目标进程及启动/namespace/暂停状态，固定pidfd后按child→parent发送SIGKILL；两者均消失，host mountinfo逐字与3个sysctl前后保持一致。"
    },
    {
      "order": 11,
      "atUTC": null,
      "timeQuality": "OWNER_CONFIRMED_EXACT_LOCAL_RAW_PENDING",
      "event": "约18:42Z的首次单UUID派生尝试：guard VERIFIED_BEFORE_EXEC，parent-import成功；parent-inspect期间du临时路径ENOENT导致FAIL_BUDGET_SAMPLING。29.4s，无容器或apt；未自动第二次。"
    }
  ],
  "failedAttemptsRetained": [
    {
      "attempt": "cgroup canonicalized bind",
      "result": "未作为正确恢复接受；由owner按受保护的精确范围移除，原失败/处置记录保留。",
      "timestampUTC": null,
      "evidenceLevel": "ROOT_REPORTED_RAW_ATTEMPT_LOGS_RETAINED_INTERNAL_NOT_COPIED_IN_THIS_LOCAL_SET"
    },
    {
      "attempt": "cgroup no-canonicalize跨namespace bind",
      "result": "EINVAL，未据此标记恢复成功；原错误记录保留。",
      "errno": 22,
      "timestampUTC": null,
      "evidenceLevel": "ROOT_REPORTED_RAW_ATTEMPT_LOGS_RETAINED_INTERNAL_NOT_COPIED_IN_THIS_LOCAL_SET"
    },
    {
      "attempt": "14目标检查后的完整集合检查",
      "result": "发现遗漏binfmt隐藏层与上层，保留FAIL后补齐再跑r2。",
      "timestampUTC": "2026-11-06T18:26:30.243689+00:00",
      "evidenceLevel": "LOCAL_INDEPENDENT_RECEIPT"
    }
  ],
  "boundedAcceptance": {
    "atUTC": "2026-11-06T18:39:03.338187+00:00",
    "status": "PASS",
    "baselineRows": 34,
    "hostRows": 34,
    "missing": 0,
    "extra": 0,
    "knownTaskUnits": 10,
    "unitStateAndMainPIDUnchangedWithinRecordedSet": true,
    "recordedIncidentProcessIdentityNamespaceUnchanged": true,
    "recordedResourceLimitsUnchanged": true,
    "observerPriorLimitSnapshot": null,
    "hostSysctls": {
      "net.ipv4.ip_forward": "0",
      "vm.nr_hugepages": "0",
      "vm.unprivileged_userfaultfd": "0"
    },
    "knownException": "Mooncake监督器的原failed状态保留，原3个后端子进程仍存活。",
    "scopeLimitations": [
      "仅针对保留基线的可比挂载集合及已命名任务unit/进程和已记录配额。",
      "没有遍历/验证全部宿主服务、全部namespace或全部历史业务。",
      "没有读取文件payload；未以该验收证明API/VM数据正确性、业务恢复、HA或安全隔离。",
      "任务观测器缺原限额快照，以null表示，不能把当前值当作已证实未变化。"
    ]
  },
  "oldNATDisposition": {
    "state": "EXACT_TWO_PROCESSES_TERMINATED",
    "atUTC": "2026-11-06T18:40:49.154656+00:00",
    "signals": [
      "pinned pidfd SIGKILL child",
      "pinned pidfd SIGKILL parent"
    ],
    "systemctlStopUsed": false,
    "SIGCONTUsed": false,
    "oldCleanupHandlerInvoked": false,
    "hostMountInfoByteEqualBeforeAfter": true,
    "hostSysctlsEqualBeforeAfter": true,
    "taskRoutesAndIptablesCleanup": "PASS_EXACT_TASK_NAMESPACE_CAS_ROLLBACK",
    "networkCleanupAtUTC": "2026-11-06T18:51:04.093189+00:00",
    "networkCleanupEvidenceSHA256": "78f6773c54502c11b61b1fa057dac0a0b7c2bb12303529cfa4802685f9701460"
  },
  "nextLaunchGuard": {
    "state": "ACTUAL_VERIFIED_BEFORE_EXEC_ROOT_INDEPENDENTLY_PARSED_MOUNTINFO",
    "resourceUnit": "CPU8 / memory16GiB",
    "placement": "systemd服务ExecStart内部执行unshare NEWNS并递归private，再进入新verify-launcher；仅包住systemd-run客户端不能使PID1派生服务继承该namespace。",
    "checks": [
      "self mountns不同于PID1",
      "所有mountinfo条目无shared/master/propagate_from",
      "完整root=/的cgroup2视图",
      "相同cgroupns、精确unit membership和CPU/内存上限",
      "固定builder/installer SHA后写launch audit并exec"
    ],
    "oldFrozenScriptsChanged": false,
    "scope": "根恢复前219发生于ExecStart之前，guard不能替代host恢复；--network=host共享网络，--cgroups=disabled仍受父unit资源上限。",
    "actualAttempt": {
      "outcome": "FAIL_BUDGET_SAMPLING",
      "durationSecondsOwnerReported": 29.4,
      "atUTC": null,
      "approximateUTC": "2026-11-06T18:42Z附近，仅owner描述，不用作精确事件时间。",
      "guard": "VERIFIED_BEFORE_EXEC",
      "completedStage": "parent-import returncode0",
      "failedStage": "parent-inspect期间du -sb遍历overlay临时路径，ENOENT导致预算采样非零退出，工具fail-closed。",
      "containerCreated": false,
      "aptRun": false,
      "evidence": "恢复owner/controller确认，原JSON正拷入；后续由root补精确UTC/原SHA。"
    },
    "actualChecks": {
      "mountNamespaceDiffersFromPID1": true,
      "sameCgroupNamespace": true,
      "entireMountTreeNoSharedOrSlave": true,
      "cpuMax": "800000 100000",
      "memoryMax": "17179869184",
      "launchAuditSHA256": "4bd41a3145f8d4cca970b8402701e937c3d836e8fb0f9e334e8f8669f771efe0"
    }
  },
  "pending": [
    "全宿主及非任务业务影响审计。",
    "原始guard/首尝试回执精确UTC与SHA补录；budget采样v2工具验证后由controller决定下一次。",
    "实际apt签名认证、包安装和派生OCI成功证据。",
    "后续两后端完整VM持久状态E2E；本事故验收不能替代该结果。"
  ],
  "sourceSHA256": [
    {
      "file": "slirp4netns/sandbox.c",
      "commit": "e5e368c4f5db6ae75c2fce786e31eef9da6bf236",
      "sha256": "06dc813f0f9ac4b123130361b46ee572966b4404494d3408128f6b89a343a74d",
      "binding": "与已核安装commit对应的原始官方source快照。"
    },
    {
      "file": "slirp4netns/main.c",
      "commit": "e5e368c4f5db6ae75c2fce786e31eef9da6bf236",
      "sha256": "d182a1763f777b0d40e002d99f87808e48f103dec5d07c41423253d81dcc09a8",
      "binding": "官方source快照。"
    },
    {
      "file": "restore-preserved-mount.c",
      "sha256": "aa4fa19a2e8bdfecf38e4bb5dfc6b29feea18195f3a1e89338726663deb6f074",
      "binding": "本地恢复helper源码快照；公开摘要不包含具体进程/私有路径。"
    },
    {
      "file": "restore-binfmt-mounts.c",
      "sha256": "a22d5016e8b21db9af946f28c33a206e6f03c646f7b5b420ae137381dcc701cb",
      "binding": "final probe回执绑定的sourceSHA，与本地source一致。"
    },
    {
      "file": "verify-launcher.py",
      "sha256": "84db14bff68ba9ffff6d61dfea8622305e765fa1d1abeba9477c6dbf8bf2cef9",
      "binding": "新准备source；仅py_compile和纯fixture验证，未由摘要编写者运行。"
    }
  ],
  "evidence": [
    {
      "file": "binfmt-final-probe.json",
      "sha256": "6c20c3238cba5d63c52a0927263c451e6e869c9993fe461ff9026f66aa5d3fd7"
    },
    {
      "file": "binfmt-original-instances-restoration.json",
      "sha256": "6d36db4caf1a08fbbe1ebd9696e01c16093a22fd088052a56e87bacee83ad063"
    },
    {
      "file": "independent-all14-original-instances-r1.json",
      "sha256": "47dcb393271c5700c1ff843fa444ba41681400e73b84556838d1339abbae4a89"
    },
    {
      "file": "independent-all14-original-instances-r2.json",
      "sha256": "d5f322faf35bf2e4af72ee61755a5fc7ca4284c9b5c486a6ec6b1ec720a89965"
    },
    {
      "file": "independent-complete-mountinfo-difference-r1.json",
      "sha256": "f90f31a98077a55908ee45febd8016c7d22b2aa1321ed45cb5828b145f0cf943"
    },
    {
      "file": "independent-complete-mountinfo-difference-r2.json",
      "sha256": "8356a9992fa0470776f24b5064b25bc034ad257bb6b22da1d587da6eea8de350"
    },
    {
      "file": "independent-final-task-state-r1.json",
      "sha256": "173e270d62ed84976967725af3253845693e84e870f61d4ad45021f58034552f"
    },
    {
      "file": "independent-recovery-acceptance-r1.json",
      "sha256": "2c6cc3c8a8ed41f999cbdb45ceb07c745f67bf9e18b39a6370f7a16ecb346013"
    },
    {
      "file": "old-nat-exact-pidfd-kill.json",
      "sha256": "c254f4ccfea98c2f24a5eb006ce92e8e01bdb94bc2310fb6d0a8ecb55defcbf4"
    }
  ],
  "redaction": {
    "hostAliasesRemoved": true,
    "absolutePrivateWorkspacePathsRemoved": true,
    "processIDsStartTicksNamespaceIDsRemoved": true,
    "credentialsPrivateConfigOrPayloadIncluded": false,
    "genericKernelMountTargetsRetained": true
  },
  "publication": "PUBLIC_REDACTED_SNAPSHOT",
  "claimsNotMade": [
    "绝对没有其他服务受到影响",
    "传播链已获内核trace证明",
    "历史host传播peer IDs已精确恢复",
    "全宿主/全业务审计完成",
    "VM E2E或生产隔离安全已经通过"
  ],
  "additionalObservedImpact": {
    "source": "current failed-unit metadata; no pre-incident complete failed-unit baseline",
    "metadataAtUTC": "2026-11-06T18:46:14.044686+00:00",
    "timerJobsWith219DuringIncidentWindow": [
      {
        "Result": "exit-code",
        "ExecMainStartTimestamp": "Sat 2026-11-07 02:09:21 CST",
        "ExecMainExitTimestamp": "Sat 2026-11-07 02:09:21 CST",
        "ExecMainStatus": "219",
        "Id": "dnf-makecache.service"
      },
      {
        "Result": "exit-code",
        "ExecMainStartTimestamp": "Sat 2026-11-07 01:54:01 CST",
        "ExecMainExitTimestamp": "Sat 2026-11-07 01:54:01 CST",
        "ExecMainStatus": "219",
        "Id": "update-repos-html.service"
      }
    ],
    "bothTimersCurrently": "active / waiting under existing schedule; no manual retry or configuration change",
    "failedSessionScopesObserved": 36,
    "scopeLimit": "Current metadata confirms these failure states and times; it is not a complete audit of every host workload or proof of the exact kernel causal chain.",
    "metadataSHA256": "a0b41454fcf5a83bce53c7221313176f14a3abb66c0d2a61514f6c10efd901bc",
    "repositoryIndexScheduledRetry": {
      "startedAtCST": "2026-11-07 02:54:01",
      "exitedAtCST": "2026-11-07 02:54:02",
      "exitCode": 0,
      "trigger": "existing timer, no manual retry"
    },
    "dnfNextScheduledAtCST": "2026-11-07 03:37:05",
    "dnfScheduledRetry": {
      "startedAtCST": "2026-11-07 03:37:06",
      "exitedAtCST": "2026-11-07 03:37:11",
      "exitCode": 1,
      "result": "command ran and returned1; no longer219/CGROUP; underlying command failure not diagnosed here",
      "trigger": "existing timer; no manual action"
    }
  },
  "derivedInputAttempt": {
    "state": "FAILED_BUDGET_SAMPLING",
    "parentImportExitCode": 0,
    "parentImportSeconds": 27.28995680809021,
    "error": "du -sb failed while Podman overlay temporary path disappeared; no invalid byte count accepted",
    "containerCIDFileExists": false,
    "aptCommandEverStarted": false,
    "hostMountInfoUnchanged": true,
    "hostSysctlsUnchanged": true,
    "correctiveWork": "v2有限记录重试及真实GNUdu协议验证，预算与正常APT信任保持；后续唯一输入实际PASS，首FAIL保留。",
    "evidenceSHA256": "8ef11e0578abc6115cd1159cc91dd1fa2f61e6da5e229842b2b48548a3f86194",
    "subsequentV2Result": "PASS: see derived-image-audit.json; first failure retained"
  }
}
