Skip to content

Latest commit

 

History

History
126 lines (101 loc) · 7.6 KB

verification.md

File metadata and controls

126 lines (101 loc) · 7.6 KB

Website implementation and verification

The initial rebuild produced 23 pages, including the tour, example index, and twelve language reference topics. Local site checks and the full release gate passed at that snapshot.

Responsive layout and search, 2026-12-01

The local preview passed bun run check with Bun 1.3.11, running 12 tests and checking 1,512 local resources and 185 search targets. Tracked exports matched the build.

Chromium checks covered 1440 × 900, 390 × 844, and 320 × 740 viewports. On desktop, the quick-start heading and first command appeared above the fold; narrow viewports rendered the header and search dialog without horizontal overflow. Picking Install from a zig version search closed the dialog and focused the Install heading. Pressing Escape with text in the input closed search and returned focus to the Search button. These checks covered desktop keyboard and mobile viewport behavior, not physical devices or screen readers.

Delivered files

  • Site guide: authoring workflow, typed registry, and explicit export sync.
  • Research decisions: approved layout, typography, and evidence rules.
  • Coverage matrix and feature records: 428 records with explicit dispositions and evidence links covering 117 specification headings, 48 keywords, 42 operator/punctuation spellings, all registered stdlib operations, all 43 examples from that snapshot, and proposed APIs.
  • Public manifest: page metadata, sections, examples, sources, and feature records. Its SHA-256 digest identifies doc bytes, not compiler correctness.
  • Browser verification, content verification, and agent retrieval: recorded observations and test limits.

Publishing architecture

scripts/content.ts discovers nested Markdown and builds the registry backing HTML pages, navigation, search, the sitemap, and agent exports. markdown-it renders nested lists, tables, blockquotes, and fences with raw HTML disabled. Each page renders one <h1>, resolves heading ID collisions deterministically, and preserves legacy anchors (such as mapping exit-codes to diagnostics-and-exit-codes).

Each page links to its Markdown twin and llms.txt. Source links point to Markdown twins (*.md), which HTML rendering converts to page routes. llms-full.txt resolves relative links per document and keeps fenced code intact, including nested Markdown fences. The preview server returns real 404s, serves manifest.json with a JSON content type, and redirects only known legacy page names.

bun run sync:exports writes tracked exports explicitly; ordinary builds write only to dist/. An isolated negative control (evidence/export-checks.json, pruned from the working tree and preserved in git history) confirmed bun run check:exports exits 1 when an export is stale, and before/after hashes confirmed bun run build leaves public files untouched. The Pages workflow checks types, coverage, publication tests, export freshness, and links before deploying.

Verification results (2026-09-19 snapshot)

Check Observed result (2026-09-19) Evidence
bun run check Pass (TypeScript, coverage, ten publication/server tests, build, exports, links) evidence/site-check.log (git history)
Source-derived coverage 428 records match the 2026-09-19 inventory and coverage matrix Checker
Published resources 1,318 local links/resources and 172 search targets resolve evidence/site-check.log (git history)
Complete website A7 snippets Ten standalone code fences compile and run natively evidence/standalone-snippets.json (git history)
Repository examples 43/43 examples at that snapshot compile, build, run, and match golden output Example results
Focused reference and stdlib probes Valid cases pass; rejections and native failures documented Content verification
Full release gate 9/9 checks pass, exit 0 evidence/full-release-gate.log (git history)
Browser layout 30 route/width/theme cases and 46 all-page/width cases pass H1 and overflow checks Browser report
Agent retrieval Five selective retrieval tasks pass; manifest JSON and 404 confirmed Retrieval report

At that snapshot, the release gate ran 2,651 pytest cases, 43 debug and 43 release artifacts, 61 error-stage cases, docs style, secrets, package build, and clean-venv wheel install checks alongside active compiler work. Existing unrelated changes were preserved, so this log does not represent an immutable release tag.

Reproduce standalone snippet checks from site/:

uv run python docs/verify-snippets.py

Ten complete snippets passed, including the mutable-struct reference example (42). Context-dependent fragments are marked as excerpts and backed by full repository examples or integration probes.

Design and interaction review

With no approved option 2 concept image available, captures were checked against the written plan. Desktop and mobile screenshots were inspected directly:

Requirement Implementation and observed result
Reading layout 240px rail, centered article, 180px outline; native disclosures below breakpoints
Typography Local Inter Variable prose/nav; JetBrains Mono code; 40px/32px titles, literal operators
Palette Neutral light/dark surfaces, restrained red links, visible focus rings
Article links Underlines restored over Tailwind reset; computed underline verified
Code and tables Local overflow wrappers; literal source, accessible copy feedback, 44px mobile buttons
Diagrams Ordered steps styled as semantic flows for pipeline, arrays, and reference access
Navigation Desktop rail visible; short labels; no-JS mobile disclosure works
Wrapping Zero global overflow at 320px, including 200% text with spacing overrides

Above-the-fold copy comes directly from shared Markdown. Decorative effects, invented terminal transcripts, and reveal animations were removed. Search covers body prose and identifiers, and tests exercised keyboard selection, empty/loading/error states, retry recovery, clipboard copy/failure, theme persistence, blocked fonts, and unavailable localStorage. Contrast checks pass for text, links, focus rings, and borders on both themes; one delayed uncached font load measured CLS 0 (not a field-performance claim).

Remaining limitations

This historical report reflects its 2026-09-19 snapshot. Later native fixes verified escaped IO braces, signed math.abs return typing (minimum signed input remains unqualified), and compile-time @type_set aliases (which now emit no Zig and pass in test/test_type_set_aliases.py). Open restrictions recorded at that snapshot:

  • Scalar-filled fixed-array initializers are rejected.
  • Direct string.len access was rejected at that snapshot (later enabled via L81).
  • Top-level local @type_set aliases failed codegen at the 2026-09-19 snapshot (later repaired).

Coverage lists further specification conflicts and unverified claims, including generic identifier rules and evaluation order.

Browser checks ran in local headless Chromium. The 320px viewport tested layout width equivalent to 400% zoom on a 1280px window, without automating browser chrome zoom. Screen readers, Firefox, Safari, and live GitHub Pages HTTP headers were not tested. Tabbing in the <dialog> moved to browser chrome rather than leaking to underlying page controls.