Skip to content

docs: refresh repository statistics - #554

Merged
godofecht merged 6 commits into
mainfrom
chore/refresh-stats
Aug 18, 2026
Merged

godofecht merged 6 commits into
mainfrom
chore/refresh-stats

Conversation

@godofecht

@godofecht godofecht commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Housekeeping.

The stats bot branch chore/repository-stats had been force-pushed from an older main, so its diff against current main was a reversal of this session's documentation work: it would have undone the tutorial fixes, the string.flow extern change, and the checker updates.

Deleted that branch and regenerated the statistics from current main instead. The stats workflow recreates the branch from whatever main is on its next run, so nothing is lost.

What moved:

before after
Tracked source files 3,087 3,113
Documentation pages 173 172
Tests (.py + .flow) 432 452
Python compiler modules 70 72

The documentation page count drops by one because #545 retired docs/library/core.md, which documented 75 functions that do not exist. The test and compiler counts rise from the checkers added across this series.

Validation

  • scripts/check_doc_links.py clean
  • scripts/sync_version.py --check in sync

godofecht and others added 6 commits August 18, 2026 16:38
Chapter 5 declares `struct Sample` once in 5.1 and then uses it in six later
blocks. Every one of those was failing, and repeating the struct six times
would bury what each block is showing.

`preamble=<path>` names a file whose declarations precede the block when it
compiles. The prose has already shown the reader the struct, so the checker
sees it too. The preamble sits outside the harness, since wrapping it inside
a synthesized main would nest a struct in a function body; there is a test
for that specifically. A missing preamble file is a failure rather than a
silent skip.

The key was removed from the info string in an earlier PR precisely because
it did nothing. It is back now that it does something.

Its limit is worth recording: a preamble supplies declarations, not locals.
Module statics have to be primitives, fixed arrays of primitives, or ptr<T>,
so a chapter's running `let first: Sample = ...` cannot live in one. Three
blocks in chapter 5 need that and stay in the ledger.

Three Book examples also relied on definitions from an earlier block on the
same page and now carry them:

  - 04-functions 4.3 calls clamp, written in 4.2
  - 05-records mean4 reads samples[i].value, with Sample from 5.1
  - 08-types declares a trait and impl over Point, which the page never
    declared at all

Examples: verified 430 to 436, unverified 255 to 249.

Unit 1498 passed, links and coverage clean.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The stats bot's branch had been force-pushed from an older main, so it was
carrying a reversal of this session's documentation work rather than an
update. Deleted it and regenerated from current main instead; the workflow
recreates the branch on its next run.

Documentation pages 173 to 172 (the retired core library page), tests 432 to
452 files, and the Python compiler 70 to 72 modules.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@godofecht
godofecht merged commit b71da47 into main Aug 18, 2026
20 checks passed
@godofecht
godofecht deleted the chore/refresh-stats branch August 18, 2026 19:11
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