charkost/prosopite
67.4
Adequate · 6 November 2026
992
lines of production code
Ruby
primary language
4
measurements over time
What this system is
Behavioural changes
5 commits (0 fixes) modifying lib/prosopite/middleware
A change to existing behaviour in lib/prosopite/middleware — 5 commits, 1 file: “Speed up ignore\_location\_paths, allow\_stack\_paths and finish”; “Show N+1 queries in a footer and the browser console”; “Show the N+1 queries of Turbo, fetch and XHR requests”; and 2 more. Also in this area: 5 commits (3 fixes) fixing lib/prosopite; 1 commit (0 fixes) modifying lib/prosopite; Added Rack and Sidekiq middleware for Prosopite scanning.
lib/prosopite/middleware · medium confidence · unverified
Thread-safe scanning with pause/resume and configurable allow lists
Prosopite now stores scan state and query metrics in thread-local variables instead of instance variables, ensuring thread safety during concurrent scans. The library introduces \Prosopite.pause\ and \Prosopite.resume\ methods to temporarily suspend scanning within blocks, and adds configuration options like \ignore\_pauses\, \min\_n\_queries\, and \ignore\_queries\. The previous \whitelist\ configuration has been renamed to \allow\_stack\_paths\ (with a deprecation warning for the old name) and now supports regex matching against stack traces. Additionally, the \scan\ method now returns the result of the provided block, and fingerprinting uses \pg\_query\ for non-MySQL databases while supporting the Trilogy adapter. Also in this area: 5 commits (3 fixes) fixing lib; 3 commits (0 fixes) modifying lib; 1 commit (0 fixes) modifying lib.
lib · medium confidence · unverified
Fixes
3 commits (2 fixes) fixing lib/generators
A fix in lib/generators — 3 commits (2 fixs), 2 files: “Fix the smaller findings of the review, and update the docs”; “Improve the setup of the generator”; “Harden fix suggestions, follow the Rails CSP and keep paused scans”.
lib/generators · medium confidence · unverified
Test coverage
8 commits adding/updating tests in test
Test coverage in test — 8 commits (4 fixs), 8 files: “Make pg\_query optional, log to Rails by default, add pause\_during”; “Keep the encoding of pages that the Rack middleware adds to”; “Fix the ASCII header test and a SimpleCov deprecation”; and 5 more. Also in this area: Initial test suite for Prosopite N+1 detection; 1 commit adding/updating tests in test.
test · high confidence · unverified
Dependencies
Upgrade to Rails 8.0 and add development dependencies
The gemspec has been updated to version 2.2.0 and the license changed from MIT to Apache-2.0. The dependency manifest now includes Rails 8.0.1 (via activerecord and railties) and adds several development dependencies including pry, minitest, factory\_bot, sqlite3, and minitest-reporters. The pg\_query gem is also explicitly listed as a dependency.
(dependencies) · high confidence
Housekeeping
Prosopite version bumped to 2.2.0
The Prosopite library version has been updated from 0.1.0 to 2.2.0 in the version definition file.
lib/prosopite · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 60 → 67 (+7.1)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 76 → 75 (-1.0)
- Architecture 69 → 69 (+0.0)
- Maturity 57 → 67 (+9.3)
- Readiness 54 → 63 (+8.9)
- Security 88 → 100 (+11.8)
Resolved (24)
- Ambiguous naming convention. scan? typically implies a predicate (boolean check) in Ruby conventions, while scan implies an action. However, without documentation, it is unclear if scan? checks if scanning is active or if it triggers a scan. If scan? is a predicate, it duplicates the intent of checking state which might be better served by enabled? or a specific scanning? method. If it triggers a scan, the ? suffix is misleading.
- Critical CVE: [GHSA redacted] (Gemfile.lock)
- Critical vulnerability: [GHSA redacted] (Gemfile.lock)
- High CVE: [GHSA redacted] (Gemfile.lock)
- High CVE: [GHSA redacted] (Gemfile.lock)
- High CVE: [GHSA redacted] (Gemfile.lock)
- Inconsistent verb usage for state toggles. start_raise/stop_raise use imperative verbs, while raise? is a predicate. This is a minor inconsistency but raise? likely checks the state of the raise property, whereas start_raise/stop_raise modify it. The naming start_raise is slightly awkward compared to enable_raise or set_raise(true).
- Low CVE: [GHSA redacted] (Gemfile.lock)
- Low CVE: [GHSA redacted] (Gemfile.lock)
- Medium CVE: [GHSA redacted] (Gemfile.lock)
- Medium CVE: [GHSA redacted] (Gemfile.lock)
- Medium CVE: [GHSA redacted] (Gemfile.lock)
- Medium CVE: [GHSA redacted] (Gemfile.lock)
- Medium vulnerability: [GHSA redacted] (Gemfile.lock)
- Medium: security finding (details withheld)
- Orphaned file (lib/prosopite.rb)
- Orphaned files with no living knowledge
- Outdated: factory_bot
- Outdated: minitest
- Outdated: minitest-reporters
- …and 4 more
New (4)
- Banned license: sidekiq
- Off-boarding risk: anonymized user #1
- Repeated repair: lib/prosopite/fixes.rb (lib/prosopite/fixes.rb)
- TooManyMethods: Prosopite (lib/prosopite.rb)
Changes since last survey
- 63 commits — 54 feature/other, 9 fixes
By area
- (root) — 37 commits
- lib/prosopite.rb — 10 commits
- (repo) — 9 commits
- lib/prosopite — 4 commits
- lib/generators — 2 commits
- test/test_helper.rb — 1 commit
Notable commits
- fix: Add the fix to the changelog
- fix: Fix the ASCII header test and a SimpleCov deprecation
- fix: Fix the Mongoid example and some wording in the README
- fix: Fix the smaller findings of the review, and update the docs
- fix: Harden fix suggestions, follow the Rails CSP and keep paused scans
- fix: Index the associations for fix suggestions
- fix: Show where to add the includes of a fix suggestion
- fix: Suggest fixes in N+1 notifications
- fix: Suggest fixes only for queries that preloading removes
- change: Add GitHub annotations and a JSON report of N+1 queries
- change: Add Prosopite.allow_associations
- change: Add Prosopite.focus_stack_paths
- change: Add a changelog
- change: Add a demo video to the README
- change: Add a rails generate prosopite:install generator
- change: Add a todo file to ignore known N+1 queries
- change: Add an RSpec matcher and Minitest assertions for N+1 queries
- change: Add sample_rate and min_duration_ms for production
- change: Add the footer only to buffered response bodies
- change: Add the speedups to the changelog
- …and 43 more
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
charkost/prosopite was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 6 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 9629dbb92b356caf2438d4afd21961bd4f2ff104 — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.2+preprod-5c4e66d9318b.