Skip to content

Webapp: count only mapped frameworks in the home-page headline - #188

Merged
emmanuelgjr merged 1 commit into
mainfrom
fix/headline-mapped-only
Oct 3, 2026
Merged

emmanuelgjr merged 1 commit into
mainfrom
fix/headline-mapped-only

Conversation

@emmanuelgjr

Copy link
Copy Markdown
Contributor

What this changes

The webapp home page added every registry to its framework list, mapped or not, and summed every registry's controls into Registry Controls. A registry that lands before any row maps it would inflate both numbers. NIST AI 600-1 (#187) is the first such case.

Measured with #187 merged onto main, without this fix:

Home-page stat main main + #187 main + #187 + this PR
Frameworks 26 27 (README says 26 mapped) 26
Registry Controls 1,107 1,318 (+211, none mapped) 1,107
  • docs/index.html: FRAMEWORKS now comes from the mapping rows alone. That one list feeds the hero, the framework browser, the selectors and the score tool, so an unmapped registry no longer shows up as a 0%-coverage framework anywhere. The controls total only counts registries a row cites.
  • scripts/webapp.test.mjs: new test. The hero's Frameworks must equal stats.json frameworks.mapped, and Registry Controls must equal the sum over mapped registries only.

No visible change today. All 26 registries on main are mapped, so every number stays the same until an unmapped registry lands.

C2: this is a webapp code change, approved by the maintainer on 2026-10-02 as the guard to land alongside #187.

Verification

Not changed

The hero's Registry Controls still counts every registry item (layers and techniques as well as controls), unlike stats.json controls.total, which counts kind: control only (1,107 vs 973). Aligning the two would change a live number, so it's left for a separate decision.

🤖 Generated with Claude Code

The home page added every registry to the framework list, mapped or not, and
summed every registry's controls into "Registry Controls". A registry that
lands before its rows (NIST AI 600-1 in #187) would have shown 27 frameworks
against the README's 26 mapped, and added 211 unmapped controls (+19%).

Frameworks now come from the mapping rows alone, and the controls total only
counts registries a row cites. No change to today's numbers: all 26 registries
are mapped. New webapp test pins the hero to stats.json's frameworks.mapped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@emmanuelgjr
emmanuelgjr merged commit 703aaa5 into main Oct 3, 2026
6 checks passed
@emmanuelgjr
emmanuelgjr deleted the fix/headline-mapped-only branch October 3, 2026 15:21
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.

1 participant