Repository navigation
Fix YAML validation, Pages refresh, and AI-facing format docs - #1
Merged
Merged
Conversation
- build_db.py: validate every file against schema.py again (the Oct 14 rewrite had dropped validation and crashed on null jewels), report all errors at once with file names, check id == file name and caliber links, add --check, and generate index.html from the database. - schema.py: allow null for unknown jewels/power reserve/hacking and an empty reference list; reject unknown/misspelled keys. - Fix two watch files whose tests_passed was a bare string. - Replace the two overlapping workflows with one that validates, builds and deploys to Pages without committing horology.db/index.html back. - Add docs/YAML_FORMAT.md, a complete paste-into-an-AI format spec, and point README section 6 at it. - export_latex.py: handle unknown jewels/power reserve. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LouW73LWj5qLoWxpQWzwoU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why the site wasn't refreshing
src/build_db.pyhad been rewritten without schema validation and crashed on the new Omega movements (jewels: nullviolated a NOT NULL column), so the Pages workflow failed and nothing new was published.index.htmlfrom before the Omega additions, while a second workflow tried to deploy a Datasette Lite page pointing at a view the rewritten build no longer created.Changes
build_db.pyvalidates every file againstschema.py, lists all errors with file names, checks id == file name and caliber links, adds--check, and generatesindex.html(searchable, sortable, dark-mode).schema.py:nullallowed for unknown jewels / power reserve / hacking; empty reference list allowed; unknown keys rejected.tests_passedin two watch files (bare strings → proper entries).build_and_deploy.yml) validates, builds and deploys;horology.dbandindex.htmlare no longer committed.docs/YAML_FORMAT.mdto paste into any AI; README updated.Required after merging
Settings → Pages → Build and deployment → Source: GitHub Actions.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LouW73LWj5qLoWxpQWzwoU
Generated by Claude Code