Skip to content

Harden OCE report skill against dim-pct name-column starvation, Fixes AB#3678009#440

Merged
p3dr0rv merged 1 commit into
masterfrom
pedroro/oce-report-dim-pct-guard
Jun 26, 2026
Merged

Harden OCE report skill against dim-pct name-column starvation, Fixes AB#3678009#440
p3dr0rv merged 1 commit into
masterfrom
pedroro/oce-report-dim-pct-guard

Conversation

@p3dr0rv

@p3dr0rv p3dr0rv commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

In the oncall-weekly-telemetry-report skill, a Spike Attribution dim-pct cell that carried a WoW annotation (e.g. 75% (+111%)) sat in the narrow, fixed percent column and starved the flex name column, collapsing real labels to a couple of characters — broker version 16.1.0 rendered as 1..., KeyPairGeneration as KeyPai.... The existing layout guards (checks 9a/9b) only assert the CSS exists; they couldn''t catch this content-level authoring mistake.

This adds a three-layer defense so it can''t recur.

Changes

  1. CSS — self-defense (assets/templates/report-template.html): .dim-pct changed from flex: 0 0 auto to flex: 0 1 auto with max-width: 72px + overflow:hidden; text-overflow:ellipsis. A stray long value now truncates itself instead of the name.
  2. Validator — hard fail (assets/scripts/validate-report.ps1): new check 9c fails the build if any dim-pct cell contains ( or exceeds 9 characters. Also listed in the validator header doc.
  3. Author guidance (assets/templates/spike-card.html): documents that dim-pct is a short bare percentage only; WoW deltas go in prose / tags / Caller hot-spots.

Validation

  • validate-report.ps1 passes all hard checks, including the new [OK] dim-pct cells are short bare percentages.
  • Negative test confirms 75% (+111%) is flagged while 50.7%, +759%, 100.0% pass clean.
  • visual-smoke.ps1: 0 overflow / 0 adjacent-gap issues.

No functional report content changed — skill-hardening only.

Work item: AB#3678009

When a dim-pct cell carried a WoW annotation (e.g. '75% (+111%)') it starved the flex name column and truncated real labels to '1...'. Three-layer fix:

- report-template.html: .dim-pct now flex:0 1 auto + max-width:72px + ellipsis so a long value truncates itself instead of the name.

- validate-report.ps1: new check 9c fails the build on any dim-pct containing '(' or > 9 chars.

- spike-card.html: document the bare-percentage dim-pct rule.
@p3dr0rv p3dr0rv requested a review from a team as a code owner June 25, 2026 20:15
@github-actions

Copy link
Copy Markdown

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

@github-actions github-actions Bot changed the title Harden OCE report skill against dim-pct name-column starvation Harden OCE report skill against dim-pct name-column starvation, Fixes AB#3678009 Jun 26, 2026
@github-actions

Copy link
Copy Markdown

✅ Work item link check complete. Description contains link AB#3678009 to an Azure Boards work item.

@p3dr0rv p3dr0rv merged commit d719679 into master Jun 26, 2026
4 of 5 checks passed
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.

2 participants