qvm: temporary event construction
Browse files- docs/ASSET_PIPELINE_TODO.md +3 -0
- docs/FINDINGS.md +3 -0
- docs/PROVISIONAL_TODO.md +3 -0
- docs/RESEARCH_LEDGER.md +5 -0
- docs/REVERSE_ENGINEERING_TODO.md +3 -0
- docs/research/QVM_TEMP_EVENT.md +11 -0
- docs/research/README.md +3 -0
- docs/research/qvm-temp-event.json +0 -0
- scripts/analyze_qvm_temp_event.py +36 -0
- scripts/test_qvm_temp_event.py +26 -0
docs/ASSET_PIPELINE_TODO.md
CHANGED
|
@@ -475,3 +475,6 @@ Research progress: RE-596 [report](research/QVM_SERVER_MUZZLE.md); remaining nat
|
|
| 475 |
|
| 476 |
|
| 477 |
Research progress: RE-597 [report](research/QVM_SERVER_FIRE_DISPATCH.md); remaining native/content/runtime/platform scope stays open.
|
|
|
|
|
|
|
|
|
|
|
|
| 475 |
|
| 476 |
|
| 477 |
Research progress: RE-597 [report](research/QVM_SERVER_FIRE_DISPATCH.md); remaining native/content/runtime/platform scope stays open.
|
| 478 |
+
|
| 479 |
+
|
| 480 |
+
Research progress: RE-598 [report](research/QVM_TEMP_EVENT.md); remaining native/content/runtime/platform scope stays open.
|
docs/FINDINGS.md
CHANGED
|
@@ -833,3 +833,6 @@ Bounded qagame paths recover bomb-plant/inactivity correction requests, direct f
|
|
| 833 |
|
| 834 |
|
| 835 |
**RE-597 — Entity weapon dispatcher and unresolved handler inventory:** 289499 dispatches entity+192 through initialized table32688; IDs12/18 return here,18 IDs share293732, and other entries select distinct opaque handlers including285840/285971/288903. [Evidence](research/QVM_SERVER_FIRE_DISPATCH.md).
|
|
|
|
|
|
|
|
|
|
|
|
| 833 |
|
| 834 |
|
| 835 |
**RE-597 — Entity weapon dispatcher and unresolved handler inventory:** 289499 dispatches entity+192 through initialized table32688; IDs12/18 return here,18 IDs share293732, and other entries select distinct opaque handlers including285840/285971/288903. [Evidence](research/QVM_SERVER_FIRE_DISPATCH.md).
|
| 836 |
+
|
| 837 |
+
|
| 838 |
+
**RE-598 — Temporary event record construction and position setter:** 277695 builds a tempEntity with event type+19, time and flags, truncates the position before actual278138 sets trajectory/base/live origin, then issues native link−31. [Evidence](research/QVM_TEMP_EVENT.md).
|
docs/PROVISIONAL_TODO.md
CHANGED
|
@@ -793,3 +793,6 @@ Research progress: RE-596 [report](research/QVM_SERVER_MUZZLE.md); remaining nat
|
|
| 793 |
|
| 794 |
|
| 795 |
Research progress: RE-597 [report](research/QVM_SERVER_FIRE_DISPATCH.md); remaining native/content/runtime/platform scope stays open.
|
|
|
|
|
|
|
|
|
|
|
|
| 793 |
|
| 794 |
|
| 795 |
Research progress: RE-597 [report](research/QVM_SERVER_FIRE_DISPATCH.md); remaining native/content/runtime/platform scope stays open.
|
| 796 |
+
|
| 797 |
+
|
| 798 |
+
Research progress: RE-598 [report](research/QVM_TEMP_EVENT.md); remaining native/content/runtime/platform scope stays open.
|
docs/RESEARCH_LEDGER.md
CHANGED
|
@@ -675,3 +675,8 @@ Actual outer31 publication reaches server151634, which writes client4140=0 and43
|
|
| 675 |
## 2026-10-20 — RE-597 Entity weapon dispatcher and unresolved handler inventory (separate task commit)
|
| 676 |
|
| 677 |
289499 dispatches entity+192 through initialized table32688; IDs12/18 return here,18 IDs share293732, and other entries select distinct opaque handlers including285840/285971/288903. 124 probes independently check all IDs1..27 and invalid−1/0/28/29, slot/packed-ID mismatch, exact pending call catalog and actual basis→muzzle→dispatch handoffs. Full suite: 899 tests pass. Report regenerates byte-identically (359780 bytes). Storage/filter, links and whitespace checks pass. No assets/Rust runtime/shared VM evaluator changed; native/reference/legal/full platform scope remains open.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 675 |
## 2026-10-20 — RE-597 Entity weapon dispatcher and unresolved handler inventory (separate task commit)
|
| 676 |
|
| 677 |
289499 dispatches entity+192 through initialized table32688; IDs12/18 return here,18 IDs share293732, and other entries select distinct opaque handlers including285840/285971/288903. 124 probes independently check all IDs1..27 and invalid−1/0/28/29, slot/packed-ID mismatch, exact pending call catalog and actual basis→muzzle→dispatch handoffs. Full suite: 899 tests pass. Report regenerates byte-identically (359780 bytes). Storage/filter, links and whitespace checks pass. No assets/Rust runtime/shared VM evaluator changed; native/reference/legal/full platform scope remains open.
|
| 678 |
+
|
| 679 |
+
|
| 680 |
+
## 2026-10-20 — RE-598 Temporary event record construction and position setter (separate task commit)
|
| 681 |
+
|
| 682 |
+
277695 builds a tempEntity with event type+19, time and flags, truncates the position before actual278138 sets trajectory/base/live origin, then issues native link−31. 36 independent880-byte record oracles check all changed and retained words, negative/fractional truncation, event/time boundaries, child order, numeric return and exact captured link request. Full suite: 903 tests pass. Report regenerates byte-identically (1805563 bytes). Storage/filter, links and whitespace checks pass. No assets/Rust runtime/shared VM evaluator changed; native/reference/legal/full platform scope remains open.
|
docs/REVERSE_ENGINEERING_TODO.md
CHANGED
|
@@ -835,3 +835,6 @@ Purpose: turn the supplied installation into an evidence-backed specification of
|
|
| 835 |
|
| 836 |
|
| 837 |
- [x] RE-597 Entity weapon dispatcher and unresolved handler inventory ([report](research/QVM_SERVER_FIRE_DISPATCH.md)).
|
|
|
|
|
|
|
|
|
|
|
|
| 835 |
|
| 836 |
|
| 837 |
- [x] RE-597 Entity weapon dispatcher and unresolved handler inventory ([report](research/QVM_SERVER_FIRE_DISPATCH.md)).
|
| 838 |
+
|
| 839 |
+
|
| 840 |
+
- [x] RE-598 Temporary event record construction and position setter ([report](research/QVM_TEMP_EVENT.md)).
|
docs/research/QVM_TEMP_EVENT.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Temporary event record construction and position setter
|
| 2 |
+
|
| 3 |
+
RE-598. Reproduce with `python3 scripts/analyze_qvm_temp_event.py`; check with `python3 scripts/test_qvm_temp_event.py`. The [machine report](qvm-temp-event.json) retains source identity and bounded fixtures.
|
| 4 |
+
|
| 5 |
+
Complete277695 is evaluated with an explicitly supplied nonnull277165 allocation result. File-backed classname97191 is tempEntity. Source writes type=event+19, classname/hash/time fields and572=1; each input position component is CVFI→CVIF truncated before actual278138. That setter copies base and live origin and zeros trajectory type/time/duration and velocity fields.
|
| 6 |
+
|
| 7 |
+
The source then issues native−31(record), whose request and complete record are captured. Native linking and allocator effects are not executed or assumed successful; no world membership/lifetime/physics claim follows. The function returns the supplied record pointer.36 fixtures retain every word of an880-byte synthetic canary record, verifying the exact mutation footprint.
|
| 8 |
+
|
| 9 |
+
Next: use this record builder in285840's event57 firing setup, recover its actual PRNG/quantized direction, and stop before the unresolved295018 shot-processing body.
|
| 10 |
+
|
| 11 |
+
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.
|
docs/research/README.md
CHANGED
|
@@ -394,3 +394,6 @@ The extension collector adds five focused tests for native tail calls, command-r
|
|
| 394 |
|
| 395 |
|
| 396 |
[RE-597: Entity weapon dispatcher and unresolved handler inventory](QVM_SERVER_FIRE_DISPATCH.md). Reproduce with `python3 scripts/analyze_qvm_server_fire_dispatch.py`; check with `python3 scripts/test_qvm_server_fire_dispatch.py`.
|
|
|
|
|
|
|
|
|
|
|
|
| 394 |
|
| 395 |
|
| 396 |
[RE-597: Entity weapon dispatcher and unresolved handler inventory](QVM_SERVER_FIRE_DISPATCH.md). Reproduce with `python3 scripts/analyze_qvm_server_fire_dispatch.py`; check with `python3 scripts/test_qvm_server_fire_dispatch.py`.
|
| 397 |
+
|
| 398 |
+
|
| 399 |
+
[RE-598: Temporary event record construction and position setter](QVM_TEMP_EVENT.md). Reproduce with `python3 scripts/analyze_qvm_temp_event.py`; check with `python3 scripts/test_qvm_temp_event.py`.
|
docs/research/qvm-temp-event.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
scripts/analyze_qvm_temp_event.py
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""277695 tempEntity construction with supplied allocation and captured link request."""
|
| 3 |
+
import itertools
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
from qvm_research_support import source,execute
|
| 6 |
+
from qvm_server_fire_support import seed,ENTITY,PROJECTILE,MUZZLE
|
| 7 |
+
from analyze_qvm_acceleration import word
|
| 8 |
+
from analyze_qvm_slide_prefix import vec
|
| 9 |
+
from analyze_qvm import write_json
|
| 10 |
+
LOCAL=0x7d000000
|
| 11 |
+
POSITION=LOCAL+0x1000
|
| 12 |
+
|
| 13 |
+
def record(m,p=PROJECTILE):return {str(o):m[p+o]&0xffffffff for o in range(0,880,4)}
|
| 14 |
+
|
| 15 |
+
def set_origin(ins,m,args):
|
| 16 |
+
before=record(m,args[8]);m[POSITION+24]=args[8];m[POSITION+28]=args[12];point=vec(m,args[12]);m,c,r=execute(ins,278139,278199,m,(0,0,0),POSITION)
|
| 17 |
+
return m,{'input':point,'initial':before,'execution':r,'final':record(m,args[8])}
|
| 18 |
+
|
| 19 |
+
def temp_event(ins,m,origin,event):
|
| 20 |
+
before=record(m);point=vec(m,origin);m[LOCAL+44]=origin;m[LOCAL+48]=event;links=[]
|
| 21 |
+
def allocate(i,m,a,c):return m,c,PROJECTILE,{'supplied_record_pointer':PROJECTILE,'initial_record':record(m),'allocator_not_executed':True}
|
| 22 |
+
def position(i,m,a,c):m,r=set_origin(i,m,a);return m,c,0,r
|
| 23 |
+
def link(i,m,a,c):r={'arguments':a,'record_at_request':record(m,a[8]),'native_effect_not_executed':True};links.append(r);return m,c,0,r
|
| 24 |
+
m,c,r=execute(ins,277696,277777,m,(0,0,0),LOCAL,{277165:allocate,278138:position,-31:link})
|
| 25 |
+
return m,{'event':event,'input_origin':point,'time':m[34992532],'initial_record':before,'execution':r,'link_requests':links,'final_record':record(m)}
|
| 26 |
+
|
| 27 |
+
def main():
|
| 28 |
+
q,raw,h,ins=source();rows=[]
|
| 29 |
+
for point,event,time in itertools.product([(1.9,-2.9,3.1),(-.5,.5,-0.0),(100,200,300)],[-1,0,57,255],[0,5000,0x7fffffff]):
|
| 30 |
+
m=seed(raw,h);m[34992532]=time
|
| 31 |
+
for o in range(0,880,4):m[PROJECTILE+o]=0x12345678
|
| 32 |
+
for j,v in enumerate(point):m[MUZZLE+4*j]=word(v)
|
| 33 |
+
rows.append(temp_event(ins,m,MUZZLE,event)[1])
|
| 34 |
+
text=raw[h['data_offset']+97191:].split(b'\0',1)[0].decode()
|
| 35 |
+
write_json(Path('docs/research/qvm-temp-event.json'),{'source':q['source'],'sha256':q['sha256'],'classname':{'address':97191,'text':text},'probes':rows,'limits':'Complete finite277695/278138 with explicitly supplied277165 allocation record and captured−31 link request; allocator/native link effects not executed. No world/entity lifetime/physics parity claim.'})
|
| 36 |
+
if __name__=='__main__':main()
|
scripts/test_qvm_temp_event.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json,unittest,copy
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
from test_qvm_ground import word,n
|
| 4 |
+
|
| 5 |
+
def event_record(p):
|
| 6 |
+
r=copy.deepcopy(p['initial_record']);r.update({'4':(p['event']+19)&0xffffffff,'536':97191,'540':662184166,'568':p['time']&0xffffffff,'572':1})
|
| 7 |
+
point=[word(float(int(n(v)))) for v in p['input_origin']]
|
| 8 |
+
for o in [12,16,20,36,40,44]:r[str(o)]=0
|
| 9 |
+
for base in [24,488]:
|
| 10 |
+
for j,v in enumerate(point):r[str(base+4*j)]=v
|
| 11 |
+
return r
|
| 12 |
+
class TempEventTests(unittest.TestCase):
|
| 13 |
+
@classmethod
|
| 14 |
+
def setUpClass(cls):cls.r=json.loads(Path('docs/research/qvm-temp-event.json').read_text())
|
| 15 |
+
def test_complete_record_and_numeric_return(self):
|
| 16 |
+
self.assertEqual(len(self.r['probes']),36)
|
| 17 |
+
for p in self.r['probes']:self.assertEqual(p['final_record'],event_record(p));self.assertEqual(p['execution']['return'],720896)
|
| 18 |
+
def test_actual_child_order_and_explicit_native_boundary(self):
|
| 19 |
+
for p in self.r['probes']:self.assertEqual([c['target'] for c in p['execution']['calls']],[277165,278138,-31]);self.assertTrue(p['link_requests'][0]['native_effect_not_executed']);self.assertEqual(p['link_requests'][0]['record_at_request'],p['final_record'])
|
| 20 |
+
def test_position_truncates_before_setter_and_preserves_canaries(self):
|
| 21 |
+
for p in self.r['probes']:
|
| 22 |
+
self.assertEqual(p['final_record']['0'],0x12345678);self.assertEqual(p['final_record']['104'],0x12345678);self.assertEqual(p['final_record']['24'],word(float(int(n(p['input_origin'][0])))))
|
| 23 |
+
def test_file_backed_classname_and_native_argument(self):
|
| 24 |
+
self.assertEqual(self.r['classname'],{'address':97191,'text':'tempEntity'})
|
| 25 |
+
for p in self.r['probes']:self.assertEqual(p['link_requests'][0]['arguments'],{'8':720896})
|
| 26 |
+
if __name__=='__main__':unittest.main()
|