THE 2D HARDWARE GAPS, MEASURED: WHICH ONES A LIVE SCENE ACTUALLY TOUCHES
Run link60 Stage 3, lane W2D. Base c7b44af04, gate GREEN 5533/11243 (49.2%).

port/ov004_ov007_2d_map.txt section 7 lists six clusters of DS 2D hardware the
ntr layer does not model, and says which of them "are candidates" for the title
screen and the minigame option screen. That list was written from what two
overlays' SOURCE pokes. This is the same question answered from runs.

The short version: NONE of the six clusters is live in any scene that runs
today. What the measurement did turn up is a different thing entirely -- a wrong
bit contract in the code that was supposed to be skipping one of them.


1. HOW IT WAS MEASURED, AND WHAT THE METHOD CANNOT SEE
-------------------------------------------------------

Two instruments, because one question is about values and the other is about
waiting.

  port/ntr/ppu_audit.cpp     samples both engines' whole 2D register file, the
                             OAM object-mode census and the touch hardware
                             surface at every scan-out. Env-gated on
                             SM64DS_PPU_AUDIT=<path>; inert otherwise.
  port/tools/ppu_reg_readers.py
                             sweeps src/ for every reader of those registers and
                             checks each hit against walk_window.map, so a
                             reader that is not linked is not counted.

WHY SAMPLING AND NOT INTERCEPTION. ntr/io.cpp maps real memory at the DS
addresses, so a 2D register store is an ordinary store to an ordinary page. It
does not pass through io_read/io_write unless the storing function happens to be
hostgen'd, and for the 2D surface that is the exception, not the rule. The proxy
table at the bottom of every run's output proves it. Level 1's whole proxied 2D
traffic over 900 frames is three rows, and all three are the same register:

    rd 04000060 w2 = 00000000  x1
    wr 04000060 w2 = 00000008  x900
    rd 04000060 w2 = 00000008  x899

That is 1800 accesses, but to DISP3DCNT and nothing else -- not one BGxCNT, not
one window or blend register, not one palette or OAM word. Scene 4's table is
empty outright. So the proxy sees essentially none of the 2D surface, there is
no seam to intercept at, and this is the same fact that forced L1's GXSTAT fix
to normalise the LATCH rather than a returned value.

WHAT SAMPLING SEES. The register state at scan-out, which is the state that
decides the image: the 2D unit reads these registers as it draws, and the port
has no scanline timing, so a value written and overwritten before scan-out
cannot reach the screen in either the port or the hardware.

WHAT IT CANNOT SEE. A mid-frame value that is gone by scan-out. And it cannot
tell "never written" from "written zero" -- but zero is the OFF state for every
register in the gap set (BLDCNT mode 0 is no effect, MASTER_BRIGHT factor 0 is
no change, MOSAIC 0 is 1:1, and the window enables live in DISPCNT bits 13-15,
which are sampled), so zero reads as "not in use" throughout. That is sound for
the question asked and is NOT sound for any question about writes.

THE SEAM. ppu_audit_sample is called from ntr::ppu_scanout_sub, which is the one
scan-out the live harness runs every frame, and it samples BOTH engines from
there. Engine A's live 2D path is hal/message_compositor.cpp, not ntr/ppu.cpp --
ppu_scanout is in no live path at all, because it fills the whole framebuffer
and would erase the 3D frame. Hooking the sub scan-out reaches engine A's
registers without touching a file this lane does not own.


2. THE THREE RUNS
------------------

  scene 4   SM64DS_SCENE=4 SM64DS_SCENE_FRAMES=300      exit 0, BARE
            300 frames, init 1 / behavior 299 / RENDER 300, 0 traps entered.
  scene 1   SM64DS_SCENE=1 SM64DS_SCENE_FRAMES=300      exit c0000005
            NO FRAMES AT ALL. See section 4.
  level 1   SM64DS_LEVEL=1 SM64DS_WINDOW_SELFTEST=900   exit 0
            900 frames.

1200 sampled frames in total across the two runs that produce frames.


3. THE TABLE
-------------

Value columns are the distinct values the register held across every sample.
"live" is the verdict for that run: does this gap change the image.

                       scene 4 (300 frames)      level 1 (900 frames)
  ENGINE A
  DISPCNT              08011d08                  00000000
  BG0CNT               0002                      0000
  BG2CNT               1611                      0d11
  BG3CNT               1700                      1100
  BG2PA/PD             0100 (identity)           0000
  BG3PA/PD             0100 (identity)           0000
  BG2X/Y, BG3X/Y       0                         0
  WIN0H/1H/0V/1V       0                         0
  WININ / WINOUT       0                         0
  MOSAIC               0                         0
  BLDCNT/BLDALPHA/BLDY 0                         0
  MASTER_BRIGHT        0                         0
  DISPCAPCNT           80000000                  0
  DISP3DCNT            00000019                  00000008
  OAM mode 1 / 2 / 3   0 / 0 / 0                 0 / 0 / 0
  mosaic bit           0                         0

  ENGINE B
  DISPCNT              00011000                  40011803
  BG0CNT               0000                      1200
  BG1CNT               0000                      0c00
  BG2CNT               0000                      1302
  BG3CNT               0000                      1f12
  BG3PA/PD             0100                      0100 x2 then 00be
  BG3PB                0                         0000 x852, ffff x48
  BG3X                 0                         0, ffffe0b0, ffffe0ec
  BG3Y                 0                         0, then 6+ distinct values
  WIN0H/1H/0V/1V       0                         0
  WININ / WINOUT       0                         0
  MOSAIC               0                         0
  BLDCNT/BLDALPHA/BLDY 0                         0
  OAM mode 1 / 2 / 3   0 / 0 / 0                 0 / 0 / 0
  mosaic bit           0                         0

  TOUCH AND PAD SURFACE (both runs)
  KEYINPUT, EXTKEYIN, 0x027FFFA8, SPICNT, SPIDATA, 0x027FFFAA, 0x027FFFAC
                       all 0 on every one of the 300 and 900 samples

READING OF THE TWO DISPCNTs.

  scene 4 engine A = 0x08011d08. Mode 0 (every BG is text), BG0 in 3D mode
  (bit 3), BG0 + BG2 + BG3 + OBJ enabled, screen base offset 1, display mode 1.
  Bits 13, 14 and 15 are CLEAR: no window of any kind is armed. So the identity
  values sitting in BG2PA/BG3PA are inert -- in mode 0 those backgrounds are
  text and nothing reads the affine registers. They were initialised, not used.

  scene 4 engine B = 0x00011000. OBJ on, NO BG enabled at all. The bottom screen
  in the star select is sprites only.

  level 1 engine A = 0x00000000, on all 900 frames. Engine A's 2D is entirely
  off during a level walk; the top screen is pure 3D. The stale BG2CNT/BG3CNT
  values are leftovers behind a disabled display.

  level 1 engine B = 0x40011803. BG mode 3 (BG3 extended affine), BG3 + OBJ on,
  extended palettes armed (bit 30), display mode 1. That is the minimap, and
  ppu_sub.cpp models all of it -- the moving BG3PA/BG3X/BG3Y values in the table
  are the minimap being scaled and scrolled, correctly, every frame.


4. SCENE 1 PRODUCES NO 2D MEASUREMENT, AND THAT IS THE MEASUREMENT
-------------------------------------------------------------------

SM64DS_SCENE=1 dies at c0000005 inside dScDSMT_c::InitResources, before the
frame loop starts. The audit file is never created: ppu_audit flushes on its
FIRST sample precisely so that "the seam never ran" (no file) is distinguishable
from "it ran and everything was zero" (a file full of zeros), and there is no
file.

So the title screen exercises zero 2D scan-out today and cannot demand any gap
on this list. Its blocker is port/ov007_seat.txt section 5's unmatched ROM body
func_ov007_020c9688, which is a decomp, not a port change and not a PPU gap.

This matters for prioritisation, because ov007 IS the overlay the gap list was
worried about, and the static sweep in section 5 finds it writing BLDALPHA and
MOSAIC. Those writers are real and they are unreachable. Implementing colour
special effects against them today would be building for a scene that cannot
run, and could not be tested by running it.


5. WHO READS THESE REGISTERS AT ALL (static, linked-only)
-----------------------------------------------------------

port/tools/ppu_reg_readers.py, src hits filtered against walk_window.map. A src
hit alone means nothing: most of the tree is not linked.

  register          srcs  linked  notable linked readers
  DISPSTAT             5       2  func_02053be0, func_02053c10
  VCOUNT               3       1  func_02013f4c
  WIN0H_A             14       5  Scene::ResetHardwareRegisters,
                                  Message::UpdateWindow, Message::DisplaySaving
  WININ/WINOUT_A       8/9     4  same three plus func_0201f32c
  MOSAIC_A             2       2  Scene::ResetHardwareRegisters,
                                  func_ov007_020c8c88
  BLDCNT_A            53      16  Camera::Render, Player::St_Teleport_Main,
                                  Message::UpdateWindow, InitCrashScreen, ...
  BLDALPHA_A           1       1  func_ov007_020c8bc8
  DISPCAPCNT           4       2  Scene::ResetHardwareRegisters,
                                  func_ov007_020bd4e8
  WIN*_B             5-8     1-3  Scene::ResetHardwareRegisters,
                                  Message::UpdateWindow, func_0201f32c
  BLDCNT_B            32       9  Minimap::Behavior, Message::UpdateWindow, ...
  BLDALPHA_B           1       1  func_ov007_020c8bc8
  KEYINPUT             2       1  func_02013f4c
  SHARED_PAD (a8)      2       1  func_02013f4c, the same reader ORing both
  0x027FFFAA/AC        1       0  func_0205f300 is NOT linked

The window unit's linked writers are all modelled: ppu_sub.cpp and
message_compositor.cpp both implement WIN0/WIN1/WININ/WINOUT, which the gap list
did not know -- section 7a said "neither models the window registers", which had
not been true for either engine for some time. That paragraph is corrected in
place now, rather than only contradicted from here.

BLDCNT has sixteen linked writers on engine A and every sampled frame reads 0.
That is consistent rather than contradictory: hal/fader_wipes.cpp READS
BLDCNT/BLDY itself and drives the fade through master brightness, so the fade
path consumes those registers outside the PPU, and the scenes measured here
simply were not fading at any sampled frame.

TWO ROWS THAT LOOK LIKE THE GXSTAT SHAPE AND ARE NOT, both checked:

  VCOUNT. One linked reader, func_02013f4c, and it ends with a two-loop VBlank
  wait (`while (VCOUNT >= 0xc0) ; while (VCOUNT < 0xc0) ;`) that a dead-zero
  latch would hang in forever. It is not a dead latch: ntr/rt.cpp's
  run_scanlines() sweeps VCOUNT 0..262 every frame, and the function is reached
  only through func_02013f28's `for(;;)` -- the dev crash screen, cut content,
  not on any normal path. No action, and rt.cpp is not this lane's file.

  DISPSTAT. Two linked readers, and both touch only bits 3 and 4 (the VBlank and
  HBlank IRQ enables), which are software-owned and correct as a latch. The
  hardware-owned bits 0-2 are a dead-zero latch with no linked reader.


6. THE VERDICT PER CLUSTER
---------------------------

  a. OBJ WINDOW.               NOT LIVE by value, DEFECT FOUND. See section 7.
  b. SEMI-TRANSPARENT SPRITES  NOT LIVE. Zero mode-1 objects in 1200 frames on
     AND BLDCNT/BLDALPHA.      either engine; BLDCNT, BLDALPHA and BLDY read 0
                               on every sampled frame of both runs. ov007 has
                               the only linked BLDALPHA writer and ov007 cannot
                               reach a frame. NOT IMPLEMENTED, deliberately:
                               there is nothing to test it against.
  c. AFFINE AND BITMAP BGs.    ALREADY MODELLED where it is live. Engine B does
                               text, affine and extended affine, and level 1
                               proves the minimap runs through it every frame.
                               Engine A is text-only and needs nothing: it is in
                               mode 0 in scene 4 and switched off entirely in
                               level 1. Bitmap BGs: no run selects one.
  d. THE 3D FONT.              Out of this lane. hal/sub_screen.cpp's LoadFont3D
                               is a hal exception, not a register gap.
  e. TOP-SCREEN BG2 TEXT.      Out of this lane, same reason
                               (LoadControllerModeText).
  f. TOUCH.                    NOT A REGISTER GAP. See section 8.

  NEW, not on the list: GXSTAT bits 8-14. See section 9.

THE ONE UNMODELLED REGISTER THAT IS NOT ZERO. DISPCAPCNT reads 0x80000000 on
every frame of scene 4, and display capture is not modelled at all, so the
headline sentence needs this exception stated rather than buried in the table.
It is still not a live gap, for two reasons, both checked rather than assumed.
Engine A is in display mode 1 (graphics) throughout, not mode 2 or 3, so nothing
displays captured VRAM. And bit 31 is the one bit that could have produced the
GXSTAT failure shape -- hardware CLEARS it when the capture completes, so a game
polling it against a latch would spin forever -- but both linked touchers are
pure writes with no read-back:

    Scene::ResetHardwareRegisters   *(u32*)0x4000064 = 0x80000000;
    func_ov007_020bd4e8             *(u32*)0x4000064 = 0x80370010;

The first is a scene-init reset value, which is why scene 4 carries it, and the
second is in ov007 and unreachable. No action taken.

A CAVEAT ON THE OAM CENSUS NUMBERS. The census counts an entry as enabled when
attribute 0 bit 9 is clear, which is the hardware's own disable bit, and that
comes to all 128 entries on every frame (300 x 128 = 38400 in the mode-0 row).
It must not be read as "38400 sprites drew". What those 128 entries actually
are differs BY ENGINE AND BY RUN, measured directly rather than assumed:

                     all-zero   y == 192   other y (real sprites)
  scene 4 engine A       0         101              27
  scene 4 engine B     128           0               0
  level 1 engine A       0         128               0
  level 1 engine B       0         101              27

So there are two separate reasons the count is 128 and neither is "128 sprites".
Where the game has run OAM::Reset it parks unused entries OFF SCREEN rather than
setting bit 9 (attribute 0 low byte 0xc0, y = 192), and bit 9 stays clear on a
parked entry. Where it has not, the entries are boot zeros, and a zeroed
attribute 0 also has bit 9 clear.

AN EARLIER REVISION OF THIS PARAGRAPH GAVE ONLY THE FIRST REASON, for both
engines. That is engine A's story. Engine B in a scene run is the second case:
128 all-zero entries, no OAM::Reset having touched them, which is a real defect
in the scene bring-up rather than anything about 2D hardware, and is routed as
its own lane. The table above is the correction.

The mode-1/2/3 result does not move under either reason, because a parked entry
and a zeroed entry both still carry object-mode bits and every one reads 0.


7. THE DEFECT: OBJ WINDOW IS MODE 2, AND THE PORT WAS SKIPPING MODE 3
-----------------------------------------------------------------------

OAM attribute 0 bits 10-11 are the object mode. GBATEK: 0 Normal,
1 Semi-Transparent, 2 OBJ WINDOW, 3 Prohibited (the DS reuses 3 for bitmap
OBJs). The field position is pinned independently by the decomp's own code
rather than by docs alone: src/_ZN3OAM6RenderEbP7OamAttriiii5Fix12IiEi.c
composes the word as `(mode << 10) | (mosaic << 12)`.

All three of the port's OAM rasterisers had

    if (((a0 >> 10) & 3) == 3) continue;     // OBJ window: skip

which is the wrong mode in both directions. Mode 3 was thrown away, and mode 2 --
a sprite that on hardware is INVISIBLE and contributes only a mask -- was drawn
as an ordinary opaque sprite, painting the mask's silhouette onto the screen in
its own palette colours.

THE SAME MISLABEL WAS IN TWO OTHER FILES, and both are corrected in place rather
than only contradicted from here, because a reader who never opens this document
would otherwise still hit the trap. port/ov004_ov007_2d_map.txt section 7a said
"skip OAM mode 3 (OBJ window)", and port/scene_boot_map.txt section 7a rested
its star-select conclusion on "none of its THIRTY OAM::Render call sites passes
objMode 3" -- a test that cannot rule out the OBJ window, because the OBJ window
is not mode 3. That conclusion happens to be right and is re-derived in place
from the run instead: zero mode-2 objects in 300 frames, and DISPCNT bits 13-15
clear on every one of them, so no window of any kind is armed.

NOT LIVE, STILL FIXED. Zero mode-1, mode-2 and mode-3 objects appear on either
engine in any of the 1200 sampled frames, so nothing on screen changes today.
It is a contract error of exactly the class L1's GXSTAT was -- correct by
accident, wrong on the day something uses it -- and it costs four lines to state
correctly.

WHAT CHANGED, per file:

  ntr/ppu_sub.cpp   The OBJ window is now MODELLED. Mode-2 sprites write a mask
                    (g_objwin) instead of colour; DISPCNT bit 15 arms it;
                    WINOUT's upper six bits say what shows inside it; precedence
                    is WIN0, then WIN1, then the OBJ window, then WINOUT. This
                    file composites in one pass, so the mask exists before the
                    BGs are sampled.
  ntr/ppu.cpp       Skips mode 2 and mode 3 with the right names. This file has
                    no window unit, so it cannot carry the mask; not drawing the
                    sprite is still the closer of the two answers, because on
                    hardware it does not appear in the image either.
  hal/message_compositor.cpp
                    Same minimal fix. The mask is NOT modelled here and cannot
                    be without restructuring: this compositor runs its BG loop
                    BEFORE raster_obj, so an OBJ-window region would not exist
                    yet when the BGs are masked. Recorded rather than bodged.
                    OWNERSHIP DEVIATION, self-flagged: this is a hal file and no
                    sibling lane owns it, but it carried the identical one-line
                    defect and leaving it half-corrected would be worse.

PROOF: port/tests/smoke_objwin.cpp. It programs engine B's registers, VRAM, OAM
and palettes by hand -- no game code, no ROM data, links ntr alone -- and checks
four things:

  A control      a mode-0 sprite draws, whole, at the right place. Without this
                 the "no sprite colour" check below would pass vacuously.
  B obj window   a mode-2 sprite paints NOTHING, and its silhouette is instead
                 the region where WINOUT's upper half lets the BG through.
  C bitmap obj   a mode-3 sprite neither draws nor masks.
  D enable bit   with DISPCNT bit 15 clear the mask does not leak through.

Passing output:

    A control      green=256 (first 40,60)  red=48896
    B obj window   green=0  red=256 (first 40,60)  blue=48896
    C bitmap obj   green=0  red=0  blue=49152
    D winobj off   green=0  red=49152
    smoke_objwin: ok

AND IT WAS CONFIRMED TO CATCH THE OLD BEHAVIOUR, not merely to pass. With the
`== 3` test and `is_win = false` reinstated in ppu_sub.cpp and nothing else
changed, the same binary reports 5 failures, including case D showing green=256
-- the window sprite being painted on screen, which is the bug stated as a
pixel count.


8. TOUCH: THE REGISTER SURFACE HAS NO LINKED READER
-----------------------------------------------------

Gap (f) says ov004's TouchIcon_c and ov007's touch_panel "both read the touch
panel", and that walk_window has a touch bridge but "no touch-panel register
model". The second half is true and turns out not to matter.

The game does not read the panel hardware on any linked path. It reads
TouchInfo[4] at DS 0x020a0de8 -- {u8 touched, u8 held, u8 x, u8 y} per
controller -- which hal/auto_bss.cpp hosts as one contiguous 16-byte block and
hal/sub_screen.cpp's poll_touch() already fills from the mouse every frame, with
SM64DS_TOUCH_PROBE for a scripted stylus on top. That bridge is the seam, and it
exists.

The hardware path behind it is ARM7 work: the TSC is read over SPI and posted to
shared WRAM, and the arm9 side of that is func_0205f300, which reads 0x027fffaa
and 0x027fffac. IT IS NOT LINKED -- zero hits in walk_window.map -- and the
audit confirms both words, plus SPICNT and SPIDATA, read 0 on all 1200 frames.

So the honest model is the empty one, and it is already what the port has: no
ARM7, no SPI transaction, no panel registers, and the stylus state delivered
directly into the record the game actually reads. NOTHING WAS CHANGED HERE. The
seam a later lane would want is not a register model at all; it is that
poll_touch publishes only slot 0 and only from the mouse.

ONE HONEST LOOSE END IN THE SAME FAMILY, QUEUED AND NOT RIDDEN.

The pad is TWO dead latches, not one, and the reader combines them. Its single
linked reader, func_02013f4c, opens with

    raw = ((*(u16 *)0x4000130 | *(u16 *)0x27fffa8) ^ 0x2fff) & 0x2fff;

so KEYINPUT (0x04000130, the ten ARM9-visible keys) is ORed with the ARM7-posted
word at 0x027fffa8 (X, Y and the hinge, which the ARM9 cannot read directly)
before the whole thing is inverted. Both are zero in the port, on every frame of
both runs. The DS keypad is ACTIVE LOW, so zero is not a neutral reading: it
means EVERY button held, on both halves. A dead latch here reads as the worst
possible answer rather than an absent one.

It is recorded rather than fixed, for two reasons.

  UNTESTABLE ON ANY NORMAL PATH. func_02013f4c is reached only through
  func_02013f28's `for(;;)`, which is the dev crash screen -- cut content that
  nothing in a level or scene run calls. A model written here could not be
  exercised by any run this lane or the battery can make, so it would ship
  unverified, which is the failure mode this whole audit exists to avoid.

  IT IS NOT ONE LINE. Two registers with different layouts have to be driven
  from a host input source with the polarity inverted, and the port already
  delivers input a different way entirely: through the Ctrl block at
  data_0209f498, which is what Stage::CheckInput reads. Wiring the latches
  without deciding which of the two is the source of truth would give the game
  two disagreeing input paths.


9. GXSTAT BITS 8-14, THE RIDE-ALONG
-------------------------------------

L1's review amendment 2 bounded bits 0..14 as read-only-but-unmodelled and asked
the next lane in the file to close them. Closed for bits 8-14.

L1's stated reason for leaving them was "the host has no matrix-stack model to
normalise them FROM". That was wrong about the host. ntr/gx.cpp has kept both
stacks and both stack pointers all along -- g.pos_sp over pos_stack[32] and
g.proj_sp over proj_stack[2], maintained by the MTX_PUSH and MTX_POP handlers --
so the stack level is not a guess. A new read-only accessor
gx_matrix_stack_levels() reports it and io.cpp's gxstat_normalize folds it in.
Busy (bit 14) is pinned to 0 on the same argument GXSTAT_IDLE already rests on:
ntr executes a display list synchronously, so the game can never observe a push
or pop in flight. GXSTAT_HW grows 0x0FFF0000 -> 0x0FFF7F00.

Field positions from the game, not from docs alone:

    func_02055464: if (GXSTAT & 0x4000) return -1; *out = (GXSTAT & 0x2000) >> 13;
    func_02055490: if (GXSTAT & 0x4000) return -1; *out = (GXSTAT & 0x1f00) >> 8;

AND THIS CORRECTS WHAT L1's NOTE SAID THE SPIN WAS WAITING ON. It read
func_02055624's `while (func_02055490(&a)) ;` as "spin until the stack level
reads 0". It is not: both helpers return -1 only when BUSY and 0 otherwise, so
the loops spin until NOT BUSY and then use a and b as the levels. That moves the
risk in the fix's favour. With busy pinned to 0 the loops still fall through
immediately, exactly as they did against the dead latch, so there is no new
hang. What changes is the half after the spin: func_02055624 pops the stacks by
a and b, which against a dead-zero latch popped NOTHING and left the stack
unwound.

func_02055624 IS LINKED, AND THE LINE ABOVE USED TO SAY IT WAS NOT. That was
L1's "0 references in walk_window.map", measured against a 4950-symbol build and
carried into a 5533-symbol one without re-deriving it. My own build's map has it
at 0001:0003d520, with func_020557b4 and their caller func_ov007_020bcf90.

The true statement is narrower and more useful: the chain is UNREACHABLE, not
unlinked. func_02055624's linked callers are func_020557b4 and
func_ov007_020bcf90; func_020557b4's only linked caller is the same
func_ov007_020bcf90; and that one sits on scene 1's Render path, behind the
InitResources fault in section 4. The other caller of func_020557b4,
func_0200f4b4, is genuinely absent from the map. So the day this matters is THE
DAY SCENE 1 RUNS, not the day something links: the two pops stop being no-ops
against zeros and become real pops against gx.cpp's live sp counters, which is
the whole reason for the change.

AND ONE BOUND ON WHAT THE FIX IS. gxstat_normalize runs only on accesses that
come through io.cpp's proxy, and almost nothing on this surface does. Bits 8-14
are therefore a SNAPSHOT taken at the last hostgen'd touch of GXSTAT, not a live
mirror of the stacks. That is strictly better than a latch that never tracked
anything and strictly less than modelling the register. Making it live means
writing through from gx.cpp at push and pop time, which is that file's lane.

Bits 0-7 (the box-test result) stay a latch. The host runs no box test, so there
is nothing truthful to report, and no linked reader asks.


10. WHAT THIS LANE DID NOT DO
------------------------------

  * No alpha blending, no semi-transparent sprites, no mosaic, no bitmap BGs,
    no bitmap OBJs. All measured dead. Building them now would be untestable.
  * No OBJ-window mask on engine A. Structural, stated in section 7.
  * No touch-panel register model. Section 8: there is no linked reader.
  * Nothing about the 3D font or top-screen BG2 text: hal, not registers.
  * NOBODY HAS LOOKED AT WHAT ANY OF THIS DRAWS. The BMPs this lane produced are
    evidence for a human, not a verdict. Per notes/port-selftest-bmp-gate.md a
    selftest BMP is only byte-comparable between builds at the same .dsstate
    base, and no claim here rests on comparing two.


11. THE SEVENTH CLUSTER, WHICH WAS NOT ON THE LIST: OBJ EXTENDED PALETTES
--------------------------------------------------------------------------
Run link60 Stage 4, lane SUB2, base 34d3a3130, gate GREEN 5810/11249 (51.6%),
battery ALL GREEN. The battery's two standing exceptions are SCENE_BLOCKED rows
and not SCENE_SKIPS ones: scene 1 and scene 374 cannot run at all and are
required to fail with their recorded blocker. A skip is a scene that passes
with a class switched off, and neither of these is that.

Section 6 could not have found this one, because the instrument could not see
it. The register file says a scene's DISPCNT bit 31 is clear and the mode census
says all its objects are mode 0, and both were TRUE of scene 4 while its
character portrait decoded through the wrong palette every frame. What was
missing is that neither table said what a sprite decodes FROM.

TWO ROWS ADDED TO ntr/ppu_audit.cpp, and they are what settled it.

  OAM enabled-entry attributes, distinct (attr0, attr1, attr2) triples, with
  the colour-mode bit, the palette field, the character name and the size
  decoded out. Distinct triples rather than entries: a HUD redraws the same
  sprite every frame, so 38400 entry-samples come to about twenty rows.

  OBJ decode inputs, nonzero bytes: OBJ VRAM, the standard OBJ palette and --
  new -- the OBJ EXTENDED palette store, whose base 0x068a0000 is taken from
  src/_ZN3GXS14LoadOBJExtPlttEPKvjj.cpp's own arithmetic rather than a doc.
  Engine A gets no extended-palette row: this tree has no GX::LoadOBJExtPltt TU
  to derive a base from, and a guessed base is the invented mapping the audit
  exists to avoid.

WHAT SCENE 4 ACTUALLY IS, 300 frames, engine B, thirteen placed sprites:

    4 x 64x64  colour 256  palette 0  tiles 512, 516, 576, 580
    8 x 32x16  colour 16   palette 0  tiles 448..476   (the y=152 text strip)
    1 x 16x16  colour 16   palette 6  tile  0          (the star, at 120,16)

    DISPCNT_B          00011000 on all 300 samples -- bit 31 CLEAR
    OBJ VRAM           7433 / 131072 nonzero
    OBJ palette        158 / 512 nonzero
    OBJ ext palette    473 / 8192 nonzero -- LOADED, AND SWITCHED OFF

Tile 512 x 32 bytes is 0x4000, and 0x4000 is exactly where dScStarSel_c::
InitResources decompresses the selected character's portrait. The ROM's own
file table names both halves of it:

    handle 0x244   data/2D_cad/d_2d_player_select_mario_8bit_ncg.bin
    handle 0x245   data/2D_cad/d_2d_player_select_mario_8bit_ncl.bin   512 B

so the four 256-colour sprites are the portrait, the 512-byte _ncl is the
256-colour palette the scene pushes through GXS::Begin/Load/EndLoadOBJExtPltt,
and the nine 16-colour sprites beside it are on the standard palette and were
never affected. An extended palette applies to 256-colour sprites only, which is
why exactly one element of that screen was wrong and the rest were right.

FOUR SPRITES, ONE IMAGE: WHY THE STRIDES LOOK WRONG AND ARE NOT. The four
portrait entries are declared 64x64 and sit 16 screen pixels apart, at (88,56),
(104,56), (88,72) and (104,72), with tile numbers 16 pixels apart too. Read
quickly that says "16x16 sprites mislabelled", and it is worth writing down why
it does not.

Work the 2D model through. OBJ VRAM in 2D mapping is a matrix 32 slots wide,
32 bytes a slot; a 256-colour 8x8 cell is two slots, so a matrix row is 16 cells
across and 8 source pixels tall.

    tile 516 - 512 = 4 slots  = 2 cells        = 16 source px right
    tile 576 - 512 = 64 slots = 2 matrix rows  = 16 source px down

SOURCE STRIDE EQUALS SCREEN STRIDE on both axes. So wherever two of these
sprites overlap, both sample the SAME source pixel, and the four composite into
one coherent image rather than four fighting copies. The declared size is not
contradicted by anything: the sprites are 64x64 windows onto one picture, laid
down at a 16-pixel step, and their union is the 80x80 the portrait occupies.

AND THE COHERENCE IS EVIDENCE FOR THE 2D MODEL, not a loose end. Run the same
arithmetic under 1D, where a sprite's cells are consecutive: the horizontal pair
still agrees (4 slots is 2 cells is 16 px along the row of a 64-wide sprite),
but the vertical pair does not -- 64 slots is 32 cells, which for a 64-wide
sprite is four rows, 32 source pixels, against a 16-pixel screen step. A 1D
reader would draw the lower pair half an image out of register with the upper.
The frame does not do that. So the ROM's cleared bit 4, ppu_sub.cpp's 2D slot
arithmetic and the OAM data all agree, and the "16x16 stride" reading is
RESOLVED rather than open.

WHY BIT 31 WAS CLEAR WAS NOT A 2D GAP AT ALL. It was a hosted-global aliasing
break: the SetBankFor* family reaches members of one struct at 0x020a6088 out to
+0x18, and +0x18 IS the DS symbol data_020a60a0 that GXS::BeginLoadOBJExtPltt
reads back. The port hosted them as separate objects, so Begin read zero, End
restored bank 0, and SetBankForSubOBJExtPltt(0) cleared the bit the scene had
just set. hal/cxx_aliases.cpp carries the fix and the derivation.

HOW BIG THE HOSTING MISS WAS, in the config's own figures rather than the
port's. EIGHTEEN src TUs name data_020a6088. The symbol's span in
config/arm9/symbols.txt is TWO bytes -- data_020a608a starts at +2 -- while the
struct view reaches +0x18 and func_02053d9c clears the block as
data_020a6088[0..12], 26 bytes a call. The old host object was `int[2]`, eight
bytes, which was already the base map's placement gap rather than the symbol's
span. Review read the base map and named where the overrun landed: all of
data_020a8114 plus two bytes of data_0208e6ec, with the +0x18 store on
data_0208e6ec. Those names belong to one link and are not a constant; the
durable statement is that a 26-byte write into a two-byte symbol lands on
whatever the linker put next.

THE BG PATH WAS BROKEN THE SAME WAY AND IS FIXED BY THE SAME BAND, which this
lane did not claim the first time. GX::SetBankForSubBGExtPltt records at +0x16
and func_02054118 -- GXS::BeginLoadBGExtPltt's callee, func_020540f0's exact
sibling -- clears DISPCNT_B bit 30 and reads that word back as data_020a609e.
Same split, same zero, same bank-0 restore.

MEASURED EFFECT ON THE FRAME, A/B IN ONE WORKTREE AT ONE .dsstate BASE
(0xbab000, both sides; the A side is the same binary with the extended read
forced off, so nothing but the decode differs):

    A  standard palette   68 distinct colours   5065 non-white pixels
    B  extended palette  247 distinct colours   5086 non-white pixels
    3682 pixels differ, ALL of them inside x 95..162, SCREEN rows 59..134

ROW CONVENTION, because the two orders are three rows apart here and a reader
comparing this against an OAM box needs to know which is quoted. ppu_write_bmp
_sub writes rows bottom-up, so file rows 57..132 in the BMP are SCREEN rows
59..134 counting down from the top. The screen form is the one quoted above and
it sits inside the OAM box (x 88..167, screen y 56..135) with a transparent
border, which is the expected relationship.

That box is the portrait. The star and the text strip are byte-identical across
the change. WHETHER THE PORTRAIT IS NOW RIGHT IS NOT A CLAIM THIS FILE MAKES --
section 10's last bullet still holds, the BMP is evidence for a person. TANGO
HAS SINCE LOOKED AT frame B and his verdict is "looks perfect with the colors".
That is his, recorded here because it is the only kind of verdict this question
has, and it is not re-derivable from anything in this file.

STILL OPEN, NAMED RATHER THAN CLOSED

  * ppu.cpp's OBJ layer STILL HARD-CODES 1D MAPPING. stage_lifecycle_map.txt
    section 11e is right about that file and wrong to leave it reading as the
    bottom screen's problem: ntr/ppu_sub.cpp, which is engine B's live path,
    has read bit 4 and computed the 2D slot since W2D. Engine A measures
    DISPCNT 08011d08 on scene 4, bit 4 clear, so ppu_scanout_obj would decode
    a 2D-mapped sprite as 1D -- but it is in no live path (engine A composites
    through hal/message_compositor.cpp) and its one caller is
    tests/smoke_oam.cpp. Not touched here because this screen does not need it
    and because smoke_oam's expectations were authored against the 1D reader;
    whoever makes ppu_scanout_obj live owns both halves.
  * The OBJ tile-boundary field (DISPCNT bits 20-21) is applied by both readers
    in 2D mapping as well as 1D. On hardware it is a 1D-only field. Inert while
    the game leaves it at 0, which it does on every run measured so far.
  * Engine A OBJ extended palettes are unmodelled and unmeasured, for the
    reason given above: no ROM-derived base exists in this tree.
  * THE BAND WANTED A LINK-TIME GUARD, and it has one: section 11a.
  * hal/sub_screen.cpp's Stage bring-up sets DISPCNT_B bit 30 by hand, on the
    stated grounds that the bank allocator under GXS::EndLoadBGExtPltt is not
    hosted. It was hosted; the restore was landing on the wrong word, and the
    band fixes that. So the hand-set is probably redundant now. Proving it
    needs a minimap run with the line removed, and that bring-up belongs to the
    SUB lane.

11a. THE LINK-TIME BAND GUARD, AND WHAT THE RUNTIME CHECK CANNOT SEE
---------------------------------------------------------------------
Run link60 Stage 5, lane GBG, base 6f7bc744d, gate GREEN 5831/11250 (51.8%),
battery ALL GREEN, one skip.

port/tools/gxband_guard.py is the post-link pass the bullet above asked for.
It reads the expected offsets out of config/arm9/symbols.txt at run time and
the produced ones out of every walk_window.map the build writes, and it fails
the build when they disagree. It runs in build-port.cmd's post-link slot, the
one alternatename_guard --map already occupied, and its fixture battery runs
before configure with the other selftests.

WHY A NEW TOOL RATHER THAN AN EXTENSION. alternatename_guard owns that slot but
its whole domain is the fate of an /alternatename directive -- its baseline
file, its scoping rules and its selftest are that one question, and two
unrelated failure classes behind one exit code is how a selftest stops covering
its subject. dsstate_guard is the closer relative (it reads the map, it
polices hosted DS globals) but it asks a binary membership question with no
config input, wired POST_BUILD on walk_window alone, which is the one-target
coverage this change exists to remove. What is reused rather than re-invented
is the map-reading discipline already paid for here: faultmap's row shape and
Rva+Base convention, and closure.map_defined's refusals for a missing,
zero-byte, row-less or trailer-less map.

TWO BANDS, NOT ONE. The undersized-hosted-global family produced three catches
this run, and the two that are contiguity questions are declared together:

    gxbank   0x020a6088..0x020a60a4   13 config members, end IS a config row
    dtcm     0x023c0000..0x023c4000    1 config member, end is the ARM9 TCM
                                       extent and says so in prose

Only the GX band's numbers come entirely from a symbols.txt. The DTCM's 16 KB
is a hardware extent -- config/arm9/dtcm/delinks.txt describes 0x20 bytes of
initialized .data and nothing more -- so the declaration carries a provenance
string and the guard prints that instead of claiming the config said it. The
third catch of the run, the fader seat's, is a single hosted global sized by
its config next-symbol delta and is NOT a band; sweeping every hosted global
against that rule is a different and much larger tool, and plenty of hosted
globals are deliberately smaller than their gap.

WHAT IT ASSERTS, five arms, each with a fixture break only it catches:
presence of every member; every consecutive delta against the config delta;
no foreign symbol strictly inside the span; the span fitting inside its image
section; and -- because the map's section table lists one row per contribution,
so the grouped-section remedy publishes each member's length -- every member's
SIZE where the map states one. Twelve of the GX band's thirteen deltas are
measured between symbol pairs. The thirteenth is data_020a60a0's four-byte
tail, which no member follows: exclusion and containment assert it
structurally, and on this tree's layout the size arm measures it outright
(.dsstate$gxbank12's row says four bytes). 36 selftest arms, all green.

A SIXTH THING IT ASSERTS, ADDED ON REVIEW: the coverage floor. Each band
declares the set of maps that hosted it when it was measured, and a band that
quietly leaves one of them fails the build. Every other arm reads that
regression as green, because a map with no definition of the head is correctly
skipped, so without the floor a shrink from three hosting targets to two is a
smaller green rather than a failure. Proved both ways on real maps: the three
declared targets satisfy it today, and a sweep of a directory holding only
walk_window's two maps fails naming smoke_player.

REACH, MEASURED OFF THIS BUILD'S OWN MAPS. /MAP is on
CMAKE_EXE_LINKER_FLAGS, so all 21 executables write one.

    hosts the band (_data_020a6088 defined)      3   smoke_player,
                                                     walk_window,
                                                     walk_window_hires
    carries port_gxbank_layout_check             2   walk_window,
                                                     walk_window_hires
    carries its only caller,
      hal_sub_screen_init_hw                     2   the same two

smoke_player hosts the band and has NEITHER the check nor its caller in the
image: both are unreferenced there and /OPT:REF took them. So a third of the
targets that can carry this bug could never have reported it, and the two that
can only do so if that bring-up runs.

THE BREAK-PROOF, two mutations, both built and both restored.

M1, SUB2's own recipe: align(8) on data_020a609c. walk_window and
walk_window_hires came out with 609c at head +0x18 -- which on the DS is
data_020a60a0, so SetBankForSubOBJExtPltt's +0x18 store would have landed on
609c -- and the guard failed the build naming the pair and both deltas.
SMOKE_PLAYER CAME OUT INTACT: its band head landed at 0xb4 rather than 0xb8,
609c was already 8-aligned, and the same source defect produced a correct
layout there. One source change, a broken band in two targets and a sound one
in the third, decided by where the head landed. That is the argument for
checking every map rather than walk_window's, and it is not an argument
anything running inside one binary can make.

M2, the one the runtime check cannot see: data_020a60a0 hosted at 2 bytes
instead of 4. The two offsets port_gxbank_layout_check tests are 609c at +0x14
and 60a0 at +0x18, and BOTH STAY CORRECT -- only the tail member's length is
wrong. The link-time guard failed all THREE hosting targets, naming the cause
(the contribution row is 2 bytes, the ROM gives it 4) and, in smoke_player, the
casualty: data_0209f310 out of actor_classes_star.cpp packed into the two bytes
at +26, both its spellings. Then the same binary was run:

    walk_window.exe SM64DS_SCENE=4 SM64DS_SCENE_FRAMES=30 SM64DS_FAULTS_FATAL=1
    -> exit 0, "30 frames of scene 4 (SCENE_STAR_SELECT), clean",
       not one diagnostic line from the layout check

The runtime check reads GREEN over a band whose last member is half its size
and whose last two bytes belong to another symbol. That is the proof it cannot
give and the reason the link-time pass exists.

M3 AND THE POSITIVE CONTROL ARE THE REVIEW'S MEASUREMENTS, NOT THIS LANE'S, and
they went past the case this lane made.

M3 put align(8) on data_020a6098 instead, which sits at +16. walk_window's band
head is at 0xb8, so +16 lands on 0xc8 and is already 8-aligned: nothing moves
there. smoke_player's head is at 0xb4, so +16 lands on 0xc4 and the member
slides. The guard named smoke_player and only smoke_player, and smoke_player is
exactly the target of the three that carries neither port_gxbank_layout_check
nor its caller. So a post-link pass reading walk_window.map alone, which is
where the existing guards read, would have reported layout OK over a REAL
broken band in the one binary that could never speak up about it. The
every-map design is load-bearing rather than thorough, and this lane's M1 did
not prove that: M1 broke walk_window and left smoke_player sound, which is the
same point from the weaker side. The offsets are re-derivable from this tree's
own maps without rebuilding, and were: walk_window .dsstate$gxbank08 at 0xc8,
smoke_player at 0xc4.

THE POSITIVE CONTROL closed the question M2 could not close by itself. M2's
evidence is a silence, and a silence is only evidence if the thing that should
have spoken can speak on that path at all. The review ran the M1 binary the
same way and it PRINTS the [gx] diagnostic and aborts, so the branch is
reached, the run does exercise it, and M2's clean exit is the check being blind
rather than the check being unreached.

THE SIZING RULE THIS GUARD DOES NOT IMPLEMENT, measured by the review while
ruling on the scope boundary: of 374 hosted DS globals declared in port/hal, 26
are declared shorter than their config next-symbol gap, all of them small
scalars. That is the size of the general undersized-globals sweep as a future
build gate, and it is a number rather than a guess about whether the boundary
drawn here was the right one.

UNPROVEN, AND THE BOUNDARIES

  * The guard does not size a member that shares a contribution row. Only a
    member with a row of its own reaches the size arm; data_023c0000 is one
    that does not, so its 16 KB is proved by what follows it, not read off the
    map.
  * A symbol at exactly a member's address is excused as an alias. Every real
    build has such rows (a fired /alternatename, MSVC's decorated spelling),
    the linker does not overlap storage, and what that costs is telling an
    alias from a zero-length decoy.
  * Nothing here says the port_gxbank_layout_check call should go. It is
    cheaper than this guard at what it does cover and it is the only thing
    that speaks during a run; the case for retiring it was not made and was
    not attempted.
  * M1 and M2 were both built and both restored, and the tree was returned to
    HEAD's bytes; no measurement in this section was taken off a mutated
    tree that is still on disk.
  * The DTCM band was proved GREEN on three maps and its failure arm was
    proved on fixtures, not on a real short-hosted build. Re-sizing
    data_023c0000 for real would have been a second full rebuild for an arm
    the GX band already exercised end to end.
  * The ORIGINAL split -- the head hosted alone in another file with the
    twelve members somewhere else, which is the state SUB2 found -- is a
    selftest fixture here and was not reproduced in a real build. Doing that
    means reverting the band fix, and M1 and M2 already broke a real link two
    different ways.
  * M3 AND THE POSITIVE CONTROL ARE THE REVIEW'S RUNS. This lane re-derived
    M3's arithmetic off its own two maps and did not rebuild it, and did not
    re-run the positive control at all. Both are recorded as the review's
    measurements and should be read that way.
  * The coverage floor is a declared set, so it is only as good as the
    measurement that filled it. It catches a band leaving a target it used to
    be in; it cannot know that a NEW target should have hosted one. Widening
    it is a measurement anyone can take, narrowing it needs the reason in the
    commit, and neither is enforced by anything but review.

12. THE ENGINE-A LAYER MASK WAS NEVER PUBLISHED, AND A WHOLE TOP SCREEN WENT
     MISSING BEHIND IT
------------------------------------------------------------------------------
Run link60 Stage 5, lane VP1, base 8cfd47f09, gate GREEN 5833/11250 (51.8%),
battery ALL GREEN, one skip (scene 1 BLOCKED on the ov007 ae558 HOST ABI seam).

THE QUESTION THIS ANSWERS was put as a viewport question: scene 374's top-screen
frames carry their bright content as a small cluster in the bottom-right corner
with a dim backdrop everywhere else, and is that curling's intended composition
or a renderer defect. It is neither of the two things the question offered.

12a. THE CORNER CLUSTER IS THE PORT'S OWN BOTTOM SCREEN

Measured on the published frames, GEOMETRY ONLY, and that restriction is
not fastidiousness. The .dsstate section base MOVED this tranche, 0xbac000
when fdr2 captured those frames to 0xbad000 here, and under this file's own
equal-base rule a byte comparison across a moved base measures the layout and
not the picture. Bounding boxes, colour counts and a predicted-versus-measured
rectangle survive a base move; md5s do not. So the comparison below is the one
that still means something across the two builds:

    fdr2_scene374.bmp / the mid-fade frame   512x384
    183,868 px of (16,24,32); every other pixel inside one rectangle
    non-clear bbox   x 375..504 (130 wide), y 279..376 (98 tall)
    pure black       452 px, exactly that rectangle's perimeter
    interior         376..503 x 280..375 = 128x96, all written
    non-clear px outside that rectangle    ZERO

Both numbers are host constants.

  0x101820 is hal/scene_boot.cpp's own frame clear in port_scene_run's render
  bucket, written before gx_render.

  The rectangle is ntr::ppu_compose_sub's corner panel. hal_sub_screen_present
  computes x0 = w - SUB_W/div - kMargin and y0 = h - SUB_H/div - kMargin, with
  kMargin 8 and div 2 (SM64DS_SUB_SCALE's default), and ppu_compose_sub draws a
  one-pixel frame around it. At 512x384 that predicts the frame at 375..504 /
  279..376 and a 128x96 interior. Predicted and measured agree on every edge.

So the cluster is a picture-in-picture overlay the port draws on purpose, and
"63x47 DS pixels" is its 126x94 host-pixel interior read at the 2x tier. No
claim is made here about what any of those pixels look like.

12b. THE TOP SCREEN ITSELF: THE ROM ASKS FOR A FULL SCREEN AND GETS NOTHING

SM64DS_SCENE=374 SM64DS_SCENE_FRAMES=300 SM64DS_FAULTS_FATAL=1, exit 0:

    DISPCNT_A     00000000 x255, 00006000 x45
                  bits 8-12, the BG and OBJ enables, are ZERO on all 300
    BG2CNT_A      1222 x300  prio 2, chars 06020000, screen 06009000, 4bpp,
                             32x32 tiles -- a FULL-SCREEN background
    BG1CNT_A      1000 x300
    BLDCNT_A      0d40 x300   } dScMgCurling_c's own
    BLDALPHA_A    1002 x300   } SetBlendAlpha(0x4000050, 0, 0xd, 2, 0x10)
    WIN0H/1H/0V/1V/WININ  live (the dWipe_c IRQ-2 scanline fade)
    engine-A OAM  53 PLACED sprites every frame, all mode 0
    VIEWPORT      x 0, y 0, w 512, h 384 on all 300 samples, and
    VIEWPORT_SETS 0 on all 300 -- the game issues NO viewport command on
                  this path, so that rectangle is gx_reset's own full-screen
                  default and not something curling asked for
    POLYGONS      0 on all 300 samples
    the pair      layer mask d45c=14 vs DISPCNT bits 8-12=00 -- NOT PUBLISHED

WHAT THE ROM INTENDS, from its own matched sources. src/_ZN14dScMgCurling_c13InitResourcesEv.cpp
(dScMgCurling_c::InitResources) sets data_0209d45c |= 4, forces BG2CNT to
priority 2 and then to (old & 0x43) | 0x1220, decompresses the BG2 tiles to
G2::GetBG2CharPtr(), loads the BG palette (file 0x2f, 0x60, 0x1a0) and a
0x800-byte tilemap (file 0x30) -- 0x800 is 32*32*2, a full 32x32 screen -- and
loads engine A's OBJ tiles and palette (files 0xc7 and 0xc8). It never writes
DISPCNT, because on the DS nothing of that kind does.

src/func_02019144.c is what writes DISPCNT. Line 46:

    *(vu32 *)0x4000000 = (*(vu32 *)0x4000000 & ~0x1f00) | (data_0209d45c << 8);

It is the ROM's once-per-frame display sync and the port does not run it.
hal/sub_screen.cpp already reproduces its other beats -- the engine-B mask
publish on the next line, the scene graphics block's callback, OAM::Load -- and
the engine-A copy was the remainder. The port's only stand-in for it was
hal/message_pump.cpp's port_message_flush_engine_a_regs, which sits behind
"if (data_0209d660 == 0) return;". A minigame has no dialogue box.

hal/message_compositor.cpp then exits on "if (!any_bg && !obj_on) return;"
every frame and the top-screen framebuffer keeps nothing but the clear colour.

RULED OUT BY NAME, each on its own measurement, because the brief named four
candidate transforms and three of them are innocent:

    the viewport model   never exercised: zero VIEWPORT commands over 300
                         frames. It cannot be the defective transform on a
                         path that does not use it
    the 3D projection    zero polygons, and BG0/3D is not in the intended mask
                         (d45c bit 0 clear), so an absent 3D layer is correct
                         for a 2D minigame rather than a fault
    the 2x scanout       the panel's measured geometry matched its own
                         arithmetic on every edge, 12a
    a BG scroll          BG2's own offsets are 0,0 and its map is 32x32, which
                         is already the whole screen

12c. WHAT WAS ADDED TO THE INSTRUMENT, AND WHY THE 2D TABLE COULD NOT SEE IT

Sections 1-11 sample 2D registers only, and on the top screen that is half the
picture. An empty frame reads identically whether the 3D layer submitted
nothing or the 2D layers were never enabled, so the table alone cannot separate
a viewport fault from an enable fault -- which is exactly the ambiguity this
lane was sent to resolve.

  ntr/ppu_audit.cpp grows an ENGINE A 3D LAYER section: the latched VIEWPORT
  rectangle and the POLYGON count, sampled at the same instant as the 2D
  registers so the two are comparable. The viewport is read through a new
  ntr::gx_debug_viewport, beside the existing gx_debug_matrices, and is in HOST
  framebuffer pixels because that is what the command handler already scaled it
  to. Four slots rather than one packed sample: a packed rectangle has to drop
  bits, and a viewport row that cannot represent every rectangle the port can
  latch is the instrument that lies on the one frame it matters.

  hal/message_compositor.cpp's own debug dump no longer needs a dialogue box to
  fire. It was gated on data_0209d660, which made it blind to the case it is
  most useful for, and it now prints the mask-and-register PAIR rather than
  just the register.

12d. THE FIX, AND WHAT IT IS MEASURED NOT TO DISTURB

func_02019144 line 46, at the head of port_message_composite_engine_a, before
it reads DISPCNT. Placed there for the same reason engine B's publish sits
inside hal_sub_screen_present above its own ppu_scanout_sub call: the
rasteriser reads the mask it just published. SM64DS_ENGINE_A_NO_PUBLISH=1
restores the old behaviour on the same binary, so a before/after is one build
and one .dsstate base.

THE SHAPE, stated properly because "one line" is how this was first described
and it is not what shipped: one substantive statement, the register
read-modify-write, inside a guarded block that also carries a static env latch
and the extern declaration the copy needs. Small, but a block with control flow
in it rather than a line, and the escape hatch is part of the change rather
than a debug afterthought.

SAME-BINARY A/B, scene 374, 300 frames, both exit 0, .dsstate base 0xbad000:

    A (publish off)   non-clear 12,740, ALL inside the panel box,
                      bbox 375..504 / 279..376 -- reproduces the published
                      frames' geometry exactly
    B (publish on)    non-clear 164,143, bbox 0..511 / 0..383; the compositor
                      covers 40,320 of 49,152 DS px on the first frame
    151,403 px differ, ZERO of them inside the panel box

THE ENGINE-A PATH IS SHARED WITH THE WHOLE GAME, so the level side was measured
rather than reasoned about. Same binary, SM64DS_WINDOW_SELFTEST=300:

    level  1   md5 a524c2a464aff1a80cd5ca899af665f9   IDENTICAL both ways
    level  5   md5 001a22b1f1f4a79788b57d442baaf027   IDENTICAL both ways
    level 24   md5 ea8c6aa57a35e05c9ce79e65de49c18e   IDENTICAL both ways
    level 35   md5 732c86336c781210bf49c96cddb7d9a5   IDENTICAL both ways

and the reason, from the same runs: on a level the mask reads d45c=00 against
DISPCNT bits 8-12 = 00, so the publish writes zero over zero.

WHAT "BATTERY ALL GREEN" DOES AND DOES NOT COVER HERE. port/tools/battery.py
runs each level's selftest and reads its RETURN CODE; it does not compare
walk_window_selftest.bmp against anything. The docstring at the top of that
file is guidance for a human reading a BMP diff, not a gate step. So the green
over 46 levels says every level still boots and runs 300 frames clean, and the
four md5 rows above are the only evidence that the frames are unchanged.

UNPROVEN, AND THE BOUNDARIES

  * FOUR LEVELS, NOT FORTY-SIX. The BMP-identity measurement covers levels 1,
    5, 24 and 35. The other 42 are covered by exit code only. A level that
    leaves data_0209d45c nonzero would newly composite engine-A 2D over its 3D
    frame, and that is the change this fix is FOR, so on such a level a BMP
    delta would be the fix working rather than a regression -- but nobody has
    found one and the distinction has not had to be made.
  * NO CLAIM ABOUT WHAT THE CURLING FRAME LOOKS LIKE. B covers 82% of the top
    screen with the ROM's own BG2 and its 53 sprites, decoded through the
    port's existing engine-A raster. That the right REGISTERS are now read says
    nothing about whether the tiles, the palette or the sprite placement are
    right, and this lane did not look. Tango judges the frame.
  * THE ONE-FRAME QUESTION IS NOT SETTLED BY THE PROBE. The mask-vs-register
    pair is printed once, on the first composited frame. The 300-frame BMPs are
    what carry the rest of the run, not that line.
  * port_message_flush_engine_a_regs IS NOW REDUNDANT IN ITS DISPCNT HALF and
    was deliberately left alone: it is another lane's file, the write is
    idempotent, and its BG3-offset half is still the only thing flushing that
    register. Recorded rather than cleaned up.
  * NO PUBLISHER COUNT IS QUOTED. A sweep for the literal "data_0209d45c << 8"
    answers nine files and a statement-level sweep answers a different eight.
    The number is an artifact of the pattern. The claim that survives both is
    that func_02019144 is the per-frame one, and on this path the run's own
    slot census shows ov004's publishing slots 29 and 30 were never entered.
  * THE DS VIEWPORT'S Y ORIGIN IS UNTESTED. GBATEK measures the viewport's y
    from the BOTTOM of the screen; ntr/gx.cpp's command 0x60 handler treats y1
    as a top offset. The two agree exactly for a full-screen viewport, which is
    the only one this run ever latched, so nothing here distinguishes them.
    Found while ruling the viewport out and left as found.

12e. A CORRECTION TO 12b AND 12d, CAUGHT BY SHARPENING MY OWN INSTRUMENT

The viewport row this lane added originally reported the rectangle alone, and
12b's first form read "VIEWPORT x 0, y 0, w 512, h 384 on all 300 samples" as
though the game had programmed it. It had not. gx_reset runs once a frame and
"g = State{}" restores the viewport to a FULL-SCREEN default, so a sample that
reads full-screen is consistent with two different worlds: the game issued a
full-screen viewport, or the game issued none and the default stood. The row
could not tell them apart, and the sentence it produced picked the flattering
one.

VIEWPORT_SETS is the fix -- a count of VIEWPORT commands executed since the
last reset, incremented in the command 0x60 handler and reset with the rest of
the state. On scene 374 it reads 0 on all 300 samples. The game issues no
viewport command on this path at all.

The ruling is unchanged and is in fact stronger: a transform that is never
exercised cannot be the one that broke the frame. What changed is that the
evidence now says "not used" instead of "used and correct", which are different
findings that happened to point the same way.

WHY THIS IS RECORDED RATHER THAN QUIETLY EDITED. The wrong form is in commit
05e5fa0ea's message, where it cannot be edited, and an instrument that returns a
value nobody can attribute is the exact failure this file's section 1 warns
about under "what the method cannot see". The next reader of the viewport row
needs to know the row grew a companion and why, so the header the dump prints
now says READ VIEWPORT_SETS FIRST.

The ROM's own full-screen viewport (Initialise3dGraphics writes 0xbfff0000 to
0x4000580, which decodes to x1 0, y1 0, x2 255, y2 191) is still the ROM's
intent for the 3D layer generally. It is just not evidence taken from this run,
and 12b no longer presents it as such.

12f. THE 12e CLASS RECURRED INSIDE 12e's OWN COMMIT, in the probe this time

Review finding (a), and it is worth its own entry because it is the SECOND
instrument in this lane to report a value it could not attribute, after 12e
fixed the first one in the same set of commits.

The mask-versus-register probe chose its verdict word on "mask == live". Zero
equals zero, so on any run where the game had not set a layer enable the probe
printed "published" -- including on every level run of the NO_PUBLISH arm,
where the copy it was reporting is switched OFF. It asserted a publish that had
demonstrably not happened, in the exact arm built to prove it had not.

Fixed by taking the claim off the comparison and putting it on the mechanism.
The publish path reports itself through the same static latch the write reads,
and the comparison is only allowed to speak where it has content:

    publish disabled        say so, and say the register's contents came from
                            somewhere else
    mask 0 and live 0       nothing to publish; the equality proves nothing
    mask == live, nonzero   published
    mask != live            NOT PUBLISHED

NO CONCLUSION IN 12d MOVES. The level result rests on BMP identity across the
two arms, which is a measurement of frames and never consulted this line; the
scene-374 result is the mask != live arm, which was always the honest branch.
What was at risk was the next reader, who would have taken "published" off a
level run as evidence about the publish.

THE GENERAL SHAPE, since this is now twice in one lane. Both defects are an
instrument whose output has fewer states than the world it reports on: a
viewport rectangle that could not distinguish programmed from defaulted, and an
equality that could not distinguish agreed from both-empty. Neither was wrong
about a number. Both were wrong about what the number licensed. The check that
catches this class is to ask, of every field an instrument prints, which
different worlds produce this same output.

12g. A COUNT IN ANOTHER LANE'S FILE, FLAGGED AND NOT FIXED

hal/sub_screen.cpp, above the engine-B mask publish, reads "Publish the layer
mask, the way nine ROM functions do with this exact line." That is the same
nine this file's section 12 unproven items deliberately refuse: a sweep for the
literal spelling answers nine and a statement-level sweep answers a different
eight, so the number is an artifact of the pattern rather than a fact about the
image. The sentence around it is sound and the count is decoration on it.

Left alone on purpose. sub_screen.cpp belongs to the SUB lane, the count is not
load-bearing for anything either file does, and editing another lane's prose to
match this lane's epistemics is how two lanes end up fighting over one comment.
Recorded here so that whoever next owns that file has the finding rather than
having to re-derive it.


13. THE SCRAMBLED TOP SCREEN IS 95% BACKGROUND, AND THE BACKGROUND IS NOT A
    DECODE FAULT

Run link60 Stage 5, lane EAD. It branched from 363991d0d, which was lane VP1's
tip on s5-viewport at the time and is NOT that branch's final commit: VP1
amended afterwards with 810668929 and cons merged the amended branch, so on
cons this section's base names a commit one short of the merged VP1. Section 12
put the engine-A layers on the screen for the first time; Tango's verdict on
the frame that produced was that the top screen is fullscreen now and "the
display data is scrambled with just random large chunks of pixels everywhere".
This section is what that sentence turns out to name.

THE LANE WAS BRIEFED ON FOUR SUSPECTS and the first thing measured was which
SURFACE the chunks live on, because a whole-frame BMP cannot tell a background
fault from a sprite fault: both layers land in the same pixels.

13a. THE INSTRUMENT, THREE ADDITIONS

  hal/message_compositor.cpp  every composited pixel now records WHICH layer
      wrote it last, and the last composited frame's per-layer pixel count and
      bounding box print at exit. The last frame is the one the BMP holds, so
      the numbers and the capture are the same frame.
      SM64DS_ENGINE_A_LAYERS=<hex> composites a subset (bits 0-3 BG0..BG3,
      bit 4 OBJ; unset is 0x1f). One layer's own capture, same binary, same
      .dsstate base as the full frame.
  ntr/ppu_audit.cpp           the OAM table grew a FIRST-SAMPLE half: one
      frame, every enabled entry, nothing dropped. The distinct-triples table
      drops rows once full, and scene 374's moving sprites produced 37,135
      distinct triples over 300 frames, so twenty rows were printed and 37,115
      dropped, which cannot answer "is any sprite on this screen 256-colour".
      The decode-input table grew the BACKGROUND stores for both engines, and
      SM64DS_PPU_AUDIT_DUMP=<prefix> writes every span's BYTES once. A count
      says a store is populated; only the bytes say whether it holds what the
      ROM's own file holds.
  hal/level_boot.cpp          SM64DS_LOADFILE_TRACE=1 prints every LoadFile as
      handle, returned pointer, slot, and whether it was a cache hit. Eight
      lines added and one replaced, by the tree's own diffstat, and they are
      what named 13c's root cause. THIS IS A CHANGE TO THAT FILE and 13c says
      so where the refusal is stated, because "the lifetime fix is refused" and
      "the file was not touched" are different sentences.

13b. THE MEASUREMENT. SM64DS_SCENE=374, 300 frames, FAULTS_FATAL, exit 0

EVERY NUMBER IN THIS TABLE IS THE PRE-FIX STATE, taken before 13d's mapping fix
so that the fix has something to be measured against. The merged tree reads
BG2 38,410 and OBJ 2,369 on the same frame; 13d has the pair and the diff.

    DISPCNT_A       00001400 x255, 00007400 x45.  BIT 4 CLEAR on all 300
                    (2D OBJ tile mapping), bits 20-21 ZERO (boundary 32),
                    bit 30 and bit 31 ZERO (no extended palettes), bit 12 set
                    (OBJ on), bit 10 set (BG2 on)
    BG2CNT_A        1222 x300: priority 2, chars 06020000, screen 06009000,
                    4bpp, 32x32, one full screen
    engine-A OAM    52 placed entries IN THE FIRST SAMPLE, every one colour
                    mode 16, all mode 0, none affine. The sub probe's own line
                    at the end of the same run reads 53 placed and 75 parked
                    against this table's 52 and 76, and the two do not
                    disagree: they are frame 0 and frame 299, and one sprite
                    sits at y=192 in the first and not in the last:
                      2 x 32x16  tiles 727, 731   palette 14
                      2 x 8x16   tiles 735, 640   palette 14, 13
                      48 x 8x8   tiles 72..76     palette 2
    per-layer       BG2 38,706 px over x 0..255 y 0..191
    attribution     OBJ  2,053 px over x 0..255 y 0..185
    (last frame)    BG0, BG1, BG3  nothing
    decode inputs   engine A: BG VRAM 29,781 nonzero, BG palette 396,
                    OBJ VRAM 5,387, OBJ palette 335

So the background owns 95% of what the viewer sees and the sprites own 5%.
"Large chunks everywhere" is a statement about the background.

13c. THE BACKGROUND: THE READER IS RIGHT AND THE BYTES ARE WRONG

Curling's BG2 is the easiest background in the game to check, because its
tilemap is the IDENTITY: file 0x30 is 1024 entries, every tile id used exactly
once, cell n holding tile n with its own palette bank. The tilemap and the
palette are loaded RAW, no compression and no relocation, so the bytes in VRAM
can be compared against the cartridge's own files byte for byte.

    engine A BG palette  0x05000060 +0x1a0   == file 0x2f            EXACT
    engine A char data   0x06020000          768 tiles populated, and 768 is
                                             exactly the visible screen
    engine A tilemap     0x06009000 +0x800   != file 0x30
                                             the 1248 bytes of file 0xc7,
                                             COMPRESSED AND UNDECODED, followed
                                             by 800 bytes of heap tail
    engine B tilemap     0x06204000 +0x800   == file 0x34            EXACT
    engine B BG palette  0x05000460 +0x1a0   == file 0x33            EXACT

File 0x30's bytes are nowhere in engine A's whole 512K BG VRAM window, and
every branch of G2::GetBG2ScrPtr except the mode-7 one lands inside that
window, so this is not a destination the reader and the writer disagree about.

WHY: THE PORT'S LoadFile CACHE OUTLIVES THE ROM'S OWN FREE. The ROM's LoadFile
(0x0201816c, then func_0201818c) allocates a FRESH buffer per call and the
caller owns it; dScMgCurling_c::InitResources frees each one with Deallocate
the moment it has copied it. hal/level_boot.cpp's host LoadFile keeps a
per-handle table and returns the cached pointer, which the ROM's free has
already invalidated. The trace, one run, in order:

    [loadfile] 0x2f -> 30031B60 slot 32 FRESH     palette,  copied, freed
    [loadfile] 0x30 -> 30031B60 slot 33 FRESH     tilemap,  copied, freed
    [loadfile] 0xc7 -> 30031B60 slot 34 FRESH     OBJ tiles land in that block
    [loadfile] 0xc8 -> 30032060 slot 35 FRESH
    [loadfile] 0x33 -> 30032180 slot 36 FRESH
    [loadfile] 0x34 -> 30032180 slot 37 FRESH
    [loadfile] 0x30 -> 30031B60 slot 33 CACHED    <-- the defect

The last line is func_ov006_020e3250, which InitResources calls at its end. It
uploads 0x800 bytes of one of three rink tilemaps (0x30, 0x2d, 0x31) to the BG2
screen base, and WHICH ONE IS NOT A COIN TOSS ON THIS PATH. Review derived it
and the code agrees: InitResources calls func_ov006_020e3378 immediately
before, whose whole body is `*(int *)(self + 0x4e9c) = 255`, and 255 is exactly
the value func_ov006_020e3250's first branch tests for. That branch sets the
field to 0 and returns without touching the generator, and 0 selects handle
0x30. The RNG re-roll below it belongs to the OTHER caller,
_ZN14dScMgCurling_c13OnYoshiTryEatEi, the in-play reset that runs func_ov006_020e3388 and
func_ov006_020e3250 without the 255 store. So the first load of the scene picks
rink 0 on every boot. It asks for handle 0x30 a SECOND time, the host cache
hands back the block the ROM freed four loads earlier, and that block now holds
file 0xc7. So the port uploads an LZ-compressed sprite
sheet into a screen-entry table: 1024 cells of arbitrary tile id and arbitrary
palette bank, full screen. That is the chunk pattern, and it is the whole of
the 95%.

Engine B escapes for one reason only: nothing reuses 30032180 after its
tilemap copy.

NOT FIXED HERE, AND THE REASON IS NOT SHYNESS. This is not a decode defect, the
compositor renders exactly the bytes VRAM holds, and the fix is not in the ntr
layer: it is the lifetime contract between an invented host cache and the ROM's
own allocator, in hal/level_boot.cpp, on the path every level's KCL and object
files take.

WHAT THIS LANE DID AND DID NOT DO TO THAT FILE, said plainly because the two are
easy to run together: it DID touch hal/level_boot.cpp, eight lines added and one
replaced, and 13a lists what they are. They are the env-gated trace above and
nothing else, inert with SM64DS_LOADFILE_TRACE unset. What is refused is the
LIFETIME FIX, not the file.

WHY THE CACHE CANNOT SIMPLY DIE, corrected from review's census after this
lane's first answer was wrong on the facts. The wrong answer said dropping the
cache would make the per-level release free buffers the ROM already freed;
port_level_reset_host frees nothing, and its own comment says so, because it
DROPS the table rather than releasing it and releasing would be the double free.
The real dependents are two, and both index the table BY HANDLE:
port_level_capture_kcl resolves the outgoing level's KCL slot out of it and
copies the SharedFilePtr aside for a late free after ResetMeshColliders, and
port_loadfile_pin_persistent marks the message bank's slot so the per-level drop
leaves it loaded. A cache that stops answering by handle takes both of those
with it. Invalidating on free instead needs a hook on Memory::Deallocate that
nothing has today. Either way it is a lane with its own battery. Recorded with a
one-command reproducer instead:

    SM64DS_SCENE=374 SM64DS_SCENE_FRAMES=2 SM64DS_LOADFILE_TRACE=1

RESOLVED SINCE (run linkfull, lanes S4FILE and FILEB). The host LoadFile, its
per-handle table, SM64DS_LOADFILE_TRACE and port_loadfile_pin_persistent are
retired: the game targets link the ROM's own LoadFile, which hands out a fresh
block per call exactly as described above, and the ROM's own
SharedFilePtr::Load. The KCL capture now reads the level collider's own
kclFile, and nothing pins the message bank (nothing on the cartridge frees it).
The reproducer above names a variable that no longer exists; the history is
kept as it was written.

13d. THE SPRITES: THE 1D/2D GAP IS REAL, LIVE, AND SMALL HERE

DISPCNT_A bit 4 is CLEAR, which is 2D tile mapping, and both engine-A readers
hard-coded 1D. The bit is clear because Scene::ResetHardwareRegisters ANDs
0xffcfffef into both engines' DISPCNT, bit 4 and the boundary field in one
mask, and nothing on a scene path sets it again: GX::SetGraphicsMode's own mask
is 0xfff0fff0, which preserves bit 4, and its third argument only ever reaches
bit 3 (every call site passes 0 or 1). ov006 does the same clear for engine B
by hand at func_ov006_020e73c4.

WHICH FILE. Section 11's DISPCNT note recorded this gap against ntr/ppu.cpp,
and that was accurate about ntr/ppu.cpp and named the wrong file for the
consequence: ppu_scanout_obj's only caller in the tree is tests/smoke_oam.cpp.
Engine A's LIVE path is hal/message_compositor.cpp, which carried the identical
hard-coded arithmetic. Both are fixed, in ntr/ppu_sub.cpp's shape:

    slot = map1d ? (trow * (w/8) + tcol) * (c256 ? 2 : 1)
                 : (trow * 32 + (c256 ? tcol*2 : tcol))
    cell = objvram + tile * boundary + slot * 32

The 1D branch is arithmetically identical to what was there (the old c256 form
was tno * 64, which is slot = tno * 2 in 32-byte units), so a 1D run is
byte-unchanged by construction. tests/smoke_oam.cpp writes DISPCNT = 1 << 4 and
lays its tiles out consecutively; its expectations are 1D expectations, and
honouring the bit is what keeps them true. Flipping the default would have
broken them.

MEASURED EFFECT, same scene, equal .dsstate base 0xbae000, OBJ layer alone:

    before   OBJ owns 2,053 px, x 0..255 y 0..185
    after    OBJ owns 2,369 px, x 7..255 y 0..185
    2,276 host pixels differ between the two OBJ-only captures

Only four of the 52 sprites placed in the first sample can move: the 8x8
sprites are one cell and their slot is 0 under either mapping, so the two
32x16 and the two 8x16 sprites are the whole footprint. This fix does not
make the top screen right, and nothing in this section claims it does. It
closes a gap that is wrong on every scene engine A composites for.

13e. THE OTHER TWO SUSPECTS, CLOSED ON MEASUREMENTS

  THE TILE-BOUNDARY FIELD IN 2D. Still applied in both mappings by all three
  readers, still hardware's 1D-only field, and scene 374 measures bits 20-21 at
  ZERO on all 300 samples, cleared by the same 0xffcfffef. Boundary 32 is what
  2D wants, so the gap stays inert and stays UNFIXED: this run contains no
  measurement that would tell a correct fix from a wrong one, and the audit row
  says so rather than a commit saying it silently.

  ENGINE-A OBJ EXTENDED PALETTES. Not applicable on this screen, and now that
  is a count rather than an impression: the first-sample table has all 52
  placed entries and every one reads colour mode 16. An extended palette
  applies to 256-colour sprites only. The ROM agrees in its own source, since
  InitResources loads file 0xc8 through GX::LoadOBJPltt as 0x100 bytes, eight
  banks of sixteen, the 4bpp shape, and DISPCNT_A bit 31 is clear on all 300
  samples. There is still no GX::LoadOBJExtPltt TU in this tree to derive a
  base from, so there is still nothing to model and nothing was invented.

13f. WHAT THE VERIFICATION COVERS

The engine-A OBJ path is shared with the whole game, so the level side was
measured. Same binary, SM64DS_WINDOW_SELFTEST=300, SM64DS_MSG_COMPOSITE_DEBUG:

    level  1   a524c2a464aff1a80cd5ca899af665f9   compositor never ran
    level  5   001a22b1f1f4a79788b57d442baaf027   compositor never ran
    level 24   ea8c6aa57a35e05c9ce79e65de49c18e   compositor never ran
    level 35   732c86336c781210bf49c96cddb7d9a5   94 composited frames, the
                                                  six the printer sampled all
                                                  BG3 with obj enable 0, and
                                                  the last frame's attribution
                                                  row OBJ 0 px

All four md5s are the ones section 12d recorded, which is worth one sentence of
care: those were taken at .dsstate base 0xbad000 and these at 0xbae000, so the
equality says these particular level frames did not move with the base, and it
is NOT a general claim that a level selftest BMP is base-independent (the
header of port/tools/battery.py says the opposite for the ones that are).

On levels 1, 5 and 24 the layer mask reads d45c=00 against DISPCNT bits 8-12 =
00, so port_message_composite_engine_a takes its early return and no sprite is
rastered at all. That one covers every frame, because the mask is sampled on
the first and the early return is what the run then does.

LEVEL 35 IS WEAKER EVIDENCE THAN THIS SECTION FIRST CLAIMED, and the difference
is the instrument rather than the result. It said "obj enable 0 on all 94
frames"; the compositor's dump only prints on a NEW MAXIMUM of composited
pixels or at the settled box state, so what the run actually shows is SIX
samples, every one of them BG3 with obj enable 0, plus the last composited
frame's attribution row with the OBJ layer at 0 px. The other 88 frames are
covered by neither, and a maxima printer cannot be read as a per-frame census.
Neither level is a proof about the other 42; those are covered by the battery's
exit codes, as section 12d already says.

13g. UNPROVEN

  * NO CLAIM ABOUT ANY PIXEL. Tango judges the frame. This section says which
    layer owns which pixels and which bytes those pixels were decoded from; it
    does not say what the result looks like, and 13c in particular predicts a
    wrong image without having looked at one.
  * THE 13c ROOT CAUSE IS NAMED, NOT REPAIRED, and it is the dominant half of
    the verdict this lane was sent to work from. Its blast radius is every
    LoadFile caller in the port.
  * THE 13c REPRODUCER IS STRONGER THAN THIS LIST FIRST SAID. The bullet here
    read "the trace is one run" and hedged that a run could pick handle 0x2d or
    0x31 instead and hide the defect. Review derived otherwise and the code
    agrees: func_ov006_020e3378 stores 255 into +0x4e9c immediately before
    InitResources calls func_ov006_020e3250, and 255 is the value that
    function's first branch tests, which zeroes the field and returns without
    reaching the generator. Zero selects handle 0x30. The RNG re-roll is the
    other caller's, _ZN14dScMgCurling_c13OnYoshiTryEatEi. So the boot path is DETERMINISTIC and
    every boot of this scene reproduces it. The hedge is kept visible rather
    than deleted because it is the shape of a wrong reading a successor could
    make again: a generator in the body is not a generator on the path.
  * FOUR LEVELS HAVE BMP IDENTITY, not forty-six, exactly as in 12d.
  * THE COLOUR-MODE COUNT IS THE FIRST SAMPLE'S. All 52 entries placed on
    frame 0 are 16-colour; the whole-run evidence that none of the others is
    256-colour is the ROM's own 0x100-byte standard palette load and bit 31
    clear on all 300 samples, not a per-frame census.
  * THE 2D SLOT ARITHMETIC IS UNEXERCISED FOR 256-COLOUR SPRITES on this
    screen. Every placed sprite is 4bpp, so the c256 half of the new 2D branch
    is carried over from ntr/ppu_sub.cpp's already-shipped form and is not
    measured by this run.
  * WHAT A CORRECT 2D READ LOOKS LIKE IS NOT PROVEN EITHER. The +316 px is
    evidence that the four multi-row sprites now read different cells; that
    those cells are the right ones rests on the mapping rule and on engine B's
    reader agreeing, not on a frame anybody has judged.
