{
 "meta": {
  "name": "BurntSushi/ripgrep",
  "url": "https://github.com/BurntSushi/ripgrep",
  "slug": "burntsushi-ripgrep",
  "host": "github.com",
  "commit": "3fce3b5bb0236da2df6d99672afb8a719642eca7",
  "committed_at": "2026-08-04T10:00:08-04:00",
  "evaluated_at": "2026-10-07T14:29:04+00:00",
  "neosloc": "0.8.0"
 },
 "report": {
  "schema_version": 2,
  "target": "https://github.com/BurntSushi/ripgrep",
  "inventory": {
   "files": 236,
   "source_files": 93,
   "source_tokens": 421827,
   "languages": {
    "rust": 420725,
    "shell": 853,
    "ruby": 201,
    "lua": 48
   },
   "git": true
  },
  "surfaces": {
   "kinds": [
    "cli",
    "library"
   ],
   "evidence": {
    "cli": [
     {
      "path": "Cargo.toml",
      "detail": "cargo bin"
     },
     {
      "path": "fuzz/Cargo.toml",
      "detail": "cargo bin"
     },
     {
      "path": "crates/core/flags/parse.rs",
      "detail": "2 matches"
     }
    ],
    "library": [
     {
      "path": "crates/cli/src/lib.rs",
      "detail": "Rust library crate"
     },
     {
      "path": "crates/globset/src/lib.rs",
      "detail": "Rust library crate"
     },
     {
      "path": "crates/grep/src/lib.rs",
      "detail": "Rust library crate"
     }
    ]
   },
   "long_running": [],
   "owns_data": [],
   "uses_credentials": []
  },
  "dimensions": [
   {
    "key": "interface",
    "title": "Interface surface",
    "level": 4,
    "rationale": "[library] An API reference is generated from the code (autodoc, mkdocstrings, typedoc, \u2026).",
    "evidence": [
     {
      "signal": "L1 importable",
      "detail": "Rust library crate",
      "path": "crates/cli/src/lib.rs",
      "weight": 1
     },
     {
      "signal": "L2 public-api",
      "detail": "pub items",
      "path": "crates/cli/src/lib.rs",
      "weight": 1
     },
     {
      "signal": "L3 typed",
      "detail": "statically typed language",
      "path": "crates/cli/src/lib.rs",
      "weight": 1
     },
     {
      "signal": "L4 api-reference",
      "detail": "1 match",
      "path": "crates/printer/Cargo.toml",
      "weight": 1
     }
    ],
    "metrics": {
     "route_declarations": 0,
     "routes_by_framework": {},
     "spec_files": 0,
     "spec_operations": 0,
     "spec_coverage": null
    },
    "gaps": [
     "[cli] L3 Machine-readable output (--json/--format) and documented exit statuses. (no --json/--format option)"
    ],
    "question": "Can another program use it through a documented, machine-readable surface?",
    "best_surface": "library",
    "surfaces": {
     "cli": {
      "level": 2,
      "first_missing": "machine-output",
      "requirements": [
       {
        "level": 1,
        "id": "non-interactive",
        "text": "Invocable non-interactively: no prompts, or prompts guarded by a TTY check or a --yes/--no-input option.",
        "met": true,
        "evidence": [
         {
          "path": null,
          "detail": "no interactive prompts"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "help",
        "text": "--help documents every option (at least 90% of options have help text).",
        "met": true,
        "evidence": [
         {
          "path": "crates/core/flags/parse.rs",
          "detail": "2 matches"
         }
        ],
        "note": ""
       },
       {
        "level": 3,
        "id": "machine-output",
        "text": "Machine-readable output (--json/--format) and documented exit statuses.",
        "met": false,
        "evidence": [],
        "note": "no --json/--format option"
       },
       {
        "level": 4,
        "id": "output-schema",
        "text": "The output format is specified by a JSON Schema.",
        "met": false,
        "evidence": [],
        "note": "no JSON Schema for the output"
       }
      ]
     },
     "library": {
      "level": 4,
      "first_missing": null,
      "requirements": [
       {
        "level": 1,
        "id": "importable",
        "text": "An importable, packaged API exists.",
        "met": true,
        "evidence": [
         {
          "path": "crates/cli/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/globset/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/grep/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/ignore/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/index/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/matcher/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/pcre2/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/printer/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/regex/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/searcher/src/lib.rs",
          "detail": "Rust library crate"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "public-api",
        "text": "The public API is delimited (__all__, an exports map, exported identifiers).",
        "met": true,
        "evidence": [
         {
          "path": "crates/cli/src/lib.rs",
          "detail": "pub items"
         },
         {
          "path": "crates/globset/src/lib.rs",
          "detail": "pub items"
         },
         {
          "path": "crates/grep/src/lib.rs",
          "detail": "pub items"
         },
         {
          "path": "crates/ignore/src/lib.rs",
          "detail": "pub items"
         },
         {
          "path": "crates/index/src/lib.rs",
          "detail": "pub items"
         },
         {
          "path": "crates/matcher/src/lib.rs",
          "detail": "pub items"
         },
         {
          "path": "crates/pcre2/src/lib.rs",
          "detail": "pub items"
         },
         {
          "path": "crates/printer/src/lib.rs",
          "detail": "pub items"
         },
         {
          "path": "crates/regex/src/lib.rs",
          "detail": "pub items"
         },
         {
          "path": "crates/searcher/src/lib.rs",
          "detail": "pub items"
         }
        ],
        "note": ""
       },
       {
        "level": 3,
        "id": "typed",
        "text": "The public API is statically typed (py.typed, type declarations, a typed language).",
        "met": true,
        "evidence": [
         {
          "path": "crates/cli/src/lib.rs",
          "detail": "statically typed language"
         },
         {
          "path": "crates/globset/src/lib.rs",
          "detail": "statically typed language"
         },
         {
          "path": "crates/grep/src/lib.rs",
          "detail": "statically typed language"
         },
         {
          "path": "crates/ignore/src/lib.rs",
          "detail": "statically typed language"
         },
         {
          "path": "crates/index/src/lib.rs",
          "detail": "statically typed language"
         },
         {
          "path": "crates/matcher/src/lib.rs",
          "detail": "statically typed language"
         },
         {
          "path": "crates/pcre2/src/lib.rs",
          "detail": "statically typed language"
         },
         {
          "path": "crates/printer/src/lib.rs",
          "detail": "statically typed language"
         },
         {
          "path": "crates/regex/src/lib.rs",
          "detail": "statically typed language"
         },
         {
          "path": "crates/searcher/src/lib.rs",
          "detail": "statically typed language"
         }
        ],
        "note": ""
       },
       {
        "level": 4,
        "id": "api-reference",
        "text": "An API reference is generated from the code (autodoc, mkdocstrings, typedoc, \u2026).",
        "met": true,
        "evidence": [
         {
          "path": "crates/printer/Cargo.toml",
          "detail": "1 match"
         },
         {
          "path": "crates/printer/Cargo.toml",
          "detail": "1 match"
         }
        ],
        "note": ""
       }
      ]
     }
    },
    "level_name": "exemplary",
    "applicable": true
   },
   {
    "key": "stability",
    "title": "Contract stability",
    "level": 4,
    "rationale": "Across tagged releases, no OpenAPI operation, CLI option or __all__ symbol was removed without first being deprecated.",
    "evidence": [
     {
      "signal": "L1 versioned-releases",
      "detail": "79 semver tags, latest 15.2.0",
      "path": null,
      "weight": 1
     },
     {
      "signal": "L2 changelog",
      "detail": "marks breaking changes",
      "path": "CHANGELOG.md",
      "weight": 1
     },
     {
      "signal": "L3 deprecation",
      "detail": "3 matches",
      "path": "crates/cli/src/lib.rs",
      "weight": 1
     },
     {
      "signal": "L4 clean-history",
      "detail": "20 tagged releases compared",
      "path": null,
      "weight": 1
     }
    ],
    "metrics": {},
    "gaps": [],
    "question": "Can integrators rely on it not changing under them?",
    "best_surface": "all",
    "surfaces": {
     "all": {
      "level": 4,
      "first_missing": null,
      "requirements": [
       {
        "level": 1,
        "id": "versioned-releases",
        "text": "Releases are versioned (semver tags or versioned changelog sections).",
        "met": true,
        "evidence": [
         {
          "path": null,
          "detail": "79 semver tags, latest 15.2.0"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "changelog",
        "text": "A changelog exists and marks breaking changes.",
        "met": true,
        "evidence": [
         {
          "path": "CHANGELOG.md",
          "detail": "marks breaking changes"
         }
        ],
        "note": ""
       },
       {
        "level": 3,
        "id": "deprecation",
        "text": "A deprecation mechanism is used in code (warnings, @deprecated, Deprecation/Sunset headers) or the API is versioned.",
        "met": true,
        "evidence": [
         {
          "path": "crates/cli/src/lib.rs",
          "detail": "3 matches"
         },
         {
          "path": "crates/pcre2/src/matcher.rs",
          "detail": "1 match"
         }
        ],
        "note": ""
       },
       {
        "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": "exemplary",
    "applicable": true
   },
   {
    "key": "events",
    "title": "Events",
    "level": null,
    "rationale": "Not applicable: no service and no long-running CLI mode (batch CLIs, libraries and desktop apps have no events).",
    "evidence": [],
    "metrics": {},
    "gaps": [],
    "question": "Can others react to state changes without polling?",
    "best_surface": null,
    "surfaces": {},
    "level_name": "n/a",
    "applicable": false
   },
   {
    "key": "identity",
    "title": "Identity",
    "level": null,
    "rationale": "Not applicable: uses no credentials and has no service surface.",
    "evidence": [],
    "metrics": {},
    "gaps": [],
    "question": "Can a machine act with its own revocable, least-privilege identity?",
    "best_surface": null,
    "surfaces": {},
    "level_name": "n/a",
    "applicable": false
   },
   {
    "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": 2,
    "rationale": "[cli] Data on stdout, diagnostics on stderr, non-zero exit on failure.",
    "evidence": [
     {
      "signal": "L1 never-blocks",
      "detail": "no interactive prompts",
      "path": null,
      "weight": 1
     },
     {
      "signal": "L2 streams-and-status",
      "detail": "1 match",
      "path": "crates/core/flags/defs.rs",
      "weight": 1
     }
    ],
    "metrics": {},
    "gaps": [
     "[cli] L3 Documented exit statuses distinguish error classes, errors are JSON in JSON mode, and color is off when not a TTY. (errors aren't JSON in JSON mode)",
     "[library] L1 Errors are specific exception types, and library code never calls sys.exit. (library code exits the process: crates/core/messages.rs)"
    ],
    "question": "Can an automated caller use it without guessing, and recover from failure?",
    "best_surface": "cli",
    "surfaces": {
     "cli": {
      "level": 2,
      "first_missing": "typed-failures",
      "requirements": [
       {
        "level": 1,
        "id": "never-blocks",
        "text": "Never blocks on a prompt when stdin is not a TTY.",
        "met": true,
        "evidence": [
         {
          "path": null,
          "detail": "no interactive prompts"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "streams-and-status",
        "text": "Data on stdout, diagnostics on stderr, non-zero exit on failure.",
        "met": true,
        "evidence": [
         {
          "path": "crates/core/flags/defs.rs",
          "detail": "1 match"
         },
         {
          "path": "crates/core/main.rs",
          "detail": "16 matches"
         },
         {
          "path": "ci/utils.sh",
          "detail": "6 matches"
         },
         {
          "path": "crates/core/messages.rs",
          "detail": "2 matches"
         }
        ],
        "note": ""
       },
       {
        "level": 3,
        "id": "typed-failures",
        "text": "Documented exit statuses distinguish error classes, errors are JSON in JSON mode, and color is off when not a TTY.",
        "met": false,
        "evidence": [],
        "note": "errors aren't JSON in JSON mode"
       },
       {
        "level": 4,
        "id": "agent-ready",
        "text": "--dry-run, limits for long or costly operations (timeouts, budgets), 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": "library code exits the process: crates/core/messages.rs"
       },
       {
        "level": 2,
        "id": "validation",
        "text": "Inputs are validated with messages naming the bad argument.",
        "met": false,
        "evidence": [],
        "note": "no input validation errors"
       },
       {
        "level": 3,
        "id": "timeouts-retries",
        "text": "Timeouts and retries are configurable.",
        "met": false,
        "evidence": [],
        "note": "no timeout parameter"
       },
       {
        "level": 4,
        "id": "agent-ready",
        "text": "Agent docs, and examples that run as tests (doctests).",
        "met": false,
        "evidence": [],
        "note": "no agent docs"
       }
      ]
     }
    },
    "level_name": "partial",
    "applicable": true
   },
   {
    "key": "embeddability",
    "title": "Embeddability",
    "level": 2,
    "rationale": "[cli] Installable as a package that provides the command.",
    "evidence": [
     {
      "signal": "L1 runnable",
      "detail": "cargo bin",
      "path": "Cargo.toml",
      "weight": 1
     },
     {
      "signal": "L2 installable",
      "detail": "cargo bin",
      "path": "Cargo.toml",
      "weight": 1
     }
    ],
    "metrics": {},
    "gaps": [
     "[cli] L3 Published to a public registry and run non-interactively in CI. (not published to a registry)",
     "[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": "cli",
    "surfaces": {
     "cli": {
      "level": 2,
      "first_missing": "published",
      "requirements": [
       {
        "level": 1,
        "id": "runnable",
        "text": "Runnable from source (a declared entry point).",
        "met": true,
        "evidence": [
         {
          "path": "Cargo.toml",
          "detail": "cargo bin"
         },
         {
          "path": "fuzz/Cargo.toml",
          "detail": "cargo bin"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "installable",
        "text": "Installable as a package that provides the command.",
        "met": true,
        "evidence": [
         {
          "path": "Cargo.toml",
          "detail": "cargo bin"
         },
         {
          "path": "fuzz/Cargo.toml",
          "detail": "cargo bin"
         }
        ],
        "note": ""
       },
       {
        "level": 3,
        "id": "published",
        "text": "Published to a public registry and run non-interactively in CI.",
        "met": false,
        "evidence": [],
        "note": "not published to a registry"
       },
       {
        "level": 4,
        "id": "container-or-binary",
        "text": "Also shipped as a container image or a single binary.",
        "met": false,
        "evidence": [],
        "note": "no container image or binary"
       }
      ]
     },
     "library": {
      "level": 2,
      "first_missing": "published-minimal",
      "requirements": [
       {
        "level": 1,
        "id": "importable",
        "text": "Importable from source.",
        "met": true,
        "evidence": [
         {
          "path": "crates/cli/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/globset/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/grep/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/ignore/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/index/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/matcher/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/pcre2/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/printer/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/regex/src/lib.rs",
          "detail": "Rust library crate"
         },
         {
          "path": "crates/searcher/src/lib.rs",
          "detail": "Rust library crate"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "installable",
        "text": "Installable as a package (a package manifest).",
        "met": true,
        "evidence": [
         {
          "path": "crates/cli/src/lib.rs",
          "detail": "package manifest"
         },
         {
          "path": "crates/globset/src/lib.rs",
          "detail": "package manifest"
         },
         {
          "path": "crates/grep/src/lib.rs",
          "detail": "package manifest"
         },
         {
          "path": "crates/ignore/src/lib.rs",
          "detail": "package manifest"
         },
         {
          "path": "crates/index/src/lib.rs",
          "detail": "package manifest"
         },
         {
          "path": "crates/matcher/src/lib.rs",
          "detail": "package manifest"
         },
         {
          "path": "crates/pcre2/src/lib.rs",
          "detail": "package manifest"
         },
         {
          "path": "crates/printer/src/lib.rs",
          "detail": "package manifest"
         },
         {
          "path": "crates/regex/src/lib.rs",
          "detail": "package manifest"
         },
         {
          "path": "crates/searcher/src/lib.rs",
          "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": true,
        "evidence": [
         {
          "path": "Cargo.toml",
          "detail": "1 match"
         },
         {
          "path": "crates/globset/Cargo.toml",
          "detail": "1 match"
         },
         {
          "path": "crates/grep/Cargo.toml",
          "detail": "1 match"
         },
         {
          "path": "crates/ignore/Cargo.toml",
          "detail": "1 match"
         },
         {
          "path": "crates/printer/Cargo.toml",
          "detail": "1 match"
         },
         {
          "path": "crates/searcher/Cargo.toml",
          "detail": "1 match"
         }
        ],
        "note": ""
       }
      ]
     }
    },
    "level_name": "partial",
    "applicable": true
   },
   {
    "key": "extensibility",
    "title": "Extensibility",
    "level": 0,
    "rationale": "Not yet: Internal seams: a registry, registration function or plugin manager.",
    "evidence": [],
    "metrics": {},
    "gaps": [
     "L1 Internal seams: a registry, registration function or plugin manager. (no registry or registration function)"
    ],
    "question": "Can behaviour be added without modifying the code?",
    "best_surface": "all",
    "surfaces": {
     "all": {
      "level": 0,
      "first_missing": "seams",
      "requirements": [
       {
        "level": 1,
        "id": "seams",
        "text": "Internal seams: a registry, registration function or plugin manager.",
        "met": false,
        "evidence": [],
        "note": "no registry or registration function"
       },
       {
        "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": "absent",
    "applicable": true
   },
   {
    "key": "observability",
    "title": "Observability",
    "level": 1,
    "rationale": "[cli] Meaningful exit statuses, and errors on stderr.",
    "evidence": [
     {
      "signal": "L1 exit-and-stderr",
      "detail": "1 match",
      "path": "crates/core/flags/defs.rs",
      "weight": 1
     }
    ],
    "metrics": {},
    "gaps": [
     "[cli] L2 Verbosity control for diagnostics (--quiet, --log-level, --debug). (no --quiet or log-level control)",
     "[library] L2 Log levels are used meaningfully (at least two levels). (fewer than two log levels used)"
    ],
    "question": "Can an operator, or an orchestrating agent, tell whether it works and why not?",
    "best_surface": "cli",
    "surfaces": {
     "cli": {
      "level": 1,
      "first_missing": "verbosity",
      "requirements": [
       {
        "level": 1,
        "id": "exit-and-stderr",
        "text": "Meaningful exit statuses, and errors on stderr.",
        "met": true,
        "evidence": [
         {
          "path": "crates/core/flags/defs.rs",
          "detail": "1 match"
         },
         {
          "path": "crates/core/main.rs",
          "detail": "16 matches"
         },
         {
          "path": "ci/utils.sh",
          "detail": "6 matches"
         },
         {
          "path": "crates/core/messages.rs",
          "detail": "2 matches"
         }
        ],
        "note": ""
       },
       {
        "level": 2,
        "id": "verbosity",
        "text": "Verbosity control for diagnostics (--quiet, --log-level, --debug).",
        "met": false,
        "evidence": [],
        "note": "no --quiet or log-level control"
       },
       {
        "level": 3,
        "id": "structured-diagnostics",
        "text": "Structured logs (e.g. --log-format json) or a machine-readable run summary.",
        "met": false,
        "evidence": [],
        "note": "no structured diagnostics"
       },
       {
        "level": 4,
        "id": "tracing",
        "text": "Tracing hooks (OpenTelemetry).",
        "met": false,
        "evidence": [],
        "note": "no tracing hooks"
       }
      ]
     },
     "library": {
      "level": 1,
      "first_missing": "log-levels",
      "requirements": [
       {
        "level": 1,
        "id": "standard-logger",
        "text": "Logs through a standard logger namespace and never prints from library code.",
        "met": true,
        "evidence": [
         {
          "path": "crates/core/flags/hiargs.rs",
          "detail": "18 matches"
         },
         {
          "path": "crates/cli/src/lib.rs",
          "detail": "6 matches"
         },
         {
          "path": "crates/printer/src/hyperlink/mod.rs",
          "detail": "5 matches"
         },
         {
          "path": "crates/ignore/src/walk.rs",
          "detail": "4 matches"
         },
         {
          "path": "crates/searcher/src/searcher/mmap.rs",
          "detail": "4 matches"
         },
         {
          "path": "crates/cli/src/decompress.rs",
          "detail": "2 matches"
         },
         {
          "path": "crates/core/flags/config.rs",
          "detail": "2 matches"
         },
         {
          "path": "crates/ignore/src/dir.rs",
          "detail": "2 matches"
         },
         {
          "path": "crates/cli/src/process.rs",
          "detail": "1 match"
         },
         {
          "path": "crates/core/haystack.rs",
          "detail": "1 match"
         },
         {
          "path": "crates/ignore/src/gitignore.rs",
          "detail": "1 match"
         },
         {
          "path": "crates/ignore/src/incremental.rs",
          "detail": "1 match"
         },
         {
          "path": "crates/printer/src/json.rs",
          "detail": "1 match"
         },
         {
          "path": "crates/printer/src/standard.rs",
          "detail": "1 match"
         },
         {
          "path": "crates/printer/src/summary.rs",
          "detail": "1 match"
         },
         {
          "path": "crates/regex/src/config.rs",
          "detail": "1 match"
         },
         {
          "path": "crates/regex/src/literal.rs",
          "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": false,
        "evidence": [],
        "note": "fewer than two log levels used"
       },
       {
        "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": "ad hoc",
    "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/ci.yml",
      "weight": 1
     }
    ],
    "metrics": {
     "source_files": 93,
     "source_tokens": 421827,
     "test_files": 18,
     "test_tokens": 53575,
     "test_ratio": 0.13,
     "modules": 22,
     "modules_within_budget": 0.86,
     "oversized_files": [
      "crates/core/flags/defs.rs",
      "crates/printer/src/standard.rs",
      "crates/ignore/src/walk.rs",
      "crates/globset/src/glob.rs",
      "crates/core/flags/hiargs.rs",
      "crates/ignore/src/dir.rs",
      "crates/searcher/src/searcher/glue.rs",
      "crates/ignore/src/incremental.rs"
     ],
     "largest_module": {
      "path": "crates/core/flags",
      "tokens": 91472
     },
     "typed_ratio": 1.0,
     "python_functions": 0,
     "python_annotated": 0,
     "import_edges": 0,
     "import_graph": false,
     "max_fan_out": 0,
     "import_cycles": 0,
     "largest_cycle": [],
     "languages": {
      "rust": 420725,
      "shell": 853,
      "ruby": 201,
      "lua": 48
     }
    },
    "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. (86% of modules fit 32k tokens; 8 files over 12k; test/source token ratio 0.13 < 0.3)"
    ],
    "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": "crates/ignore/tests/gitignore_matched_path_or_any_parents_tests.rs",
          "detail": "18 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/ci.yml",
          "detail": ""
         },
         {
          "path": ".github/workflows/release.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": "86% of modules fit 32k tokens; 8 files over 12k; test/source token ratio 0.13 < 0.3"
       },
       {
        "level": 4,
        "id": "acyclic-documented",
        "text": "No import cycles, and agent docs (AGENTS.md, CLAUDE.md, llms.txt).",
        "met": false,
        "evidence": [],
        "note": "no agent docs (AGENTS.md, CLAUDE.md, llms.txt)"
       }
      ]
     }
    },
    "level_name": "partial",
    "applicable": true
   }
  ],
  "estimate": {
   "integrability_index": 2.14,
   "assessed_dimensions": 7,
   "not_applicable": [
    "events",
    "identity",
    "portability"
   ],
   "retrofit_person_days": 18.8,
   "retrofit_by_dimension": {
    "interface": 0.0,
    "stability": 0.0,
    "ergonomics": 1.9,
    "embeddability": 1.3,
    "extensibility": 7.8,
    "observability": 2.6,
    "legibility": 5.2
   },
   "wrappability": "moderate retrofit",
   "assumptions": {
    "target_level": 3,
    "size_factor": 1.3,
    "legibility_multiplier": 1.0,
    "reference_tokens": 250000
   }
  },
  "not_implemented": [],
  "value": {
   "ksloc": 34.78,
   "classic": {
    "person_months": 99.68,
    "schedule_months": 14.4,
    "cost": 1122116
   },
   "capture": {
    "tests": 0.26,
    "contract": 1.0,
    "docs": 0.96,
    "capture": 0.62
   },
   "agent_factor": 0.27,
   "reproduce_pm": 27.01,
   "history": {
    "commits": 2225,
    "fix_commits": 301,
    "authors": 497,
    "age_months": 125.2,
    "months_since_last": 2.1
   },
   "knowledge_pm": 17.15,
   "rediscover_pm": 6.52,
   "replacement_pm": 33.53,
   "leverage": 1.02,
   "obsolescence": 0.95,
   "value_pm": 32.42,
   "value_cost": 364966,
   "knowledge_at_risk": 0.19,
   "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": 3404.8679,
   "horizon_years": 3.0,
   "break_even_price_per_year": 40642.09,
   "make": {
    "model": "anthropic:claude-opus-5-5",
    "tokens": {
     "output": 1693213,
     "input": 42330325,
     "cached_input": 35980776
    },
    "final_tokens": 564404,
    "model_cost": 66.46,
    "agent_hours": 18.81,
    "human_days": 156.79,
    "review_days": 19.87,
    "rediscover_days": 136.92,
    "calendar_days": 156.79,
    "build_cost": 84111.78,
    "yearly_cost": 12616.77,
    "total_cost": 121962.08
   },
   "buy": {
    "via": {
     "install": "cli",
     "use": "library"
    },
    "adoption_minutes": {
     "install": 15,
     "first_use": 2.0,
     "total": 17.0
    },
    "tokens": {
     "output": 2125,
     "input": 53125,
     "cached_input": 45156
    },
    "model_cost": 0.08,
    "upgrade_minutes_per_year": 5,
    "measured": null,
    "price_per_year": 0.0,
    "fixed_cost": 19.07,
    "yearly_cost": 5.58,
    "total_cost": 35.82
   },
   "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
 }
}
