Repository navigation
v3.18.0: import findings judged by provider evidence, local-only REST
pip install ai-slop-detector==3.18.0
npx ai-slop-detector@3.18.0 --project .Summary
Python import findings are judged by which distribution provides the import
and where that evidence comes from, instead of by spelling and by what the
analyzer happens to have installed. The REST API answers local clients only,
and the experimental slop_detector.auth package is removed. Scores change
where import findings occur. Every change is listed in the
Changelog; the design, the evidence ladder and the limits
are in docs/IMPORT_PROVIDER_RESOLUTION.md.
What moves when you upgrade
- Declared dependencies with another import name are declared:
Pillow
->PIL,scikit-learn->sklearnand the like are
runtime_unavailable_dependency(MEDIUM) ordeclared_outside_primary_metadata
(LOW) where the package is not installed, notphantom_import. Import names
are compared exactly. PEP 735[dependency-groups]and[tool.uv] dev-dependenciesare read. phantom_importis HIGH at most (it was CRITICAL) and means that no
installed distribution, declaration or known provider supplies the name. Its
suggestion asks which package was meant before anything is installed or
declared. The CI gate'scritical_patterns_fail, purity,has_critical,
history and governance no longer count it as CRITICAL.- New rules:
undeclared_dependency(the provider is known but not
declared; MEDIUM, HIGH only when the project's own environment identifies the
one provider) andprovider_conflict(MEDIUM: the installed module comes
from another distribution than the declared one;phantom_memberno longer
checks names against it). - The project's own virtual environment (a directory with
pyvenv.cfg
directly in the project root) is read as files, never executed; markers and
platform tests are evaluated for it. Import resolution stays inside the scan
root and does not follow links out of it. - Evidence on every import finding (
evidence: import name, provider,
provider state, environment, and more where it applies); other findings
serialize as before. - Scores: score contract
3.18(an analyzer-onlyprovider_conflictadds
nothing;undeclared_dependencyadds once per file and provider) and the
phantom_importseverity change; analysis cacheanalysis-cache-v55. - REST API: no cross-origin access by default and only loopback host
names; a browser page of another origin that called it must be listed with
create_app(allowed_origins=[...]). - Removed:
slop_detector.auth(simulated OAuth, SAML without signature
verification, never used by the analyzer, CLI, MCP server or REST API). - Known limits: the shipped distribution-to-import mapping is
hand-curated (10 of 30 entries verified against local artifacts); the names
a relative import asks for are not checked; the MCP server still frames
messages withContent-Length(a server on the official MCP SDK is planned
for 3.19).
VS Code extension
The extension stays 3.17.0 for now: it bundles the 3.17.0 npm wrapper and runs the Python package of its configured interpreter, so installing 3.18.0 in that interpreter gives it the 3.18.0 analysis.