# Changelog

## Score

- CAI 62 → 57 (-4.6)
- Rubric changed (rubric-2026.10.1 → rubric-2026.10.5) — scores are not directly comparable.

## Lenses

- Code Health 98 → 75 (-23.3)
- Architecture 69 → 69 (+0.0)
- Maturity 49 → 43 (-5.9)
- Readiness 64 → 64 (+0.0)
- Security 99 → 99 (+0.0)

## Resolved (5)

- Ambiguous duplication: It is unclear if these return different types (e.g., String vs URI object) or if one is a deprecated alias. Without type signatures, they look like redundant accessors for the same resource.
- Documentation: contradicts the code (docs/api-basics/products.md)
- Documentation: contradicts the code (docs/energy/history.md)
- Duplicate intent: Both methods appear to retrieve the current state/data of the vehicle. 'vehicle_data' is explicit, while 'data' is ambiguous and potentially conflicts with standard Ruby conventions for object representation.
- Workflow token permissions not restricted

## New (6)

- Ambiguous duplication: It is unclear if 'streaming_endpoint()' returns a URL string (same as 'streaming_endpoint_url()') or a connection object/URL object. If both return the same string representation, one is redundant. If they return different types, the naming is misleading (one should likely be 'streaming_endpoint_url' and the other 'streaming_endpoint_connection' or similar).
- Duplicate intent: Both methods appear to retrieve the current state/data of the vehicle. There is no clear semantic distinction provided between 'vehicle_data' and 'data', suggesting one is redundant or an alias.
- Orphaned file (lib/tesla_api/client.rb)
- Orphaned file (lib/tesla_api/vehicle.rb)
- Workflow token permissions not restricted (.github/workflows/formatting.yml)
- Workflow token permissions not restricted (.github/workflows/test.yml)
