docs: index inline decisions, shortcuts and environment variables #3507

Open
github-bot wants to merge 1 commit from github-bot/gh-3507 into main AGit
Owner

@⁠Rickeal-Boss on GitHub · 2026-11-27 11:17 UTC · original
Rickeal-Boss:docs/decision-shortcut-env-indexes → main · +791 −0 · 3 files · 1 commits · open

Summary

The tree records a lot of intent inline, but nothing in docs/ points at it.
On the current main (63bcca43, 191 files, 162 .rs files) there are 39
decision 000X references, 135 shortcut: comments, and 226 read
sites
of 59 distinct VICTORY_* environment variables. This PR adds
three plain file:line indexes so that intent can be found in one place.

Docs only: three new files, no Rust, no CI, no xtask policy logic, no README
edit, no runtime change. Full-library PR search finds no docs/decisions.md,
docs/shortcuts.md, docs/environment.md or cargo xtask shortcuts PR, and
CLAIMS.md has no claim for this work.

Change

  • docs/decisions.md: index of the decision 000X comments as file:line
    references, grouped by number (0001, 0003, 0005, 0007). The canonical
    decision documents are not in this repository; whether they live in Issues,
    Discussions or an external tracker was not verified, so no links are
    invented and the canonical column is TBD.
  • docs/shortcuts.md: index of the shortcut: comments, including the one in
    xtask/src/policy.rs:194 about decimal byte arrays. #2246 is still open and
    addresses that gap, so the entry says "see #2246" rather than describing it
    as open work.
  • docs/environment.md: the VICTORY_* read sites, grouped by variable.
    28 variables are documented in README.md; the remaining 31 have no
    in-repo documentation and are marked TBD, not guessed. A small group (for
    example VICTORY_*_CHILD, VICTORY_RELAUNCHED_FROM, VICTORY_SAVE_OP) is
    inferred from its names to be an internal subprocess protocol; it is
    labelled unconfirmed and left for a maintainer to confirm. This file is an
    index only - it does not edit the README's Debugging table or Getting
    started, because several open README PRs already do that.
  • README.md: not touched. The crashes.log wording is correct but
    imprecise; the precise path is
    <data>/<8-character title id>/crashes.log (apps/victory/src/run.rs:180).
    The data-folder sentence is at README.md:114-115 on this main. I will
    offer the clarification as a comment on the README PR instead of editing
    the same sentence twice.

All three indexes are plain text: file:line references only, no encoded
blobs, no long literal arrays, nothing that could trip cargo xtask policy.
Each file says at the top that its counts and line numbers are a snapshot and
will drift.

Not covered

  • No CONTRIBUTING.md and no PR template: #2466 (docs/contributing.md)
    and #113 (.github/pull_request_template.md plus a pr-description check)
    are both still open. This PR adds neither. The ## What / ## Tested block
    below satisfies #113's check if it merges first.
  • No cargo xtask shortcuts generator. Automating the index would touch
    xtask/src/main.rs and xtask/src/policy.rs, which #2246 and #2581 are
    already editing. Keeping the tables hand-maintained keeps this PR docs-only;
    automation is a natural follow-up once those land.
  • No asset-policy changes. See #2246 for the decimal-array work and #246
    (closed, unmerged) for the earlier, much larger attempt at the same gaps.

Tests

Docs only, so behaviour is unchanged:

  • cargo xtask policy - must behave exactly as before.
  • cargo fmt --all -- --check - no Rust files touched.
  • git diff --check - no whitespace errors.
  • Spot-check that every file:line in the three indexes resolves on main.

To run on the pinned toolchain: cargo test --workspace --locked and
cargo xtask policy. Not run here: no Rust toolchain / Windows-only project
in this environment. Counts come from a 2026-11-27 recheck of 63bcca43.

Docs only, no game data, no binaries, no victory.toml (per
docs/asset-policy.md).

What

Add three file:line indexes for the in-code decisions, shortcuts and
VICTORY_* environment variables. See ## Summary, ## Change and ## Tests
above for the file list, the exact counts and the rationale. No README edit,
no Rust, no CI, no policy logic.

Tested

Not run here because this environment uses Linux and the project requires the pinned Windows toolchain.
See ## Tests for the exact commands; CI should run them. The docs-only diff
was checked with git diff --check. Claim: #1633 NEW-<***>.

Prepared with AI assistance (Chinese Model); reviewed and conducted by Rickeal-Boss.
Synthetic references only, no other data.

**@⁠Rickeal-Boss** on GitHub · 2026-11-27 11:17 UTC · [original](https://github.com/Marvisak/VIctory/pull/3507) `Rickeal-Boss:docs/decision-shortcut-env-indexes` → `main` · +791 −0 · 3 files · 1 commits · open <!-- PR 01 - docs: add indexes for decisions, shortcuts and environment variables Branch: docs/decision-shortcut-env-indexes Files: docs/decisions.md, docs/shortcuts.md, docs/environment.md (new) Suggested commit: docs: index inline decisions, shortcuts and VICTORY_* variables Status: READY - zero PRs, zero claims, zero filename conflicts (recheck 2026-11-27) Submission order: 1 Claim on #1633: claiming: docs: index inline decisions, shortcuts and VICTORY_* variables Pre-flight: git log -1 must read 63bcca43c6a00a758510398fa43096ce7e4f7df0; PR numbers have reached #3506 and CLAIMS.md has 605 rows - read the live #1633 thread before claiming. Everything below this comment is the PR body. Paste the whole file as-is; GitHub hides HTML comments in the rendered description. --> ## Summary The tree records a lot of intent inline, but nothing in `docs/` points at it. On the current `main` (`63bcca43`, 191 files, 162 `.rs` files) there are **39** `decision 000X` references, **135** `shortcut:` comments, and **226 read sites** of **59** distinct `VICTORY_*` environment variables. This PR adds three plain `file:line` indexes so that intent can be found in one place. Docs only: three new files, no Rust, no CI, no `xtask` policy logic, no README edit, no runtime change. Full-library PR search finds no `docs/decisions.md`, `docs/shortcuts.md`, `docs/environment.md` or `cargo xtask shortcuts` PR, and `CLAIMS.md` has no claim for this work. ## Change - `docs/decisions.md`: index of the `decision 000X` comments as `file:line` references, grouped by number (0001, 0003, 0005, 0007). The canonical decision documents are not in this repository; whether they live in Issues, Discussions or an external tracker was not verified, so no links are invented and the canonical column is `TBD`. - `docs/shortcuts.md`: index of the `shortcut:` comments, including the one in `xtask/src/policy.rs:194` about decimal byte arrays. #2246 is still open and addresses that gap, so the entry says "see #2246" rather than describing it as open work. - `docs/environment.md`: the `VICTORY_*` read sites, grouped by variable. **28** variables are documented in `README.md`; the remaining **31** have no in-repo documentation and are marked `TBD`, not guessed. A small group (for example `VICTORY_*_CHILD`, `VICTORY_RELAUNCHED_FROM`, `VICTORY_SAVE_OP`) is *inferred from its names* to be an internal subprocess protocol; it is labelled unconfirmed and left for a maintainer to confirm. This file is an index only - it does not edit the README's Debugging table or Getting started, because several open README PRs already do that. - `README.md`: **not touched.** The `crashes.log` wording is correct but imprecise; the precise path is `<data>/<8-character title id>/crashes.log` (`apps/victory/src/run.rs:180`). The data-folder sentence is at `README.md:114-115` on this `main`. I will offer the clarification as a comment on the README PR instead of editing the same sentence twice. All three indexes are plain text: `file:line` references only, no encoded blobs, no long literal arrays, nothing that could trip `cargo xtask policy`. Each file says at the top that its counts and line numbers are a snapshot and will drift. ## Not covered - No `CONTRIBUTING.md` and no PR template: #2466 (`docs/contributing.md`) and #113 (`.github/pull_request_template.md` plus a `pr-description` check) are both still open. This PR adds neither. The `## What` / `## Tested` block below satisfies #113's check if it merges first. - No `cargo xtask shortcuts` generator. Automating the index would touch `xtask/src/main.rs` and `xtask/src/policy.rs`, which #2246 and #2581 are already editing. Keeping the tables hand-maintained keeps this PR docs-only; automation is a natural follow-up once those land. - No asset-policy changes. See #2246 for the decimal-array work and #246 (closed, unmerged) for the earlier, much larger attempt at the same gaps. ## Tests Docs only, so behaviour is unchanged: - `cargo xtask policy` - must behave exactly as before. - `cargo fmt --all -- --check` - no Rust files touched. - `git diff --check` - no whitespace errors. - Spot-check that every `file:line` in the three indexes resolves on `main`. To run on the pinned toolchain: `cargo test --workspace --locked` and `cargo xtask policy`. Not run here: no Rust toolchain / Windows-only project in this environment. Counts come from a 2026-11-27 recheck of `63bcca43`. Docs only, no game data, no binaries, no `victory.toml` (per `docs/asset-policy.md`). ## What Add three `file:line` indexes for the in-code decisions, shortcuts and `VICTORY_*` environment variables. See `## Summary`, `## Change` and `## Tests` above for the file list, the exact counts and the rationale. No README edit, no Rust, no CI, no policy logic. ## Tested Not run here because this environment uses Linux and the project requires the pinned Windows toolchain. See `## Tests` for the exact commands; CI should run them. The docs-only diff was checked with `git diff --check`. Claim: #1633 `NEW-<***>`. Prepared with AI assistance (Chinese Model); reviewed and conducted by Rickeal-Boss. Synthetic references only, no other data.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 11:20:38 +00:00
This pull request can be merged automatically.
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/3507/head:github-bot/gh-3507'
git switch 'github-bot/gh-3507'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3507'
git switch 'github-bot/gh-3507'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3507'
git switch 'github-bot/gh-3507'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3507'
git switch 'main'
git merge --squash 'github-bot/gh-3507'
git switch 'main'
git merge --ff-only 'github-bot/gh-3507'
git switch 'main'
git merge 'github-bot/gh-3507'
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!3507
No description provided.