Public report β€” asciinema-server, published 5 Aug 2026. Concrete security findings (CVE IDs, secret matches, dependency versions) are hidden in this version; ask the repo owner for the full report.
Watchdog 05-08-2026 @ 02:10 UTC Public
Code Health Audit

Asciinema/asciinema-Server

41% Weak
CriticalWeakAdequateStrongExemplary
middle

Small Β· 17,188 LoC Β· rebuild ~0.2 person-years Β· weakest lens: Readiness (25%)

Grounded in facts. Every number here is computed, not narrated β€” reproducible, tool-backed, and traceable to a line of code. How to trust this β–Έ

35/37dimensions tool-verifieddeterministic Β· confidence 1.0 Β· 2 LLM-assisted, advisory
71findings with an exact file:lineof 81 β€” the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
37/106dimensions across the health lenses17188 LoC β€” wide & deep

Executive summary

Read through the Production lens β€” the standard calibration. *Green* means good enough to run in production. The score is absolute and comparable across repos.

asciinema/asciinema-server carries serious gaps (41%). Several issues below can materially affect correctness, security, or the cost of changing it β€” and propagate to everything that depends on it.

It is strongest in Architecture (96%) β€” the structure is clean and changes stay contained.

The area that most needs attention is Readiness (25%) β€” releases are harder to depend on β€” versioning, release notes and dependency hygiene are thin, so consumers can't easily tell what changed or trust an upgrade. Maturity (47%) is the next concern β€” onboarding is slow and knowledge is concentrated in too few people (a bus-factor risk).

Leadership focus, highest impact first: SAST step to CI running what this repository's stack ships (Security & performance tooling); Codify backups + geo-recovery in IaC and document RTO/RPO… (DR & Backup); tests that import the unreached modules (directly or through… (Test Coverage).

For scale: Small (~17,188 production lines); rebuilding it from scratch would take roughly ~0.2 person-years (~1 engineer). Approximate, ±~30%.

It builds on a genuinely strong Architecture foundation (96%); the priorities above are the highest-leverage way to bring the rest up to that level.

How the score is built β€” each lens's share of the headline Width is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
Readiness 25% Β· 47% weightMaturity 47% Β· 26% weightSecurity 55% Β· 14% weightCode Health 63% Β· 8% weightArchitecture 96% Β· 4% weight

Raise Readiness 25 β†’ 70 (the Healthy floor) β‡’ headline 41 β†’ ~55.

Code composition β€” where the lines go
Tests 100%
New since the last scan (24+)

24 finding(s) are new versus the previous scan (2026-07-29) β€” surfaced by this scheduled scan itself, no pull request required.

  • D4 Β· Duplicated block (15 lines × 2) lib/asciinema/recordings.ex
  • D4 Β· Duplicated block (12 lines × 2) lib/asciinema/asciicast/v2.ex
  • D4 Β· Duplicated block (12 lines × 2) lib/asciinema/asciicast/v2.ex
  • D4 Β· Duplicated block (12 lines × 2) lib/asciinema_web/controllers/email_controller.ex
  • D4 Β· Duplicated block (11 lines × 2) lib/asciinema_web/controllers/recording_controller.ex
  • D4 Β· Duplicated block (9 lines × 2) lib/asciinema/accounts.ex
  • D4 Β· Duplicated block (9 lines × 2) lib/asciinema_admin/controllers/recording_controller.ex
  • D4 Β· Duplicated block (8 lines × 2) lib/asciinema/asciicast/v2.ex
  • D4 Β· Duplicated block (8 lines × 2) lib/asciinema/recordings.ex
  • D4 Β· Duplicated block (8 lines × 2) lib/asciinema/recordings.ex
  • D4 Β· Duplicated block (7 lines × 2) lib/asciinema/asciicast/v2.ex
  • D4 Β· Duplicated block (7 lines × 2) lib/asciinema_admin/query_ui.ex
  • D4 Β· Duplicated block (5 lines × 2) lib/asciinema/asciicast/v2.ex
  • D4 Β· Duplicated block (5 lines × 2) lib/asciinema/streaming/parser/asciicast_v2.ex
  • D31 Β· Medium IaC: CKV_DOCKER_3 Dockerfile
  • D38 Β· High CVE: [GHSA redacted] mix.lock
  • D38 Β· High CVE: [GHSA redacted] mix.lock
  • D38 Β· High CVE: [GHSA redacted] mix.lock
  • D38 Β· High CVE: [GHSA redacted] mix.lock
  • D38 Β· High CVE: [GHSA redacted] mix.lock
  • D38 Β· Medium CVE: EEF-[CVE redacted] mix.lock
  • D38 Β· Medium CVE: EEF-[CVE redacted] mix.lock
  • D38 Β· Medium CVE: EEF-[CVE redacted] mix.lock
  • R4 Β· Test Coverage

A full-fidelity diff against the previous run's complete recorded findings β€” line-move tolerant: a finding that only shifted line counts as unchanged, only genuinely new titles/files surface here.

Rebuild cost & value ~ Modeled β€” €8,400–€42,000
Cost to rebuild€8,400–€42,000 (0.1–0.3 person-years (140–443 h), ~1 engineer)
Domain complexityStandard β€” harder problems cost more per line
Quality factor0.7Γ— (at 41% quality) β€” the last 20% of quality is most of the work
Size & shapeSmall Β· effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk)

This codebase represents roughly ~0.2 person-years of build effort (about ~€25,000 to rebuild). Its weakest lens is Readiness at 25% β€” the part of that asset most exposed by the findings below.

How we model this: boilerplate at a scaffolding rate + logic × domain Standard (×1.0) β€” standard service × a 0.7× quality factor, at €60–95/h; indicative, ±~30% · size measured directly from source · effort from total production LoC as straight-line logic (the tier split is a C#-only syntax walk), a conservative lower bound. Indicative only β€” most sensitive to the hourly rate and the domain tier (both tunable in config).

Top priorities

The highest-leverage moves; the full ranked list is in the Roadmap below.

1
Resolve the 1 Leaked secret finding(s) in Secret Scanning β€” start with dev.exs.
+14.5 pts Β· Low effort Β· Secret Scanning
2
Add a SAST step to CI running what this repository's stack ships: sobelow (Elixir/Phoenix) β€” or `semgrep --config=auto`, which runs on any language β€” so a security regression fails the build instead of landing.
+16.3 pts Β· Medium effort Β· Security & performance tooling
3
Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure β€” a persistence guard alone is not disaster recovery.
+16.3 pts Β· Medium effort Β· DR & Backup

Diagnosis β€” what's actually going on

Value concentrated against a weak lens Β· High Β· Value at risk
This is a Small asset (~0.2 person-years to rebuild), and its weakest lens is Readiness at 25%. The operational and business risk on an asset this size concentrates there β€” that's where remediation buys the most protection.
Evidence: valuation: Small, ~0.2 person-years rebuild (17,188 LoC) · weakest lens: Readiness 25%
β†’ Direct remediation budget at Readiness first β€” highest risk-reduction per euro on an asset this size.
Highest-leverage move Β· Medium Β· Leverage
Of everything flagged, the best return on effort is: Add a SAST step to CI running what this repository's stack ships: sobelow (Elixir/Phoenix) β€” or `semgrep --config=auto`, which runs on any language β€” so a security regression fails the build instead of landing. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
β†’ Add a SAST step to CI running what this repository's stack ships: sobelow (Elixir/Phoenix) β€” or `semgrep --config=auto`, which runs on any language β€” so a security regression fails the build instead of landing.

Architecture β€” module dependency matrix

33 modules, 10 dependencies β€” every dependency points down the layering, so there are no cycles. Rows and columns are the same modules, ordered so that a module only depends on ones above it. A cell means the row depends on the column, and its number is how many type pairs create that dependency. Read one thing: is anything above the diagonal? A mark there is a dependency cycle. (A cycle is all this shows β€” an unusual but cycle-free dependency sits below the diagonal like any other.)

(global)AsciinemaAsciinema.AccountsAsciinema.AsciicastAsciinema.Asciicast.V2Asciinema.Asciicast.V3…ciinema.AuthorizationAsciinema.Ecto.TypeAsciinema.EmailsAsciinema.FileCacheAsciinema.Gzip…a.Recordings.Snapshot…treaming.StreamServer…reaming.ViewerTrackerAsciinema.ThemesAsciinema.WorkersAsciinema.Zstd…ciinemaWeb.PlayerOptsAsciinemaWeb.Plug…inemaWeb.Plug.Parsers…inemaWeb.PngGeneratorExtftssvg_rastervtAsciinema.FileStoreAsciinema.RecordingsAsciinema.StreamingAsciinemaAdminAsciinemaWebAsciinemaWeb.Api…nema.Streaming.Parser…nemaWeb.DefaultAvatar(global)1Asciinema2Asciinema.Accounts3Asciinema.Asciicast4Asciinema.Asciicast.V25Asciinema.Asciicast.V36…ciinema.Authorization7Asciinema.Ecto.Type8Asciinema.Emails9Asciinema.FileCache10Asciinema.Gzip11…a.Recordings.Snapshot12…treaming.StreamServer13…reaming.ViewerTracker14Asciinema.Themes15Asciinema.Workers16Asciinema.Zstd17…ciinemaWeb.PlayerOpts18AsciinemaWeb.Plug19…inemaWeb.Plug.Parsers20…inemaWeb.PngGenerator21Ext22fts23svg_raster24vt25Asciinema.FileStore26Asciinema.Recordings27Asciinema.Streaming28AsciinemaAdmin29AsciinemaWeb30AsciinemaWeb.Api31…nema.Streaming.Parser32…nemaWeb.DefaultAvatar33411144214142

At a glance β€” Code Health Β· 63% Β· Adequate Β· gated by R1

At a glance β€” Architecture Β· 96% Β· Exemplary

At a glance β€” Maturity Β· 47% Β· Weak Β· gated by D16, M2

At a glance β€” Readiness Β· 25% Β· Weak Β· gated by R4, P3, P5

At a glance β€” Security Β· 55% Β· Adequate Β· gated by D29, D36

Security & Compliance β€” OWASP Top-10 mapping

Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).

OWASP categoryFindingsSeverity
A03:2021 β€” Injection14High / Critical
A06:2021 β€” Vulnerable & Outdated Components8High / Critical
A05:2021 β€” Security Misconfiguration5High / Critical
A02:2021 β€” Cryptographic Failures1High / Critical

Roadmap

First, integrate a security scanning step into the CI pipeline to fail builds on security regressions. Next, codify disaster recovery and backup procedures in infrastructure code and document recovery time objectives. Then, expand test coverage to include all production modules. After that, resolve the single leaked secret found in the development configuration. Finally, maintain a changelog to track each release.

Ranked by impact Γ· effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Resolve the 1 Leaked secret finding(s) in Secret Scanning β€” start with dev.exs.+14.5 ptsLowSecret Scanning
Add a SAST step to CI running what this repository's stack ships: sobelow (Elixir/Phoenix) β€” or `semgrep --config=auto`, which runs on any language β€” so a security regression fails the build instead of landing.+16.3 ptsMediumSecurity & performance tooling
Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure β€” a persistence guard alone is not disaster recovery.+16.3 ptsMediumDR & Backup
Add tests that import the unreached modules (directly or through their public entry).+16.3 ptsMediumTest Coverage
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.+14.5 ptsMediumRelease Hygiene
Add type checking (adopt TypeScript, or type-check the existing JavaScript with `checkJs`) as package.json scripts and run them in CI.+12.8 ptsMediumTooling
Add a `healthcheck:` to the served compose service β€” probing the endpoint it already answers on where it has one β€” with `depends_on: condition: service_healthy` on whatever waits for it, and keep the deployed image tag immutable and recorded so rolling back is re-pointing at the previous tag rather than rebuilding.+12.4 ptsMediumDeployment & Rollback
Resolve the 1 Off-boarding risk finding(s) in Bus Factor.+4.4 ptsLowBus Factor

File quality

Per-file score 0–10 β€” a quality signature. Of 26 files carrying findings, judged against the Production bar: 8% slop Β· 46% mixed Β· 46% near-clean.

FileScoreBandWorst signal
mix.lock0.9SlopOSV Dependency Vulnerabilities: High CVE: [GHSA redacted]
Dockerfile2.0SlopIaC & Container Security: High IaC: DS-0002
.github/workflows/release.yml4.4MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
lib/asciinema/recordings.ex5.1MixedChange Coupling: Boundary-crossing change coupling: recordings.ex ↔ seeds.exs
.github/workflows/nix.yml5.1MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
lib/asciinema/accounts.ex5.4MixedChange Coupling: Boundary-crossing change coupling: accounts.ex ↔ user_controller.ex
lib/asciinema/streaming.ex5.8MixedChange Coupling: Boundary-crossing change coupling: streaming.ex ↔ stream_json.ex
lib/asciinema/streaming/parser/asciicast_v2.ex6.5MixedChange Coupling: Boundary-crossing change coupling: asciicast_v2.ex ↔ stream_producer_socket.ex
lib/asciinema/media.ex7.0MixedChange Coupling: Boundary-crossing change coupling: media.ex ↔ recording_html.ex
lib/asciinema/streaming/parser/alis_v1.ex7.0MixedChange Coupling: Boundary-crossing change coupling: alis_v1.ex ↔ stream_consumer_socket.ex
lib/asciinema/asciicast/v2.ex7.1MixedCode Duplication: Duplicated block (12 lines × 2)
config/dev.exs7.2MixedSecret Scanning: Leaked secret: high-entropy-secret
lib/asciinema_admin/query_parser.ex7.8MixedCyclomatic Complexity: QueryParser.parse_value (cyclomatic 34)
lib/asciinema_web/controllers/recording_controller.ex7.8MixedGod Classes: TooManyMethods: RecordingController
lib/asciinema/vt.ex8.0Near-cleanChange Coupling: Boundary-crossing change coupling: vt.ex ↔ lib.rs
lib/asciinema/streaming/parser/raw.ex8.0Near-cleanChange Coupling: Boundary-crossing change coupling: raw.ex ↔ stream_producer_socket.ex
lib/asciinema_web/controllers/recording_svg.ex8.5Near-cleanGod Classes: TooManyMethods: RecordingSVG
lib/asciinema_admin/components/core_components.ex8.5Near-cleanGod Classes: TooManyMethods: CoreComponents
lib/asciinema/file_cache.ex8.5Near-cleanGod Classes: TooManyMethods: FileCache
lib/asciinema/streaming/stream_server.ex8.5Near-cleanGod Classes: TooManyMethods: StreamServer

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. 35 of 37 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 2 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.6 β€” 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.

Every figure here is one of three kinds, and we label which: βœ“ Measured β€” a deterministic fact (LoC, complexity, coverage); ~ Modeled β€” an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory β€” an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): βœ“ Tool-verified means the property itself was measured across the surface; β—‹ Nothing flagged means the probes came back clean β€” a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence β€” absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled Β· advisory marks an LLM verdict over a bounded sample β€” advisory, never a deterministic measurement.

What we checked β€” 37 dimensions across the health lenses
D1D2D3D4D13D15D16D19D21D28D29D31D33D34D35D36D38AX9M1M2M3M4P1P3P4P5P6R1R10R2R3R4R5R6R7R8R9

Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality β€” in one coherent pass. A surface report typically covers a handful.

How to trust any code-health report β€” three questions
  1. 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, 71 of 81 do; the remainder are repo-wide signals β€” a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
  2. 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.
  3. 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.

This report answers yes to all three. That's the bar to hold any assessment to.

Tools & methods

The actual versions used this run (captured at analysis time) β€” re-run on the same commit for the identical score.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0βœ“ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0βœ“ deterministic
jscpdCode duplicationβ€”βœ“ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.302βœ“ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.302βœ“ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 Β· 0.31.0βœ“ deterministic
gitleaks · semgrep · trivy · checkovSecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 Β· 0.69.3 Β· 3.2.533βœ“ deterministic
LLM (sampled · advisory)Documentation quality, ADR conformance, naming β€” sampled over a bounded sample; advisory, never a deterministic measurementLocal LLM◐ LLM Β· sampled Β· advisory

Every finding is locatable in findings.md. Run 019fcfaf-880d-7aad-9764-e2048e3539ed.

The exact command behind every deep-scan dimension β€” tool, version, invocation and retained raw output β€” is in Appendix B β€” Reproduction & audit trail.

Run transparency β€” what happened this run

What ran differently this time β€” a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.

  • D30 Dependency Vulnerabilities β€” scanner not present in this environment β€” The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.

Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared β€” every source file was scored.

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

For each dimension that was measured, what a static, repo-only scan structurally cannot see β€” the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically β€” it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type β€” a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module β€” one class/IIFE β€” earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity (jscpd) β€” it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED β€” its repetition is the tool's, not the team's β€” so the score reflects hand-written duplication only.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree β€” a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history β€” a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension β€” pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • 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.
  • 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.
  • 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").
  • D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules β€” it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
  • D33 JS/npm Dependency Vulnerabilities: JS/npm CVE matching reads package manifests and lockfiles β€” risk from how a dependency is used, and advisories not yet published, fall outside this scan.
  • 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.
  • AX9 CQS / query purity: Handlers are found by interface/name convention β€” a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
  • M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present β€” it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see β€” only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence β€” a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
  • 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

LLM-set scores this run (3): D19, D21, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score (documentation, ADR quality, naming, comment value, onboarding) β€” D25 sets the ADR-conformance fraction over sampled code, D22 judges API accuracy over a sample. These are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.

Dimensions

D1 Β· Cyclomatic Complexity9.1 / 10Exemplaryβœ“ Tool-verified

What it measures: How tangled the control flow is β€” methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective 9.1 / 10 Β· rule-coverage 100% Β· ceiling Prevented

1 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was QueryParser.parse_value at 34. A further 4 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 Recordings.apply_filter at 30 β€” they are counted neither in the figure above nor in this dimension's score.

QueryParser.parse_value (cyclomatic 34)lib/asciinema_admin/query_parser.ex:111

βœ“ On the Gold path β€” maintain.

Detailed fixes: d1_recommendation.md Β· top locations in Appendix A, every location in findings.md.

D2 Β· Cognitive Complexity10.0 / 10Exemplaryβœ“ Tool-verified

What it measures: How hard the code is for a person to follow, beyond raw branching.

Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective 10.0 / 10 Β· rule-coverage 100% Β· ceiling Prevented

0 method(s) exceeded the cognitive complexity threshold of 15.

βœ“ On the Gold path β€” maintain.

Detailed fixes: d2_recommendation.md.

D3 Β· God Classes7.7 / 10Strongβœ“ Tool-verified

What it measures: Over-large classes that try to do too much ("god classes").

Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective 7.7 / 10 Β· rule-coverage 100% Β· ceiling Prevented

12 god class(es) detected.

TooManyMethods: Recordings Β· Γ—9lib/asciinema/recordings.ex:1
FileTooLong: asciinema/recordings.ex Β· Γ—3lib/asciinema/recordings.ex:0

What to do

  1. Resolve the 9 TooManyMethods finding(s) in God Classes β€” start with recordings.ex, accounts.ex, streaming.ex. β€” One of this dimension's main actionable groups (9 warning-level).
  2. Resolve the 3 FileTooLong finding(s) in God Classes β€” start with recordings.ex, accounts.ex, streaming.ex. β€” One of this dimension's main actionable groups (3 warning-level).
  3. Enforce God Classes in CI to reach Verified (currently Documented). β€” Hardens enforcement from Documented toward Prevented β€” provenance only; does not change the score.

Detailed fixes: d3_recommendation.md Β· top locations in Appendix A, every location in findings.md.

D4 Β· Code Duplication9.6 / 10Exemplaryβœ“ Tool-verified

What it measures: Copy-pasted code that should be shared instead.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective 9.6 / 10 Β· rule-coverage 100% Β· ceiling Verified

16 duplicated block group(s) detected.

Duplicated block (12 lines × 2) Β· Γ—3lib/asciinema/asciicast/v2.ex:11
Duplicated block (8 lines × 2) Β· Γ—3lib/asciinema/asciicast/v2.ex:60
Duplicated block (5 lines × 2) Β· Γ—3lib/asciinema/asciicast/v2.ex:33
Duplicated block (9 lines × 2) Β· Γ—2lib/asciinema/accounts.ex:247
Duplicated block (7 lines × 2) Β· Γ—2lib/asciinema/asciicast/v2.ex:72

+ 3 more group(s) β€” more in Appendix A; the complete list is findings.md.

βœ“ On the Gold path β€” maintain.

Detailed fixes: d4_recommendation.md Β· top locations in Appendix A, every location in findings.md.

D13 Β· Secret Scanning5.0 / 10Adequateβœ“ Tool-verified

What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.

Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective 5.0 / 10 Β· rule-coverage 100% Β· ceiling Prevented

1 secret(s) detected.

Leaked secret: high-entropy-secretconfig/dev.exs:13

What to do

  1. Resolve the 1 Leaked secret finding(s) in Secret Scanning β€” start with dev.exs. β€” One of this dimension's main actionable groups (1 issue-level).
  2. Enforce Secret Scanning in CI to reach Verified (currently Documented). β€” Hardens enforcement from Documented toward Prevented β€” provenance only; does not change the score.

Detailed fixes: d13_recommendation.md Β· top locations in Appendix A, every location in findings.md.

D15 Β· Churn × Complexity Hotspots9.8 / 10Exemplaryβœ“ Tool-verified

What it measures: Files that change often and are also complex β€” the riskiest hotspots.

Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective 9.8 / 10 Β· rule-coverage 100% Β· ceiling Documented

Top hotspots: lib/asciinema/recordings.ex (18×30=540); lib/asciinema/streaming.ex (9×28=252); lib/asciinema_admin/query_parser.ex (5×34=170)

Hotspot: lib/asciinema/recordings.ex Β· Γ—3lib/asciinema/recordings.ex

βœ“ On the Gold path β€” maintain.

Detailed fixes: d15_recommendation.md Β· top locations in Appendix A, every location in findings.md.

D16 Β· Bus Factor1.2 / 10Criticalβœ“ Tool-verified

What it measures: Whether knowledge is concentrated in too few people (the "bus factor").

Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective 1.2 / 10 Β· rule-coverage 100% Β· ceiling Documented

54 source file(s) have their living knowledge concentrated in one author (β‰₯90% of recent, decayed contribution). The largest is lib/asciinema/recordings.ex.

Off-boarding risk: anonymized user #1

What to do

  1. Resolve the 1 Off-boarding risk finding(s) in Bus Factor. β€” One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d16_recommendation.md Β· top locations in Appendix A, every location in findings.md.

D19 Β· Documentation Quality / 10Strong◐ Sampled Β· advisory

What it measures: Whether the project's documentation is clear, complete, and useful.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective Strong / 10 Β· rule-coverage 100% Β· ceiling Documented

The single README for the asciinema server is a solid overview of purpose, technology stack (Elixir/Phoenix with avt), public hosting at asciinema.org, self-hosting guidance, and notable features such as full-text search over full terminal content. It links to external docs for API, CLI, streaming, and player, which are excellent cross-references. The outline is clipped mid-sentence ('full-text search...') so the remaining sections (Donations, Consulting, Copyright) exist in the outline but cannot be confirmed from the visible text; this leaves room for improvement on completeness.

The README mentions a public asciinema.org instance and self-hosting but does not state how to obtain or configure an account with your own server, which is critical for readers who want to run their own instance.README.md

What to do

  1. Resolve the 1 The README mentions a public asciinema.org instance and self-hosting but… finding(s) in Documentation Quality β€” start with README.md. β€” One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d19_recommendation.md Β· top locations in Appendix A, every location in findings.md.

D21 Β· Naming Consistency / 10Exemplary◐ Sampled Β· advisory

What it measures: Whether names β€” types, methods, variables β€” are clear and consistent.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective Exemplary / 10 Β· rule-coverage 100% Β· ceiling Verified

0 naming inconsistencies across 0 sampled symbols.

βœ“ On the Gold path β€” maintain.

Detailed fixes: d21_recommendation.md.

D28 Β· Secrets (history)7.0 / 10Strongβœ“ Tool-verified

What it measures: Whether any secrets were ever committed β€” scanned across the full git history, not just now.

Method: Git-history secret scan via gitleaks detect over full history in an isolated checkout; each match flagged High. Exhaustive; degrades cleanly when tool absent.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective 7.0 / 10 Β· rule-coverage 100% Β· ceiling Documented

3 finding(s): 0 critical, 3 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation β€” they remain in history regardless of later deletion.

What to do

  1. Improve Secrets (history) β€” currently 7.0/10. β€” 3 finding(s): 0 critical, 3 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation β€” they remain in history regardless of later deletion.

Detailed fixes: d28_recommendation.md.

D29 Β· Static Analysis (SAST)0.9 / 10Criticalβœ“ Tool-verified

What it measures: Real static-analysis (SAST) findings β€” likely security bugs in the code, any language.

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.

Coverage: semgrep pattern rules over all files β€” exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).

Maturity: Documented β†’ Verified β†’ Prevented Β· effective 0.9 / 10 Β· rule-coverage 100% Β· ceiling Documented

14 finding(s): 0 critical, 14 high, 0 medium, 0 low.

High: github-actions-mutable-action-tag Β· Γ—14.github/workflows/nix.yml:17detected by semgrep finding

What to do

  1. Resolve the 14 High finding(s) in Static Analysis (SAST) β€” start with release.yml (11), nix.yml (3). β€” One of this dimension's main actionable groups (14 issue-level).

Detailed fixes: d29_recommendation.md Β· top locations in Appendix A, every location in findings.md.

D31 Β· IaC & Container Security9.0 / 10Exemplaryβœ“ Tool-verified

What it measures: Whether Dockerfiles / Terraform / Kubernetes config follow security best practices.

Method: IaC/container misconfiguration scan via trivy config (Dockerfile/Terraform/K8s/Helm/CloudFormation); severity rules to 0-10 moderate normalizer. NotApplicable without manifests. Exhaustive, deterministic.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective 9.0 / 10 Β· rule-coverage 100% Β· ceiling Documented

6 finding(s): 0 critical, 2 high, 3 medium, 1 low.

High IaC: DS-0002 Β· Γ—2Dockerfiledetected by trivy finding
Medium IaC: DS-0013 Β· Γ—2Dockerfiledetected by trivy finding
Low IaC: DS-0026Dockerfiledetected by trivy finding

βœ“ On the Gold path β€” maintain.

Detailed fixes: d31_recommendation.md Β· top locations in Appendix A, every location in findings.md.

D33 Β· JS/npm Dependency Vulnerabilities10.0 / 10Exemplaryβ—‹ Nothing flagged

What it measures: Whether JavaScript/npm dependencies have known published vulnerabilities (CVEs) β€” the npm ecosystem's biggest risk.

Method: JS/npm CVE scan via trivy fs --scanners vuln over JS manifests (package.json/yarn.lock/pnpm-lock/bun.lockb); 0-10 tight normalizer. NotApplicable without JS manifests. Exhaustive, deterministic.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective 10.0 / 10 Β· rule-coverage 100% Β· ceiling Documented

No known-vulnerable JS/npm dependencies.

βœ“ On the Gold path β€” maintain.

Detailed fixes: d33_recommendation.md.

D34 Β· Knowledge Freshness10.0 / 10Exemplaryβœ“ Tool-verified

What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned β€” last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.

Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective 10.0 / 10 Β· rule-coverage 100% Β· ceiling Documented

Every significant source file has living knowledge β€” recently and meaningfully worked.

βœ“ On the Gold path β€” maintain.

Detailed fixes: d34_recommendation.md.

D35 Β· Change Coupling9.2 / 10Exemplaryβœ“ Tool-verified

What it measures: Whether files that change together actually belong together β€” pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.

Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only β€” tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file β‰₯10 revisions, β‰₯5 shared commits, β‰₯50% strength); sweeping commits excluded. Deterministic over fixed history.

Coverage: Population: PRODUCTION source files only β€” test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling; coupling through a build step, config, or non-source file isn't seen.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective 9.2 / 10 Β· rule-coverage 100% Β· ceiling Documented

Strongest change-coupling: asciicast_v2.ex↔raw.ex 92%; local.ex↔s3.ex 84%; streaming.ex↔stream.ex 81%

Boundary-crossing change coupling: vt.ex ↔ lib.rs Β· Γ—10lib/asciinema/vt.ex

βœ“ On the Gold path β€” maintain.

Detailed fixes: d35_recommendation.md Β· top locations in Appendix A, every location in findings.md.

D36 Β· Supply-chain Provenance & Signing0.0 / 10Criticalβœ“ Tool-verified

What it measures: Whether the build pipeline provides supply-chain integrity β€” generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.

Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals β€” generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions β€” scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective 0.0 / 10 Β· rule-coverage 100% Β· ceiling Documented

0/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

Unpinned build actions
PR-triggered workflow without a permissions block
No build provenance
No artifact signing
No SBOM

What to do

  1. Resolve the 1 Unpinned build actions finding(s) in Supply-chain Provenance & Signing. β€” One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 PR-triggered workflow without a permissions block finding(s) in Supply-chain Provenance & Signing. β€” One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 No build provenance finding(s) in Supply-chain Provenance & Signing. β€” One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d36_recommendation.md Β· top locations in Appendix A, every location in findings.md.

D38 Β· OSV Dependency Vulnerabilities6.3 / 10Adequateβœ“ Tool-verified

What it measures: Whether dependencies have known published vulnerabilities (CVEs) per the OSV database β€” read natively from whatever lockfile the repository ships (Cargo, npm, Go, Python, Maven, RubyGems, …). D33 and D30 add ecosystem-specific scanners on top for npm and .NET.

Method: Multi-ecosystem dependency-CVE scan via osv-scanner --recursive (queries the osv.dev database + parses lockfiles natively across ecosystems: npm package-lock/yarn/pnpm/bun, Go go.mod, Rust Cargo.lock, Maven/Gradle pom.xml/gradle.lockfile, PyPI requirements.txt/poetry.lock/Pipfile.lock, Composer composer.lock, RubyGems Gemfile.lock, Hex mix.lock, pub pubspec.lock, Swift Package.resolved); severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer (8.0). NotApplicable only when the repo declares no supported non-.NET dependency lockfile (a NuGet-only repo stays NotApplicable β€” .NET CVEs are D30's domain); coverage needs a resolved lockfile. Additive to D33 (trivy fs); exhaustive + deterministic, DB kept fresh.

Maturity: Documented β†’ Verified β†’ Prevented Β· effective 6.3 / 10 Β· rule-coverage 100% Β· ceiling Documented

8 finding(s): 0 critical, 5 high, 3 medium, 0 low.

High CVE: [GHSA redacted] Β· Γ—5mix.lockdetected by osv-scanner finding
Medium CVE: EEF-[CVE redacted] Β· Γ—3mix.lockdetected by osv-scanner finding

What to do

  1. Resolve the 5 High CVE finding(s) in OSV Dependency Vulnerabilities β€” start with mix.lock (5). β€” One of this dimension's main actionable groups (5 issue-level).
  2. Resolve the 3 Medium CVE finding(s) in OSV Dependency Vulnerabilities β€” start with mix.lock (3). β€” One of this dimension's main actionable groups (3 warning-level).

Detailed fixes: d38_recommendation.md Β· top locations in Appendix A, every location in findings.md.

Frontend & cross-cutting dimensions

R = React/JS Β· M = Maturity Β· P = Readiness.

AX9 Β· CQS / query purity10.0 / 10Exemplaryβœ“ Tool-verified

Other Β· Architecture β€” Whether read (query) handlers stay side-effect-free β€” a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.

Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.

Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set β€” a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.

M1 Β· Documentation (README)4.5 / 10Weakβœ“ Tool-verified

Maturity Β· Maturity β€” Whether the repo and its projects have a README, and whether it's substantive and current.

Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.

  • 158 code files changed in the last 6 months but the README was not touched β€” it may no longer reflect the system.

What to do

  • Add a build/run (quick start) section to the root README β€” the first thing a newcomer needs.
  • Add a 'Testing' section to the root README β€” how to run the test suite.
  • Add an 'Architecture' / 'How it works' section to the root README β€” the high-level shape.
  • Add a README to the 5 of 5 project(s) that lack one β€” worth up to 2 pts.
  • Review the README against recent changes; refresh the parts that drifted.
M2 Β· Architecture documentation0.0 / 10Criticalβœ“ Tool-verified

Maturity Β· Maturity β€” Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

  • No Architecture Decision Records found β€” no conventional ADR directory, no `NNNN-title.md` documents and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
  • No C4/PlantUML/Mermaid diagram or architecture.md β€” the high-level shape isn't documented.

What to do

  • Record significant decisions one document per decision β€” dated, stating the context, the decision and its consequences β€” and keep them together wherever your design docs already live (a conventional `docs/adr/` tree with `NNNN-title.md` names is the most discoverable form).
  • Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 Β· Folder & project structure10.0 / 10Exemplaryβœ“ Tool-verified

Maturity Β· Maturity β€” Whether the repo is organised deliberately β€” src/test separation and consistent project naming.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

M4 Β· Documentation accuracy9.0 / 10Exemplary◐ Sampled Β· advisory

Maturity Β· Maturity β€” Whether the README actually describes the code that exists (LLM-judged, advisory).

Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.

P1 Β· CI/CD gates10.0 / 10Exemplaryβ—‹ Nothing flagged

Readiness Β· Readiness β€” Whether an automated pipeline builds and tests every change.

Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.

P3 Β· Security & performance tooling0.0 / 10Criticalβœ“ Tool-verified

Readiness Β· Readiness β€” Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).

Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step β€” in this repository's own ecosystem. Exhaustive, deterministic.

  • No static application security testing detected. For this repository's stack, add sobelow (Elixir/Phoenix) (or `semgrep --config=auto`, which runs on any language) as a CI step.

What to do

  • Add a SAST step to CI running what this repository's stack ships: sobelow (Elixir/Phoenix) β€” or `semgrep --config=auto`, which runs on any language β€” 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 & Rollback7.0 / 10Strongβœ“ Tool-verified

Readiness Β· Readiness β€” Whether releases are automated and safely reversible (probes, rolling updates, approval gates) β€” from manifests/pipeline files, not the live environment.

Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.

  • Deployment is orchestrated by compose, but no service declares a `healthcheck:` and nothing pins a previous image to fall back to β€” the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse.

What to do

  • Add a `healthcheck:` to the served compose service β€” probing the endpoint it already answers on where it has one β€” with `depends_on: condition: service_healthy` on whatever waits for it, and keep the deployed image tag immutable and recorded so rolling back is re-pointing at the previous tag rather than rebuilding.
P5 Β· DR & Backup0.0 / 10Criticalβœ“ Tool-verified

Readiness Β· Readiness β€” Whether disaster recovery is planned and codified β€” backups, geo-recovery, RTO/RPO, persistence guarantees β€” from IaC + container manifests + docs, never the live cloud.

Method: Filesystem scan: disaster recovery, backup, geo-recovery, RTO/RPO, persistence guarantees from IaC, manifests, and docs. Exhaustive, deterministic, never a live environment.

  • A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced β€” a volume that survives a container recreate is not a tested restore from catastrophic loss.

What to do

  • Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure β€” a persistence guard alone is not disaster recovery.
P6 Β· Release Hygiene5.0 / 10Adequateβœ“ Tool-verified

Readiness Β· Readiness β€” Whether releases are traceable β€” a maintained changelog and explicit version stamping.

Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.

  • No CHANGELOG/HISTORY/RELEASES file β€” what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)

What to do

  • Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
R1 Β· Type Safety0.0 / 10Criticalβœ“ Tool-verified

React / JS Β· Code Health β€” How much of the frontend is typed TypeScript vs untyped JavaScript.

Method: Frontend file inventory: the share of typed TypeScript vs untyped JavaScript across the source tree. Deterministic, exhaustive over frontend files.

  • 0 typed · 7 plain JS β€” the untyped files are assets/js/admin.js, assets/js/app.js, assets/js/dropdowns.js, assets/js/iframe.js, assets/js/modals.js, assets/js/player.js (+1 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 Duplication10.0 / 10Exemplaryβœ“ Tool-verified

React / JS Β· Code Health β€” Copy-pasted token-identical blocks across the frontend (the D4 clone algorithm over JS/TS tokens, D-386).

Method: Copy-pasted token-identical blocks across the frontend (the D4 clone algorithm run over JS/TS tokens). Deterministic.

R2 Β· Cyclomatic Complexity8.0 / 10Strongβœ“ Tool-verified

React / JS Β· Code Health β€” Per-function cyclomatic/cognitive complexity from the token-level function scanner (D-386) β€” real branching, not a regex heuristic.

Method: Per-function cyclomatic/cognitive complexity from a token-level function scanner (real branching, not a regex heuristic), computed over every frontend function. Deterministic.

  • Branch-heavy code is where defects cluster β€” extract decisions into smaller functions. β€” admin.js:69

What to do

  • Break down the listed branch-heavy functions; aim P95 cyclomatic ≀ 5.
R3 Β· Large Files10.0 / 10Exemplaryβœ“ Tool-verified

React / JS Β· Code Health β€” How many source files exceed the large-file threshold.

Method: Components/modules exceeding the large-file threshold, counted exhaustively across the frontend source tree. Deterministic.

R4 Β· Test Coverage0.0 / 10Criticalβœ“ Tool-verified

React / JS Β· Readiness β€” Static test reachability (D-386): the share of production files reachable from any test via the import graph β€” measured without running anything.

Method: Static test reachability: the share of production files reachable from any test via the import graph β€” measured without running anything. Deterministic.

  • 0% of 7 production file(s) reachable from 0 test file(s) via the import graph

What to do

  • Add tests that import the unreached modules (directly or through their public entry).
R5 Β· Dependency Freshness9.6 / 10Exemplaryβœ“ Tool-verified

React / JS Β· Readiness β€” How outdated the npm dependencies are (a maturity signal). JS/npm CVEs are scored separately in D33 (JS/npm Dependency Vulnerabilities).

Method: npm dependency staleness from manifest/registry metadata (a maturity signal; JS/npm CVEs are scored separately in D33). Deterministic.

What to do

  • Bump outdated dependencies to current versions to limit upgrade debt.
R6 Β· Tooling6.7 / 10Adequateβœ“ Tool-verified

React / JS Β· Readiness β€” Whether the project wires up test, lint and typecheck β€” detected from each package.json script's COMMAND (eslint / tsc / vitest / jest / playwright), not just its name, and corroborated against CI-workflow invocations so a tool run only in CI still counts.

Method: package.json scanned for test/lint/typecheck script wiring. Deterministic presence check.

  • test βœ“ · lint βœ“ · typecheck βœ—

What to do

  • Add type checking (adopt TypeScript, or type-check the existing JavaScript with `checkJs`) as package.json scripts and run them in CI.
R7 Β· Dead Code10.0 / 10Exemplaryβœ“ Tool-verified

React / JS Β· Code Health β€” Files unreachable from every application/tooling/test entry point, and exports nothing imports (module-graph reachability, D-386).

Method: Dead code: files unreachable from every application/tooling/test entry point plus exports nothing imports, via module-graph reachability. Deterministic, exhaustive over the import graph.

R8 Β· Dependency Hygiene10.0 / 10Exemplaryβœ“ Tool-verified

React / JS Β· Readiness β€” npm dependency truthfulness (D-386): unused dependencies, imports not declared anywhere, and type-/test-only packages shipped as production deps.

Method: npm dependency truthfulness: unused dependencies, imports declared nowhere, and type-/test-only packages shipped as production deps β€” from the manifest + import graph. Deterministic.

R9 Β· Circular Imports10.0 / 10Exemplaryβœ“ Tool-verified

React / JS Β· Architecture β€” Import cycles in the module graph (D-386) β€” files that can only be understood and changed together.

Method: Import cycles in the module graph, detected exhaustively over JS/TS imports (the same cycle detection as the .NET coupling dimension). Deterministic.

Reference β€” by lens

The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.

LensScoreRatingImpact
Code Health63%Adequate β€” gated by R1Capped at Fair by a Critical contributor β€” resolve it before relying on this lens.
Architecture96%ExemplaryStrongest area.
Maturity47%Weak β€” gated by D16, M2Capped at Fair by a Critical contributor β€” resolve it before relying on this lens.
Readiness25%Weak β€” gated by R4, P3, P5Capped at Fair by a Critical contributor β€” resolve it before relying on this lens.
Security55%Adequate β€” gated by D29, D36Capped at Fair by a Critical contributor β€” resolve it before relying on this lens.
Not included β€” 69 check(s) not relevant to this codebase

These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.

  • 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 β€” no DI registrations detected
  • AX10 Code composition β€” not assessed β€” code composition is computed by ROLE over a document set that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX2 Stateful singletons β€” no singleton implementations detected
  • AX3 Project dependency cycles β€” not assessed β€” project cycles and dependency direction are computed over a project-reference graph 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
  • AX4 Dependency direction β€” not assessed β€” project cycles and dependency direction are computed over a project-reference graph that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX5 Architecture & structure β€” not assessed β€” architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX6 Interface segregation β€” not assessed β€” interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX7 Slice cohesion β€” not applicable β€” not a vertical-slice architecture
  • AX8 Test isolation β€” not assessed β€” test isolation is computed from a project graph (which projects are test projects, and what they reference) 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
  • AXB2 Runtime readiness β€” Advisory β€” this card reports evidence and never carries a score, so there is nothing missing here.
  • C1 Data Protection β€” Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository β€” because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C2 Access Controls β€” Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository β€” because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C3 Audit Trail β€” Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository β€” because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C4 Data Retention β€” Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository β€” because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C5 Data-Subject Rights β€” Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository β€” because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • D10 Test Quality β€” ~12428 lines of test source are present (.exs, .ex) but the test-quality collector reads C# only, so skipped/assertion-free tests couldn't be counted. Not scored β€” this is a gap in the analyzer, not a finding about this repository.
  • D11 Test Reliability β€” Test reliability not included
  • D12 Dependency Hygiene β€” Dependency hygiene not measured β€” dependency manifest found but not parsed for hygiene
  • D14 License Compliance β€” 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 (a Cargo manifest and package.json), which this pass does not parse yet β€” so this dimension asserts nothing about this repository's licensing in either direction.
  • D17 Explicit Debt β€” explicit-debt markers are read through a C# workspace today, so they were not read for this repository's language β€” this asserts nothing about how many markers the code carries. Not scored β€” this is a gap in the analyzer, not a finding about this repository
  • 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.
  • D20 ADR Quality β€” N/A β€” ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
  • D22 Internal API Consistency β€” No exposed public API
  • D23 Boundary Type-Coupling β€” Production source is present (.ex, .exs, .rs) but bounded contexts are resolved over the C#/VB project set, which exposed none, so context scope could not be assessed. Not scored β€” this is a gap in the analyzer, not a verdict about this repository. Declaring the codebase's bounded contexts (β‰₯2) would let cross-boundary type coupling be assessed β€” see the recommendation on this dimension for where. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it β€” e.g. `architecture:` β†’ `contexts:` β†’ `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D24 Comment Value β€” No inline comments to assess β€” comment value is not applicable here.
  • D25 ADR Conformance β€” no ADRs to check
  • D26 Project Cohesion β€” Project cohesion is assessed over the .NET project set; this target exposed no projects, so project size and spread could not be assessed. Not scored β€” this is a gap in the analyzer's reach, not a verdict about this repository.
  • D27 Navigability β€” No calls could be sampled, so navigability was not assessed β€” tracing effort is measured over resolved call sites and this target exposed none. Not scored β€” this is a gap in the analyzer's reach, not a verdict about this repository.
  • D30 Dependency Vulnerabilities β€” Not scored β€” no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Cargo manifest and package.json β€” not scanned yet) β€” where an OSV-supported manifest exists, dependency vulnerabilities for this repository are reported under D38 instead.
  • D32 Data Compliance (PII/GDPR) β€” No PII/GDPR-handling patterns detected (p/gdpr ruleset) β€” no data-compliance surface to assess.
  • D37 Vulnerability-disclosure Policy β€” No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D39 IL Efficiency β€” D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
  • D40 Network Egress Confinement β€” No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement β€” No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement β€” No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D5 Coupling β€” Inter-project coupling could not be assessed β€” no analyzable project graph was found for this repository. Not scored: a gap in the analyzer's reach, not a verdict about this repository. (Coupling here is Martin afferent/efferent/instability plus reference cycles across a project-reference graph, read today from .NET project files; other ecosystems' module graphs are not read yet.)
  • D6 Cohesion (LCOM4) β€” Cohesion (LCOM4) is measured over a C#/VB class graph, and this repository's production source is .ex, .exs, .rs, which this pass does not read β€” so no class could be assessed. Not scored β€” this is a gap in the analyzer, not a finding about this repository.
  • D7 Architectural Integrity β€” no checkable ADRs, and no project-reference graph for the cycle pass to read β€” so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
  • D8 Code Coverage β€” Coverage not included β€” suite not readable by the collector
  • D9 Test Distribution β€” Test source is present (.exs, .ex) but the test-pyramid classifier reads C# only, so its unit/integration/BDD/E2E split couldn't be counted. Not scored β€” this is a gap in the analyzer, not a finding about this repository.
  • DM1 Domain Modelling β€” applicable but not scored (2 of 3 signals for this style β€” below the bar we score at): 3 aggregate root(s) (types guarding their own state behind command methods β€” this language has no AggregateRoot base to inherit); 11 value object(s)
  • ED2 Event/command shape β€” not scored β€” deciding whether a command has more than one competing handler requires resolving the call graph, and a call made through an inferred or generic receiver has no resolvable owner in the source. Reported as guidance rather than measured
  • ED5 Idempotency β€” 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 check looks for
  • GD1 Unfinished & placeholder code β€” no source files
  • IC1 Incompleteness & stubs β€” not analysed β€” these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • P12 CI test-gate honesty β€” Reported, not scored β€” and nothing was matched here. The coverage check applies to any stack, 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'.
  • P2 Observability β€” Observability was not assessed: this check reads a source model that does not carry this repository's product β€” because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of a logging idiom this check recognises is NOT evidence that this repo lacks structured logging (it may log through its own ecosystem's logger). This is a gap in the analyzer, not a finding about this repository.
  • P7 Outbound HTTP resilience β€” not measured β€” the application kind could not be determined for this repo
  • P8 Schema migrations β€” not assessed β€” schema-migration practice is read from 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
  • P9 Domain vs controller coverage β€” no coverage report found on disk β€” produce a coverage report in a standard format (lcov β€” `mix test --cover` with `excoveralls` (`mix coveralls.lcov`)) into the repo working tree before the scan β€” a CI step is the usual place, since the artefact is commonly gitignored, or wire coverage collection into CI, to enable this cross-layer check
  • PF1 Benchmark discipline β€” Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository β€” in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • PF2 Allocation hygiene β€” Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository β€” in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • PF3 Async & latency hygiene β€” Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository β€” in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • R11 Import Boundaries β€” No recognizable feature-sliced/layered src layout β€” boundary rules not applicable.
  • S1 Web-Security Posture β€” Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository β€” because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • SC1 Supply-chain hygiene β€” Advisory β€” this card reports evidence and never carries a score, so there is nothing missing here.
  • X1 Async correctness β€” not analysed β€” these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • 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
  • X3 Exception handling β€” not analysed β€” these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X4 Structured logging β€” not analysed β€” these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X5 Nullable reference types β€” not analysed β€” these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository

Appendix A β€” Findings (grouped)

The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.

Issue β€” 32 finding(s)
D29 Β· Static Analysis (SAST) Β· High Β· Γ—14
  • High: github-actions-mutable-action-tag .github/workflows/nix.yml:17 β€” GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks β€” as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@<40-character SHA>`. This step references `actions/checkout@v4`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/nix.yml:18 β€” GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks β€” as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: nixbuild/nix-quick-install-action@<40-character SHA>`. This step references `nixbuild/nix-quick-install-action@v30`; resolve the SHA it points at today with `gh api repos/nixbuild/nix-quick-install-action/commits/v30 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/nix.yml:21 β€” GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks β€” as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: nix-community/cache-nix-action@<40-character SHA>`. This step references `nix-community/cache-nix-action@v6`; resolve the SHA it points at today with `gh api repos/nix-community/cache-nix-action/commits/v6 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:28 β€” GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks β€” as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@<40-character SHA>`. This step references `actions/checkout@v4`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v4 --jq .sha`.
  • High: run-shell-injection .github/workflows/release.yml:32 β€” Using variable interpolation `${{...}}` with `github` context data in a `run:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. `github` context data can have arbitrary user input and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Reference it as a shell VARIABLE rather than a `${{ }}` interpolation, using your shell's own syntax (`"$ENVVAR"` in bash, `$env:ENVVAR` in PowerShell), so the value is passed as data and never re-expanded as code.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:44 β€” GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks β€” as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: docker/setup-buildx-action@<40-character SHA>`. This step references `docker/setup-buildx-action@v3`; resolve the SHA it points at today with `gh api repos/docker/setup-buildx-action/commits/v3 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:47 β€” GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks β€” as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: docker/login-action@<40-character SHA>`. This step references `docker/login-action@v3`; resolve the SHA it points at today with `gh api repos/docker/login-action/commits/v3 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:55 β€” GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks β€” as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: docker/build-push-action@<40-character SHA>`. This step references `docker/build-push-action@v6`; resolve the SHA it points at today with `gh api repos/docker/build-push-action/commits/v6 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:74 β€” GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks β€” as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/upload-artifact@<40-character SHA>`. This step references `actions/upload-artifact@v4`; resolve the SHA it points at today with `gh api repos/actions/upload-artifact/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:86 β€” GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks β€” as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@<40-character SHA>`. This step references `actions/checkout@v4`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:89 β€” GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks β€” as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/download-artifact@<40-character SHA>`. This step references `actions/download-artifact@v4`; resolve the SHA it points at today with `gh api repos/actions/download-artifact/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:107 β€” GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks β€” as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: docker/setup-buildx-action@<40-character SHA>`. This step references `docker/setup-buildx-action@v3`; resolve the SHA it points at today with `gh api repos/docker/setup-buildx-action/commits/v3 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:110 β€” GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks β€” as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: docker/login-action@<40-character SHA>`. This step references `docker/login-action@v3`; resolve the SHA it points at today with `gh api repos/docker/login-action/commits/v3 --jq .sha`.
  • High: run-shell-injection .github/workflows/release.yml:127 β€” Using variable interpolation `${{...}}` with `github` context data in a `run:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. `github` context data can have arbitrary user input and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Reference it as a shell VARIABLE rather than a `${{ }}` interpolation, using your shell's own syntax (`"$ENVVAR"` in bash, `$env:ENVVAR` in PowerShell), so the value is passed as data and never re-expanded as code.
D35 Β· Change Coupling Β· Boundary-crossing change coupling Β· Γ—10
  • Boundary-crossing change coupling: vt.ex ↔ lib.rs lib/asciinema/vt.ex β€” `lib/asciinema/vt.ex` (context asciinema) and `native/vt/src/lib.rs` (context native) sit in DIFFERENT parts of the tree yet change together 80% of the time (12 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) β€” the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: raw.ex ↔ stream_producer_socket.ex lib/asciinema/streaming/parser/raw.ex β€” `lib/asciinema/streaming/parser/raw.ex` (context asciinema) and `lib/asciinema_web/stream_producer_socket.ex` (context asciinema_web) sit in DIFFERENT parts of the tree yet change together 69% of the time (9 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) β€” the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: media.ex ↔ recording_html.ex lib/asciinema/media.ex β€” `lib/asciinema/media.ex` (context asciinema) and `lib/asciinema_web/controllers/recording_html.ex` (context asciinema_web) sit in DIFFERENT parts of the tree yet change together 67% of the time (10 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) β€” the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: accounts.ex ↔ user_controller.ex lib/asciinema/accounts.ex β€” `lib/asciinema/accounts.ex` (context asciinema) and `lib/asciinema_admin/controllers/user_controller.ex` (context asciinema_admin) sit in DIFFERENT parts of the tree yet change together 62% of the time (8 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) β€” the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: asciicast_v2.ex ↔ stream_producer_socket.ex lib/asciinema/streaming/parser/asciicast_v2.ex β€” `lib/asciinema/streaming/parser/asciicast_v2.ex` (context asciinema) and `lib/asciinema_web/stream_producer_socket.ex` (context asciinema_web) sit in DIFFERENT parts of the tree yet change together 60% of the time (12 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) β€” the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: alis_v1.ex ↔ stream_consumer_socket.ex lib/asciinema/streaming/parser/alis_v1.ex β€” `lib/asciinema/streaming/parser/alis_v1.ex` (context asciinema) and `lib/asciinema_web/stream_consumer_socket.ex` (context asciinema_web) sit in DIFFERENT parts of the tree yet change together 59% of the time (16 of the 27 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) β€” the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: alis_v1.ex ↔ stream_producer_socket.ex lib/asciinema/streaming/parser/alis_v1.ex β€” `lib/asciinema/streaming/parser/alis_v1.ex` (context asciinema) and `lib/asciinema_web/stream_producer_socket.ex` (context asciinema_web) sit in DIFFERENT parts of the tree yet change together 56% of the time (15 of the 27 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) β€” the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: recordings.ex ↔ seeds.exs lib/asciinema/recordings.ex β€” `lib/asciinema/recordings.ex` (context asciinema) and `priv/repo/seeds.exs` (context priv) sit in DIFFERENT parts of the tree yet change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) β€” the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: media.ex ↔ stream_html.ex lib/asciinema/media.ex β€” `lib/asciinema/media.ex` (context asciinema) and `lib/asciinema_web/controllers/stream_html.ex` (context asciinema_web) sit in DIFFERENT parts of the tree yet change together 53% of the time (8 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) β€” the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: streaming.ex ↔ stream_json.ex lib/asciinema/streaming.ex β€” `lib/asciinema/streaming.ex` (context asciinema) and `lib/asciinema_web/controllers/api/stream_json.ex` (context asciinema_web) sit in DIFFERENT parts of the tree yet change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) β€” the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
D38 Β· OSV Dependency Vulnerabilities Β· High CVE Β· Γ—5
  • High CVE: [GHSA redacted] mix.lock β€” cowboy 2.14.2: [GHSA redacted] β€” upgrade to 2.15.0. This is 1 of 3 advisories with a published fix this scan raises against cowboy 2.14.2, and their fixed versions do not agree β€” anything below 2.18.0 still leaves at least one of them open. Take this package to 2.18.0 or later: that is the floor for the package, not this row's target alone. This one row stands for the 3 advisories this scan raises against cowboy 2.14.2: EEF-[CVE redacted], [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] mix.lock β€” cowlib 2.16.0: [GHSA redacted] β€” upgrade to 2.16.1. This is 1 of 4 advisories with a published fix this scan raises against cowlib 2.16.0, and their fixed versions do not agree β€” anything below 2.19.0 still leaves at least one of them open. Take this package to 2.19.0 or later: that is the floor for the package, not this row's target alone. This one row stands for the 6 advisories this scan raises against cowlib 2.16.0: EEF-[CVE redacted], EEF-[CVE redacted], EEF-[CVE redacted], EEF-[CVE redacted], [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] mix.lock β€” hackney 1.25.0: [GHSA redacted] β€” upgrade to 4.0.1. This one row stands for the 4 advisories this scan raises against hackney 1.25.0: EEF-[CVE redacted], EEF-[CVE redacted], EEF-[CVE redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] mix.lock β€” plug 1.19.1: [GHSA redacted] β€” upgrade to 1.19.2. This is 1 of 4 advisories with a published fix this scan raises against plug 1.19.1, and their fixed versions do not agree β€” anything below 1.19.5 still leaves at least one of them open. Take this package to 1.19.5 or later: that is the floor for the package, not this row's target alone. This one row stands for the 4 advisories this scan raises against plug 1.19.1: EEF-[CVE redacted], EEF-[CVE redacted], EEF-[CVE redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] mix.lock β€” postgrex 0.21.1: [GHSA redacted] β€” upgrade to 0.22.2. This is 1 of 2 advisories with a published fix this scan raises against postgrex 0.21.1, and their fixed versions do not agree β€” anything below 0.22.3 still leaves at least one of them open. Take this package to 0.22.3 or later: that is the floor for the package, not this row's target alone. This one row stands for the 2 advisories this scan raises against postgrex 0.21.1: EEF-[CVE redacted], [GHSA redacted].
D31 Β· IaC & Container Security Β· High IaC Β· Γ—2
  • High IaC: DS-0002 Dockerfile β€” Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN adduser -S -D app`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root β€” it manages the container runtime, ptraces another process or opens raw devices β€” say so here rather than making a change that breaks it.
  • High IaC: DS-0025 Dockerfile β€” 'apk add' is missing '--no-cache' The install step leaves the package manager's index and downloaded packages behind in that layer, so every pull carries them and every CVE in them is attributed to your image. The step: this file installs with `apk`, so end the SAME `RUN` that installs with `&& apk cache clean` β€” a later `RUN` cannot help, because the cache is already committed to the earlier layer. (The rule's title names the command for a different package manager; the defect it measures is the same one.) Where the builder supports it, `RUN --mount=type=cache` is the alternative: the cache is mounted for the step and never enters a layer at all.
D13 Β· Secret Scanning Β· Leaked secret Β· Γ—1
  • Leaked secret: high-entropy-secret config/dev.exs:13 β€” high-entropy-secret detected. Treat the value as compromised: it is readable by everyone who has ever had the repository, and deleting the line does not un-publish it. In order β€” (1) REVOKE it at whatever issued it and issue a replacement, which is the only step that actually closes the exposure; (2) load the replacement at run time from your platform's secret store or the process environment instead of from the tree, so no future value is committable; (3) remove the file or line and add its path to the repository's ignore rules, so it cannot come back; (4) if the value was ever live, purge it from the history as well, since a clone taken before the deletion still carries it. If this is instead a FIXTURE β€” key material generated for tests and valid nowhere β€” then the exposure is nil and the fix is to make that legible: generate it in test setup, or keep it under a test-data path, so a reader (and this scan) can tell it from the real thing.
Warning β€” 39 finding(s)
D3 Β· God Classes Β· TooManyMethods Β· Γ—9
  • TooManyMethods: Recordings lib/asciinema/recordings.ex:1 β€” TooManyMethods β€” 88 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: Accounts lib/asciinema/accounts.ex:1 β€” TooManyMethods β€” 77 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: Streaming lib/asciinema/streaming.ex:1 β€” TooManyMethods β€” 46 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: RecordingSVG lib/asciinema_web/controllers/recording_svg.ex:1 β€” TooManyMethods β€” 44 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: CoreComponents lib/asciinema_admin/components/core_components.ex:1 β€” TooManyMethods β€” 37 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: QueryParser lib/asciinema_admin/query_parser.ex:1 β€” TooManyMethods β€” 37 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: FileCache lib/asciinema/file_cache.ex:1 β€” TooManyMethods β€” 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: StreamServer lib/asciinema/streaming/stream_server.ex:1 β€” TooManyMethods β€” 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: RecordingController lib/asciinema_web/controllers/recording_controller.ex:1 β€” TooManyMethods β€” 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D15 Β· Churn × Complexity Hotspots Β· Hotspot Β· Γ—3
  • Hotspot: lib/asciinema/recordings.ex lib/asciinema/recordings.ex β€” lib/asciinema/recordings.ex changed 18 times in last 90 days, max complexity 30. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first.
  • Hotspot: lib/asciinema/streaming.ex lib/asciinema/streaming.ex β€” lib/asciinema/streaming.ex changed 9 times in last 90 days, max complexity 28. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first.
  • Hotspot: lib/asciinema_admin/query_parser.ex lib/asciinema_admin/query_parser.ex β€” lib/asciinema_admin/query_parser.ex changed 5 times in last 90 days, max complexity 34. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first.
D3 Β· God Classes Β· FileTooLong Β· Γ—3
  • FileTooLong: asciinema/recordings.ex lib/asciinema/recordings.ex:0 β€” FileTooLong β€” 1009 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: asciinema/accounts.ex lib/asciinema/accounts.ex:0 β€” FileTooLong β€” 632 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: asciinema/streaming.ex lib/asciinema/streaming.ex:0 β€” FileTooLong β€” 522 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
D38 Β· OSV Dependency Vulnerabilities Β· Medium CVE Β· Γ—3
  • Medium CVE: EEF-[CVE redacted] mix.lock β€” decimal 2.3.0: EEF-[CVE redacted] β€” upgrade to 3.0.0
  • Medium CVE: EEF-[CVE redacted] mix.lock β€” earmark 1.4.48: EEF-[CVE redacted] β€” no fixed version has been published yet. Track the advisory, and remove or replace earmark if the exposure is not acceptable until one lands.
  • Medium CVE: EEF-[CVE redacted] mix.lock β€” swoosh 1.16.7: EEF-[CVE redacted] β€” upgrade to 1.26.3
D4 Β· Code Duplication Β· Duplicated block (12 lines × 2) Β· Γ—3
  • Duplicated block (12 lines × 2) lib/asciinema/asciicast/v2.ex:11 β€” lib/asciinema/asciicast/v2.ex:11-22 | lib/asciinema/asciicast/v3.ex:12-23 β€” before extracting anything, compare `lib/asciinema/asciicast/v2.ex` and `lib/asciinema/asciicast/v3.ex` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together β€” extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) lib/asciinema/asciicast/v2.ex:79 β€” lib/asciinema/asciicast/v2.ex:79-90 | lib/asciinema/asciicast/v3.ex:80-91 β€” before extracting anything, compare `lib/asciinema/asciicast/v2.ex` and `lib/asciinema/asciicast/v3.ex` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together β€” extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) lib/asciinema_web/controllers/email_controller.ex:12 β€” lib/asciinema_web/controllers/email_controller.ex:12-23 | lib/asciinema_web/controllers/email_controller.ex:64-75 β€” 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.
D4 Β· Code Duplication Β· Duplicated block (8 lines × 2) Β· Γ—3
  • Duplicated block (8 lines × 2) lib/asciinema/asciicast/v2.ex:60 β€” lib/asciinema/asciicast/v2.ex:60-67 | lib/asciinema/asciicast/v3.ex:61-68 β€” before extracting anything, compare `lib/asciinema/asciicast/v2.ex` and `lib/asciinema/asciicast/v3.ex` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together β€” extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) lib/asciinema/recordings.ex:159 β€” lib/asciinema/recordings.ex:159-166 | lib/asciinema/streaming.ex:83-90 β€” before extracting anything, compare `lib/asciinema/recordings.ex` and `lib/asciinema/streaming.ex` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together β€” extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) lib/asciinema/recordings.ex:846 β€” lib/asciinema/recordings.ex:846-853 | lib/asciinema/streaming.ex:483-491 β€” before extracting anything, compare `lib/asciinema/recordings.ex` and `lib/asciinema/streaming.ex` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together β€” extracting one helper per block leaves the fork in place.
D4 Β· Code Duplication Β· Duplicated block (5 lines × 2) Β· Γ—3
  • Duplicated block (5 lines × 2) lib/asciinema/asciicast/v2.ex:33 β€” lib/asciinema/asciicast/v2.ex:33-37 | lib/asciinema/asciicast/v3.ex:33-37 β€” before extracting anything, compare `lib/asciinema/asciicast/v2.ex` and `lib/asciinema/asciicast/v3.ex` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together β€” extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) lib/asciinema/recordings/snapshot.ex:202 β€” lib/asciinema/recordings/snapshot.ex:202-206 | lib/asciinema/recordings/snapshot.ex:207-211 β€” 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.
  • Duplicated block (5 lines × 2) lib/asciinema/streaming/parser/asciicast_v2.ex:63 β€” lib/asciinema/streaming/parser/asciicast_v2.ex:63-67 | lib/asciinema/streaming/parser/asciicast_v3.ex:64-68 β€” the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
D31 Β· IaC & Container Security Β· Medium IaC Β· Γ—2
  • Medium IaC: DS-0013 Dockerfile β€” 'RUN cd ...' to change directory
  • Medium IaC: CKV_DOCKER_3 Dockerfile:1 β€” Ensure that a user for the container has been created
D4 Β· Code Duplication Β· Duplicated block (9 lines × 2) Β· Γ—2
  • Duplicated block (9 lines × 2) lib/asciinema/accounts.ex:247 β€” lib/asciinema/accounts.ex:247-255 | lib/asciinema/recordings.ex:543-551 β€” the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (9 lines × 2) lib/asciinema_admin/controllers/recording_controller.ex:127 β€” lib/asciinema_admin/controllers/recording_controller.ex:127-135 | lib/asciinema_admin/controllers/stream_controller.ex:98-106 β€” the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
D4 Β· Code Duplication Β· Duplicated block (7 lines × 2) Β· Γ—2
  • Duplicated block (7 lines × 2) lib/asciinema/asciicast/v2.ex:72 β€” lib/asciinema/asciicast/v2.ex:72-78 | lib/asciinema/asciicast/v3.ex:73-79 β€” before extracting anything, compare `lib/asciinema/asciicast/v2.ex` and `lib/asciinema/asciicast/v3.ex` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together β€” extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 2) lib/asciinema_admin/query_ui.ex:212 β€” lib/asciinema_admin/query_ui.ex:212-218 | lib/asciinema_admin/query_ui.ex:233-239 β€” 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.
D1 Β· Cyclomatic Complexity Β· QueryParser.parse_value (cyclomatic 34) Β· Γ—1
  • QueryParser.parse_value (cyclomatic 34) lib/asciinema_admin/query_parser.ex:111 β€” QueryParser.parse_value has cyclomatic complexity 34 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform β€” the same kind of value, with no behaviour of its own β€” a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D36 Β· Supply-chain Provenance & Signing Β· Unpinned build actions Β· Γ—1
  • Unpinned build actions β€” CI references GitHub Actions by a floating ref (@main / @tag) rather than a pinned commit SHA, weakening build integrity. 19 floating ref(s) across 3 workflow file(s). Each floating ref is itemized at file:line by the SAST (D29) lens.
D36 Β· Supply-chain Provenance & Signing Β· PR-triggered workflow without a permissions block Β· Γ—1
  • PR-triggered workflow without a permissions block β€” 2 workflow(s) triggered by pull_request declare no `permissions:` block (test.yml, nix.yml) and so run with the repository's default GITHUB_TOKEN scope, while 1 sibling workflow in the same repository is already scoped. Pull-request runs build the least-trusted code in the repository; give each of these workflows its own least-privilege block β€” `permissions: {contents: read}` at the top of the workflow, widened per job only where a job genuinely writes.
D4 Β· Code Duplication Β· Duplicated block (15 lines × 2) Β· Γ—1
  • Duplicated block (15 lines × 2) lib/asciinema/recordings.ex:445 β€” lib/asciinema/recordings.ex:445-459 | lib/asciinema/streaming.ex:316-330 β€” before extracting anything, compare `lib/asciinema/recordings.ex` and `lib/asciinema/streaming.ex` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together β€” extracting one helper per block leaves the fork in place.
D4 Β· Code Duplication Β· Duplicated block (11 lines × 2) Β· Γ—1
  • Duplicated block (11 lines × 2) lib/asciinema_web/controllers/recording_controller.ex:135 β€” lib/asciinema_web/controllers/recording_controller.ex:135-145 | lib/asciinema_web/controllers/recording_controller.ex:178-188 β€” 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.
D4 Β· Code Duplication Β· Duplicated block (10 lines × 2) Β· Γ—1
  • Duplicated block (10 lines × 2) lib/asciinema/gzip.ex:187 β€” lib/asciinema/gzip.ex:187-196 | lib/asciinema/zstd.ex:167-176 β€” the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
Recommendation β€” 8 finding(s)
D11 Β· Test Reliability Β· Test reliability not included Β· Γ—1
  • Test reliability not included β€” Test source is present (.exs, .ex) but the built-in reliability runner does not support this repository's ecosystem, so flakiness couldn't be assessed. Not scored β€” this is a gap in the analyzer's language coverage, not a finding about this repository.
D16 Β· Bus Factor Β· Off-boarding risk Β· Γ—1
  • Off-boarding risk: anonymized user #1 β€” If anonymized user #1 becomes unavailable, 54 significant file(s) lose their only recent owner: lib/asciinema/recordings.ex, lib/asciinema/accounts.ex, lib/asciinema/streaming.ex, lib/asciinema_web/controllers/recording_controller.ex, lib/asciinema_admin/query_parser.ex, native/svg_raster/src/lib.rs, lib/asciinema_admin/components/core_components.ex, lib/asciinema_web/controllers/recording_svg.ex (+46 more). Pair on, review, or document these before any departure.
D19 Β· Documentation Quality Β· The README mentions a public asciinema.org instance and self-hosting but does not state how to obtain or configure an account with your own server, which is critical for readers who want to run their own instance. Β· Γ—1
  • The README mentions a public asciinema.org instance and self-hosting but does not state how to obtain or configure an account with your own server, which is critical for readers who want to run their own instance. README.md β€” Add a short self-hosting walkthrough (or link to the self-hosting doc) that explains how to sign up for asciinema.org and set up your own server.
D31 Β· IaC & Container Security Β· Low IaC Β· Γ—1
  • Low IaC: DS-0026 Dockerfile β€” No HEALTHCHECK defined Without one the runtime only knows whether the process is alive, not whether it is serving, so a wedged container is restarted by nobody. The step: add a `HEALTHCHECK` to the image that probes the service the way a client would β€” this image already declares `EXPOSE 4000`, so a request to `localhost:4000` on the service's own health or root route, exiting non-zero when it does not answer, is the probe β€” and give it an `--interval`, a `--timeout` and a `--start-period` long enough to cover startup. If the image ships no HTTP client, probe with whatever the runtime already has, or declare the check in the orchestrator instead and say so here.
D36 Β· Supply-chain Provenance & Signing Β· No build provenance Β· Γ—1
  • No build provenance β€” No SLSA provenance generation or build attestation found in CI β€” nothing binds a released artifact to the build that produced it, so a consumer cannot tell your artifact from a substituted one. On GitHub Actions, `actions/attest-build-provenance` (or slsa-github-generator) emits one from the job's own OIDC identity; elsewhere, run `cosign attest` over the released artifact from the release pipeline and publish the attestation beside it.
D36 Β· Supply-chain Provenance & Signing Β· No artifact signing Β· Γ—1
  • No artifact signing β€” No artifact signing found in CI β€” sign your released artifacts with whatever your ecosystem ships (a GPG/minisign detached signature β€” or `cosign sign-blob` β€” over the release archives, or over a checksum file published alongside them, cosign/sigstore for container images) so consumers can verify what you built.
D36 Β· Supply-chain Provenance & Signing Β· No SBOM Β· Γ—1
  • No SBOM β€” No SBOM generation or committed SBOM found β€” produce one with what your ecosystem ships (`syft` (or `anchore/sbom-action` in CI) over the source tree or released image). Publish it as a release asset (`*.spdx.json` / `*.cdx.json`) so consumers can see what they are installing.
D8 Β· Code Coverage Β· Coverage not included Β· Γ—1
  • Coverage not included β€” suite not readable by the collector β€” Coverage NOT MEASURED: test source is present (.exs, .ex) but the built-in coverage collector has no runner for this repository's ecosystem β€” so this suite was never executed by it. Not scored β€” this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (lcov β€” `mix test --cover` with `excoveralls` (`mix coveralls.lcov`)) into the repo working tree before the scan β€” a CI step is the usual place, since the artefact is commonly gitignored.
Info β€” 2 finding(s)
D12 Β· Dependency Hygiene Β· Dependency hygiene not measured Β· Γ—1
  • Dependency hygiene not measured β€” dependency manifest found but not parsed for hygiene β€” This repository's dependency manifests (a Cargo manifest and package.json) were found, but this pass cannot parse them 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 D38 wherever the manifest is OSV-readable.
D22 Β· Internal API Consistency Β· No exposed public API Β· Γ—1
  • No exposed public API β€” No intentionally-exposed types (IsPackable or .Contracts) to evaluate.

Appendix B β€” Reproduction & audit trail

Every external tool invocation behind a deep-scan dimension β€” the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative β€” never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json β€” kept out of this table so the rendered report stays byte-identical across runs of the same commit.

DimensionToolVersionCommandFindingsRaw output
D28 Β· Secrets (history)gitleaksβ€”gitleaks detect --no-banner --report-format json --report-path /dev/stdout --exit-code 0 --source .3artifacts/raw/gitleaks-history.json
D29 Β· Static Analysis (SAST)semgrepβ€”semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --json --quiet --timeout 0 --metrics off .14artifacts/raw/semgrep.json
D30 Β· Dependency Vulnerabilitiesnone (no readable dependency manifest)β€”none (no readable dependency manifest): not present in this environment0β€”
D31 Β· IaC & Container Securitytrivyβ€”trivy config --format json --quiet .6artifacts/raw/trivy-config.json
D32 Β· Data Compliance (PII/GDPR)semgrepβ€”semgrep: not applicable β€” No PII/GDPR-handling patterns detected (p/gdpr ruleset) β€” no data-compliance surface to assess.0β€”
D33 Β· JS/npm Dependency Vulnerabilitiestrivyβ€”trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update0β€”
D37 Β· Vulnerability-disclosure Policydisclosureβ€”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β€”
D38 Β· OSV Dependency Vulnerabilitiesosv-scannerβ€”osv-scanner --format json --recursive .8artifacts/raw/osv-scanner.json
D40 Β· Network Egress Confinementruntime-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 Confinementruntime-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 Enforcementruntime-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β€”

Run 019fcfaf-880d-7aad-9764-e2048e3539ed Β· every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

Machine-readable and reproducible from this commit + frozen rubric β€” drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.

⬇ Findings, MITRE CWE-tagged .sarif⬇ Health changelog .md