Skip to content

docs(book): the crate graph is derived instead of remembered - #864

Merged
lobinuxsoft merged 2 commits into
developmentfrom
docs/crate-graph-refresh
Aug 17, 2026
Merged

docs(book): the crate graph is derived instead of remembered#864
lobinuxsoft merged 2 commits into
developmentfrom
docs/crate-graph-refresh

Conversation

@lobinuxsoft

Copy link
Copy Markdown
Owner

The page said the layer of a crate is "derived from cargo metadata, not assigned by hand" and that it moves "whether or not anyone updates this page". Both sentences were true of the method and false of the page.

What the workspace actually says: 20 crates in 9 layers. The page said 18 in 8.

page reality
kooch_pack absent entirely L0, and kooch_core depends on it — the asset server opens .kpack
kooch_input L2, kooch_core only L3, on the ECS since an action became an asset (#55)
kooch_camera L3, core + ecs L5, and it depends on kooch_gravity — a rig asks which way up is, because on a planet up is not +Y
kooch_render listed in both L3 and L4 L4
kooch_editor_core "11 internal crates" 14

And the fix is not a better table. .github/scripts/crate_layers.py derives the layering from cargo metadata; --check compares it against the table in the page and exits 1 on drift. So the next edge somebody adds either updates this page or fails a command.

It is deliberately shallow — it compares crate names per layer and says nothing about the prose. A layer that moves is a fact; whether the paragraph explaining it still reads true is a judgement, and a script claiming to check that would be lying.

Fourth page of the pass over the book.

lobinuxsoft and others added 2 commits August 17, 2026 04:54
The page claimed the layers move 'whether or not anyone updates this
page' and then documented eight layers over 18 crates, against nine over
20. kooch_pack was absent entirely, kooch_input and kooch_camera were two
and three layers low, and kooch_render was listed in two tables at once.

crate_layers.py reads the layering out of cargo metadata and --check
compares it against the table, so the next edge somebody adds either
updates the page or fails a command.
@lobinuxsoft
lobinuxsoft merged commit 9069d9f into development Aug 17, 2026
@lobinuxsoft
lobinuxsoft deleted the docs/crate-graph-refresh branch August 17, 2026 08:00
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