# fix\(cost\): separate model identity from display labels \(\#228\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/17ffeef4cbb1f420d2b1426b9d69d8a95059d248)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 17ffeef4cbb1f420d2b1426b9d69d8a95059d248

Requested commit: 17ffeef4cbb1f420d2b1426b9d69d8a95059d248

Commit: 17ffeef4cbb1f420d2b1426b9d69d8a95059d248

Tree: 5695a3a731733c1126025a7278ccf6777fb9cc1f

Author: Simone

Committer: GitHub

## Message

```
fix(cost): separate model identity from display labels (#228)

* test(cost): reproduce model aggregation collisions in display labels

* fix(cost): separate model identity from display labels

Aggregate per-model cost and token totals by the raw model identity.
Display labels are bounded to 120 characters and collapse whitespace,
so distinct models could share one label and merge into a single row.
Identical names still aggregate; distinct names stay distinct.

Tests: tst_cost_model_identity (10 pass), tst_provider_normalizer
(174 pass), tst_cost_presentation (112 pass),
tst_cost_refresh_policy (13 pass), test_cost_context.py (OK).

* fix(cost): track raw model identity pin in security checks

costModelSummary now keys aggregates by the raw model identity instead
of the bounded display label. Update the pinned hardening fragments to
the new screening site.
```

## Parents

- [6e6a7524a591558d9ecb94ecf3ab5807d2de638b](https://git.cafe/lucenx/codexbar-plasma/commit/6e6a7524a591558d9ecb94ecf3ab5807d2de638b?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/17ffeef4cbb1f420d2b1426b9d69d8a95059d248?format=markdown)
