Face-colour near-plane clipping
17 October 2026 — VERIFIED within the bounded scope below.
Overall completion: 10% estimated weighted project milestones, not code coverage.
Goal active. Continue Sol High with alternate helpers 8c613dfa / 8c61572c.

Recovered source
  8c6178c6..8c617c0e: all 410 original instruction rows
  source/sa_main_dispatch_face_near_clip.c
  source/sa_main_dispatch_face_near_clip_connected.c
The complete byte-checked body is annotated static C, retaining original
instruction order, register effects and delay slots without runtime decoding.
The name is descriptive and inferred. Older source/proofs remain preserved.
This helper contains no game-function calls.

Behavior
R4/R5/R6 supply three vertex-cache pointers; R7 supplies the face RGBA block.
The helper reconstructs camera coordinates for already projected vertices,
uses raw camera positions for near-flagged inputs, performs orientation rejection
and clips crossing edges at the near plane. It projects the resulting triangle
or quadrilateral back into output coordinates and reciprocal depth.

Colour is supplied by the caller, not recalculated or interpolated per vertex.
The first two output vertices retain their queue's earlier colour words. For
a triangle, the third vertex receives the supplied four words. For four-vertex
strip output, the third and fourth vertices receive those words, with geometry
ordered 0,1,3,2. The final vertex has the original end-of-strip control value.
Input cache records and the supplied colour block remain unchanged in ordinary
verified paths. Counter, cursor and orientation-global effects are preserved.

Build and tests actually passed
- Strict Clang build: -O2 -Wall -Wextra -Werror; separate connected DLL.
- 644 comparisons: 376 direct helper cases, 162 clipped parents, two plain-parent
  alternate cases, four draws, four particle callbacks and 96 connected meshes.
- All 410 rows and 14 conditional outcomes covered. All four original parent
  near-helper sites execute natively: 8c61b702, 8c61b9ca, 8c61b9e8 and 8c61bd72.
- Full 16 MiB RAM, GPRs/SR/PR, both FPU banks/FPSCR, FPUL/MACL, ordered boundaries
  and queue contents/events match original execution, including partial state.
- 522 cases complete successfully, 76 match numeric/precision guards (-1), 34
  match unsupported pointer/return boundaries (-3) and 12 match enabled floating-
  point traps (status 1). These are host boundaries, not hardware fault delivery.
- 1,350 ordered boundary comparisons, 28,116 numerical operations, 1,610 queue
  transfers and 13,868 ordered queue events. The helper executes 590 times in
  the suite. Four external boundaries are alternate-helper fixtures; none is
  reached inside this helper or the 96 connected meshes.
- 368 independent cases include all 96 connected meshes. Checks cover camera-
  space clipping/projection, orientation, polygon/strip order, exact supplied
  colour copies, retained early colours, unchanged direct input records/colour
  block, counters and cursors. Raw colour words include zeros, signed zero,
  negative floats and NaN payloads to verify copying rather than sanitization.
- Connected cases use real material setup, normal projection/classification,
  primary/secondary acquisition, native summed-normal lighting/normalization,
  the face-lit parent, this clipper and finalization. All six crossing masks,
  both windings/banks and queue halves are covered. Expected face RGB uses the
  existing independent finite-vector formula with a 2e-5 approximation tolerance;
  direct supplied colour copies are bit-exact. Existing shared-vector/backend
  numerical limitations remain; this is not arbitrary hardware precision proof.
- 120 lifetime regressions / 984 stages passed: 23,264 boundaries, 104,016
  numerical operations, 10,600 queue transfers and 117,808 queue events. All 880
  original-model mesh iterations use existing native paths without external game
  services. These models do not reach the new face-colour helper; focused cases
  provide its coverage. Independent pool, heap and particle checks pass.

Preconditions, guards and remaining limits
The original parent's near-strip path uses pre-existing R12/R14/R13 vertex
pointers before ordinary-path initialization. Forty-eight parent fixtures seed
valid pointers explicitly; this proves controlled execution of that body/call
site, not the complete game caller contract. Inherited arbitrary-register cases
retain the parent unsupported-pointer guard and changed-return-address guards.
Read MAIN_DISPATCH_FACE_LIT_PRIMITIVES.txt for that evidence and correction.

At 8c617a0e, the new helper stops with host -3 before a flags load through a saved
pointer outside modeled RAM. Wide FMOV can overwrite the original stack pointer
table. Original partial state is compared up to the boundary; physical exception
dispatch is not implemented. Existing parent guards remain unchanged.
All-near standalone inputs have original comparisons only, outside the normal
caller contract. Bounded constructed RAM streams and coherent-RAM/MMU-off queues
are the scope. Physical cache timing, MMU-on/fault dispatch, GPU FIFO/pixels and
the complete frame driver remain unverified. Lifetime order is host-selected.
The entire historical project workflow was not rerun for this checkpoint.
Final integrity checks passed: regenerated source/translation are byte-identical;
the three new reports and reused lower inventory match pinned inputs; re-registering
adds no duplicates; four Python and two PowerShell scripts parse. Dispatcher mapping
verifies 658 original pointer loads, 80 spans and 83 selectors. Recovery/completion
audits find zero evidence errors and zero reports needing source-hash refresh.
The app goal was checked and remains active.

Evidence and next work
  recover_main_dispatch_face_near_clip.py
  build_main_dispatch_face_near_clip.ps1
  verify_main_dispatch_face_near_clip.py
  verify_main_dispatch_face_near_clip_lifecycle.py
  register_main_dispatch_face_near_clip.py
  analysis/main_dispatch_face_near_clip_translation.json
  analysis/main_dispatch_face_near_clip_verification.json
  analysis/main_dispatch_face_near_clip_lifecycle_verification.json
Registry: 1,073 entries / 1,070 unique module-address pairs. There are 1,021 matches
among 10,875 currently indexed candidates; 211 non-texture binaries still lack
function indexes. These incomplete counts do not measure whole-game coverage.
Next: 8c613dfa (300 rows) / 8c61572c (530 rows), 830 total, already exported and
byte-checked in analysis/main_dispatch_face_lit_lower_inventory.json. Their exports
are analysis input, not recovered code. Eight other primitive emitters remain
unfinished. Pixels, texture sampling, full gameplay and all playable ports remain
unverified. SUPIR/settings, high frame rates/8K/stereo and N64/PS1 work remain
planned. Texture Off must disable sampling and use vertex colours/material fallback.

How to check without programming
Open this guide and SOURCE_HANDOFF.txt. The focused report has cases_passed=644,
rows_covered=410 and independent_mesh_cases=96. The lifetime report has
lifecycles_passed=120. There is no new playable build to launch yet.
Recommended next model: Sol High, because the alternate strip helpers still
require instruction-level reverse engineering. No model switch or pause advised.
