Leaderboard github.com
thade/speakerctrl
speakerctrl`is the central control daemon for SpeakerOS. It turns a Raspberry Pi into a single-purpose, appliance-style network speaker.
AI provenance
0%
explicit
- Confidence
- 86%
- Coverage
- 100%
Estimated share of AI-generated code. Explicit attribution is a lower bound.
Code quality
73/100
adequate
- Confidence
- 90%
- Coverage
- 100%
Complexity, duplication, lint density, tests, CI, docs and review process.
Security
76/100
adequate
- Confidence
- 85%
- Coverage
- 100%
Secrets, static analysis, vulnerable dependencies, CI and supply-chain posture.
AI provenance
0% explicit
Explicit AI attribution on 0% of first-party code added; an estimated 0% including velocity signals.
How the score is built
- Explicitly attributed share0%
- Unattributed share in AI-pace bursts0%
- Estimated AI-generated share0%
- AI tool configuration files1
- Work sessions at AI pace0
- Releases at AI pace0
- Coding-style index (1.0+ means possible)1.90
Attributed AI tools
| Tool | Commits | Lines added | First seen | Last seen |
|---|---|---|---|---|
| Claude Code | 6 | 2 | 2026-02-17 | 2026-02-17 |
Lines added per month all AI-attributed share
- 2026-018,385 · 0% AI
- 2026-022 · 100% AI
Findings in AI-attributed lines vs the rest
From git blame: 2 lines trace to AI-attributed commits, 6,851 to others. Too few lines in one group for a fair comparison. Reported, not scored.
| Findings per 1,000 lines | AI-attributed | Other | Ratio |
|---|---|---|---|
| Code quality | 0.00 | 0.15 | — |
| Security | 0.00 | 0.29 | — |
Evidence by analyzer
Explicit AI attributionok7 items
- Claude Code: 6 attributed commits, 2 lines added
- Claude Code: trailer 'Co-Authored-By: Claude'
- Claude Code: trailer 'Co-Authored-By: Claude'
- Claude Code: trailer 'Co-Authored-By: Claude'
- Claude Code: trailer 'Co-Authored-By: Claude'
- Claude Code: trailer 'Co-Authored-By: Claude'
- Claude Code: trailer 'Co-Authored-By: Claude'
- attributed_commit_share
- 9.2%
- attributed_commits
- 6
- attributed_loc
- 2
- attributed_loc_share
- 0.0%
- commits
- 65
- effective_loc
- 8,387
- tools_detected
- 1
AI tool configurationok1 item
- artifacts
- 1
- earliest_adoption
- 2026-01-09
- tools_configured
- 1
- workflow_agents
- 0
Commit velocityok
- excluded_import_loc
- 0
- flagged_loc
- 0
- flagged_loc_share
- 0.0%
- flagged_units
- 0
- max_loc_per_hour
- 707.23
- measured_loc
- 8,387
- median_loc_per_hour
- 164
- pr_timed_units
- 0
- pre_ai_era_burst_loc
- 0
- pre_ai_era_bursts
- 0
- pre_ai_era_measured_loc
- 0
- work_units
- 16
Release velocityok
- flagged_releases
- 0
- max_loc_per_day
- 2,512.30
- releases
- 4
Coding styleok7 items
- step-by-step narration comment: // First, try to find a preferred output that's available
- placeholder or demo-only phrasing: // In a real implementation, we would:
- placeholder or demo-only phrasing: // In a real implementation, this would:
- placeholder or demo-only phrasing: // In a real scenario, we'd try to restart the service and check if it comes back up
- placeholder or demo-only phrasing: // In a real implementation, this would use systemd to restart the service
- placeholder or demo-only phrasing: // This is a placeholder implementation
- placeholder or demo-only phrasing: // In a real system, we would use systemd commands to restart the service
- count:assistant_voice
- 0
- count:emoji_in_code
- 0
- count:narrated_steps
- 1
- count:placeholder
- 6
- files:assistant_voice
- 0
- files:emoji_in_code
- 0
- files:narrated_steps
- 1
- files:placeholder
- 2
- index
- 1.90
- lines_scanned
- 6,853
- per_kloc:assistant_voice
- 0
- per_kloc:emoji_in_code
- 0
- per_kloc:narrated_steps
- 0.15
- per_kloc:placeholder
- 0.88
Findings in AI-written linesok
- ai_lines
- 2
- blame_failures
- 0
- files_blamed
- 17
- other_lines
- 6,851
- quality:ai_findings
- 0
- quality:ai_per_kloc
- 0
- quality:other_findings
- 1
- quality:other_per_kloc
- 0.15
- security:ai_findings
- 0
- security:ai_per_kloc
- 0
- security:other_findings
- 2
- security:other_per_kloc
- 0.29
Code quality
73 adequate
Code quality is adequate: test-to-source ratio 0.01, CI runs tests; 7% of function code in complex or long functions; 6% duplicated lines. Weakest area: testing.
How the score is built
- Complexity82
- Duplication69
- Lint and smells99
- Tests and CI56
- Documentation65
- Type safetynot measured
- Review processnot measured
Evidence by analyzer
Complexity (lizard)ok2 items
- run_monitor in crates/speakerctrl-daemon/src/bluetooth_monitor.rs: complexity 50, 172 lines
- main in crates/speakerctrl-daemon/src/main.rs: complexity 27, 151 lines
- complex_functions
- 2
- function_nloc
- 4,757
- functions
- 368
- long_functions
- 2
- many_param_functions
- 0
- mean_ccn
- 2.75
- p90_ccn
- 6
- risky_nloc_share
- 6.8%
Duplication (jscpd)ok8 items
- 6+ duplicated lines: crates/speakerctrl-core/src/persist.rs:286 and crates/speakerctrl-daemon/src/network.rs:1423
- 6+ duplicated lines: crates/speakerctrl-daemon/src/audio.rs:383 and crates/speakerctrl-daemon/src/pipewire_monitor.rs:151
- 6+ duplicated lines: crates/speakerctrl-daemon/src/audio.rs:469 and crates/speakerctrl-daemon/src/audio.rs:495
- 6+ duplicated lines: crates/speakerctrl-daemon/src/bluetooth.rs:131 and crates/speakerctrl-daemon/src/bluetooth.rs:143
- 6+ duplicated lines: crates/speakerctrl-daemon/src/bluetooth_monitor.rs:155 and crates/speakerctrl-daemon/src/bluetooth_monitor.rs:216
- 6+ duplicated lines: crates/speakerctrl-daemon/src/main.rs:647 and crates/speakerctrl-daemon/src/main.rs:663
- 6+ duplicated lines: crates/speakerctrl-daemon/src/network.rs:185 and crates/speakerctrl-daemon/src/network.rs:949
- 6+ duplicated lines: crates/speakerctrl-daemon/src/web.rs:444 and crates/speakerctrl-daemon/src/web.rs:464
- compared_lines
- 4,794
- duplicated_lines
- 295
- duplicated_share
- 6.2%
- files
- 17
Lintok
- category:correctness
- 1
- findings
- 1
- scanned_lines
- 6,853
- weighted_findings
- 0.25
Tests and CIok2 items
- CI config: .github/workflows/ci.yml
.github/workflows/ci.yml - CI runs tests (go test, cargo test)
- check:ci_present
- yes
- check:ci_runs_lint
- no
- check:ci_runs_tests
- yes
- check:has_tests
- yes
- check:test_ratio
- no
- check:tests_cochange
- no
- ci_files
- 1
- cochange_commits
- 45
- cochange_share
- 2.2%
- source_lines
- 6,853
- test_lines
- 59
- test_ratio
- 0.01
Documentationok2 items
- README.md
README.md - LICENSE
LICENSE
- check:changelog
- no
- check:contributing
- no
- check:license
- yes
- check:readme
- yes
- readme_lines
- 95
Type safetyskipped
Security
76 adequate
Security posture is adequate: 9 known vulnerabilities in 9 dependencies; 1 high-severity workflow issues. Weakest area: posture.
How the score is built
- Secrets100
- Static analysis (SAST)98
- Vulnerable dependencies64
- CI workflows77
- Security posture0
- OpenSSF Scorecardnot measured
Evidence by analyzer
OpenSSF Scorecardskipped
no published OpenSSF Scorecard result for this repo
Package registriesok
- checked
- 12
- declared
- 12
- lookup_errors
- 0
- missing
- 0
- recent
- 0
Secrets (gitleaks)ok
- secrets_current
- 0
- secrets_history
- 0
- secrets_low_confidence
- 0
- secrets_nonprod
- 0
Static analysis (opengrep)ok
- findings
- 2
- findings_high
- 0
- findings_low
- 2
- findings_medium
- 0
- parse_errors
- 0
- scanned_lines
- 6,853
- weighted_findings
- 0.50
Dependencies (osv-scanner)ok
- penalty
- 27
- vulnerabilities
- 9
- vulnerable_packages
- 9
- vulns_critical
- 0
- vulns_high
- 0
- vulns_low
- 0
- vulns_medium
- 1
- vulns_unknown
- 8
CI workflows (zizmor)ok
- findings
- 3
- findings_high
- 1
- findings_low
- 0
- findings_medium
- 2
- penalty
- 15.60
- workflows
- 1
Security postureok2 items
- crates/speakerctrl-core/Cargo.toml has no lockfile alongside it (unpinned dependencies)
crates/speakerctrl-core/Cargo.toml - crates/speakerctrl-daemon/Cargo.toml has no lockfile alongside it (unpinned dependencies)
crates/speakerctrl-daemon/Cargo.toml
- check:dependency_updates
- no
- check:lockfiles
- no
- check:security_policy
- no
- check:signed_commits
- no
- signed_commit_share
- 3.1%
- unpinned_manifests
- 2
Release downloadsok
- binary_assets
- 0
- signals
- 0
- suspicious
- 0
Findings
1 high11 medium3 low
| Severity | Rule | Location | Message | Tool |
|---|---|---|---|---|
| high | zizmor/unpinned-uses |
.github/workflows/ci.yml:18 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| medium | zizmor/excessive-permissions |
.github/workflows/ci.yml:13 | overly broad permissions [confidence medium] | CI workflows (zizmor) |
| medium | zizmor/artipacked |
.github/workflows/ci.yml:18 | credential persistence through GitHub Actions artifacts [confidence low] | CI workflows (zizmor) |
| medium | osv/GHSA-434x-w66g-qw3r |
Cargo.lock | [email protected] (crates.io) is affected by RUSTSEC-2026-0007, GHSA-434x-w66g-qw3r | Dependencies (osv-scanner) |
| medium | osv/GHSA-cq8v-f236-94qc |
Cargo.lock | [email protected] (crates.io) is affected by RUSTSEC-2026-0097, GHSA-cq8v-f236-94qc | Dependencies (osv-scanner) |
| medium | osv/RUSTSEC-2026-0221 |
Cargo.lock | [email protected] (crates.io) is affected by RUSTSEC-2026-0221 | Dependencies (osv-scanner) |
| medium | osv/RUSTSEC-2026-0370 |
Cargo.lock | [email protected] (crates.io) is affected by RUSTSEC-2026-0370 | Dependencies (osv-scanner) |
| medium | osv/RUSTSEC-2026-0371 |
Cargo.lock | [email protected] (crates.io) is affected by RUSTSEC-2026-0371 | Dependencies (osv-scanner) |
| medium | osv/RUSTSEC-2026-0372 |
Cargo.lock | [email protected] (crates.io) is affected by RUSTSEC-2026-0372 | Dependencies (osv-scanner) |
| medium | osv/RUSTSEC-2026-0386 |
Cargo.lock | [email protected] (crates.io) is affected by RUSTSEC-2026-0386 | Dependencies (osv-scanner) |
| medium | osv/RUSTSEC-2026-0441 |
Cargo.lock | [email protected] (crates.io) is affected by RUSTSEC-2026-0441 | Dependencies (osv-scanner) |
| medium | osv/RUSTSEC-2026-0486 |
Cargo.lock | [email protected] (crates.io) is affected by RUSTSEC-2026-0486 | Dependencies (osv-scanner) |
| low | opengrep/bash.lang.correctness.unquoted-variable-expansion-in-command |
build_package.sh:51 | Variable expansions must be double-quoted so as to prevent being split into multiple pieces according to whitespace or whichever separator is specified by the IFS variable. If you really wish to split the variable's contents, you may... | Lint |
| low | opengrep/rust.lang.security.temp-dir |
crates/speakerctrl-core/src/persist.rs:296 | temp_dir should not be used for security operations. From the docs: 'The temporary directory may be shared among users, or between processes with different privileges; thus, the creation of any files or directories in the temporary... | Static analysis (opengrep) |
| low | opengrep/rust.lang.security.temp-dir |
crates/speakerctrl-daemon/src/network.rs:1441 | temp_dir should not be used for security operations. From the docs: 'The temporary directory may be shared among users, or between processes with different privileges; thus, the creation of any files or directories in the temporary... | Static analysis (opengrep) |
Tools and coverage
Every analyzer that ran on this commit. A failed or skipped tool is a coverage gap: its share of the score is left out and the coverage figure drops.
| Analyzer | Pillar | Status | Version | Findings | Note |
|---|---|---|---|---|---|
| AI tool configuration | AI provenance | ok | signatures-v1 | 0 | |
| Explicit AI attribution | AI provenance | ok | signatures-v1 | 0 | |
| Release velocity | AI provenance | ok | prov-4 | 0 | |
| Coding style | AI provenance | ok | — | 0 | |
| Commit velocity | AI provenance | ok | prov-4 | 0 | |
| Findings in AI-written lines | AI provenance | ok | git-blame | 0 | |
| Complexity (lizard) | Code quality | ok | lizard 1.25.1 | 0 | |
| Documentation | Code quality | ok | — | 0 | |
| Duplication (jscpd) | Code quality | ok | repotrust-dup-w6 | 0 | |
| Lint | Code quality | ok | opengrep 1.33.1; rules f1d2b562b414 | 1 | |
| Tests and CI | Code quality | ok | — | 0 | |
| Type safety | Code quality | skipped | — | 0 | |
| CI workflows (zizmor) | Security | ok | zizmor 1.32.0 | 3 | |
| Dependencies (osv-scanner) | Security | ok | osv-scanner version: 2.7.1 | 9 | |
| Release downloads | Security | ok | — | 0 | |
| Security posture | Security | ok | — | 0 | |
| Package registries | Security | ok | — | 0 | |
| Static analysis (opengrep) | Security | ok | opengrep 1.33.1; rules f1d2b562b414 | 2 | |
| OpenSSF Scorecard | Security | skipped | — | 0 | no published OpenSSF Scorecard result for this repo |
| Secrets (gitleaks) | Security | ok | gitleaks 8.30.1 | 0 |
Score history
Scores from different scoring versions aren't directly comparable.
| Scored | Commit | Scoring | AI provenance | Quality | Security |
|---|---|---|---|---|---|
| 2026-11-14 | 626df5578456 | prov-5+qual-2+sec-2 | 0% | 73 | 76 |
| 2026-11-14 | 626df5578456 | prov-4+qual-2+sec-2 | 0% | 73 | 76 |
Full text report
- Repository: https://github.com/thade/speakerctrl
- Commit:
626df55784566ee47e49d4d9228a8582f0a14bc9 - Generated: 2026-11-14T14:52:07+00:00
- Scorer 0.1.0, scoring prov-5+qual-2+sec-2, report schema v2
Scores
| Pillar | Score | Signal | Confidence | Coverage |
|---|---|---|---|---|
| AI provenance (estimated AI-generated share) | 0 | explicit | 86% | 100% |
| Code quality | 73 | adequate | 90% | 100% |
| Security | 76 | adequate | 85% | 100% |
AI provenance
Explicit AI attribution on 0% of first-party code added; an estimated 0% including velocity signals.
- Explicitly attributed share (lower bound): 0.0%
- Unattributed share in AI-consistent velocity bursts: 0.0%
- Estimated AI-generated share: 0.0%
| AI tool | Attributed commits | Lines added |
|---|---|---|
| Claude Code | 6 | 2 |
- AI tooling configured in repo: generic-agent
Current source lines last changed by AI-attributed commits: 2 of 6,853.
Too few lines in one group to compare finding densities.
- Stylometry index: 1.90 per 1,000 lines (narrated steps 1, placeholders 6, assistant phrasing 0, emoji 0). Reported as a signal, not scored.
| Month | Lines added | Attributed to AI |
|---|---|---|
| 2026-01 | 8,385 | 0% |
| 2026-02 | 2 | 100% |
Evidence
- Claude Code: trailer 'Co-Authored-By: Claude' (626df5578456)
- Claude Code: trailer 'Co-Authored-By: Claude' (7e8cc8b991ed)
- Claude Code: trailer 'Co-Authored-By: Claude' (d1e1c4faca5a)
- Claude Code: trailer 'Co-Authored-By: Claude' (27c0b5062f5d)
- Claude Code: trailer 'Co-Authored-By: Claude' (a08d97929eb2)
- Claude Code: trailer 'Co-Authored-By: Claude' (f2a26d81cac5)
- AGENTS.md (generic-agent configuration) (AGENTS.md)
- step-by-step narration comment: // First, try to find a preferred output that's available (crates/speak)
- placeholder or demo-only phrasing: // In a real implementation, we would: (crates/speak)
- placeholder or demo-only phrasing: // In a real implementation, this would: (crates/speak)
- placeholder or demo-only phrasing: // In a real scenario, we'd try to restart the service and check if it comes back up (crates/speak)
- placeholder or demo-only phrasing: // In a real implementation, this would use systemd to restart the service (crates/speak)
- placeholder or demo-only phrasing: // This is a placeholder implementation (crates/speak)
- placeholder or demo-only phrasing: // In a real system, we would use systemd commands to restart the service (crates/speak)
AI provenance describes how code was produced; it is not a quality judgment. Unless attribution is explicit, these are signals consistent with AI generation, not proof. Squash/rebase workflows, imported code, and rewritten history reduce accuracy.
Code quality
Code quality is adequate: test-to-source ratio 0.01, CI runs tests; 7% of function code in complex or long functions; 6% duplicated lines. Weakest area: testing.
| Area | Score |
|---|---|
| Complexity (lizard) | 82 |
| Duplication | 69 |
| Code smells (Opengrep) | 99 |
| Tests and CI | 56 |
| Documentation | 65 |
| Type safety | n/a |
| Process (Scorecard review/maintenance) | n/a |
- Functions: 368; mean complexity 2.8, 90th percentile 6; 2 complex and 2 long functions
- Duplicated lines: 6.2% of 4,794 compared
- Tests: 59 test lines for 6,853 source lines (ratio 0.01); CI test commands: go test, cargo test; 2% of recent source commits also change tests
- Docs missing or thin: contributing, changelog
Most complex functions:
- run_monitor in crates/speakerctrl-daemon/src/bluetooth_monitor.rs: complexity 50, 172 lines
- main in crates/speakerctrl-daemon/src/main.rs: complexity 27, 151 lines
Security
Security posture is adequate: 9 known vulnerabilities in 9 dependencies; 1 high-severity workflow issues. Weakest area: posture.
| Area | Score |
|---|---|
| Secrets (gitleaks, tree + history) | 100 |
| Static analysis (Opengrep) | 98 |
| Vulnerable dependencies (OSV) | 64 |
| CI workflows (zizmor) | 77 |
| Posture (policy, updates, signing, lockfiles) | 0 |
| OpenSSF Scorecard | n/a |
-
Known vulnerabilities: 9 in 9 packages (critical 0, high 0, medium 1, low 0)
-
Posture checks passed: none; missing: security policy, dependency updates, signed commits, lockfiles
Top findings
| Severity | Finding | Location |
|---|---|---|
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/ci.yml:18 |
| medium | osv/GHSA-434x-w66g-qw3r: [email protected] (crates.io) is affected by RUSTSEC-2026-0007, GHSA-434x-w66g-qw3r |
Cargo.lock |
| medium | osv/RUSTSEC-2026-0221: [email protected] (crates.io) is affected by RUSTSEC-2026-0221 |
Cargo.lock |
| medium | osv/RUSTSEC-2026-0441: [email protected] (crates.io) is affected by RUSTSEC-2026-0441 |
Cargo.lock |
| medium | osv/GHSA-cq8v-f236-94qc: [email protected] (crates.io) is affected by RUSTSEC-2026-0097, GHSA-cq8v-f236-94qc |
Cargo.lock |
| medium | osv/RUSTSEC-2026-0486: [email protected] (crates.io) is affected by RUSTSEC-2026-0486 |
Cargo.lock |
| medium | osv/RUSTSEC-2026-0386: [email protected] (crates.io) is affected by RUSTSEC-2026-0386 |
Cargo.lock |
| medium | osv/RUSTSEC-2026-0371: [email protected] (crates.io) is affected by RUSTSEC-2026-0371 |
Cargo.lock |
| medium | osv/RUSTSEC-2026-0370: [email protected] (crates.io) is affected by RUSTSEC-2026-0370 |
Cargo.lock |
| medium | osv/RUSTSEC-2026-0372: [email protected] (crates.io) is affected by RUSTSEC-2026-0372 |
Cargo.lock |
| medium | zizmor/artipacked: credential persistence through GitHub Actions artifacts [confidence low] |
.github/workflows/ci.yml:18 |
| medium | zizmor/excessive-permissions: overly broad permissions [confidence medium] |
.github/workflows/ci.yml:13 |
| low | opengrep/rust.lang.security.temp-dir: temp_dir should not be used for security operations. From the docs: 'The temporary directory may be shared among users, or between processes with different privileges; thus, the creation of any files or directories in the temporary directory must use a secure method to create a uniquely named file. [confidence high] |
crates/speakerctrl-core/src/persist.rs:296 |
| low | opengrep/rust.lang.security.temp-dir: temp_dir should not be used for security operations. From the docs: 'The temporary directory may be shared among users, or between processes with different privileges; thus, the creation of any files or directories in the temporary directory must use a secure method to create a uniquely named file. [confidence high] |
crates/speakerctrl-daemon/src/network.rs:1441 |
Static signals only: the scorer never runs the project's code. Secret findings are pattern matches that were not verified, and secret values are never stored.
Repository profile
- Source lines: 6,853; test lines: 59
| Language | Lines |
|---|---|
| Rust | 6,802 |
| Shell | 110 |