Part 1 ended in early November with the detector measuring what it claimed to measure, more or less. The work that followed was about everything around the analysis: the report that carries a finding to a developer or an agent, the tests that are supposed to catch regressions, and the release process itself. Each of them turned out to need the same scrutiny as the rules.
The reading rules from Part 1 still apply. The studies have different scopes and denominators, they don't add up to an accuracy figure, and repository studies are reported as anonymized aggregates.
November 12: the report became something to test
Version 3.14 rebuilt the reports on one common view and added a separate, unscored hollow-code review channel. That raised the bar for reporting: a finding had to stay identifiable, its location and source binding had to survive every output format, and an undecidable case had to stay undecidable.
The seven-repository comparison from Part 1 was the first check. It alternated v3.13.0 and the v3.14 candidate, three scans each, over 1,511 analyzed files. All 42 runs exited 0 with no traceback. All seven project status bands stayed the same, no JSON keys were removed, and ten file results had different findings.
The runtime result was less flattering. The median scan was slower with the v3.14 candidate on six of the seven repositories, by 1.07–1.63 times, and faster on one. The new analysis had a measurable cost.
The hollow channel counted 18,129 functions on those targets: 9,933 undecidable and four review candidates. The number that matters is 9,933, not four. More than half the functions were outside what the channel could decide, mostly because calls could not be followed within its bounded graph. A low candidate count says nothing about the functions the channel could not judge.
The second experiment used 25 repository targets and replayed them at three stages of report-identity work: 75 target scans, 117 logged full-project runs together with the first experiment. (That is these two experiments, not every scan of the period.)
The first run exposed duplicate IDs. Repeated try/except blocks and similar TODOs could produce identical item identities, and six reports refused to write because one ID belonged to more than one item. Refusing beat silently overwriting an item, but six refusals were still a product bug.
We revised the structural locator, replayed the corpus, and later extended the report connection to JS/TS and Go:
| Metric | First run | Structural locator | Multilingual output |
|---|---|---|---|
| Repository targets | 25 | 25 | 25 |
| Analyzed files | 2,043 | 2,720 | 4,824 |
| Report items | 5,781 | 7,941 | 27,404 |
| Duplicate IDs | 24 | 0 | 0 |
| Report refusals | 6 | 0 | 0 |
Of the final 27,404 items, 19,463 came from JS/TS and Go, and the language scope grew between stages. The table shows report integrity, not a fivefold gain in detection.
Even that replay didn't settle identity. With the more precise TypeScript parser installed, one line could produce two findings of the same rule:
function f(a: any, b: any) { return [a, b]; } The old location scheme gave both the same ID; the fallback parser had only ever produced one finding there. Version 3.14.2 distinguished JS/TS findings by column and Go findings by occurrence on the line. A finding alone on its line kept its existing ID.
Two more failures only showed up when using the packaged tool:
- Windows console, v3.14.1:
-format aiand-format ai-mdcould raiseUnicodeEncodeErroron a Korean Windowscp949console. An em dash in a rule message was enough. These stdout formats are now UTF-8, like the file output. The same patch fixed a single-file report that gave its location as.:3instead of the filename and line. - VS Code, v3.14.2: a single JS/TS or Go file could return the backend's project-shaped response, which the installed extension rejected, showing no findings. Testing the analyzer alone would never have caught missing editor diagnostics.
Neither was a detection failure. Both happened at the boundary between the analyzer and something consuming its output, which is why the release controls now exercise those boundaries.
Source binding and "is it fixed?"
A public experiment on the 3.14.2 wheel (Python 3.12.16) checked whether a report stays honest when the source changes after the scan. Appending a harmless comment to one demo file voided the bindings of all five items in that file, and the report refused to show a fresh excerpt against a stale result. The eight items in two unchanged files stayed matched.
The same experiment tried several edits on the original stub. Three unrelated comment lines left the five Python item IDs intact. Changing the implementation produced FIXED_CANDIDATE for the stub item. Rewording the TODO, or deleting the function, produced HOLD. Removing only the TODO comment resolved that comment finding but not the constant-return finding next to it. That is the point of comparing before and after: a disappearing ID is not proof of a fix.
At v3.14.2 the suite logs record 1,978 passes and two skips on Python 3.14, and 1,937 passes and 34 skips on Python 3.8. The 117 repository runs are separate from those totals.
November 13: our tests went on trial
The development guide now writes down a routine we had been following:
- Write a control that fails for the intended reason before the change, plus a negative control for the legitimate case.
- Make the smallest change and rerun the owning tests.
- Break individual parts of the implementation on purpose and require the tests to notice.
- Replay the changed rules on real repositories; read every added finding and explain removals.
- Run the wider suite and CI on the actual candidate.
The mutation runner copies source into an isolated directory. A collection error doesn't count as a caught mutant: the baseline must pass and the mutant must fail on the expected assertion. A survivor means either the test is weak or the change is equivalent under the contract, and we find out which.
The mutants were small, plausible regressions: line numbers put back into IDs that must survive line shifts, the duplicate-ID check removed, file bindings dropped, parts of the docstring-promise checks disabled.
| Selected campaign | Caught / attempted |
|---|---|
| 3.11.0 scan-service contracts | 25/25 |
| 3.12.0 detection-rule contracts | 21/21 |
| 3.14.0 identity and report contracts | 64/64 |
| 3.14.0 hollow and promise controls | 69/69 |
| 3.14.1 encoding and location | 5/5 |
| 3.15.0 report contracts, final run | 24/24 |
| 3.15.1 report completeness | 12/12 |
| 3.15.2 multilingual gate | 11/11 |
The 3.15.0 row says final run for a reason. The first run caught 22 of 24. One survivor let a changed locator pass the report read-back check; the other altered the pass that decides when to stop expanding an item. We tightened the controls and the next run caught 24/24.
Those two survivors were the most useful result of the day. Without them we would have believed the read-back check guarded a field it didn't. These campaigns are targeted, not whole-project mutation coverage, and summing them gives no meaningful percentage.
Can a smaller report still account for every item?
Before changing the layout in 3.15.0, we measured the public 3.14.2 wheel on its own release source: 138 analyzed files, 128 report items. We rendered the same result at fourteen budget settings, changing only the budget. Each item could appear as T1 (whole function), T2 (evidence excerpt) or T3 (index entry). The test: every item present, or an explicit refusal.
| Estimated budget | Whole (T1) | Excerpt (T2) | Index (T3) | Result |
|---|---|---|---|---|
| 1,000–6,000 (5 trials) | — | — | — | Refused |
| 8,000 | 1 | 0 | 127 | 128/128 items |
| 16,000 | 2 | 48 | 78 | 128/128 items |
| 32,000 | 6 | 122 | 0 | 128/128 items |
| 64,000 | 63 | 65 | 0 | 128/128 items |
| 96,000 and 128,000 | 128 | 0 | 0 | 128/128 items |
The smallest index needed 7,845 estimated tokens; at 32,000 every item had at least its excerpt. In a larger development trial with 16,513 items, even the index needed 600,031 estimated tokens, and all five budgets from 8,000 to 128,000 were refused. The budget is characters divided by four, not a model tokenizer, and these limits are specific to these inputs.
The script and raw JSON for this experiment, including the source-binding tests above, are public, so you can check the procedure rather than trust my summary.
The 3.15.0 layout change was then measured on a 227-item snapshot. At 32,000 estimated tokens the revised layout carried evidence for 144 items instead of 113 and whole functions for 71 instead of six; at 16,000, evidence for 18 instead of 12. Document integrity was checked before writing, so a shorter report could not quietly drop an item.
The Go gate
The same day, v3.15.1 repaired a report path that had omitted JS/TS and Go findings (nine new failing-before controls, 12/12 caught variants). Then CI on a Go fixture gave us the failure from the top of Part 1:
package main func main() { panic("a") panic("b") panic("c") panic("d") panic("e") } | Observed contract | v3.15.1 | v3.15.2 |
|---|---|---|
| Project deficit score | 100 | Unchanged |
Critical go_panic findings | 3 | Unchanged |
| Hard-gate exit code | 0 | 1 |
| Gate interpretation | Incorrect pass | Correct fail |
The analysis and the score were right. The gate simply never read the non-Python results. Twelve new controls covered the reproducer and per-language thresholds, and nine of them failed on v3.15.1. Eleven broken gate variants were caught. We did not invent Python-only metrics such as inflation or DDC for languages that don't measure them.
Reproducer and threshold tests: test_gate_languages.py.
November 15–17: bugs in the experiment as well as the product
On November 15 an adversarial cross-language examination over 24 frozen source fixtures produced 65 test items: 59 passed, six failed. The obvious move was to patch six things in the detector. The traces said otherwise.
Five failures came from the examination harness looking up file extensions incorrectly. Fixing only the harness gave 64 passes and one failure. The original run was kept as it was; its failures were not overwritten with the better number.
The remaining failure was a real Go defect. A function declaration inside a raw string was treated as code:
const example = ` func emptyRecovery() {} ` We didn't special-case that name. We separated the code view from the comment view, so function boundaries and executable-code checks each read the right representation. The same investigation found three more lexical problems: TODO text inside a raw string, braces inside strings cutting a function short, and a one-line block comment turning later code into a comment.
After the fix, the 24 fixtures still matched their frozen digests and the examination reran at 65/65. Eight selected Go lexical mutants were caught.
These are internal test items, not 65 independently labeled detections; some checks concerned schema or evidence presence.
Rust gave another lesson. An examination of 280 items ended 276 passed, four failed: two comment shapes containing todo!() were classified as TODO markers by both parsing modes. An AST-versus-token comparison had shown 68/68 parity within scope, because both modes shared the same faulty comment classifier. Agreement did not make them right.
We fixed comment-marker recognition while keeping real task markers. All four failing assertions passed on rerun, and then one check stopped the run because the product source digest no longer matched its binding. We recorded 279 passed and one failed rather than a tidy 280/280. The guard was doing its job.
Version 3.16.1 shipped Rust support and the Go and JS/TS lexical fixes. It also turned a README promise into a test. The scanner is supposed to work without network calls, so the test replaces Python's socket connection and DNS functions with ones that record and refuse each attempt:
for owner, name in ( (socket.socket, "connect"), (socket.socket, "connect_ex"), (socket, "create_connection"), (socket, "getaddrinfo"), ): monkeypatch.setattr(owner, name, refused) It scans the demo project, writes JSON, Markdown, HTML and AI reports, and requires the attempt list to be empty. A separate control makes a deliberate connection and checks that it is refused and counted. It guards that Python workflow; it isn't OS-level network isolation.
November 18–19: the release comparison was wrong too
We wanted v3.17.0 to change the terminal presentation without touching the analysis. The first before/after comparison looked fine until we noticed both versions had shared one HOME directory, so the newer version could have reused the older version's cached analysis. We threw that comparison out.
With HOME and cache isolated per version and per target, we compared raw JSON bytes, and found a real bug in the published v3.16.2: a file with an fp: declaration was analyzed correctly on the first scan and failed when restored from cache on the second. Single-file analysis exited 1; project analysis could exit 0 while leaving the file out.
That meant shipping v3.16.3 as a bug fix, not a cosmetic release. The retained isolated comparison then recorded five of five targets with identical JSON bytes: the demo, a multilanguage sample, a suppression fixture, the detector source and the editor-extension source.
The calibration work in v3.16.2 had corrected an older assumption as well: an unchanged warning is not evidence that the warning was false. Resolved warnings, unchanged warnings, ordinary suppressions and explicit fp: declarations are now separate. The calibration report is advisory and never changes weights by itself.
Three months in tests
The counts come from release notes and retained logs, and they are not one series. 1,154 at v3.9.2 is per CI interpreter; 1,978 and 2,010 are local Python 3.14 counts for v3.14.2 and v3.15.0; 2,288 is a November 18 development checkpoint. The hatched bar is the actual v3.17.0 Python 3.12 release job (2,276 passed), a different environment again.
Parallel tests misled us too. Each pytest worker now gets its own --basetemp, because pytest's cleanup of old numbered directories had deleted another worker's temporary path. A fresh HOME also changed Git's ownership checks, so isolated tests have to set that deliberately. The procedure is in DEVELOPMENT.md.
What v3.17.0 delivers
v3.17.0 has no new score formula. It packages the preceding work so a developer can act on a scan without reading the whole report first.
The default summary shows the score and band, findings by severity, files by language, the first five findings to look at, up to three unscored review candidates, and one suggested next step. Detail and structured output are still there, and the interactive report picker is opt-in, so it never blocks CI.
It has 55 pattern rules: Python (37), JS/TS (8), Go (6) and Rust (4). Analysis depth differs by language. The HTML report and structured records keep scored findings and unscored candidates apart.
One last correction mattered in daily use. Six fix suggestions recommended changes the detector itself would not accept: a comment in an empty exception handler, a docstring on an incomplete function, a ticket number on a TODO, a setting that rule doesn't read. Following them meant rescanning and finding the same finding. We corrected the text without changing findings or scores. The changelog also explains why a project can have a clean aggregate score and a per-file gate warning at the same time.
Reproduce v3.17.0
Install the exact release rather than whatever is on main:
pip install ai-slop-detector==3.17.0 slop-detector --project . slop-detector --project . --details slop-detector --project . --json --output slop.json slop-detector --project . --ci-mode hard --ci-report From the release tag, in an environment set up per the tagged guide, the focused regression controls mentioned in these articles run with:
python -m pytest tests/test_v393_precision_contract.py tests/test_structural_measurement.py -q python -m pytest tests/test_gate_languages.py tests/test_no_network.py -q The v3.14.2 experiments have their own procedure: ai-slop-detector==3.14.2, source exported from that tag, and a separate output directory.
python -I m15.py --demo /path/to/v3142/examples/demo_project \ --repo /path/to/v3142 --out /path/to/new-output The script, raw results and safety controls are in the pinned experiment directory. The PDF measurement needs a locally installed compatible browser. I'm giving the historical command, not claiming I reran it for this article.
AI-SLOP Detector is MIT-licensed. It complements linters, type checkers, tests and security review rather than replacing them, and it doesn't try to tell whether a human or an AI wrote the code. It gives developers evidence about suspicious implementation and shows where that evidence stops.
And today: v3.18.0
While I was finishing these articles, v3.18.0 went out today. It is about one question: when the detector reports an import as missing or wrong, which distribution actually provides it, and how does the detector know?
- Declared providers count. A declared
Pillowis no longer reported as a missingPIL, norscikit-learnas a missingsklearn. PEP 735[dependency-groups]and[tool.uv] dev-dependenciesare read. - The project's own environment is read as files. A
.venvwithpyvenv.cfgin the project root is read, never executed. A different distribution that happens to be installed in the analyzer's environment no longer decidesphantom_member. - Every import finding carries its evidence: import name, provider, provider state and environment.
- Severity follows the evidence.
phantom_importis HIGH at most and means no installed distribution, declaration or known provider supplies the name. Two new rules:undeclared_dependency(the provider is known but not declared) andprovider_conflict(the installed module comes from a different distribution than the declared one). - Scan boundary. Import resolution stays inside the scan root and doesn't follow links out of it.
- REST API is local-only by default (no cross-origin access, loopback host names only), and the unused experimental
slop_detector.authpackage is removed.
Scores change where import findings occur. Details are in the v3.18.0 release notes and the import provider resolution design.
What I haven't written about yet
These two parts are a log. Several mechanisms built along the way deserve their own articles, and those come next:
- How the Python analysis works inside: AST-based structural measurement, call resolution, and why a parser mode is recorded for every language.
- Making scans faster without changing results: the implementation and performance contracts behind the v3.10.0 speed-up from Part 1 (one project walk, one AST walk per module, a cheaper claim scan).
- Precision versus recall: how we decide whether a narrower rule is worth the misses it costs.
- The hollow review channel: what "undecidable" means and why it is unscored.
- Report identity and source binding: how a finding keeps its ID across edits, and when it counts as resolved.
- Import provider resolution: the evidence ladder behind 3.18.0 and the scan boundary.
- The agent workflow: findings an agent can verify and patch, with a server on the official MCP SDK planned for 3.19.
VALIDATION.md still says the detector has not been independently validated, and nothing in these articles changes that. External labels, independent replications and real repair outcomes are what would.
So the most useful response to these articles would be someone reproducing the Go gate failure, finding a case our controls missed, or challenging a scoring assumption.
In August the question was whether a clean score meant a complete scan. In November the released CLI scans a project across four language groups, keeps review candidates apart from scored findings, and passes the result to a CI gate whose decision follows from the findings. How well it generalizes beyond the cases we tested is still the open question.
Sources and scope
- Version comparison v3.8.9...v3.17.0
- Release CI run · Package publication run
- v3.17.0 release · v3.18.0 release
- CHANGELOG · Release notes
- Development guide · Validation
- Public 3.14.2 measurement script and results
- PyPI · GitHub repository
Internal development experiments are reported as anonymized aggregates from retained maintainer logs and audit records. Application areas are editorial groupings of the targets. The seven-repository comparison is counted once across both parts. The 3.14.2 experiment is reproducible from its pinned public script; neither set has been independently replicated. Repository identities and private paths are excluded.









