feat(quality): Quality score badge on every artifact (inject-quality-badge.py)#20
Draft
ramsani wants to merge 6 commits into
Draft
feat(quality): Quality score badge on every artifact (inject-quality-badge.py)#20ramsani wants to merge 6 commits into
ramsani wants to merge 6 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(quality): Quality Score Badge on Every Generated Artifact
What
Implements Issue #14 — Quality Score Badge on every generated artifact.
New file:
scripts/inject-quality-badge.pyInjects a quality score badge into an HTML artifact's body. Badge design:
92/100 ✓) with color-coded tier11/13 checks passed)aria-label, WCAG AA color contrast, dark mode compatibleModified:
scripts/deliver-artifact.pyAdded
--badgeflag that callsinject-quality-badge.pyafter artifact approval.New test:
tests/test_quality_badge.pytest_badge_90(): Score 90+ shows green.quality-passedbadgetest_badge_78(): Score 75-89 shows blue.quality-okbadgetest_badge_idempotent(): Badge not injected twice on repeated callsWhy
The
deliver-artifact.pyscript computes a quality score (0-100) but the score was invisible to stakeholders receiving an artifact. The badge:Acceptance Criteria (from #14)
deliver-artifact.py --badgerenders a quality badge in its HTML headeraudit-artifact.py --jsonoutput unchanged (backward compatible)Testing
Closes #14