Skip to content

Docs-stats verify gate: README/site numbers vs live registry (N8)#13

Merged
Cuuper22 merged 1 commit into
mainfrom
claude/eager-cerf-kvmqta-n8
Jun 11, 2026
Merged

Docs-stats verify gate: README/site numbers vs live registry (N8)#13
Cuuper22 merged 1 commit into
mainfrom
claude/eager-cerf-kvmqta-n8

Conversation

@Cuuper22

Copy link
Copy Markdown
Owner

N8 of 10: Docs-freshness verify gate

This session's earlier polish wave found broken README snippets and stale stats in six different ledger files — drift is the failure mode of this repo's exact-observed-numbers culture. This PR makes stat drift unmergeable.

What it does

New gpu_stack/docs_stats_check.py compares the claim surfaces against live registry truth computed at runtime:

  • README.md "Current Snapshot" table rows and the stats code block
  • docs/index.html stat-grid values
  • docs/app.js embedded fact-string literals

Mismatches report file, claim, expected (live), found (document), with nonzero exit. Wired as a fifth docs-stats gate in the full verify profile (naturally read-only safe). Also runnable directly: python -m gpu_stack.docs_stats_check → currently docs-stats: OK.

Design point

Tests derive expectations from the live Registry at test time (never hardcoded numbers) and exercise planted-drift failures on tmp copies — so this gate stays correct as sibling PRs change registry contents. After merging the registry-touching PRs (N1/N2/N5), this gate will correctly fail until README/site numbers are regenerated; that refresh is part of the integration pass.

Verification

  • Full pytest: 684 passed
  • Gate live run: docs-stats: OK

Note: agent was interrupted by a session limit after implementation+tests; coordinator validated, committed, and pushed.

https://claude.ai/code/session_01Eu2JVnPFgMQftwYTP3cGQZ


Generated by Claude Code

New gpu_stack/docs_stats_check.py compares the claim surfaces against
live registry truth computed at runtime:
- README.md Current Snapshot table rows and the stats code block
- docs/index.html stat-grid values
- docs/app.js embedded fact-string literals

Mismatches report file, claim, expected (live), and found (document),
with a nonzero exit. Wired as a fifth docs-stats gate in the full
verify profile, naturally read-only safe. Runnable directly via
python -m gpu_stack.docs_stats_check (currently: docs-stats: OK).

Tests derive expectations from the live Registry at test time and
exercise planted-drift failures on tmp copies, never the real files.

Full pytest: 684 passed.

https://claude.ai/code/session_01Eu2JVnPFgMQftwYTP3cGQZ
@Cuuper22 Cuuper22 merged commit 0b44cf9 into main Jun 11, 2026
0 of 6 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