Skip to content

Cite the Lua guide bytes that were built - #381

Merged
tony merged 1 commit into
mainfrom
fix/lua-guide-source-provenance
Dec 6, 2026
Merged

tony merged 1 commit into
mainfrom
fix/lua-guide-source-provenance

Conversation

@tony

@tony tony commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Closes #380.

What changed

Check staged Lua guide bytes against the Git blob and the working copy. The footer and inventory cite a revision when its file matches. A checkout-only guide shows its local path and keeps its machine-readable links. Staging reports a stale export when neither source matches.

Checks run

  • Reproduced the incorrect pinned cite through the ordinary staging CLI, then passed the checkout, pinned, and stale artifact cases.
  • Passed the guide staging, site footer, inventory, and machine-readable tests. The focused run skipped the assembled-output group.
  • Passed Astro type checking, changed-file Oxlint, Node syntax checking, and git diff --check.

Tool use

Codex reviewed the provenance rules and ran the independent staging and renderer checks before preparing the branch.

@tony
tony changed the base branch from main to fix/port-build-shared-glossary December 6, 2026 07:43
@tony
tony force-pushed the fix/lua-guide-source-provenance branch from 6bc6fb8 to 24b0b58 Compare December 6, 2026 07:43
why: A locally edited guide inherited the checkout revision even when
its text differed from the Git blob.

what:
- Distinguish a verified working-copy guide from a pinned Git source.
- Show its local path in the footer and omit pinned inventory metadata.
- Reject artifacts that match neither source.
@tony
tony force-pushed the fix/lua-guide-source-provenance branch from 24b0b58 to 708d9a2 Compare December 6, 2026 08:16
@tony
tony force-pushed the fix/port-build-shared-glossary branch from a7807f0 to 4907cf0 Compare December 6, 2026 08:16
@tony
tony changed the base branch from fix/port-build-shared-glossary to main December 6, 2026 10:50
@tony
tony merged commit f6bdade into main Dec 6, 2026
5 of 7 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.

Lua checkout guides can link to a different source file

1 participant