nmarshall commited on
Commit
57d31de
·
1 Parent(s): 006789e

qvm: trace defuse allocator terminals

Browse files
docs/FINDINGS.md CHANGED
@@ -2031,3 +2031,5 @@ RE-1042: Twenty-four source scenarios execute defuse start with actual allocator
2031
  RE-1043: Rust matches24 source scenarios composing real fixed-pool selection/init, event construction and caller defuse writes through the pre-radio boundary. Initial record flags and timestamps are retained rather than fabricated or zeroed. Source allocation/registration/link metadata and snapped event records match. Unsupported constructor/allocation outcomes reject atomically in this successful-allocation adapter; generic allocator terminal states remain separately exposed. Tests cover real payload flags and rollback after allocation. [Evidence](research/RUST_LOCATION_ALLOCATED_DEFUSE.md).
2032
 
2033
  RE-1034–1043 batch validation passed:2,018 Python tests,339 Rust tests,146 deterministic affected producers and623 documentation files. All ten tasks have individual commits and focused checks. [Location/allocation evidence and next work](research/QVM_LOCATION_ALLOCATION_BATCH.md).
 
 
 
2031
  RE-1043: Rust matches24 source scenarios composing real fixed-pool selection/init, event construction and caller defuse writes through the pre-radio boundary. Initial record flags and timestamps are retained rather than fabricated or zeroed. Source allocation/registration/link metadata and snapped event records match. Unsupported constructor/allocation outcomes reject atomically in this successful-allocation adapter; generic allocator terminal states remain separately exposed. Tests cover real payload flags and rollback after allocation. [Evidence](research/RUST_LOCATION_ALLOCATED_DEFUSE.md).
2032
 
2033
  RE-1034–1043 batch validation passed:2,018 Python tests,339 Rust tests,146 deterministic affected producers and623 documentation files. All ten tasks have individual commits and focused checks. [Location/allocation evidence and next work](research/QVM_LOCATION_ALLOCATION_BATCH.md).
2034
+
2035
+ - Defuse state updates precede allocation. An elapsed completion also requests its log before allocation. [QVM terminal evidence](research/QVM_DEFUSE_ALLOCATION_TERMINAL.md).
docs/PROVISIONAL_TODO.md CHANGED
@@ -2093,3 +2093,5 @@ RE-974–983 completed routing, command rewrite, inactivity, movement-parameter
2093
 
2094
  - [x] RE-1034–1043 location/format/allocation batch:115 paired scenarios with actual location and formatter/radio chains plus allocated defuse events ([evidence](research/QVM_LOCATION_ALLOCATION_BATCH.md)).
2095
  - [ ] RE-1044 combine allocated events and located radio with full lifecycle/native adapters ([scope](research/QVM_LOCATION_ALLOCATION_BATCH.md#next-work-re-1044)).
 
 
 
2093
 
2094
  - [x] RE-1034–1043 location/format/allocation batch:115 paired scenarios with actual location and formatter/radio chains plus allocated defuse events ([evidence](research/QVM_LOCATION_ALLOCATION_BATCH.md)).
2095
  - [ ] RE-1044 combine allocated events and located radio with full lifecycle/native adapters ([scope](research/QVM_LOCATION_ALLOCATION_BATCH.md#next-work-re-1044)).
2096
+
2097
+ - [x] RE-1044 Trace defuse caller state at allocator terminals ([evidence](research/QVM_DEFUSE_ALLOCATION_TERMINAL.md)).
docs/RESEARCH_LEDGER.md CHANGED
@@ -2847,3 +2847,7 @@ Twenty-four source scenarios execute defuse start with actual allocator277165, i
2847
  ## 2026-10-29 — RE-1043 Port allocated defuse start with preserved record state
2848
 
2849
  Rust matches24 source scenarios composing real fixed-pool selection/init, event construction and caller defuse writes through the pre-radio boundary. Initial record flags and timestamps are retained rather than fabricated or zeroed. Source allocation/registration/link metadata and snapped event records match. Unsupported constructor/allocation outcomes reject atomically in this successful-allocation adapter; generic allocator terminal states remain separately exposed. Tests cover real payload flags and rollback after allocation. Focused `cargo xtask test-group rust-location-allocated-defuse` passes with deterministic report regeneration and selected regressions. The single `cargo xtask test-full --since a1fd4e2b` run at the tenth-commit boundary passed: **2,018 Python tests** across559 modules, **339 Rust tests** (assets10, gameplay299, xtask30), **146 deterministic affected report producers**, storage policy, links across **623 documentation files** and whitespace guards. Regeneration left no changes, including earlier radio consumers. Focused dependency-registry regression passed. Validation notes are amended into task ten, preserving ten commits. Original assets unchanged; Python uses the flake-declared Nix runtime.
 
 
 
 
 
2847
  ## 2026-10-29 — RE-1043 Port allocated defuse start with preserved record state
2848
 
2849
  Rust matches24 source scenarios composing real fixed-pool selection/init, event construction and caller defuse writes through the pre-radio boundary. Initial record flags and timestamps are retained rather than fabricated or zeroed. Source allocation/registration/link metadata and snapped event records match. Unsupported constructor/allocation outcomes reject atomically in this successful-allocation adapter; generic allocator terminal states remain separately exposed. Tests cover real payload flags and rollback after allocation. Focused `cargo xtask test-group rust-location-allocated-defuse` passes with deterministic report regeneration and selected regressions. The single `cargo xtask test-full --since a1fd4e2b` run at the tenth-commit boundary passed: **2,018 Python tests** across559 modules, **339 Rust tests** (assets10, gameplay299, xtask30), **146 deterministic affected report producers**, storage policy, links across **623 documentation files** and whitespace guards. Regeneration left no changes, including earlier radio consumers. Focused dependency-registry regression passed. Validation notes are amended into task ten, preserving ten commits. Original assets unchanged; Python uses the flake-declared Nix runtime.
2850
+
2851
+ ## 2026-11-21 — RE-1044 Trace defuse caller state at allocator terminals
2852
+
2853
+ The start, both cancellation branches and elapsed completion reach allocator terminals after updating caller state. Completion requests its log before allocation. Sixteen source cases trace the caller, constructor and allocator without supplying a fake entity return. See [caller-state findings](research/QVM_DEFUSE_ALLOCATION_TERMINAL.md).
docs/research/QVM_DEFUSE_ALLOCATION_TERMINAL.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Defuse caller state at allocator terminals
2
+
3
+ [The source report](qvm-defuse-allocation-terminal.json) traces sixteen cases across the start, distant cancellation, missing-flag cancellation and elapsed completion branches. Each branch prepares arguments for constructor 277695. The constructor reaches the call to allocator 277165 before writing an event record. The probe traces the allocator separately through its diagnostic-loop or fatal boundary, preserving the absence of a returned entity.
4
+
5
+ | Branch | Constructor call | Caller writes before allocation |
6
+ | --- | --- | --- |
7
+ | Start | 153890, event 83 | Set clock to current tick, busy to 1 and the defuse flags. Clear animation flags and set animation 2 when flag 32 was present. |
8
+ | Distant cancellation | 154061, event 84 | Clear clock, busy and the defuse flags. |
9
+ | Missing-flag cancellation | 153980, event 84 | Clear clock, busy and the defuse flags. |
10
+ | Elapsed completion | 153721, event 84 | Request the defuse log, set completion to 1, then clear clock, busy and the defuse flags. |
11
+
12
+ Every branch passes the selected bomb's origin pointer. The allocator keeps count 1022 at the diagnostic boundary. At capacity 1024 it retries, writes count 1025 and reaches the fatal boundary. Neither path requests native registration or linking. The caller performs no event-payload writes, radio, score or counter updates within these prefixes. The source probe captures pending call arguments before dispatch so it can stop without synthesizing a return value. Diagnostic-loop and fatal handling remain outside the traced window.
docs/research/QVM_LOCATION_ALLOCATION_BATCH.md CHANGED
@@ -67,3 +67,5 @@ The single `cargo xtask test-full --since a1fd4e2b` run at the tenth-commit boun
67
  - [ ] Verify location/cache ownership, real spatial candidate generation and entity/linked identity/aliasing through allocation/free cycles.
68
  - [ ] Migrate historical effect labels to semantic APIs while retaining evidence compatibility; connect radio/objective client rendering/audio consumers.
69
  - [ ] Compose full154089 preparation, assistance/self recovery, defusing, movement54475 and timer155714; continue asset conversion, Bevy/Solari rendering and macOS/Linux acceptance.
 
 
 
67
  - [ ] Verify location/cache ownership, real spatial candidate generation and entity/linked identity/aliasing through allocation/free cycles.
68
  - [ ] Migrate historical effect labels to semantic APIs while retaining evidence compatibility; connect radio/objective client rendering/audio consumers.
69
  - [ ] Compose full154089 preparation, assistance/self recovery, defusing, movement54475 and timer155714; continue asset conversion, Bevy/Solari rendering and macOS/Linux acceptance.
70
+
71
+ RE-1044 traces the caller and constructor prefixes before diagnostic/fatal allocation in [all four defuse branches](QVM_DEFUSE_ALLOCATION_TERMINAL.md). Rust terminal integration and successful cancel/finish construction remain open.
docs/research/README.md CHANGED
@@ -1659,3 +1659,5 @@ The extension collector adds five focused tests for native tail calls, command-r
1659
  - [RE-1043: Port allocated defuse start with preserved record state](RUST_LOCATION_ALLOCATED_DEFUSE.md).
1660
 
1661
  - [Location, formatting and objective allocation: RE-1034–1043](QVM_LOCATION_ALLOCATION_BATCH.md).
 
 
 
1659
  - [RE-1043: Port allocated defuse start with preserved record state](RUST_LOCATION_ALLOCATED_DEFUSE.md).
1660
 
1661
  - [Location, formatting and objective allocation: RE-1034–1043](QVM_LOCATION_ALLOCATION_BATCH.md).
1662
+
1663
+ - [Defuse caller state at allocator terminals](QVM_DEFUSE_ALLOCATION_TERMINAL.md)
docs/research/qvm-defuse-allocation-terminal.json ADDED
@@ -0,0 +1,1121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "limits": "Actual caller, constructor and allocator prefixes. Stop before diagnostic/fatal execution; no allocator return or post-allocation effects simulated.",
3
+ "probes": [
4
+ {
5
+ "allocation": {
6
+ "count": 1022,
7
+ "record": null,
8
+ "registrations": [],
9
+ "retry": 0,
10
+ "scan_index": 0,
11
+ "selected": null,
12
+ "status": "diagnostic-loop-pending"
13
+ },
14
+ "effects": [],
15
+ "event_kind": 83,
16
+ "execution": {
17
+ "allocator": {
18
+ "trace_length": 24943,
19
+ "trace_sha256": "c8fbb3918efeb8510bf53c0c85615279107c67891c1c6fb45b40d9a70db39082"
20
+ },
21
+ "caller": {
22
+ "stop": 153890,
23
+ "trace_length": 101,
24
+ "trace_sha256": "17d26acc39bc6114d464eb1c6325f64cbfb8a62a2a91e9e6c2adcb84861e8cbb"
25
+ },
26
+ "constructor": {
27
+ "stop": 277698,
28
+ "trace_length": 2,
29
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
30
+ }
31
+ },
32
+ "input": {
33
+ "allocation": {
34
+ "count": 1022,
35
+ "profile": 8,
36
+ "slots": [],
37
+ "start": 0,
38
+ "tick": 5000
39
+ },
40
+ "animation": 99,
41
+ "branch": "start",
42
+ "busy": 0,
43
+ "clock": 0,
44
+ "complete": 0,
45
+ "duration": 5,
46
+ "flags": 2147516512,
47
+ "flags104": 2147483666,
48
+ "index": 3,
49
+ "tick": 5000,
50
+ "weapon": 305397771
51
+ },
52
+ "state": {
53
+ "animation": 2,
54
+ "busy": 1,
55
+ "clock": 5000,
56
+ "complete": 0,
57
+ "event": [
58
+ 7,
59
+ 2147483649
60
+ ],
61
+ "flags": 2147516420,
62
+ "flags104": 2147483666,
63
+ "guards": [
64
+ 2864434397,
65
+ 287454020
66
+ ],
67
+ "weapon": 305397771
68
+ }
69
+ },
70
+ {
71
+ "allocation": {
72
+ "count": 1022,
73
+ "record": null,
74
+ "registrations": [],
75
+ "retry": 0,
76
+ "scan_index": 0,
77
+ "selected": null,
78
+ "status": "diagnostic-loop-pending"
79
+ },
80
+ "effects": [],
81
+ "event_kind": 83,
82
+ "execution": {
83
+ "allocator": {
84
+ "trace_length": 24943,
85
+ "trace_sha256": "c8fbb3918efeb8510bf53c0c85615279107c67891c1c6fb45b40d9a70db39082"
86
+ },
87
+ "caller": {
88
+ "stop": 153890,
89
+ "trace_length": 73,
90
+ "trace_sha256": "0a1d12ed79b3e075f2d16926c27ed891b865f2753438678a368ef3a21147f746"
91
+ },
92
+ "constructor": {
93
+ "stop": 277698,
94
+ "trace_length": 2,
95
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
96
+ }
97
+ },
98
+ "input": {
99
+ "allocation": {
100
+ "count": 1022,
101
+ "profile": 8,
102
+ "slots": [],
103
+ "start": 0,
104
+ "tick": 5000
105
+ },
106
+ "animation": 99,
107
+ "branch": "start",
108
+ "busy": 0,
109
+ "clock": 0,
110
+ "complete": 0,
111
+ "duration": 5,
112
+ "flags": 2147516420,
113
+ "flags104": 2147483666,
114
+ "index": 3,
115
+ "tick": 5000,
116
+ "weapon": 305397771
117
+ },
118
+ "state": {
119
+ "animation": 99,
120
+ "busy": 1,
121
+ "clock": 5000,
122
+ "complete": 0,
123
+ "event": [
124
+ 7,
125
+ 2147483649
126
+ ],
127
+ "flags": 2147516420,
128
+ "flags104": 2147483666,
129
+ "guards": [
130
+ 2864434397,
131
+ 287454020
132
+ ],
133
+ "weapon": 305397771
134
+ }
135
+ },
136
+ {
137
+ "allocation": {
138
+ "count": 1025,
139
+ "record": null,
140
+ "registrations": [],
141
+ "retry": 2,
142
+ "scan_index": 1024,
143
+ "selected": null,
144
+ "status": "fatal-error-pending"
145
+ },
146
+ "effects": [],
147
+ "event_kind": 83,
148
+ "execution": {
149
+ "allocator": {
150
+ "trace_length": 50002,
151
+ "trace_sha256": "43f64dbf668af25a21a8cd490d43a0f19e6df99bb614bb0acb34b8d153634a57"
152
+ },
153
+ "caller": {
154
+ "stop": 153890,
155
+ "trace_length": 101,
156
+ "trace_sha256": "17d26acc39bc6114d464eb1c6325f64cbfb8a62a2a91e9e6c2adcb84861e8cbb"
157
+ },
158
+ "constructor": {
159
+ "stop": 277698,
160
+ "trace_length": 2,
161
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
162
+ }
163
+ },
164
+ "input": {
165
+ "allocation": {
166
+ "count": 1024,
167
+ "profile": 10,
168
+ "slots": [],
169
+ "start": 0,
170
+ "tick": 5000
171
+ },
172
+ "animation": 99,
173
+ "branch": "start",
174
+ "busy": 0,
175
+ "clock": 0,
176
+ "complete": 0,
177
+ "duration": 5,
178
+ "flags": 2147516512,
179
+ "flags104": 2147483666,
180
+ "index": 3,
181
+ "tick": 5000,
182
+ "weapon": 305397771
183
+ },
184
+ "state": {
185
+ "animation": 2,
186
+ "busy": 1,
187
+ "clock": 5000,
188
+ "complete": 0,
189
+ "event": [
190
+ 7,
191
+ 2147483649
192
+ ],
193
+ "flags": 2147516420,
194
+ "flags104": 2147483666,
195
+ "guards": [
196
+ 2864434397,
197
+ 287454020
198
+ ],
199
+ "weapon": 305397771
200
+ }
201
+ },
202
+ {
203
+ "allocation": {
204
+ "count": 1025,
205
+ "record": null,
206
+ "registrations": [],
207
+ "retry": 2,
208
+ "scan_index": 1024,
209
+ "selected": null,
210
+ "status": "fatal-error-pending"
211
+ },
212
+ "effects": [],
213
+ "event_kind": 83,
214
+ "execution": {
215
+ "allocator": {
216
+ "trace_length": 50002,
217
+ "trace_sha256": "43f64dbf668af25a21a8cd490d43a0f19e6df99bb614bb0acb34b8d153634a57"
218
+ },
219
+ "caller": {
220
+ "stop": 153890,
221
+ "trace_length": 73,
222
+ "trace_sha256": "0a1d12ed79b3e075f2d16926c27ed891b865f2753438678a368ef3a21147f746"
223
+ },
224
+ "constructor": {
225
+ "stop": 277698,
226
+ "trace_length": 2,
227
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
228
+ }
229
+ },
230
+ "input": {
231
+ "allocation": {
232
+ "count": 1024,
233
+ "profile": 10,
234
+ "slots": [],
235
+ "start": 0,
236
+ "tick": 5000
237
+ },
238
+ "animation": 99,
239
+ "branch": "start",
240
+ "busy": 0,
241
+ "clock": 0,
242
+ "complete": 0,
243
+ "duration": 5,
244
+ "flags": 2147516420,
245
+ "flags104": 2147483666,
246
+ "index": 3,
247
+ "tick": 5000,
248
+ "weapon": 305397771
249
+ },
250
+ "state": {
251
+ "animation": 99,
252
+ "busy": 1,
253
+ "clock": 5000,
254
+ "complete": 0,
255
+ "event": [
256
+ 7,
257
+ 2147483649
258
+ ],
259
+ "flags": 2147516420,
260
+ "flags104": 2147483666,
261
+ "guards": [
262
+ 2864434397,
263
+ 287454020
264
+ ],
265
+ "weapon": 305397771
266
+ }
267
+ },
268
+ {
269
+ "allocation": {
270
+ "count": 1022,
271
+ "record": null,
272
+ "registrations": [],
273
+ "retry": 0,
274
+ "scan_index": 0,
275
+ "selected": null,
276
+ "status": "diagnostic-loop-pending"
277
+ },
278
+ "effects": [],
279
+ "event_kind": 84,
280
+ "execution": {
281
+ "allocator": {
282
+ "trace_length": 24943,
283
+ "trace_sha256": "c8fbb3918efeb8510bf53c0c85615279107c67891c1c6fb45b40d9a70db39082"
284
+ },
285
+ "caller": {
286
+ "stop": 154061,
287
+ "trace_length": 53,
288
+ "trace_sha256": "f3ae9820f2be31960aec50504d25f5177f595ed0618b96937f18e1d6738e4370"
289
+ },
290
+ "constructor": {
291
+ "stop": 277698,
292
+ "trace_length": 2,
293
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
294
+ }
295
+ },
296
+ "input": {
297
+ "allocation": {
298
+ "count": 1022,
299
+ "profile": 8,
300
+ "slots": [],
301
+ "start": 0,
302
+ "tick": 5000
303
+ },
304
+ "animation": 99,
305
+ "branch": "far",
306
+ "busy": 1,
307
+ "clock": 0,
308
+ "complete": 0,
309
+ "duration": 5,
310
+ "flags": 2147516512,
311
+ "flags104": 2147483666,
312
+ "index": 3,
313
+ "tick": 5000,
314
+ "weapon": 305397771
315
+ },
316
+ "state": {
317
+ "animation": 99,
318
+ "busy": 0,
319
+ "clock": 0,
320
+ "complete": 0,
321
+ "event": [
322
+ 7,
323
+ 2147483649
324
+ ],
325
+ "flags": 2147516512,
326
+ "flags104": 2147483650,
327
+ "guards": [
328
+ 2864434397,
329
+ 287454020
330
+ ],
331
+ "weapon": 305397771
332
+ }
333
+ },
334
+ {
335
+ "allocation": {
336
+ "count": 1022,
337
+ "record": null,
338
+ "registrations": [],
339
+ "retry": 0,
340
+ "scan_index": 0,
341
+ "selected": null,
342
+ "status": "diagnostic-loop-pending"
343
+ },
344
+ "effects": [],
345
+ "event_kind": 84,
346
+ "execution": {
347
+ "allocator": {
348
+ "trace_length": 24943,
349
+ "trace_sha256": "c8fbb3918efeb8510bf53c0c85615279107c67891c1c6fb45b40d9a70db39082"
350
+ },
351
+ "caller": {
352
+ "stop": 154061,
353
+ "trace_length": 53,
354
+ "trace_sha256": "f3ae9820f2be31960aec50504d25f5177f595ed0618b96937f18e1d6738e4370"
355
+ },
356
+ "constructor": {
357
+ "stop": 277698,
358
+ "trace_length": 2,
359
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
360
+ }
361
+ },
362
+ "input": {
363
+ "allocation": {
364
+ "count": 1022,
365
+ "profile": 8,
366
+ "slots": [],
367
+ "start": 0,
368
+ "tick": 5000
369
+ },
370
+ "animation": 99,
371
+ "branch": "far",
372
+ "busy": 1,
373
+ "clock": 0,
374
+ "complete": 0,
375
+ "duration": 5,
376
+ "flags": 2147516420,
377
+ "flags104": 2147483666,
378
+ "index": 3,
379
+ "tick": 5000,
380
+ "weapon": 305397771
381
+ },
382
+ "state": {
383
+ "animation": 99,
384
+ "busy": 0,
385
+ "clock": 0,
386
+ "complete": 0,
387
+ "event": [
388
+ 7,
389
+ 2147483649
390
+ ],
391
+ "flags": 2147516416,
392
+ "flags104": 2147483650,
393
+ "guards": [
394
+ 2864434397,
395
+ 287454020
396
+ ],
397
+ "weapon": 305397771
398
+ }
399
+ },
400
+ {
401
+ "allocation": {
402
+ "count": 1025,
403
+ "record": null,
404
+ "registrations": [],
405
+ "retry": 2,
406
+ "scan_index": 1024,
407
+ "selected": null,
408
+ "status": "fatal-error-pending"
409
+ },
410
+ "effects": [],
411
+ "event_kind": 84,
412
+ "execution": {
413
+ "allocator": {
414
+ "trace_length": 50002,
415
+ "trace_sha256": "43f64dbf668af25a21a8cd490d43a0f19e6df99bb614bb0acb34b8d153634a57"
416
+ },
417
+ "caller": {
418
+ "stop": 154061,
419
+ "trace_length": 53,
420
+ "trace_sha256": "f3ae9820f2be31960aec50504d25f5177f595ed0618b96937f18e1d6738e4370"
421
+ },
422
+ "constructor": {
423
+ "stop": 277698,
424
+ "trace_length": 2,
425
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
426
+ }
427
+ },
428
+ "input": {
429
+ "allocation": {
430
+ "count": 1024,
431
+ "profile": 10,
432
+ "slots": [],
433
+ "start": 0,
434
+ "tick": 5000
435
+ },
436
+ "animation": 99,
437
+ "branch": "far",
438
+ "busy": 1,
439
+ "clock": 0,
440
+ "complete": 0,
441
+ "duration": 5,
442
+ "flags": 2147516512,
443
+ "flags104": 2147483666,
444
+ "index": 3,
445
+ "tick": 5000,
446
+ "weapon": 305397771
447
+ },
448
+ "state": {
449
+ "animation": 99,
450
+ "busy": 0,
451
+ "clock": 0,
452
+ "complete": 0,
453
+ "event": [
454
+ 7,
455
+ 2147483649
456
+ ],
457
+ "flags": 2147516512,
458
+ "flags104": 2147483650,
459
+ "guards": [
460
+ 2864434397,
461
+ 287454020
462
+ ],
463
+ "weapon": 305397771
464
+ }
465
+ },
466
+ {
467
+ "allocation": {
468
+ "count": 1025,
469
+ "record": null,
470
+ "registrations": [],
471
+ "retry": 2,
472
+ "scan_index": 1024,
473
+ "selected": null,
474
+ "status": "fatal-error-pending"
475
+ },
476
+ "effects": [],
477
+ "event_kind": 84,
478
+ "execution": {
479
+ "allocator": {
480
+ "trace_length": 50002,
481
+ "trace_sha256": "43f64dbf668af25a21a8cd490d43a0f19e6df99bb614bb0acb34b8d153634a57"
482
+ },
483
+ "caller": {
484
+ "stop": 154061,
485
+ "trace_length": 53,
486
+ "trace_sha256": "f3ae9820f2be31960aec50504d25f5177f595ed0618b96937f18e1d6738e4370"
487
+ },
488
+ "constructor": {
489
+ "stop": 277698,
490
+ "trace_length": 2,
491
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
492
+ }
493
+ },
494
+ "input": {
495
+ "allocation": {
496
+ "count": 1024,
497
+ "profile": 10,
498
+ "slots": [],
499
+ "start": 0,
500
+ "tick": 5000
501
+ },
502
+ "animation": 99,
503
+ "branch": "far",
504
+ "busy": 1,
505
+ "clock": 0,
506
+ "complete": 0,
507
+ "duration": 5,
508
+ "flags": 2147516420,
509
+ "flags104": 2147483666,
510
+ "index": 3,
511
+ "tick": 5000,
512
+ "weapon": 305397771
513
+ },
514
+ "state": {
515
+ "animation": 99,
516
+ "busy": 0,
517
+ "clock": 0,
518
+ "complete": 0,
519
+ "event": [
520
+ 7,
521
+ 2147483649
522
+ ],
523
+ "flags": 2147516416,
524
+ "flags104": 2147483650,
525
+ "guards": [
526
+ 2864434397,
527
+ 287454020
528
+ ],
529
+ "weapon": 305397771
530
+ }
531
+ },
532
+ {
533
+ "allocation": {
534
+ "count": 1022,
535
+ "record": null,
536
+ "registrations": [],
537
+ "retry": 0,
538
+ "scan_index": 0,
539
+ "selected": null,
540
+ "status": "diagnostic-loop-pending"
541
+ },
542
+ "effects": [],
543
+ "event_kind": 84,
544
+ "execution": {
545
+ "allocator": {
546
+ "trace_length": 24943,
547
+ "trace_sha256": "c8fbb3918efeb8510bf53c0c85615279107c67891c1c6fb45b40d9a70db39082"
548
+ },
549
+ "caller": {
550
+ "stop": 153980,
551
+ "trace_length": 53,
552
+ "trace_sha256": "77e1d89497065f86ed67004bd11850fb66e268bf195473234f93637201fdd5e1"
553
+ },
554
+ "constructor": {
555
+ "stop": 277698,
556
+ "trace_length": 2,
557
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
558
+ }
559
+ },
560
+ "input": {
561
+ "allocation": {
562
+ "count": 1022,
563
+ "profile": 8,
564
+ "slots": [],
565
+ "start": 0,
566
+ "tick": 5000
567
+ },
568
+ "animation": 99,
569
+ "branch": "unflagged",
570
+ "busy": 1,
571
+ "clock": 0,
572
+ "complete": 0,
573
+ "duration": 5,
574
+ "flags": 2147516512,
575
+ "flags104": 2147483666,
576
+ "index": 3,
577
+ "tick": 5000,
578
+ "weapon": 305397771
579
+ },
580
+ "state": {
581
+ "animation": 99,
582
+ "busy": 0,
583
+ "clock": 0,
584
+ "complete": 0,
585
+ "event": [
586
+ 7,
587
+ 2147483649
588
+ ],
589
+ "flags": 2147516512,
590
+ "flags104": 2147483650,
591
+ "guards": [
592
+ 2864434397,
593
+ 287454020
594
+ ],
595
+ "weapon": 305397771
596
+ }
597
+ },
598
+ {
599
+ "allocation": {
600
+ "count": 1022,
601
+ "record": null,
602
+ "registrations": [],
603
+ "retry": 0,
604
+ "scan_index": 0,
605
+ "selected": null,
606
+ "status": "diagnostic-loop-pending"
607
+ },
608
+ "effects": [],
609
+ "event_kind": 84,
610
+ "execution": {
611
+ "allocator": {
612
+ "trace_length": 24943,
613
+ "trace_sha256": "c8fbb3918efeb8510bf53c0c85615279107c67891c1c6fb45b40d9a70db39082"
614
+ },
615
+ "caller": {
616
+ "stop": 153980,
617
+ "trace_length": 53,
618
+ "trace_sha256": "77e1d89497065f86ed67004bd11850fb66e268bf195473234f93637201fdd5e1"
619
+ },
620
+ "constructor": {
621
+ "stop": 277698,
622
+ "trace_length": 2,
623
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
624
+ }
625
+ },
626
+ "input": {
627
+ "allocation": {
628
+ "count": 1022,
629
+ "profile": 8,
630
+ "slots": [],
631
+ "start": 0,
632
+ "tick": 5000
633
+ },
634
+ "animation": 99,
635
+ "branch": "unflagged",
636
+ "busy": 1,
637
+ "clock": 0,
638
+ "complete": 0,
639
+ "duration": 5,
640
+ "flags": 2147516420,
641
+ "flags104": 2147483666,
642
+ "index": 3,
643
+ "tick": 5000,
644
+ "weapon": 305397771
645
+ },
646
+ "state": {
647
+ "animation": 99,
648
+ "busy": 0,
649
+ "clock": 0,
650
+ "complete": 0,
651
+ "event": [
652
+ 7,
653
+ 2147483649
654
+ ],
655
+ "flags": 2147516416,
656
+ "flags104": 2147483650,
657
+ "guards": [
658
+ 2864434397,
659
+ 287454020
660
+ ],
661
+ "weapon": 305397771
662
+ }
663
+ },
664
+ {
665
+ "allocation": {
666
+ "count": 1025,
667
+ "record": null,
668
+ "registrations": [],
669
+ "retry": 2,
670
+ "scan_index": 1024,
671
+ "selected": null,
672
+ "status": "fatal-error-pending"
673
+ },
674
+ "effects": [],
675
+ "event_kind": 84,
676
+ "execution": {
677
+ "allocator": {
678
+ "trace_length": 50002,
679
+ "trace_sha256": "43f64dbf668af25a21a8cd490d43a0f19e6df99bb614bb0acb34b8d153634a57"
680
+ },
681
+ "caller": {
682
+ "stop": 153980,
683
+ "trace_length": 53,
684
+ "trace_sha256": "77e1d89497065f86ed67004bd11850fb66e268bf195473234f93637201fdd5e1"
685
+ },
686
+ "constructor": {
687
+ "stop": 277698,
688
+ "trace_length": 2,
689
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
690
+ }
691
+ },
692
+ "input": {
693
+ "allocation": {
694
+ "count": 1024,
695
+ "profile": 10,
696
+ "slots": [],
697
+ "start": 0,
698
+ "tick": 5000
699
+ },
700
+ "animation": 99,
701
+ "branch": "unflagged",
702
+ "busy": 1,
703
+ "clock": 0,
704
+ "complete": 0,
705
+ "duration": 5,
706
+ "flags": 2147516512,
707
+ "flags104": 2147483666,
708
+ "index": 3,
709
+ "tick": 5000,
710
+ "weapon": 305397771
711
+ },
712
+ "state": {
713
+ "animation": 99,
714
+ "busy": 0,
715
+ "clock": 0,
716
+ "complete": 0,
717
+ "event": [
718
+ 7,
719
+ 2147483649
720
+ ],
721
+ "flags": 2147516512,
722
+ "flags104": 2147483650,
723
+ "guards": [
724
+ 2864434397,
725
+ 287454020
726
+ ],
727
+ "weapon": 305397771
728
+ }
729
+ },
730
+ {
731
+ "allocation": {
732
+ "count": 1025,
733
+ "record": null,
734
+ "registrations": [],
735
+ "retry": 2,
736
+ "scan_index": 1024,
737
+ "selected": null,
738
+ "status": "fatal-error-pending"
739
+ },
740
+ "effects": [],
741
+ "event_kind": 84,
742
+ "execution": {
743
+ "allocator": {
744
+ "trace_length": 50002,
745
+ "trace_sha256": "43f64dbf668af25a21a8cd490d43a0f19e6df99bb614bb0acb34b8d153634a57"
746
+ },
747
+ "caller": {
748
+ "stop": 153980,
749
+ "trace_length": 53,
750
+ "trace_sha256": "77e1d89497065f86ed67004bd11850fb66e268bf195473234f93637201fdd5e1"
751
+ },
752
+ "constructor": {
753
+ "stop": 277698,
754
+ "trace_length": 2,
755
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
756
+ }
757
+ },
758
+ "input": {
759
+ "allocation": {
760
+ "count": 1024,
761
+ "profile": 10,
762
+ "slots": [],
763
+ "start": 0,
764
+ "tick": 5000
765
+ },
766
+ "animation": 99,
767
+ "branch": "unflagged",
768
+ "busy": 1,
769
+ "clock": 0,
770
+ "complete": 0,
771
+ "duration": 5,
772
+ "flags": 2147516420,
773
+ "flags104": 2147483666,
774
+ "index": 3,
775
+ "tick": 5000,
776
+ "weapon": 305397771
777
+ },
778
+ "state": {
779
+ "animation": 99,
780
+ "busy": 0,
781
+ "clock": 0,
782
+ "complete": 0,
783
+ "event": [
784
+ 7,
785
+ 2147483649
786
+ ],
787
+ "flags": 2147516416,
788
+ "flags104": 2147483650,
789
+ "guards": [
790
+ 2864434397,
791
+ 287454020
792
+ ],
793
+ "weapon": 305397771
794
+ }
795
+ },
796
+ {
797
+ "allocation": {
798
+ "count": 1022,
799
+ "record": null,
800
+ "registrations": [],
801
+ "retry": 0,
802
+ "scan_index": 0,
803
+ "selected": null,
804
+ "status": "diagnostic-loop-pending"
805
+ },
806
+ "effects": [
807
+ {
808
+ "format": "426f6d62207761732064656675736564206279202569210a",
809
+ "op": "log",
810
+ "slot": 2
811
+ }
812
+ ],
813
+ "event_kind": 84,
814
+ "execution": {
815
+ "allocator": {
816
+ "trace_length": 24943,
817
+ "trace_sha256": "c8fbb3918efeb8510bf53c0c85615279107c67891c1c6fb45b40d9a70db39082"
818
+ },
819
+ "caller": {
820
+ "stop": 153721,
821
+ "trace_length": 77,
822
+ "trace_sha256": "2c9a5463b1ec4d62958051e6ca65b8bead2f292bf35781a8eab5f8be05aed8ea"
823
+ },
824
+ "constructor": {
825
+ "stop": 277698,
826
+ "trace_length": 2,
827
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
828
+ }
829
+ },
830
+ "input": {
831
+ "allocation": {
832
+ "count": 1022,
833
+ "profile": 8,
834
+ "slots": [],
835
+ "start": 0,
836
+ "tick": 5000
837
+ },
838
+ "animation": 99,
839
+ "branch": "finish",
840
+ "busy": 1,
841
+ "clock": 0,
842
+ "complete": 0,
843
+ "duration": 5,
844
+ "flags": 2147516512,
845
+ "flags104": 2147483666,
846
+ "index": 3,
847
+ "tick": 5000,
848
+ "weapon": 305397771
849
+ },
850
+ "state": {
851
+ "animation": 99,
852
+ "busy": 0,
853
+ "clock": 0,
854
+ "complete": 1,
855
+ "event": [
856
+ 7,
857
+ 2147483649
858
+ ],
859
+ "flags": 2147516512,
860
+ "flags104": 2147483650,
861
+ "guards": [
862
+ 2864434397,
863
+ 287454020
864
+ ],
865
+ "weapon": 305397771
866
+ }
867
+ },
868
+ {
869
+ "allocation": {
870
+ "count": 1022,
871
+ "record": null,
872
+ "registrations": [],
873
+ "retry": 0,
874
+ "scan_index": 0,
875
+ "selected": null,
876
+ "status": "diagnostic-loop-pending"
877
+ },
878
+ "effects": [
879
+ {
880
+ "format": "426f6d62207761732064656675736564206279202569210a",
881
+ "op": "log",
882
+ "slot": 2
883
+ }
884
+ ],
885
+ "event_kind": 84,
886
+ "execution": {
887
+ "allocator": {
888
+ "trace_length": 24943,
889
+ "trace_sha256": "c8fbb3918efeb8510bf53c0c85615279107c67891c1c6fb45b40d9a70db39082"
890
+ },
891
+ "caller": {
892
+ "stop": 153721,
893
+ "trace_length": 77,
894
+ "trace_sha256": "2c9a5463b1ec4d62958051e6ca65b8bead2f292bf35781a8eab5f8be05aed8ea"
895
+ },
896
+ "constructor": {
897
+ "stop": 277698,
898
+ "trace_length": 2,
899
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
900
+ }
901
+ },
902
+ "input": {
903
+ "allocation": {
904
+ "count": 1022,
905
+ "profile": 8,
906
+ "slots": [],
907
+ "start": 0,
908
+ "tick": 5000
909
+ },
910
+ "animation": 99,
911
+ "branch": "finish",
912
+ "busy": 1,
913
+ "clock": 0,
914
+ "complete": 0,
915
+ "duration": 5,
916
+ "flags": 2147516420,
917
+ "flags104": 2147483666,
918
+ "index": 3,
919
+ "tick": 5000,
920
+ "weapon": 305397771
921
+ },
922
+ "state": {
923
+ "animation": 99,
924
+ "busy": 0,
925
+ "clock": 0,
926
+ "complete": 1,
927
+ "event": [
928
+ 7,
929
+ 2147483649
930
+ ],
931
+ "flags": 2147516416,
932
+ "flags104": 2147483650,
933
+ "guards": [
934
+ 2864434397,
935
+ 287454020
936
+ ],
937
+ "weapon": 305397771
938
+ }
939
+ },
940
+ {
941
+ "allocation": {
942
+ "count": 1025,
943
+ "record": null,
944
+ "registrations": [],
945
+ "retry": 2,
946
+ "scan_index": 1024,
947
+ "selected": null,
948
+ "status": "fatal-error-pending"
949
+ },
950
+ "effects": [
951
+ {
952
+ "format": "426f6d62207761732064656675736564206279202569210a",
953
+ "op": "log",
954
+ "slot": 2
955
+ }
956
+ ],
957
+ "event_kind": 84,
958
+ "execution": {
959
+ "allocator": {
960
+ "trace_length": 50002,
961
+ "trace_sha256": "43f64dbf668af25a21a8cd490d43a0f19e6df99bb614bb0acb34b8d153634a57"
962
+ },
963
+ "caller": {
964
+ "stop": 153721,
965
+ "trace_length": 77,
966
+ "trace_sha256": "2c9a5463b1ec4d62958051e6ca65b8bead2f292bf35781a8eab5f8be05aed8ea"
967
+ },
968
+ "constructor": {
969
+ "stop": 277698,
970
+ "trace_length": 2,
971
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
972
+ }
973
+ },
974
+ "input": {
975
+ "allocation": {
976
+ "count": 1024,
977
+ "profile": 10,
978
+ "slots": [],
979
+ "start": 0,
980
+ "tick": 5000
981
+ },
982
+ "animation": 99,
983
+ "branch": "finish",
984
+ "busy": 1,
985
+ "clock": 0,
986
+ "complete": 0,
987
+ "duration": 5,
988
+ "flags": 2147516512,
989
+ "flags104": 2147483666,
990
+ "index": 3,
991
+ "tick": 5000,
992
+ "weapon": 305397771
993
+ },
994
+ "state": {
995
+ "animation": 99,
996
+ "busy": 0,
997
+ "clock": 0,
998
+ "complete": 1,
999
+ "event": [
1000
+ 7,
1001
+ 2147483649
1002
+ ],
1003
+ "flags": 2147516512,
1004
+ "flags104": 2147483650,
1005
+ "guards": [
1006
+ 2864434397,
1007
+ 287454020
1008
+ ],
1009
+ "weapon": 305397771
1010
+ }
1011
+ },
1012
+ {
1013
+ "allocation": {
1014
+ "count": 1025,
1015
+ "record": null,
1016
+ "registrations": [],
1017
+ "retry": 2,
1018
+ "scan_index": 1024,
1019
+ "selected": null,
1020
+ "status": "fatal-error-pending"
1021
+ },
1022
+ "effects": [
1023
+ {
1024
+ "format": "426f6d62207761732064656675736564206279202569210a",
1025
+ "op": "log",
1026
+ "slot": 2
1027
+ }
1028
+ ],
1029
+ "event_kind": 84,
1030
+ "execution": {
1031
+ "allocator": {
1032
+ "trace_length": 50002,
1033
+ "trace_sha256": "43f64dbf668af25a21a8cd490d43a0f19e6df99bb614bb0acb34b8d153634a57"
1034
+ },
1035
+ "caller": {
1036
+ "stop": 153721,
1037
+ "trace_length": 77,
1038
+ "trace_sha256": "2c9a5463b1ec4d62958051e6ca65b8bead2f292bf35781a8eab5f8be05aed8ea"
1039
+ },
1040
+ "constructor": {
1041
+ "stop": 277698,
1042
+ "trace_length": 2,
1043
+ "trace_sha256": "8ceefe64da01c8dd7e62e650b5622967e90a5e56bb98af17bb44cc342f631340"
1044
+ }
1045
+ },
1046
+ "input": {
1047
+ "allocation": {
1048
+ "count": 1024,
1049
+ "profile": 10,
1050
+ "slots": [],
1051
+ "start": 0,
1052
+ "tick": 5000
1053
+ },
1054
+ "animation": 99,
1055
+ "branch": "finish",
1056
+ "busy": 1,
1057
+ "clock": 0,
1058
+ "complete": 0,
1059
+ "duration": 5,
1060
+ "flags": 2147516420,
1061
+ "flags104": 2147483666,
1062
+ "index": 3,
1063
+ "tick": 5000,
1064
+ "weapon": 305397771
1065
+ },
1066
+ "state": {
1067
+ "animation": 99,
1068
+ "busy": 0,
1069
+ "clock": 0,
1070
+ "complete": 1,
1071
+ "event": [
1072
+ 7,
1073
+ 2147483649
1074
+ ],
1075
+ "flags": 2147516416,
1076
+ "flags104": 2147483650,
1077
+ "guards": [
1078
+ 2864434397,
1079
+ 287454020
1080
+ ],
1081
+ "weapon": 305397771
1082
+ }
1083
+ }
1084
+ ],
1085
+ "sha256": "a589351dfe517470a1b121dd2164714987d9e4577bf00c6486e1540035d7a79d",
1086
+ "source": {
1087
+ "archive": "zUrT43_qvm.pk3",
1088
+ "archive_sha256": "b59bf0c5bedf11d50e0edd220da7eade96de40601e98ae14c54c819047df0796",
1089
+ "member": {
1090
+ "bytes": 983300,
1091
+ "comment_hex": "",
1092
+ "compressed_bytes": 246560,
1093
+ "compression": 8,
1094
+ "crc32": "98ea1768",
1095
+ "create_system": 0,
1096
+ "create_version": 63,
1097
+ "date_time": [
1098
+ 2018,
1099
+ 6,
1100
+ 18,
1101
+ 22,
1102
+ 11,
1103
+ 50
1104
+ ],
1105
+ "directory": false,
1106
+ "entry_index": 2,
1107
+ "external_attr": 32,
1108
+ "extra_hex": "0a0020000000000001001800d1e24e974007d40116dcbf962f1fd20116dcbf962f1fd201",
1109
+ "extract_version": 20,
1110
+ "flags": 0,
1111
+ "header_offset": 221309,
1112
+ "internal_attr": 0,
1113
+ "occurrence": 0,
1114
+ "output": "assets/extracted/zUrT43_qvm.pk3/members/000002/vm/qagame.qvm",
1115
+ "path": "vm/qagame.qvm",
1116
+ "sha256": "a589351dfe517470a1b121dd2164714987d9e4577bf00c6486e1540035d7a79d",
1117
+ "type": "member",
1118
+ "volume": 0
1119
+ }
1120
+ }
1121
+ }
docs/research/qvm-resumer-audit.json CHANGED
@@ -1433,6 +1433,17 @@
1433
  "repeated_calls_opt_in": false,
1434
  "repeated_calls_setting": "default_false"
1435
  },
 
 
 
 
 
 
 
 
 
 
 
1436
  {
1437
  "backward_conditional_branches": [],
1438
  "calls": [
@@ -10694,10 +10705,10 @@
10694
  }
10695
  },
10696
  "summary": {
10697
- "call_expressions": 216,
10698
- "files": 165,
10699
  "legacy_expressions": 158,
10700
- "nonliteral_ranges": 32,
10701
  "unresolved_mode_expressions": 3
10702
  }
10703
  }
 
1433
  "repeated_calls_opt_in": false,
1434
  "repeated_calls_setting": "default_false"
1435
  },
1436
+ {
1437
+ "backward_conditional_branches": [],
1438
+ "calls": [],
1439
+ "explicit_result_offsets": null,
1440
+ "helper": "qvm_trace_support.resume",
1441
+ "line": 30,
1442
+ "literal_range": null,
1443
+ "path": "scripts/analyze_qvm_defuse_allocation_terminal.py",
1444
+ "repeated_calls_opt_in": true,
1445
+ "repeated_calls_setting": "literal_true"
1446
+ },
1447
  {
1448
  "backward_conditional_branches": [],
1449
  "calls": [
 
10705
  }
10706
  },
10707
  "summary": {
10708
+ "call_expressions": 217,
10709
+ "files": 166,
10710
  "legacy_expressions": 158,
10711
+ "nonliteral_ranges": 33,
10712
  "unresolved_mode_expressions": 3
10713
  }
10714
  }
scripts/analyze_deferred_auth.py CHANGED
@@ -17,7 +17,7 @@ def signed32(value):
17
 
18
 
19
  def trace_slice(instructions, start, stop, memory, locals_map, limit=256, byte_memory=None, capture_stack=False,
20
- halt_on_leave=False, stop_targets=(), call_results=None, resume_at=None, local_base=0x40000000, skip_initial_stop=False, coherent_memory=False):
21
  """Evaluate only a selected straight/bounded slice against synthetic memory.
22
 
23
  Record calls rather than entering callees. Reject unknown reads/opcodes and
@@ -196,6 +196,8 @@ def trace_slice(instructions, start, stop, memory, locals_map, limit=256, byte_m
196
  result = {'trace': trace, 'calls': calls, 'memory': memory, 'byte_writes': byte_writes}
197
  if bytes_map is not None:
198
  result['byte_memory'] = bytes_map
 
 
199
  if capture_stack:
200
  result['stack'] = stack
201
  if stop_targets:
 
17
 
18
 
19
  def trace_slice(instructions, start, stop, memory, locals_map, limit=256, byte_memory=None, capture_stack=False,
20
+ halt_on_leave=False, stop_targets=(), call_results=None, resume_at=None, local_base=0x40000000, skip_initial_stop=False, coherent_memory=False, capture_arguments=False):
21
  """Evaluate only a selected straight/bounded slice against synthetic memory.
22
 
23
  Record calls rather than entering callees. Reject unknown reads/opcodes and
 
196
  result = {'trace': trace, 'calls': calls, 'memory': memory, 'byte_writes': byte_writes}
197
  if bytes_map is not None:
198
  result['byte_memory'] = bytes_map
199
+ if capture_arguments:
200
+ result['pending_arguments'] = args
201
  if capture_stack:
202
  result['stack'] = stack
203
  if stop_targets:
scripts/analyze_qvm_defuse_allocation_terminal.py ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Recover caller and constructor prefixes before a defuse allocator terminal."""
2
+ from itertools import product
3
+ from pathlib import Path
4
+
5
+ from analyze_qvm import write_json
6
+ from qvm_defuse_support import BASE, BOMB, CLIENT, ENTITY, defaults, handlers, state_seed, view
7
+ from qvm_location_feedback_support import allocation_fixtures, allocation_run, allocation_seed, seed
8
+ from qvm_research_support import source
9
+ from qvm_string_memory_support import frame_args
10
+ from qvm_trace_support import resume
11
+
12
+
13
+ # Both cancellation branches clear the caller before requesting event 84.
14
+ CALLS = {
15
+ 'start': (153774, 153890, 83),
16
+ 'far': (154008, 154061, 84),
17
+ 'unflagged': (153927, 153980, 84),
18
+ 'finish': (153644, 153721, 84),
19
+ }
20
+
21
+
22
+ def fixtures():
23
+ for branch, pool_case, flags in product(CALLS, (8, 10), (0x80008060, 0x80008004)):
24
+ pool = allocation_fixtures()[pool_case]
25
+ yield dict(defaults(), branch=branch, allocation=pool, tick=pool['tick'],
26
+ flags=flags, flags104=0x80000012, busy=int(branch != 'start'), clock=0)
27
+
28
+
29
+ def prefix(ins, m, b, start, stop, base, captures=None):
30
+ m, p = resume(ins, start, stop, m, base, boundaries=(stop,), handlers=captures or {},
31
+ byte_inputs=b, repeated_calls=True, sync_child_words=True,
32
+ coherent_memory=True, byte_handlers=True, capture_byte_memory=True,
33
+ capture_arguments=True)
34
+ assert p['stop'] == stop
35
+ execution = {key: p[key] for key in ('stop', 'trace_length', 'trace_sha256')}
36
+ return m, p['byte_memory'], execution, p['pending_arguments']
37
+
38
+
39
+ def probe(ins, m, b, a):
40
+ state_seed(m, a)
41
+ allocation_seed(m, a['allocation'])
42
+ m, b = frame_args(m, b, {BASE + 28: CLIENT, BASE + 32: BOMB, BASE + 100: ENTITY})
43
+ start, call, expected_event = CALLS[a['branch']]
44
+ effects = []
45
+ m, b, caller, args = prefix(ins, m, b, start, call, BASE, {7259: handlers(effects)[7259]})
46
+ assert ins[call - 1]['operand'] == 277695
47
+ assert (args[8], args[12]) == (BOMB + 24, expected_event)
48
+ constructor_base = BASE + 0x10000
49
+ m, b = frame_args(m, b, {constructor_base + 44: args[8],
50
+ constructor_base + 48: args[12]})
51
+ m, b, constructor, args = prefix(ins, m, b, 277696, 277698, constructor_base)
52
+ assert ins[277697]['operand'] == 277165 and not args
53
+ m, result = allocation_run(ins, m)
54
+ assert result['selected'] is None
55
+ allocator = result.pop('execution')
56
+ return dict(input=a, state=view(m, a), event_kind=expected_event, effects=effects,
57
+ allocation=result, execution={'caller': caller, 'constructor': constructor,
58
+ 'allocator': allocator})
59
+
60
+
61
+ def main():
62
+ meta, raw, header, ins = source()
63
+ probes = [probe(ins, *seed(raw, header, a), a) for a in fixtures()]
64
+ write_json(Path('docs/research/qvm-defuse-allocation-terminal.json'), {
65
+ 'source': meta['source'], 'sha256': meta['sha256'], 'probes': probes,
66
+ 'limits': 'Actual caller, constructor and allocator prefixes. Stop before diagnostic/fatal execution; no allocator return or post-allocation effects simulated.',
67
+ })
68
+
69
+
70
+ if __name__ == '__main__':
71
+ main()
scripts/qvm_trace_support.py CHANGED
@@ -3,7 +3,7 @@ from analyze_deferred_auth import trace_slice
3
  from analyze_bsp_references import trace_fields
4
  from qvm_call_result_support import patch_result
5
 
6
- def resume(ins,start,stop,m,base,pc=None,handlers=None,boundaries=(),byte_inputs=None,limit=8192,result_offsets=None,repeated_calls=False,sync_child_words=False,segment_limit=512,coherent_memory=False,byte_handlers=False,capture_byte_memory=False):
7
  if type(segment_limit) is not int or not 1<=segment_limit<=8192:raise ValueError('invalid bounded segment budget')
8
  from types import MappingProxyType
9
  from qvm_byte_memory_support import write_bytes
@@ -13,7 +13,7 @@ def resume(ins,start,stop,m,base,pc=None,handlers=None,boundaries=(),byte_inputs
13
  handlers=handlers or {};pc=start if pc is None else pc;m=dict(m);trace=[];calls=[];children=[];writes=[];bytes_map=dict(byte_inputs or {});ret=None
14
  points=[i['index']+2 for i in ins[start:stop] if i['opcode']=='CALL']+list(boundaries)
15
  for _ in range(segment_limit):
16
- t=trace_slice(ins,start,stop,m,{},resume_at=pc,stop_targets=points if repeated_calls else [p for p in points if p!=pc],local_base=base,byte_memory=bytes_map,halt_on_leave=True,capture_stack=True,limit=limit,skip_initial_stop=repeated_calls,coherent_memory=coherent_memory);m=t['memory'];pc=t.get('stop',stop);trace+=t['trace'];calls+=t['calls'];writes+=t['byte_writes'];bytes_map=t['byte_memory']
17
  if repeated_calls and t['calls'] and t['stack'] and not (t['trace'] and ins[t['trace'][-1]]['opcode']=='LEAVE'):
18
  raise ValueError('nonempty bounded CALL return boundary')
19
  for c in t['calls']:
@@ -27,7 +27,7 @@ def resume(ins,start,stop,m,base,pc=None,handlers=None,boundaries=(),byte_inputs
27
  if t['trace'] and ins[t['trace'][-1]]['opcode']=='LEAVE':ret=t['stack'][-1];break
28
  if pc==stop or pc in boundaries:break
29
  else:raise ValueError('Trace segment budget exceeded')
30
- return m,{**({'byte_memory':bytes_map} if capture_byte_memory else {}),'stop':pc,'return':ret,'calls':calls,'children':children,'byte_writes':writes,**trace_fields({'trace':trace},False)}
31
 
32
  def captured(target,requests):
33
  def call(ins,m,args):
 
3
  from analyze_bsp_references import trace_fields
4
  from qvm_call_result_support import patch_result
5
 
6
+ def resume(ins,start,stop,m,base,pc=None,handlers=None,boundaries=(),byte_inputs=None,limit=8192,result_offsets=None,repeated_calls=False,sync_child_words=False,segment_limit=512,coherent_memory=False,byte_handlers=False,capture_byte_memory=False,capture_arguments=False):
7
  if type(segment_limit) is not int or not 1<=segment_limit<=8192:raise ValueError('invalid bounded segment budget')
8
  from types import MappingProxyType
9
  from qvm_byte_memory_support import write_bytes
 
13
  handlers=handlers or {};pc=start if pc is None else pc;m=dict(m);trace=[];calls=[];children=[];writes=[];bytes_map=dict(byte_inputs or {});ret=None
14
  points=[i['index']+2 for i in ins[start:stop] if i['opcode']=='CALL']+list(boundaries)
15
  for _ in range(segment_limit):
16
+ t=trace_slice(ins,start,stop,m,{},resume_at=pc,stop_targets=points if repeated_calls else [p for p in points if p!=pc],local_base=base,byte_memory=bytes_map,halt_on_leave=True,capture_stack=True,limit=limit,skip_initial_stop=repeated_calls,coherent_memory=coherent_memory,capture_arguments=capture_arguments);m=t['memory'];pc=t.get('stop',stop);trace+=t['trace'];calls+=t['calls'];writes+=t['byte_writes'];bytes_map=t['byte_memory']
17
  if repeated_calls and t['calls'] and t['stack'] and not (t['trace'] and ins[t['trace'][-1]]['opcode']=='LEAVE'):
18
  raise ValueError('nonempty bounded CALL return boundary')
19
  for c in t['calls']:
 
27
  if t['trace'] and ins[t['trace'][-1]]['opcode']=='LEAVE':ret=t['stack'][-1];break
28
  if pc==stop or pc in boundaries:break
29
  else:raise ValueError('Trace segment budget exceeded')
30
+ return m,{**({'pending_arguments':t['pending_arguments']} if capture_arguments else {}),**({'byte_memory':bytes_map} if capture_byte_memory else {}),'stop':pc,'return':ret,'calls':calls,'children':children,'byte_writes':writes,**trace_fields({'trace':trace},False)}
31
 
32
  def captured(target,requests):
33
  def call(ins,m,args):
scripts/test_qvm_defuse_allocation_terminal.py ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import unittest
3
+ from pathlib import Path
4
+
5
+ from qvm_location_feedback_oracle import allocation
6
+
7
+
8
+ class OriginalTerminalTests(unittest.TestCase):
9
+ def test_terminal_prefixes(self):
10
+ report = json.loads(Path('docs/research/qvm-defuse-allocation-terminal.json').read_text())
11
+ self.assertEqual(len(report['sha256']), 64)
12
+ self.assertEqual(len(report['probes']), 16)
13
+ for row in report['probes']:
14
+ a = row['input']
15
+ branch = a['branch']
16
+ with self.subTest(branch=branch, count=a['allocation']['count'], flags=a['flags']):
17
+ begin = branch == 'start'
18
+ finish = branch == 'finish'
19
+ animated = begin and bool(a['flags'] & 32)
20
+ flags = a['flags'] & ~96 if animated else a['flags']
21
+ expected = dict(flags=flags | 4 if begin else flags & ~4,
22
+ flags104=a['flags104'] | 16 if begin else a['flags104'] & ~16,
23
+ busy=int(begin), clock=a['tick'] if begin else 0,
24
+ complete=int(finish), animation=2 if animated else a['animation'],
25
+ weapon=a['weapon'], event=[7, 0x80000001],
26
+ guards=[0xaabbccdd, 0x11223344])
27
+ self.assertEqual(row['state'], expected)
28
+ self.assertEqual(row['event_kind'], 83 if begin else 84)
29
+ self.assertEqual(row['allocation'], allocation(a['allocation']))
30
+ self.assertEqual(row['effects'], [
31
+ dict(op='log', format=b'Bomb was defused by %i!\n'.hex(), slot=2)
32
+ ] if finish else [])
33
+ self.assertTrue(all(trace['trace_length'] > 0 for trace in row['execution'].values()))
34
+ self.assertEqual(row['execution']['constructor']['stop'], 277698)
35
+
36
+
37
+ if __name__ == '__main__':
38
+ unittest.main()
xtask/checks.tsv CHANGED
@@ -4739,3 +4739,11 @@ edge crates/urt-gameplay/src/bin/urt-location-feedback.rs scripts/analyze_rust_l
4739
  edge crates/urt-gameplay/src/qvm_format.rs scripts/analyze_rust_location_allocated_defuse.py
4740
  edge crates/urt-gameplay/src/defuse.rs scripts/analyze_rust_location_allocated_defuse.py
4741
  edge crates/urt-gameplay/src/transition.rs scripts/analyze_rust_location_allocated_defuse.py
 
 
 
 
 
 
 
 
 
4739
  edge crates/urt-gameplay/src/qvm_format.rs scripts/analyze_rust_location_allocated_defuse.py
4740
  edge crates/urt-gameplay/src/defuse.rs scripts/analyze_rust_location_allocated_defuse.py
4741
  edge crates/urt-gameplay/src/transition.rs scripts/analyze_rust_location_allocated_defuse.py
4742
+ report scripts/analyze_qvm_defuse_allocation_terminal.py docs/research/qvm-defuse-allocation-terminal.json
4743
+ edge docs/research/qvm-defuse-allocation-terminal.json scripts/test_qvm_defuse_allocation_terminal.py
4744
+ group qvm-defuse-allocation-terminal scripts/analyze_qvm_defuse_allocation_terminal.py
4745
+ edge scripts/qvm_defuse_support.py scripts/analyze_qvm_defuse_allocation_terminal.py
4746
+ edge scripts/qvm_location_feedback_support.py scripts/analyze_qvm_defuse_allocation_terminal.py
4747
+ edge scripts/qvm_location_feedback_oracle.py scripts/test_qvm_defuse_allocation_terminal.py
4748
+ edge scripts/analyze_qvm_entity_allocate.py scripts/analyze_qvm_defuse_allocation_terminal.py
4749
+ edge scripts/analyze_qvm_defuse_allocation_terminal.py scripts/analyze_qvm_resumer_audit.py