Executive summary
⚠ A critical security finding caps this grade — resolve it before relying on the score below; see the Security lens.
Preview (pre-1.0). This repo hasn't declared a stable release, so it's judged against a relaxed, pre-production bar.
The system holds an overall standing of 67%, placing it in an At Risk category. While the underlying code is robust and the architecture is exceptionally sound, the asset is fragile due to significant gaps in operational maturity. This score reflects a system that functions well today but lacks the documented discipline and operational readiness required for safe, long-term scaling or team transitions.
The value at stake is modest, comprising roughly 20,000 lines of production code with negligible boilerplate. Rebuilding this system would require approximately 0.2 person-years, costing around €24,000. This low rebuild cost indicates that the business risk is not tied to the difficulty of replacement, but rather to the operational blind spots that could cause costly outages or delays during maintenance. The system is small enough to be manageable, but its current state offers little buffer against human error or knowledge loss.
The primary risk lies in Operational Maturity, which scored only 59%. This lens measures whether a new team can pick up the work and whether the system is safe to operate. The lack of standardized decision records means critical context is lost when people leave, leading to repeated mistakes and slower delivery. Without clear documentation of why choices were made, future changes become unpredictable, increasing the likelihood of defects and extending time-to-market for new features. This is the most expensive risk because it erodes trust and velocity over time.
Conversely, the system’s Architectural Integrity is a genuine strength, scoring 96%. The code is clean, well-structured, and free of technical debt that would impede change. Performance is also excellent at 100%, ensuring the system meets user expectations. These strengths mean that when changes are needed, they can be implemented quickly and reliably, provided the team understands the context. The foundation is solid; the issue is purely one of governance and knowledge retention.
To focus first, leadership should prioritize capturing significant decisions in a centralized, discoverable format. This single action addresses the maturity gap with minimal effort, providing immediate clarity on system context and reducing future rework. It is the highest-leverage move because it stabilizes the team’s ability to operate without requiring code changes. Until this is in place, other improvements will yield diminishing returns as context remains elusive.
Note that domain modeling, event-driven patterns, and accessibility were not measured, so the picture is partial. Security and readiness scores are moderate, suggesting room for improvement but no immediate critical threats.
Raise Maturity 59 → 70 (the Healthy floor) ⇒ headline 67 → ~71.
New since the last scan (8+)
- D5 · Off the main sequence: zb_core
- D22 · Signature mismatch in parameter type. `download_all` takes a single `DownloadRequest` (likely a typo for a slice or vec), while `download_all_with_progress` also takes a single `DownloadRequest`. However, the method name `download_all` implies multiple items, and the other method `download_single` takes a single item. It is highly probable that `download_all` should accept a collection (e.g., `&[DownloadRequest]`) to be consistent with the semantic intent of 'all' and to match the pattern of `download_all_with_progress` if it also intends to handle multiple, or if `download_all_with_progress` is the correct multi-item handler, `download_all` is ambiguous. More critically, looking at `download_single`, it takes a single request. If `download_all` is meant to take multiple, the type `DownloadRequest` is likely incorrect (should be a slice/vec). If it takes a single request, it is redundant with `download_single` but without progress, which is a minor inconsistency in naming vs utility. Given `download_all_with_progress` exists, `download_all` likely intends to be the non-progress multi-download, but the type signature `DownloadRequest` (singular) contradicts the name `all`.
- D22 · Inconsistent naming convention for progress variants. `ParallelDownloader` uses `download_all_with_progress`, while `Downloader` uses `download_with_progress`. While the scope differs (all vs single), the prefix `with_progress` is used in one and implied/absent in the other's base method. More importantly, `ParallelDownloader` has `download_single` and `download_all_with_progress`, but lacks a `download_single_with_progress` or a generic `download_with_progress` that handles single items, creating an asymmetry in the API surface between the two downloader implementations.
- D22 · Inconsistent return type naming and intent. `get_formula` likely returns a single `Formula` or `Result<Formula>`, while `get_all_formulas_raw` returns raw data. The naming `get_all_formulas_raw` is verbose and inconsistent with `get_formula`. If `get_formula` returns a parsed object, `get_all_formulas` should likely return a collection of parsed objects, or `get_all_formulas_raw` should be renamed to `get_all_formulas` if it returns parsed data, or `get_formula_raw` if it returns raw data. The current mix of 'raw' and non-'raw' suggests an inconsistency in whether the API returns parsed or raw data.
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D44 · End-of-life runtime: Rust 1.96
Rebuild cost & value ~ Modeled — €8,100–€41,000
| Cost to rebuild | €8,100–€41,000 |
|---|---|
| Domain complexity | Standard |
| Quality factor | 0.9× (at 67% quality) |
| Size & shape | Small · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk) |
This codebase represents roughly ~0.2 person-years of build effort (about ~€24,000 to rebuild). Its weakest lens is Maturity at 59% — the part of that asset most exposed by the findings below.
Top priorities
Diagnosis — what's actually going on
Architecture — module dependency graph
Architecture — module dependency matrix
| depends on → | 1 zb_cli.cli | 2 zb_core.errors | 3 zb_core.formula.types | 4 zb_io.cellar.materialize | 5 zb_io.installer.cask | 6 zb_io.installer.install.doctor | 7 zb_io.network.cache | 8 zb_io.network.download | 9 zb_io.storage.blob | 10 zb_io.storage.db | 11 zb_cli.bin.zb | 12 zb_cli.commands.completion | 13 zb_cli.commands.reset | 14 zb_cli.init | 15 zb_core.build.plan | 16 zb_core.formula.bottle | 17 zb_io.cellar.link | 18 zb_io.network.download.chunked | 19 zb_io.network.download.single | 20 zb_io.network.tap_formula | 21 zb_io.build.environment | 22 zb_io.build.executor | 23 zb_io.installer.install.bottle | 24 zb_io.network.api | 25 zb_io.network.download.parallel | 26 zb_io.installer.install | 27 zb_cli.commands.bundle | 28 zb_cli.commands.doctor | 29 zb_cli.commands.gc | 30 zb_cli.commands.info | 31 zb_cli.commands.install | 32 zb_cli.commands.list | 33 zb_cli.commands.migrate | 34 zb_cli.commands.outdated | 35 zb_cli.commands.run | 36 zb_cli.commands.uninstall | 37 zb_cli.commands.update | 38 zb_cli.commands.upgrade | 39 zb_cli.utils | 40 zb_io.installer.install.plan |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 zb_cli.cli | ||||||||||||||||||||||||||||||||||||||||
| 2 zb_core.errors | ||||||||||||||||||||||||||||||||||||||||
| 3 zb_core.formula.types | ||||||||||||||||||||||||||||||||||||||||
| 4 zb_io.cellar.materialize | ||||||||||||||||||||||||||||||||||||||||
| 5 zb_io.installer.cask | ||||||||||||||||||||||||||||||||||||||||
| 6 zb_io.installer.install.doctor | ||||||||||||||||||||||||||||||||||||||||
| 7 zb_io.network.cache | ||||||||||||||||||||||||||||||||||||||||
| 8 zb_io.network.download | ||||||||||||||||||||||||||||||||||||||||
| 9 zb_io.storage.blob | ||||||||||||||||||||||||||||||||||||||||
| 10 zb_io.storage.db | ||||||||||||||||||||||||||||||||||||||||
| 11 zb_cli.bin.zb | 1 | |||||||||||||||||||||||||||||||||||||||
| 12 zb_cli.commands.completion | 1 | |||||||||||||||||||||||||||||||||||||||
| 13 zb_cli.commands.reset | 1 | |||||||||||||||||||||||||||||||||||||||
| 14 zb_cli.init | 2 | |||||||||||||||||||||||||||||||||||||||
| 15 zb_core.build.plan | 1 | |||||||||||||||||||||||||||||||||||||||
| 16 zb_core.formula.bottle | 1 | |||||||||||||||||||||||||||||||||||||||
| 17 zb_io.cellar.link | 1 | |||||||||||||||||||||||||||||||||||||||
| 18 zb_io.network.download.chunked | 1 | |||||||||||||||||||||||||||||||||||||||
| 19 zb_io.network.download.single | 2 | |||||||||||||||||||||||||||||||||||||||
| 20 zb_io.network.tap_formula | 1 | |||||||||||||||||||||||||||||||||||||||
| 21 zb_io.build.environment | 1 | |||||||||||||||||||||||||||||||||||||||
| 22 zb_io.build.executor | 1 | |||||||||||||||||||||||||||||||||||||||
| 23 zb_io.installer.install.bottle | 2 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 24 zb_io.network.api | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 25 zb_io.network.download.parallel | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 26 zb_io.installer.install | 1 | 2 | 1 | 1 | 1 | 1 | 2 | 2 | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||
| 27 zb_cli.commands.bundle | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 28 zb_cli.commands.doctor | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 29 zb_cli.commands.gc | 1 | |||||||||||||||||||||||||||||||||||||||
| 30 zb_cli.commands.info | 1 | |||||||||||||||||||||||||||||||||||||||
| 31 zb_cli.commands.install | 1 | 2 | ||||||||||||||||||||||||||||||||||||||
| 32 zb_cli.commands.list | 1 | |||||||||||||||||||||||||||||||||||||||
| 33 zb_cli.commands.migrate | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 34 zb_cli.commands.outdated | 1 | |||||||||||||||||||||||||||||||||||||||
| 35 zb_cli.commands.run | 1 | |||||||||||||||||||||||||||||||||||||||
| 36 zb_cli.commands.uninstall | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 37 zb_cli.commands.update | 1 | |||||||||||||||||||||||||||||||||||||||
| 38 zb_cli.commands.upgrade | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 39 zb_cli.utils | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 40 zb_io.installer.install.plan | 1 |
11→1 zb_cli.bin.zb depends on zb_cli.cli✕
- Type pairs
- 1 distinct (type in zb_cli.bin.zb → type in zb_cli.cli) reference.
- Which types
zb_cli.bin.zb.zb$module→zb_cli.cli.Cli
- Direction
- zb_cli.bin.zb uses zb_cli.cli. Changing zb_cli.cli can break zb_cli.bin.zb, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
12→1 zb_cli.commands.completion depends on zb_cli.cli✕
- Type pairs
- 1 distinct (type in zb_cli.commands.completion → type in zb_cli.cli) reference.
- Which types
zb_cli.commands.completion.Cli→zb_cli.cli.Commands
- Direction
- zb_cli.commands.completion uses zb_cli.cli. Changing zb_cli.cli can break zb_cli.commands.completion, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
13→2 zb_cli.commands.reset depends on zb_core.errors✕
- Type pairs
- 1 distinct (type in zb_cli.commands.reset → type in zb_core.errors) reference.
- Which types
zb_cli.commands.reset.reset$module→zb_core.errors.Error
- Direction
- zb_cli.commands.reset uses zb_core.errors. Changing zb_core.errors can break zb_cli.commands.reset, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
14→2 zb_cli.init depends on zb_core.errors✕
- Type pairs
- 2 distinct (type in zb_cli.init → type in zb_core.errors) references.
- Which types
zb_cli.init.InitError→zb_core.errors.Errorzb_cli.init.init$module→zb_core.errors.Error
- Direction
- zb_cli.init uses zb_core.errors. Changing zb_core.errors can break zb_cli.init, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
15→3 zb_core.build.plan depends on zb_core.formula.types✕
- Type pairs
- 1 distinct (type in zb_core.build.plan → type in zb_core.formula.types) reference.
- Which types
zb_core.build.plan.BuildPlan→zb_core.formula.types.Formula
- Direction
- zb_core.build.plan uses zb_core.formula.types. Changing zb_core.formula.types can break zb_core.build.plan, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
16→3 zb_core.formula.bottle depends on zb_core.formula.types✕
- Type pairs
- 1 distinct (type in zb_core.formula.bottle → type in zb_core.formula.types) reference.
- Which types
zb_core.formula.bottle.bottle$module→zb_core.formula.types.Formula
- Direction
- zb_core.formula.bottle uses zb_core.formula.types. Changing zb_core.formula.types can break zb_core.formula.bottle, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
17→2 zb_io.cellar.link depends on zb_core.errors✕
- Type pairs
- 1 distinct (type in zb_io.cellar.link → type in zb_core.errors) reference.
- Which types
zb_io.cellar.link.Linker→zb_core.errors.ConflictedLink
- Direction
- zb_io.cellar.link uses zb_core.errors. Changing zb_core.errors can break zb_io.cellar.link, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
18→9 zb_io.network.download.chunked depends on zb_io.storage.blob✕
- Type pairs
- 1 distinct (type in zb_io.network.download.chunked → type in zb_io.storage.blob) reference.
- Which types
zb_io.network.download.chunked.ChunkedDownloadContext→zb_io.storage.blob.BlobCache
- Direction
- zb_io.network.download.chunked uses zb_io.storage.blob. Changing zb_io.storage.blob can break zb_io.network.download.chunked, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
19→9 zb_io.network.download.single depends on zb_io.storage.blob✕
- Type pairs
- 2 distinct (type in zb_io.network.download.single → type in zb_io.storage.blob) references.
- Which types
zb_io.network.download.single.Downloader→zb_io.storage.blob.BlobCachezb_io.network.download.single.single$module→zb_io.storage.blob.BlobCache
- Direction
- zb_io.network.download.single uses zb_io.storage.blob. Changing zb_io.storage.blob can break zb_io.network.download.single, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
20→3 zb_io.network.tap_formula depends on zb_core.formula.types✕
- Type pairs
- 1 distinct (type in zb_io.network.tap_formula → type in zb_core.formula.types) reference.
- Which types
zb_io.network.tap_formula.tap_formula$module→zb_core.formula.types.Bottle
- Direction
- zb_io.network.tap_formula uses zb_core.formula.types. Changing zb_core.formula.types can break zb_io.network.tap_formula, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
21→15 zb_io.build.environment depends on zb_core.build.plan✕
- Type pairs
- 1 distinct (type in zb_io.build.environment → type in zb_core.build.plan) reference.
- Which types
zb_io.build.environment.environment$module→zb_core.build.plan.BuildPlan
- Direction
- zb_io.build.environment uses zb_core.build.plan. Changing zb_core.build.plan can break zb_io.build.environment, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
22→15 zb_io.build.executor depends on zb_core.build.plan✕
- Type pairs
- 1 distinct (type in zb_io.build.executor → type in zb_core.build.plan) reference.
- Which types
zb_io.build.executor.BuildExecutor→zb_core.build.plan.BuildPlan
- Direction
- zb_io.build.executor uses zb_core.build.plan. Changing zb_core.build.plan can break zb_io.build.executor, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→4 zb_io.installer.install.bottle depends on zb_io.cellar.materialize✕
- Type pairs
- 2 distinct (type in zb_io.installer.install.bottle → type in zb_io.cellar.materialize) references.
- Which types
zb_io.installer.install.bottle.FailedInstallGuard→zb_io.cellar.materialize.Cellarzb_io.installer.install.bottle.bottle$module→zb_io.cellar.materialize.Cellar
- Direction
- zb_io.installer.install.bottle uses zb_io.cellar.materialize. Changing zb_io.cellar.materialize can break zb_io.installer.install.bottle, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→5 zb_io.installer.install.bottle depends on zb_io.installer.cask✕
- Type pairs
- 1 distinct (type in zb_io.installer.install.bottle → type in zb_io.installer.cask) reference.
- Which types
zb_io.installer.install.bottle.bottle$module→zb_io.installer.cask.ResolvedCask
- Direction
- zb_io.installer.install.bottle uses zb_io.installer.cask. Changing zb_io.installer.cask can break zb_io.installer.install.bottle, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→17 zb_io.installer.install.bottle depends on zb_io.cellar.link✕
- Type pairs
- 1 distinct (type in zb_io.installer.install.bottle → type in zb_io.cellar.link) reference.
- Which types
zb_io.installer.install.bottle.FailedInstallGuard→zb_io.cellar.link.Linker
- Direction
- zb_io.installer.install.bottle uses zb_io.cellar.link. Changing zb_io.cellar.link can break zb_io.installer.install.bottle, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
24→2 zb_io.network.api depends on zb_core.errors✕
- Type pairs
- 1 distinct (type in zb_io.network.api → type in zb_core.errors) reference.
- Which types
zb_io.network.api.ApiClient→zb_core.errors.Error
- Direction
- zb_io.network.api uses zb_core.errors. Changing zb_core.errors can break zb_io.network.api, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
24→7 zb_io.network.api depends on zb_io.network.cache✕
- Type pairs
- 1 distinct (type in zb_io.network.api → type in zb_io.network.cache) reference.
- Which types
zb_io.network.api.ApiClient→zb_io.network.cache.ApiCache
- Direction
- zb_io.network.api uses zb_io.network.cache. Changing zb_io.network.cache can break zb_io.network.api, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
24→20 zb_io.network.api depends on zb_io.network.tap_formula✕
- Type pairs
- 1 distinct (type in zb_io.network.api → type in zb_io.network.tap_formula) reference.
- Which types
zb_io.network.api.ApiClient→zb_io.network.tap_formula.TapFormulaRef
- Direction
- zb_io.network.api uses zb_io.network.tap_formula. Changing zb_io.network.tap_formula can break zb_io.network.api, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
25→9 zb_io.network.download.parallel depends on zb_io.storage.blob✕
- Type pairs
- 1 distinct (type in zb_io.network.download.parallel → type in zb_io.storage.blob) reference.
- Which types
zb_io.network.download.parallel.ParallelDownloader→zb_io.storage.blob.BlobCache
- Direction
- zb_io.network.download.parallel uses zb_io.storage.blob. Changing zb_io.storage.blob can break zb_io.network.download.parallel, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
25→19 zb_io.network.download.parallel depends on zb_io.network.download.single✕
- Type pairs
- 1 distinct (type in zb_io.network.download.parallel → type in zb_io.network.download.single) reference.
- Which types
zb_io.network.download.parallel.ParallelDownloader→zb_io.network.download.single.Downloader
- Direction
- zb_io.network.download.parallel uses zb_io.network.download.single. Changing zb_io.network.download.single can break zb_io.network.download.parallel, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→2 zb_io.installer.install depends on zb_core.errors✕
- Type pairs
- 1 distinct (type in zb_io.installer.install → type in zb_core.errors) reference.
- Which types
zb_io.installer.install.PlanFailure→zb_core.errors.Error
- Direction
- zb_io.installer.install uses zb_core.errors. Changing zb_core.errors can break zb_io.installer.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→3 zb_io.installer.install depends on zb_core.formula.types✕
- Type pairs
- 2 distinct (type in zb_io.installer.install → type in zb_core.formula.types) references.
- Which types
zb_io.installer.install.Installer→zb_core.formula.types.Formulazb_io.installer.install.PlannedInstall→zb_core.formula.types.Formula
- Direction
- zb_io.installer.install uses zb_core.formula.types. Changing zb_core.formula.types can break zb_io.installer.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→4 zb_io.installer.install depends on zb_io.cellar.materialize✕
- Type pairs
- 1 distinct (type in zb_io.installer.install → type in zb_io.cellar.materialize) reference.
- Which types
zb_io.installer.install.Installer→zb_io.cellar.materialize.Cellar
- Direction
- zb_io.installer.install uses zb_io.cellar.materialize. Changing zb_io.cellar.materialize can break zb_io.installer.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→6 zb_io.installer.install depends on zb_io.installer.install.doctor✕
- Type pairs
- 1 distinct (type in zb_io.installer.install → type in zb_io.installer.install.doctor) reference.
- Which types
zb_io.installer.install.Installer→zb_io.installer.install.doctor.DiagnosticReport
- Direction
- zb_io.installer.install uses zb_io.installer.install.doctor. Changing zb_io.installer.install.doctor can break zb_io.installer.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→8 zb_io.installer.install depends on zb_io.network.download✕
- Type pairs
- 1 distinct (type in zb_io.installer.install → type in zb_io.network.download) reference.
- Which types
zb_io.installer.install.Installer→zb_io.network.download.DownloadResult
- Direction
- zb_io.installer.install uses zb_io.network.download. Changing zb_io.network.download can break zb_io.installer.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→9 zb_io.installer.install depends on zb_io.storage.blob✕
- Type pairs
- 1 distinct (type in zb_io.installer.install → type in zb_io.storage.blob) reference.
- Which types
zb_io.installer.install.Installer→zb_io.storage.blob.BlobCache
- Direction
- zb_io.installer.install uses zb_io.storage.blob. Changing zb_io.storage.blob can break zb_io.installer.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→10 zb_io.installer.install depends on zb_io.storage.db✕
- Type pairs
- 2 distinct (type in zb_io.installer.install → type in zb_io.storage.db) references.
- Which types
zb_io.installer.install.Installer→zb_io.storage.db.Databasezb_io.installer.install.Installer→zb_io.storage.db.InstalledKeg
- Direction
- zb_io.installer.install uses zb_io.storage.db. Changing zb_io.storage.db can break zb_io.installer.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→15 zb_io.installer.install depends on zb_core.build.plan✕
- Type pairs
- 2 distinct (type in zb_io.installer.install → type in zb_core.build.plan) references.
- Which types
zb_io.installer.install.Installer→zb_core.build.plan.BuildPlanzb_io.installer.install.PlannedInstall→zb_core.build.plan.InstallMethod
- Direction
- zb_io.installer.install uses zb_core.build.plan. Changing zb_core.build.plan can break zb_io.installer.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→16 zb_io.installer.install depends on zb_core.formula.bottle✕
- Type pairs
- 1 distinct (type in zb_io.installer.install → type in zb_core.formula.bottle) reference.
- Which types
zb_io.installer.install.Installer→zb_core.formula.bottle.SelectedBottle
- Direction
- zb_io.installer.install uses zb_core.formula.bottle. Changing zb_core.formula.bottle can break zb_io.installer.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→17 zb_io.installer.install depends on zb_io.cellar.link✕
- Type pairs
- 1 distinct (type in zb_io.installer.install → type in zb_io.cellar.link) reference.
- Which types
zb_io.installer.install.Installer→zb_io.cellar.link.Linker
- Direction
- zb_io.installer.install uses zb_io.cellar.link. Changing zb_io.cellar.link can break zb_io.installer.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→24 zb_io.installer.install depends on zb_io.network.api✕
- Type pairs
- 1 distinct (type in zb_io.installer.install → type in zb_io.network.api) reference.
- Which types
zb_io.installer.install.Installer→zb_io.network.api.ApiClient
- Direction
- zb_io.installer.install uses zb_io.network.api. Changing zb_io.network.api can break zb_io.installer.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→25 zb_io.installer.install depends on zb_io.network.download.parallel✕
- Type pairs
- 1 distinct (type in zb_io.installer.install → type in zb_io.network.download.parallel) reference.
- Which types
zb_io.installer.install.Installer→zb_io.network.download.parallel.ParallelDownloader
- Direction
- zb_io.installer.install uses zb_io.network.download.parallel. Changing zb_io.network.download.parallel can break zb_io.installer.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→1 zb_cli.commands.bundle depends on zb_cli.cli✕
- Type pairs
- 1 distinct (type in zb_cli.commands.bundle → type in zb_cli.cli) reference.
- Which types
zb_cli.commands.bundle.bundle$module→zb_cli.cli.BundleCommands
- Direction
- zb_cli.commands.bundle uses zb_cli.cli. Changing zb_cli.cli can break zb_cli.commands.bundle, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→26 zb_cli.commands.bundle depends on zb_io.installer.install✕
- Type pairs
- 1 distinct (type in zb_cli.commands.bundle → type in zb_io.installer.install) reference.
- Which types
zb_cli.commands.bundle.bundle$module→zb_io.installer.install.Installer
- Direction
- zb_cli.commands.bundle uses zb_io.installer.install. Changing zb_io.installer.install can break zb_cli.commands.bundle, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→2 zb_cli.commands.doctor depends on zb_core.errors✕
- Type pairs
- 1 distinct (type in zb_cli.commands.doctor → type in zb_core.errors) reference.
- Which types
zb_cli.commands.doctor.doctor$module→zb_core.errors.Error
- Direction
- zb_cli.commands.doctor uses zb_core.errors. Changing zb_core.errors can break zb_cli.commands.doctor, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→26 zb_cli.commands.doctor depends on zb_io.installer.install✕
- Type pairs
- 1 distinct (type in zb_cli.commands.doctor → type in zb_io.installer.install) reference.
- Which types
zb_cli.commands.doctor.doctor$module→zb_io.installer.install.Installer
- Direction
- zb_cli.commands.doctor uses zb_io.installer.install. Changing zb_io.installer.install can break zb_cli.commands.doctor, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
29→26 zb_cli.commands.gc depends on zb_io.installer.install✕
- Type pairs
- 1 distinct (type in zb_cli.commands.gc → type in zb_io.installer.install) reference.
- Which types
zb_cli.commands.gc.gc$module→zb_io.installer.install.Installer
- Direction
- zb_cli.commands.gc uses zb_io.installer.install. Changing zb_io.installer.install can break zb_cli.commands.gc, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
30→26 zb_cli.commands.info depends on zb_io.installer.install✕
- Type pairs
- 1 distinct (type in zb_cli.commands.info → type in zb_io.installer.install) reference.
- Which types
zb_cli.commands.info.info$module→zb_io.installer.install.Installer
- Direction
- zb_cli.commands.info uses zb_io.installer.install. Changing zb_io.installer.install can break zb_cli.commands.info, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
31→2 zb_cli.commands.install depends on zb_core.errors✕
- Type pairs
- 1 distinct (type in zb_cli.commands.install → type in zb_core.errors) reference.
- Which types
zb_cli.commands.install.install$module→zb_core.errors.Error
- Direction
- zb_cli.commands.install uses zb_core.errors. Changing zb_core.errors can break zb_cli.commands.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
31→26 zb_cli.commands.install depends on zb_io.installer.install✕
- Type pairs
- 2 distinct (type in zb_cli.commands.install → type in zb_io.installer.install) references.
- Which types
zb_cli.commands.install.install$module→zb_io.installer.install.InstallPlanzb_cli.commands.install.install$module→zb_io.installer.install.Installer
- Direction
- zb_cli.commands.install uses zb_io.installer.install. Changing zb_io.installer.install can break zb_cli.commands.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
32→26 zb_cli.commands.list depends on zb_io.installer.install✕
- Type pairs
- 1 distinct (type in zb_cli.commands.list → type in zb_io.installer.install) reference.
- Which types
zb_cli.commands.list.list$module→zb_io.installer.install.Installer
- Direction
- zb_cli.commands.list uses zb_io.installer.install. Changing zb_io.installer.install can break zb_cli.commands.list, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
33→2 zb_cli.commands.migrate depends on zb_core.errors✕
- Type pairs
- 1 distinct (type in zb_cli.commands.migrate → type in zb_core.errors) reference.
- Which types
zb_cli.commands.migrate.migrate$module→zb_core.errors.Error
- Direction
- zb_cli.commands.migrate uses zb_core.errors. Changing zb_core.errors can break zb_cli.commands.migrate, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
33→26 zb_cli.commands.migrate depends on zb_io.installer.install✕
- Type pairs
- 1 distinct (type in zb_cli.commands.migrate → type in zb_io.installer.install) reference.
- Which types
zb_cli.commands.migrate.migrate$module→zb_io.installer.install.Installer
- Direction
- zb_cli.commands.migrate uses zb_io.installer.install. Changing zb_io.installer.install can break zb_cli.commands.migrate, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
34→26 zb_cli.commands.outdated depends on zb_io.installer.install✕
- Type pairs
- 1 distinct (type in zb_cli.commands.outdated → type in zb_io.installer.install) reference.
- Which types
zb_cli.commands.outdated.outdated$module→zb_io.installer.install.Installer
- Direction
- zb_cli.commands.outdated uses zb_io.installer.install. Changing zb_io.installer.install can break zb_cli.commands.outdated, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
35→26 zb_cli.commands.run depends on zb_io.installer.install✕
- Type pairs
- 1 distinct (type in zb_cli.commands.run → type in zb_io.installer.install) reference.
- Which types
zb_cli.commands.run.run$module→zb_io.installer.install.Installer
- Direction
- zb_cli.commands.run uses zb_io.installer.install. Changing zb_io.installer.install can break zb_cli.commands.run, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→2 zb_cli.commands.uninstall depends on zb_core.errors✕
- Type pairs
- 1 distinct (type in zb_cli.commands.uninstall → type in zb_core.errors) reference.
- Which types
zb_cli.commands.uninstall.uninstall$module→zb_core.errors.Error
- Direction
- zb_cli.commands.uninstall uses zb_core.errors. Changing zb_core.errors can break zb_cli.commands.uninstall, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→26 zb_cli.commands.uninstall depends on zb_io.installer.install✕
- Type pairs
- 1 distinct (type in zb_cli.commands.uninstall → type in zb_io.installer.install) reference.
- Which types
zb_cli.commands.uninstall.uninstall$module→zb_io.installer.install.Installer
- Direction
- zb_cli.commands.uninstall uses zb_io.installer.install. Changing zb_io.installer.install can break zb_cli.commands.uninstall, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→26 zb_cli.commands.update depends on zb_io.installer.install✕
- Type pairs
- 1 distinct (type in zb_cli.commands.update → type in zb_io.installer.install) reference.
- Which types
zb_cli.commands.update.update$module→zb_io.installer.install.Installer
- Direction
- zb_cli.commands.update uses zb_io.installer.install. Changing zb_io.installer.install can break zb_cli.commands.update, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
38→2 zb_cli.commands.upgrade depends on zb_core.errors✕
- Type pairs
- 1 distinct (type in zb_cli.commands.upgrade → type in zb_core.errors) reference.
- Which types
zb_cli.commands.upgrade.upgrade$module→zb_core.errors.Error
- Direction
- zb_cli.commands.upgrade uses zb_core.errors. Changing zb_core.errors can break zb_cli.commands.upgrade, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
38→26 zb_cli.commands.upgrade depends on zb_io.installer.install✕
- Type pairs
- 1 distinct (type in zb_cli.commands.upgrade → type in zb_io.installer.install) reference.
- Which types
zb_cli.commands.upgrade.upgrade$module→zb_io.installer.install.Installer
- Direction
- zb_cli.commands.upgrade uses zb_io.installer.install. Changing zb_io.installer.install can break zb_cli.commands.upgrade, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→2 zb_cli.utils depends on zb_core.errors✕
- Type pairs
- 1 distinct (type in zb_cli.utils → type in zb_core.errors) reference.
- Which types
zb_cli.utils.utils$module→zb_core.errors.Error
- Direction
- zb_cli.utils uses zb_core.errors. Changing zb_core.errors can break zb_cli.utils, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→26 zb_cli.utils depends on zb_io.installer.install✕
- Type pairs
- 1 distinct (type in zb_cli.utils → type in zb_io.installer.install) reference.
- Which types
zb_cli.utils.utils$module→zb_io.installer.install.Installer
- Direction
- zb_cli.utils uses zb_io.installer.install. Changing zb_io.installer.install can break zb_cli.utils, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→26 zb_io.installer.install.plan depends on zb_io.installer.install✕
- Type pairs
- 1 distinct (type in zb_io.installer.install.plan → type in zb_io.installer.install) reference.
- Which types
zb_io.installer.install.plan.plan$module→zb_io.installer.install.PlanFailure
- Direction
- zb_io.installer.install.plan uses zb_io.installer.install. Changing zb_io.installer.install can break zb_io.installer.install.plan, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A03:2021 — Injection | 25 | High / Critical |
| A06:2021 — Vulnerable & Outdated Components | 15 | High / Critical |
Roadmap
Begin by establishing a formal architecture decision record process to capture key design choices and their consequences in a centralized location. Simultaneously, update the root README to accurately reflect the current project structure, including the site package and deployment workflow, while adding a clear section on how to run the test suite. Finally, implement automated dependency management and review gates to enhance security and performance monitoring.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 1 No ADRs found finding(s) in ADR Quality. | +6.9 pts | Low | ADR Quality |
| Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form). | +7.4 pts | Medium | Architecture documentation |
| Add a 'Testing' section to the root README — how to run the test suite. | +6.9 pts | Medium | Documentation (README) |
| Reconcile the README with reality: README omits the site package (site/eleventy) and its deploy workflow entirely. | +6.7 pts | Medium | Documentation accuracy |
| Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor. | +2.3 pts | Low | Bus Factor |
| Resolve the 1 Off-boarding risk finding(s) in Bus Factor. | +2.3 pts | Low | Bus Factor |
| Enable Dependabot/Renovate or a dependency-review gate. | +3.3 pts | Medium | Security & performance tooling |
| Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it. | +3.3 pts | Medium | Deployment & Rollback |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 2.3 | Slop | Dependency Vulnerabilities: Critical CVE: REDACTED |
| REDACTED | 2.3 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 4.4 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 4.6 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.1 | Mixed | Static Analysis (SAST): High: REDACTED |
| zb_cli/src/commands/migrate.rs | 6.0 | Mixed | Explicit Debt: FixmeComment |
| zb_cli/src/commands/uninstall.rs | 6.7 | Mixed | Explicit Debt: TodoComment |
| REDACTED | 6.9 | Mixed | Dependency Vulnerabilities: Medium vulnerability: REDACTED |
| zb_io/src/cellar/link.rs | 7.0 | Near-clean | Cyclomatic Complexity: Linker::link_recursive (cyclomatic 16) |
| zb_cli/src/commands/install.rs | 7.1 | Near-clean | Cyclomatic Complexity: zb_cli::commands::install::execute_formula_plan (cyclomatic 29) |
| zb_io/src/network/tap_formula.rs | 7.1 | Near-clean | Cognitive Complexity: zb_io::network::tap_formula::resolve_on_platform_blocks_inner (cognitive 25) |
| zb_io/src/extraction/patch/macos.rs | 7.1 | Near-clean | Cyclomatic Complexity: zb_io::extraction::patch::macos::patch_homebrew_placeholders (cyclomatic 34) |
| zb_io/src/extraction/patch/linux.rs | 7.1 | Near-clean | Cyclomatic Complexity: zb_io::extraction::patch::linux::patch_elf_placeholders (cyclomatic 24) |
| zb_cli/src/init.rs | 7.1 | Near-clean | Cognitive Complexity: zb_cli::init::add_to_path (cognitive 22) |
| zb_io/src/installer/install/plan.rs | 7.2 | Near-clean | Cognitive Complexity: Installer::fetch_all_formulas_best_effort (cognitive 22) |
| zb_cli/src/commands/upgrade.rs | 7.4 | Near-clean | Cyclomatic Complexity: zb_cli::commands::upgrade::execute (cyclomatic 38) |
| zb_io/src/network/download/single.rs | 7.4 | Near-clean | Cyclomatic Complexity: Downloader::download_with_racing (cyclomatic 24) |
| zb_io/src/installer/install/source.rs | 7.4 | Near-clean | Cyclomatic Complexity: Installer::install_from_source (cyclomatic 21) |
| zb_cli/src/commands/doctor.rs | 7.4 | Near-clean | Cyclomatic Complexity: zb_cli::commands::doctor::execute (cyclomatic 17) |
| zb_io/src/network/download/chunked.rs | 7.4 | Near-clean | Cyclomatic Complexity: zb_io::network::download::chunked::download_chunk (cyclomatic 16) |
How the grades work
A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.
Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 36 of 40 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 40 dimensions across the health lenses
- Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 123 of 140 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.rs) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
- AX1 Captive dependencies — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- AX2 Stateful singletons — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- AX6 Interface segregation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- C1 Data Protection — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
- C2 Access Controls — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
- C3 Audit Trail — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
- C4 Data Retention — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
- C5 Data-Subject Rights — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
- ED5 Idempotency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check finds retry-prone mutations by walking the repository's declared types, and NONE was loaded on this run, so it had nothing to look at. That is a limit of the analyzer's reach — it reads .NET projects — not a finding that this repository has no command handlers or message consumers.
- GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- IC1 Incompleteness & stubs — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- P10 Library API & versioning — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads NuGet packaging and C# public API only, and no .NET project was loaded for this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- PF1 Benchmark discipline — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- PF2 Allocation hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- S1 Web-Security Posture — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
- X1 Async correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X10 Duplicated predicate — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X12 Unreachable branch — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X13 Undrained process stream — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X14 Bypassable address classification — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X15 Unvalidated length from an untrusted reader — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X16 Unfloored truncation loop — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X17 Uncapped recursion over a caller-supplied document — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X18 Disposal-pattern correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X19 Unrestored process-global state — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X2 Cancellation propagation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X20 Mistyped argument guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X21 Side-effecting pattern guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X22 Contradicted release guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X23 Unguarded diagnostic materialisation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X24 Document value interpolated into markup unescaped — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X25 Inert configuration knob — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X26 Unsynchronised callback handoff — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X27 Collection changed while being enumerated — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X28 Index access outside its own emptiness guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X29 Per-element action decided by a fixed element — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X3 Exception handling — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X30 Support guard that admits what it rejects — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X32 Type resolved by simple name across every loaded assembly — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X5 Nullable reference types — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X6 Hand-rolled structured-format parsing — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X7 Silent fallback defaults — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
- D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
- D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
- D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
12 function(s) exceeded the cyclomatic complexity threshold of 15; the worst was zb_cli::commands::upgrade::execute at 38. A further 1 function(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being zb_cli::bin::zb::run at 18 — they are counted neither in the figure above nor in this dimension's score. 1 file carries no cyclomatic complexity row at all for this reason — every one of its over-threshold functions was excluded, so the exclusion is disclosed nowhere in the file itself: zb_cli/src/bin/zb.rs (zb_cli::bin::zb::run at 18). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
What to do
- Resolve the 4 zb_cli finding(s) in Cyclomatic Complexity — start with upgrade.rs, install.rs, migrate.rs. — One of this dimension's main actionable groups (4 warning-level).
- Resolve the 3 zb_io finding(s) in Cyclomatic Complexity — start with macos.rs, linux.rs, chunked.rs. — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 2 Installer finding(s) in Cyclomatic Complexity — start with source.rs, doctor.rs. — One of this dimension's main actionable groups (2 warning-level).
- Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D2 · Cognitive Complexity
31 function(s) exceeded the cognitive complexity threshold of 15; the worst was zb_io::extraction::patch::macos::patch_homebrew_placeholders at 55.
What to do
- Resolve the 9 zb_cli finding(s) in Cognitive Complexity — start with install.rs (2), init.rs (2), upgrade.rs. — One of this dimension's main actionable groups (9 warning-level).
- Resolve the 7 zb_io finding(s) in Cognitive Complexity — start with macos.rs (2), linux.rs (2), chunked.rs. — One of this dimension's main actionable groups (7 warning-level).
- Resolve the 7 Installer finding(s) in Cognitive Complexity — start with plan.rs (3), source.rs, doctor.rs. — One of this dimension's main actionable groups (7 warning-level).
- Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D3 · God Classes
12 over-large unit(s) detected — types, modules or files that carry too much.
What to do
- Resolve the 9 FunctionTooLong finding(s) in God Classes — start with init.rs (2), migrate.rs, upgrade.rs. — One of this dimension's main actionable groups (9 warning-level).
- Resolve the 2 MethodTooLong finding(s) in God Classes — start with single.rs, source.rs. — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 1 TooManyMethods finding(s) in God Classes — start with mod.rs. — One of this dimension's main actionable groups (1 warning-level).
- Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D4 · Code Duplication
24 duplicated block group(s) detected. One further row reports members as variants of one another; it aggregates block groups already counted above and is not itself counted.
What to do
- Resolve the 5 Duplicated block (10 lines × 2) finding(s) in Code Duplication — start with tap_formula.rs (2), init.rs, install.rs. — One of this dimension's main actionable groups (5 warning-level).
- Resolve the 4 Duplicated block (12 lines × 2) finding(s) in Code Duplication — start with link.rs, cache.rs, migrate.rs. — One of this dimension's main actionable groups (4 warning-level).
- Resolve the 3 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with link.rs, auth.rs, macos.rs. — One of this dimension's main actionable groups (3 warning-level).
- Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D5 · Coupling
4 production modules (Cargo+npm), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; 1 module(s) off the main sequence, with abstractness counted on 3 of the 4 (the rest declare no modelled class or interface, export only macros, or have no source directory of their own).
What to do
- Resolve the 1 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D6 · Cohesion (LCOM4)
0 of 15 classes have LCOM4 above 3.
D9 · Test Distribution
369 test methods: 360 unit, 9 integration, 0 BDD, 0 e2e. The Rust suite contributes 369 `#[test]` function(s) across 47 file(s) declaring at least one; its unit/integration split is Cargo's own — 2 of those file(s) are integration-test targets under a crate's tests/ directory, and the rest are #[test] functions compiled into the crate they test.
D11 · Test Reliability
0 flaky across 1 measured tier(s). Rust (repository root, 47 test files): measured (0 flaky).
D12 · Dependency Hygiene
2 outdated, 0 yanked direct Cargo dependencies. Only DIRECT edges are graded: a transitive crate cannot be moved past what its parent's requirement admits, so reporting one would be advice its owner cannot take. A newer release is reported only where this repository's OWN requirement already admits it, so the remedy is `cargo update` and never a manifest edit — which means a release outside the declared range is deliberately NOT charged, because a written-down constraint is a decision rather than a defect. Note that a bare requirement is a CARET, and for a 0.x crate its ceiling is the minor. Whether any crate is UNMAINTAINED is not graded — crates.io publishes no maintenance status, and release age does not stand in for one. Known CVEs in this dependency graph are D30's question, read from REDACTED there.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D16 · Bus Factor
15 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is zb_io/src/network/download/chunked.rs. Counted over 50 of the 75 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What to do
- Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
- Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
D17 · Explicit Debt
2 deducted task-comment markers across 19762 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
What to do
- Resolve the 1 TodoComment finding(s) in Explicit Debt — start with uninstall.rs. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 FixmeComment finding(s) in Explicit Debt — start with migrate.rs. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D19 · Documentation Quality
The repository's single README is a well-structured root-level guide for the zero-brew tool. It states what it does (uv-style architecture for Homebrew on macOS and Linux), shows an unmaintained warning with contact info, and provides install, update, and quick-start commands. The document is clipped mid-installation at 'zb bundle dump', so sections like Performance snapshot and Relationship with Homebrew are present in the outline but not shown; it does not yet show a complete architecture or design doc set, which would fall under missing-architecture-docs.
What to do
- Improve Documentation Quality — currently 8.0/10. — The repository's single README is a well-structured root-level guide for the zero-brew tool. It states what it does (uv-style architecture for Homebrew on macOS and Linux), shows an unmaintained warning with contact info, and provides install, update, and quick-start commands. The document is clipped mid-installation at 'zb bundle dump', so sections like Performance snapshot and Relationship with Homebrew are present in the outline but not shown; it does not yet show a complete architecture or design doc set, which would fall under missing-architecture-docs.
D20 · ADR Quality
No architecture decision records were found.
What to do
- Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D22 · Internal API Consistency
3 API inconsistencies across 108 exposed types.
What to do
- Resolve the 1 Signature mismatch in parameter type. `download_all` takes a single… finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Inconsistent naming convention for progress variants.… finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Inconsistent return type naming and intent. `get_formula` likely returns… finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).
D26 · Project Cohesion
0 of 3 build units (Cargo) flagged as possibly oversized/incoherent.
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
25 finding(s): 0 critical, 24 high, 1 medium, 0 low. 23 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 1 file(s) — `zb_io/src/cellar/materialize.rs` (line 218, line 230) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 2 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
What to do
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
- No action in Static Analysis (SAST) — all 23 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (23 issue-level, 0 of them charged here).
D30 · Dependency Vulnerabilities
15 finding(s): 1 critical, 11 high, 3 medium, 0 low.
What to do
- Resolve the 10 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (10). — One of this dimension's main actionable groups (10 issue-level).
- Resolve the 1 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 High vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
D34 · Knowledge Freshness
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 50 of the 75 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
D35 · Change Coupling
Strongest change-coupling: bottle.rs↔resolve.rs 50%
What to do
- Resolve the 1 Change coupling finding(s) in Change Coupling — start with bottle.rs. — One of this dimension's main actionable groups (1 warning-level).
D36 · Supply-chain Provenance & Signing
2/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).
What to do
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
D43 · Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
D44 · Platform End-of-Life
1 end-of-life runtime(s) and 0 end-of-life framework(s), read from 2 platform declaration(s) and 0 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
What to do
- Resolve the 1 End-of-life runtime finding(s) in Platform End-of-Life. — One of this dimension's main actionable groups (1 warning-level).
Frontend & cross-cutting dimensions
AX10 · Code composition
What to do
- The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX3 · Project dependency cycles
AX4 · Dependency direction
AX9 · CQS / query purity
M1 · Documentation (README)
What to do
- Add a 'Testing' section to the root README — how to run the test suite.
- Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
- Add a README to the 4 of 4 project(s) that lack one — worth up to 2 pts.
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
What to do
- Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form).
M3 · Folder & project structure
M4 · Documentation accuracy
- README omits the site package (site/eleventy) and its deploy workflow entirely — reported by the model that read the README against this repository; no term search was run for this one, so nothing here has been checked against the tree. Treat it as a reading to confirm, not as a measured contradiction: verify it against the code before acting on it, and if the footprint it describes does exist, this row is wrong.
What to do
- Reconcile the README with reality: README omits the site package (site/eleventy) and its deploy workflow entirely.
P1 · CI/CD gates
P2 · Observability
P3 · Security & performance tooling
What to do
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
- The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY'S PIPELINE FILES. What was read: every file under `.github/workflows/`, `.forgejo/workflows/`, `.gitea/workflows/`, `.azuredevops/` and `.azure-pipelines/`, plus `.gitlab-ci*` and `azure-pipelines*` — with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab's `when: manual`, CircleCI's `type: approval`, an Azure `ManualValidation@` task or an `approvals:` block, a Jenkins `input` step, a `uses:` step naming an approval action, an `environment:` paired with `reviewers` / `required_reviewers` / `protection` / `wait-timer` / `deployment_branch_policy`, a draft-release step, a `workflow_dispatch` promotion, or a release-event gate. ★ What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy — all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release.
What to do
- Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
P6 · Release Hygiene
PF3 · Async & latency hygiene
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 83% | Adequate — gated by D2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 96% | Exemplary | Solid. |
| Maturity | 59% | Adequate — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 68% | Strong | Solid. |
| Security | 67% | Adequate — gated by D30 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Strongest area. |
Not evidenced — 4 control(s) we could not find positive evidence for
- C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 77 check(s) not relevant to this codebase
- AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
- AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
- AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
- AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
- AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
- AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
- AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
- AX1 Captive dependencies — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX2 Stateful singletons — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AX8 Test isolation — no test/production split to check
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — the dev server did not expose a crawlable HTTP endpoint in time — no runtime evidence This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
- C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- D10 Test Quality — ~312 lines of test source are present (.rs) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
- D14 License Compliance — Not scored — this repository's 323 shipped crate(s) were read from its REDACTED, but crates.io could not be asked for the licence of 52 of them (HTTP 429 Unknown Error), and a licence verdict over part of a dependency graph is not a licence verdict. Nothing is asserted about this repository's licensing in either direction.
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout nor 2+ sibling source directories each declaring an aggregate root. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value — No inline comments to assess — comment value is not applicable here.
- D25 ADR Conformance — no ADRs to check
- D27 Navigability — symbol resolution incomplete — navigability not assessed
- D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
- D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
- D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
- D8 Code Coverage — Coverage not included — suite not readable by the collector
- DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (1 value object(s))
- ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and a call made through an inferred or generic receiver has no resolvable owner in the source. Reported as guidance rather than measured
- ED5 Idempotency — This check finds retry-prone mutations (command handlers and message/event consumers) by walking the repository's declared types, and none was loaded here, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- GD1 Unfinished & placeholder code — no source files were read — this check reads C# syntax, and none was loaded for this repository. That is a limit of the analyzer, not a finding about your code.
- IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- P10 Library API & versioning — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
- P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JavaScript/TypeScript, Ruby, Rust source, so there is no service whose uptime a failing dependency could take down
- P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
- P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
- PF1 Benchmark discipline — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- PF2 Allocation hygiene — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X10 Duplicated predicate — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X12 Unreachable branch — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X13 Undrained process stream — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X14 Bypassable address classification — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X15 Unvalidated length from an untrusted reader — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X16 Unfloored truncation loop — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X17 Uncapped recursion over a caller-supplied document — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X18 Disposal-pattern correctness — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X19 Unrestored process-global state — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X20 Mistyped argument guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X21 Side-effecting pattern guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X22 Contradicted release guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X23 Unguarded diagnostic materialisation — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X24 Document value interpolated into markup unescaped — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X25 Inert configuration knob — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X26 Unsynchronised callback handoff — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X27 Collection changed while being enumerated — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X28 Index access outside its own emptiness guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X29 Per-element action decided by a fixed element — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X3 Exception handling — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X30 Support guard that admits what it rejects — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X32 Type resolved by simple name across every loaded assembly — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X6 Hand-rolled structured-format parsing — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X7 Silent fallback defaults — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 36 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
Serious — 94 finding(s)
- zb_cli::commands::upgrade::execute (cognitive 53) zb_cli/src/commands/upgrade.rs:11
- zb_cli::commands::install::execute_formula_plan (cognitive 40) zb_cli/src/commands/install.rs:88
- zb_cli::commands::migrate::execute (cognitive 34) zb_cli/src/commands/migrate.rs:5
- zb_cli::commands::reset::execute (cognitive 33) zb_cli/src/commands/reset.rs:9
- zb_cli::init::add_to_path (cognitive 22) zb_cli/src/init.rs:246
- zb_cli::init::run_init (cognitive 20) zb_cli/src/init.rs:53
- zb_cli::commands::install::execute (cognitive 18) zb_cli/src/commands/install.rs:11
- zb_cli::commands::doctor::execute (cognitive 18) zb_cli/src/commands/doctor.rs:5
- zb_cli::commands::uninstall::execute (cognitive 17) zb_cli/src/commands/uninstall.rs:5
- FunctionTooLong: zb_cli::init::add_to_path zb_cli/src/init.rs:246
- FunctionTooLong: zb_cli::commands::migrate::execute zb_cli/src/commands/migrate.rs:5
- FunctionTooLong: zb_cli::commands::upgrade::execute zb_cli/src/commands/upgrade.rs:11
- FunctionTooLong: zb_io::extraction::patch::macos::patch_homebrew_placeholders zb_io/src/extraction/patch/macos.rs:222
- FunctionTooLong: zb_io::network::download::chunked::download_with_chunks zb_io/src/network/download/chunked.rs:214
- FunctionTooLong: zb_cli::commands::install::execute_formula_plan zb_cli/src/commands/install.rs:88
- FunctionTooLong: zb_cli::commands::doctor::execute zb_cli/src/commands/doctor.rs:5
- FunctionTooLong: zb_io::extraction::patch::linux::patch_elf_placeholders zb_io/src/extraction/patch/linux.rs:133
- FunctionTooLong: zb_cli::init::run_init zb_cli/src/init.rs:53
- zb_io::extraction::patch::macos::patch_homebrew_placeholders (cognitive 55) zb_io/src/extraction/patch/macos.rs:222
- zb_io::network::download::chunked::download_chunk (cognitive 44) zb_io/src/network/download/chunked.rs:87
- zb_io::extraction::patch::linux::patch_elf_placeholders (cognitive 33) zb_io/src/extraction/patch/linux.rs:133
- zb_io::network::tap_formula::resolve_on_platform_blocks_inner (cognitive 25) zb_io/src/network/tap_formula.rs:237
- zb_io::network::download::auth::fetch_range_response_internal (cognitive 24) zb_io/src/network/download/auth.rs:63
- zb_io::extraction::patch::macos::patch_macho_binary_strings (cognitive 21) zb_io/src/extraction/patch/macos.rs:98
- zb_io::extraction::patch::linux::detect_zerobrew_glibc (cognitive 20) zb_io/src/extraction/patch/linux.rs:38
- Installer::install_from_source (cognitive 35) zb_io/src/installer/install/source.rs:12
- Installer::doctor (cognitive 31) zb_io/src/installer/install/doctor.rs:54
- Installer::check_outdated (cognitive 27) zb_io/src/installer/install/outdated.rs:47
- Installer::fetch_all_formulas_best_effort (cognitive 22) zb_io/src/installer/install/plan.rs:135
- Installer::fetch_all_formulas (cognitive 22) zb_io/src/installer/install/plan.rs:205
- Installer::execute_inner (cognitive 21) zb_io/src/installer/install/mod.rs:138
- Installer::plan_best_effort (cognitive 19) zb_io/src/installer/install/plan.rs:30
- Linker::link_recursive (cognitive 43) zb_io/src/cellar/link.rs:328
- Linker::collect_conflicts (cognitive 34) zb_io/src/cellar/link.rs:201
- Linker::unlink_recursive (cognitive 19) zb_io/src/cellar/link.rs:447
- Linker::collect_conflicts_merged (cognitive 17) zb_io/src/cellar/link.rs:266
- Linker::collect_linked_recursive (cognitive 17) zb_io/src/cellar/link.rs:482
- Linker::is_linked (cognitive 16) zb_io/src/cellar/link.rs:568
- Duplicated block (10 lines × 2) zb_cli/src/init.rs:151
- Duplicated block (10 lines × 2) zb_cli/src/commands/install.rs:130
- Duplicated block (10 lines × 2) zb_io/src/network/tap_formula.rs:425
- Duplicated block (10 lines × 2) zb_io/src/network/tap_formula.rs:536
- Duplicated block (10 lines × 2) zb_io/src/cellar/materialize.rs:55
- zb_cli::commands::upgrade::execute (cyclomatic 38) zb_cli/src/commands/upgrade.rs:11
- zb_cli::commands::install::execute_formula_plan (cyclomatic 29) zb_cli/src/commands/install.rs:88
- zb_cli::commands::migrate::execute (cyclomatic 28) zb_cli/src/commands/migrate.rs:5
- zb_cli::commands::doctor::execute (cyclomatic 17) zb_cli/src/commands/doctor.rs:5
- Duplicated block (12 lines × 2) zb_io/src/cellar/link.rs:202
- Duplicated block (12 lines × 2) zb_io/src/network/cache.rs:53
- Duplicated block (12 lines × 2) zb_cli/src/commands/migrate.rs:122
- Duplicated block (12 lines × 2) zb_io/src/network/tap_formula.rs:437
- zb_io::extraction::patch::macos::patch_homebrew_placeholders (cyclomatic 34) zb_io/src/extraction/patch/macos.rs:222
- zb_io::extraction::patch::linux::patch_elf_placeholders (cyclomatic 24) zb_io/src/extraction/patch/linux.rs:133
- zb_io::network::download::chunked::download_chunk (cyclomatic 16) zb_io/src/network/download/chunked.rs:87
- Duplicated block (9 lines × 2) zb_io/src/cellar/link.rs:464
- Duplicated block (9 lines × 2) zb_io/src/network/download/auth.rs:93
- Duplicated block (9 lines × 2) zb_io/src/extraction/patch/macos.rs:75
- Installer::install_from_source (cyclomatic 21) zb_io/src/installer/install/source.rs:12
- Installer::doctor (cyclomatic 20) zb_io/src/installer/install/doctor.rs:54
- MethodTooLong: Downloader.download_with_racing zb_io/src/network/download/single.rs:141
- MethodTooLong: Installer.install_from_source zb_io/src/installer/install/source.rs:12
- REDACTED
- REDACTED
- Duplicated block (8 lines × 2) zb_io/src/cellar/link.rs:334
- Duplicated block (8 lines × 2) zb_cli/src/commands/install.rs:200
- Duplicated block (6 lines × 2) zb_io/src/cellar/link.rs:448
- Duplicated block (6 lines × 2) zb_io/src/network/tap_formula.rs:238
- Downloader::download_with_racing (cyclomatic 24) zb_io/src/network/download/single.rs:141
- Error::fmt (cyclomatic 17) zb_core/src/errors.rs:28
- Linker::link_recursive (cyclomatic 16) zb_io/src/cellar/link.rs:328
- TodoComment zb_cli/src/commands/uninstall.rs:60
- FixmeComment zb_cli/src/commands/migrate.rs:236
- Downloader::download_with_racing (cognitive 42) zb_io/src/network/download/single.rs:141
- ApiClient::get_tap_formula (cognitive 25) zb_io/src/network/api.rs:515
- Signature mismatch in parameter type. `download_all` takes a single `DownloadRequest` (likely a typo for a slice or vec), while `download_all_with_progress` also takes a single `DownloadRequest`. However, the method name `download_all` implies multiple items, and the other method `download_single` takes a single item. It is highly probable that `download_all` should accept a collection (e.g., `&[DownloadRequest]`) to be consistent with the semantic intent of 'all' and to match the pattern of `download_all_with_progress` if it also intends to handle multiple, or if `download_all_with_progress` is the correct multi-item handler, `download_all` is ambiguous. More critically, looking at `download_single`, it takes a single request. If `download_all` is meant to take multiple, the type `DownloadRequest` is likely incorrect (should be a slice/vec). If it takes a single request, it is redundant with `download_single` but without progress, which is a minor inconsistency in naming vs utility. Given `download_all_with_progress` exists, `download_all` likely intends to be the non-progress multi-download, but the type signature `DownloadRequest` (singular) contradicts the name `all`.
- Inconsistent naming convention for progress variants. `ParallelDownloader` uses `download_all_with_progress`, while `Downloader` uses `download_with_progress`. While the scope differs (all vs single), the prefix `with_progress` is used in one and implied/absent in the other's base method. More importantly, `ParallelDownloader` has `download_single` and `download_all_with_progress`, but lacks a `download_single_with_progress` or a generic `download_with_progress` that handles single items, creating an asymmetry in the API surface between the two downloader implementations.
- Inconsistent return type naming and intent. `get_formula` likely returns a single `Formula` or `Result<Formula>`, while `get_all_formulas_raw` returns raw data. The naming `get_all_formulas_raw` is verbose and inconsistent with `get_formula`. If `get_formula` returns a parsed object, `get_all_formulas` should likely return a collection of parsed objects, or `get_all_formulas_raw` should be renamed to `get_all_formulas` if it returns parsed data, or `get_formula_raw` if it returns raw data. The current mix of 'raw' and non-'raw' suggests an inconsistency in whether the API returns parsed or raw data.
- REDACTED
- TooManyMethods: Installer zb_io/src/installer/install/mod.rs:46
- REDACTED
- Change coupling: bottle.rs ↔ resolve.rs zb_core/src/formula/bottle.rs
- REDACTED
- REDACTED
- Members sharing a duplicated core (7 members, 50+ identical tokens) zb_io/src/cellar/link.rs:201
- Duplicated block (25 lines × 2) zb_io/src/installer/install/plan.rs:141
- Duplicated block (17 lines × 2) zb_io/src/network/api.rs:326
- Duplicated block (12–15 lines × 2) zb_io/src/cellar/link.rs:207
- Duplicated block (15 lines × 2) zb_io/src/network/tap_formula.rs:547
- Duplicated block (9–10 lines × 2) zb_io/src/storage/store.rs:63
- Duplicated block (7 lines × 3) zb_io/src/cellar/link.rs:236
- Duplicated block (7 lines × 2) zb_io/src/extraction/patch/linux.rs:322
- Duplicated block (6 lines × 7) zb_io/src/cellar/link.rs:237
- End-of-life runtime: Rust 1.96
- Off the main sequence: zb_core
Minor — 8 finding(s)
- Off-boarding risk: anonymized user #1
- Further sole-owners (lower concentration)
- No ADRs found
- REDACTED
- REDACTED
- No ADRs
- README/code drift
- No release approval gate
Minor — 2 finding(s)
- Outdated: chrono
- Outdated: reqwest
Appendix B — Reproduction & audit trail
| Dimension | Tool | Version | Command | Findings | Raw output |
|---|---|---|---|---|---|
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-249febec7d414d74b94fcba857c917ae/history.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-249febec7d414d74b94fcba857c917ae/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 25 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 15 | artifacts/raw/trivy-fs.json |
| D31 · IaC & Container Security | trivy | — | trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan. | 0 | — |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 0 | artifacts/raw/trivy-fs.json |