NOTES.md
Original bytes preserved. This is a browser-readable view.
# CS617 Chapter 12 - Recursion Angel / Entity B **NOTES - retrospective human-readable orientation ONLY** Edition: 2026-10-12 | Status: DRAFT / OWNER REVIEW PENDING | NOT ORIGINAL SOLVER INPUT ## Critical authority distinction Chapter 12 was intentionally implemented from the **Angelical** source `authority/NOTES.angel.lisp`, supplied under the original `authority/SOLVER_INPUT_MANIFEST.md` information-access boundary. This new human-language companion is **not** the original NOTES, is **not** evidence of what Entity B was allowed to read, and must **never** replace, modify, or be retroactively included in the original solver input. The later `authority/NFRs.angel.lisp` was testing-derived authority, not original day-one requirements. ## What the original contract describes (selected orientation, not a substitute) - A single PB-2000C 64 KiB ROM combines recursive N-Queens and three-peg Towers of Hanoi, plus a shared virtual character terminal (VT) and a VT test page. - The physical LCD is 32 columns by 4 rows; VT has 32 columns by 24 virtual lines. Public services are `VT_CLEAR`, `VT_WRITE`, and `VT_VIEW`; consumer programs must not access private VT backing storage. - Top-level navigation includes Queens, Hanoi and VT test entries. Cold-start splash is centered and advances automatically; MENU and BRK remain distinct actions. Queens and Hanoi retain independent N values, initially 8, within range 1..10. - Queens is recursive, enumerates each distinct valid board once, provides view/count modes and continuation between solution pages. N=2 and N=3 have zero-solution completion cases. - Hanoi is recursive; from A to C using B it must produce a minimal legal move sequence of `2^N - 1` moves. A specific compact `DD:S>D` textual move field and pagination contract are prescribed. - VT viewer scrolls a 24-line page within 4 physical rows and returns a **reason**, not the consumer's policy. Q continuation means different things for Queens, Hanoi and VT test. Overlay labels are physical-only and must not corrupt virtual backing storage. ## What remained free to the solver Solution order, recursive routine decomposition, local data representation, register and stack allocation, VT backing address/representation, and internal implementation details were not prescribed by this human summary. Refer to the actual Angelical `OPEN` clauses for the authoritative freedom boundary. ## Experimental outcome and provenance Entity B r007 is the accepted stable technical specimen, with bounded human runtime acceptance and Rev. 0.45 clean assembly. Its chronology includes independent early implementation, later testing-derived NFRs, and a narrow late peer cursor inspection plus Piotr Piatek's decisive technical note. This is **stratified provenance**, not an unbroken clean-room claim. Entity C's later comparison does not prove grammar superiority or full semantic equivalence of the original contracts. ## Mandatory source route For any historical solver-input assertion consult `authority/NOTES.angel.lisp` and `authority/SOLVER_INPUT_MANIFEST.md` directly, then `authority/NFRs.angel.lisp` for the separate later layer. The stable manifest and `evidence/` provide outcomes and provenance. This document is only an orientation aid.