Add WebHarbor task validation script - #45
Conversation
|
Claiming this for a reviewer-owned continuation. I will preserve @Lxr-max’s original commit and attribution, and audit the task validator against current |
|
Draft reviewer continuation: #91 The original contributor commit and attribution are preserved. The current candidate has 31/31 tests on Python 3.11/3.12, a strict 24-file / 805-row corpus pass, and 18/18 recorded contract scenarios matching their predefined outcomes. The detailed public report is linked from #91. Independent blind review and reconciliation are still pending, so the Review PR remains Draft. Site UI/HF checks are not applicable to this tooling-only change. |
Summary
This PR adds a small repository-level validator for WebHarbor task files:
scripts/validate_tasks.pyscripts/test_validate_tasks.pyIt validates the current
sites/*/tasks.jsonlschema used in this repo without introducing any new website contribution.Why this is useful
WebHarbor reviews depend heavily on task quality and consistency. This script gives contributors and reviewers a quick way to catch:
That makes task review more repeatable and lowers the chance of avoidable PR feedback.
CLI examples
Validation categories
id,web_name,web,upstream_url,queswebupstream_urlwebsyn_start.shChecks run
Results:
py_compile: passed6tests passed15sites,15task files,643tasks,0errors,0warnings--site amazon: passed--tasks sites/amazon/tasks.jsonl: passed--strict: passed against the current repo state--json: returned valid machine-readable JSON summaryScope notes
.assets-revisionwas not modified.