2026-10-14 10:45:26 -06:00
|
|
|
from pathlib import Path
|
|
|
|
|
import json
|
|
|
|
|
root=Path(__file__).resolve().parents[1]
|
2026-11-08 14:24:05 -07:00
|
|
|
required=['skills/seo-geo-research/SKILL.md','skills/seo-geo-research/references/research-framework.md','skills/seo-geo-research/references/expert-watchlist.md','templates/report-template.md','templates/run-receipt.json','evals/contract.json','evals/routing-cases.json','scripts/rollup.py','scripts/test_rollup.py']
|
2026-10-14 10:45:26 -06:00
|
|
|
for name in required: assert (root/name).is_file(),name
|
|
|
|
|
for p in root.rglob('*.json'): json.loads(p.read_text(encoding='utf-8-sig'))
|
|
|
|
|
skill=(root/required[0]).read_text(encoding='utf-8')
|
|
|
|
|
for section in ['Contract','Requires','Ensures','Workflow','State Scope','Validation','Run Receipt','Ratchet']: assert section in skill,section
|
|
|
|
|
assert 'name: seo-geo-research' in skill
|
2026-11-09 13:35:30 -07:00
|
|
|
assert 'completed-with-gaps' in skill
|
|
|
|
|
assert (root/'scripts/validate_coverage.py').is_file()
|
|
|
|
|
assert (root/'tests/test_coverage_policy.py').is_file()
|
2026-10-14 10:45:26 -06:00
|
|
|
print('PASS: required files, JSON, skill contract sections')
|