Repository navigation
Read a Polestar's availability as soon as the car wakes up - #380
Conversation
Parked, the availability, the only domain that tells a drive, was read every 10 minutes: a drive's start was known within 7 minutes (median), and drives shorter than that were missed. Measured on real cars, the car uploads every 60 s while driving or charging, and only while awake when parked (about 15 uploads a day). A new battery upload, parked, now brings the availability forward to the same pass (EndpointSpec.Wakes), for about 15 calls a day. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Medium Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A Polestar's drive is now seen within a minute or two of the car waking up, instead of up to a parked interval (10 minutes) later. A drive shorter than that interval was missed, its trip only reconstructed from the odometer.
The Data Portal's car uploads about every minute while it drives or charges, which the 1-minute pace already matches, and parked only while it is awake. The availability, the only domain that tells a drive, was read every parked interval, while the battery is read every minute parked (#373): a new battery upload is the car waking up, perhaps to drive.
Changes
EndpointSpec.Wakes. Parked, a new upload of an endpoint brings the endpoints it wakes forward, read in the same pass when the budget allows. Not for the first upload read after a start, nor for an account the read policy keeps at a pace of its own.AGENTS.mdand the Polestar guide describe the new pace.Screenshots
None: the collector only, nothing changes on screen.
Tests
task unit-go(withTestSourceWakes, which fails without the change) andtask lint: pass.Closes #152
🤖 Generated with Claude Code