{
  "phase": "Project-scoped generated artifacts with global shared media weights",
  "verifiedAt": "2026-10-17T02:16:35.624507+00:00",
  "baseCommit": "0a6e9adac127f4fc7288ae3df99dd0d725f50711",
  "passed": true,
  "verificationScope": "Focused backend, filesystem, authorization and required transport regressions; not the full CLI or workspace suite.",
  "uniqueTests": 122,
  "uniqueTestFiles": 11,
  "batches": [
    {
      "name": "project media, HTTP authorization and existing management/archive routing",
      "command": "pnpm --filter omnius exec vitest run tests/project-media-auth.test.ts tests/project-media.test.ts tests/media-management.test.ts tests/routes-media.test.ts --maxWorkers 2 --minWorkers 1",
      "passed": 54,
      "files": 4,
      "cases": {
        "project-media": 14,
        "project-media-auth": 2,
        "media-management": 20,
        "routes-media": 18
      }
    },
    {
      "name": "shared cache leases, model store and migration",
      "command": "pnpm --filter @omnius/execution exec vitest run tests/media-store-lease.test.ts tests/model-store.test.ts tests/media-store-migrate.test.ts tests/relocate-media-store.test.ts --maxWorkers 2 --minWorkers 1",
      "passed": 34,
      "files": 4,
      "cases": {
        "media-store-lease": 8,
        "model-store": 15,
        "media-store-migrate": 4,
        "relocate-media-store": 7
      }
    },
    {
      "name": "mandatory daemon frontend transport gate",
      "command": "pnpm --filter omnius exec vitest run tests/web-chat-transport-lifecycle.test.ts tests/web-ui-client-runtime.test.ts tests/web-ui-script.test.ts --maxWorkers 2 --minWorkers 1",
      "passed": 34,
      "files": 3,
      "cases": {
        "web-chat-transport-lifecycle": 21,
        "web-ui-client-runtime": 4,
        "web-ui-script": 9
      },
      "notes": "Existing repeated SIGINT/SIGTERM listener warnings appeared in the fixture process; all lifecycle assertions passed."
    }
  ],
  "checks": {
    "cliNoEmit": "PASS: pnpm --filter omnius exec tsc --noEmit --pretty false",
    "ownedDiffCheck": "PASS"
  },
  "deduplication": "Earlier 50/52-test backend runs and the repeated two-test authorization run are superseded by the final 54-test batch, and are not added again.",
  "behavior": [
    "Image, video, audio and music generation capture registered projectRoot, use existing project .omnius output directories directly and never copy new outputs into a global gallery.",
    "Gallery discovers existing project artifacts without import. Global model weights stay shared; older global gallery copies require explicit legacy-global scope and are not auto-attributed or moved.",
    "Known session IDs must match the captured project. Stable IDs use physical project identity; stat-based revisions, ETags and If-Match reject replaced artifacts between inspection and byte acquisition/deletion.",
    "Basenames, supported media types, regular directories/files, containment and matching sidecars are validated. Sidecars cannot redirect access. Project video deletion includes only its exact derived regular thumbnail.",
    "Daemon Stop requires matching project, generation/request identity and authenticated owner with run/admin scope. Acknowledgement means stopping; actual terminal settlement comes from the invocation. Repeated Stop is idempotent, and late cancel errors cannot reopen terminal jobs.",
    "Configured root symlink aliases share a canonical physical media-store lease; nested cache/lock symlinks remain rejected.",
    "REST register, rename, unregister and preference-sentinel writes require admin. switch registerIfMissing also requires admin. Existing-root switching and read-only scan/list stay available. Actual HTTP scan finds an unregistered .omnius workspace without changing registry bytes or granting media access."
  ],
  "isolation": [
    "All artifact/model/cache tests use scratch OMNIUS_HOME and OMNIUS_MEDIA_HOME; Vitest and HTTP helper use scratch OMNIUS_CONFIG_HOME/ASR_ROOT.",
    "Generation constructors are replaced with deterministic fixture implementations that write dummy bytes into scratch project directories. Cancellation uses controlled promises, never GPU/model workers.",
    "Authorization uses actual loopback HTTP and fixture bearer scopes. No external inference, model download, daemon restart, publication, global installation or real user artifact deletion was performed."
  ],
  "limits": [
    "Generation control records are bounded daemon-memory state (terminal expiry ten minutes); they do not survive a daemon restart.",
    "Revision is a stat fingerprint rather than a content checksum. File acquisition uses O_NOFOLLOW plus fstat revision verification.",
    "The existing shared store lease conservatively serializes generation with cache mutations because generation can auto-download/evict; no new concurrent-reader lease policy is claimed.",
    "Browser visual/playback coverage and actual native playback coverage are supplied by separate team verification; this receipt claims only the tests listed here."
  ],
  "priorEvidenceCorrection": {
    "file": "docs/work-orders/evidence/dashboard-media-management-20261016.json",
    "note": "The earlier initialFailure diagnosis of real-home lease contention was unproven. Subsequent parent reproduction showed the configured root was a legitimate symlink rejected by the original lease root check, before allocation. No actual cache/model operation or persistent real-home lease was observed. This phase canonicalizes configured aliases and tests that behavior explicitly."
  },
  "ownedFiles": [
    "docs/design/media-unification-design.md",
    "packages/cli/src/media-artifacts.ts",
    "packages/cli/src/api/media-projects.ts",
    "packages/cli/src/api/routes-media.ts",
    "packages/cli/src/api/media-management.ts",
    "packages/cli/src/api/openapi.ts",
    "packages/cli/src/api/serve.ts",
    "packages/execution/src/tools/media-store-lease.ts",
    "packages/execution/src/tools/media-store-migrate.ts",
    "packages/cli/tests/project-media.test.ts",
    "packages/cli/tests/project-media-auth.test.ts",
    "packages/cli/tests/media-management.test.ts",
    "packages/cli/tests/routes-media.test.ts",
    "packages/execution/tests/media-store-lease.test.ts"
  ],
  "sourceSha256": {
    "docs/design/media-unification-design.md": "4f30985a9797fa081c765193335397c876d5a7d6bc06bfde17d4709d648cc4ac",
    "packages/cli/src/media-artifacts.ts": "3c38afa640bd38667167dd5973cad5c9d0daa4b2b4d7ef652eb6cf3b948b8226",
    "packages/cli/src/api/media-projects.ts": "fd065f09e4cd99409da5416754818320adc782aa834485a5c242ef1ae7e3b840",
    "packages/cli/src/api/routes-media.ts": "834ff2a2230d5ca1a80d27f37a43d22011608e40343117f465ff0879a8b19ff4",
    "packages/cli/src/api/media-management.ts": "c7d617401dc48968ad2347c2cb02cb0210731cbd86a4ae3c9c972689ab281cbb",
    "packages/cli/src/api/openapi.ts": "c99840dae2e8023524a0ebc20c8b93fbc1d8c5e45ce4973bcd607148de2e27ea",
    "packages/cli/src/api/serve.ts": "535d96d283855b9c46340f6dac2370bf7c85b694f3dc0fa15a4eb7b17ebe86d3",
    "packages/execution/src/tools/media-store-lease.ts": "126fbe2012a75ac4f3ccedfbe8ec17a6a593e767a6db7a1e85f77f6993dc1f2d",
    "packages/execution/src/tools/media-store-migrate.ts": "de5f8b16ce07ea50254374660c62534255659255b487618b174d8abd6bfc9c1d",
    "packages/cli/tests/project-media.test.ts": "f1723b555cedc5c2973f09a61442b066b2c547bb8b35c2739cb2962ef7d6eed2",
    "packages/cli/tests/project-media-auth.test.ts": "1d919cbd902839159598eff23cdbdc354246e5c6efdac46608599754d7895978",
    "packages/cli/tests/media-management.test.ts": "fc467b9c41ae50e9a1bf2e88e51fcf4aaf06cdb09e9e35c02509fefd14fd36f5",
    "packages/cli/tests/routes-media.test.ts": "cd1a4d4d5436c225e2c82107daf087dc8f3f442617da47baf60489a55b2c20ef",
    "packages/execution/tests/media-store-lease.test.ts": "46fe3fb40ab062b0a1afd285da1ed3d88220ebb65756869ab4f4cae2dba14078"
  }
}
