feat: verify S217 @admccc bounty — YES_WITH_CAVEATS, registry coupling confirmed#343
Open
xliry wants to merge 4 commits intopeteromallet:mainfrom
Open
feat: verify S217 @admccc bounty — YES_WITH_CAVEATS, registry coupling confirmed#343xliry wants to merge 4 commits intopeteromallet:mainfrom
xliry wants to merge 4 commits intopeteromallet:mainfrom
Conversation
… (#451) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…eld confirmed (#456) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…g confirmed (#532) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue: #204
Submission: #204 (comment)
Author: @admccc
Problem (in our own words)
The submission claims
desloppify/base/registry.pyis a "god object" that couples unrelated policy — display order, scoring dimensions, action types, LLM judgment routing, queue thresholds, and review invalidation — all in oneDetectorMetadataclass. It argues detector changes are no longer local because the registry is imported across engine, scoring, queueing, narrative, and CLI layers.Evidence
base/registry.py:45-56—DetectorMetafrozen dataclass has 12 fields spanning identity, scoring, planning, queueing, LLM routing, and review invalidationbase/registry.pyacross engine (_plan/,_scoring/,_work_queue/,concerns.py), CLI (cli.py,scan/reporting/), narrative (intelligence/narrative/), and base (output/issues.py) layers6eb2065Fix
No fix needed — verdict is YES_WITH_CAVEATS. The coupling is real but the registry pattern is a deliberate, pragmatic design choice. The module is data-only (frozen dataclass + ~6 getter functions) — not a behavior-rich god object.
Verdict
Final verdict: YES_WITH_CAVEATS
Scores
Summary
The registry IS a wide coupling point — DetectorMeta has 12 fields spanning display, scoring, planning, queue thresholds, and review staleness, imported by 20+ production files across all layers. However, calling it a "god object" overstates the issue: registry.py is a data-only metadata table (frozen dataclass + dict) with ~6 small getter functions, not a behavior-rich class. This is a deliberate registry pattern where centralization prevents config drift. The alternative (scattering config across modules) would create worse maintenance problems.
Why Desloppify Missed This
responsibility_cohesiondetector focuses on module-level responsibilities (too many functions), not dataclass field cohesion across behavioral concernsVerdict Files
Generated with Lota