urt-rs / docs /research /QVM_COMBINED_GROUND.md
nmarshall's picture
qvm: action probes
cf20de0
|
Raw History Blame Contribute Delete
6.47 kB

QVM combined posture and reached ground callees

This batch completes bounded RE-521–523 / F-250–252, combining the previously separate posture, recovery, ground-loss, landing, ground-animation and touch studies at their actual main/caller boundaries. It builds on posture, recovery, ground loss and landing/event writers. Native responses and remaining omissions stay explicit.

Reproduce with python3 scripts/analyze_qvm_combined_ground.py; validate with python3 scripts/test_qvm_combined_ground.py. The machine report retains source identity, child-before/after snapshots, evaluated helper reports, native requests and the reached main/movement state. No original executable, full QVM, native collision, physics or rendering executes.

COMBGROUND-001 — Shared posture and recovered ground children (RE-521)

Eighteen fixtures combine three posture variants with six scenarios: high-speed landing followed by upward classification, ground loss followed by later landing, successful recovery into air/ground loss, failed recovery, steep-plane contact and a level3 no-landing control. Entry flags, animation/resource/input/state and ordered native content/stand/ground/recovery/deep/slide/down/overlap responses remain supplied.

Actual main content sampling precedes posture47422 and its animation children. Both46773 calls then evaluate recovered children at their reached source boundaries:46296 before testing its result local,46527 before caller plane/walk clearing,45912 before caller movement-timer/ground stores,39525 before upward-classification continuation, and39253 at terminal touch registration. Posture and every live parent/helper use disjoint local frames; source call ordering and shared PS/frame/global/queue state are retained.

Across36 ground invocations the reached children are six recovery calls, six ground-loss calls,15 landing calls, three direct ground-animation calls and15 touch calls. Conditional skips do not receive prepared child effects. Action54981 inside ground loss, disabled logging, main query/alternative modes and other suffix/native consumers remain omitted or unverified; composing these recovered bodies does not fill those gaps.

COMBGROUND-002 — Cross-helper timer, animation and event ordering (RE-522)

The unified fixtures show why separately recovered outputs cannot simply be overlaid. Entered posture can store leg timer200, after which an actual ground-loss animation can reset it to0 before main timer aging. Other paths preserve200 and age it to184. A source ground caller can likewise store movement timer250 after landing, and main ages that value to234. Tests predict each boundary from the appropriate earlier state rather than re-seeding timers for individual consumers.

High-speed landing fixtures use saved previous Z−1500, content level2 and old ground1023. Reached landing can record numeric event87 and set Z300; the later ground invocation then enters its positive-Z kick branch and evaluates the selected forced animation. The event/parameter queue remains live through that animation and final content sampling. Numeric event/PS216 consumers and gameplay/health/damage semantics remain unverified.

A later animation change does not rerun earlier posture bounds selection. In one fixture posture's unchanged animation25 selected maxZ10/height−5; landing and the later kick change the animation, but those hull/viewheight values remain10/−5 through the pass. Likewise resource charges produced by posture survive the reached ground/movement children. This is a temporal state relationship in the bounded source paths, not a proof of legal real-game combinations.

COMBGROUND-003 — Actual movement and post-environment handoffs (RE-523)

Fifteen fixtures select41768 and evaluate30 slide children through mode/step/wrapper paths with actual ground-derived plane/normal/flags/timers/touches. Three request41848 with its effects omitted. The reached step and fallback code consumes the same state built by posture and the first ground invocation, then returns its actual state into main.

The second ground helper receives that after-dispatch position/velocity/state and evaluates any newly reached landing/upward-animation/touch children. Final content sampling consumes the resulting viewheight/current position and retains numeric queue/resource/animation effects. Independent tests predict the complete recorded extended ground state as well as child and movement outputs, so a correct child result applied at the wrong caller boundary cannot satisfy the handoff checks.

Native traces/contents/roots are supplied, not collision-derived. The clock-to-main gap, full53418, scheduler, real collision/legal domains, remaining action/alternative-mode/suffix/native consumers and macOS/Linux Rust/Bevy/Solari gameplay remain open. The scenarios deliberately select finite source branches rather than asserting physically consistent contact records.

Validation and next tasks

Eight tests independently verify all18 posture outputs and actual handoffs; every reached recovery/lost/landing/animation/touch child; all36 complete recorded ground states and source request order; reset-versus-retained timer200 behavior;15 reached modes and30 slide children with step/wrapper/gravity outputs; resource/event/animation persistence into final contents; unchanged earlier hull despite later animation; source identity and scope. They reuse independent helper formulas while predicting parent stores separately. Reproducibility/full-suite/storage/link/whitespace results are recorded in the ledger.

RE-520 remains open for broader native/action/main/runtime scope; this bounded shared-state combination is covered by RE-521–523. RE-524 tracks54981/action/query and alternative-mode/suffix effects, numeric event/PS216 consumers, native trace/content/root/collision ABI/legal domains, real input/basis/environment producers and complete53418/scheduler/macOS/Linux Rust/Bevy/Solari gameplay. Other game/assets/rendering/protocol milestones remain open.

Follow-up: actual main54981 producer completes bounded RE-525–527, evaluating forward trace/recheck/flag effects after main timer and separately recovering recursive argument1/landing. Reused ground-loss nested54981 effects and broader query/mode/native/runtime scope remain open.