🤖 Generated by the Daily AI Engineer
Objective
Migrate the remaining first-party Python validation scripts and tests to Go so repository automation follows the Bash-or-Go scripting standard introduced alongside #2622.
Details
The repository still tracks three Python validators, one Python test module, and a generated bytecode artifact:
scripts/validate-embedded-json.py
scripts/validate-homepage-bookmarks.py
scripts/validate-naming.py
scripts/tests/test_validate_homepage_bookmarks.py
scripts/tests/__pycache__/test_validate_homepage_bookmarks.cpython-311.pyc
CI and AGENTS.md also invoke or document the Python entry points. Keeping two implementation stacks increases maintenance cost, leaves generated bytecode in source control, and makes the repository scripting convention inconsistent.
Port one validator at a time to a small Go command under scripts/, using table-driven tests while preserving each validator's accepted inputs, diagnostics, exit behavior, and fail-closed rules. Update CI, path filters, and documentation with each migration, then remove the superseded Python sources and bytecode.
Checklist
Dependencies
Builds on the Go module and validator pattern introduced by #2622. The embedded-JSON validator originated in #2480.
Notes
Rough size: medium, likely two to three focused PRs with one validator migrated per increment.
Objective
Migrate the remaining first-party Python validation scripts and tests to Go so repository automation follows the Bash-or-Go scripting standard introduced alongside #2622.
Details
The repository still tracks three Python validators, one Python test module, and a generated bytecode artifact:
scripts/validate-embedded-json.pyscripts/validate-homepage-bookmarks.pyscripts/validate-naming.pyscripts/tests/test_validate_homepage_bookmarks.pyscripts/tests/__pycache__/test_validate_homepage_bookmarks.cpython-311.pycCI and
AGENTS.mdalso invoke or document the Python entry points. Keeping two implementation stacks increases maintenance cost, leaves generated bytecode in source control, and makes the repository scripting convention inconsistent.Port one validator at a time to a small Go command under
scripts/, using table-driven tests while preserving each validator's accepted inputs, diagnostics, exit behavior, and fail-closed rules. Update CI, path filters, and documentation with each migration, then remove the superseded Python sources and bytecode.Checklist
.py,.pyc, or__pycache__validator artifacts remain underscripts/.go test -race ./...,go vet ./..., andactionlintpass.Dependencies
Builds on the Go module and validator pattern introduced by #2622. The embedded-JSON validator originated in #2480.
Notes
Rough size: medium, likely two to three focused PRs with one validator migrated per increment.