Repository navigation
Make Flow documentation compiler-audited by construction - #579
Merged
Merged
Conversation
godofecht
marked this pull request as ready for review
August 19, 2026 11:22
godofecht
marked this pull request as draft
August 19, 2026 17:34
Take the focused chapter 9 fixes from #622 and keep the audit branch's remaining documentation work on top.
Keep the newer fixes already present on main rather than reclassifying working examples as text.
Take the fully green focused fixes from #624 and keep the remaining audit work on top.
PR #606 already made the detailed dynamics reference compile without deleting its API signatures and examples. Preserve that focused cleanup instead of the older broad rewrite.
Keep the detailed lifetime-domain checks and the current theorem/assume proof surface that landed in focused PRs instead of replacing them with older condensed or future-only documentation.
Take the focused, green chapter-6 fix from #625 and keep the remaining audit work on top of current main.
Keep the focused span diagnostics, lowering notes, lifetime-domain interaction, and staging detail rather than replacing the page with the older condensed rewrite.
godofecht
marked this pull request as ready for review
August 20, 2026 18:21
This was referenced Aug 20, 2026
godofecht
added a commit
that referenced
this pull request
Sep 7, 2026
Resolve PR #579 against current main while preserving the PR's documentation rewrites and taking non-overlapping compiler, stdlib, browser, and test updates from main.
godofecht
added a commit
that referenced
this pull request
Sep 7, 2026
Resolve PR #579 against current main while preserving the PR's documentation rewrites and taking non-overlapping compiler, stdlib, browser, and test updates from main.
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.
Make Flow documentation executable and auditable by construction without allowing existing documentation debt to brick unrelated pull requests.
This PR now establishes two complementary contracts:
textor untyped fences.scripts/check_doc_flow_snippets.pyfails when it finds one. Deliberately non-current syntax must be labelledflow-futureorflow-pseudocodeexplicitly.The zero-debt command
scripts/check_doc_examples_strict.pyis retained as the explicit audit target for reaching 100% compiler-checked documentation. It is intentionally not the normal PR gate while baseline debt remains, because doing so would make every unrelated docs PR fail before it changed anything.The checker runs Flow examples through parsing, strict type checking, C generation and clang, supports page-scoped
id=/uses=context and preambles, resolves imports including C imports, verifies intentionalexpect-errorexamples as negative tests, and rejects vacuous or degenerate harness successes.This PR also cleaned a large amount of historical documentation debt and rewrote the quickstart as a copy-paste path. The hidden-snippet audit is clean; remaining zero-debt failures stay explicit rather than being disguised as text.