nmarshall commited on
Commit
2974ac4
·
1 Parent(s): b0ed587

qvm: recover full-table filter expiry

Browse files
docs/FINDINGS.md CHANGED
@@ -1823,3 +1823,5 @@ RE-943: Rust matches30 original removal/export compositions, retaining first-mat
1823
  RE-944: Eighty-four actual251995/252024 conversion pairs recover wrapping day-of-year/hour/minute arithmetic, signed division and unchanged structure fields. The inverse stores computed hour modulo60 into the minute field, so normal minute values do not round trip. INT_MIN/MAX and negative fields are covered; calendar/year/native clock interpretation remains open. [Evidence](research/QVM_FILTER_TIME.md).
1824
 
1825
  RE-945: Rust matches84 original conversion pairs using wrapping arithmetic and truncating signed division, retaining the inverse minute-field quirk and all unrelated structure words. Unit tests cover signed extremes, arithmetic wrap and unchanged sentinel fields. Native clock acquisition and calendar interpretation remain supplied boundaries. [Evidence](research/RUST_FILTER_TIME.md).
 
 
 
1823
  RE-944: Eighty-four actual251995/252024 conversion pairs recover wrapping day-of-year/hour/minute arithmetic, signed division and unchanged structure fields. The inverse stores computed hour modulo60 into the minute field, so normal minute values do not round trip. INT_MIN/MAX and negative fields are covered; calendar/year/native clock interpretation remains open. [Evidence](research/QVM_FILTER_TIME.md).
1824
 
1825
  RE-945: Rust matches84 original conversion pairs using wrapping arithmetic and truncating signed division, retaining the inverse minute-field quirk and all unrelated structure words. Unit tests cover signed extremes, arithmetic wrap and unchanged sentinel fields. Native clock acquisition and calendar interpretation remain supplied boundaries. [Evidence](research/RUST_FILTER_TIME.md).
1826
+
1827
+ RE-946: Twelve actual252067 scans execute all4096 slots with actual251995 and supplied native time. Metadata other than-1 expires only when unsigned-less-than current minutes; equality is retained. Expiry changes comparison only, ignores and preserves active count, and never exports. Fixtures verify the last slot mutates even at count zero, permanent markers and high-bit timestamps. Calendar rollover and invocation cadence remain open. [Evidence](research/QVM_FILTER_EXPIRY.md).
docs/PROVISIONAL_TODO.md CHANGED
@@ -1871,3 +1871,5 @@ RE-934–943 completed bounded filter export/removal/metadata and insertion/remo
1871
  - [x] RE-944 Original filter time flattening and asymmetric inverse ([evidence](research/QVM_FILTER_TIME.md)).
1872
 
1873
  - [x] RE-945 Rust filter time arithmetic and asymmetric inverse ([evidence](research/RUST_FILTER_TIME.md)).
 
 
 
1871
  - [x] RE-944 Original filter time flattening and asymmetric inverse ([evidence](research/QVM_FILTER_TIME.md)).
1872
 
1873
  - [x] RE-945 Rust filter time arithmetic and asymmetric inverse ([evidence](research/RUST_FILTER_TIME.md)).
1874
+
1875
+ - [x] RE-946 Original full-table filter expiry and unsigned time gates ([evidence](research/QVM_FILTER_EXPIRY.md)).
docs/RESEARCH_LEDGER.md CHANGED
@@ -2447,3 +2447,7 @@ Eighty-four actual251995/252024 conversion pairs recover wrapping day-of-year/ho
2447
  ## 2026-10-28 — RE-945 Rust filter time arithmetic and asymmetric inverse
2448
 
2449
  Rust matches84 original conversion pairs using wrapping arithmetic and truncating signed division, retaining the inverse minute-field quirk and all unrelated structure words. Unit tests cover signed extremes, arithmetic wrap and unchanged sentinel fields. Native clock acquisition and calendar interpretation remain supplied boundaries. Focused `cargo xtask test-group rust-filter-time` passes with deterministic report regeneration, relevant regressions and storage/documentation/whitespace checks. Full suite deferred to the tenth-commit boundary. Original assets unchanged; native IO effects remain captured.
 
 
 
 
 
2447
  ## 2026-10-28 — RE-945 Rust filter time arithmetic and asymmetric inverse
2448
 
2449
  Rust matches84 original conversion pairs using wrapping arithmetic and truncating signed division, retaining the inverse minute-field quirk and all unrelated structure words. Unit tests cover signed extremes, arithmetic wrap and unchanged sentinel fields. Native clock acquisition and calendar interpretation remain supplied boundaries. Focused `cargo xtask test-group rust-filter-time` passes with deterministic report regeneration, relevant regressions and storage/documentation/whitespace checks. Full suite deferred to the tenth-commit boundary. Original assets unchanged; native IO effects remain captured.
2450
+
2451
+ ## 2026-10-28 — RE-946 Original full-table filter expiry and unsigned time gates
2452
+
2453
+ Twelve actual252067 scans execute all4096 slots with actual251995 and supplied native time. Metadata other than-1 expires only when unsigned-less-than current minutes; equality is retained. Expiry changes comparison only, ignores and preserves active count, and never exports. Fixtures verify the last slot mutates even at count zero, permanent markers and high-bit timestamps. Calendar rollover and invocation cadence remain open. Focused `cargo xtask test-group qvm-filter-expiry` passes with deterministic report regeneration, relevant regressions and storage/documentation/whitespace checks. Full suite deferred to the tenth-commit boundary. Original assets unchanged; native IO effects remain captured.
docs/REVERSE_ENGINEERING_TODO.md CHANGED
@@ -1908,3 +1908,5 @@ RE-934–943 continue the prior batch with filter export/removal/metadata and co
1908
  - [x] RE-944 Original filter time flattening and asymmetric inverse ([evidence](research/QVM_FILTER_TIME.md)).
1909
 
1910
  - [x] RE-945 Rust filter time arithmetic and asymmetric inverse ([evidence](research/RUST_FILTER_TIME.md)).
 
 
 
1908
  - [x] RE-944 Original filter time flattening and asymmetric inverse ([evidence](research/QVM_FILTER_TIME.md)).
1909
 
1910
  - [x] RE-945 Rust filter time arithmetic and asymmetric inverse ([evidence](research/RUST_FILTER_TIME.md)).
1911
+
1912
+ - [x] RE-946 Original full-table filter expiry and unsigned time gates ([evidence](research/QVM_FILTER_EXPIRY.md)).
docs/research/QVM_FILTER_EXPIRY.md ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Original full-table filter expiry and unsigned time gates
2
+
3
+ RE-946. Focused validation: `cargo xtask test-group qvm-filter-expiry`. [Machine report](qvm-filter-expiry.json).
4
+
5
+ Twelve actual252067 scans execute all4096 slots with actual251995 and supplied native time. Metadata other than-1 expires only when unsigned-less-than current minutes; equality is retained. Expiry changes comparison only, ignores and preserves active count, and never exports. Fixtures verify the last slot mutates even at count zero, permanent markers and high-bit timestamps. Calendar rollover and invocation cadence remain open.
docs/research/README.md CHANGED
@@ -1443,3 +1443,5 @@ The extension collector adds five focused tests for native tail calls, command-r
1443
  - [RE-944: Original filter time flattening and asymmetric inverse](QVM_FILTER_TIME.md).
1444
 
1445
  - [RE-945: Rust filter time arithmetic and asymmetric inverse](RUST_FILTER_TIME.md).
 
 
 
1443
  - [RE-944: Original filter time flattening and asymmetric inverse](QVM_FILTER_TIME.md).
1444
 
1445
  - [RE-945: Rust filter time arithmetic and asymmetric inverse](RUST_FILTER_TIME.md).
1446
+
1447
+ - [RE-946: Original full-table filter expiry and unsigned time gates](QVM_FILTER_EXPIRY.md).
docs/research/qvm-filter-expiry.json ADDED
@@ -0,0 +1,762 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "limits": "12 full4096-slot scans with actual251995 and supplied native time. Unsigned metadata<now expires comparison only; metadata-1 permanent; equality retained. Count is ignored and unchanged; no export. Native calendar rollover, invocation cadence and unsafe/malformed storage remain open.",
3
+ "probes": [
4
+ {
5
+ "calls": [
6
+ {
7
+ "op": "time"
8
+ }
9
+ ],
10
+ "checksum": 9798687455571071282,
11
+ "count": 0,
12
+ "execution": {
13
+ "stop": 252125,
14
+ "trace_length": 86082,
15
+ "trace_sha256": "f61d91febf5dabdb8fa894027c8750778d6119341f5bf10d0ef41111376d7a42"
16
+ },
17
+ "input": {
18
+ "count": 0,
19
+ "now": 0
20
+ },
21
+ "selected": [
22
+ [
23
+ 287454020,
24
+ 1,
25
+ 0
26
+ ],
27
+ [
28
+ 287454020,
29
+ 2,
30
+ 4294967295
31
+ ],
32
+ [
33
+ 287454020,
34
+ 3,
35
+ 0
36
+ ],
37
+ [
38
+ 287454020,
39
+ 4,
40
+ 1
41
+ ],
42
+ [
43
+ 287454020,
44
+ 5,
45
+ 4294967295
46
+ ],
47
+ [
48
+ 287454020,
49
+ 4294967295,
50
+ 2147483648
51
+ ],
52
+ [
53
+ 287454020,
54
+ 64,
55
+ 60
56
+ ],
57
+ [
58
+ 287454020,
59
+ 4096,
60
+ 0
61
+ ]
62
+ ]
63
+ },
64
+ {
65
+ "calls": [
66
+ {
67
+ "op": "time"
68
+ }
69
+ ],
70
+ "checksum": 9798687455571071282,
71
+ "count": 3,
72
+ "execution": {
73
+ "stop": 252125,
74
+ "trace_length": 86082,
75
+ "trace_sha256": "f61d91febf5dabdb8fa894027c8750778d6119341f5bf10d0ef41111376d7a42"
76
+ },
77
+ "input": {
78
+ "count": 3,
79
+ "now": 0
80
+ },
81
+ "selected": [
82
+ [
83
+ 287454020,
84
+ 1,
85
+ 0
86
+ ],
87
+ [
88
+ 287454020,
89
+ 2,
90
+ 4294967295
91
+ ],
92
+ [
93
+ 287454020,
94
+ 3,
95
+ 0
96
+ ],
97
+ [
98
+ 287454020,
99
+ 4,
100
+ 1
101
+ ],
102
+ [
103
+ 287454020,
104
+ 5,
105
+ 4294967295
106
+ ],
107
+ [
108
+ 287454020,
109
+ 4294967295,
110
+ 2147483648
111
+ ],
112
+ [
113
+ 287454020,
114
+ 64,
115
+ 60
116
+ ],
117
+ [
118
+ 287454020,
119
+ 4096,
120
+ 0
121
+ ]
122
+ ]
123
+ },
124
+ {
125
+ "calls": [
126
+ {
127
+ "op": "time"
128
+ }
129
+ ],
130
+ "checksum": 9798687455571071282,
131
+ "count": 4096,
132
+ "execution": {
133
+ "stop": 252125,
134
+ "trace_length": 86082,
135
+ "trace_sha256": "f61d91febf5dabdb8fa894027c8750778d6119341f5bf10d0ef41111376d7a42"
136
+ },
137
+ "input": {
138
+ "count": 4096,
139
+ "now": 0
140
+ },
141
+ "selected": [
142
+ [
143
+ 287454020,
144
+ 1,
145
+ 0
146
+ ],
147
+ [
148
+ 287454020,
149
+ 2,
150
+ 4294967295
151
+ ],
152
+ [
153
+ 287454020,
154
+ 3,
155
+ 0
156
+ ],
157
+ [
158
+ 287454020,
159
+ 4,
160
+ 1
161
+ ],
162
+ [
163
+ 287454020,
164
+ 5,
165
+ 4294967295
166
+ ],
167
+ [
168
+ 287454020,
169
+ 4294967295,
170
+ 2147483648
171
+ ],
172
+ [
173
+ 287454020,
174
+ 64,
175
+ 60
176
+ ],
177
+ [
178
+ 287454020,
179
+ 4096,
180
+ 0
181
+ ]
182
+ ]
183
+ },
184
+ {
185
+ "calls": [
186
+ {
187
+ "op": "time"
188
+ }
189
+ ],
190
+ "checksum": 6770823300158093670,
191
+ "count": 0,
192
+ "execution": {
193
+ "stop": 252125,
194
+ "trace_length": 86114,
195
+ "trace_sha256": "17e33818632f110186eb9c71de6b96812a07c93d582a448f5085db43aefaf792"
196
+ },
197
+ "input": {
198
+ "count": 0,
199
+ "now": 60
200
+ },
201
+ "selected": [
202
+ [
203
+ 287454020,
204
+ 4294967295,
205
+ 0
206
+ ],
207
+ [
208
+ 287454020,
209
+ 4294967295,
210
+ 59
211
+ ],
212
+ [
213
+ 287454020,
214
+ 3,
215
+ 60
216
+ ],
217
+ [
218
+ 287454020,
219
+ 4,
220
+ 61
221
+ ],
222
+ [
223
+ 287454020,
224
+ 5,
225
+ 4294967295
226
+ ],
227
+ [
228
+ 287454020,
229
+ 4294967295,
230
+ 2147483648
231
+ ],
232
+ [
233
+ 287454020,
234
+ 64,
235
+ 60
236
+ ],
237
+ [
238
+ 287454020,
239
+ 4294967295,
240
+ 0
241
+ ]
242
+ ]
243
+ },
244
+ {
245
+ "calls": [
246
+ {
247
+ "op": "time"
248
+ }
249
+ ],
250
+ "checksum": 6770823300158093670,
251
+ "count": 3,
252
+ "execution": {
253
+ "stop": 252125,
254
+ "trace_length": 86114,
255
+ "trace_sha256": "17e33818632f110186eb9c71de6b96812a07c93d582a448f5085db43aefaf792"
256
+ },
257
+ "input": {
258
+ "count": 3,
259
+ "now": 60
260
+ },
261
+ "selected": [
262
+ [
263
+ 287454020,
264
+ 4294967295,
265
+ 0
266
+ ],
267
+ [
268
+ 287454020,
269
+ 4294967295,
270
+ 59
271
+ ],
272
+ [
273
+ 287454020,
274
+ 3,
275
+ 60
276
+ ],
277
+ [
278
+ 287454020,
279
+ 4,
280
+ 61
281
+ ],
282
+ [
283
+ 287454020,
284
+ 5,
285
+ 4294967295
286
+ ],
287
+ [
288
+ 287454020,
289
+ 4294967295,
290
+ 2147483648
291
+ ],
292
+ [
293
+ 287454020,
294
+ 64,
295
+ 60
296
+ ],
297
+ [
298
+ 287454020,
299
+ 4294967295,
300
+ 0
301
+ ]
302
+ ]
303
+ },
304
+ {
305
+ "calls": [
306
+ {
307
+ "op": "time"
308
+ }
309
+ ],
310
+ "checksum": 6770823300158093670,
311
+ "count": 4096,
312
+ "execution": {
313
+ "stop": 252125,
314
+ "trace_length": 86114,
315
+ "trace_sha256": "17e33818632f110186eb9c71de6b96812a07c93d582a448f5085db43aefaf792"
316
+ },
317
+ "input": {
318
+ "count": 4096,
319
+ "now": 60
320
+ },
321
+ "selected": [
322
+ [
323
+ 287454020,
324
+ 4294967295,
325
+ 0
326
+ ],
327
+ [
328
+ 287454020,
329
+ 4294967295,
330
+ 59
331
+ ],
332
+ [
333
+ 287454020,
334
+ 3,
335
+ 60
336
+ ],
337
+ [
338
+ 287454020,
339
+ 4,
340
+ 61
341
+ ],
342
+ [
343
+ 287454020,
344
+ 5,
345
+ 4294967295
346
+ ],
347
+ [
348
+ 287454020,
349
+ 4294967295,
350
+ 2147483648
351
+ ],
352
+ [
353
+ 287454020,
354
+ 64,
355
+ 60
356
+ ],
357
+ [
358
+ 287454020,
359
+ 4294967295,
360
+ 0
361
+ ]
362
+ ]
363
+ },
364
+ {
365
+ "calls": [
366
+ {
367
+ "op": "time"
368
+ }
369
+ ],
370
+ "checksum": 11781194392214500037,
371
+ "count": 0,
372
+ "execution": {
373
+ "stop": 252125,
374
+ "trace_length": 86122,
375
+ "trace_sha256": "e1d5e31b81a9b883429cc14f5e228ce52ac77b6dd1e2f1a2ae2201cfaae85d26"
376
+ },
377
+ "input": {
378
+ "count": 0,
379
+ "now": 1440
380
+ },
381
+ "selected": [
382
+ [
383
+ 287454020,
384
+ 4294967295,
385
+ 0
386
+ ],
387
+ [
388
+ 287454020,
389
+ 4294967295,
390
+ 1439
391
+ ],
392
+ [
393
+ 287454020,
394
+ 3,
395
+ 1440
396
+ ],
397
+ [
398
+ 287454020,
399
+ 4,
400
+ 1441
401
+ ],
402
+ [
403
+ 287454020,
404
+ 5,
405
+ 4294967295
406
+ ],
407
+ [
408
+ 287454020,
409
+ 4294967295,
410
+ 2147483648
411
+ ],
412
+ [
413
+ 287454020,
414
+ 4294967295,
415
+ 60
416
+ ],
417
+ [
418
+ 287454020,
419
+ 4294967295,
420
+ 0
421
+ ]
422
+ ]
423
+ },
424
+ {
425
+ "calls": [
426
+ {
427
+ "op": "time"
428
+ }
429
+ ],
430
+ "checksum": 11781194392214500037,
431
+ "count": 3,
432
+ "execution": {
433
+ "stop": 252125,
434
+ "trace_length": 86122,
435
+ "trace_sha256": "e1d5e31b81a9b883429cc14f5e228ce52ac77b6dd1e2f1a2ae2201cfaae85d26"
436
+ },
437
+ "input": {
438
+ "count": 3,
439
+ "now": 1440
440
+ },
441
+ "selected": [
442
+ [
443
+ 287454020,
444
+ 4294967295,
445
+ 0
446
+ ],
447
+ [
448
+ 287454020,
449
+ 4294967295,
450
+ 1439
451
+ ],
452
+ [
453
+ 287454020,
454
+ 3,
455
+ 1440
456
+ ],
457
+ [
458
+ 287454020,
459
+ 4,
460
+ 1441
461
+ ],
462
+ [
463
+ 287454020,
464
+ 5,
465
+ 4294967295
466
+ ],
467
+ [
468
+ 287454020,
469
+ 4294967295,
470
+ 2147483648
471
+ ],
472
+ [
473
+ 287454020,
474
+ 4294967295,
475
+ 60
476
+ ],
477
+ [
478
+ 287454020,
479
+ 4294967295,
480
+ 0
481
+ ]
482
+ ]
483
+ },
484
+ {
485
+ "calls": [
486
+ {
487
+ "op": "time"
488
+ }
489
+ ],
490
+ "checksum": 11781194392214500037,
491
+ "count": 4096,
492
+ "execution": {
493
+ "stop": 252125,
494
+ "trace_length": 86122,
495
+ "trace_sha256": "e1d5e31b81a9b883429cc14f5e228ce52ac77b6dd1e2f1a2ae2201cfaae85d26"
496
+ },
497
+ "input": {
498
+ "count": 4096,
499
+ "now": 1440
500
+ },
501
+ "selected": [
502
+ [
503
+ 287454020,
504
+ 4294967295,
505
+ 0
506
+ ],
507
+ [
508
+ 287454020,
509
+ 4294967295,
510
+ 1439
511
+ ],
512
+ [
513
+ 287454020,
514
+ 3,
515
+ 1440
516
+ ],
517
+ [
518
+ 287454020,
519
+ 4,
520
+ 1441
521
+ ],
522
+ [
523
+ 287454020,
524
+ 5,
525
+ 4294967295
526
+ ],
527
+ [
528
+ 287454020,
529
+ 4294967295,
530
+ 2147483648
531
+ ],
532
+ [
533
+ 287454020,
534
+ 4294967295,
535
+ 60
536
+ ],
537
+ [
538
+ 287454020,
539
+ 4294967295,
540
+ 0
541
+ ]
542
+ ]
543
+ },
544
+ {
545
+ "calls": [
546
+ {
547
+ "op": "time"
548
+ }
549
+ ],
550
+ "checksum": 5086403093565816865,
551
+ "count": 0,
552
+ "execution": {
553
+ "stop": 252125,
554
+ "trace_length": 86130,
555
+ "trace_sha256": "35d6736d6ce99dc2e717b5b16058f77f8361ff52b578a56a9f647d6e858b5930"
556
+ },
557
+ "input": {
558
+ "count": 0,
559
+ "now": 4294967295
560
+ },
561
+ "selected": [
562
+ [
563
+ 287454020,
564
+ 4294967295,
565
+ 0
566
+ ],
567
+ [
568
+ 287454020,
569
+ 4294967295,
570
+ 4294967294
571
+ ],
572
+ [
573
+ 287454020,
574
+ 3,
575
+ 4294967295
576
+ ],
577
+ [
578
+ 287454020,
579
+ 4294967295,
580
+ 0
581
+ ],
582
+ [
583
+ 287454020,
584
+ 5,
585
+ 4294967295
586
+ ],
587
+ [
588
+ 287454020,
589
+ 4294967295,
590
+ 2147483648
591
+ ],
592
+ [
593
+ 287454020,
594
+ 4294967295,
595
+ 60
596
+ ],
597
+ [
598
+ 287454020,
599
+ 4294967295,
600
+ 0
601
+ ]
602
+ ]
603
+ },
604
+ {
605
+ "calls": [
606
+ {
607
+ "op": "time"
608
+ }
609
+ ],
610
+ "checksum": 5086403093565816865,
611
+ "count": 3,
612
+ "execution": {
613
+ "stop": 252125,
614
+ "trace_length": 86130,
615
+ "trace_sha256": "35d6736d6ce99dc2e717b5b16058f77f8361ff52b578a56a9f647d6e858b5930"
616
+ },
617
+ "input": {
618
+ "count": 3,
619
+ "now": 4294967295
620
+ },
621
+ "selected": [
622
+ [
623
+ 287454020,
624
+ 4294967295,
625
+ 0
626
+ ],
627
+ [
628
+ 287454020,
629
+ 4294967295,
630
+ 4294967294
631
+ ],
632
+ [
633
+ 287454020,
634
+ 3,
635
+ 4294967295
636
+ ],
637
+ [
638
+ 287454020,
639
+ 4294967295,
640
+ 0
641
+ ],
642
+ [
643
+ 287454020,
644
+ 5,
645
+ 4294967295
646
+ ],
647
+ [
648
+ 287454020,
649
+ 4294967295,
650
+ 2147483648
651
+ ],
652
+ [
653
+ 287454020,
654
+ 4294967295,
655
+ 60
656
+ ],
657
+ [
658
+ 287454020,
659
+ 4294967295,
660
+ 0
661
+ ]
662
+ ]
663
+ },
664
+ {
665
+ "calls": [
666
+ {
667
+ "op": "time"
668
+ }
669
+ ],
670
+ "checksum": 5086403093565816865,
671
+ "count": 4096,
672
+ "execution": {
673
+ "stop": 252125,
674
+ "trace_length": 86130,
675
+ "trace_sha256": "35d6736d6ce99dc2e717b5b16058f77f8361ff52b578a56a9f647d6e858b5930"
676
+ },
677
+ "input": {
678
+ "count": 4096,
679
+ "now": 4294967295
680
+ },
681
+ "selected": [
682
+ [
683
+ 287454020,
684
+ 4294967295,
685
+ 0
686
+ ],
687
+ [
688
+ 287454020,
689
+ 4294967295,
690
+ 4294967294
691
+ ],
692
+ [
693
+ 287454020,
694
+ 3,
695
+ 4294967295
696
+ ],
697
+ [
698
+ 287454020,
699
+ 4294967295,
700
+ 0
701
+ ],
702
+ [
703
+ 287454020,
704
+ 5,
705
+ 4294967295
706
+ ],
707
+ [
708
+ 287454020,
709
+ 4294967295,
710
+ 2147483648
711
+ ],
712
+ [
713
+ 287454020,
714
+ 4294967295,
715
+ 60
716
+ ],
717
+ [
718
+ 287454020,
719
+ 4294967295,
720
+ 0
721
+ ]
722
+ ]
723
+ }
724
+ ],
725
+ "root": 252067,
726
+ "sha256": "a589351dfe517470a1b121dd2164714987d9e4577bf00c6486e1540035d7a79d",
727
+ "source": {
728
+ "archive": "zUrT43_qvm.pk3",
729
+ "archive_sha256": "b59bf0c5bedf11d50e0edd220da7eade96de40601e98ae14c54c819047df0796",
730
+ "member": {
731
+ "bytes": 983300,
732
+ "comment_hex": "",
733
+ "compressed_bytes": 246560,
734
+ "compression": 8,
735
+ "crc32": "98ea1768",
736
+ "create_system": 0,
737
+ "create_version": 63,
738
+ "date_time": [
739
+ 2018,
740
+ 6,
741
+ 18,
742
+ 22,
743
+ 11,
744
+ 50
745
+ ],
746
+ "directory": false,
747
+ "entry_index": 2,
748
+ "external_attr": 32,
749
+ "extra_hex": "0a0020000000000001001800d1e24e974007d40116dcbf962f1fd20116dcbf962f1fd201",
750
+ "extract_version": 20,
751
+ "flags": 0,
752
+ "header_offset": 221309,
753
+ "internal_attr": 0,
754
+ "occurrence": 0,
755
+ "output": "assets/extracted/zUrT43_qvm.pk3/members/000002/vm/qagame.qvm",
756
+ "path": "vm/qagame.qvm",
757
+ "sha256": "a589351dfe517470a1b121dd2164714987d9e4577bf00c6486e1540035d7a79d",
758
+ "type": "member",
759
+ "volume": 0
760
+ }
761
+ }
762
+ }
docs/research/qvm-resumer-audit.json CHANGED
@@ -8689,6 +8689,37 @@
8689
  "repeated_calls_opt_in": true,
8690
  "repeated_calls_setting": "literal_true"
8691
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8692
  {
8693
  "backward_conditional_branches": [
8694
  252856
@@ -10074,8 +10105,8 @@
10074
  }
10075
  },
10076
  "summary": {
10077
- "call_expressions": 204,
10078
- "files": 156,
10079
  "legacy_expressions": 158,
10080
  "nonliteral_ranges": 28,
10081
  "unresolved_mode_expressions": 3
 
8689
  "repeated_calls_opt_in": true,
8690
  "repeated_calls_setting": "literal_true"
8691
  },
8692
+ {
8693
+ "backward_conditional_branches": [
8694
+ 252124
8695
+ ],
8696
+ "calls": [
8697
+ {
8698
+ "dynamic_store_requires_review": false,
8699
+ "implicit_local_offset": null,
8700
+ "instruction": 252071,
8701
+ "stores_result": false,
8702
+ "target": -42
8703
+ },
8704
+ {
8705
+ "dynamic_store_requires_review": false,
8706
+ "implicit_local_offset": 56,
8707
+ "instruction": 252077,
8708
+ "stores_result": true,
8709
+ "target": 251995
8710
+ }
8711
+ ],
8712
+ "explicit_result_offsets": null,
8713
+ "helper": "qvm_trace_support.resume",
8714
+ "line": 43,
8715
+ "literal_range": [
8716
+ 252068,
8717
+ 252125
8718
+ ],
8719
+ "path": "scripts/qvm_filter_loading_support.py",
8720
+ "repeated_calls_opt_in": true,
8721
+ "repeated_calls_setting": "literal_true"
8722
+ },
8723
  {
8724
  "backward_conditional_branches": [
8725
  252856
 
10105
  }
10106
  },
10107
  "summary": {
10108
+ "call_expressions": 205,
10109
+ "files": 157,
10110
  "legacy_expressions": 158,
10111
  "nonliteral_ranges": 28,
10112
  "unresolved_mode_expressions": 3
scripts/analyze_qvm_filter_expiry.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Execute the original4096-slot expiry scan, ignoring the active count."""
2
+ from pathlib import Path
3
+ from itertools import product
4
+ from analyze_qvm import write_json
5
+ from qvm_research_support import source
6
+ from qvm_filter_loading_support import environment,expiry,expiry_rows,SLOTS
7
+ from qvm_filter_update_support import COUNT,snapshot,digest
8
+
9
+ def main():
10
+ q,raw,h,ins=source();probes=[]
11
+ for now,count in product([0,60,1440,0xffffffff],[0,3,4096]):
12
+ rows=expiry_rows(now);m,b=environment(raw,h,rows);m[COUNT]=count
13
+ fields=[13,now,0,4,5,126,6,0,0];m,p,b=expiry(ins,m,b,fields);after=snapshot(m,4096)
14
+ p.update(input=dict(now=now,count=count),count=m[COUNT],selected=[after[j] for j in SLOTS],checksum=digest(after));probes.append(p)
15
+ write_json(Path('docs/research/qvm-filter-expiry.json'),dict(source=q['source'],sha256=q['sha256'],root=252067,probes=probes,limits='12 full4096-slot scans with actual251995 and supplied native time. Unsigned metadata<now expires comparison only; metadata-1 permanent; equality retained. Count is ignored and unchanged; no export. Native calendar rollover, invocation cadence and unsafe/malformed storage remain open.'))
16
+ if __name__=='__main__':main()
scripts/qvm_filter_loading_support.py CHANGED
@@ -22,3 +22,23 @@ def time_oracle(a):
22
  x=signed(a['minutes']);day=div(x,1440);rem=x-day*1440;hour=div(rem,60)
23
  fields=[0x11110000+j for j in range(9)];fields[7]=day&0xffffffff;fields[2]=hour&0xffffffff;fields[1]=(hour-div(hour,60)*60)&0xffffffff
24
  t=a['fields'];return dict(flat=(t[7]*1440+t[2]*60+t[1])&0xffffffff,inverse=fields)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  x=signed(a['minutes']);day=div(x,1440);rem=x-day*1440;hour=div(rem,60)
23
  fields=[0x11110000+j for j in range(9)];fields[7]=day&0xffffffff;fields[2]=hour&0xffffffff;fields[1]=(hour-div(hour,60)*60)&0xffffffff
24
  t=a['fields'];return dict(flat=(t[7]*1440+t[2]*60+t[1])&0xffffffff,inverse=fields)
25
+
26
+ EXPIRY=ROOT+0x10000
27
+ SLOTS=[0,1,2,3,4,5,63,4095]
28
+ def expiry_rows(now):
29
+ rows=[[0x11223344,j+1,0xffffffff] for j in range(4096)]
30
+ for j,t in zip(SLOTS,[0,(now-1)&0xffffffff,now,(now+1)&0xffffffff,0xffffffff,0x80000000,60,0]):rows[j][2]=t
31
+ rows[5][1]=0xffffffff
32
+ return rows
33
+
34
+ def expiry(ins,m,b,fields):
35
+ from qvm_trace_support import resume
36
+ from qvm_string_memory_support import frame_args
37
+ calls=[]
38
+ def clock(i,m,a,bs):
39
+ calls.append(dict(op='time'));return m,0,{'native_time_supplied':True,'child_memory_bytes':{a[8]+4*j+k:(v>>(8*k))&255 for j,v in enumerate(fields) for k in range(4)}}
40
+ def flatten(i,m,a,bs):
41
+ m,v,p,b=run(i,m,251995,252023,12,a,dict(bs),base=ROOT+0x20000);return m,v,{'actual_source_child':251995}
42
+ m,b=frame_args(m,b,{})
43
+ m,e=resume(ins,252068,252125,m,EXPIRY,handlers={-42:clock,251995:flatten},byte_inputs=b,repeated_calls=True,sync_child_words=True,coherent_memory=True,byte_handlers=True,capture_byte_memory=True,segment_limit=4096,limit=262144)
44
+ return m,dict(calls=calls,execution={k:e[k] for k in ['stop','trace_length','trace_sha256']}),e['byte_memory']
scripts/test_qvm_filter_expiry.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json,unittest
2
+ from pathlib import Path
3
+ from qvm_filter_loading_support import expiry_rows,SLOTS
4
+ from qvm_filter_update_support import digest
5
+ class ExpiryTests(unittest.TestCase):
6
+ def test_full_table_oracle(self):
7
+ rows=json.loads(Path('docs/research/qvm-filter-expiry.json').read_text())['probes'];self.assertEqual(len(rows),12)
8
+ for p in rows:
9
+ a=p['input'];expected=expiry_rows(a['now'])
10
+ for r in expected:
11
+ if r[2]!=0xffffffff and r[2]<a['now']:r[1]=0xffffffff
12
+ self.assertEqual(p['selected'],[expected[j] for j in SLOTS]);self.assertEqual(p['checksum'],digest(expected));self.assertEqual(p['count'],a['count']);self.assertEqual(p['calls'],[dict(op='time')])
13
+ def test_count_zero_still_expires_last_slot(self):
14
+ p=next(p for p in json.loads(Path('docs/research/qvm-filter-expiry.json').read_text())['probes'] if p['input']==dict(now=60,count=0));self.assertEqual(p['selected'][-1][1],0xffffffff);self.assertNotEqual(p['selected'][2][1],0xffffffff)
15
+ if __name__=='__main__':unittest.main()
xtask/checks.tsv CHANGED
@@ -3224,3 +3224,7 @@ group rust-filter-time scripts/analyze_rust_health_impulse.py
3224
  group gameplay scripts/analyze_rust_filter_time.py
3225
  edge crates/urt-gameplay/src/filter_loading.rs scripts/analyze_rust_health_impulse.py
3226
  edge crates/urt-gameplay/src/bin/urt-filter-loading.rs scripts/analyze_rust_health_impulse.py
 
 
 
 
 
3224
  group gameplay scripts/analyze_rust_filter_time.py
3225
  edge crates/urt-gameplay/src/filter_loading.rs scripts/analyze_rust_health_impulse.py
3226
  edge crates/urt-gameplay/src/bin/urt-filter-loading.rs scripts/analyze_rust_health_impulse.py
3227
+ report scripts/analyze_qvm_filter_expiry.py docs/research/qvm-filter-expiry.json
3228
+ edge docs/research/qvm-filter-expiry.json scripts/test_qvm_filter_expiry.py
3229
+ group qvm-filter-expiry scripts/analyze_qvm_filter_expiry.py
3230
+ edge scripts/analyze_qvm_filter_expiry.py scripts/analyze_qvm_resumer_audit.py