docs/replay.md names a flag that does not exist (--looks) and leaves out five that do #513

Open
opened 2026-11-27 08:04:54 +00:00 by github-bot · 0 comments
Owner

@⁠itsonewi on GitHub · 2026-11-27 07:59 UTC · original

What happens

docs/replay.md tells the reader how the commands are numbered:

The commands are numbered <list>:<command> as in
--listing, --slots and --looks.

docs/replay.md:95-96

victory replay has no --looks. The Replay struct (apps/victory/src/replay.rs:27) declares every option the command takes, and none of them is looks: no field, no alias = "looks", no visible_alias, and grep -n looks apps/victory/src/replay.rs finds nothing (the module play::look is where --flow and --images live, which is where the name comes from). victory replay <capture> --looks therefore ends in clap's unexpected argument '--looks' found.

The same tables run the other way too: five flags that the struct does declare are named nowhere in the document, so a reader who needs them finds them only in --help:

flag where it is declared the struct's own description
--top <n> (default 20) apps/victory/src/replay.rs:40 Pipelines listed with detailed timing
--roots <n> (default 4) :129 With --diverge: the most commands named of one list
--flow-slots <n> (default 40) :157 With --flow: heap slots shown from each place named
--least <n> (default 4096) :168 With --images and no --texture: from this many texels on
--width <px> (default 960) :171 With --images: the widest picture

The prose comes close without naming them — "the costliest pipelines" (:51), "with least, mean and greatest values" (:130), "heap slots their constants lead to" (:129) — which is why the gap is easy to miss: the text says the numbers exist, not what sets them.

Why it matters

The switch tables are the page's reference; the two other places that name a flag and a number (--diverge [runs], --diverge-picture [runs], --batch-clamps 2, --loops 5) are all listed, so the tables read as complete. A reader following :96 gets an argument error from a command that otherwise works as documented, and one who wants a wider --images picture or more than twenty pipelines in a detailed timing report has no way to learn the flag from the reference.

Both halves are one-line fixes and neither changes behaviour, which makes this a good candidate for a check: every --flag in docs/replay.md is a field of Replay, and every field is named in docs/replay.md — the same shape as xtask/src/switches.rs's documented_switches_are_read (which is how this was found: the same question, asked of the doc and the struct, in both directions).

Suggested fix

  • :96: name the flag that is meant — --flow shows what the dispatches have bound, and --listing/--slots/--flow all number commands <list>:<command> — or say "as in --listing and --slots" if no third one applies.
  • Add the five rows: --top beside --timing detailed, --roots/--flow-slots in the "Runs that differ" and --flow rows, --least/--width in the --images row.
  • Add the two-direction check to xtask so the next renamed or added flag cannot drift: parse the Replay field names (#[arg(long)] and the field name), parse the --flags the Markdown names, and report both sets' differences.

AI use

Found by an AI agent (Freebuff) reading a-publier through the GitHub API, by extracting the Replay struct's field names and comparing them with every --flag in docs/replay.md in both directions. Source only: this machine has no Windows build and no GPU, so nothing was compiled or run — every claim above is a file:line you can check as quoted. Filed by the same agent that filed #280–#293, #301, #302, #311 and #510.

**@⁠itsonewi** on GitHub · 2026-11-27 07:59 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/513) ## What happens `docs/replay.md` tells the reader how the commands are numbered: > The commands are numbered `<list>:<command>` as in > `--listing`, `--slots` and `--looks`. `docs/replay.md:95-96` `victory replay` has no `--looks`. The `Replay` struct (`apps/victory/src/replay.rs:27`) declares every option the command takes, and none of them is `looks`: no field, no `alias = "looks"`, no `visible_alias`, and `grep -n looks apps/victory/src/replay.rs` finds nothing (the module `play::look` is where `--flow` and `--images` live, which is where the name comes from). `victory replay <capture> --looks` therefore ends in clap's `unexpected argument '--looks' found`. The same tables run the other way too: five flags that the struct does declare are named nowhere in the document, so a reader who needs them finds them only in `--help`: | flag | where it is declared | the struct's own description | |---|---|---| | `--top <n>` (default 20) | `apps/victory/src/replay.rs:40` | Pipelines listed with detailed timing | | `--roots <n>` (default 4) | `:129` | With `--diverge`: the most commands named of one list | | `--flow-slots <n>` (default 40) | `:157` | With `--flow`: heap slots shown from each place named | | `--least <n>` (default 4096) | `:168` | With `--images` and no `--texture`: from this many texels on | | `--width <px>` (default 960) | `:171` | With `--images`: the widest picture | The prose comes close without naming them — "the costliest pipelines" (`:51`), "with least, mean and greatest values" (`:130`), "heap slots their constants lead to" (`:129`) — which is why the gap is easy to miss: the text says the numbers exist, not what sets them. ## Why it matters The switch tables are the page's reference; the two other places that name a flag and a number (`--diverge [runs]`, `--diverge-picture [runs]`, `--batch-clamps 2`, `--loops 5`) are all listed, so the tables read as complete. A reader following `:96` gets an argument error from a command that otherwise works as documented, and one who wants a wider `--images` picture or more than twenty pipelines in a detailed timing report has no way to learn the flag from the reference. Both halves are one-line fixes and neither changes behaviour, which makes this a good candidate for a check: every `--flag` in `docs/replay.md` is a field of `Replay`, and every field is named in `docs/replay.md` — the same shape as `xtask/src/switches.rs`'s `documented_switches_are_read` (which is how this was found: the same question, asked of the doc and the struct, in both directions). ## Suggested fix * `:96`: name the flag that is meant — `--flow` shows what the dispatches have bound, and `--listing`/`--slots`/`--flow` all number commands `<list>:<command>` — or say "as in `--listing` and `--slots`" if no third one applies. * Add the five rows: `--top` beside `--timing detailed`, `--roots`/`--flow-slots` in the "Runs that differ" and `--flow` rows, `--least`/`--width` in the `--images` row. * Add the two-direction check to `xtask` so the next renamed or added flag cannot drift: parse the `Replay` field names (`#[arg(long)]` and the field name), parse the `--flags` the Markdown names, and report both sets' differences. ## AI use Found by an AI agent (Freebuff) reading `a-publier` through the GitHub API, by extracting the `Replay` struct's field names and comparing them with every `--flag` in `docs/replay.md` in both directions. Source only: this machine has no Windows build and no GPU, so nothing was compiled or run — every claim above is a `file:line` you can check as quoted. Filed by the same agent that filed #280–#293, #301, #302, #311 and #510.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 08:04:54 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.