{
 "format": "ac-certificate/2",
 "tool": {
  "name": "architecture-cleaner",
  "version": "0.1.0"
 },
 "repo": "/home/paseo/ac-work/s6/final-immich",
 "base": "8eac5f6107f02e256de5e5f61ea0a6990d9fb3aa",
 "head": "ceed7e5ae9c281f2aacf8c01cc0c8b82ad88438b",
 "baseTree": "c94d47662aa08f066a91f7687203ee7faee7180b",
 "headTree": "199d3a6f41a5b0db356f4413556dfd11073c2772",
 "packageRoot": "server",
 "profile": "immich",
 "environment": {
  "checkout": "/home/paseo/ac-targets/immich",
  "node": "v22.23.3",
  "linkedNodeModules": [
   "",
   "packages/plugin-core",
   "packages/plugin-sdk",
   "packages/sdk",
   "server"
  ]
 },
 "workDir": "/home/paseo/ac-work/s6/final/work/step-061-1",
 "pathMap": {
  "moves": 1,
  "unchanged": 3460,
  "editedInPlace": 3,
  "deleted": [],
  "added": [],
  "ambiguousGroups": 0,
  "entries": {
   "server/src/modules/view/view-repository.ts": "server/src/modules/view/view.repository.ts"
  }
 },
 "checks": [
  {
   "id": "K0",
   "title": "Envelope",
   "status": "pass",
   "summary": "inside the envelope: 678 TypeScript vs 3 JavaScript sources under server; no automock, nested package scope, symlink, same-stem pair or unreadable runner config around 1 moved files",
   "metrics": {
    "moves": 1,
    "baseTypeScriptFiles": 678,
    "baseJavaScriptFiles": 3,
    "headTypeScriptFiles": 678,
    "headJavaScriptFiles": 3
   },
   "violations": [],
   "findings": [],
   "durationMs": 5173
  },
  {
   "id": "K1",
   "title": "Move-set integrity",
   "status": "pass",
   "summary": "1 moves, 3 files edited in place, nothing added or deleted",
   "metrics": {
    "moves": 1,
    "unchanged": 3460,
    "editedInPlace": 3,
    "deleted": 0,
    "added": 0,
    "copies": 0,
    "inertAdditions": 0
   },
   "violations": [],
   "findings": [],
   "durationMs": 2214
  },
  {
   "id": "K2",
   "title": "Byte-span confinement",
   "status": "pass",
   "summary": "3 specifier spans changed in 3 files; every other byte identical",
   "metrics": {
    "comparedFiles": 3,
    "editedFiles": 3,
    "changedSpans": 3
   },
   "violations": [],
   "findings": [],
   "durationMs": 679
  },
  {
   "id": "K3a",
   "title": "Resolution identity under TypeScript",
   "status": "pass",
   "summary": "6647 sites in 1100 files resolve to map(base) under every program (458 files in several); 3 rewritten specifiers keep their form",
   "metrics": {
    "files": 1100,
    "sites": 6647,
    "resolutions": 9636,
    "multiProgramFiles": 458,
    "rewrittenSpecifiers": 3,
    "typeDirectives": 13,
    "implicitImports": 0,
    "unextractedSites": 0,
    "addedFiles": 0,
    "deletedFiles": 0,
    "resolutionMismatches": 0,
    "formChanges": 0,
    "contextChanges": 0,
    "typeDirectiveMismatches": 0,
    "workspaceLinks": 0,
    "virtualModuleSplits": 0,
    "unresolvedMoves": 0,
    "unmodeledResolutions": 0
   },
   "violations": [],
   "findings": [],
   "durationMs": 1792
  },
  {
   "id": "K3b",
   "title": "Resolution identity under the test runner",
   "status": "pass",
   "summary": "vitest 4.1.11: 4837 sites in 672 files resolve to map(base)",
   "metrics": {
    "runner": "vitest",
    "runnerVersion": "4.1.11",
    "projects": "server:unit",
    "sites": 4837,
    "files": 672,
    "dangling": 0,
    "retargeted": 0,
    "newlyResolved": 0,
    "unresolvedTextChanged": 0,
    "mockChanged": 0,
    "addedDangling": 0,
    "outsideRoots": 0,
    "outsideProjectRoot": 0,
    "addedFiles": 0
   },
   "violations": [],
   "findings": [],
   "durationMs": 8440
  },
  {
   "id": "K3c",
   "title": "Resolution identity under the runtime",
   "status": "pass",
   "summary": "6192 runtime sites resolve to map(base) under nest-cli/emit (3442 rewritten by the build)",
   "metrics": {
    "runtimes": "nest-cli/emit",
    "runtimeEvidence": "nest-cli/emit: package.json scripts.start:dev: nest start --watch --; package.json scripts.start:debug: nest start --debug 0.0.0.0:9230 --watch --; server/bin/start.sh: exec node --no-warnings \"${SERVER_HOME}/dist/main.js\" \"$@\"",
    "modeled": "nest-cli/emit",
    "notModeled": "",
    "subpathImports": false,
    "emitModel": "in place: each source at its own path with the runtime extension (.ts->.js, .mts->.mjs, .cts->.cjs), as with a fixed rootDir; outDir links to rootDir",
    "node": "v24.21.0",
    "nestCli": "12.0.6",
    "files": 1099,
    "addedFiles": 0,
    "unresolvedInAdded": 0,
    "comparedSites": 6192,
    "rewrittenByBuild": 3442,
    "unresolvedInBase": 1453,
    "deferredSites": 0,
    "aliasSitesBase": 1920,
    "aliasSitesHead": 1920,
    "disagreements": 0,
    "violations": 0
   },
   "violations": [],
   "findings": [],
   "run": {
    "skeletonMs": 1758,
    "probeMs": 4212
   },
   "durationMs": 6883
  },
  {
   "id": "K4",
   "title": "Location scan",
   "status": "pass",
   "summary": "1 moved files expose no location; no computed path reaches a change; no old path in code, config or CI (0 findings in docs, comments or ungated coverage settings)",
   "metrics": {
    "movedFilesScanned": 1,
    "movedFileHazards": 0,
    "copiedFileHazards": 0,
    "filesScannedForComputedPaths": 1099,
    "computedPathViolations": 0,
    "textFilesScanned": 3128,
    "oldPathViolations": 0,
    "coverageViolations": 0,
    "coverageFindings": 0,
    "oldPathFindings": 0,
    "globsChecked": 2919,
    "pluginSuffixViolations": 0
   },
   "violations": [],
   "findings": [
    {
     "kind": "opaque-dynamic-load",
     "file": "server/src/repositories/database.repository.ts",
     "detail": "line 510: import(filePath) loads a module by a path K4 can't evaluate"
    }
   ],
   "durationMs": 5187
  },
  {
   "id": "K6",
   "title": "Test inventory",
   "status": "pass",
   "summary": "vitest 4.1.11: 105 test files, 2337 tests, per-file load status and case names equal",
   "metrics": {
    "runner": "vitest",
    "runnerVersion": "4.1.11",
    "baseFiles": 105,
    "headFiles": 105,
    "baseTests": 2337,
    "headTests": 2337,
    "baseUnloadable": 0,
    "headUnloadable": 0,
    "loadRegressions": 0,
    "droppedFiles": 0,
    "newFiles": 0,
    "caseChanges": 0,
    "lostTests": 0,
    "uncollected": 0,
    "snapshotFileChanges": 0,
    "snapshots": "snapshot files co-move with their tests (K1); snapshot.added == 0 under --ci needs a real run (K8)"
   },
   "violations": [],
   "findings": [],
   "run": {
    "base.ms": 5,
    "base.cached": true,
    "head.ms": 48851,
    "head.cached": false
   },
   "durationMs": 48914
  },
  {
   "id": "K7",
   "title": "Emit layout",
   "status": "pass",
   "summary": "7 emitting programs keep their outDir and rootDir (1 by TypeScript's default)",
   "metrics": {
    "emittingPrograms": 7,
    "defaultRootDirs": 1
   },
   "violations": [],
   "findings": [
    {
     "kind": "default-root-dir",
     "file": "e2e/tsconfig.json",
     "detail": "emits into e2e/dist without a rootDir; TypeScript 6.0+ and before 6.0's default stays e2e and e2e"
    }
   ],
   "durationMs": 536
  }
 ],
 "verdict": "pass",
 "scope": "static",
 "residualRisk": [
  "consumers outside the repository (deep imports, handler strings in infrastructure, other services)",
  "runtime file-system contents (assets, templates, SQL read at runtime)",
  "environment-dependent resolution (NODE_PATH, untracked or generated files)",
  "stack-trace and source-map text",
  "CI triggers and review routing keyed by path (workflow `paths`, CODEOWNERS)"
 ],
 "digest": "sha256:70dc3f40d8186e75c0ba7cace201511584e1ca0ddf8144fb2324c9acdb1b8a21"
}
