TIP.md
Original bytes preserved. This is a browser-readable view.
**ACCEPTED STATUS UPDATE — 2026-10-11:** The previously prospective r004 revision was built and tested by the owner ("excellent"). The Rev. 0.45 listing/ROM audit passed (24,462 emitted positions, zero mismatches). Exact source, listing and ROM identities: `26936704ba46d352f034642287de99adbaa9c48e3e2775ebfca7a6369d611bcc`, `70bd91026e5ca8b2f0943fee2e55da2a889e172f7a5611667fead90d8c7f6d57`, `1f3d72a7168eeed64c6429cfcc825da83f12719d8bd4a27541e08b087df88c6b`. Private release now: [stable/src/](https://drive.google.com/drive/folders/1SJdxXP_2pu7rKg_AZ69dh2yMvszknSZJ); earlier wrapper moved reversibly to trash/. Original r003 source, experiments and stable root remain frozen. The *following original prospective narrative* documents the decision before the build; read with this later closeout. Details: `sol/BUILD_AUDIT_r004_20261011.md` and `sol/MAINTENANCE_CLOSEOUT_r004_20261011.md`. This report does not enumerate every runtime test case or assert hardware/public rights.
# Chapter 04 — source maintenance TIP
**Current active source:** `src/primes.s`, accepted post-delivery r004 product UI source, 43,400 bytes, SHA-256 `26936704ba46d352f034642287de99adbaa9c48e3e2775ebfca7a6369d611bcc`. **Do not relocate the source.** Its include paths are deliberately relative to the existing `src/`/`apps/` layout. New `src/primes.lst` and `src/primes.bin` now contain the clean r004 Rev. 0.45 build; stale copies under owner-managed `build/` may still be r003. Source, listing and ROM hashes are documented in the r004 release manifest.
**Historical accepted baseline:** `apps/prime_lab_r003.s` (SHA-256 `ec0730102f20abbfd76753bc29530b493c6385f31d2ed9d1f2a73f360b23305b`), `.lst`, `.bin` and private `stable/` owner snapshot. Never edit these to make current source look historically inevitable. In the frozen Experience the original assignment was numerical; the interactive application was commissioned later.
**Why r004 changes only presentation:** `SPLASH_WAIT` already auto-advances with optional EXE skip; unlike Chapter 03 it has no hidden required keypress. Leave its *uncalibrated* poll timing and EXE skip unchanged. Keep `ENGINE=ABSOLUTE/DELTA` (representation), `METHOD=PAIR` (algorithm), `PRIME/COMPOSITE` result categories and compact `K= HITS= RATE=` fields uppercase. Mixed case is appropriate for prose, not a mandate to destroy scientific distinctions.
**Exact change and decision:** `../sol/DECISION_RECORD_CH04_UI_r004_20261011.md`, `../sol/CH04_UI_DIFF_r004_20261011.patch`, `../sol/verify_ch04_ui_r004.py`, `../ta/CH04_UI_REQUIREMENTS_r004_20261011.md`. Run the verifier from chapter root before assembling; then inspect **actual assembler output paths**, not presumed `build/` files. The owner manages `build/`; Sol must not edit it.
**Release gates:** HD61700 Rev. 0.45 assembly, independently audited 64 KiB ROM/listing and owner positive runtime report were accepted for r004. `stable/src/` mirrors `src/` directly; the historical r003 is preserved in chapter apps/ and archive/, with old stable layout in reversible trash/. Avoid public distribution claims without a rights/audience decision.
**Source-root correction, 2026-10-11:** `stable/src/primes.s` is the accepted mirror, with `primes.lst`, `primes.bin`, `build.last` and all ten include dependencies beside/under it. `../src/...` resolves correctly relative to `stable/src/`. No version-named wrapper and no synthetic `stable/apps/`. Detailed reasoning: `sol/DECISION_RECORD_CH04_STABLE_LAYOUT_20261011.md`. **Do not change source paths or the owner-managed build directory.**