victory doctor: a run's failures, each linked to the issues that report it #2678

Open
github-bot wants to merge 5 commits from github-bot/gh-2678 into main AGit
Owner

@⁠shawshanker18 on GitHub · 2026-11-25 17:59 UTC · original
shawshanker18:doctor-command → main · +798 −0 · 2 files · 5 commits · open

What

A doctor command: point it at a run's log and it lists what went wrong, each failure with a link that searches this repository's issues and pull requests for it.

victory doctor run.log
15 kinds of failure, most severe first. Open a link to see who else reported it.

[1] Crash: access violation at image+0x23cf683 (write 0x0)  (x2)
    https://github.com/search?type=issues&q=repo%3AMarvisak%2FVIctory+0x23cf683
[2] Warning: a pipeline creation method that is not implemented the (slot=0x1c8)  (x16)
    https://github.com/search?type=issues&q=repo%3AMarvisak%2FVIctory+%22a+pipeline+creation+method+that+is+not+implemented+the%22
[5] Warning: host pipeline refused  (x6)
    shaders: <6 hashes, listed locally>
    https://github.com/search?type=issues&q=repo%3AMarvisak%2FVIctory+%22host+pipeline+refused%22

victory doctor run.log --draft 1 writes an issue for a failure nobody has reported yet. It contains an allowlist only: kind, title (our message text, or a crash's code and module-relative offsets), count, an environment checklist, and the search that came back empty. No log lines, shader hashes or memory values (rule 7 of #1633).

victory doctor run.log --json prints the same for scripts and agents that triage run reports: number, kind, a stable key, title, count, search terms and URL. The key is the same across runs and builds, so reports can be grouped by it.

Why

About 190 of the open issues are run reports, many of them the same few failures. The +0x23cf683 trap, the 1,000,000-slot view heap on NVIDIA, refused wave64 compute and B5G5R5A1 UAVs each have 7 to 18 reports. People paste whole logs because they cannot tell whether what they hit is known. One command that names each failure the way earlier reports did, and links to them, should mean fewer duplicates and more "+1 with my setup" on the issue that already exists.

How it reads a run

  • The log: WARN and ERROR lines, grouped by message. The words before the first key=value name the group, and slot, format, stage, dimension, kind and dll tell groups apart. Shader hashes named by hash= or [compute …] are collected per group. Messages expected in every run are left out (currently the loop-limit notice).
  • crashes.log: only the entries written between the log's first timestamp and a minute after its last, from every title folder under the configured data folder (or --crashes <file>).
    • A crash in a title image is named image+<offset>, the form the issues use, which is the same whatever the image's file name.
    • A crash in our own code is named by the first title frame below it (our offsets change with every build).
    • The commit limit (os error 1455) and lost devices (0x887A000x) get their own entries.
  • Nothing goes on the network. The links are for the person to open.

Checks

  • 5 unit tests on synthetic lines:
    • grouping, counting and severity order;
    • only the run's own crashes.log entries are read, including date arithmetic;
    • links and drafts carry no user name;
    • a shader hash, a peek line and a crash address next to the failures never reach a draft;
    • a log cut mid-line or holding invalid bytes does not stop it.
  • cargo test -p victory --bin victory: 16 passed.
  • cargo clippy -p victory --all-targets -- -D warnings and cargo fmt --check: clean. cargo xtask policy: ok.
  • Run on real logs from an RTX 4050 laptop (fxceless fork and main). The crash at +0x23cf683 and the capped view heap come out as above, and a crash from a later run in the same crashes.log is not attributed to the earlier log.

No new dependencies, no game data.

A standalone version for anyone not building from source is at shawshanker18/victory-doctor. It adds live GitHub lookups with NEW / KNOWN / PR / MERGED status, a local web page with filled-in issue forms, and an opt-in shared dataset of run results by GPU and settings.

**@⁠shawshanker18** on GitHub · 2026-11-25 17:59 UTC · [original](https://github.com/Marvisak/VIctory/pull/2678) `shawshanker18:doctor-command` → `main` · +798 −0 · 2 files · 5 commits · open ## What A `doctor` command: point it at a run's log and it lists what went wrong, each failure with a link that searches this repository's issues and pull requests for it. ``` victory doctor run.log ``` ``` 15 kinds of failure, most severe first. Open a link to see who else reported it. [1] Crash: access violation at image+0x23cf683 (write 0x0) (x2) https://github.com/search?type=issues&q=repo%3AMarvisak%2FVIctory+0x23cf683 [2] Warning: a pipeline creation method that is not implemented the (slot=0x1c8) (x16) https://github.com/search?type=issues&q=repo%3AMarvisak%2FVIctory+%22a+pipeline+creation+method+that+is+not+implemented+the%22 [5] Warning: host pipeline refused (x6) shaders: <6 hashes, listed locally> https://github.com/search?type=issues&q=repo%3AMarvisak%2FVIctory+%22host+pipeline+refused%22 ``` `victory doctor run.log --draft 1` writes an issue for a failure nobody has reported yet. It contains an allowlist only: kind, title (our message text, or a crash's code and module-relative offsets), count, an environment checklist, and the search that came back empty. No log lines, shader hashes or memory values (rule 7 of #1633). `victory doctor run.log --json` prints the same for scripts and agents that triage run reports: number, kind, a stable key, title, count, search terms and URL. The key is the same across runs and builds, so reports can be grouped by it. ## Why About 190 of the open issues are run reports, many of them the same few failures. The `+0x23cf683` trap, the 1,000,000-slot view heap on NVIDIA, refused wave64 compute and B5G5R5A1 UAVs each have 7 to 18 reports. People paste whole logs because they cannot tell whether what they hit is known. One command that names each failure the way earlier reports did, and links to them, should mean fewer duplicates and more "+1 with my setup" on the issue that already exists. ## How it reads a run - **The log:** `WARN` and `ERROR` lines, grouped by message. The words before the first `key=value` name the group, and `slot`, `format`, `stage`, `dimension`, `kind` and `dll` tell groups apart. Shader hashes named by `hash=` or `[compute …]` are collected per group. Messages expected in every run are left out (currently the loop-limit notice). - **`crashes.log`:** only the entries written between the log's first timestamp and a minute after its last, from every title folder under the configured data folder (or `--crashes <file>`). - A crash in a title image is named `image+<offset>`, the form the issues use, which is the same whatever the image's file name. - A crash in our own code is named by the first title frame below it (our offsets change with every build). - The commit limit (os error 1455) and lost devices (`0x887A000x`) get their own entries. - **Nothing goes on the network.** The links are for the person to open. ## Checks - 5 unit tests on synthetic lines: - grouping, counting and severity order; - only the run's own `crashes.log` entries are read, including date arithmetic; - links and drafts carry no user name; - a shader hash, a peek line and a crash address next to the failures never reach a draft; - a log cut mid-line or holding invalid bytes does not stop it. - `cargo test -p victory --bin victory`: 16 passed. - `cargo clippy -p victory --all-targets -- -D warnings` and `cargo fmt --check`: clean. `cargo xtask policy`: ok. - Run on real logs from an RTX 4050 laptop (fxceless fork and `main`). The crash at `+0x23cf683` and the capped view heap come out as above, and a crash from a later run in the same `crashes.log` is not attributed to the earlier log. No new dependencies, no game data. A standalone version for anyone not building from source is at [shawshanker18/victory-doctor](https://github.com/shawshanker18/victory-doctor). It adds live GitHub lookups with NEW / KNOWN / PR / MERGED status, a local web page with filled-in issue forms, and an opt-in shared dataset of run results by GPU and settings.
`victory doctor <log>` reads a run's log (what `run --execute` writes to
stderr) and the entries crashes.log gained during that run, and lists the
failures most severe first: crashes (title images named `image+<offset>`,
the same in every build; a crash in our own code named by the title's frame
below it), the Windows commit limit, lost devices, then errors and warnings
grouped by message (told apart by slot, format, stage), with the shader
hashes they name. Each comes with a link that searches the issues and pull
requests for it, so whoever hits a failure can see at once whether it is
known and what is proposed. `--draft N` writes an issue for a failure
nobody has reported yet. User names are taken out of paths; nothing goes on
the network; expected messages (the loop limit) are left out.
- The paste-ready draft (--draft, and the issue form the page fills in)
  carries the failure's kind, its title (our message text, or a crash's code,
  module-relative offsets and access kind, with only whether the address was
  null), how often, and a search made of the same. Log lines and shader
  hashes stay in local output: lines near a failure can hold values read from
  title memory (VICTORY_PEEK), and title shader hashes stay out of comments
  (rule 7 of #1633). A test puts a shader hash, a peek line and a crash
  address beside the failures and checks that none reaches a draft or a form.
- --json prints the failures for scripts and agents that triage run reports.
- --html <file> writes a self-contained page: each failure with its search
  link, GitHub's issue form filled in with the draft, a copy button, and the
  log lines folded away for the person running it.
The filled-in form on the --html page used the failure's full title, so a
crash at a non-null address sent that address to GitHub when the link was
opened. It now uses the same allowlisted title as the draft. The test
decodes the crash's form title and checks it keeps only the access kind,
and that no address, peeked word or shader hash is anywhere in a form.
A line cut right after "0x887a000", or a wide character there, panicked on
the slice; it is now not taken for a device code. Logs and crashes.log are
read as bytes and decoded lossily, since a crash can cut a log mid-character
(review by fuzeofficlal). A test covers both.
Per triage: the terminal list with search links, --draft and --json stay;
--html, its filled-in issue forms and their tests are taken out. The draft
keeps its allowlist (kind, title, count, environment, search).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:11:50 +00:00
Author
Owner

@⁠cloph-dsp on GitHub · 2026-11-25 18:05 UTC · original

Independent Windows verification of PR #2678 (head 83c52e8), no game data and no source edits. Toolchain: rustc/cargo 1.100.0, Windows MSVC.

  • cargo test --locked -p victory --bin victory -- counted_by_kind_and_ordered_by_severity --test-threads=1 -> doctor::tests::a_run_s_failures_are_counted_by_kind_and_ordered_by_severity passed.
  • cargo test --locked -p victory --bin victory -- only_the_run_s_own_crash_entries_are_read --test-threads=1 -> doctor::tests::only_the_run_s_own_crash_entries_are_read passed.
  • cargo test --locked -p victory --bin victory -- links_and_drafts_name_no_user --test-threads=1 -> doctor::tests::links_and_drafts_name_no_user passed.
  • Negative control on origin/main 13f91ca: each of the three filters reports 0 tests (the tests are new).
  • Full binary suite on the PR head: cargo test --locked -p victory --bin victory -- --test-threads=1 -> 13 passed, 0 failed.

Only warnings are the pre-existing fetch_update deprecations in victory-gpu/victory-hle, also present on base. The synthetic tests exercise log-line parsing and formatting; no network request or user-name-taking path was needed. No competing PR. AI-assisted (Hy4 flash).

**@⁠cloph-dsp** on GitHub · 2026-11-25 18:05 UTC · [original](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7170425835) Independent Windows verification of PR #2678 (head `83c52e8`), no game data and no source edits. Toolchain: rustc/cargo 1.100.0, Windows MSVC. - `cargo test --locked -p victory --bin victory -- counted_by_kind_and_ordered_by_severity --test-threads=1` -> `doctor::tests::a_run_s_failures_are_counted_by_kind_and_ordered_by_severity` passed. - `cargo test --locked -p victory --bin victory -- only_the_run_s_own_crash_entries_are_read --test-threads=1` -> `doctor::tests::only_the_run_s_own_crash_entries_are_read` passed. - `cargo test --locked -p victory --bin victory -- links_and_drafts_name_no_user --test-threads=1` -> `doctor::tests::links_and_drafts_name_no_user` passed. - Negative control on `origin/main` `13f91ca`: each of the three filters reports **0 tests** (the tests are new). - Full binary suite on the PR head: `cargo test --locked -p victory --bin victory -- --test-threads=1` -> **13 passed**, 0 failed. Only warnings are the pre-existing `fetch_update` deprecations in `victory-gpu`/`victory-hle`, also present on base. The synthetic tests exercise log-line parsing and formatting; no network request or user-name-taking path was needed. No competing PR. AI-assisted (Hy4 flash).
Author
Owner

@⁠shawshanker18 on GitHub · 2026-11-25 18:18 UTC · original

@⁠DrDarkDK thanks, agreed. Fixed in the latest push:

  • The paste-ready draft is now an allowlist only:
    • failure kind;
    • title: our own message text, or the crash's exception code, module-relative offset(s) and access kind (write at address 0 / write, never the address itself);
    • count;
    • the search link built from the same terms.
  • No log lines, no shader hashes, no memory values. The issue form that --html fills in uses the same draft.
  • Raw excerpts and hashes stay in local output only: the terminal list, --json, and folded sections of the --html page, labelled as not for posting.
  • New test drafts_carry_no_log_lines_hashes_or_memory_values uses a synthetic log with a peek line (victory_gpu::capture: peek frame 0x...: <words>) next to a refused pipeline with a shader hash, plus a crash with a non-null address. It checks that none of the hash, the peeked words, the peek address or the crash address reaches a draft or a filled-in form.

cargo test -p victory --bin victory: 16 passed. Clippy -D warnings and fmt clean; cargo xtask policy ok.

@⁠cloph-dsp thanks for the independent run.

**@⁠shawshanker18** on GitHub · 2026-11-25 18:18 UTC · [original](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7170724948) @⁠DrDarkDK thanks, agreed. Fixed in the latest push: - The paste-ready draft is now an allowlist only: - failure kind; - title: our own message text, or the crash's exception code, module-relative offset(s) and access kind (`write at address 0` / `write`, never the address itself); - count; - the search link built from the same terms. - No log lines, no shader hashes, no memory values. The issue form that `--html` fills in uses the same draft. - Raw excerpts and hashes stay in local output only: the terminal list, `--json`, and folded sections of the `--html` page, labelled as not for posting. - New test `drafts_carry_no_log_lines_hashes_or_memory_values` uses a synthetic log with a `peek` line (`victory_gpu::capture: peek frame 0x...: <words>`) next to a refused pipeline with a shader hash, plus a crash with a non-null address. It checks that none of the hash, the peeked words, the peek address or the crash address reaches a draft or a filled-in form. `cargo test -p victory --bin victory`: 16 passed. Clippy `-D warnings` and fmt clean; `cargo xtask policy` ok. @⁠cloph-dsp thanks for the independent run.
Author
Owner

@⁠shawshanker18 on GitHub · 2026-11-25 18:47 UTC · original

@⁠DrDarkDK good catch, thanks. Fixed in the latest push: the form's title= now comes from public_title(f), the same allowlisted title as the draft. The cut note is now based on the body's own length.

drafts_carry_no_log_lines_hashes_or_memory_values now:

  • decodes the crash's form title and checks it is exactly Crash: access violation at image+0x23cf683 (write);
  • checks that no form anywhere on the page holds the fault address, either peek value, or the shader hash.

16 passed; clippy -D warnings, fmt and xtask policy clean.

**@⁠shawshanker18** on GitHub · 2026-11-25 18:47 UTC · [original](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7171408173) @⁠DrDarkDK good catch, thanks. Fixed in the latest push: the form's `title=` now comes from `public_title(f)`, the same allowlisted title as the draft. The cut note is now based on the body's own length. `drafts_carry_no_log_lines_hashes_or_memory_values` now: - decodes the crash's form title and checks it is exactly `Crash: access violation at image+0x23cf683 (write)`; - checks that no form anywhere on the page holds the fault address, either peek value, or the shader hash. 16 passed; clippy `-D warnings`, fmt and `xtask policy` clean.
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-25 18:48 UTC · original

Thoroughly built - this directly attacks the duplicate-run-report problem:

  • Crash keys are stable across builds: victory-image- normalizes to 'image', and for faults in our own DLLs the search term is the title frame below (whose offset survives our rebuilds), falling back to the exception code.
  • The draft is genuinely allowlist-only (kind, public title, count, env checklist, the search link) - compliant with rule 7: no log lines, shader hashes or memory values. public_title even strips the fault address from the issue-form title while keeping the read/write/0 distinction.
  • Shader hashes collected per failure but kept local-only - both in --json (as 'shaders' for the user) and the HTML's 'for you' note. Consistent everywhere it matters.
  • crash_entries bounds crashes.log to the run's own window (+60s) and redact covers X:\Users<name> case-insensitively; the excerpt is redacted but stays local.
  • phrase()/fields() keying correctly tells apart same-message-different-slot warnings and merges same kind across slots in count.

One nit: a WARN/ERROR whose phrase is under 3 words gets no search link (terms empty, shader fallback only). Rare, and better than a noisy link.

The fixture tests cover the exact real-world cases (heap cap, refused pipelines, int3/AV crashes, commit limit). CI green.

**@⁠kotekompotek** on GitHub · 2026-11-25 18:48 UTC · [original](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7171437162) Thoroughly built - this directly attacks the duplicate-run-report problem: - Crash keys are stable across builds: victory-image-<hash> normalizes to 'image', and for faults in our own DLLs the search term is the title frame below (whose offset survives our rebuilds), falling back to the exception code. - The draft is genuinely allowlist-only (kind, public title, count, env checklist, the search link) - compliant with rule 7: no log lines, shader hashes or memory values. public_title even strips the fault address from the issue-form title while keeping the read/write/0 distinction. - Shader hashes collected per failure but kept local-only - both in --json (as 'shaders' for the user) and the HTML's 'for you' note. Consistent everywhere it matters. - crash_entries bounds crashes.log to the run's own window (+60s) and redact covers X:\Users\<name> case-insensitively; the excerpt is redacted but stays local. - phrase()/fields() keying correctly tells apart same-message-different-slot warnings and merges same kind across slots in count. One nit: a WARN/ERROR whose phrase is under 3 words gets no search link (terms empty, shader fallback only). Rare, and better than a noisy link. The fixture tests cover the exact real-world cases (heap cap, refused pipelines, int3/AV crashes, commit limit). CI green.
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-25 19:05 UTC · original

Independent Windows 11 verification and code review of 1fa5af2d (on 13f91ca):

Verification (rustc 1.98.1 MSVC)

  • cargo clippy --locked -p victory --all-targets -- -D warnings and --all-features: 0 warnings.
  • cargo test --locked -p victory: 16 passed (unit, all 6 doctor::tests pass), 2 passed (tests/census.rs).
  • cargo xtask policy: 185 files ok.

Review Notes (2 parsing edge cases found)

  • Privacy redaction (public_title, whitelist issue drafts, case-insensitive user-path stripping, HTML/JSON escaping) and synthetic test inputs look clean and policy-compliant.
  • Potential panic on truncated or non-ASCII 0x887a000 match (apps/victory/src/doctor.rs:275-278): "0x887a000" is 9 bytes, so lower[at..at + 10] will panic if a WARN/ERROR line mentioning device/removed/hung ends right after "0x887a000" (truncated crash log) or has a multi-byte UTF-8 character at byte at + 9. Using lower.get(at..at + 10) (or parsing via hex_at(&lower[at..]) with a length check) prevents the panic.
  • Non-UTF-8 / mid-char-truncated logs (apps/victory/src/doctor.rs:548-558): fs::read_to_string fails (or silently skips crashes.log) if a crash truncates the log mid-UTF-8 sequence or a title emits non-UTF-8 bytes; reading raw bytes via fs::read + String::from_utf8_lossy makes crash-log inspection resilient to that.
**@⁠fuzeofficlal** on GitHub · 2026-11-25 19:05 UTC · [original](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7171815755) Independent Windows 11 verification and code review of `1fa5af2d` (on `13f91ca`): ### Verification (`rustc 1.98.1` MSVC) - `cargo clippy --locked -p victory --all-targets -- -D warnings` and `--all-features`: **0 warnings**. - `cargo test --locked -p victory`: **16 passed** (unit, all 6 `doctor::tests` pass), **2 passed** (`tests/census.rs`). - `cargo xtask policy`: **185 files ok**. ### Review Notes (2 parsing edge cases found) - Privacy redaction (`public_title`, whitelist issue drafts, case-insensitive user-path stripping, HTML/JSON escaping) and synthetic test inputs look clean and policy-compliant. - **Potential panic on truncated or non-ASCII `0x887a000` match (`apps/victory/src/doctor.rs:275-278`):** `"0x887a000"` is 9 bytes, so `lower[at..at + 10]` will panic if a `WARN`/`ERROR` line mentioning `device`/`removed`/`hung` ends right after `"0x887a000"` (truncated crash log) or has a multi-byte UTF-8 character at byte `at + 9`. Using `lower.get(at..at + 10)` (or parsing via `hex_at(&lower[at..])` with a length check) prevents the panic. - **Non-UTF-8 / mid-char-truncated logs (`apps/victory/src/doctor.rs:548-558`):** `fs::read_to_string` fails (or silently skips `crashes.log`) if a crash truncates the log mid-UTF-8 sequence or a title emits non-UTF-8 bytes; reading raw bytes via `fs::read` + `String::from_utf8_lossy` makes crash-log inspection resilient to that.
Author
Owner

@⁠shawshanker18 on GitHub · 2026-11-25 19:22 UTC · original

@⁠fuzeofficlal thanks, both fixed in the latest push. The device code is now taken with get(at..at + 10) and must end in a hex digit, so a line cut after 0x887a000, or a wide character there, is skipped rather than panicking. The log and crashes.log are read as bytes and decoded lossily. New test cut_device_codes_and_invalid_bytes_do_not_panic covers both. 17 passed; clippy, fmt and policy clean.

**@⁠shawshanker18** on GitHub · 2026-11-25 19:22 UTC · [original](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7172194853) @⁠fuzeofficlal thanks, both fixed in the latest push. The device code is now taken with `get(at..at + 10)` and must end in a hex digit, so a line cut after `0x887a000`, or a wide character there, is skipped rather than panicking. The log and crashes.log are read as bytes and decoded lossily. New test `cut_device_codes_and_invalid_bytes_do_not_panic` covers both. 17 passed; clippy, fmt and policy clean.
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-25 19:55 UTC · original

Re-verified affbb9d3 on Windows 11 (rustc 1.98.1 MSVC, 13f91ca):

  • cargo xtask policy: 185 files ok.
  • cargo clippy --locked -p victory --all-targets -- -D warnings: 0 warnings.
  • cargo test --locked -p victory: 17 passed (unit, including cut_device_codes_and_invalid_bytes_do_not_panic), 2 passed (tests/census.rs).

Both the truncated/non-ASCII 0x887a000 slice (lower.get(at..at + 10) + hex check) and lossy UTF-8 reading for run.log and crashes.log are cleanly fixed. Looks ready to merge!

**@⁠fuzeofficlal** on GitHub · 2026-11-25 19:55 UTC · [original](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7172955940) Re-verified `affbb9d3` on Windows 11 (`rustc 1.98.1` MSVC, `13f91ca`): - `cargo xtask policy`: **185 files ok**. - `cargo clippy --locked -p victory --all-targets -- -D warnings`: **0 warnings**. - `cargo test --locked -p victory`: **17 passed** (unit, including `cut_device_codes_and_invalid_bytes_do_not_panic`), **2 passed** (`tests/census.rs`). Both the truncated/non-ASCII `0x887a000` slice (`lower.get(at..at + 10)` + hex check) and lossy UTF-8 reading for `run.log` and `crashes.log` are cleanly fixed. Looks ready to merge!
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 23:24 UTC · original · edited 2026-11-26 08:28 UTC

Automated triage for the maintainers.

Still needs the maintainer's decision on scope. apps/victory/src/doctor.rs is the terminal list with search links, --draft (allowlist: kind, public title, count) and --json. The HTML page and form filling are gone. I found no network access, process spawning or new dependencies. The only URL is GitHub's issue search, built locally for the user to open. Whether VIctory wants issue-triage tooling in the main binary, keyed to the wording of our tracing messages and this repository's issue tracker, is the maintainer's call, not a correctness question. It merges cleanly and CI check passes on 8cc965b.

On your latest reply: the scope question is flagged for the maintainer, and triage can't answer it. For the record, DrDarkDK's approval and the Windows re-runs were on earlier heads (1fa5af2, affbb9d), before the trim. Only CI has run on 8cc965b.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 23:24 UTC · [original](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7177528419) · edited 2026-11-26 08:28 UTC <!-- victory-triage v1 head=8cc965bc8f6aa981a8f32aeff369ebf150951f13 verdict=needs-work at=2026-11-26T08:28:11Z --> Automated triage for the maintainers. Still needs the maintainer's decision on scope. `apps/victory/src/doctor.rs` is the terminal list with search links, `--draft` (allowlist: kind, public title, count) and `--json`. The HTML page and form filling are gone. I found no network access, process spawning or new dependencies. The only URL is GitHub's issue search, built locally for the user to open. Whether VIctory wants issue-triage tooling in the main binary, keyed to the wording of our `tracing` messages and this repository's issue tracker, is the maintainer's call, not a correctness question. It merges cleanly and CI `check` passes on `8cc965b`. On your latest reply: the scope question is flagged for the maintainer, and triage can't answer it. For the record, DrDarkDK's approval and the Windows re-runs were on earlier heads (`1fa5af2`, `affbb9d`), before the trim. Only CI has run on `8cc965b`. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠shawshanker18 on GitHub · 2026-11-25 23:34 UTC · original

Trimmed to the smaller first version suggested in triage. What stays: the terminal list with search links, --draft (allowlist only) and --json. What's gone: --html, the filled-in issue forms and their tests, about 200 lines. The fuller version lives outside the tree.

On keys following the log wording: that's deliberate. A failure is found by the same words people paste into issues, so a reworded message gives a new key, and its search link finds new reports with the new wording. The URL formats are GitHub's documented /search?type=issues&q= and nothing else.

16 passed; clippy -D warnings, fmt and policy clean.

**@⁠shawshanker18** on GitHub · 2026-11-25 23:34 UTC · [original](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7177758977) Trimmed to the smaller first version suggested in triage. What stays: the terminal list with search links, `--draft` (allowlist only) and `--json`. What's gone: `--html`, the filled-in issue forms and their tests, about 200 lines. The fuller version lives outside the tree. On keys following the log wording: that's deliberate. A failure is found by the same words people paste into issues, so a reworded message gives a new key, and its search link finds new reports with the new wording. The URL formats are GitHub's documented `/search?type=issues&q=` and nothing else. 16 passed; clippy `-D warnings`, fmt and policy clean.
Author
Owner

@⁠shawshanker18 on GitHub · 2026-11-26 07:25 UTC · original

This is trimmed to the smaller first version from the triage note: the terminal list with search links, --draft (allowlist only) and --json, in one file plus a few lines in main.rs. No new dependencies, and CI is green on 8cc965bc. DrDarkDK approved it, and cloph-dsp and fuzeofficlal re-ran the tests and clippy on Windows.

@⁠Marvisak, when you have a moment, is this scope acceptable to merge? If you'd rather have something smaller, or a different flag name, I'll change it.

Anyone who has a run log handy: victory doctor <log> and a reply saying whether the failures it lists match the issues you know of would help this land.

**@⁠shawshanker18** on GitHub · 2026-11-26 07:25 UTC · [original](https://github.com/Marvisak/VIctory/pull/2678#issuecomment-7185448034) This is trimmed to the smaller first version from the triage note: the terminal list with search links, `--draft` (allowlist only) and `--json`, in one file plus a few lines in `main.rs`. No new dependencies, and CI is green on `8cc965bc`. DrDarkDK approved it, and cloph-dsp and fuzeofficlal re-ran the tests and clippy on Windows. @⁠Marvisak, when you have a moment, is this scope acceptable to merge? If you'd rather have something smaller, or a different flag name, I'll change it. Anyone who has a run log handy: `victory doctor <log>` and a reply saying whether the failures it lists match the issues you know of would help this land.
Author
Owner

@⁠DrDarkDK on GitHub · 2026-11-25 18:08 UTC · original · requested changes

--draft can include title-derived data while saying “No game data.” It prints shader hashes and surrounding log lines after path redaction. Those lines can include raw title-memory values from VICTORY_PEEK. The coordination rules also ask contributors to keep title shader hashes out of comments. Coordination rules

Could the paste-ready draft use an allowlist of fields such as failure kind, HRESULT, module-relative offset, and count? Raw excerpts and hashes can stay in local output. A synthetic log with a shader hash and an adjacent peek line would verify that neither reaches the draft.

Static review only.

AI-assisted with Codex.

**@⁠DrDarkDK** on GitHub · 2026-11-25 18:08 UTC · [original](https://github.com/Marvisak/VIctory/pull/2678#pullrequestreview-6062621294) · **requested changes** `--draft` can include title-derived data while saying “No game data.” It prints shader hashes and surrounding log lines after path redaction. Those lines can include raw title-memory values from `VICTORY_PEEK`. The coordination rules also ask contributors to keep title shader hashes out of comments. [Coordination rules](https://git.gtahub.st/github/Marvisak--VIctory/issues/1633) Could the paste-ready draft use an allowlist of fields such as failure kind, HRESULT, module-relative offset, and count? Raw excerpts and hashes can stay in local output. A synthetic log with a shader hash and an adjacent peek line would verify that neither reaches the draft. Static review only. *AI-assisted with Codex.*
Author
Owner

@⁠DrDarkDK on GitHub · 2026-11-25 18:20 UTC · original · requested changes

Thanks for removing the excerpts and hashes from --draft. The HTML report now uses the sanitized draft for the issue body, but to_html still builds the GitHub form’s title= with encode(&f.title). For the non-null write crash in the new test, that sends the raw fault address to GitHub as soon as the link is opened.

Could the form use public_title(f) too? The existing test can check that the decoded title query parameter contains (write) and omits the fault address.

Static review only.

AI-assisted with Codex.

**@⁠DrDarkDK** on GitHub · 2026-11-25 18:20 UTC · [original](https://github.com/Marvisak/VIctory/pull/2678#pullrequestreview-6062791631) · **requested changes** Thanks for removing the excerpts and hashes from `--draft`. The HTML report now uses the sanitized draft for the issue body, but `to_html` still builds the GitHub form’s `title=` with `encode(&f.title)`. For the non-null write crash in the new test, that sends the raw fault address to GitHub as soon as the link is opened. Could the form use `public_title(f)` too? The existing test can check that the decoded `title` query parameter contains `(write)` and omits the fault address. Static review only. *AI-assisted with Codex.*
Author
Owner

@⁠DrDarkDK on GitHub · 2026-11-25 18:53 UTC · original · approved these changes

Thanks for the update. I checked 1fa5af2: the HTML issue form now uses public_title(f), and the regression decodes the form title to verify that it keeps (write) and omits the fault address. That resolves my remaining concern with the paste-ready output.

AI-assisted with Codex.

**@⁠DrDarkDK** on GitHub · 2026-11-25 18:53 UTC · [original](https://github.com/Marvisak/VIctory/pull/2678#pullrequestreview-6063229562) · **approved these changes** Thanks for the update. I checked `1fa5af2`: the HTML issue form now uses `public_title(f)`, and the regression decodes the form title to verify that it keeps `(write)` and omits the fault address. That resolves my remaining concern with the paste-ready output. *AI-assisted with Codex.*
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2678/head:github-bot/gh-2678'
git switch 'github-bot/gh-2678'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2678'
git switch 'github-bot/gh-2678'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2678'
git switch 'github-bot/gh-2678'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2678'
git switch 'main'
git merge --squash 'github-bot/gh-2678'
git switch 'main'
git merge --ff-only 'github-bot/gh-2678'
git switch 'main'
git merge 'github-bot/gh-2678'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2678
No description provided.