Skip to content

Fix YAML validation, Pages refresh, and AI-facing format docs - #1

Merged
wdjoyner merged 1 commit into
mainfrom
fix-validation-and-pages
Oct 15, 2026
Merged

wdjoyner merged 1 commit into
mainfrom
fix-validation-and-pages

Conversation

@wdjoyner

Copy link
Copy Markdown
Owner

Why the site wasn't refreshing

  • src/build_db.py had been rewritten without schema validation and crashed on the new Omega movements (jewels: null violated a NOT NULL column), so the Pages workflow failed and nothing new was published.
  • Pages was serving a committed index.html from 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.py validates every file against schema.py, lists all errors with file names, checks id == file name and caliber links, adds --check, and generates index.html (searchable, sortable, dark-mode).
  • schema.py: null allowed for unknown jewels / power reserve / hacking; empty reference list allowed; unknown keys rejected.
  • Fixed tests_passed in two watch files (bare strings → proper entries).
  • One workflow (build_and_deploy.yml) validates, builds and deploys; horology.db and index.html are no longer committed.
  • New docs/YAML_FORMAT.md to 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

- 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
@wdjoyner
wdjoyner merged commit b252e83 into main Oct 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant