# The Fix Shipped and Nothing Changed: Hunting the Phantom Pins That Outlived It

DevFeed: [The Fix Shipped and Nothing Changed: Hunting the Phantom Pins That Outlived It](<https://devfeed.tech/articles/the-fix-shipped-and-nothing-changed-hunting-the-phantom-pins-that-outlived-it-76970.md>)

Original publisher: [Read original article](<https://proandroiddev.com/the-fix-shipped-and-nothing-changed-hunting-the-phantom-pins-that-outlived-it-6c72232e6635?source=rss----c72404660798---4>)

Author: Vitaliy Gribko

Published: 2026-10-08T04:49:32Z

Content type: article

Language: en

Sources: [ProAndroidDev](<https://devfeed.tech/sources/proandroiddev-medium.md>)

Topics: [Test automation](<https://devfeed.tech/topics/test-automation.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [detekt](<https://devfeed.tech/topics/detekt.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [bug](<https://devfeed.tech/tags/bug.md>), [build](<https://devfeed.tech/tags/build.md>), [checkout](<https://devfeed.tech/tags/checkout.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [consumer](<https://devfeed.tech/tags/consumer.md>), [cron](<https://devfeed.tech/tags/cron.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [detekt](<https://devfeed.tech/tags/detekt.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [graph](<https://devfeed.tech/tags/graph.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-compiler](<https://devfeed.tech/tags/kotlin-compiler.md>), [metadata](<https://devfeed.tech/tags/metadata.md>), [module](<https://devfeed.tech/tags/module.md>), [modules](<https://devfeed.tech/tags/modules.md>), [nightly](<https://devfeed.tech/tags/nightly.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [publication](<https://devfeed.tech/tags/publication.md>), [publishing](<https://devfeed.tech/tags/publishing.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>)

## AI overview

The vendor removed its stdlib declarations, but nightly Detekt findings persisted because another SDK family still requested Kotlin stdlib 2.3.0; a fresh-cache run showed all 43 findings disappeared when Detekt used a compatible analysis classpath. The investigation also found the author's SDKs published stdlib dependencies. A publication-layer filter for both POM and Gradle .module metadata removed direct declarations and excluded transitive stdlib paths through Parcelize runtime dependencies. Consumer builds exposed a missing transitive path and an incorrect .module field name (`exclusions` instead of `excludes`); descriptor assertions and an isolated consumer matrix then confirmed the corrected result. In that setup, Kotlin 2.0.21 compiled and ran with its own stdlib only when the consumer had no @Parcelize; with its own @Parcelize it still failed. Kotlin 2.1.20 was the oldest tested successfully with consumer @Parcelize and a real Parcel roundtrip. This remains a proposed stopgap tested on one isolated SDK artifact, not proof of broad compatibility or rollout.

## Source excerpt

The last article in this series ended with a vendor fix. Its SDK had declared kotlin-stdlib 2.3.0, which AGP consistent resolution carried onto our modules' classpaths. Detekt's type-resolving analysis uses an embedded Kotlin compiler. In this incident, that older compiler could not handle the newer dependency metadata correctly and reported 42 phantom UnsafeCast findings. They disappeared with a compatible analysis classpath. The vendor removed the stdlib declarations, but the nightly stayed red. Over the next month, I traced the remaining dependency path and audited our own SDKs. We had been publishing the same kind of dependency. Fixing our pipeline took several attempts, including one that passed every publication check and still broke a consumer's build. One warning before we start. The comfortable version of this story is a line graph: incident, root cause, fix, green. The real version is a staircase where every landing reveals another flight. The vendor's fix was correct and incomplete. Our first fix was correct and wrong. The second was correct and half-blind. The third held, and then a review pass found a bug in the fix itself. I would edit that sequence out as implausible, if it had not happened to me. Verifying a fix you did not write The calls SDK family came back clean at the end of August. I downloaded fresh POMs and module descriptors straight from the registry and parsed them: zero stdlib declarations. I wanted to check the published files, not whatever Gradle had cached locally. The nightly cron disagreed with my optimism. Same 21 modules, same rule, 43 findings now, one more than the original incident. So before hunting anything new, I needed one fact: are these 43 phantoms, or did something real sneak in behind the noise? I made a fresh checkout of develop, cherry-picked the workaround from part one that changes the stdlib only inside detekt tasks, and ran all 21 failing modules without caches. All 21 passed in under four minutes. The findings dis