Skip to content

Stage the Lua Program guide when its source supplies it - #392

Open
tony wants to merge 2 commits into
fix/lua-guide-source-provenancefrom
feat/lua-program-guide-staging
Open

tony wants to merge 2 commits into
fix/lua-guide-source-provenancefrom
feat/lua-program-guide-staging

Conversation

@tony

@tony tony commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Refs #386. Based on #381.

What changed

Stage the Lua Program guide when its source includes the chapter. Add the guide index card and resolve a complete program to a public API page when its artifact and model agree on the revision, file and bytes. Checkout-only guides use the working-copy footer.

Checks run

  • Reproduced the missing Program route and reference links on main.
  • Passed the guide, product, and Core rendering tests for the staged source, including launcher and standalone fixtures.
  • Confirmed that the actual v0.1.1 staged output matches the baseline byte for byte.
  • Passed API-model and Astro type checking, Node syntax, changed-file Oxlint, and the diff check. Oxlint reported two existing test warnings.

The public Program chapter will appear once the Lua source and its supporting APIs are published.

Tool use

Codex replayed the fixture, the genuine release and the checkout-only guide against the staged reader.

tony added 2 commits December 5, 2026 12:02
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.
why: A Lua source can ship the Program guide later than the creation
guide. The stager must handle both source layouts.

what:
- Register the Program route only when the selected source includes it.
- Match full programs to reference pages by revision, path, and bytes.
- Exercise the present and absent guide cases with both launcher forms.
@tony
tony force-pushed the fix/lua-guide-source-provenance branch 2 times, most recently from 24b0b58 to 708d9a2 Compare December 6, 2026 08:16

This branch has not been deployed

No deployments
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