urt-rs / docs /research /QVM_HIT_PUBLICATION.md
nmarshall's picture
qvm: hit sorting and publication
cb6a89d
|
Raw History Blame Contribute Delete
1.22 kB

Hit-record ordering and trace publication

RE-655. Reproduce with python3 scripts/analyze_qvm_hit_publication.py; check with python3 scripts/test_qvm_hit_publication.py. The machine report retains source identity and bounded fixtures.

Actual25836–26035 implements insertion sorting of20-byte records at context+68 using the float at+16. Equal keys preserve input order until a second rule applies: if the first type is5 or6, the first later type3 swaps with it. The final list can therefore cease to be sorted. Actual146582–146620 copies context+12 to trace+12 and context+36 to trace+24, writes target ID to trace+52 and returns1 when count+64 is nonzero; zero count returns0 without trace writes. All records here are explicit supplied geometry fixtures.25341 and model intersection remain unexecuted, so a positive return proves publication behavior only. All report words normalize signed evaluator representations to their original32-bit patterns.

No original executable/full QVM/native collision/physics/rendering executes. Native responses and legal input domains are supplied or unverified where stated; full runtime/macOS/Linux Rust/Bevy/Solari gameplay remains open.