Repository navigation
Conversation
…atomically - HTML-2: HALLUX tokens fall back to dev/hallux-snapshot.json, which every build with HALLUX checked out rewrites; BLVKWARE_REQUIRE_HALLUX=1 refuses it - The build runs in a staging copy and swaps into docs/ only on success, so an abort no longer leaves a half-written site - dev/check-public-build.py checks both paths; CI runs it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011GFY8v4QeVYzawpSLcJCzz
This branch has not been deployed
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.
Fixes audit finding HTML-2.
Problem
halluxcheckout beside it could not build.site/index.htmlaborted on{{HALLUX_FREE_DAILY}}and{{HALLUX_NAMESPACE_COUNT}}.docs/was left half-updated. Reproduced: 3 tool pages were rewritten before the abort.Fix
dev/hallux-snapshot.json, and only rewrites it when they change. Without HALLUX, the bridge fills the tokens from that file and prints a note. HALLUX remains the single source of truth: the snapshot is only what the last full build published.BLVKWARE_REQUIRE_HALLUX=1refuses the snapshot. Use it for the production publish if a snapshot fill must never happen there.main()copiesdocs/to a.docs-staging-*directory, builds there, and swaps it into place only on success. On any abort,docs/stays byte-for-byte as it was and the staging directory is removed.Verification
dev/check-public-build.pycopies the tracked files into a temp directory with no../halluxand checks two things: (1) the build succeeds anddocs/has no{{HALLUX_*}}token left; (2) a strict-mode build aborts, leaves thedocs/tree hash unchanged, and leaves no staging directory. Both pass. On the old code, check (1) fails (exit 1).fetch-depth: 0because article dates come from git history.Not in this PR:
docs/is not rebuilt here. My clone is shallow, so a rebuild would have re-dated every article to today. Rebuild from your full checkout as usual.Generated by Claude Code