Repository navigation
docs: clear prose-hook findings repo-wide and fix stale Python references - #1002
Merged
Merged
Conversation
godofecht
force-pushed
the
docs/prose-cleanup-and-python-refs
branch
from
September 29, 2026 05:45
9103c99 to
1294a4b
Compare
The generator now writes a hyphen for an undocumented function, and the stdlib doc comments that fed dashes and curly quotes into the table are rewritten with plain punctuation.
Page titles use a bar separator. The two build scripts and the checked-in pages they emitted get the same edits, so a rebuild reproduces them.
Covers the language guides from README through modules, plus the discord webhook page and the Schur lattice formal note. Meaning is unchanged.
Also covers the runtime-in-flow, self-hosting and vgpu-parity project notes and the compiler architecture paper source.
…d comparison pages
Two in-page links in the variable-size tiny pointer notes follow the renamed heading anchors.
…ground The changelog changes punctuation only, plus one rewording where a comma construction could not be fixed with punctuation alone.
Headings and source lines use a colon. The definition and axiom openers become two sentences, and the exhaustive-case step is split the same way.
Source lines, headings and tier openers in the checked-in proof markdown and LaTeX now match what the updated generator emits. The @from comments in the verify sources use a colon, and the diagram SVGs are regenerated from the updated caption strings.
Dashes, curly quotes and emoji heading markers are gone. Item titles keep their words, so every roadmap slug is unchanged: a dry run of scripts/sync_roadmap.sh plans the same creates, adoptions and closes as before. The sync is named as scripts/sync_roadmap.sh, since the Python script was deleted in #959.
The README names the flow-lsp launcher, since there is no flow lsp subcommand. Reproducible-build docs point at the test that exists. The mathlib TOC drops the Euclid generators removed in #965, and the tests inventory drops a Python test that tests/lang now covers.
The Python counter and its Flow port change together, so they still agree and the README stats block keeps plain punctuation.
godofecht
force-pushed
the
docs/prose-cleanup-and-python-refs
branch
from
September 29, 2026 06:15
1294a4b to
1de46df
Compare
godofecht
added a commit
that referenced
this pull request
Sep 29, 2026
PR #1002 rewrote the em dashes in the Python proof generators. The Flow ports of math_prose, proof_document and claim_path now emit the same sentences, so both hosts produce the same text.
godofecht
added a commit
that referenced
this pull request
Sep 29, 2026
PR #1002 rewrote the em dashes in the Python proof generators. The Flow ports of math_prose, proof_document and claim_path now emit the same sentences, so both hosts produce the same text.
godofecht
added a commit
that referenced
this pull request
Sep 29, 2026
#1002 made the repo-stats generator write '-' where it wrote 'n/a' and left test_repo_stats expecting the old text, which turned Python tests red on main.
godofecht
added a commit
that referenced
this pull request
Sep 29, 2026
…libc externs, diagnostics (#1003) Stage-A fixes: Python operator precedence, sort modifier words as names, name types resolved from the declaration in scope, return followed by not or dbg, located parse errors, portable libc externs, unexported functions of imports in bundle typecheck, dash-free proof prose matching the Python generators, time.h off the prototype path, and no Gen0 recursion in ensure_flowc. Bootstrap C regenerated on main (fixed point, bootstrap_from_c --verify, self_host_full pass). Also fixes test_repo_stats after #1002.
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.
What
The prose pre-commit hook (
slop.py) blocks any commit that touches a file holding em dashes, en dashes used as separators, curly quotes, emoji section markers or the "X, not Y" construction, even when the text predates the edit. That kept doc updates for the Python-to-Flow ports from landing. This PR clears every blocking finding in tracked prose and fixes docs that name deleted Python files.slop.pyover all 2,794 tracked.md,.txt,.texand.htmlfiles: 5,925 blocking findings in 2,536 files before, 0 after.Hand-written docs
About 230 files. Each dash became a full stop, comma, colon, parentheses or a split sentence, chosen per sentence. Numeric ranges use a hyphen or "to". Empty table cells use "-". Code blocks and inline code are untouched.
docs/project/CHANGELOG.mdgets punctuation only, plus one rewording where punctuation could not clear a finding.Generated files
Generated files were fixed through their generators:
docs/library/stdlib-api.md: regenerated byscripts/gen_stdlib_docs.py. The placeholder for an undocumented function is now "-", and thelib/stdlibdoc comments that fed dashes into the table are rewritten.examples/verify/**,lib/verify/*.proof.{md,tex},.proof.svg,.proof-diagram.tex): the strings insrc/flow/proof_document.py,math_prose.py,claim_path.pyandgeometry_diagram.pychanged, and the# @fromcomments in the verify sources use a colon. The checked-in artifacts drift from a clean regeneration in other ways, so the same punctuation edits were applied to them. A regenerated Euclid I.1 artifact is byte-identical to the checked-in one. The proof tests pass.site/wasm/**: the templates inscripts/wasm_build.pyandscripts/build_wasm_gallery.pychanged, and the same edits were applied to the pages. A full rebuild needs emcc and was not run.scripts/update_repo_stats.pyand its Flow port) now writes "-" for the empty registry cell. The two still agree.ROADMAP.md
scripts/sync_roadmap.shderives slugs from item titles. Only punctuation changed, and the slugger folds punctuation runs into one hyphen../scripts/sync_roadmap.sh --dry-run --verboseplans the same creates, adoptions and closes before and after. Only the section labels in the plan differ.Stale Python references
ROADMAP.md:scripts/sync_roadmap.pyis nowscripts/sync_roadmap.sh(deleted in Port the doc and version checkers from Python to Flow #959).README.md:./flow lspis not a subcommand, so it prints usage. The README now names the./flow-lsplauncher, which runssrc/flow/lsp_server.py.docs/certification/reproducible-builds.md:tests/unit/test_reproducible_c.pynever existed. The docs now point attest_reproducible_c_emitintests/unit/test_misra_phase2.py.docs/language/mathlib-equivalence-toc.md: drops the Euclid generators that Port tools, wasm, benchmarks and challenges Python to Flow #965 deleted.docs/project/tests-in-flow.md: dropstest_string_concat_calls.py, which tests/lang now covers.docs/AI_FLOW_HANDBOOK.md: the placeholder test path now names a real test.docs/project/python-in-flow.mdmatches main: the ports merged in selfhost: Field DSL expansion on flowc, Python expander retired (#682) #956, Port the doc and version checkers from Python to Flow #959, flow run without Python on the flowc host #960, Port tools, wasm, benchmarks and challenges Python to Flow #965, Stage-A: fix the bugs blocking the Python-to-Flow test port #966 and chore: Flow-first policy with a Python ratchet written in Flow #981. Open PRs tests: port Python run tests to tests/lang (batch 2) #955, tools: port the remaining scripts/*.py to Flow #971, Retire the Python REPL and test_runner; keep the LSP with evidence #987, Package management in Flow: native install/add/sync and flowc package imports #989, selfhost: Shader DSL (FSL) on flowc, Python backends retired (#683) #998, selfhost: dynamics DSL and flow-block lowering on flowc, Python expanders retired (#681) #999 and flowc: parse every .flow file the Python parser accepts (1002 -> 2082) #1001 are listed as in progress. The LSP is the Python server and there is no Flow LSP. The Flow REPL is in open PR Retire the Python REPL and test_runner; keep the LSP with evidence #987.References left alone on purpose: the history entries in CHANGELOG, an archived tree listing in
docs/project/archive/, and the "Was (deleted)" column in python-in-flow.Checks
./scripts/check_doc_links.sh: all relative links and fragments resolve./scripts/check_doc_coverage.sh: every feature has a documented home./scripts/sync_version.sh --check: in syncpython3 scripts/build_wiki.pythen./scripts/check_wiki_links.sh: Wiki links OKpytest tests/unit/test_proof_document.py tests/unit/test_proof_bundle.py: 28 passedFollow-ups
gen_stdlib_docs.py,build_wasm_gallery.pyandbuild_wiki.py. That will conflict with the template edits here, and its Flow ports should emit plain punctuation too.compiler/src/math_prose.flowandproof_document.flowstill hold the old dash strings. Changing them means regenerating the bootstrap C, so they are left for a compiler PR.update_repo_stats.sh --checkalready fails on main because the stats are stale. This PR does not refresh them.