Files
s41r4j 0f03d49514
CI / contracts (push) Canceled after 0s
Website / deploy (push) Canceled after 0s
CI / test (macos-latest) (push) Canceled after 0s
CI / test (ubuntu-24.04) (push) Canceled after 0s
CI / test (ubuntu-24.04-arm) (push) Canceled after 0s
CI / test (windows-latest) (push) Canceled after 0s
CI / Compact real-tool fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Compact real-tool fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / Code analysis fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Code analysis fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / Web engine fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Web engine fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / Chromium operation fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Chromium operation fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / operation-readiness (push) Canceled after 0s
CI / Supply chain fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Supply chain fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
Initial commit
2026-11-01 09:14:18 +05:30

17 lines
768 B
Python

#!/usr/bin/env python3
"""Reject stale catalog exports without executing cataloged tools."""
import json
from pathlib import Path
import sys
root = Path(__file__).resolve().parents[1]
actual = json.loads(Path(sys.argv[1]).read_text())
for name in ('release/catalog-coverage.json', 'website/coverage.json'):
if actual != json.loads((root/name).read_text()):
raise SystemExit('Stale inventory export: '+name)
baseline = json.loads((root/'release/catalog-baseline.json').read_text())
for family in ('tools', 'capabilities'):
if {row['id'] for row in actual[family]} != set(baseline[family]):
raise SystemExit('Complete baseline differs: '+family)
print('All 84 tools and 71 capabilities are included; exported inventories match the executable.')