# Changelog

## Score

- CAI 54 → 59 (+4.6)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

## Lenses

- Code Health 84 → 84 (+0.0)
- Architecture 87 → 85 (-1.6)
- Maturity 59 → 54 (-4.4)
- Readiness 39 → 46 (+6.3)
- Security 67 → 81 (+13.7)
- Performance 78 → 100 (+22.3)

## Resolved (21)

- Documentation: no licence statement (README.md)
- Duplicate operations with identical signatures and intent. `HttpUrl.toUrl()` and `HttpUrl.url()` both return `java.net.URL`. Similarly, `HttpUrl.toUri()` and `HttpUrl.uri()` both return `java.net.URI`. This creates confusion for users about which method to use, as they are functionally identical.
- Duplicated block (11 lines × 2) (okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/Android10SocketAdapter.kt)
- Duplicated block (12 lines × 2) (okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/ConscryptSocketAdapter.kt)
- Duplicated block (13 lines × 2) (okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt)
- Duplicated block (18 lines × 2) (okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt)
- Duplicated block (19 lines × 2) (okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt)
- Duplicated block (7 lines × 2) (okhttp/src/androidMain/kotlin/okhttp3/internal/platform/Android10Platform.kt)
- Duplicated block (9 lines × 2) (samples/guide/src/main/java/okhttp3/recipes/CacheResponse.java)
- Duplicated block (9–10 lines × 2) (mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt)
- Inconsistent naming convention for statistics vs. data retrieval. Methods returning counts/stats use the pattern `countName()` (e.g., `hitCount`), while the method returning the list of URLs uses `urls()`. This is inconsistent with the getter pattern seen elsewhere (e.g., `Cache.directory()` vs `Cache.directory`). Furthermore, `urls()` returns a mutable iterator, which is a side-effecting operation disguised as a simple data retrieval method, unlike the other read-only statistical methods.
- Leaked secret: gcp-api-key (samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java)
- Leaked secret: high-entropy-secret (samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java)
- Leaked secret: private-key (okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt)
- Leaked secret: slack-token (samples/slack/src/main/java/okhttp3/slack/SlackClient.java)
- Massive redundancy between Properties and Methods with identical signatures. In Kotlin, properties are typically accessed directly (e.g., `obj.property`), while methods are called with parentheses (e.g., `obj.method()`). The API exposes both a `Property` and a `Method` with the same name and signature for almost every field in `Address`, `Cache`, `OkHttpClient`, `HttpUrl`, etc. This is redundant and confusing; users should use the property syntax for simple accessors. The explicit methods are unnecessary noise.
- No ADRs found
- Off-boarding risk: anonymized user #1
- Secret: generic-api-key (samples/guide/src/main/java/com/squareup/okhttp/recipes/RequestBodyCompression.java)
- Secret: generic-api-key (samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java)
- …and 1 more

## New (36)

- Banned license: org.graalvm.nativeimage:svm
- Duplicated block (11 lines × 2) (okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/Android10SocketAdapter.kt)
- Duplicated block (12 lines × 2) (okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/ConscryptSocketAdapter.kt)
- Duplicated block (13 lines × 2) (mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt)
- Duplicated block (13 lines × 2) (okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt)
- Duplicated block (18 lines × 2) (okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt)
- Duplicated block (7 lines × 2) (okhttp/src/androidMain/kotlin/okhttp3/internal/platform/Android10Platform.kt)
- Duplicated block (9 lines × 2) (okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt)
- Duplicated block (9–10 lines × 2) (mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt)
- Edited copies of one member (3 members, 11+ corresponding lines) (samples/guide/src/main/java/okhttp3/recipes/Authenticate.java)
- Edited copies of one member (3 members, 15+ corresponding lines) (samples/guide/src/main/java/okhttp3/recipes/PostForm.java)
- Edited copies of one member (3 members, 15+ corresponding lines) (samples/guide/src/main/java/okhttp3/recipes/kt/PostFile.kt)
- Edited copies of one member (4 members, 12+ corresponding lines) (okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt)
- Edited copy of a member (12 corresponding lines) (samples/guide/src/main/java/okhttp3/recipes/CertificatePinning.java)
- Edited copy of a member (13 corresponding lines) (samples/slack/src/main/java/okhttp3/slack/SlackApi.java)
- Edited copy of a member (14 corresponding lines) (okhttp-tls/src/main/kotlin/okhttp3/tls/Certificates.kt)
- Edited copy of a member (14 corresponding lines) (samples/guide/src/main/java/okhttp3/recipes/PostFile.java)
- Edited copy of a member (15 corresponding lines) (mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt)
- Edited copy of a member (15 corresponding lines) (okhttp-testing-support/src/main/kotlin/okhttp3/sockets/FakeSocket.kt)
- Edited copy of a member (16 corresponding lines) (samples/guide/src/main/java/okhttp3/recipes/CustomTrust.java)
- …and 16 more

## Changes since last survey

- 19 commits — 17 feature/other, 2 fixes

## By area

- gradle/libs.versions.toml — 10 commits
- .github/workflows — 5 commits
- okhttp/src — 2 commits
- gradle/wrapper — 1 commit
- okhttp-urlconnection/build.gradle.kts — 1 commit

## Notable commits

- fix: Countdown fix for duplex test (#9820)
- fix: Fix URLConnection OSGi version lookup with isolated projects (#9830)
- change: Don't reuse a connection when a redirect changes scheme (#9739)
- change: Update Gradle to v9.8.2 (#9818)
- change: Update actions/setup-python action to v7.1.0 (#9826)
- change: Update agp to v9.5.0 (#9842)
- change: Update dependency com.github.jnr:jnr-unixsocket to v0.39.6 (#9822)
- change: Update dependency com.github.jnr:jnr-unixsocket to v0.39.7 (#9843)
- change: Update dependency com.github.jnr:jnr-unixsocket to v0.39.8 (#9848)
- change: Update dependency com.puppycrawl.tools:checkstyle to v14.4.0 (#9846)
- change: Update dependency org.codehaus.mojo:animal-sniffer-annotations to v1.29 (#9860)
- change: Update dependency org.jsoup:jsoup to v1.24.1 (#9850)
- change: Update dokka to v2.3.0 (#9859)
- change: Update graalvm/setup-graalvm action to v1.6.8 (#9839)
- change: Update gradle/actions action to v6.4.1 (#9841)
- change: Update mikepenz/action-junit-report action to v6.6.2 (#9845)
- change: Update mikepenz/action-junit-report action to v6.7.0 (#9851)
- change: Update org.conscrypt to v2.8.0 (#9824)
- change: Update serialization to v1.12.0 (#9819)

## Architecture

- Unchanged — 0 containers · 11 contexts · 10 edges
