Skip to content

#437 Audit top-level + guide markdown against current public API - #446

Merged
nockawa merged 1 commit into
mainfrom
feature/437-audit-guide-markdown
Jul 2, 2026
Merged

nockawa merged 1 commit into
mainfrom
feature/437-audit-guide-markdown

Conversation

@nockawa

@nockawa nockawa commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Closes #437.

Summary

Verified README.md, CONTRIB.md, and doc/guide/ (6 chapters + the runnable example) against the current public API, cross-checked against src/Typhon.Engine/src/Typhon.Schema.Definition and the actual repo/org state.

Real bugs found and fixed (not just stale prose):

  • The guide's runnable example (doc/guide/example/) crashed at ch.5: CombatSystem declared .ReadsSnapshot<Position>(), but Position is SingleVersion and a newer engine rule (CM-04) hard-rejects ReadsSnapshot on non-Versioned components at RuntimeSchedule.Build(). Removed the (already-unused) declaration and rewrote ch.5's teaching example to match — verified end-to-end run succeeds.
  • Chapter 1's "whole program" listing didn't compile as literally ordered (type declarations before top-level statements is a C# error, CS8803) despite an "✅ verified" badge. Reordered; verified by compiling the exact snippet in isolation.
  • Chapter 6 claimed the engine validates memory budgets and refuses to start on overflow — it doesn't; ResourceOptions.Validate() exists but the hosting-layer call sites are dead // TODO stubs. Corrected to "call it yourself."

Overstated claims corrected:

  • EntityLink<T> "compile-time safety" — no check exists at all (verified the implicit operator); softened to "a contract, not an enforced guarantee."
  • The spatial WriteSpatial barrier framed as "a rule the engine enforces" — it's an opt-in, Warning-severity analyzer (TYPHON009) that doesn't even cover EntityRef.Write; corrected, and noted the guide never mentioned the analyzer needs its own separate project reference.
  • Minor: a query's foreach "streams, no set allocation" — it iterates a pre-collected List, not a HashSet; narrowed the claim.

Stale facts corrected:

  • README's Project Structure test//tools/ trees (wrong/missing projects, AntHill actually lives under demo/).
  • CONTRIB.md: nockawa/Typhon → log2n-io/Typhon throughout, project board #7 → orgs/Log2n-io/projects/1, broken claude/README.md link → claude/CLAUDE.md, incomplete Area field list, outdated skills list, and the Status field — CONTRIB.md documented the old 6-state lifecycle (Backlog/Research/Ready/.../Done); the board is now 3-state (Todo/In Progress/Done), confirmed via .github/workflows/project-sync.yml. Removed the /weekly-review and /mountain-view sections (never implemented — no such skills exist under .claude/skills/).

Flagged, not fixed here (outside README/CONTRIB/doc/guide scope): the repo root CLAUDE.md documents this same old 6-state lifecycle, and the /start-task skill has stale hardcoded Status option IDs from the pre-migration project board — both are the same class of staleness as the CONTRIB.md fix above, just in files outside this issue's stated scope.

Test plan

  • doc/guide/example rebuilt and run end-to-end after every fix — confirmed OK — guide example ran end to end.
  • Chapter 1's reordered listing compiled and run in isolation, produced the exact claimed output.
  • Every corrected claim (EntityLink, WriteSpatial/TYPHON009, ResourceOptions.Validate, CM-04) verified directly against current source, not assumed.
  • README's project-structure tree checked against ls test/, ls tools/, ls demo/.
  • CONTRIB.md's Status-field claim checked against the actual .github/workflows/project-sync.yml (which hardcodes and comments the current 3-state field).

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
https://claude.ai/code/session_01Ax1JSSRz1HHoGVxoqfu9XZ

@nockawa
nockawa merged commit 38f0e53 into main Jul 2, 2026
9 checks passed
@nockawa
nockawa deleted the feature/437-audit-guide-markdown branch July 2, 2026 21: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.

Audit top-level + guide markdown against current public API

1 participant