Skip to content

docs: fix code snippets to match actual zilkworm source#2

Open
bloxster wants to merge 1 commit into
mainfrom
docs/code-snippet-source-truth
Open

docs: fix code snippets to match actual zilkworm source#2
bloxster wants to merge 1 commit into
mainfrom
docs/code-snippet-source-truth

Conversation

@bloxster
Copy link
Copy Markdown
Collaborator

@bloxster bloxster commented May 29, 2026

Summary

Verified every CLI claim by actually running docker run somnergy/z6m_prover ... against latest. The published Docker image is the source of truth for what users see — master of erigontech/zilkworm has refactored some flag descriptions but the image hasn't been rebuilt yet, so docs should match the image until a new one ships.

Real bugs (fixed)

File What was wrong Now
docs/basics/getting-started.md (CUDA example) z6m_prover prove --n 1 --file-name test.json--n is not a real flag in any version of the binary z6m_prover prove --block-number 1 --file-name test.json
src/pages/index.tsx (landing hero) z6m_prover verify proof.json — would clap-error: verify has no positional argument, only --proof-path (default proof.bin) and --vk-path (default vk.bin) z6m_prover verify --proof-path proof.json --vk-path vk.bin
docs/testing/riscv-testing-eests-on-rv32im-via-qemu.md make rv32im_eest_blockchain_tests — target does not exist in qemu_runner/Makefile make eest-rv32
static/llms-full.txt inline copies of affected pages were stale regenerated via scripts/generate-llms.py

Earlier draft reverted

An earlier version of this PR "corrected" the prove/execute option tables against master source — dropping --is-test, rewriting --block-number description, rewriting --file-name description. That was wrong: the current Docker image still has --is-test and prints the older descriptions verbatim. Reverted those changes so the tables match what users actually see.

If/when a new Docker image ships from current master, those table entries will need a follow-up update.

Could not verify

  • Performance/benchmark claims ("2.5×", "10 seconds on RTX 5090s", "30M gas in under 3 minutes", "100% of EESTs till Osaka") — no benchmark file in repo to cross-check.

Test plan

  • docker run somnergy/z6m_prover --help matches the docs verbatim
  • docker run somnergy/z6m_prover {prove,execute,fetch,verify} --help each matches the docs verbatim
  • npm run typecheck clean
  • npm run build clean

@bloxster bloxster marked this pull request as draft May 29, 2026 13:54
Verified every CLI claim by running `docker run somnergy/z6m_prover ...`
against `latest`. The published image is the source of truth for what
users actually see — `master` of erigontech/zilkworm has refactored some
flags/descriptions but the image hasn't been rebuilt yet, so docs should
match the image until a new image ships.

## Real bugs (fixed)

- **docs/basics/getting-started.md (CUDA example)** — `--n 1` is not a real
  flag in any version. Replace with `--block-number 1` (which the binary
  actually accepts).
- **src/pages/index.tsx (landing hero)** — `z6m_prover verify proof.json`
  would clap-error: the `verify` subcommand has no positional argument,
  only `--proof-path` (default `proof.bin`) and `--vk-path` (default
  `vk.bin`). Rewrite to `z6m_prover verify --proof-path proof.json
  --vk-path vk.bin`.
- **docs/testing/riscv-testing-eests-on-rv32im-via-qemu.md** — `make
  rv32im_eest_blockchain_tests` does not exist in `qemu_runner/Makefile`.
  The intended target is `make eest-rv32` (or `make eest-blockchain-tests`
  which defaults to `ARCH=rv32`).

## Re-verified, left as-is

The prove/execute option tables (including `--is-test` and the
"JSON file..." / "Whether the input file is..." descriptions) match the
binary verbatim — these were temporarily "corrected" against master
source in an earlier draft of this PR and have been reverted to match
what users see when they actually run `--help`.
@bloxster bloxster force-pushed the docs/code-snippet-source-truth branch from 28c0eb8 to bead2fa Compare May 29, 2026 13:58
@bloxster bloxster marked this pull request as ready for review May 29, 2026 14:02
@bloxster bloxster requested a review from Copilot May 29, 2026 14:02
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates documentation and the landing page CLI examples so the commands shown match the behavior and flags exposed by the currently published somnergy/z6m_prover:latest Docker image (treated as the user-facing source of truth).

Changes:

  • Fix prove example to use --block-number instead of a non-existent --n flag.
  • Fix verify example to use --proof-path/--vk-path flags instead of an invalid positional argument.
  • Update the RISC-V EEST QEMU guide to use the correct make target and regenerate static/llms-full.txt to reflect doc changes.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
docs/basics/getting-started.md Fixes CUDA proving snippet flag usage to match the Docker image CLI.
src/pages/index.tsx Updates the landing page “prove/verify” example command to match actual verify CLI syntax.
docs/testing/riscv-testing-eests-on-rv32im-via-qemu.md Updates the documented make target for running EESTs on RV32IM via QEMU.
static/llms-full.txt Regenerates the LLM snapshot to reflect the updated docs content.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/pages/index.tsx
Comment on lines 105 to +107
const exampleCommand = `// Create block proofs in one command
z6m_prover prove --block-number 23456789 --proof-path proof.json
z6m_prover verify proof.json`;
z6m_prover verify --proof-path proof.json --vk-path vk.bin`;
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.

2 participants