Skip to content

Make every example in the evolution and dynamics chapter compile - #624

Merged
godofecht merged 2 commits into
mainfrom
docs-book13-context
Aug 20, 2026
Merged

godofecht merged 2 commits into
mainfrom
docs-book13-context

Conversation

@godofecht

@godofecht godofecht commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

docs/book/13-evolution-and-dynamics.md had eight unverified blocks and now has none.

13.7 showed a composition of two things it never showed

flow Robot {
    plant: Motor
    controller: Controller
    ...
}

Neither Motor nor Controller is declared anywhere on the page, so a reader could not see what the two halves of a composition look like.

It had also drifted from the file it links. The doc wrote plant.measured; examples/evolution/robot_connect.flow writes plant.speed_out. The connection shown was not the connection that runs.

The block is now that file's own text, tagged from= so it cannot drift again, and the two child flows come from a preamble carrying the file's declarations.

Four blocks are single clauses

solver, every, always and represent linear are shown on their own as reference entries for one clause each:

solver {
    dt 1 ms
    method rk4
}

Wrapping those in a flow to satisfy the checker would bury the clause the section is about, so each carries that as its reason instead.

Four build on earlier blocks

13.3 defines rk4_step and 13.4 calls it. 13.9 declares dsys plant and 13.10 and 13.11 sense and analyze over it. They say uses= now rather than failing on KeyError: 'plant'.

Verification

Check Result
pytest tests/ 1735 passed, 6 skipped
check_doc_examples.py --check-ledger no new unverified

Composition itself was never broken: flow Robot with a connect block compiles cleanly once its children exist, which I checked before assuming the feature was at fault.

godofecht and others added 2 commits August 20, 2026 18:30
docs/book/13-evolution-and-dynamics.md had eight unverified blocks and now
has none.

13.7 showed a Robot composing `plant : Motor` and `controller : Controller`
and declared neither, so a reader could not see what the two halves of a
composition look like. It had also drifted from the file it links: the doc
wrote `plant.measured` where examples/evolution/robot_connect.flow writes
`plant.speed_out`, so the connection shown was not the connection that runs.
The block is now the file's own text, tagged from=, and the two child flows
come from a preamble carrying that file's declarations.

Four blocks are single clauses of a flow body shown on their own: solver,
every, always and represent linear. Each says so. They are reference entries
for one clause, and wrapping them in a flow to satisfy the checker would
bury the clause the section is about.

Four more build on earlier blocks and now say so. 13.3 defines rk4_step and
13.4 calls it; 13.9 declares `dsys plant` and 13.10 and 13.11 sense and
analyze over it.

unverified: 159 -> 151.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@godofecht
godofecht force-pushed the docs-book13-context branch from bfb6880 to 5636405 Compare August 20, 2026 17:30
@godofecht
godofecht merged commit 5617c3c into main Aug 20, 2026
21 checks passed
godofecht added a commit that referenced this pull request Aug 20, 2026
Take the fully green focused fixes from #624 and keep the remaining audit work on top.
godofecht added a commit that referenced this pull request Aug 20, 2026
Keep the chapter-6 content fix, take #624's chapter-13 work and current ledger from main, and avoid a generated-ledger merge conflict.
godofecht added a commit that referenced this pull request Sep 7, 2026
Keep the chapter-6 content fix, take #624's chapter-13 work and current ledger from main, and avoid a generated-ledger merge conflict.
godofecht added a commit that referenced this pull request Sep 7, 2026
Take the fully green focused fixes from #624 and keep the remaining audit work on top.
godofecht added a commit that referenced this pull request Sep 7, 2026
Take the fully green focused fixes from #624 and keep the remaining audit work on top.
godofecht added a commit that referenced this pull request Sep 7, 2026
Keep the chapter-6 content fix, take #624's chapter-13 work and current ledger from main, and avoid a generated-ledger merge conflict.
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