Files
Guido Vizoso 7f6d6008b4 fix(showcase): say "Company-wide", not "all", in the publish refusal
The demo's climactic refusal listed its breaches with the raw department
id, two inches below an exception block spelling the same scope out:

    Publish refused: …
    Burn Rate · all · 2026-08          <- the receipt
    Burn Rate · Company-wide           <- the block above it

`publishRefusalPayload` resolved `metricId` through `metricLabel` and
forwarded `department` untouched, and every breach the seeded demo
refuses on is company-wide — so the one id that reached the room was the
bare word "all", which reads like a bug rather than a scope.

The label map already existed in THREE identical copies (the catalog
renderers, the CEO dashboard, the Metrics Explorer) and the receipt had
none, so a fourth copy would have fixed this line and left the next
surface to make the same mistake. All four now share one module, which
also gives the two pages that indexed the map directly the `Object.hasOwn`
guard only the renderers had.

Nothing round-trips the field back into a query — file_variance_narrative
takes a metric and a period, no department — so the label is safe as the
only form that leaves the payload.

The new test pins "all" specifically, plus an unmapped key still falling
through as itself, since that path exists to report a query the ledger
could not answer and the raw key is what names it. Verified live: the
receipt now reads "Burn Rate · Company-wide · 2026-08".
2026-09-08 15:39:41 -03:00
..