Files
RedBear-OS/local
vasilito 5396e6c3cc docs: add NO OVERLAY-STYLE PATCHES policy to both AGENTS.md files
Red Bear is a full fork, not an overlay. Document explicitly:
- What the policy is
- What the forbidden anti-patterns are (apply-patches.sh symlinks,
  recipes/*/source/ symlinks, mixing local/recipes/ edits with
  recipes/ patches, etc.)
- How to fork a Redox package correctly (copy to local/recipes/,
  edit there, delete the upstream recipe)
- Why this matters (auditability, build determinism, no stolen
  upstream changes, CI reproducibility)
- Historical context of why apply-patches.sh and local/patches/
  still exist (transitional remnants, historical-only)

Also update the 'How the build system works' diagram to clarify
that the source/ symlink is for core Red Bear forks (kernel,
base, relibc, bootloader, installer) — NOT for recipes. Recipes
have a different model: either fork entirely in local/recipes/ or
coexist in mainline. No symlinks, no overlay.

Also add a row to the 'Common anti-patterns' table listing the four
specific overlay-style mistakes (apply-patches.sh, recipes/ symlinks,
local/recipes/ + recipes/ mix, etc.) so future agents see them
flagged next to the existing 'don't edit source/' and 'don't add
patches' rules.

The user's 'IF YOU DID PATCHES, REDO ALL' was triggered by my adding
mesa to apply-patches.sh. The 450k line deletion was the cost of
the overlay approach breaking. This commit prevents recurrence.
2026-06-09 16:27:09 +03:00
..