Skip to content

Polestar: vehicle cap, net capacity, logs for the beta - #85

Merged
vcanuel merged 4 commits into
mainfrom
polestar-followups
Oct 21, 2026
Merged

vcanuel merged 4 commits into
mainfrom
polestar-followups

Conversation

@vcanuel

@vcanuel vcanuel commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Part of #52: what follows the Connection page, before Polestar is checked on real cars in beta.

  • Go 1.27.3: 1.27.2's crypto/x509 fails govulncheck (GO-2026-6809); the build image is pinned to the 1.27.3 digest.
  • Vehicle cap: the Volvo ID (oauth.Enroll, PUT /connection/api-key) counts every vehicle of the account, as the Polestar credential does; a VIN the account has already counts once. The messages say "the account would have more vehicles than it may".
  • Polestar 2 Long Range Single Motor 2024: net capacity 79 kWh (AutoGuide, EV Database; Polestar gives the gross only).
  • Logs that measure the Data Portal, without VIN nor value: each new upload per domain (vehicle upload: car's time, age when read, delay since the previous, mode), a domain's fields when they change (upload fields), a 401 on /v1 with the access's age, a 429 with the connection's recent calls and budget left. The API's errors carry their limit headers; the VINs of their messages are masked.

Tests: task unit passes (lint, Go tests, govulncheck, build, front end).

🤖 Generated with Claude Code

vcanuel and others added 4 commits October 21, 2026 14:56
1.27.2's crypto/x509 carries GO-2026-6809, reachable from the code, which
fails govulncheck. The build image is pinned to the 1.27.3 digest of
golang:1.27-alpine.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Volvo ID counted only its own vehicles, so a Volvo could join an
account whose Polestar already reached the cap. oauth.Enroll takes a Cap
with the account's other VINs, a VIN it has already counting once, and
the API reads it the same way for the Volvo ID, its key and the Polestar
credential.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
79 kWh of 82, as two secondary sources agree; Polestar publishes the
gross capacity only. A Polestar of this variant now has its energies.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The upload cadence, the fields of each model, and what a 401 and a 429
come with are assumptions until seen on real cars. The collector logs
each new upload of a domain (its age, its delay since the previous, the
mode), a domain's fields when they change, an access rejected with its
age, and a rate limit with the connection's recent calls. The API's
errors carry their limit headers, and the VINs of their messages are
masked: no log holds a VIN or a value.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vcanuel
vcanuel merged commit 66e29db into main Oct 21, 2026
7 checks passed
@vcanuel
vcanuel deleted the polestar-followups branch October 21, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant