{
 "meta": {
  "name": "fastify/fastify",
  "url": "https://github.com/fastify/fastify",
  "slug": "fastify-fastify",
  "host": "github.com",
  "commit": "3ad5a426371ed652e3ddc759d6b389b76fb86eaa",
  "committed_at": "2026-10-12T12:23:41+02:00",
  "evaluated_at": "2026-10-12T12:00:36+00:00",
  "neosloc": "0.8.0"
 },
 "report": {
  "schema_version": 2,
  "target": "https://github.com/fastify/fastify",
  "inventory": {
   "files": 390,
   "source_files": 53,
   "source_tokens": 112900,
   "languages": {
    "javascript": 72892,
    "typescript": 39781,
    "shell": 227
   },
   "git": true
  },
  "surfaces": {
   "kinds": [
    "service",
    "library"
   ],
   "evidence": {
    "service": [
     {
      "path": "lib/server.js",
      "detail": "3 matches"
     },
     {
      "path": "fastify.js",
      "detail": "1 match"
     }
    ],
    "library": [
     {
      "path": "package.json",
      "detail": "npm package"
     }
    ]
   },
   "long_running": [],
   "owns_data": [],
   "uses_credentials": [
    {
     "path": "scripts/validate-ecosystem-links.js",
     "detail": "1 match"
    }
   ]
  },
  "dimensions": [
   {
    "key": "interface",
    "title": "Interface surface",
    "level": 3,
    "rationale": "[library] The public API is statically typed (py.typed, type declarations, a typed language).",
    "evidence": [
     {
      "signal": "L1 importable",
      "detail": "npm package",
      "path": "package.json",
      "weight": 1
     },
     {
      "signal": "L2 public-api",
      "detail": "package entry point",
      "path": "package.json",
      "weight": 1
     },
     {
      "signal": "L3 typed",
      "detail": "TypeScript types",
      "path": "package.json",
      "weight": 1
     }
    ],
    "metrics": {
     "route_declarations": 0,
     "routes_by_framework": {},
     "spec_files": 0,
     "spec_operations": 0,
     "spec_coverage": null
    },
    "gaps": [
     "[service] L1 A network surface exists: HTTP routes, an MCP server, or a standard protocol listener. (no network surface)",
     "[library] L4 An API reference is generated from the code (autodoc, mkdocstrings, typedoc, \u2026). (no generated API reference)"
    ],
    "question": "Can another program use it through a documented, machine-readable surface?",
    "best_surface": "library",
    "surfaces": {
     "service": {
      "level": 0,
      "first_missing": "routes",
      "requirements": [
       {
        "level": 1,
        "id": "routes",
        "text": "A network surface exists: HTTP routes, an MCP server, or a standard protocol listener.",
        "met": false,
        "evidence": [],
        "note": "no network surface"
       },
       {
        "level": 2,
        "id": "contract",
        "text": "A contract exists: a checked-in OpenAPI/GraphQL/protobuf/AsyncAPI spec, a framework-generated spec, MCP tool schemas, or a standard application protocol that off-the-shelf clients speak (RESP, MQTT, gRPC, PostgreSQL wire, \u2026).",
        "met": false,
        "evidence": [],
        "note": "no machine-readable contract"
       },
       {
        "level": 3,
        "id": "coverage",
        "text": "A contract covers its transport: an HTTP contract covers at least 80% of declared routes (generated contracts do), or the application layer over a standard protocol (commands, topics, payloads) is specified in a protocol document or AsyncAPI.",
        "met": false,
        "evidence": [],
        "note": "no contract"
       },
       {
        "level": 4,
        "id": "second-surface",
        "text": "A second surface: another transport (HTTP and a protocol, two protocols), an MCP server, a CLI with JSON output, or an SDK.",
        "met": false,
        "evidence": [],
        "note": "only one programmatic surface"
       }
      ]
     },
     "library": {
      "level": 3,
      "first_missing": "api-reference",
      "requirements": [
       {
        "level": 1,
        "id": "importable",
        "text": "An importable, packaged API exists.",
        "met": true,
        "evidence": [
         {
          "path": "package.json",
          "detail": "npm package"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "public-api",
        "text": "The public API is delimited (__all__, an exports map, exported identifiers).",
        "met": true,
        "evidence": [
         {
          "path": "package.json",
          "detail": "package entry point"
         }
        ],
        "note": ""
       },
       {
        "level": 3,
        "id": "typed",
        "text": "The public API is statically typed (py.typed, type declarations, a typed language).",
        "met": true,
        "evidence": [
         {
          "path": "package.json",
          "detail": "TypeScript types"
         }
        ],
        "note": ""
       },
       {
        "level": 4,
        "id": "api-reference",
        "text": "An API reference is generated from the code (autodoc, mkdocstrings, typedoc, \u2026).",
        "met": false,
        "evidence": [],
        "note": "no generated API reference"
       }
      ]
     }
    },
    "level_name": "solid",
    "applicable": true
   },
   {
    "key": "stability",
    "title": "Contract stability",
    "level": 1,
    "rationale": "Releases are versioned (semver tags or versioned changelog sections).",
    "evidence": [
     {
      "signal": "L1 versioned-releases",
      "detail": "333 semver tags, latest v6.0.0-alpha.4",
      "path": null,
      "weight": 1
     }
    ],
    "metrics": {},
    "gaps": [
     "L2 A changelog exists and marks breaking changes. (no changelog)"
    ],
    "question": "Can integrators rely on it not changing under them?",
    "best_surface": "all",
    "surfaces": {
     "all": {
      "level": 1,
      "first_missing": "changelog",
      "requirements": [
       {
        "level": 1,
        "id": "versioned-releases",
        "text": "Releases are versioned (semver tags or versioned changelog sections).",
        "met": true,
        "evidence": [
         {
          "path": null,
          "detail": "333 semver tags, latest v6.0.0-alpha.4"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "changelog",
        "text": "A changelog exists and marks breaking changes.",
        "met": false,
        "evidence": [],
        "note": "no changelog"
       },
       {
        "level": 3,
        "id": "deprecation",
        "text": "A deprecation mechanism is used in code (warnings, @deprecated, Deprecation/Sunset headers) or the API is versioned.",
        "met": false,
        "evidence": [],
        "note": "no deprecation mechanism or API versioning"
       },
       {
        "level": 4,
        "id": "clean-history",
        "text": "Across tagged releases, no OpenAPI operation, CLI option or __all__ symbol was removed without first being deprecated.",
        "met": true,
        "evidence": [
         {
          "path": null,
          "detail": "20 tagged releases compared"
         }
        ],
        "note": ""
       }
      ]
     }
    },
    "level_name": "ad hoc",
    "applicable": true
   },
   {
    "key": "events",
    "title": "Events",
    "level": 1,
    "rationale": "Internal events exist (signals, queues, an outbox, emitters).",
    "evidence": [
     {
      "signal": "L1 internal-events",
      "detail": "1 match",
      "path": "fastify.js",
      "weight": 1
     }
    ],
    "metrics": {},
    "gaps": [
     "L2 Webhooks sent by this system, or a streaming endpoint (SSE, WebSocket). (no outbound webhooks or streams)"
    ],
    "question": "Can others react to state changes without polling?",
    "best_surface": "service",
    "surfaces": {
     "service": {
      "level": 1,
      "first_missing": "outbound",
      "requirements": [
       {
        "level": 1,
        "id": "internal-events",
        "text": "Internal events exist (signals, queues, an outbox, emitters).",
        "met": true,
        "evidence": [
         {
          "path": "fastify.js",
          "detail": "1 match"
         },
         {
          "path": "lib/server.js",
          "detail": "1 match"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "outbound",
        "text": "Webhooks sent by this system, or a streaming endpoint (SSE, WebSocket).",
        "met": false,
        "evidence": [],
        "note": "no outbound webhooks or streams"
       },
       {
        "level": 3,
        "id": "robust-delivery",
        "text": "Signed webhooks registrable through the API, or two mechanisms (webhooks, streams, a broker).",
        "met": false,
        "evidence": [],
        "note": "one delivery mechanism, or webhooks that are unsigned or not registrable through the API"
       },
       {
        "level": 4,
        "id": "event-contract",
        "text": "Events are described by AsyncAPI or CloudEvents.",
        "met": false,
        "evidence": [],
        "note": "no AsyncAPI or CloudEvents contract"
       }
      ]
     }
    },
    "level_name": "ad hoc",
    "applicable": true
   },
   {
    "key": "identity",
    "title": "Identity",
    "level": 1,
    "rationale": "[library] Credentials can be supplied non-interactively (environment variables).",
    "evidence": [
     {
      "signal": "L1 credentials-env",
      "detail": "1 match",
      "path": "scripts/validate-ecosystem-links.js",
      "weight": 1
     }
    ],
    "metrics": {},
    "gaps": [
     "[service] L1 Programmatic authentication (bearer tokens, API keys). (no token auth)",
     "[library] L2 The credential environment variables are documented. (credential environment variables aren't documented)"
    ],
    "question": "Can a machine act with its own revocable, least-privilege identity?",
    "best_surface": "library",
    "surfaces": {
     "service": {
      "level": 0,
      "first_missing": "token-auth",
      "requirements": [
       {
        "level": 1,
        "id": "token-auth",
        "text": "Programmatic authentication (bearer tokens, API keys).",
        "met": false,
        "evidence": [],
        "note": "no token auth"
       },
       {
        "level": 2,
        "id": "managed-credentials",
        "text": "Per-client, revocable credentials (managed API keys, service accounts) or OAuth2.",
        "met": false,
        "evidence": [],
        "note": "no managed keys or OAuth"
       },
       {
        "level": 3,
        "id": "scopes",
        "text": "Credentials carry scopes or permissions.",
        "met": false,
        "evidence": [],
        "note": "no scopes or permissions"
       },
       {
        "level": 4,
        "id": "federation",
        "text": "Standard provisioning or federation (OIDC client credentials, SCIM).",
        "met": false,
        "evidence": [],
        "note": "no OIDC client credentials or SCIM"
       }
      ]
     },
     "library": {
      "level": 1,
      "first_missing": "credentials-documented",
      "requirements": [
       {
        "level": 1,
        "id": "credentials-env",
        "text": "Credentials can be supplied non-interactively (environment variables).",
        "met": true,
        "evidence": [
         {
          "path": "scripts/validate-ecosystem-links.js",
          "detail": "1 match"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "credentials-documented",
        "text": "The credential environment variables are documented.",
        "met": false,
        "evidence": [],
        "note": "credential environment variables aren't documented"
       },
       {
        "level": 3,
        "id": "secrets-not-logged",
        "text": "No output or log statement includes a credential.",
        "met": true,
        "evidence": [
         {
          "path": null,
          "detail": "no credential in print/log statements"
         }
        ],
        "note": ""
       },
       {
        "level": 4,
        "id": "profiles",
        "text": "Several profiles or scoped credentials per target.",
        "met": false,
        "evidence": [],
        "note": "no credential profiles"
       }
      ]
     }
    },
    "level_name": "ad hoc",
    "applicable": true
   },
   {
    "key": "portability",
    "title": "Data portability",
    "level": null,
    "rationale": "Not applicable: owns no persistent data.",
    "evidence": [],
    "metrics": {},
    "gaps": [],
    "question": "Can its data get in and out, in bulk, in open formats, with an explicit schema?",
    "best_surface": null,
    "surfaces": {},
    "level_name": "n/a",
    "applicable": false
   },
   {
    "key": "ergonomics",
    "title": "Agent ergonomics",
    "level": 1,
    "rationale": "[service] Errors are machine-readable: consistent JSON over HTTP, or a standard protocol's native error replies (RESP errors, MQTT reason codes, gRPC status, SQLSTATE).",
    "evidence": [
     {
      "signal": "L1 json-errors",
      "detail": "7 matches",
      "path": "lib/error-handler.js",
      "weight": 1
     }
    ],
    "metrics": {},
    "gaps": [
     "[service] L2 Field-level validation errors, and paginated lists. (no pagination)",
     "[library] L1 Errors are specific exception types, and library code never calls sys.exit. (no exception classes)"
    ],
    "question": "Can an automated caller use it without guessing, and recover from failure?",
    "best_surface": "service",
    "surfaces": {
     "service": {
      "level": 1,
      "first_missing": "validation-pagination",
      "requirements": [
       {
        "level": 1,
        "id": "json-errors",
        "text": "Errors are machine-readable: consistent JSON over HTTP, or a standard protocol's native error replies (RESP errors, MQTT reason codes, gRPC status, SQLSTATE).",
        "met": true,
        "evidence": [
         {
          "path": "lib/error-handler.js",
          "detail": "7 matches"
         },
         {
          "path": "lib/route.js",
          "detail": "7 matches"
         },
         {
          "path": "fastify.js",
          "detail": "5 matches"
         },
         {
          "path": "lib/context.js",
          "detail": "3 matches"
         },
         {
          "path": "lib/four-oh-four.js",
          "detail": "3 matches"
         },
         {
          "path": "lib/symbols.js",
          "detail": "3 matches"
         },
         {
          "path": "types/instance.d.ts",
          "detail": "2 matches"
         },
         {
          "path": "types/route.d.ts",
          "detail": "1 match"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "validation-pagination",
        "text": "Field-level validation errors, and paginated lists.",
        "met": false,
        "evidence": [],
        "note": "no pagination"
       },
       {
        "level": 3,
        "id": "safe-retries",
        "text": "Typed errors (RFC 9457 over HTTP, or a standard protocol's typed error codes), idempotent writes (Idempotency-Key), and rate-limit signals.",
        "met": false,
        "evidence": [],
        "note": "no typed errors"
       },
       {
        "level": 4,
        "id": "agent-ready",
        "text": "Dry-run or validate-only, conditional requests, and agent docs.",
        "met": false,
        "evidence": [],
        "note": "no dry-run"
       }
      ]
     },
     "library": {
      "level": 0,
      "first_missing": "typed-exceptions",
      "requirements": [
       {
        "level": 1,
        "id": "typed-exceptions",
        "text": "Errors are specific exception types, and library code never calls sys.exit.",
        "met": false,
        "evidence": [],
        "note": "no exception classes"
       },
       {
        "level": 2,
        "id": "validation",
        "text": "Inputs are validated with messages naming the bad argument.",
        "met": true,
        "evidence": [
         {
          "path": "lib/four-oh-four.js",
          "detail": "1 match"
         }
        ],
        "note": ""
       },
       {
        "level": 3,
        "id": "timeouts-retries",
        "text": "Timeouts and retries are configurable.",
        "met": true,
        "evidence": [
         {
          "path": "fastify.js",
          "detail": "1 match"
         },
         {
          "path": "scripts/validate-ecosystem-links.js",
          "detail": "1 match"
         }
        ],
        "note": ""
       },
       {
        "level": 4,
        "id": "agent-ready",
        "text": "Agent docs, and examples that run as tests (doctests).",
        "met": false,
        "evidence": [],
        "note": "no agent docs"
       }
      ]
     }
    },
    "level_name": "ad hoc",
    "applicable": true
   },
   {
    "key": "embeddability",
    "title": "Embeddability",
    "level": 2,
    "rationale": "[library] Installable as a package (a package manifest).",
    "evidence": [
     {
      "signal": "L1 importable",
      "detail": "npm package",
      "path": "package.json",
      "weight": 1
     },
     {
      "signal": "L2 installable",
      "detail": "package manifest",
      "path": "package.json",
      "weight": 1
     }
    ],
    "metrics": {},
    "gaps": [
     "[service] L2 Configured through environment variables, documented: a .env example, a config schema, or docs naming at least half of the variables the code reads. (the environment variables aren't documented)",
     "[library] L3 Published to a public registry, with at most 10 runtime dependencies. (not published to a registry)"
    ],
    "question": "Can another system run and compose it without a human?",
    "best_surface": "library",
    "surfaces": {
     "service": {
      "level": 1,
      "first_missing": "env-config",
      "requirements": [
       {
        "level": 1,
        "id": "documented-run",
        "text": "Runnable from source with documented steps (a README with commands).",
        "met": true,
        "evidence": [
         {
          "path": "README.md",
          "detail": ""
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "env-config",
        "text": "Configured through environment variables, documented: a .env example, a config schema, or docs naming at least half of the variables the code reads.",
        "met": false,
        "evidence": [],
        "note": "the environment variables aren't documented"
       },
       {
        "level": 3,
        "id": "container",
        "text": "A container image.",
        "met": false,
        "evidence": [],
        "note": "no Dockerfile"
       },
       {
        "level": 4,
        "id": "composition",
        "text": "Composition artifacts (compose, Helm, IaC).",
        "met": false,
        "evidence": [],
        "note": "no compose/Helm/IaC"
       }
      ]
     },
     "library": {
      "level": 2,
      "first_missing": "published-minimal",
      "requirements": [
       {
        "level": 1,
        "id": "importable",
        "text": "Importable from source.",
        "met": true,
        "evidence": [
         {
          "path": "package.json",
          "detail": "npm package"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "installable",
        "text": "Installable as a package (a package manifest).",
        "met": true,
        "evidence": [
         {
          "path": "package.json",
          "detail": "package manifest"
         }
        ],
        "note": ""
       },
       {
        "level": 3,
        "id": "published-minimal",
        "text": "Published to a public registry, with at most 10 runtime dependencies.",
        "met": false,
        "evidence": [],
        "note": "not published to a registry"
       },
       {
        "level": 4,
        "id": "optional-features",
        "text": "Optional features behind extras/features.",
        "met": false,
        "evidence": [],
        "note": "no optional extras"
       }
      ]
     }
    },
    "level_name": "partial",
    "applicable": true
   },
   {
    "key": "extensibility",
    "title": "Extensibility",
    "level": 1,
    "rationale": "Internal seams: a registry, registration function or plugin manager.",
    "evidence": [
     {
      "signal": "L1 seams",
      "detail": "17 matches",
      "path": "types/instance.d.ts",
      "weight": 1
     }
    ],
    "metrics": {},
    "gaps": [
     "L2 The docs show how to add behaviour through those seams (even in-tree). (no registration functions to document)"
    ],
    "question": "Can behaviour be added without modifying the code?",
    "best_surface": "all",
    "surfaces": {
     "all": {
      "level": 1,
      "first_missing": "documented",
      "requirements": [
       {
        "level": 1,
        "id": "seams",
        "text": "Internal seams: a registry, registration function or plugin manager.",
        "met": true,
        "evidence": [
         {
          "path": "types/instance.d.ts",
          "detail": "17 matches"
         },
         {
          "path": "fastify.js",
          "detail": "3 matches"
         },
         {
          "path": "lib/plugin-utils.js",
          "detail": "2 matches"
         },
         {
          "path": "lib/plugin-override.js",
          "detail": "1 match"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "documented",
        "text": "The docs show how to add behaviour through those seams (even in-tree).",
        "met": false,
        "evidence": [],
        "note": "no registration functions to document"
       },
       {
        "level": 3,
        "id": "out-of-tree",
        "text": "Out-of-tree extensions are discovered (entry points, a plugin directory, configuration) without editing the package.",
        "met": false,
        "evidence": [],
        "note": "extensions must be added inside the package"
       },
       {
        "level": 4,
        "id": "versioned-api",
        "text": "The extension API is versioned, has lifecycle hooks, and has example extensions.",
        "met": false,
        "evidence": [],
        "note": "the extension API isn't versioned"
       }
      ]
     }
    },
    "level_name": "ad hoc",
    "applicable": true
   },
   {
    "key": "observability",
    "title": "Observability",
    "level": 2,
    "rationale": "[library] Log levels are used meaningfully (at least two levels).",
    "evidence": [
     {
      "signal": "L1 standard-logger",
      "detail": "11 matches",
      "path": "fastify.js",
      "weight": 1
     },
     {
      "signal": "L2 log-levels",
      "detail": "levels: debug, error, info, trace, warn",
      "path": null,
      "weight": 1
     }
    ],
    "metrics": {},
    "gaps": [
     "[service] L1 A health or readiness endpoint, or a container healthcheck. (no health endpoint or healthcheck)",
     "[library] L3 Optional metrics or tracing hooks. (no metrics or tracing hooks)"
    ],
    "question": "Can an operator, or an orchestrating agent, tell whether it works and why not?",
    "best_surface": "library",
    "surfaces": {
     "service": {
      "level": 0,
      "first_missing": "health",
      "requirements": [
       {
        "level": 1,
        "id": "health",
        "text": "A health or readiness endpoint, or a container healthcheck.",
        "met": false,
        "evidence": [],
        "note": "no health endpoint or healthcheck"
       },
       {
        "level": 2,
        "id": "structured-logs",
        "text": "Structured logs.",
        "met": true,
        "evidence": [
         {
          "path": "lib/logger-pino.js",
          "detail": "6 matches"
         },
         {
          "path": "lib/logger-factory.js",
          "detail": "1 match"
         },
         {
          "path": "types/logger.d.ts",
          "detail": "1 match"
         },
         {
          "path": "package.json",
          "detail": "1 match"
         }
        ],
        "note": ""
       },
       {
        "level": 3,
        "id": "metrics",
        "text": "Metrics.",
        "met": false,
        "evidence": [],
        "note": "no metrics"
       },
       {
        "level": 4,
        "id": "tracing",
        "text": "Distributed tracing (OpenTelemetry).",
        "met": false,
        "evidence": [],
        "note": "no tracing"
       }
      ]
     },
     "library": {
      "level": 2,
      "first_missing": "hooks",
      "requirements": [
       {
        "level": 1,
        "id": "standard-logger",
        "text": "Logs through a standard logger namespace and never prints from library code.",
        "met": true,
        "evidence": [
         {
          "path": "fastify.js",
          "detail": "11 matches"
         },
         {
          "path": "lib/context.js",
          "detail": "5 matches"
         },
         {
          "path": "lib/logger-factory.js",
          "detail": "5 matches"
         },
         {
          "path": "lib/route.js",
          "detail": "5 matches"
         },
         {
          "path": "types/instance.d.ts",
          "detail": "5 matches"
         },
         {
          "path": "fastify.d.ts",
          "detail": "3 matches"
         },
         {
          "path": "types/route.d.ts",
          "detail": "3 matches"
         },
         {
          "path": "lib/symbols.js",
          "detail": "2 matches"
         },
         {
          "path": "types/logger.d.ts",
          "detail": "1 match"
         },
         {
          "path": null,
          "detail": "no print() in library code"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "log-levels",
        "text": "Log levels are used meaningfully (at least two levels).",
        "met": true,
        "evidence": [
         {
          "path": null,
          "detail": "levels: debug, error, info, trace, warn"
         }
        ],
        "note": ""
       },
       {
        "level": 3,
        "id": "hooks",
        "text": "Optional metrics or tracing hooks.",
        "met": false,
        "evidence": [],
        "note": "no metrics or tracing hooks"
       },
       {
        "level": 4,
        "id": "otel",
        "text": "OpenTelemetry instrumentation available.",
        "met": false,
        "evidence": [],
        "note": "no OpenTelemetry instrumentation"
       }
      ]
     }
    },
    "level_name": "partial",
    "applicable": true
   },
   {
    "key": "legibility",
    "title": "Change legibility",
    "level": 2,
    "rationale": "CI runs the tests; applications pin dependencies (libraries and zero-dependency projects are exempt).",
    "evidence": [
     {
      "signal": "L1 readme-tests",
      "detail": "",
      "path": "README.md",
      "weight": 1
     },
     {
      "signal": "L2 ci-pinned",
      "detail": "",
      "path": ".github/workflows/backport.yml",
      "weight": 1
     }
    ],
    "metrics": {
     "source_files": 53,
     "source_tokens": 112900,
     "test_files": 226,
     "test_tokens": 442394,
     "test_ratio": 3.92,
     "modules": 6,
     "modules_within_budget": 0.67,
     "oversized_files": [
      "types/hooks.d.ts"
     ],
     "largest_module": {
      "path": "lib",
      "tokens": 62015
     },
     "typed_ratio": 0.35,
     "python_functions": 0,
     "python_annotated": 0,
     "import_edges": 114,
     "import_graph": true,
     "max_fan_out": 18,
     "import_cycles": 1,
     "largest_cycle": [
      "fastify.js",
      "lib/four-oh-four.js",
      "lib/log-controller.js",
      "lib/logger-factory.js",
      "lib/plugin-override.js",
      "lib/reply.js",
      "lib/route.js"
     ],
     "languages": {
      "javascript": 72892,
      "typescript": 39781,
      "shell": 227
     }
    },
    "gaps": [
     "L3 At least 90% of modules fit 32k tokens and no file exceeds 12k; test/source token ratio at least 0.3; at least 70% of the code is typed. (67% of modules fit 32k tokens; 1 files over 12k; 35% of code is typed (< 70%))"
    ],
    "question": "Can an agent change it safely with limited context?",
    "best_surface": "all",
    "surfaces": {
     "all": {
      "level": 2,
      "first_missing": "fits-and-verified",
      "requirements": [
       {
        "level": 1,
        "id": "readme-tests",
        "text": "A README and some tests.",
        "met": true,
        "evidence": [
         {
          "path": "README.md",
          "detail": ""
         },
         {
          "path": "test/404s.test.js",
          "detail": "226 test files"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "ci-pinned",
        "text": "CI runs the tests; applications pin dependencies (libraries and zero-dependency projects are exempt).",
        "met": true,
        "evidence": [
         {
          "path": ".github/workflows/backport.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/ci-alternative-runtime.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/ci.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/citgm-package.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/citgm.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/coverage-nix.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/coverage-win.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/integration-alternative-runtimes.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/integration.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/labeler.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/links-check.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/lint-ecosystem-order.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/lock-threads.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/md-lint.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/missing_types.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/package-manager-ci.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/pull-request-title.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/test-compare.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/validate-ecosystem-links.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/website.yml",
          "detail": ""
         },
         {
          "path": null,
          "detail": "library or zero-dependency project: lockfile not required"
         }
        ],
        "note": ""
       },
       {
        "level": 3,
        "id": "fits-and-verified",
        "text": "At least 90% of modules fit 32k tokens and no file exceeds 12k; test/source token ratio at least 0.3; at least 70% of the code is typed.",
        "met": false,
        "evidence": [],
        "note": "67% of modules fit 32k tokens; 1 files over 12k; 35% of code is typed (< 70%)"
       },
       {
        "level": 4,
        "id": "acyclic-documented",
        "text": "No import cycles, and agent docs (AGENTS.md, CLAUDE.md, llms.txt).",
        "met": false,
        "evidence": [],
        "note": "1 import cycles (largest: fastify.js, lib/four-oh-four.js, lib/log-controller.js)"
       }
      ]
     }
    },
    "level_name": "partial",
    "applicable": true
   }
  ],
  "estimate": {
   "integrability_index": 1.56,
   "assessed_dimensions": 9,
   "not_applicable": [
    "portability"
   ],
   "retrofit_person_days": 15.5,
   "retrofit_by_dimension": {
    "interface": 0.0,
    "stability": 1.3,
    "events": 2.7,
    "identity": 2.7,
    "ergonomics": 2.0,
    "embeddability": 0.7,
    "extensibility": 2.7,
    "observability": 0.7,
    "legibility": 2.7
   },
   "wrappability": "moderate retrofit",
   "assumptions": {
    "target_level": 3,
    "size_factor": 0.67,
    "legibility_multiplier": 1.0,
    "reference_tokens": 250000
   }
  },
  "not_implemented": [],
  "value": {
   "ksloc": 10.24,
   "classic": {
    "person_months": 27.6,
    "schedule_months": 8.8,
    "cost": 310751
   },
   "capture": {
    "tests": 1.0,
    "contract": 0.75,
    "docs": 1.0,
    "capture": 0.94
   },
   "agent_factor": 0.13,
   "reproduce_pm": 3.51,
   "history": {
    "commits": 4462,
    "fix_commits": 885,
    "authors": 953,
    "age_months": 120.4,
    "months_since_last": 0.0
   },
   "knowledge_pm": 40.01,
   "rediscover_pm": 2.4,
   "replacement_pm": 5.91,
   "leverage": 0.94,
   "obsolescence": 0.95,
   "value_pm": 5.3,
   "value_cost": 59656,
   "knowledge_at_risk": 0.41,
   "assumptions": {
    "salary": 56286,
    "overhead": 2.4,
    "cost_per_pm": 11257,
    "floor": 0.1,
    "rediscover_share": 0.5,
    "fix_pm": 0.025,
    "change_pm": 0.005
   }
  },
  "make_or_buy": {
   "verdict": "buy",
   "make_buy_ratio": 58.8252,
   "horizon_years": 3.0,
   "break_even_price_per_year": 16039.03,
   "make": {
    "model": "anthropic:claude-opus-5-5",
    "tokens": {
     "output": 1667914,
     "input": 41697850,
     "cached_input": 35443172
    },
    "final_tokens": 555971,
    "model_cost": 65.47,
    "agent_hours": 18.53,
    "human_days": 62.85,
    "review_days": 12.45,
    "rediscover_days": 50.4,
    "calendar_days": 62.85,
    "build_cost": 33758.07,
    "yearly_cost": 5063.71,
    "total_cost": 48949.21
   },
   "buy": {
    "via": {
     "install": "library",
     "use": "library"
    },
    "adoption_minutes": {
     "install": 15,
     "first_use": 10.0,
     "total": 25.0
    },
    "tokens": {
     "output": 3125,
     "input": 78125,
     "cached_input": 66406
    },
    "model_cost": 0.12,
    "upgrade_minutes_per_year": 240,
    "measured": null,
    "price_per_year": 0.0,
    "fixed_cost": 28.04,
    "yearly_cost": 268.02,
    "total_cost": 832.11
   },
   "assumptions": {
    "day_rate": 536.05,
    "draft_factor": 3.0,
    "context_ratio": 25.0,
    "cached_share": 0.85,
    "review_tokens_per_day": 50000,
    "spec_difficulty": 2.0,
    "maintenance_share": 0.15,
    "model_priced": true
   }
  },
  "agentic": null,
  "review": null,
  "spend": null
 }
}
