Executive summary
bardiakhosravi/tenets scores 49 out of 100 and is rated Adequate, while four of its six lenses score higher still: Architecture at 95, rated Exemplary, and Security and Compliance at 70, Performance at 60 and Production Readiness at 50, all rated Adequate. The project hasn't declared a stable release yet, so its lenses are rated against a lower bar than a released product's, while the score itself is worked out as for any repository.
The score is lower than those four because the weakest lens counts most, and here that is Code Health, which scores 44 and is rated Weak. Its Type Safety dimension scores 0 out of 10, and until that reaches 4, Code Health can't be rated higher than Adequate. The first actions are to adopt TypeScript for the frontend: add a typecheck step to the build, then either type-check the existing JavaScript in place (`checkJs`/JSDoc types) or convert the highest-traffic modules first — no file is typed today, so this is an adoption, not a clean-up and to bring the 2 bodies over 60 down to 60 or less in Cognitive Complexity, and if Code Health rose to 70, the score would rise from 49 to about 54.
11 findings are critical, all in Static Analysis (SAST).
Watchdog couldn't measure 9 dimensions in this code, among them Dependency Hygiene, License Compliance and Internal API Consistency, so they are left out of the score. The product code is 5,810 lines, which would take an estimated 0.1 person-years, around €8,600, to rebuild.
If Code Health rose from 44 to 70, the lowest score rated Strong, the score would rise from 49 to about 54.
New since the last survey: 30 findings
- Large Files · cli/src/commands/init.js: 632 lines of code cli/src/commands/init.js
- Large Files · cli/src/commands/update.js: 426 lines of code cli/src/commands/update.js
- Large Files · cli/src/services/installation-inspector.js: 405 lines of code cli/src/services/installation-inspector.js
- Exception handling · Swallowed exception (empty catch) cli/src/commands/init.js
- Exception handling · Swallowed exception (empty catch) cli/src/services/installation-inspector.js
- Async & latency hygiene · Sync-over-async blocking cli/src/commands/init.js
- Async & latency hygiene · Sync-over-async blocking cli/src/commands/init.js
- Async & latency hygiene · Sync-over-async blocking cli/src/commands/init.js
- Async & latency hygiene · Sync-over-async blocking cli/src/commands/init.js
- Async & latency hygiene · Sync-over-async blocking cli/src/commands/init.js
- Async & latency hygiene · Sync-over-async blocking cli/src/commands/init.js
- Async & latency hygiene · Sync-over-async blocking cli/src/commands/uninstall.js
- Async & latency hygiene · Sync-over-async blocking cli/src/commands/uninstall.js
- Async & latency hygiene · Sync-over-async blocking cli/src/commands/update.js
- Async & latency hygiene · Sync-over-async blocking cli/src/commands/update.js
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
Fixed since the last survey: 7 findings
- Large Files · Large Files
- Async & latency hygiene · Sync-over-async blocking cli/src/services/change-planner.js
- Async & latency hygiene · Sync-over-async blocking cli/src/commands/init.js
- Async & latency hygiene · Sync-over-async blocking cli/src/commands/init.js
- Async & latency hygiene · Sync-over-async blocking cli/src/commands/init.js
- Async & latency hygiene · Sync-over-async blocking cli/src/commands/update.js
- Async & latency hygiene · Sync-over-async blocking cli/src/commands/uninstall.js
Rebuild cost: about €8,600 · Estimate
| Cost to rebuild | €2,800 to €14,000, for 47 to 151 hours of work, about 0.1 person-years for one engineer |
|---|---|
| Difficulty of the problem | Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write. |
| Quality factor | ×0.7 at a score of 49. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it. |
| Size | Small: 5,810 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture: which parts of the code depend on which
| uses → | 1 cli.bin | 2 cli.scripts | 3 cli.src.commands | 4 cli.src.services | 5 cli.src.services.file-writer | 6 cli.src.ui | 7 demo.act-009 | 8 examples.architecture-review-demo.src.ordering | 9 examples.architecture-review-demo.src.ordering.application.ports.order_notifier | 10 examples.architecture-review-demo.src.ordering.domain.order | 11 examples.architecture-review-demo.src.ordering.domain.ports.order_repository | 12 examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier | 13 examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository | 14 examples.architecture-review-demo.src.ordering.application.submit_order_use_case | 15 examples.architecture-review-demo.src.ordering.adapters.primary |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 cli.bin | |||||||||||||||
| 2 cli.scripts | |||||||||||||||
| 3 cli.src.commands | |||||||||||||||
| 4 cli.src.services | |||||||||||||||
| 5 cli.src.services.file-writer | |||||||||||||||
| 6 cli.src.ui | |||||||||||||||
| 7 demo.act-009 | |||||||||||||||
| 8 examples.architecture-review-demo.src.ordering | |||||||||||||||
| 9 examples.architecture-review-demo.src.ordering.application.ports.order_notifier | |||||||||||||||
| 10 examples.architecture-review-demo.src.ordering.domain.order | |||||||||||||||
| 11 examples.architecture-review-demo.src.ordering.domain.ports.order_repository | 2 | ||||||||||||||
| 12 examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier | 1 | 1 | |||||||||||||
| 13 examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository | 2 | 1 | |||||||||||||
| 14 examples.architecture-review-demo.src.ordering.application.submit_order_use_case | 1 | 1 | |||||||||||||
| 15 examples.architecture-review-demo.src.ordering.adapters.primary | 1 |
11→10 examples.architecture-review-demo.src.ordering.domain.ports.order_repository uses examples.architecture-review-demo.src.ordering.domain.order✕
- Connections
- 2 pairs of types, where a type in examples.architecture-review-demo.src.ordering.domain.ports.order_repository uses a type in examples.architecture-review-demo.src.ordering.domain.order.
- The types involved
examples.architecture-review-demo.src.ordering.domain.ports.order_repository.OrderRepository→examples.architecture-review-demo.src.ordering.domain.order.Orderexamples.architecture-review-demo.src.ordering.domain.ports.order_repository.OrderRepository→examples.architecture-review-demo.src.ordering.domain.order.OrderId
- Direction
- examples.architecture-review-demo.src.ordering.domain.ports.order_repository uses examples.architecture-review-demo.src.ordering.domain.order, so a change to examples.architecture-review-demo.src.ordering.domain.order can break examples.architecture-review-demo.src.ordering.domain.ports.order_repository, while a change to examples.architecture-review-demo.src.ordering.domain.ports.order_repository can't break examples.architecture-review-demo.src.ordering.domain.order.
- Position
- Below the diagonal: examples.architecture-review-demo.src.ordering.domain.ports.order_repository uses a module listed above it, which is the healthy direction.
12→9 examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier uses examples.architecture-review-demo.src.ordering.application.ports.order_notifier✕
- Connections
- 1 pair of types, where a type in examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier uses a type in examples.architecture-review-demo.src.ordering.application.ports.order_notifier.
- The types involved
examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier.EmailOrderNotifier→examples.architecture-review-demo.src.ordering.application.ports.order_notifier.OrderNotifier
- Direction
- examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier uses examples.architecture-review-demo.src.ordering.application.ports.order_notifier, so a change to examples.architecture-review-demo.src.ordering.application.ports.order_notifier can break examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier, while a change to examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier can't break examples.architecture-review-demo.src.ordering.application.ports.order_notifier.
- Position
- Below the diagonal: examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier uses a module listed above it, which is the healthy direction.
12→11 examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier uses examples.architecture-review-demo.src.ordering.domain.ports.order_repository✕
- Connections
- 1 pair of types, where a type in examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier uses a type in examples.architecture-review-demo.src.ordering.domain.ports.order_repository.
- The types involved
examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier.EmailOrderNotifier→examples.architecture-review-demo.src.ordering.domain.ports.order_repository.OrderRepository
- Direction
- examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier uses examples.architecture-review-demo.src.ordering.domain.ports.order_repository, so a change to examples.architecture-review-demo.src.ordering.domain.ports.order_repository can break examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier, while a change to examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier can't break examples.architecture-review-demo.src.ordering.domain.ports.order_repository.
- Position
- Below the diagonal: examples.architecture-review-demo.src.ordering.adapters.secondary.email_order_notifier uses a module listed above it, which is the healthy direction.
13→10 examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository uses examples.architecture-review-demo.src.ordering.domain.order✕
- Connections
- 2 pairs of types, where a type in examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository uses a type in examples.architecture-review-demo.src.ordering.domain.order.
- The types involved
examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository.SqlOrderRepository→examples.architecture-review-demo.src.ordering.domain.order.Orderexamples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository.SqlOrderRepository→examples.architecture-review-demo.src.ordering.domain.order.OrderId
- Direction
- examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository uses examples.architecture-review-demo.src.ordering.domain.order, so a change to examples.architecture-review-demo.src.ordering.domain.order can break examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository, while a change to examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository can't break examples.architecture-review-demo.src.ordering.domain.order.
- Position
- Below the diagonal: examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository uses a module listed above it, which is the healthy direction.
13→11 examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository uses examples.architecture-review-demo.src.ordering.domain.ports.order_repository✕
- Connections
- 1 pair of types, where a type in examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository uses a type in examples.architecture-review-demo.src.ordering.domain.ports.order_repository.
- The types involved
examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository.SqlOrderRepository→examples.architecture-review-demo.src.ordering.domain.ports.order_repository.OrderRepository
- Direction
- examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository uses examples.architecture-review-demo.src.ordering.domain.ports.order_repository, so a change to examples.architecture-review-demo.src.ordering.domain.ports.order_repository can break examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository, while a change to examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository can't break examples.architecture-review-demo.src.ordering.domain.ports.order_repository.
- Position
- Below the diagonal: examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository uses a module listed above it, which is the healthy direction.
14→9 examples.architecture-review-demo.src.ordering.application.submit_order_use_case uses examples.architecture-review-demo.src.ordering.application.ports.order_notifier✕
- Connections
- 1 pair of types, where a type in examples.architecture-review-demo.src.ordering.application.submit_order_use_case uses a type in examples.architecture-review-demo.src.ordering.application.ports.order_notifier.
- The types involved
examples.architecture-review-demo.src.ordering.application.submit_order_use_case.SubmitOrderUseCase→examples.architecture-review-demo.src.ordering.application.ports.order_notifier.OrderNotifier
- Direction
- examples.architecture-review-demo.src.ordering.application.submit_order_use_case uses examples.architecture-review-demo.src.ordering.application.ports.order_notifier, so a change to examples.architecture-review-demo.src.ordering.application.ports.order_notifier can break examples.architecture-review-demo.src.ordering.application.submit_order_use_case, while a change to examples.architecture-review-demo.src.ordering.application.submit_order_use_case can't break examples.architecture-review-demo.src.ordering.application.ports.order_notifier.
- Position
- Below the diagonal: examples.architecture-review-demo.src.ordering.application.submit_order_use_case uses a module listed above it, which is the healthy direction.
14→13 examples.architecture-review-demo.src.ordering.application.submit_order_use_case uses examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository✕
- Connections
- 1 pair of types, where a type in examples.architecture-review-demo.src.ordering.application.submit_order_use_case uses a type in examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository.
- The types involved
examples.architecture-review-demo.src.ordering.application.submit_order_use_case.SubmitOrderUseCase→examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository.SqlOrderRepository
- Direction
- examples.architecture-review-demo.src.ordering.application.submit_order_use_case uses examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository, so a change to examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository can break examples.architecture-review-demo.src.ordering.application.submit_order_use_case, while a change to examples.architecture-review-demo.src.ordering.application.submit_order_use_case can't break examples.architecture-review-demo.src.ordering.adapters.secondary.sql_order_repository.
- Position
- Below the diagonal: examples.architecture-review-demo.src.ordering.application.submit_order_use_case uses a module listed above it, which is the healthy direction.
15→14 examples.architecture-review-demo.src.ordering.adapters.primary uses examples.architecture-review-demo.src.ordering.application.submit_order_use_case✕
- Connections
- 1 pair of types, where a type in examples.architecture-review-demo.src.ordering.adapters.primary uses a type in examples.architecture-review-demo.src.ordering.application.submit_order_use_case.
- The types involved
examples.architecture-review-demo.src.ordering.adapters.primary.http→examples.architecture-review-demo.src.ordering.application.submit_order_use_case.SubmitOrderUseCase
- Direction
- examples.architecture-review-demo.src.ordering.adapters.primary uses examples.architecture-review-demo.src.ordering.application.submit_order_use_case, so a change to examples.architecture-review-demo.src.ordering.application.submit_order_use_case can break examples.architecture-review-demo.src.ordering.adapters.primary, while a change to examples.architecture-review-demo.src.ordering.adapters.primary can't break examples.architecture-review-demo.src.ordering.application.submit_order_use_case.
- Position
- Below the diagonal: examples.architecture-review-demo.src.ordering.adapters.primary uses a module listed above it, which is the healthy direction.
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 |
|---|---|---|
| A05:2025 — Injection | 12 | High / Critical |
| A03:2025 — Software Supply Chain Failures | 7 | Medium |
| A08:2025 — Software or Data Integrity Failures | 1 | Medium |
Roadmap
Begin by introducing type safety to the frontend through a build-time typecheck step, prioritizing high-traffic modules to establish a typed foundation. Simultaneously, reduce code complexity by refactoring the identified long functions and high-cyclomatic bodies, starting with update.js and the updateCommand. Finally, ensure documentation accuracy by correcting README and architecture files to match the current repository structure, and implement static analysis in CI to prevent security regressions.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Adopt TypeScript for the frontend: add a typecheck step to the build, then either type-check the existing JavaScript in place (`checkJs`/JSDoc types) or convert the highest-traffic modules first — no file is typed today, so this is an adoption, not a clean-up. | +3.7 pts | Medium | Type Safety |
| Bring the 2 bodies over 60 down to 60 or less in Cognitive Complexity — start with update.updateCommand (cognitive 137), updateCommand (cognitive 125). | +1.8 pts | Medium | Cognitive Complexity |
| Resolve the 5 FunctionTooLong finding(s) in God Classes — start with update.js, change-planner.js, installation-inspector.js. | +2.9 pts | High | God Classes |
| Reconcile the README with reality: README.md names `AGENTS.md`, but no file or folder `AGENTS.md` exists; docs/architecture-profiles.md names `.tenets.json`, but no file or folder `.tenets.json` exists; docs/integrations.md names `.github/copilot-instructions.md`, but no file or folder `.github/copilot-instructions.md` exists; docs/integrations.md names `.github/prompts/tenets-review-architecture.prompt.md`, but no file or folder `.github/prompts/tenets-review-architecture.prompt.md` exists; docs/integrations.md names `.github/prompts/tenets-scaffold.prompt.md`, but no file or folder `.github/prompts/tenets-scaffold.prompt.md` exists. | +2.8 pts | Medium | Documentation accuracy |
| Bring the 6 bodies over 30 down to 30 or less in Cyclomatic Complexity — start with updateCommand (cyclomatic 82), update.updateCommand (cyclomatic 81), change-planner.captureFilesystemChanges (cyclomatic 46). | +2.8 pts | High | Cyclomatic Complexity |
| Add a SAST step to CI running what this repository's stack ships: bandit, `semgrep --config=p/python`, or CodeQL's python pack — so a security regression fails the build instead of landing. | +2.1 pts | Medium | Security & performance tooling |
| Grow the ADR log (currently 3) — reach 8 to raise the maturity tier; document significant decisions as they're made. | +2.0 pts | Medium | Architecture documentation |
| TypeScript/JavaScript: use the promise APIs (fs/promises, a promisified child_process.execFile, the async zlib/crypto functions) and await them instead of the *Sync variants. | +2.0 pts | Medium | Async & latency hygiene |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 2.7 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 4.4 | Mixed | Static Analysis (SAST): High: REDACTED |
| cli/src/commands/doctor.js | 7.0 | Near-clean | Cognitive Complexity: renderDoctorResult (cognitive 19) |
| cli/src/commands/init.js | 7.0 | Near-clean | Cyclomatic Complexity: initCommand (cyclomatic 29) |
| cli/src/services/change-planner.js | 7.1 | Near-clean | Cyclomatic Complexity: change-planner.captureFilesystemChanges (cyclomatic 46) |
| cli/src/services/installation-inspector.js | 7.1 | Near-clean | Cyclomatic Complexity: installation-inspector.inspectInstallation (cyclomatic 25) |
| cli/src/commands/uninstall.js | 7.1 | Near-clean | Cyclomatic Complexity: uninstall.uninstallCommand (cyclomatic 35) |
| cli/scripts/build-knowledge.js | 7.2 | Near-clean | Cyclomatic Complexity: build-knowledge.validateEntry (cyclomatic 30) |
| cli/src/commands/update.js | 7.4 | Near-clean | Cyclomatic Complexity: updateCommand (cyclomatic 82) |
| cli/src/services/content-fetcher.js | 8.5 | Near-clean | Cognitive Complexity: content-fetcher.loadBundled (cognitive 17) |
| cli/src/commands/explain.js | 8.5 | Near-clean | Cognitive Complexity: explain.explainCommand (cognitive 17) |
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. 60 of 65 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 5 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 — 65 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, 124 of 136 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
- D10 Test Quality — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The 86 test(s) behind this row are the ones the JavaScript/TypeScript census could read, and this repository also carries at least 1 test source file(s) (.py) that it cannot: it reads JavaScript/TypeScript test declarations off disk, so a JUnit/pytest-style suite is invisible to it. Skipped tests, zero-assertion tests and the other quality signals on this row are UNMEASURED in that suite — their absence from the counts above is a gap in this analyzer's language coverage, not a finding that those tests are sound.
- D12 Dependency 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 repository's dependency manifest (package.json) was found, but this pass cannot parse it for hygiene, so no package was assessed. Zero packages read is NOT a clean dependency tree, so this is NOT SCORED — a gap in the analyzer, not a verdict about this repository. This row is about dependency HYGIENE — outdated, deprecated or unmaintained direct dependencies; known CVEs in the same dependency graph are a separate question, reported under D30 wherever the manifest is OSV-readable. Your package.json IS read in this same run: the frontend dependency lens (R8) parses it for unused declarations, undeclared imports and misplaced production dependencies — what is missing here is the outdated/deprecated/unmaintained signal for those npm packages, not the manifest.
- D14 License Compliance — 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. Not scored — this repository's package manifest is not parsed for licence data yet. A gap in the analyzer's language coverage, NOT a finding that the repository's licenses are compliant (package.json), which this pass does not parse yet — so this dimension asserts nothing about this repository's licensing in either direction.
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-contributor repository — bus factor is not applicable (1 contributor(s) across 83 commit(s) sampled, automation and bot accounts excluded). Concentration needs a team to concentrate: with one contributor there is nobody to spread the knowledge to, so there is nothing here for the owner to act on.
- D22 Internal API Consistency — 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. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is an ADMISSION gap, not an environment fault: it declares a published package (cli/package.json), but no published-package marker D22 reads admitted any project here. D22 DOES collect the public API of every language in this tree, and admits a project only when its manifest makes that ecosystem's publication act in a form the marker recognises — so what is missing is not a collector but an admission rule for the publication act this repository makes, if it makes one. The remedy is a better discriminator for that marker — not a collector, and no change to the scan image can close it. The marker's rules are measured to refuse applications, so one refused repository is the rule working as calibrated; several are the evidence that it is too strict. For npm the surface is what a published package.json's entry points (exports, main, module, types) export, followed through the source; an entry that names build output the tree does not commit (dist/, build/) is not followed back to source, because only a tsconfig outDir/rootDir pair states that mapping and a bundler's input lives in executable configuration this engine does not evaluate.
- D27 Navigability — 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. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
- D30 Dependency Vulnerabilities — measured, with a gap in what it reached — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. The scanner produced no output at all, so no dependency was actually scanned. 1 of 2 declared ecosystem(s) (npm) WERE scanned and every vulnerability they reported is included in this result; REDACTED was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that REDACTED is free of known-vulnerable dependencies.
- D43 Malicious Dependencies — measured, with a gap in what it reached — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. The scanner produced no output at all, so no dependency was actually scanned. 1 of 2 declared ecosystem(s) (npm) WERE scanned and every vulnerability they reported is included in this result; REDACTED was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that REDACTED is free of known-vulnerable dependencies.
- D44 Platform End-of-Life — 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 dimension reads a project's own statement about the platform it runs on: a TargetFramework in a .NET project file, a .nvmrc or .python-version, a capped requires-python, a Rust toolchain file or Cargo.toml rust-version, a .go-version, .java-version, .ruby-version, .tool-versions or .sdkmanrc, a go.mod go directive, a Maven or Gradle Java level or toolchain, a Gemfile's ruby directive, a mix.exs elixir requirement, a rebar.config minimum_otp_vsn, a pubspec.yaml SDK constraint, a build.sbt scalaVersion, or a framework major pinned by a dependency constraint. This repository carries none of them, so nothing about its platform was established. That is a gap in this analyzer's coverage, NOT a finding that the platform is supported — a language whose runtime is declared elsewhere (Package.swift, a Dockerfile) is simply not read here yet.
- 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.
- P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
- 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. 27 JavaScript/TypeScript file(s) were read for weak hashes and ciphers, key material fixed in the source, disabled certificate validation and obsolete TLS versions, and none was found. The server controls this dimension also scores were not assessed, so no score is given.
- 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 reads C# syntax, and JavaScript/TypeScript, Go, PHP, Dart, Kotlin, Ruby, Scala, Java, Python and Rust source only, and no C# was loaded, and no named async function in this repository's JavaScript/TypeScript, nor any Go, PHP or Dart function or Kotlin suspend function, makes a request that can be cancelled (fetch, axios, ky, ofetch; net/http, net.Dial; amphp; Dio; Ktor, OkHttp), so there is nothing to judge, 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.
- 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 reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded, and this repository's JavaScript/TypeScript, Python and PHP log through no library that carries a message's values as fields (pino, winston, bunyan, tslog, LogTape, roarr; Python's logging, structlog; PHP's PSR-3 loggers), so its log calls cannot be judged, 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.
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.
- D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
- D8 Code Coverage: Coverage is measured by building and running the test suite inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
- 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.
- D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
- 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.
- 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.
- 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.
- D25 ADR Conformance: ADR conformance is the LLM-scored fraction of sampled code that follows recorded decisions — it checks the decisions that were written down and the slices it sampled, not unrecorded rules or the whole tree.
- 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.
- 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.
- 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
18 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was updateCommand at 82. A further 1 method(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 tenets.main at 16 — 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 methods was excluded, so the exclusion is disclosed nowhere in the file itself: cli/bin/tenets.js (tenets.main at 16). 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
- Bring the 6 bodies over 30 down to 30 or less in Cyclomatic Complexity — start with updateCommand (cyclomatic 82), update.updateCommand (cyclomatic 81), change-planner.captureFilesystemChanges (cyclomatic 46). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 6 together lifts Cyclomatic Complexity from 3.8 to about 6.6/10, projected with the scoring formula itself and assuming each lands exactly at 30; a cleaner split scores higher.
- 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
32 method(s) exceeded the cognitive complexity threshold of 15; the worst was update.updateCommand at 137.
What to do
- Bring the 2 bodies over 60 down to 60 or less in Cognitive Complexity — start with update.updateCommand (cognitive 137), updateCommand (cognitive 125). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 2 together lifts Cognitive Complexity from 2.0 to about 3.2/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.
- 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
6 over-large unit(s) detected — types, modules or files that carry too much.
What to do
- Resolve the 5 FunctionTooLong finding(s) in God Classes — start with update.js, change-planner.js, installation-inspector.js. — One of this dimension's main actionable groups (5 warning-level).
- Resolve the 1 FileTooLong finding(s) in God Classes — start with init.js. — 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.
D7 · Architectural Integrity
No mechanizable ADR was identified, so enforcement is not measured. Dependency cycles not checked (no project-reference graph; where this repository's language has an import-cycle lens, cycles are reported there).
What to do
- Enforce Architectural Integrity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D8 · Code Coverage
Line coverage 86.6% — 1 file(s) below 50%. Measured from the JavaScript/TypeScript suite (node:test via `npm install --ignore-scripts` (no lockfile) in cli/).
What to do
- Resolve the 1 Low coverage finding(s) in Code Coverage — start with doctor.js. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Code Coverage in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D9 · Test Distribution
89 test methods: 89 unit, 0 integration, 0 BDD, 0 e2e. The JavaScript/TypeScript suite contributes 86 `it`/`test` case(s) across 13 test file(s) declaring at least one; its tier split is read from package names and paths only. The Python suite contributes 3 test function(s) across 1 file(s) declaring at least one — every `def test…` in a file pytest or unittest would collect, which is those frameworks' own definition of a case; a parametrize table counts once, so this is a floor. Its tier split is read from file names and paths only.
D10 · Test Quality
0 skipped, 0 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 86 tests. Measured on the JavaScript/TypeScript suite only — at least 1 test source file(s) (.py) went unread, so its test quality is unmeasured and is not in these counts.
D11 · Test Reliability
0 flaky across 1 measured tier(s). JavaScript/TypeScript (node:test via `npm install --ignore-scripts` (no lockfile) in cli/ (86 tests)): measured (0 flaky).
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D15 · Churn × Complexity Hotspots
Top hotspots: cli/src/commands/update.js (7×81=567); cli/src/commands/init.js (10×28=280); cli/bin/tenets.js (7×16=112)
What to do
- Resolve the 4 Hotspot finding(s) in Churn × Complexity Hotspots — start with update.js, init.js, tenets.js. — One of this dimension's main actionable groups (4 warning-level).
D17 · Explicit Debt
0 deducted task-comment markers across 102 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.
D19 · Documentation Quality
The repository's root README and three architecture/Docs subdirectories form a complete documentation set. The root README is an overview plus a Quick Start for the project as a whole (npx tenets init), while the architecture-profiles.md, integrations.md, and knowledge-authoring.md documents are focused on Tenets' policy model, profile selection, installed agent integrations, and rule-contract metadata. All four outlined categories (overview, installation/usage, contributing, licence) appear in the root README, which is judged there; the architecture docs are internal-focused but well-structured for an audience that reads them directly. This is a top-tier architecture and design documentation set for the Tenets framework, consisting of 3 READMEs plus 30 architecture/decision-record markdown files (total 33 documents). The primary content is a tenets-style rulebook with each entry having a Rule, Rationale, Incorrect, Correct, Remediation, Review check, and an outline; every visible section exists in the document body. There are no READMEs for the project's own deploy tier or tool directory (the 3 READMEs are per-directory), so the only missing element is the repository-level overview/installation/usage/contribution guidance, which would appear in the root README rather than these focused documents. This architecture and design documentation set is exemplary. It contains three README-style primer documents (01-hexagonal-primer.md, 02-components.md, 03-ports.md) plus thirty architecture/decision rules in knowledge/*, all of which are well organized by scope into numbered steps with concrete review checks. The primer gives an overview and a use-case-driven description of the four main components (domain, application, ports, adapters), while the rule set is a full architecture-decisions document that is itself well structured for readers to find any section they need.
D20 · ADR Quality
Evaluated 3 ADR(s) individually; mean quality 8.7/10 (consistently complete and clear). 0 flagged with a specific gap.
What to do
- Improve ADR Quality — currently 8.7/10. — Evaluated 3 ADR(s) individually; mean quality 8.7/10 (consistently complete and clear). 0 flagged with a specific gap.
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D25 · ADR Conformance
1 conform / 0 violate across 3 ADRs.
D26 · Project Cohesion
0 of 1 build units (npm) 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)
12 finding(s): 0 critical, 11 high, 1 medium, 0 low. 10 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. Separately, one or more rules could not re-parse an embedded snippet in 1 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 10 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 (10 issue-level, 0 of them charged here).
D30 · Dependency Vulnerabilities
No known-vulnerable dependencies in the 1 ecosystem(s) that were scanned (npm). Partial dependency scan: 1 of 2 declared ecosystem(s) were scanned (npm), and the findings above are real and complete for them. REDACTED was not scanned (REDACTED: the scanner produced no output at all, so no dependency was actually scanned), so this is not the whole dependency surface and the result is reported at reduced confidence.
D34 · Knowledge Freshness
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 15 of the 24 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
D35 · Change Coupling
No strong hidden change-coupling between production files.
D36 · Supply-chain Provenance & Signing
0/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 recommendation-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 known-vulnerable dependencies in the 1 ecosystem(s) that were scanned (npm). Partial dependency scan: 1 of 2 declared ecosystem(s) were scanned (npm), and the findings above are real and complete for them. REDACTED was not scanned (REDACTED: the scanner produced no output at all, so no dependency was actually scanned), so this is not the whole dependency surface and the result is reported at reduced confidence.
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
AX5 · Architecture & structure
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
- `updateSpeckitPresets` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — cli/src/commands/update.js:96
What to do
- Remove the dead code that still moves this score: delete dead if(false) branches and either do the real async work or drop the async keyword from fake-async functions.
M1 · Documentation (README)
What to do
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying 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 1 of 2 project(s) that lack one — worth up to 1 pts.
M2 · Architecture documentation
What to do
- Grow the ADR log (currently 3) — reach 8 to raise the maturity tier; document significant decisions as they're made.
M3 · Folder & project structure
M4 · Documentation accuracy
- README.md names `AGENTS.md`, but no file or folder `AGENTS.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — README.md:164
- docs/architecture-profiles.md names `.tenets.json`, but no file or folder `.tenets.json` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/architecture-profiles.md:27
- docs/integrations.md names `.github/copilot-instructions.md`, but no file or folder `.github/copilot-instructions.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/integrations.md:55
- docs/integrations.md names `.github/prompts/tenets-review-architecture.prompt.md`, but no file or folder `.github/prompts/tenets-review-architecture.prompt.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/integrations.md:55
- docs/integrations.md names `.github/prompts/tenets-scaffold.prompt.md`, but no file or folder `.github/prompts/tenets-scaffold.prompt.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/integrations.md:55
- docs/integrations.md names `AGENTS.md`, but no file or folder `AGENTS.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/integrations.md:56
What to do
- Reconcile the README with reality: README.md names `AGENTS.md`, but no file or folder `AGENTS.md` exists; docs/architecture-profiles.md names `.tenets.json`, but no file or folder `.tenets.json` exists; docs/integrations.md names `.github/copilot-instructions.md`, but no file or folder `.github/copilot-instructions.md` exists; docs/integrations.md names `.github/prompts/tenets-review-architecture.prompt.md`, but no file or folder `.github/prompts/tenets-review-architecture.prompt.md` exists; docs/integrations.md names `.github/prompts/tenets-scaffold.prompt.md`, but no file or folder `.github/prompts/tenets-scaffold.prompt.md` exists.
P1 · CI/CD gates
- A CI pipeline exists but no build step was matched — changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves.
What to do
- Add an explicit build step to your CI pipeline — your stack's own build command, or, if the pipeline delegates to a task runner, a build task that runner executes in CI — so every change is built before merge.
P2 · Observability
P3 · Security & performance tooling
- No static application security testing detected. For this repository's stack, add bandit, `semgrep --config=p/python`, or CodeQL's python pack as a CI step. What was searched, so you can tell an absence from a miss: the 3020 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
- Add a SAST step to CI running what this repository's stack ships: bandit, `semgrep --config=p/python`, or CodeQL's python pack — so a security regression fails the build instead of landing.
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
P6 · Release Hygiene
PF3 · Async & latency hygiene
- `fs.existsSync` in `initSpeckit` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/commands/init.js:219
- `execSync` in `initSpeckit` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/commands/init.js:237
- `fs.existsSync` in `callback to ownedPaths.filter` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/commands/init.js:530
- `fs.existsSync` in `initSingleFile` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×3) — cli/src/commands/init.js:629, cli/src/commands/init.js:643, cli/src/commands/init.js:656
- `fs.existsSync` in `uninstallCommand` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/commands/uninstall.js:327
- `fs.unlinkSync` in `uninstallCommand` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/commands/uninstall.js:328
- `fs.existsSync` in `updateSpeckitPresets` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/commands/update.js:102
- `execSync` in `updateSpeckitPresets` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/commands/update.js:107
- `original.existsSync` in `initialState` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/services/change-planner.js:72
- `original.statSync` in `initialState` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/services/change-planner.js:75
- `original.readFileSync` in `initialState` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/services/change-planner.js:79
- `original.existsSync` in `virtualExists` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/services/change-planner.js:98
- `original.readFileSync` in `virtualRead` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/services/change-planner.js:110
- `fs.writeFileSync` in `copyFileSync` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/services/change-planner.js:124
- `fs.unlinkSync` in `rmSync` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×2) — cli/src/services/change-planner.js:149, cli/src/services/change-planner.js:176
- `original.existsSync` in `rmSync` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/services/change-planner.js:157
- `original.statSync` in `rmSync` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/services/change-planner.js:161
- `original.readdirSync` in `rmSync` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/services/change-planner.js:163
- `original.existsSync` in `readdirSync` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/services/change-planner.js:183
- `original.readdirSync` in `readdirSync` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/services/change-planner.js:184
- `original.existsSync` in `callback to names.map` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/services/change-planner.js:202
- `original.statSync` in `callback to names.map` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/services/change-planner.js:203
- `fs.existsSync` in `inspectInstallation` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — cli/src/services/installation-inspector.js:382
What to do
- TypeScript/JavaScript: use the promise APIs (fs/promises, a promisified child_process.execFile, the async zlib/crypto functions) and await them instead of the *Sync variants.
R1 · Type Safety
- 0 typed · 39 plain JS — the untyped files are cli/scripts/build-knowledge.js, cli/scripts/bundle-content.js, cli/src/commands/doctor.js, cli/src/commands/explain.js, cli/src/commands/init.js, cli/src/commands/uninstall.js (+33 more).
What to do
- Adopt TypeScript for the frontend: add a typecheck step to the build, then either type-check the existing JavaScript in place (`checkJs`/JSDoc types) or convert the highest-traffic modules first — no file is typed today, so this is an adoption, not a clean-up.
R10 · Code Duplication
- cli/src/services/review-command-writer.js:106 · cli/src/services/scaffold-command-writer.js:66 — the two spans are one implementation copied and then locally edited — 207 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — cli/src/services/review-command-writer.js:106
- cli/src/commands/init.js:418 · cli/src/commands/init.js:456 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — cli/src/commands/init.js:418
- cli/src/commands/init.js:161 · cli/src/commands/update.js:81 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — cli/src/commands/init.js:161
- cli/scripts/build-knowledge.js:259 · cli/src/services/content-fetcher.js:24 — the two spans are one implementation copied and then locally edited — 85 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — cli/scripts/build-knowledge.js:259
- cli/src/commands/init.js:274 · cli/src/commands/update.js:125 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — cli/src/commands/init.js:274
- cli/src/commands/init.js:584 · cli/src/commands/update.js:449 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — cli/src/commands/init.js:584
- cli/src/services/repository-detector.js:118 · cli/src/services/repository-detector.js:273 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — cli/src/services/repository-detector.js:118
- cli/src/commands/uninstall.js:110 · cli/src/commands/uninstall.js:123 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — cli/src/commands/uninstall.js:110
- cli/src/services/content-fetcher.js:219 · cli/src/services/content-fetcher.js:230 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — cli/src/services/content-fetcher.js:219
- cli/src/commands/doctor.js:19 · cli/src/commands/doctor.js:28 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — cli/src/commands/doctor.js:19
- cli/src/commands/init.js:473 · cli/src/commands/init.js:507 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — cli/src/commands/init.js:473
- cli/src/services/augment-writer.js:37 · cli/src/services/content-fetcher.js:145 — the two spans are one implementation copied and then locally edited — 50 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — cli/src/services/augment-writer.js:37
- cli/src/ui/logger.js:22 · cli/src/ui/logger.js:30 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — cli/src/ui/logger.js:22
- cli/scripts/bundle-content.js:77 · cli/src/commands/init.js:165 · cli/src/commands/update.js:85 — the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — cli/scripts/bundle-content.js:77
What to do
- Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R2 · Cyclomatic Complexity
- updateCommand has cyclomatic complexity 82 and cognitive complexity 125; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/src/commands/update.js:125
- uninstallCommand has cyclomatic complexity 35 and cognitive complexity 50; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/src/commands/uninstall.js:239
- validateEntry has cyclomatic complexity 30 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/scripts/build-knowledge.js:121
- initCommand has cyclomatic complexity 29 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/src/commands/init.js:274
- inspectInstallation has cyclomatic complexity 25 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/src/services/installation-inspector.js:264
- inspectConfiguredTool has cyclomatic complexity 23 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/src/services/installation-inspector.js:128
- formatContentDiff has cyclomatic complexity 21 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/src/services/change-planner.js:274
- initSingleFile has cyclomatic complexity 20 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/src/commands/init.js:616
- validateCatalog has cyclomatic complexity 17 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/scripts/build-knowledge.js:198
- captureFilesystemChanges has cyclomatic complexity 17 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/src/services/change-planner.js:35
- recommendNextAction has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/src/services/next-action-recommender.js:1
- removeTool has cyclomatic complexity 14 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/src/commands/uninstall.js:102
- buildKnowledge has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/scripts/build-knowledge.js:300
- initClaudeMultiOutput has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/src/commands/init.js:524
- renderDoctorResult has cyclomatic complexity 12 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/src/commands/doctor.js:6
- explainCommand has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/src/commands/explain.js:13
- toolPaths has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — cli/src/services/installation-inspector.js:61
What to do
- Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files
- cli/src/commands/init.js has 632 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — cli/src/commands/init.js:1
- cli/src/commands/update.js has 426 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — cli/src/commands/update.js:1
- cli/src/services/installation-inspector.js has 405 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — cli/src/services/installation-inspector.js:1
What to do
- Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage
- No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. — cli/scripts/bundle-content.js:1
What to do
- Add tests that import the unreached modules (directly or through their public entry).
R6 · Tooling
- test ✓ · lint ✗ · typecheck ✗ — read from this repository's package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.
What to do
- Add eslint and type checking (adopt TypeScript, or type-check the existing JavaScript with `checkJs`) as package.json scripts and run them in CI.
R7 · Dead Code
R9 · Circular Imports
X1 · Async correctness
X12 · Unreachable branch
X13 · Undrained process stream
X14 · Bypassable address classification
X15 · Unvalidated length from an untrusted reader
X16 · Unfloored truncation loop
X17 · Uncapped recursion over a caller-supplied document
X18 · Disposal-pattern correctness
X19 · Unrestored process-global state
X21 · Side-effecting pattern guard
X22 · Contradicted release guard
X23 · Unguarded diagnostic materialisation
X24 · Document value interpolated into markup unescaped
X25 · Inert configuration knob
X28 · Index access outside its own emptiness guard
X29 · Per-element action decided by a fixed element
X3 · Exception handling
- An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×2) — cli/src/commands/init.js:184, cli/src/services/installation-inspector.js:79
What to do
- Swallowed exception (empty catch)
X30 · Support guard that admits what it rejects
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 44% | Weak — gated by D1, D2, R1 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 95% | Exemplary | Strongest area. |
| Maturity | 48% | Adequate — gated by M4 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 50% | Adequate — gated by R6, P3 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 70% | Adequate — gated by D36 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 60% | Adequate | Acceptable, with room to improve. |
Unscored — 2 check(s) recorded observations but carry no score
- X10 Duplicated predicate — 2 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
- X7 Silent fallback defaults — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 1 control(s) we could not find positive evidence for
- P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 62 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 applicable: this repository's JavaScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; this repository's Python imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
- AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No function in this Python code is served by a threaded web framework (a Flask, Bottle or FastAPI route, a Django or Pyramid view), so no module is shared between request threads. TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
- 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
- AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
- AXB1 Runtime evidence locked — no reproducible boot — This repository has nothing the runtime tiers could boot or serve — no markup, no UI framework or web-server dependency, no UI component source, no native UI project and no API definition — nothing here is a surface to boot — so runtime a11y/egress/header evidence has no subject here. Not applicable: this is neither a gap in the scan nor a finding about your code.
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no data at rest for these controls to protect. If it does persist personal data (through a hosted backend configured outside this repository, for instance), the controls belong to wherever that data is stored.
- C2 Access Controls — No access-control surface detected in the analyzed source — this repository stands up no server (no Express, Fastify, Koa, Hono, NestJS or similar app, no Next.js/SvelteKit/Nuxt server route, no edge function), creates no Supabase tables and talks to no hosted backend. Access control is therefore N/A here — a browser application or library is authorized by the server it calls, not by itself; a client-side route guard hides a page and authorizes nothing. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
- C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a hosted backend configured outside this repository, for instance), the trail belongs to wherever that data is stored.
- C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data whose lifetime a retention limit would bound. If it does (through a hosted backend configured outside this repository, for instance), the limit belongs wherever that data is stored.
- C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data for a data subject to erase, export or consent over. If it does (through a hosted backend configured outside this repository, for instance), the rights are served wherever that data is stored.
- D12 Dependency Hygiene — Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
- D14 License Compliance — Package manifest not parsed for licence data — analyzer language-coverage gap
- D16 Bus Factor — single-contributor repository — bus factor is not applicable
- 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.
- D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
- 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, nor 2+ projects each declaring an entity of their own. 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.
- D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.js), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- 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.
- D4 Code Duplication — This repository's production source (.js) is not read by D4's token comparison, which compares .NET source: duplication in it is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream. Not scored here — read the R10 card for this repository's duplication.
- 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.
- D44 Platform End-of-Life — Platform end-of-life not assessed — this repository declares no platform this pass reads
- D5 Coupling — Not applicable — this npm build ships 1 production module(s), so there is no coupling BETWEEN modules to measure. (Its test and non-production modules are not part of the shipped graph.)
- D6 Cohesion (LCOM4) — Cohesion (LCOM4) was not measured: of the 1 type(s) found, none both holds instance state and has two or more methods whose shared use of it could be read (1 with fewer than two methods), so LCOM4 is undefined for every type in this repository. Not scored — the metric does not apply here, and this is not a finding about this repository.
- DM1 Domain Modelling — applicable but not scored (4 signals for this style, 3 needed — the count is met but a required primary signal is absent): 1 aggregate root(s) (types guarding their own state behind command methods — this language has no AggregateRoot base to inherit); 1 strongly-typed id(s); a Domain/Aggregates/ValueObjects layer; 2 repository port(s) loading or saving an aggregate/entity; a top-level examples/ tree: a library or framework whose examples are its consumers — these types are building blocks, not a domain
- ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
- ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- 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 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 — coverage data present for 39 file(s), but no domain-layer files were identified: no covered file's path contains any of the markers this check keys on (/domain/, /aggregates/, /valueobjects/, /domainmodel/, .domain/, /entities/), which are matched case-insensitively anywhere in the path. With no domain partition there is nothing to compare the web/controller layer against — if this repository keeps its business rules under a folder named none of those, that naming is what the check cannot see, not the domain logic.
- PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for tinybench, mitata, benchmark.js, benny or vitest `bench(...)` calls in files that import them (or `*.bench.*` files), or one of those in a package.json, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
- PF2 Allocation hygiene — Not applicable: TypeScript/JavaScript runs on a garbage-collected runtime that gives a program no allocation-control idiom to choose on a hot path — no pools, stack allocation or value types — so allocation awareness is not something this code can be rated on.
- R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
- R5 Dependency Freshness — no package-lock.json — dependency freshness not measured (would require an npm lockfile); JS/npm CVEs are scored in D30 (Dependency Vulnerabilities), which answers every ecosystem
- R8 Dependency Hygiene — Not measured — no package.json declares any dependency, so there is nothing to check imports against (imports may resolve through a host runtime rather than node).
- S1 Web-Security Posture — Not assessed: 27 JavaScript/TypeScript file(s) were read for weak hashes and ciphers, key material fixed in the source, disabled TLS certificate validation and obsolete TLS versions, and none was found. That half of the dimension is clean, but it is not scored on its own: a C# repository with the same clean reading is scored on its server controls as well, or is N/A for having no web surface, and neither can be decided here. The server controls — HTTPS enforcement, HSTS, cookie flags, input validation — are NOT assessed for JavaScript/TypeScript: each is scored as an absence, an absence is only reportable over the production HTTP server, and in this ecosystem the file that opens the port is build output or a framework launcher rather than a file in the source tree. Their absence here is not a finding about this repository.
- 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 asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X26 Unsynchronised callback handoff — Not applicable: this check looks for a collection written by a callback on one thread while the body waiting on it touches it on another, and in this repository's languages no collection is reachable from two threads at once. TypeScript/JavaScript runs every callback on the one thread that owns its objects: a callback runs only when the body waiting on it has yielded, never alongside it, and a worker thread receives a COPY of what it is sent. A SharedArrayBuffer carries raw bytes, never an Array, Map or Set, so no collection is reachable from two threads at once. Not a gap in the analyzer and not a finding about your code.
- X27 Collection changed while being enumerated — Not applicable: this check looks for a loop whose body adds to or removes from the very collection the loop is walking, invalidating the enumerator it holds, and in this repository's languages that cannot happen. JavaScript and TypeScript have no iterator that a change can invalidate: an `Array` is walked by index against its live length, and a `Map` or `Set` by the ECMAScript specification's live entry list, so a body that adds to, removes from or empties what it walks raises nothing — every loop form (`for…of`, `for…in`, `forEach`, `map`, `filter`, `reduce`, `entries()`) on every built-in collection (`Array`, `Map`, `Set`, plain objects, `URLSearchParams`, `Headers`, `FormData`) runs to completion. Such a loop can still skip an element or never end, which is a different defect and not the one this check asks about. Not a gap in the analyzer and not a finding about your code.
- X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and 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 applicable: this check asks whether the null-typed discipline a language offers is switched on, and how much of that the assertion operator takes back, and in this repository's languages there is no such switch and no such operator. Plain JavaScript carries no type annotations and commits no tsconfig, so it states no null-typed discipline for this check to grade: there is nothing here that switches null checking on or off, and TypeScript (or `// @ts-check`) is how a repository acquires one — advice, not a defect this card measures. Not a gap in the analyzer and not a finding about your code.
- X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- 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 — 11 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
Serious — 107 finding(s)
- Sync-over-async blocking cli/src/commands/init.js:219
- Sync-over-async blocking cli/src/commands/init.js:237
- Sync-over-async blocking cli/src/commands/init.js:530
- Sync-over-async blocking cli/src/commands/init.js:629
- Sync-over-async blocking cli/src/commands/init.js:643
- Sync-over-async blocking cli/src/commands/init.js:656
- Sync-over-async blocking cli/src/commands/uninstall.js:327
- Sync-over-async blocking cli/src/commands/uninstall.js:328
- Sync-over-async blocking cli/src/commands/update.js:102
- Sync-over-async blocking cli/src/commands/update.js:107
- Sync-over-async blocking cli/src/services/change-planner.js:72
- Sync-over-async blocking cli/src/services/change-planner.js:75
- Sync-over-async blocking cli/src/services/change-planner.js:79
- Sync-over-async blocking cli/src/services/change-planner.js:98
- Sync-over-async blocking cli/src/services/change-planner.js:110
- Sync-over-async blocking cli/src/services/change-planner.js:124
- Sync-over-async blocking cli/src/services/change-planner.js:149
- Sync-over-async blocking cli/src/services/change-planner.js:157
- Sync-over-async blocking cli/src/services/change-planner.js:161
- Sync-over-async blocking cli/src/services/change-planner.js:163
- Sync-over-async blocking cli/src/services/change-planner.js:176
- Sync-over-async blocking cli/src/services/change-planner.js:183
- Sync-over-async blocking cli/src/services/change-planner.js:184
- Sync-over-async blocking cli/src/services/change-planner.js:202
- Sync-over-async blocking cli/src/services/change-planner.js:203
- FunctionTooLong: update.updateCommand cli/src/commands/update.js:125
- FunctionTooLong: change-planner.captureFilesystemChanges cli/src/services/change-planner.js:35
- FunctionTooLong: installation-inspector.inspectInstallation cli/src/services/installation-inspector.js:264
- FunctionTooLong: init.initCommand cli/src/commands/init.js:274
- FunctionTooLong: uninstall.uninstallCommand cli/src/commands/uninstall.js:239
- Hotspot: cli/src/commands/update.js cli/src/commands/update.js:125
- Hotspot: cli/src/commands/init.js cli/src/commands/init.js:274
- Hotspot: cli/bin/tenets.js cli/bin/tenets.js:12
- Hotspot: cli/src/services/installation-inspector.js cli/src/services/installation-inspector.js:264
- Duplicated block (8 lines × 2 locations) cli/src/commands/doctor.js:19
- Duplicated block (8 lines × 2 locations) cli/src/commands/init.js:473
- Duplicated block (8 lines × 2 locations) cli/src/ui/logger.js:22
- Duplicated block (11 lines × 2 locations) cli/src/commands/init.js:584
- Duplicated block (11 lines × 2 locations) cli/src/services/repository-detector.js:118
- Duplicated block (10 lines × 2 locations) cli/src/commands/uninstall.js:110
- Duplicated block (10 lines × 2 locations) cli/src/services/content-fetcher.js:219
- Swallowed exception (empty catch) cli/src/commands/init.js:184
- Swallowed exception (empty catch) cli/src/services/installation-inspector.js:79
- updateCommand (cyclomatic 82) cli/src/commands/update.js:125
- change-planner.captureFilesystemChanges (cyclomatic 46) cli/src/services/change-planner.js:35
- uninstall.uninstallCommand (cyclomatic 35) cli/src/commands/uninstall.js:239
- build-knowledge.validateEntry (cyclomatic 30) cli/scripts/build-knowledge.js:121
- initCommand (cyclomatic 29) cli/src/commands/init.js:274
- installation-inspector.inspectInstallation (cyclomatic 25) cli/src/services/installation-inspector.js:264
- installation-inspector.inspectConfiguredTool (cyclomatic 24) cli/src/services/installation-inspector.js:128
- change-planner.formatContentDiff (cyclomatic 21) cli/src/services/change-planner.js:274
- init.initSingleFile (cyclomatic 20) cli/src/commands/init.js:616
- build-knowledge.validateCatalog (cyclomatic 17) cli/scripts/build-knowledge.js:198
- update.updateCommand (cognitive 137) cli/src/commands/update.js:125
- uninstallCommand (cognitive 50) cli/src/commands/uninstall.js:239
- change-planner.captureFilesystemChanges (cognitive 44) cli/src/services/change-planner.js:35
- build-knowledge.validateEntry (cognitive 38) cli/scripts/build-knowledge.js:121
- initCommand (cognitive 36) cli/src/commands/init.js:274
- installation-inspector.inspectInstallation (cognitive 30) cli/src/services/installation-inspector.js:264
- installation-inspector.inspectConfiguredTool (cognitive 29) cli/src/services/installation-inspector.js:128
- build-knowledge.validateCatalog (cognitive 29) cli/scripts/build-knowledge.js:198
- initSingleFile (cognitive 21) cli/src/commands/init.js:616
- uninstall.removeTool (cognitive 19) cli/src/commands/uninstall.js:102
- uninstall.removeSpeckitPreset (cognitive 19) cli/src/commands/uninstall.js:173
- renderDoctorResult (cognitive 19) cli/src/commands/doctor.js:6
- change-planner.formatContentDiff (cognitive 18) cli/src/services/change-planner.js:274
- init.verifyInstalledSetup (cognitive 18) cli/src/commands/init.js:80
- content-fetcher.loadBundled (cognitive 17) cli/src/services/content-fetcher.js:48
- explain.explainCommand (cognitive 17) cli/src/commands/explain.js:13
- installation-inspector.toolPaths (cognitive 16) cli/src/services/installation-inspector.js:61
- captureFilesystemChanges::rmSync (cognitive 16) cli/src/services/change-planner.js:146
- REDACTED
- FileTooLong: commands/init.js cli/src/commands/init.js
- REDACTED
- Low coverage: cli/src/commands/doctor.js cli/src/commands/doctor.js:1
- Fake-async — async method never awaits cli/src/commands/update.js:96
- Type Safety
- Duplicated block with local edits (45 matched lines × 2 locations) cli/src/services/review-command-writer.js:106
- Duplicated block (22 lines × 2 locations) cli/src/commands/init.js:418
- Duplicated block (14 lines × 2 locations) cli/src/commands/init.js:161
- Duplicated block with local edits (13 matched lines × 2 locations) cli/scripts/build-knowledge.js:259
- Duplicated block (12 lines × 2 locations) cli/src/commands/init.js:274
- Duplicated block with local edits (8 matched lines × 2 locations) cli/src/services/augment-writer.js:37
- Duplicated block (7 lines × 3 locations) cli/scripts/bundle-content.js:77
- Complex function updateCommand (cyclomatic 82, cognitive 125) cli/src/commands/update.js:125
- Complex function uninstallCommand (cyclomatic 35, cognitive 50) cli/src/commands/uninstall.js:239
- Complex function validateEntry (cyclomatic 30, cognitive 38) cli/scripts/build-knowledge.js:121
- Complex function initCommand (cyclomatic 29, cognitive 36) cli/src/commands/init.js:274
- Complex function inspectInstallation (cyclomatic 25, cognitive 29) cli/src/services/installation-inspector.js:264
- Complex function inspectConfiguredTool (cyclomatic 23, cognitive 28) cli/src/services/installation-inspector.js:128
- Complex function formatContentDiff (cyclomatic 21, cognitive 18) cli/src/services/change-planner.js:274
- Complex function initSingleFile (cyclomatic 20, cognitive 21) cli/src/commands/init.js:616
- Complex function validateCatalog (cyclomatic 17, cognitive 29) cli/scripts/build-knowledge.js:198
- Complex function captureFilesystemChanges (cyclomatic 17, cognitive 23) cli/src/services/change-planner.js:35
- Complex function recommendNextAction (cyclomatic 15, cognitive 12) cli/src/services/next-action-recommender.js:1
- Complex function removeTool (cyclomatic 14, cognitive 19) cli/src/commands/uninstall.js:102
- Complex function buildKnowledge (cyclomatic 14, cognitive 15) cli/scripts/build-knowledge.js:300
- Complex function initClaudeMultiOutput (cyclomatic 13, cognitive 14) cli/src/commands/init.js:524
- Complex function renderDoctorResult (cyclomatic 12, cognitive 19) cli/src/commands/doctor.js:6
- Complex function explainCommand (cyclomatic 12, cognitive 16) cli/src/commands/explain.js:13
- Complex function toolPaths (cyclomatic 11, cognitive 13) cli/src/services/installation-inspector.js:61
- cli/src/commands/init.js: 632 lines of code cli/src/commands/init.js:1
- cli/src/commands/update.js: 426 lines of code cli/src/commands/update.js:1
- cli/src/services/installation-inspector.js: 405 lines of code cli/src/services/installation-inspector.js:1
- No test reaches this file cli/scripts/bundle-content.js:1
- No lint or typecheck script
Minor — 18 finding(s)
- README/code drift README.md:164
- README/code drift docs/architecture-profiles.md:27
- README/code drift docs/integrations.md:55
- README/code drift docs/integrations.md:55
- README/code drift docs/integrations.md:55
- README/code drift docs/integrations.md:56
- Duplicated predicate cli/src/commands/init.js:234
- Duplicated predicate cli/src/services/review-command-writer.js:148
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- CI build step not evidenced
- No SAST
- Silent fallback default in catch cli/src/services/repository-detector.js:102
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-803a0de0c4c141978470db636c0a2af6/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-803a0de0c4c141978470db636c0a2af6/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 . | 12 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | osv-scanner | — | osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . | 0 | — |
| 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 | 0 | 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 | osv-scanner | — | osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . | 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 |