{
  "task": "Omni configuration process-owned crash recovery and legacy private-directory upgrade",
  "date": "2026-10-17",
  "scope": "Source-only isolated fixtures; no live inference, model loading, deployment, host service changes, or shared builds.",
  "workspace": "/tmp/omnius-omni-config-review-20261017",
  "baseline": {
    "path": "/tmp/omnius-omni-config-lock-baseline.ts",
    "sha256": "1e1d97742b9fd9f33b55588152e1030af7b434b3cbc9cb86715acf54c539febd",
    "regression": {
      "report": "/tmp/omnius-omni-config-lock-before.json",
      "sha256": "74ff02582566c0c01a0d61da287064e2c07112cafb6e3389be006b28770241ff",
      "selected": 2,
      "failed": 2,
      "passed": 0,
      "unselected": 16,
      "description": "The prior wx-only lock implementation permanently blocked old private empty and partial lock files; both grace-recovery fixtures failed before this change."
    }
  },
  "verification": {
    "runtime": {
      "node": "22.22.1",
      "nodeBinary": "/tmp/node-v22.22.1-linux-x64/bin/node",
      "typescript": "5.9.3",
      "platform": "Linux"
    },
    "vitest": {
      "passed": 70,
      "failed": 0,
      "files": 3,
      "cases": {
        "omni-configuration-lock.test.ts": 21,
        "omni-configuration.test.ts": 30,
        "omni-comprehension.test.ts": 19
      },
      "report": "/tmp/omnius-omni-config-lock-final-tests.json",
      "reportSha256": "372e65c85c1de6eec0ed3565c2ecf07bff69c13cc90cf18a0524880cf1c0caed",
      "log": "/tmp/omnius-omni-config-lock-final-tests.log",
      "command": "env OMNIUS_CONFIG_HOME=/tmp/omnius-omni-config-legacy-env /tmp/node-v22.22.1-linux-x64/bin/node node_modules/vitest/vitest.mjs run --config vitest.config.ts tests/omni-configuration-lock.test.ts tests/omni-configuration.test.ts tests/omni-comprehension.test.ts --reporter=json --outputFile=/tmp/omnius-omni-config-lock-final-tests.json",
      "cwd": "/tmp/omnius-omni-config-review-20261017/packages/execution"
    },
    "typecheck": {
      "exitCode": 0,
      "log": "/tmp/omnius-omni-config-lock-final-noemit.log",
      "config": "/tmp/omnius-omni-config-review-20261017/config-lock-typecheck.json",
      "configSha256": "222c1a15ca472ae51718a25b7dddb083a82ef0d4b4d71e22110eb4d665fecf0f",
      "command": "pnpm --filter omnius exec tsc -p ../../config-lock-typecheck.json --noEmit",
      "note": "Focused source/test check retains strict checks; verbatimModuleSyntax=false and noImplicitThis=false accommodate existing CommonJS hermetic-network test-support declarations."
    },
    "diffCheck": {
      "exitCode": 0,
      "command": "git diff --check"
    },
    "overlap": "70 is the unique test-case total for this invocation; it includes the previously passing 30 configuration and 19 comprehension cases. Do not add historical totals to it."
  },
  "behavior": [
    "Save and Clear share an exclusive owner-private lock containing PID, Linux process-start and boot identity, nonce and creation time; no model credential is written to lock metadata.",
    "A verified dead owner can be recovered immediately; a reused PID is distinguished by Linux process birth identity. Live or unverifiable owners remain busy without mutation.",
    "Empty or malformed private lock files remain busy for 30 seconds. After grace they may be recovered only after owner/type/mode/link/size/inode checks and an exclusive recovery guard.",
    "Suspended empty-lock initializers recheck inode, nonce and recovery guard before mutation, including when a successor saved identical CAS bytes.",
    "Two independent recovery contenders preserve the single CAS winner; release removes only the original inode and nonce. Unsafe symlinks, hardlinks and public lock files remain untouched.",
    "Owned non-group/world-writable legacy application configuration directories may be tightened from 0755 to 0700 using an O_NOFOLLOW directory descriptor, fstat and fchmod. New directories remain 0700. Writable/foreign/symlink directories are rejected.",
    "Privacy upgrades apply only to the actual application configuration directory, including an OMNIUS_CONFIG_HOME fixture root. An arbitrary explicitly supplied custom parent is not chmodded.",
    "Rollback Clear uses the same transaction lock and exact captured revision; another editor\u2019s newer configuration is preserved."
  ],
  "knownLimitations": [
    "A crash during the short recovery guard itself leaves .lock.recovery intact. Automatic recursive stealing is intentionally refused: the fixed actionable error asks the operator to inspect that private owner record before removal. Empty, dead and dangling recovery guards are tested to remain unchanged.",
    "PID birth-identity recovery is verified on Linux. On platforms without a verified birth identity, live PIDs remain unknown and busy; an ESRCH owner is recoverable."
  ],
  "ownedFiles": {
    "packages/execution/src/av/omni-configuration.ts": "eebe670c7b614e4808a0ffdd08cea1fff10aff01fbb143b048be4823f612f7d7",
    "packages/execution/tests/omni-configuration-lock.test.ts": "5105af4081d18a8b5239f6f3a7705e7c95221515ab8d7d245d8322b2360115da",
    "packages/execution/tests/omni-configuration.test.ts": "a6d4cc4c86e175fc8827bb6c422e11917187c72a62d81811bade302ea9d82d20"
  },
  "excludedVerificationCopies": [
    "packages/execution/src/av/omni-comprehension.ts",
    "packages/execution/src/index.ts",
    "config-lock-typecheck.json",
    "config-test-typecheck.json",
    "node_modules and workspace links"
  ],
  "productionPatch": {
    "path": "/tmp/omnius-omni-config-lock-source-final.patch",
    "sha256": "1598a910e2d067e77532f7c851d123727783c0fe6ec50d46baa30fdd293c0053"
  },
  "privacyOnlyDelta": {
    "path": "/tmp/omnius-omni-config-lock-privacy-delta.patch",
    "sha256": "a898a5c7774e836f8ff2eeda86e57be96b3c9aa12ec917e91595ff20cf4ae70c",
    "use": "Alternative only when the earlier9c8d9d0c lock patch is already applied; do not apply both source patches."
  }
}
