6b2f54c9bd
Documents 8 concrete improvements to build-redbear.sh and the cookbook tool, derived from the redbear-mini boot crash debug session: 1. Trap-based stash-and-restore for ALL fork sources (eliminates the 'where did my edits go?' pain) 2. Source content-hashing to replace mtime-only cache invalidation 3. Cookbook binary freshness check (currently existence-only) 4. Strict-by-default uncommitted-edit gate 5. Stash-all-forks consistency 6. Failure-cleanup trap with diagnostics 7. Pre-cook offline/upstream consistency 8. Cookbook protection against out-of-band invocations Each improvement has a file:line location, implementation sketch, and impact/complexity rating. Implementation order suggested. Problem motivation: the user has repeatedly hit silent stash-loss, stale cookbook binaries, and mtime-based cache staleness while debugging kernel/relibc/base forks. The build pipeline should make these mistakes impossible, not require users to remember workarounds.