nmarshall commited on
Commit
d44a992
·
1 Parent(s): 5db05d9

qvm: trace defuse log dispatch

Browse files
docs/FINDINGS.md CHANGED
@@ -2055,3 +2055,5 @@ RE-1034–1043 batch validation passed:2,018 Python tests,339 Rust tests,146 det
2055
  - The Rust expiry and allocated defuse APIs agree with source slot reuse, free timestamps and request ordering across both replay schedules. [Rust lifecycle parity](research/RUST_DEFUSE_EVENT_LIFECYCLE.md).
2056
 
2057
  - Rust defuse callers now receive typed team radio, score and counter actions. [Defuse feedback action names](research/RUST_DEFUSE_EFFECT_NAMES.md).
 
 
 
2055
  - The Rust expiry and allocated defuse APIs agree with source slot reuse, free timestamps and request ordering across both replay schedules. [Rust lifecycle parity](research/RUST_DEFUSE_EVENT_LIFECYCLE.md).
2056
 
2057
  - Rust defuse callers now receive typed team radio, score and counter actions. [Defuse feedback action names](research/RUST_DEFUSE_EFFECT_NAMES.md).
2058
+
2059
+ - The defuse completion log sends an untimestamped console message and a timestamped file record according to separate gates. [Source logger evidence](research/QVM_DEFUSE_LOG_DISPATCH.md).
docs/PROVISIONAL_TODO.md CHANGED
@@ -2117,3 +2117,5 @@ RE-974–983 completed routing, command rewrite, inactivity, movement-parameter
2117
  - [x] RE-1054 Verify Rust shared-pool defuse event lifecycle parity ([evidence](research/RUST_DEFUSE_EVENT_LIFECYCLE.md)).
2118
 
2119
  - [x] RE-1055 Name Rust defuse feedback actions by their recovered meaning ([evidence](research/RUST_DEFUSE_EFFECT_NAMES.md)).
 
 
 
2117
  - [x] RE-1054 Verify Rust shared-pool defuse event lifecycle parity ([evidence](research/RUST_DEFUSE_EVENT_LIFECYCLE.md)).
2118
 
2119
  - [x] RE-1055 Name Rust defuse feedback actions by their recovered meaning ([evidence](research/RUST_DEFUSE_EFFECT_NAMES.md)).
2120
+
2121
+ - [x] RE-1056 Trace the defuse completion logger and its console and file gates ([evidence](research/QVM_DEFUSE_LOG_DISPATCH.md)).
docs/RESEARCH_LEDGER.md CHANGED
@@ -2895,3 +2895,7 @@ The allocated callback and per-entity expiry gate match both seven-frame source
2895
  ## 2026-11-25 — RE-1055 Name Rust defuse feedback actions by their recovered meaning
2896
 
2897
  Defuse exposes team radio, score addition and counter increments as typed Rust actions. Historical evidence tags remain available through the probe serializer. See [typed defuse feedback](research/RUST_DEFUSE_EFFECT_NAMES.md).
 
 
 
 
 
2895
  ## 2026-11-25 — RE-1055 Name Rust defuse feedback actions by their recovered meaning
2896
 
2897
  Defuse exposes team radio, score addition and counter increments as typed Rust actions. Historical evidence tags remain available through the probe serializer. See [typed defuse feedback](research/RUST_DEFUSE_EFFECT_NAMES.md).
2898
+
2899
+ ## 2026-11-25 — RE-1056 Trace the defuse completion logger and its console and file gates
2900
+
2901
+ Actual logger 7259 formats the timestamp and defuse message and issues independent console and file output requests. The console gets the body, while the file payload includes the timestamp. See [logger evidence](research/QVM_DEFUSE_LOG_DISPATCH.md).
docs/research/QVM_DEFUSE_LOG_DISPATCH.md ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Defuse completion log dispatch
2
+
3
+ [Twenty-three callback cases](qvm-defuse-log-dispatch.json) execute the defuse logger when completion reaches QVM 7259. The logger formats a right-aligned three-column minute field and splits the remaining seconds into two decimal digits using the current game tick. It writes the body after that timestamp. The console wrapper receives just the body under the console gate. The file trap receives the timestamp and body, including the newline and excluding the NUL, under an independent nonzero handle gate. Console dispatch precedes the file write when both are enabled.
4
+
5
+ The probe executes the actual formatter and string length routine, including a minute rollover and a tick past one hour. Its bounded copy model accepts the logger's 2048-byte capacity. The first caller effect remains the log, ahead of event allocation, score and counter updates. Waiting, cancellation and start do not enter 7259. Console wrapper 2294 and native file write −13 are captured.
docs/research/QVM_LOCATION_ALLOCATION_BATCH.md CHANGED
@@ -91,3 +91,5 @@ RE-1053 traces [defuse allocation, expiry and reuse across seven frames](QVM_DEF
91
  RE-1054 verifies [the Rust shared-pool replay](RUST_DEFUSE_EVENT_LIFECYCLE.md) against both seven-frame schedules. The fixture explicitly initializes the temporary slots with no client pointer or pending client event.
92
 
93
  RE-1055 replaces the gameplay effect names with [typed radio, score and counter actions](RUST_DEFUSE_EFFECT_NAMES.md). The evidence serializer retains the historical report tags.
 
 
 
91
  RE-1054 verifies [the Rust shared-pool replay](RUST_DEFUSE_EVENT_LIFECYCLE.md) against both seven-frame schedules. The fixture explicitly initializes the temporary slots with no client pointer or pending client event.
92
 
93
  RE-1055 replaces the gameplay effect names with [typed radio, score and counter actions](RUST_DEFUSE_EFFECT_NAMES.md). The evidence serializer retains the historical report tags.
94
+
95
+ RE-1056 resolves the completion's [console and file log dispatch](QVM_DEFUSE_LOG_DISPATCH.md) before allocation. Native sinks are captured with their exact byte payloads.
docs/research/README.md CHANGED
@@ -1683,3 +1683,5 @@ The extension collector adds five focused tests for native tail calls, command-r
1683
  - [Defuse temporary-event lifecycle in Rust](RUST_DEFUSE_EVENT_LIFECYCLE.md)
1684
 
1685
  - [Typed defuse feedback actions](RUST_DEFUSE_EFFECT_NAMES.md)
 
 
 
1683
  - [Defuse temporary-event lifecycle in Rust](RUST_DEFUSE_EVENT_LIFECYCLE.md)
1684
 
1685
  - [Typed defuse feedback actions](RUST_DEFUSE_EFFECT_NAMES.md)
1686
+
1687
+ - [Defuse completion log dispatch](QVM_DEFUSE_LOG_DISPATCH.md)
docs/research/qvm-defuse-log-dispatch.json ADDED
@@ -0,0 +1,1788 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "limits": "Actual defuse and logger7259 with actual integer formatting, console wrapper and file write capture.",
3
+ "probes": [
4
+ {
5
+ "events": [
6
+ {
7
+ "format": "426f6d62207761732064656675736564206279202569210a",
8
+ "op": "log",
9
+ "slot": 2
10
+ },
11
+ {
12
+ "event": 84,
13
+ "op": "allocate"
14
+ },
15
+ {
16
+ "op": "teleport",
17
+ "slot": 2
18
+ },
19
+ {
20
+ "op": "award",
21
+ "slot": 2,
22
+ "value": 5
23
+ }
24
+ ],
25
+ "input": {
26
+ "allocation": {
27
+ "count": 64,
28
+ "profile": 0,
29
+ "slots": [],
30
+ "start": 0,
31
+ "tick": 10000
32
+ },
33
+ "animation": 99,
34
+ "bomb_first": 0,
35
+ "bomb_missing": 0,
36
+ "busy": 1,
37
+ "busy_slot": 0,
38
+ "client": 1,
39
+ "clock": 5000,
40
+ "complete": 0,
41
+ "connection": 2,
42
+ "console": 0,
43
+ "count": 3,
44
+ "delay": 1,
45
+ "distance": 10.0,
46
+ "duration": 5,
47
+ "enabled_a": 1,
48
+ "enabled_b": 1,
49
+ "entity": 1,
50
+ "event_flags": 305419864,
51
+ "flags": 2147516512,
52
+ "flags104": 2147483650,
53
+ "follow": 0,
54
+ "handle": 0,
55
+ "health": 1,
56
+ "index": 3,
57
+ "other_busy": 0,
58
+ "other_connection": 2,
59
+ "other_follow": 0,
60
+ "other_health": 1,
61
+ "other_team": 0,
62
+ "profile": 2,
63
+ "selector": 0,
64
+ "start": 8000,
65
+ "team": 0,
66
+ "tick": 10000,
67
+ "weapon": 305397771
68
+ },
69
+ "log_traces": [
70
+ {
71
+ "stop": 7365,
72
+ "trace_length": 81,
73
+ "trace_sha256": "af5c58a6fe27a826a2949be15659f48c4753ecd455fcb8b56f8d87ee8c9c81ba"
74
+ }
75
+ ],
76
+ "outputs": []
77
+ },
78
+ {
79
+ "events": [
80
+ {
81
+ "format": "426f6d62207761732064656675736564206279202569210a",
82
+ "op": "log",
83
+ "slot": 2
84
+ },
85
+ {
86
+ "event": 84,
87
+ "op": "allocate"
88
+ },
89
+ {
90
+ "op": "teleport",
91
+ "slot": 2
92
+ },
93
+ {
94
+ "op": "award",
95
+ "slot": 2,
96
+ "value": 5
97
+ }
98
+ ],
99
+ "input": {
100
+ "allocation": {
101
+ "count": 64,
102
+ "profile": 0,
103
+ "slots": [],
104
+ "start": 0,
105
+ "tick": 10000
106
+ },
107
+ "animation": 99,
108
+ "bomb_first": 0,
109
+ "bomb_missing": 0,
110
+ "busy": 1,
111
+ "busy_slot": 0,
112
+ "client": 1,
113
+ "clock": 5000,
114
+ "complete": 0,
115
+ "connection": 2,
116
+ "console": 0,
117
+ "count": 3,
118
+ "delay": 1,
119
+ "distance": 10.0,
120
+ "duration": 5,
121
+ "enabled_a": 1,
122
+ "enabled_b": 1,
123
+ "entity": 1,
124
+ "event_flags": 305419864,
125
+ "flags": 2147516512,
126
+ "flags104": 2147483650,
127
+ "follow": 0,
128
+ "handle": 7,
129
+ "health": 1,
130
+ "index": 3,
131
+ "other_busy": 0,
132
+ "other_connection": 2,
133
+ "other_follow": 0,
134
+ "other_health": 1,
135
+ "other_team": 0,
136
+ "profile": 2,
137
+ "selector": 0,
138
+ "start": 8000,
139
+ "team": 0,
140
+ "tick": 10000,
141
+ "weapon": 305397771
142
+ },
143
+ "log_traces": [
144
+ {
145
+ "stop": 7365,
146
+ "trace_length": 96,
147
+ "trace_sha256": "eb1de60b5879968d1956e724966aac435209d74533590f2398aaff98756524fb"
148
+ }
149
+ ],
150
+ "outputs": [
151
+ {
152
+ "handle": 7,
153
+ "op": "file",
154
+ "text": "2020303a313020426f6d622077617320646566757365642062792032210a"
155
+ }
156
+ ]
157
+ },
158
+ {
159
+ "events": [
160
+ {
161
+ "format": "426f6d62207761732064656675736564206279202569210a",
162
+ "op": "log",
163
+ "slot": 2
164
+ },
165
+ {
166
+ "event": 84,
167
+ "op": "allocate"
168
+ },
169
+ {
170
+ "op": "teleport",
171
+ "slot": 2
172
+ },
173
+ {
174
+ "op": "award",
175
+ "slot": 2,
176
+ "value": 5
177
+ }
178
+ ],
179
+ "input": {
180
+ "allocation": {
181
+ "count": 64,
182
+ "profile": 0,
183
+ "slots": [],
184
+ "start": 0,
185
+ "tick": 10000
186
+ },
187
+ "animation": 99,
188
+ "bomb_first": 0,
189
+ "bomb_missing": 0,
190
+ "busy": 1,
191
+ "busy_slot": 0,
192
+ "client": 1,
193
+ "clock": 5000,
194
+ "complete": 0,
195
+ "connection": 2,
196
+ "console": 1,
197
+ "count": 3,
198
+ "delay": 1,
199
+ "distance": 10.0,
200
+ "duration": 5,
201
+ "enabled_a": 1,
202
+ "enabled_b": 1,
203
+ "entity": 1,
204
+ "event_flags": 305419864,
205
+ "flags": 2147516512,
206
+ "flags104": 2147483650,
207
+ "follow": 0,
208
+ "handle": 0,
209
+ "health": 1,
210
+ "index": 3,
211
+ "other_busy": 0,
212
+ "other_connection": 2,
213
+ "other_follow": 0,
214
+ "other_health": 1,
215
+ "other_team": 0,
216
+ "profile": 2,
217
+ "selector": 0,
218
+ "start": 8000,
219
+ "team": 0,
220
+ "tick": 10000,
221
+ "weapon": 305397771
222
+ },
223
+ "log_traces": [
224
+ {
225
+ "stop": 7365,
226
+ "trace_length": 88,
227
+ "trace_sha256": "d70409457bae2a74759e6764f66c8cc92e16d4c38edea90811404ae7ebc32787"
228
+ }
229
+ ],
230
+ "outputs": [
231
+ {
232
+ "op": "console",
233
+ "text": "426f6d622077617320646566757365642062792032210a"
234
+ }
235
+ ]
236
+ },
237
+ {
238
+ "events": [
239
+ {
240
+ "format": "426f6d62207761732064656675736564206279202569210a",
241
+ "op": "log",
242
+ "slot": 2
243
+ },
244
+ {
245
+ "event": 84,
246
+ "op": "allocate"
247
+ },
248
+ {
249
+ "op": "teleport",
250
+ "slot": 2
251
+ },
252
+ {
253
+ "op": "award",
254
+ "slot": 2,
255
+ "value": 5
256
+ }
257
+ ],
258
+ "input": {
259
+ "allocation": {
260
+ "count": 64,
261
+ "profile": 0,
262
+ "slots": [],
263
+ "start": 0,
264
+ "tick": 10000
265
+ },
266
+ "animation": 99,
267
+ "bomb_first": 0,
268
+ "bomb_missing": 0,
269
+ "busy": 1,
270
+ "busy_slot": 0,
271
+ "client": 1,
272
+ "clock": 5000,
273
+ "complete": 0,
274
+ "connection": 2,
275
+ "console": 1,
276
+ "count": 3,
277
+ "delay": 1,
278
+ "distance": 10.0,
279
+ "duration": 5,
280
+ "enabled_a": 1,
281
+ "enabled_b": 1,
282
+ "entity": 1,
283
+ "event_flags": 305419864,
284
+ "flags": 2147516512,
285
+ "flags104": 2147483650,
286
+ "follow": 0,
287
+ "handle": 7,
288
+ "health": 1,
289
+ "index": 3,
290
+ "other_busy": 0,
291
+ "other_connection": 2,
292
+ "other_follow": 0,
293
+ "other_health": 1,
294
+ "other_team": 0,
295
+ "profile": 2,
296
+ "selector": 0,
297
+ "start": 8000,
298
+ "team": 0,
299
+ "tick": 10000,
300
+ "weapon": 305397771
301
+ },
302
+ "log_traces": [
303
+ {
304
+ "stop": 7365,
305
+ "trace_length": 103,
306
+ "trace_sha256": "88501f41fc5d4cb0c604de20a59dc5f36431ae7844050a36975e342a5bdd9237"
307
+ }
308
+ ],
309
+ "outputs": [
310
+ {
311
+ "op": "console",
312
+ "text": "426f6d622077617320646566757365642062792032210a"
313
+ },
314
+ {
315
+ "handle": 7,
316
+ "op": "file",
317
+ "text": "2020303a313020426f6d622077617320646566757365642062792032210a"
318
+ }
319
+ ]
320
+ },
321
+ {
322
+ "events": [
323
+ {
324
+ "format": "426f6d62207761732064656675736564206279202569210a",
325
+ "op": "log",
326
+ "slot": 2
327
+ },
328
+ {
329
+ "event": 84,
330
+ "op": "allocate"
331
+ },
332
+ {
333
+ "op": "teleport",
334
+ "slot": 2
335
+ },
336
+ {
337
+ "op": "award",
338
+ "slot": 2,
339
+ "value": 5
340
+ }
341
+ ],
342
+ "input": {
343
+ "allocation": {
344
+ "count": 64,
345
+ "profile": 0,
346
+ "slots": [],
347
+ "start": 0,
348
+ "tick": 59999
349
+ },
350
+ "animation": 99,
351
+ "bomb_first": 0,
352
+ "bomb_missing": 0,
353
+ "busy": 1,
354
+ "busy_slot": 0,
355
+ "client": 1,
356
+ "clock": 54999,
357
+ "complete": 0,
358
+ "connection": 2,
359
+ "console": 0,
360
+ "count": 3,
361
+ "delay": 1,
362
+ "distance": 10.0,
363
+ "duration": 5,
364
+ "enabled_a": 1,
365
+ "enabled_b": 1,
366
+ "entity": 1,
367
+ "event_flags": 305419864,
368
+ "flags": 2147516512,
369
+ "flags104": 2147483650,
370
+ "follow": 0,
371
+ "handle": 0,
372
+ "health": 1,
373
+ "index": 3,
374
+ "other_busy": 0,
375
+ "other_connection": 2,
376
+ "other_follow": 0,
377
+ "other_health": 1,
378
+ "other_team": 0,
379
+ "profile": 2,
380
+ "selector": 0,
381
+ "start": 57999,
382
+ "team": 0,
383
+ "tick": 59999,
384
+ "weapon": 305397771
385
+ },
386
+ "log_traces": [
387
+ {
388
+ "stop": 7365,
389
+ "trace_length": 81,
390
+ "trace_sha256": "af5c58a6fe27a826a2949be15659f48c4753ecd455fcb8b56f8d87ee8c9c81ba"
391
+ }
392
+ ],
393
+ "outputs": []
394
+ },
395
+ {
396
+ "events": [
397
+ {
398
+ "format": "426f6d62207761732064656675736564206279202569210a",
399
+ "op": "log",
400
+ "slot": 2
401
+ },
402
+ {
403
+ "event": 84,
404
+ "op": "allocate"
405
+ },
406
+ {
407
+ "op": "teleport",
408
+ "slot": 2
409
+ },
410
+ {
411
+ "op": "award",
412
+ "slot": 2,
413
+ "value": 5
414
+ }
415
+ ],
416
+ "input": {
417
+ "allocation": {
418
+ "count": 64,
419
+ "profile": 0,
420
+ "slots": [],
421
+ "start": 0,
422
+ "tick": 59999
423
+ },
424
+ "animation": 99,
425
+ "bomb_first": 0,
426
+ "bomb_missing": 0,
427
+ "busy": 1,
428
+ "busy_slot": 0,
429
+ "client": 1,
430
+ "clock": 54999,
431
+ "complete": 0,
432
+ "connection": 2,
433
+ "console": 0,
434
+ "count": 3,
435
+ "delay": 1,
436
+ "distance": 10.0,
437
+ "duration": 5,
438
+ "enabled_a": 1,
439
+ "enabled_b": 1,
440
+ "entity": 1,
441
+ "event_flags": 305419864,
442
+ "flags": 2147516512,
443
+ "flags104": 2147483650,
444
+ "follow": 0,
445
+ "handle": 7,
446
+ "health": 1,
447
+ "index": 3,
448
+ "other_busy": 0,
449
+ "other_connection": 2,
450
+ "other_follow": 0,
451
+ "other_health": 1,
452
+ "other_team": 0,
453
+ "profile": 2,
454
+ "selector": 0,
455
+ "start": 57999,
456
+ "team": 0,
457
+ "tick": 59999,
458
+ "weapon": 305397771
459
+ },
460
+ "log_traces": [
461
+ {
462
+ "stop": 7365,
463
+ "trace_length": 96,
464
+ "trace_sha256": "eb1de60b5879968d1956e724966aac435209d74533590f2398aaff98756524fb"
465
+ }
466
+ ],
467
+ "outputs": [
468
+ {
469
+ "handle": 7,
470
+ "op": "file",
471
+ "text": "2020303a353920426f6d622077617320646566757365642062792032210a"
472
+ }
473
+ ]
474
+ },
475
+ {
476
+ "events": [
477
+ {
478
+ "format": "426f6d62207761732064656675736564206279202569210a",
479
+ "op": "log",
480
+ "slot": 2
481
+ },
482
+ {
483
+ "event": 84,
484
+ "op": "allocate"
485
+ },
486
+ {
487
+ "op": "teleport",
488
+ "slot": 2
489
+ },
490
+ {
491
+ "op": "award",
492
+ "slot": 2,
493
+ "value": 5
494
+ }
495
+ ],
496
+ "input": {
497
+ "allocation": {
498
+ "count": 64,
499
+ "profile": 0,
500
+ "slots": [],
501
+ "start": 0,
502
+ "tick": 59999
503
+ },
504
+ "animation": 99,
505
+ "bomb_first": 0,
506
+ "bomb_missing": 0,
507
+ "busy": 1,
508
+ "busy_slot": 0,
509
+ "client": 1,
510
+ "clock": 54999,
511
+ "complete": 0,
512
+ "connection": 2,
513
+ "console": 1,
514
+ "count": 3,
515
+ "delay": 1,
516
+ "distance": 10.0,
517
+ "duration": 5,
518
+ "enabled_a": 1,
519
+ "enabled_b": 1,
520
+ "entity": 1,
521
+ "event_flags": 305419864,
522
+ "flags": 2147516512,
523
+ "flags104": 2147483650,
524
+ "follow": 0,
525
+ "handle": 0,
526
+ "health": 1,
527
+ "index": 3,
528
+ "other_busy": 0,
529
+ "other_connection": 2,
530
+ "other_follow": 0,
531
+ "other_health": 1,
532
+ "other_team": 0,
533
+ "profile": 2,
534
+ "selector": 0,
535
+ "start": 57999,
536
+ "team": 0,
537
+ "tick": 59999,
538
+ "weapon": 305397771
539
+ },
540
+ "log_traces": [
541
+ {
542
+ "stop": 7365,
543
+ "trace_length": 88,
544
+ "trace_sha256": "d70409457bae2a74759e6764f66c8cc92e16d4c38edea90811404ae7ebc32787"
545
+ }
546
+ ],
547
+ "outputs": [
548
+ {
549
+ "op": "console",
550
+ "text": "426f6d622077617320646566757365642062792032210a"
551
+ }
552
+ ]
553
+ },
554
+ {
555
+ "events": [
556
+ {
557
+ "format": "426f6d62207761732064656675736564206279202569210a",
558
+ "op": "log",
559
+ "slot": 2
560
+ },
561
+ {
562
+ "event": 84,
563
+ "op": "allocate"
564
+ },
565
+ {
566
+ "op": "teleport",
567
+ "slot": 2
568
+ },
569
+ {
570
+ "op": "award",
571
+ "slot": 2,
572
+ "value": 5
573
+ }
574
+ ],
575
+ "input": {
576
+ "allocation": {
577
+ "count": 64,
578
+ "profile": 0,
579
+ "slots": [],
580
+ "start": 0,
581
+ "tick": 59999
582
+ },
583
+ "animation": 99,
584
+ "bomb_first": 0,
585
+ "bomb_missing": 0,
586
+ "busy": 1,
587
+ "busy_slot": 0,
588
+ "client": 1,
589
+ "clock": 54999,
590
+ "complete": 0,
591
+ "connection": 2,
592
+ "console": 1,
593
+ "count": 3,
594
+ "delay": 1,
595
+ "distance": 10.0,
596
+ "duration": 5,
597
+ "enabled_a": 1,
598
+ "enabled_b": 1,
599
+ "entity": 1,
600
+ "event_flags": 305419864,
601
+ "flags": 2147516512,
602
+ "flags104": 2147483650,
603
+ "follow": 0,
604
+ "handle": 7,
605
+ "health": 1,
606
+ "index": 3,
607
+ "other_busy": 0,
608
+ "other_connection": 2,
609
+ "other_follow": 0,
610
+ "other_health": 1,
611
+ "other_team": 0,
612
+ "profile": 2,
613
+ "selector": 0,
614
+ "start": 57999,
615
+ "team": 0,
616
+ "tick": 59999,
617
+ "weapon": 305397771
618
+ },
619
+ "log_traces": [
620
+ {
621
+ "stop": 7365,
622
+ "trace_length": 103,
623
+ "trace_sha256": "88501f41fc5d4cb0c604de20a59dc5f36431ae7844050a36975e342a5bdd9237"
624
+ }
625
+ ],
626
+ "outputs": [
627
+ {
628
+ "op": "console",
629
+ "text": "426f6d622077617320646566757365642062792032210a"
630
+ },
631
+ {
632
+ "handle": 7,
633
+ "op": "file",
634
+ "text": "2020303a353920426f6d622077617320646566757365642062792032210a"
635
+ }
636
+ ]
637
+ },
638
+ {
639
+ "events": [
640
+ {
641
+ "format": "426f6d62207761732064656675736564206279202569210a",
642
+ "op": "log",
643
+ "slot": 2
644
+ },
645
+ {
646
+ "event": 84,
647
+ "op": "allocate"
648
+ },
649
+ {
650
+ "op": "teleport",
651
+ "slot": 2
652
+ },
653
+ {
654
+ "op": "award",
655
+ "slot": 2,
656
+ "value": 5
657
+ }
658
+ ],
659
+ "input": {
660
+ "allocation": {
661
+ "count": 64,
662
+ "profile": 0,
663
+ "slots": [],
664
+ "start": 0,
665
+ "tick": 60000
666
+ },
667
+ "animation": 99,
668
+ "bomb_first": 0,
669
+ "bomb_missing": 0,
670
+ "busy": 1,
671
+ "busy_slot": 0,
672
+ "client": 1,
673
+ "clock": 55000,
674
+ "complete": 0,
675
+ "connection": 2,
676
+ "console": 0,
677
+ "count": 3,
678
+ "delay": 1,
679
+ "distance": 10.0,
680
+ "duration": 5,
681
+ "enabled_a": 1,
682
+ "enabled_b": 1,
683
+ "entity": 1,
684
+ "event_flags": 305419864,
685
+ "flags": 2147516512,
686
+ "flags104": 2147483650,
687
+ "follow": 0,
688
+ "handle": 0,
689
+ "health": 1,
690
+ "index": 3,
691
+ "other_busy": 0,
692
+ "other_connection": 2,
693
+ "other_follow": 0,
694
+ "other_health": 1,
695
+ "other_team": 0,
696
+ "profile": 2,
697
+ "selector": 0,
698
+ "start": 58000,
699
+ "team": 0,
700
+ "tick": 60000,
701
+ "weapon": 305397771
702
+ },
703
+ "log_traces": [
704
+ {
705
+ "stop": 7365,
706
+ "trace_length": 81,
707
+ "trace_sha256": "af5c58a6fe27a826a2949be15659f48c4753ecd455fcb8b56f8d87ee8c9c81ba"
708
+ }
709
+ ],
710
+ "outputs": []
711
+ },
712
+ {
713
+ "events": [
714
+ {
715
+ "format": "426f6d62207761732064656675736564206279202569210a",
716
+ "op": "log",
717
+ "slot": 2
718
+ },
719
+ {
720
+ "event": 84,
721
+ "op": "allocate"
722
+ },
723
+ {
724
+ "op": "teleport",
725
+ "slot": 2
726
+ },
727
+ {
728
+ "op": "award",
729
+ "slot": 2,
730
+ "value": 5
731
+ }
732
+ ],
733
+ "input": {
734
+ "allocation": {
735
+ "count": 64,
736
+ "profile": 0,
737
+ "slots": [],
738
+ "start": 0,
739
+ "tick": 60000
740
+ },
741
+ "animation": 99,
742
+ "bomb_first": 0,
743
+ "bomb_missing": 0,
744
+ "busy": 1,
745
+ "busy_slot": 0,
746
+ "client": 1,
747
+ "clock": 55000,
748
+ "complete": 0,
749
+ "connection": 2,
750
+ "console": 0,
751
+ "count": 3,
752
+ "delay": 1,
753
+ "distance": 10.0,
754
+ "duration": 5,
755
+ "enabled_a": 1,
756
+ "enabled_b": 1,
757
+ "entity": 1,
758
+ "event_flags": 305419864,
759
+ "flags": 2147516512,
760
+ "flags104": 2147483650,
761
+ "follow": 0,
762
+ "handle": 7,
763
+ "health": 1,
764
+ "index": 3,
765
+ "other_busy": 0,
766
+ "other_connection": 2,
767
+ "other_follow": 0,
768
+ "other_health": 1,
769
+ "other_team": 0,
770
+ "profile": 2,
771
+ "selector": 0,
772
+ "start": 58000,
773
+ "team": 0,
774
+ "tick": 60000,
775
+ "weapon": 305397771
776
+ },
777
+ "log_traces": [
778
+ {
779
+ "stop": 7365,
780
+ "trace_length": 96,
781
+ "trace_sha256": "eb1de60b5879968d1956e724966aac435209d74533590f2398aaff98756524fb"
782
+ }
783
+ ],
784
+ "outputs": [
785
+ {
786
+ "handle": 7,
787
+ "op": "file",
788
+ "text": "2020313a303020426f6d622077617320646566757365642062792032210a"
789
+ }
790
+ ]
791
+ },
792
+ {
793
+ "events": [
794
+ {
795
+ "format": "426f6d62207761732064656675736564206279202569210a",
796
+ "op": "log",
797
+ "slot": 2
798
+ },
799
+ {
800
+ "event": 84,
801
+ "op": "allocate"
802
+ },
803
+ {
804
+ "op": "teleport",
805
+ "slot": 2
806
+ },
807
+ {
808
+ "op": "award",
809
+ "slot": 2,
810
+ "value": 5
811
+ }
812
+ ],
813
+ "input": {
814
+ "allocation": {
815
+ "count": 64,
816
+ "profile": 0,
817
+ "slots": [],
818
+ "start": 0,
819
+ "tick": 60000
820
+ },
821
+ "animation": 99,
822
+ "bomb_first": 0,
823
+ "bomb_missing": 0,
824
+ "busy": 1,
825
+ "busy_slot": 0,
826
+ "client": 1,
827
+ "clock": 55000,
828
+ "complete": 0,
829
+ "connection": 2,
830
+ "console": 1,
831
+ "count": 3,
832
+ "delay": 1,
833
+ "distance": 10.0,
834
+ "duration": 5,
835
+ "enabled_a": 1,
836
+ "enabled_b": 1,
837
+ "entity": 1,
838
+ "event_flags": 305419864,
839
+ "flags": 2147516512,
840
+ "flags104": 2147483650,
841
+ "follow": 0,
842
+ "handle": 0,
843
+ "health": 1,
844
+ "index": 3,
845
+ "other_busy": 0,
846
+ "other_connection": 2,
847
+ "other_follow": 0,
848
+ "other_health": 1,
849
+ "other_team": 0,
850
+ "profile": 2,
851
+ "selector": 0,
852
+ "start": 58000,
853
+ "team": 0,
854
+ "tick": 60000,
855
+ "weapon": 305397771
856
+ },
857
+ "log_traces": [
858
+ {
859
+ "stop": 7365,
860
+ "trace_length": 88,
861
+ "trace_sha256": "d70409457bae2a74759e6764f66c8cc92e16d4c38edea90811404ae7ebc32787"
862
+ }
863
+ ],
864
+ "outputs": [
865
+ {
866
+ "op": "console",
867
+ "text": "426f6d622077617320646566757365642062792032210a"
868
+ }
869
+ ]
870
+ },
871
+ {
872
+ "events": [
873
+ {
874
+ "format": "426f6d62207761732064656675736564206279202569210a",
875
+ "op": "log",
876
+ "slot": 2
877
+ },
878
+ {
879
+ "event": 84,
880
+ "op": "allocate"
881
+ },
882
+ {
883
+ "op": "teleport",
884
+ "slot": 2
885
+ },
886
+ {
887
+ "op": "award",
888
+ "slot": 2,
889
+ "value": 5
890
+ }
891
+ ],
892
+ "input": {
893
+ "allocation": {
894
+ "count": 64,
895
+ "profile": 0,
896
+ "slots": [],
897
+ "start": 0,
898
+ "tick": 60000
899
+ },
900
+ "animation": 99,
901
+ "bomb_first": 0,
902
+ "bomb_missing": 0,
903
+ "busy": 1,
904
+ "busy_slot": 0,
905
+ "client": 1,
906
+ "clock": 55000,
907
+ "complete": 0,
908
+ "connection": 2,
909
+ "console": 1,
910
+ "count": 3,
911
+ "delay": 1,
912
+ "distance": 10.0,
913
+ "duration": 5,
914
+ "enabled_a": 1,
915
+ "enabled_b": 1,
916
+ "entity": 1,
917
+ "event_flags": 305419864,
918
+ "flags": 2147516512,
919
+ "flags104": 2147483650,
920
+ "follow": 0,
921
+ "handle": 7,
922
+ "health": 1,
923
+ "index": 3,
924
+ "other_busy": 0,
925
+ "other_connection": 2,
926
+ "other_follow": 0,
927
+ "other_health": 1,
928
+ "other_team": 0,
929
+ "profile": 2,
930
+ "selector": 0,
931
+ "start": 58000,
932
+ "team": 0,
933
+ "tick": 60000,
934
+ "weapon": 305397771
935
+ },
936
+ "log_traces": [
937
+ {
938
+ "stop": 7365,
939
+ "trace_length": 103,
940
+ "trace_sha256": "88501f41fc5d4cb0c604de20a59dc5f36431ae7844050a36975e342a5bdd9237"
941
+ }
942
+ ],
943
+ "outputs": [
944
+ {
945
+ "op": "console",
946
+ "text": "426f6d622077617320646566757365642062792032210a"
947
+ },
948
+ {
949
+ "handle": 7,
950
+ "op": "file",
951
+ "text": "2020313a303020426f6d622077617320646566757365642062792032210a"
952
+ }
953
+ ]
954
+ },
955
+ {
956
+ "events": [
957
+ {
958
+ "format": "426f6d62207761732064656675736564206279202569210a",
959
+ "op": "log",
960
+ "slot": 2
961
+ },
962
+ {
963
+ "event": 84,
964
+ "op": "allocate"
965
+ },
966
+ {
967
+ "op": "teleport",
968
+ "slot": 2
969
+ },
970
+ {
971
+ "op": "award",
972
+ "slot": 2,
973
+ "value": 5
974
+ }
975
+ ],
976
+ "input": {
977
+ "allocation": {
978
+ "count": 64,
979
+ "profile": 0,
980
+ "slots": [],
981
+ "start": 0,
982
+ "tick": 125678
983
+ },
984
+ "animation": 99,
985
+ "bomb_first": 0,
986
+ "bomb_missing": 0,
987
+ "busy": 1,
988
+ "busy_slot": 0,
989
+ "client": 1,
990
+ "clock": 120678,
991
+ "complete": 0,
992
+ "connection": 2,
993
+ "console": 0,
994
+ "count": 3,
995
+ "delay": 1,
996
+ "distance": 10.0,
997
+ "duration": 5,
998
+ "enabled_a": 1,
999
+ "enabled_b": 1,
1000
+ "entity": 1,
1001
+ "event_flags": 305419864,
1002
+ "flags": 2147516512,
1003
+ "flags104": 2147483650,
1004
+ "follow": 0,
1005
+ "handle": 0,
1006
+ "health": 1,
1007
+ "index": 3,
1008
+ "other_busy": 0,
1009
+ "other_connection": 2,
1010
+ "other_follow": 0,
1011
+ "other_health": 1,
1012
+ "other_team": 0,
1013
+ "profile": 2,
1014
+ "selector": 0,
1015
+ "start": 123678,
1016
+ "team": 0,
1017
+ "tick": 125678,
1018
+ "weapon": 305397771
1019
+ },
1020
+ "log_traces": [
1021
+ {
1022
+ "stop": 7365,
1023
+ "trace_length": 81,
1024
+ "trace_sha256": "af5c58a6fe27a826a2949be15659f48c4753ecd455fcb8b56f8d87ee8c9c81ba"
1025
+ }
1026
+ ],
1027
+ "outputs": []
1028
+ },
1029
+ {
1030
+ "events": [
1031
+ {
1032
+ "format": "426f6d62207761732064656675736564206279202569210a",
1033
+ "op": "log",
1034
+ "slot": 2
1035
+ },
1036
+ {
1037
+ "event": 84,
1038
+ "op": "allocate"
1039
+ },
1040
+ {
1041
+ "op": "teleport",
1042
+ "slot": 2
1043
+ },
1044
+ {
1045
+ "op": "award",
1046
+ "slot": 2,
1047
+ "value": 5
1048
+ }
1049
+ ],
1050
+ "input": {
1051
+ "allocation": {
1052
+ "count": 64,
1053
+ "profile": 0,
1054
+ "slots": [],
1055
+ "start": 0,
1056
+ "tick": 125678
1057
+ },
1058
+ "animation": 99,
1059
+ "bomb_first": 0,
1060
+ "bomb_missing": 0,
1061
+ "busy": 1,
1062
+ "busy_slot": 0,
1063
+ "client": 1,
1064
+ "clock": 120678,
1065
+ "complete": 0,
1066
+ "connection": 2,
1067
+ "console": 0,
1068
+ "count": 3,
1069
+ "delay": 1,
1070
+ "distance": 10.0,
1071
+ "duration": 5,
1072
+ "enabled_a": 1,
1073
+ "enabled_b": 1,
1074
+ "entity": 1,
1075
+ "event_flags": 305419864,
1076
+ "flags": 2147516512,
1077
+ "flags104": 2147483650,
1078
+ "follow": 0,
1079
+ "handle": 7,
1080
+ "health": 1,
1081
+ "index": 3,
1082
+ "other_busy": 0,
1083
+ "other_connection": 2,
1084
+ "other_follow": 0,
1085
+ "other_health": 1,
1086
+ "other_team": 0,
1087
+ "profile": 2,
1088
+ "selector": 0,
1089
+ "start": 123678,
1090
+ "team": 0,
1091
+ "tick": 125678,
1092
+ "weapon": 305397771
1093
+ },
1094
+ "log_traces": [
1095
+ {
1096
+ "stop": 7365,
1097
+ "trace_length": 96,
1098
+ "trace_sha256": "eb1de60b5879968d1956e724966aac435209d74533590f2398aaff98756524fb"
1099
+ }
1100
+ ],
1101
+ "outputs": [
1102
+ {
1103
+ "handle": 7,
1104
+ "op": "file",
1105
+ "text": "2020323a303520426f6d622077617320646566757365642062792032210a"
1106
+ }
1107
+ ]
1108
+ },
1109
+ {
1110
+ "events": [
1111
+ {
1112
+ "format": "426f6d62207761732064656675736564206279202569210a",
1113
+ "op": "log",
1114
+ "slot": 2
1115
+ },
1116
+ {
1117
+ "event": 84,
1118
+ "op": "allocate"
1119
+ },
1120
+ {
1121
+ "op": "teleport",
1122
+ "slot": 2
1123
+ },
1124
+ {
1125
+ "op": "award",
1126
+ "slot": 2,
1127
+ "value": 5
1128
+ }
1129
+ ],
1130
+ "input": {
1131
+ "allocation": {
1132
+ "count": 64,
1133
+ "profile": 0,
1134
+ "slots": [],
1135
+ "start": 0,
1136
+ "tick": 125678
1137
+ },
1138
+ "animation": 99,
1139
+ "bomb_first": 0,
1140
+ "bomb_missing": 0,
1141
+ "busy": 1,
1142
+ "busy_slot": 0,
1143
+ "client": 1,
1144
+ "clock": 120678,
1145
+ "complete": 0,
1146
+ "connection": 2,
1147
+ "console": 1,
1148
+ "count": 3,
1149
+ "delay": 1,
1150
+ "distance": 10.0,
1151
+ "duration": 5,
1152
+ "enabled_a": 1,
1153
+ "enabled_b": 1,
1154
+ "entity": 1,
1155
+ "event_flags": 305419864,
1156
+ "flags": 2147516512,
1157
+ "flags104": 2147483650,
1158
+ "follow": 0,
1159
+ "handle": 0,
1160
+ "health": 1,
1161
+ "index": 3,
1162
+ "other_busy": 0,
1163
+ "other_connection": 2,
1164
+ "other_follow": 0,
1165
+ "other_health": 1,
1166
+ "other_team": 0,
1167
+ "profile": 2,
1168
+ "selector": 0,
1169
+ "start": 123678,
1170
+ "team": 0,
1171
+ "tick": 125678,
1172
+ "weapon": 305397771
1173
+ },
1174
+ "log_traces": [
1175
+ {
1176
+ "stop": 7365,
1177
+ "trace_length": 88,
1178
+ "trace_sha256": "d70409457bae2a74759e6764f66c8cc92e16d4c38edea90811404ae7ebc32787"
1179
+ }
1180
+ ],
1181
+ "outputs": [
1182
+ {
1183
+ "op": "console",
1184
+ "text": "426f6d622077617320646566757365642062792032210a"
1185
+ }
1186
+ ]
1187
+ },
1188
+ {
1189
+ "events": [
1190
+ {
1191
+ "format": "426f6d62207761732064656675736564206279202569210a",
1192
+ "op": "log",
1193
+ "slot": 2
1194
+ },
1195
+ {
1196
+ "event": 84,
1197
+ "op": "allocate"
1198
+ },
1199
+ {
1200
+ "op": "teleport",
1201
+ "slot": 2
1202
+ },
1203
+ {
1204
+ "op": "award",
1205
+ "slot": 2,
1206
+ "value": 5
1207
+ }
1208
+ ],
1209
+ "input": {
1210
+ "allocation": {
1211
+ "count": 64,
1212
+ "profile": 0,
1213
+ "slots": [],
1214
+ "start": 0,
1215
+ "tick": 125678
1216
+ },
1217
+ "animation": 99,
1218
+ "bomb_first": 0,
1219
+ "bomb_missing": 0,
1220
+ "busy": 1,
1221
+ "busy_slot": 0,
1222
+ "client": 1,
1223
+ "clock": 120678,
1224
+ "complete": 0,
1225
+ "connection": 2,
1226
+ "console": 1,
1227
+ "count": 3,
1228
+ "delay": 1,
1229
+ "distance": 10.0,
1230
+ "duration": 5,
1231
+ "enabled_a": 1,
1232
+ "enabled_b": 1,
1233
+ "entity": 1,
1234
+ "event_flags": 305419864,
1235
+ "flags": 2147516512,
1236
+ "flags104": 2147483650,
1237
+ "follow": 0,
1238
+ "handle": 7,
1239
+ "health": 1,
1240
+ "index": 3,
1241
+ "other_busy": 0,
1242
+ "other_connection": 2,
1243
+ "other_follow": 0,
1244
+ "other_health": 1,
1245
+ "other_team": 0,
1246
+ "profile": 2,
1247
+ "selector": 0,
1248
+ "start": 123678,
1249
+ "team": 0,
1250
+ "tick": 125678,
1251
+ "weapon": 305397771
1252
+ },
1253
+ "log_traces": [
1254
+ {
1255
+ "stop": 7365,
1256
+ "trace_length": 103,
1257
+ "trace_sha256": "88501f41fc5d4cb0c604de20a59dc5f36431ae7844050a36975e342a5bdd9237"
1258
+ }
1259
+ ],
1260
+ "outputs": [
1261
+ {
1262
+ "op": "console",
1263
+ "text": "426f6d622077617320646566757365642062792032210a"
1264
+ },
1265
+ {
1266
+ "handle": 7,
1267
+ "op": "file",
1268
+ "text": "2020323a303520426f6d622077617320646566757365642062792032210a"
1269
+ }
1270
+ ]
1271
+ },
1272
+ {
1273
+ "events": [
1274
+ {
1275
+ "format": "426f6d62207761732064656675736564206279202569210a",
1276
+ "op": "log",
1277
+ "slot": 2
1278
+ },
1279
+ {
1280
+ "event": 84,
1281
+ "op": "allocate"
1282
+ },
1283
+ {
1284
+ "op": "teleport",
1285
+ "slot": 2
1286
+ },
1287
+ {
1288
+ "op": "award",
1289
+ "slot": 2,
1290
+ "value": 5
1291
+ }
1292
+ ],
1293
+ "input": {
1294
+ "allocation": {
1295
+ "count": 64,
1296
+ "profile": 0,
1297
+ "slots": [],
1298
+ "start": 0,
1299
+ "tick": 3661234
1300
+ },
1301
+ "animation": 99,
1302
+ "bomb_first": 0,
1303
+ "bomb_missing": 0,
1304
+ "busy": 1,
1305
+ "busy_slot": 0,
1306
+ "client": 1,
1307
+ "clock": 3656234,
1308
+ "complete": 0,
1309
+ "connection": 2,
1310
+ "console": 0,
1311
+ "count": 3,
1312
+ "delay": 1,
1313
+ "distance": 10.0,
1314
+ "duration": 5,
1315
+ "enabled_a": 1,
1316
+ "enabled_b": 1,
1317
+ "entity": 1,
1318
+ "event_flags": 305419864,
1319
+ "flags": 2147516512,
1320
+ "flags104": 2147483650,
1321
+ "follow": 0,
1322
+ "handle": 0,
1323
+ "health": 1,
1324
+ "index": 3,
1325
+ "other_busy": 0,
1326
+ "other_connection": 2,
1327
+ "other_follow": 0,
1328
+ "other_health": 1,
1329
+ "other_team": 0,
1330
+ "profile": 2,
1331
+ "selector": 0,
1332
+ "start": 3659234,
1333
+ "team": 0,
1334
+ "tick": 3661234,
1335
+ "weapon": 305397771
1336
+ },
1337
+ "log_traces": [
1338
+ {
1339
+ "stop": 7365,
1340
+ "trace_length": 81,
1341
+ "trace_sha256": "af5c58a6fe27a826a2949be15659f48c4753ecd455fcb8b56f8d87ee8c9c81ba"
1342
+ }
1343
+ ],
1344
+ "outputs": []
1345
+ },
1346
+ {
1347
+ "events": [
1348
+ {
1349
+ "format": "426f6d62207761732064656675736564206279202569210a",
1350
+ "op": "log",
1351
+ "slot": 2
1352
+ },
1353
+ {
1354
+ "event": 84,
1355
+ "op": "allocate"
1356
+ },
1357
+ {
1358
+ "op": "teleport",
1359
+ "slot": 2
1360
+ },
1361
+ {
1362
+ "op": "award",
1363
+ "slot": 2,
1364
+ "value": 5
1365
+ }
1366
+ ],
1367
+ "input": {
1368
+ "allocation": {
1369
+ "count": 64,
1370
+ "profile": 0,
1371
+ "slots": [],
1372
+ "start": 0,
1373
+ "tick": 3661234
1374
+ },
1375
+ "animation": 99,
1376
+ "bomb_first": 0,
1377
+ "bomb_missing": 0,
1378
+ "busy": 1,
1379
+ "busy_slot": 0,
1380
+ "client": 1,
1381
+ "clock": 3656234,
1382
+ "complete": 0,
1383
+ "connection": 2,
1384
+ "console": 0,
1385
+ "count": 3,
1386
+ "delay": 1,
1387
+ "distance": 10.0,
1388
+ "duration": 5,
1389
+ "enabled_a": 1,
1390
+ "enabled_b": 1,
1391
+ "entity": 1,
1392
+ "event_flags": 305419864,
1393
+ "flags": 2147516512,
1394
+ "flags104": 2147483650,
1395
+ "follow": 0,
1396
+ "handle": 7,
1397
+ "health": 1,
1398
+ "index": 3,
1399
+ "other_busy": 0,
1400
+ "other_connection": 2,
1401
+ "other_follow": 0,
1402
+ "other_health": 1,
1403
+ "other_team": 0,
1404
+ "profile": 2,
1405
+ "selector": 0,
1406
+ "start": 3659234,
1407
+ "team": 0,
1408
+ "tick": 3661234,
1409
+ "weapon": 305397771
1410
+ },
1411
+ "log_traces": [
1412
+ {
1413
+ "stop": 7365,
1414
+ "trace_length": 96,
1415
+ "trace_sha256": "eb1de60b5879968d1956e724966aac435209d74533590f2398aaff98756524fb"
1416
+ }
1417
+ ],
1418
+ "outputs": [
1419
+ {
1420
+ "handle": 7,
1421
+ "op": "file",
1422
+ "text": "2036313a303120426f6d622077617320646566757365642062792032210a"
1423
+ }
1424
+ ]
1425
+ },
1426
+ {
1427
+ "events": [
1428
+ {
1429
+ "format": "426f6d62207761732064656675736564206279202569210a",
1430
+ "op": "log",
1431
+ "slot": 2
1432
+ },
1433
+ {
1434
+ "event": 84,
1435
+ "op": "allocate"
1436
+ },
1437
+ {
1438
+ "op": "teleport",
1439
+ "slot": 2
1440
+ },
1441
+ {
1442
+ "op": "award",
1443
+ "slot": 2,
1444
+ "value": 5
1445
+ }
1446
+ ],
1447
+ "input": {
1448
+ "allocation": {
1449
+ "count": 64,
1450
+ "profile": 0,
1451
+ "slots": [],
1452
+ "start": 0,
1453
+ "tick": 3661234
1454
+ },
1455
+ "animation": 99,
1456
+ "bomb_first": 0,
1457
+ "bomb_missing": 0,
1458
+ "busy": 1,
1459
+ "busy_slot": 0,
1460
+ "client": 1,
1461
+ "clock": 3656234,
1462
+ "complete": 0,
1463
+ "connection": 2,
1464
+ "console": 1,
1465
+ "count": 3,
1466
+ "delay": 1,
1467
+ "distance": 10.0,
1468
+ "duration": 5,
1469
+ "enabled_a": 1,
1470
+ "enabled_b": 1,
1471
+ "entity": 1,
1472
+ "event_flags": 305419864,
1473
+ "flags": 2147516512,
1474
+ "flags104": 2147483650,
1475
+ "follow": 0,
1476
+ "handle": 0,
1477
+ "health": 1,
1478
+ "index": 3,
1479
+ "other_busy": 0,
1480
+ "other_connection": 2,
1481
+ "other_follow": 0,
1482
+ "other_health": 1,
1483
+ "other_team": 0,
1484
+ "profile": 2,
1485
+ "selector": 0,
1486
+ "start": 3659234,
1487
+ "team": 0,
1488
+ "tick": 3661234,
1489
+ "weapon": 305397771
1490
+ },
1491
+ "log_traces": [
1492
+ {
1493
+ "stop": 7365,
1494
+ "trace_length": 88,
1495
+ "trace_sha256": "d70409457bae2a74759e6764f66c8cc92e16d4c38edea90811404ae7ebc32787"
1496
+ }
1497
+ ],
1498
+ "outputs": [
1499
+ {
1500
+ "op": "console",
1501
+ "text": "426f6d622077617320646566757365642062792032210a"
1502
+ }
1503
+ ]
1504
+ },
1505
+ {
1506
+ "events": [
1507
+ {
1508
+ "format": "426f6d62207761732064656675736564206279202569210a",
1509
+ "op": "log",
1510
+ "slot": 2
1511
+ },
1512
+ {
1513
+ "event": 84,
1514
+ "op": "allocate"
1515
+ },
1516
+ {
1517
+ "op": "teleport",
1518
+ "slot": 2
1519
+ },
1520
+ {
1521
+ "op": "award",
1522
+ "slot": 2,
1523
+ "value": 5
1524
+ }
1525
+ ],
1526
+ "input": {
1527
+ "allocation": {
1528
+ "count": 64,
1529
+ "profile": 0,
1530
+ "slots": [],
1531
+ "start": 0,
1532
+ "tick": 3661234
1533
+ },
1534
+ "animation": 99,
1535
+ "bomb_first": 0,
1536
+ "bomb_missing": 0,
1537
+ "busy": 1,
1538
+ "busy_slot": 0,
1539
+ "client": 1,
1540
+ "clock": 3656234,
1541
+ "complete": 0,
1542
+ "connection": 2,
1543
+ "console": 1,
1544
+ "count": 3,
1545
+ "delay": 1,
1546
+ "distance": 10.0,
1547
+ "duration": 5,
1548
+ "enabled_a": 1,
1549
+ "enabled_b": 1,
1550
+ "entity": 1,
1551
+ "event_flags": 305419864,
1552
+ "flags": 2147516512,
1553
+ "flags104": 2147483650,
1554
+ "follow": 0,
1555
+ "handle": 7,
1556
+ "health": 1,
1557
+ "index": 3,
1558
+ "other_busy": 0,
1559
+ "other_connection": 2,
1560
+ "other_follow": 0,
1561
+ "other_health": 1,
1562
+ "other_team": 0,
1563
+ "profile": 2,
1564
+ "selector": 0,
1565
+ "start": 3659234,
1566
+ "team": 0,
1567
+ "tick": 3661234,
1568
+ "weapon": 305397771
1569
+ },
1570
+ "log_traces": [
1571
+ {
1572
+ "stop": 7365,
1573
+ "trace_length": 103,
1574
+ "trace_sha256": "88501f41fc5d4cb0c604de20a59dc5f36431ae7844050a36975e342a5bdd9237"
1575
+ }
1576
+ ],
1577
+ "outputs": [
1578
+ {
1579
+ "op": "console",
1580
+ "text": "426f6d622077617320646566757365642062792032210a"
1581
+ },
1582
+ {
1583
+ "handle": 7,
1584
+ "op": "file",
1585
+ "text": "2036313a303120426f6d622077617320646566757365642062792032210a"
1586
+ }
1587
+ ]
1588
+ },
1589
+ {
1590
+ "events": [
1591
+ {
1592
+ "event": 83,
1593
+ "op": "allocate"
1594
+ },
1595
+ {
1596
+ "op": "sound",
1597
+ "slot": 2,
1598
+ "sound": 7
1599
+ }
1600
+ ],
1601
+ "input": {
1602
+ "allocation": {
1603
+ "count": 64,
1604
+ "profile": 0,
1605
+ "slots": [],
1606
+ "start": 0,
1607
+ "tick": 10000
1608
+ },
1609
+ "animation": 99,
1610
+ "bomb_first": 0,
1611
+ "bomb_missing": 0,
1612
+ "busy": 0,
1613
+ "busy_slot": 0,
1614
+ "client": 1,
1615
+ "clock": 123,
1616
+ "complete": 0,
1617
+ "connection": 2,
1618
+ "console": 1,
1619
+ "count": 3,
1620
+ "delay": 1,
1621
+ "distance": 10.0,
1622
+ "duration": 5,
1623
+ "enabled_a": 1,
1624
+ "enabled_b": 1,
1625
+ "entity": 1,
1626
+ "event_flags": 305419864,
1627
+ "flags": 2147516512,
1628
+ "flags104": 2147483650,
1629
+ "follow": 0,
1630
+ "handle": 7,
1631
+ "health": 1,
1632
+ "index": 3,
1633
+ "other_busy": 0,
1634
+ "other_connection": 2,
1635
+ "other_follow": 0,
1636
+ "other_health": 1,
1637
+ "other_team": 0,
1638
+ "profile": 0,
1639
+ "selector": 0,
1640
+ "start": 8000,
1641
+ "team": 0,
1642
+ "tick": 10000,
1643
+ "weapon": 305397771
1644
+ },
1645
+ "log_traces": [],
1646
+ "outputs": []
1647
+ },
1648
+ {
1649
+ "events": [],
1650
+ "input": {
1651
+ "allocation": {
1652
+ "count": 64,
1653
+ "profile": 0,
1654
+ "slots": [],
1655
+ "start": 0,
1656
+ "tick": 10000
1657
+ },
1658
+ "animation": 99,
1659
+ "bomb_first": 0,
1660
+ "bomb_missing": 0,
1661
+ "busy": 1,
1662
+ "busy_slot": 0,
1663
+ "client": 1,
1664
+ "clock": 9000,
1665
+ "complete": 0,
1666
+ "connection": 2,
1667
+ "console": 1,
1668
+ "count": 3,
1669
+ "delay": 1,
1670
+ "distance": 10.0,
1671
+ "duration": 5,
1672
+ "enabled_a": 1,
1673
+ "enabled_b": 1,
1674
+ "entity": 1,
1675
+ "event_flags": 305419864,
1676
+ "flags": 2147516512,
1677
+ "flags104": 2147483650,
1678
+ "follow": 0,
1679
+ "handle": 7,
1680
+ "health": 1,
1681
+ "index": 3,
1682
+ "other_busy": 0,
1683
+ "other_connection": 2,
1684
+ "other_follow": 0,
1685
+ "other_health": 1,
1686
+ "other_team": 0,
1687
+ "profile": 1,
1688
+ "selector": 0,
1689
+ "start": 8000,
1690
+ "team": 0,
1691
+ "tick": 10000,
1692
+ "weapon": 305397771
1693
+ },
1694
+ "log_traces": [],
1695
+ "outputs": []
1696
+ },
1697
+ {
1698
+ "events": [
1699
+ {
1700
+ "event": 84,
1701
+ "op": "allocate"
1702
+ }
1703
+ ],
1704
+ "input": {
1705
+ "allocation": {
1706
+ "count": 64,
1707
+ "profile": 0,
1708
+ "slots": [],
1709
+ "start": 0,
1710
+ "tick": 10000
1711
+ },
1712
+ "animation": 99,
1713
+ "bomb_first": 0,
1714
+ "bomb_missing": 0,
1715
+ "busy": 1,
1716
+ "busy_slot": 0,
1717
+ "client": 1,
1718
+ "clock": 123,
1719
+ "complete": 0,
1720
+ "connection": 2,
1721
+ "console": 1,
1722
+ "count": 3,
1723
+ "delay": 1,
1724
+ "distance": 75.0,
1725
+ "duration": 5,
1726
+ "enabled_a": 1,
1727
+ "enabled_b": 1,
1728
+ "entity": 1,
1729
+ "event_flags": 305419864,
1730
+ "flags": 2147516512,
1731
+ "flags104": 2147483650,
1732
+ "follow": 0,
1733
+ "handle": 7,
1734
+ "health": 1,
1735
+ "index": 3,
1736
+ "other_busy": 0,
1737
+ "other_connection": 2,
1738
+ "other_follow": 0,
1739
+ "other_health": 1,
1740
+ "other_team": 0,
1741
+ "profile": 3,
1742
+ "selector": 0,
1743
+ "start": 8000,
1744
+ "team": 0,
1745
+ "tick": 10000,
1746
+ "weapon": 305397771
1747
+ },
1748
+ "log_traces": [],
1749
+ "outputs": []
1750
+ }
1751
+ ],
1752
+ "sha256": "a589351dfe517470a1b121dd2164714987d9e4577bf00c6486e1540035d7a79d",
1753
+ "source": {
1754
+ "archive": "zUrT43_qvm.pk3",
1755
+ "archive_sha256": "b59bf0c5bedf11d50e0edd220da7eade96de40601e98ae14c54c819047df0796",
1756
+ "member": {
1757
+ "bytes": 983300,
1758
+ "comment_hex": "",
1759
+ "compressed_bytes": 246560,
1760
+ "compression": 8,
1761
+ "crc32": "98ea1768",
1762
+ "create_system": 0,
1763
+ "create_version": 63,
1764
+ "date_time": [
1765
+ 2018,
1766
+ 6,
1767
+ 18,
1768
+ 22,
1769
+ 11,
1770
+ 50
1771
+ ],
1772
+ "directory": false,
1773
+ "entry_index": 2,
1774
+ "external_attr": 32,
1775
+ "extra_hex": "0a0020000000000001001800d1e24e974007d40116dcbf962f1fd20116dcbf962f1fd201",
1776
+ "extract_version": 20,
1777
+ "flags": 0,
1778
+ "header_offset": 221309,
1779
+ "internal_attr": 0,
1780
+ "occurrence": 0,
1781
+ "output": "assets/extracted/zUrT43_qvm.pk3/members/000002/vm/qagame.qvm",
1782
+ "path": "vm/qagame.qvm",
1783
+ "sha256": "a589351dfe517470a1b121dd2164714987d9e4577bf00c6486e1540035d7a79d",
1784
+ "type": "member",
1785
+ "volume": 0
1786
+ }
1787
+ }
1788
+ }
scripts/analyze_qvm_defuse_log_dispatch.py ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Trace the actual defuse completion logger, formatting and output gates."""
2
+ from itertools import product
3
+ from pathlib import Path
4
+
5
+ from analyze_qvm import write_json
6
+ from analyze_qvm_defuse_allocated_callback import fixtures, probe_state
7
+ from qvm_camera_world_support import run
8
+ from qvm_client_processing_support import ROOT
9
+ from qvm_formatter_support import formatter, formatter_env, image_bytes
10
+ from qvm_location_feedback_support import seed
11
+ from qvm_map_commands_support import put_string
12
+ from qvm_research_support import source
13
+ from qvm_scoreboard_wire_support import row_format
14
+ from qvm_string_memory_support import cstring, strlen
15
+ from qvm_byte_memory_support import read_bytes, write_bytes
16
+
17
+
18
+ LOG_FRAME = ROOT + 0x380000
19
+
20
+
21
+ def log_dispatch(ins, memory, args, byte_state):
22
+ calls = []
23
+
24
+ def bounded(i, m, a, b):
25
+ return row_format(i, m, a, dict(b), formatter)
26
+
27
+ def console(i, m, a, b):
28
+ assert cstring(m, b, a[8]) == b'%s'
29
+ calls.append(dict(op='console', text=cstring(m, b, a[12]).hex()))
30
+ return m, 0, {'console_wrapper_captured': 2294}
31
+
32
+ def file_(i, m, a, b):
33
+ calls.append(dict(op='file', handle=a[16], text=read_bytes(m, b, a[8], a[12]).hex()))
34
+ return m, 0, {'file_write_captured': -13}
35
+
36
+ memory, _, trace, b = run(
37
+ ins, memory, 7259, 7365, 2100, args, dict(byte_state),
38
+ {70386: bounded, 37914: formatter, 2294: console, 36038: strlen, -13: file_},
39
+ base=LOG_FRAME,
40
+ )
41
+ return memory, calls, trace['execution']
42
+
43
+
44
+ def probe(ins, raw, header, a):
45
+ memory, b = seed(raw, header, a)
46
+ tables, formatter_bytes = formatter_env(raw, header)
47
+ memory.update(tables)
48
+ write_bytes(memory, b, formatter_bytes)
49
+ for address in (34718, 35251, 62938):
50
+ put_string(memory, b, address, image_bytes(raw, header, address)[:-1])
51
+ outputs, traces = [], []
52
+
53
+ def prepare(memory, _b, captures):
54
+ memory.update({34090492: a['console'], 34992520: a['handle']})
55
+ old_log = captures[7259]
56
+
57
+ def log(i, m, args, bs):
58
+ m, _, _ = old_log(i, m, args, bs)
59
+ m, entries, trace = log_dispatch(i, m, args, bs)
60
+ outputs.extend(entries)
61
+ traces.append(trace)
62
+ return m, 0, {'actual_source_child': 7259}
63
+
64
+ captures[7259] = log
65
+
66
+ _, callback, _ = probe_state(ins, memory, b, a, prepare)
67
+ return dict(input=a, events=callback['events'], outputs=outputs, log_traces=traces)
68
+
69
+
70
+ def main():
71
+ meta, raw, header, ins = source()
72
+ cases = {a['profile']: a for a in fixtures() if a['allocation']['profile'] == 0}
73
+ probes = []
74
+ for tick, console, handle in product((10000, 59999, 60000, 125678, 3661234), (0, 1), (0, 7)):
75
+ a = cases[2]
76
+ probes.append(probe(ins, raw, header, dict(a, tick=tick, start=tick - 2000,
77
+ clock=tick - 5000, console=console, handle=handle,
78
+ allocation=dict(a['allocation'], tick=tick))))
79
+ for profile in (0, 1, 3):
80
+ probes.append(probe(ins, raw, header, dict(cases[profile], console=1, handle=7)))
81
+ write_json(Path('docs/research/qvm-defuse-log-dispatch.json'), {
82
+ 'source': meta['source'], 'sha256': meta['sha256'], 'probes': probes,
83
+ 'limits': 'Actual defuse and logger7259 with actual integer formatting, console wrapper and file write capture.',
84
+ })
85
+
86
+
87
+ if __name__ == '__main__':
88
+ main()
scripts/qvm_string_memory_support.py CHANGED
@@ -31,10 +31,10 @@ def strcpy(ins,m,args,b):
31
  return t['memory'],t['stack'][-1],{'execution':trace_fields(t,False),'child_memory_bytes':cells,'actual_strcpy':True}
32
 
33
  def copy_bounded(ins,m,args,b):
34
- if args[12]==0 or not 1<=args[16]<=1024:raise ValueError('unsupported bounded copy domain')
35
  m,b=frame_args(m,b,{W+20+o:v for o,v in args.items()})
36
  def native(i,m,a,bs):
37
- if not 0<=a[16]<=1023:raise ValueError('unsupported native copy count')
38
  raw=cstring(m,bs,a[12]);data=raw[:a[16]].ljust(a[16],b'\0')
39
  return m,a[8],{'native_strncpy_modeled':True,'child_memory_bytes':{a[8]+j:v for j,v in enumerate(data)}}
40
  m,e=resume(ins,69339,69384,m,W,handlers={-103:native},byte_inputs=b,repeated_calls=True,sync_child_words=True,coherent_memory=True,byte_handlers=True,capture_byte_memory=True)
 
31
  return t['memory'],t['stack'][-1],{'execution':trace_fields(t,False),'child_memory_bytes':cells,'actual_strcpy':True}
32
 
33
  def copy_bounded(ins,m,args,b):
34
+ if args[12]==0 or not 1<=args[16]<=2048:raise ValueError('unsupported bounded copy domain')
35
  m,b=frame_args(m,b,{W+20+o:v for o,v in args.items()})
36
  def native(i,m,a,bs):
37
+ if not 0<=a[16]<=2047:raise ValueError('unsupported native copy count')
38
  raw=cstring(m,bs,a[12]);data=raw[:a[16]].ljust(a[16],b'\0')
39
  return m,a[8],{'native_strncpy_modeled':True,'child_memory_bytes':{a[8]+j:v for j,v in enumerate(data)}}
40
  m,e=resume(ins,69339,69384,m,W,handlers={-103:native},byte_inputs=b,repeated_calls=True,sync_child_words=True,coherent_memory=True,byte_handlers=True,capture_byte_memory=True)
scripts/test_qvm_defuse_log_dispatch.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import unittest
3
+ from pathlib import Path
4
+
5
+
6
+ class DefuseLogDispatchTests(unittest.TestCase):
7
+ def test_output_bytes_and_gates(self):
8
+ rows = json.loads(Path('docs/research/qvm-defuse-log-dispatch.json').read_text())['probes']
9
+ self.assertEqual(len(rows), 23)
10
+ for row in rows:
11
+ a = row['input']
12
+ with self.subTest(profile=a['profile'], tick=a['tick'], console=a['console'], file=a['handle']):
13
+ expected = []
14
+ if a['profile'] == 2:
15
+ self.assertEqual([e['op'] for e in row['events']],
16
+ ['log', 'allocate', 'teleport', 'award'])
17
+ minutes, seconds = divmod(a['tick'] // 1000, 60)
18
+ body = b'Bomb was defused by 2!\n'
19
+ if a['console']:
20
+ expected.append(dict(op='console', text=body.hex()))
21
+ if a['handle']:
22
+ text = f'{minutes:3}:{seconds:02} '.encode() + body
23
+ expected.append(dict(op='file', handle=a['handle'], text=text.hex()))
24
+ self.assertEqual(len(row['log_traces']), 1)
25
+ else:
26
+ self.assertEqual(row['log_traces'], [])
27
+ self.assertEqual(row['outputs'], expected)
28
+
29
+
30
+ if __name__ == '__main__':
31
+ unittest.main()
xtask/checks.tsv CHANGED
@@ -4841,3 +4841,7 @@ group rust-defuse-effect-names scripts/analyze_rust_defuse_finish.py
4841
  group rust-defuse-effect-names scripts/analyze_rust_effect_defuse_complete.py
4842
  group rust-defuse-effect-names scripts/analyze_rust_defuse_event_lifecycle.py
4843
  group rust-defuse-effect-names scripts/analyze_rust_defuse_located_callback.py
 
 
 
 
 
4841
  group rust-defuse-effect-names scripts/analyze_rust_effect_defuse_complete.py
4842
  group rust-defuse-effect-names scripts/analyze_rust_defuse_event_lifecycle.py
4843
  group rust-defuse-effect-names scripts/analyze_rust_defuse_located_callback.py
4844
+ report scripts/analyze_qvm_defuse_log_dispatch.py docs/research/qvm-defuse-log-dispatch.json
4845
+ edge docs/research/qvm-defuse-log-dispatch.json scripts/test_qvm_defuse_log_dispatch.py
4846
+ group qvm-defuse-log-dispatch scripts/analyze_qvm_defuse_log_dispatch.py
4847
+ edge scripts/analyze_qvm_defuse_log_dispatch.py scripts/analyze_qvm_resumer_audit.py