Skip to content

docs(whale): document format 3 reader and bounded verification - #480

Merged
LunaStev merged 1 commit into
wavefnd:masterfrom
LunaStev:docs/whale-ir-reader
Oct 7, 2026
Merged

LunaStev merged 1 commit into
wavefnd:masterfrom
LunaStev:docs/whale-ir-reader

Conversation

@LunaStev

@LunaStev LunaStev commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Whale now reads and verifies its format 3 typed text. Update the official IR reference, CLI reference and support status so readers can save the complete printed examples as .wir input, verify them in the default build and write canonical output.

Depends on wavefnd/Whale#241; merge that implementation first. It resolves Whale #238, #239 and #83. This PR only changes Markdown under wavedoc/{locale}/whale/; it does not change routing, site behavior or deployment.

Reference changes

  • Explain verified reading, preserved IDs/names/order/types/expression trees/exact payloads/attributes and canonicalized whitespace/comments, supported syntax, rejection rules, located diagnostics and explicit format 2 migration/version policy.
  • Document default-build ir verify and ir print, mandatory verification and output preservation; retain the feature requirement specifically for AST JSON ir lower.
  • Add a complete executable Rust reader/round-trip example with configurable limits and an invalid-version assertion. Retain complete IR examples and show the exact CLI commands for them.
  • Explain default bytes/tokens/nodes/depth budgets, root-depth counting, the safe configurable ceiling, structured resource errors, iterative verification/evaluation and the caller-owned clone/Drop boundary.
  • Keep runtime execution, initialization tracking, native calls and pointer metadata marked unavailable; explain that legacy undef is retained for lowering compatibility.
  • Update all nine existing locales (27 pages); unsupported partial locales retain the English fallback without copied placeholders.

Validation

All four registered GitHub CI checks passed on 565ec2c. The implementation PR has all 23 checks passing on 32f1442, including both Windows architectures/configurations. Both PRs remain open for review.

  • Full translation checker: 54 Korean source documents / 432 translations passed, including identical code fences, structure and links.
  • check-doc-examples.py --links-only and git diff --check passed.
  • All three complete IR-reference Rust programs compiled and ran against the implementation; the first output exactly matched the documented complete IR. The configurable reader example verified/reprinted the saved file and rejected an unknown version. Complete CLI examples passed.
  • go test ./internal/web/handler passed.
  • go test ./internal/document still reports the same three pre-existing failures confirmed on the untouched baseline in the preceding documentation work: missing Chinese Wave Explicit Memory Type Model vocabulary, missing official installer command, and missing English Windows installer command. Those unrelated language/installation pages are unchanged here.

No site rebuild, restart or deployment was performed. No automatic merge.

@LunaStev
LunaStev merged commit 704daa5 into wavefnd:master Oct 7, 2026
4 checks passed
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