urt-rs / docs /research /QVM_MAIN_POSTURE.md
nmarshall's picture
qvm: combined ground state
676aef6
|
Raw History Blame Contribute Delete
6.4 kB

QVM main posture, animation ordering and derived bounds

This batch completes bounded RE-505–507 / F-238–240, evaluating47422 at its reached main boundary between initial content sampling and ground classification. It extends main environment composition by deriving bounds, viewheight, animation, resource and posture flag/timer outputs. Native stand/trace/content/root responses remain supplied.

Reproduce with python3 scripts/analyze_qvm_main_posture.py; validate with python3 scripts/test_qvm_main_posture.py. The machine report retains verified source identity, posture input/output state, native stand requests, animation child snapshots, source call records and downstream environment/movement reports. No original executable, full QVM, native collision, physics or rendering executes.

MAINPOSTURE-001 — Actual main helper and transitions (RE-505)

Twenty-eight fixtures combine seven input variants, initial content level0/2 and flat/steep ground. Variants exercise entry with resource4000 or2999, clear/blocked stand attempts, a leg-timer-held posture, unchanged animation25 and special-mode early exit. Initial origin/velocity/flags/resource/animation/up/special state remain supplied; these fixtures do not establish reachable gameplay combinations.

Main first samples contents with initial height38, then calls47422 before ground and timer aging. The actual posture body consumes the resulting level and current leg timer. Entry at level0 charges resource by3000 with zero clamp and requests animation36; level2 prevents those entry fixtures from transitioning. Stand attempts use tentative full-height maxZ45 and supplied native allsolid0/1. Successful stand clears the posture bit and field92; blocked stand retains shortened bounds. A supplied leg timer1 prevents the stand query at this boundary even though the later main timer helper ages it to0.

Final height/top combinations reached are20/24 for retained or entered posture,38/45 after successful stand,−5/10 for animation25 without transition, and−16/45 for the special-mode early exit. The special branch issues no native root or animation request. Other non-special paths request the horizontal-speed root; returns come from a supplied finite math model at the actual source call.

MAINPOSTURE-002 — Animation children before timer and height selection (RE-506)

At reached CALL47598 or47746, helper39525 and its requested39383 child evaluate against the actual posture memory in separate live frames. The parent then resumes before its timer200 store. Eight such child calls occur across these fixtures. The forced-animation helper can clear the leg timer and toggle the animation high bit before that parent timer write.

The successful stand sequence exposes an effect omitted by the earlier isolated posture report: starting animation25 changes to animation37 (word165 in these fixtures) before the parent chooses bounds/viewheight. The actual final branch therefore produces height38/maxZ45, rather than the height−5/maxZ10 that unchanged animation25 would select. The earlier report remains valid for its stated omitted-child model; the new composition records the evaluated child effect and ordering.

Entry requests similarly produce animation36 before final posture selection. Tests predict exact leg words, child timer values, unchanged child-side fields, caller timer200 and final height/bounds independently. The main timer then ages newly stored200 to184 using the actual elapsed16. Initial leg timer1 ages to0 only after posture's earlier decision. Root counts distinguish24 reached requests from four prepared-but-unrequested special-branch values.

MAINPOSTURE-003 — Derived bounds/height into live consumers (RE-507)

Both ground invocations receive actual posture bounds; the final content sampler receives actual posture height. Initial contents precedes posture and therefore still uses height38. Posture does not retroactively change the saved first content level. Ground classification, flag/timer outputs and subsequent source mode selection operate on the derived state.

Fourteen fixtures select41768 and evaluate28 slide children through the actual step/wrapper/mode chain. Seven select recorded43626 and seven recorded41848 with their effects omitted. Reached raised-step attempts subtract18 from the derived maxZ, then restore that original maxZ rather than an assumed45. Tests cover this behavior for shortened and special bounds as well as standing bounds. Native trace records/roots remain supplied; accepting such records with a particular hull does not prove collision validity.

The main bridge now accepts an optional reached posture effect and preserves explicitly supplied leg/torso timers at entry. Its original reports and prior environment report remain byte-identical under their default inputs. Other ground/action/query/alternative-mode/suffix effects remain omitted except recovered ground touch registration. The source clock-to-main gap, full53418/scheduler, native collision and legal/runtime/platform domains remain open.

Validation and remaining tasks

Eight tests verify all28 independent posture predictions, eight stand queries, eight actual animation-child effects and their timer/height ordering, root arguments/special skip, actual ground/movement hull and final-content height handoffs, ground classifications/leg timer aging,28 independent slide predictions with step/wrapper/mode outputs, source identity and supplied-effect scope. Full-suite/reproducibility/storage/link/whitespace outcomes are recorded in the ledger.

RE-504 remains open for its broader ground/native/caller/runtime scope. RE-508 tracks ground recovery/ground-lost/landing/animation/event callees, native collision/content/root ABI/side effects/legal domains, real posture input/resource/animation producers and consumers, remaining action/alternative-mode/suffix effects and complete main/scheduler composition; validate macOS/Linux Rust/Bevy/Solari gameplay. Other game/assets/rendering/protocol milestones remain open.

Follow-up: combined posture/ground caller study completes bounded RE-521–523, evaluating reached ground callees against actual posture and movement state at both main boundaries. Native/remaining action-mode-consumer/runtime limits remain explicit.