Add exhaustive development plan + agent rules — the build book this fork was missing #1505

Open
ozqari wants to merge 2 commits from upstream-pr/1505 into main
ozqari commented 2026-11-28 04:35:19 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by ozqari on 2026-11-28T04:35:19Z.


Why this is required

This fork is 279 files / ~8.66 MB / ~220k lines of safety-critical GPU, loader, and translator code with no central statement of how it fits together or how to change it safely. Today that knowledge lives in dozens of file-header comments, docs/*.md, and run lore. Every ray-tracing, memory, resolution, or lighting change therefore risks:

  • re-breaking the builder's all-or-none gate (run-98-class title death),
  • re-introducing cold-queue stalls (~280 ms/frame) or fault storms,
  • silently invalidating warm caches / perf comparisons,
  • leaking game data or logs into the repo (history-rewrite class mistake).

This PR fixes that by landing the single normative development plan plus matching agent guardrails, both derived from reading all 279 files — not a summary of a few READMEs.

What it adds

  • src/DEVELOPMENT_PLAN.md (§§0–14): fork delta vs VIctory-NVIDIA, architecture, complete file inventory, quality gates, known gaps, roadmap, verification matrix, risks, then full control chapters for GUI (§8), memory/leaks (§9), resolution/upscaling/pacing (§10), lighting (§11), ray tracing (§12), logging/debugging run book (§13).

Why merge it before any more code changes

  1. Stops repeat incidents. Builder overlap, resolve-queue stalls, water tiles, haze smear, stencil-depth misreads, and replay-hang traps are all named with signatures and gates in one place.
  2. Makes reviews enforceable. Perf claims now require the same save + cache, ≥15 ≥1k-draw caption intervals, quoted contract lines, and replay --compare — reviewers can demand it.
  3. Protects the repo. Asset-policy RULE #1, log/capture hygiene, and cache-key rules are stated where the work happens.
  4. Unblocks parallel work. GUI, memory, resolution, lighting, RT, and logging owners can proceed against their chapter without stepping on each other.

Verification

  • Docs-only change: no Rust, no behavior change.
  • Follow-up (not this PR): contract-test the §13 log lines and add the JSON log mode from the §13.10 roadmap.

Please merge this first, then require every functional PR to cite the section it was built against.

<!-- greyfinch-sync:fxceless/victory-fork:issue:5536695245 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1505). Originally posted by [ozqari](https://github.com/ozqari) on 2026-11-28T04:35:19Z. --- ## Why this is required This fork is 279 files / ~8.66 MB / ~220k lines of safety-critical GPU, loader, and translator code with **no central statement of how it fits together or how to change it safely**. Today that knowledge lives in dozens of file-header comments, docs/*.md, and run lore. Every ray-tracing, memory, resolution, or lighting change therefore risks: - re-breaking the builder's all-or-none gate (run-98-class title death), - re-introducing cold-queue stalls (~280 ms/frame) or fault storms, - silently invalidating warm caches / perf comparisons, - leaking game data or logs into the repo (history-rewrite class mistake). This PR fixes that by landing the single normative development plan plus matching agent guardrails, both derived from reading *all* 279 files — not a summary of a few READMEs. ## What it adds - src/DEVELOPMENT_PLAN.md (§§0–14): fork delta vs VIctory-NVIDIA, architecture, complete file inventory, quality gates, known gaps, roadmap, verification matrix, risks, then full control chapters for GUI (§8), memory/leaks (§9), resolution/upscaling/pacing (§10), lighting (§11), ray tracing (§12), logging/debugging run book (§13). ## Why merge it before any more code changes 1. Stops repeat incidents. Builder overlap, resolve-queue stalls, water tiles, haze smear, stencil-depth misreads, and replay-hang traps are all named with signatures and gates in one place. 2. Makes reviews enforceable. Perf claims now require the same save + cache, ≥15 ≥1k-draw caption intervals, quoted contract lines, and replay --compare — reviewers can demand it. 3. Protects the repo. Asset-policy RULE #1, log/capture hygiene, and cache-key rules are stated where the work happens. 4. Unblocks parallel work. GUI, memory, resolution, lighting, RT, and logging owners can proceed against their chapter without stepping on each other. ## Verification - Docs-only change: no Rust, no behavior change. - Follow-up (not this PR): contract-test the §13 log lines and add the JSON log mode from the §13.10 roadmap. Please merge this first, then require every functional PR to cite the section it was built against.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1505:upstream-pr/1505'
git switch 'upstream-pr/1505'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1505'
git switch 'upstream-pr/1505'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1505'
git switch 'upstream-pr/1505'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1505'
git switch 'main'
git merge --squash 'upstream-pr/1505'
git switch 'main'
git merge --ff-only 'upstream-pr/1505'
git switch 'main'
git merge 'upstream-pr/1505'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
fxceless/victory-fork!1505
No description provided.