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

gameplay: preserve defuse allocator prefixes

Browse files
crates/urt-gameplay/src/bin/urt-location-feedback.rs CHANGED
@@ -24,6 +24,7 @@ fn main() {
24
  "radio" => println!("{}", radio(&w)),
25
  "allocation" => println!("{}", allocation(&w)),
26
  "allocated" => println!("{}", allocated(&w)),
 
27
  _ => panic!("unknown contract"),
28
  }
29
  }
@@ -275,11 +276,14 @@ fn allocation(w: &[u32]) -> String {
275
  format!("{{{}}}", allocation_fields(&pool, &out))
276
  }
277
 
278
- fn allocated(w: &[u32]) -> String {
 
 
 
 
 
279
  use urt_gameplay::defuse::{DefuseInput, DefuseState};
280
- assert!(w.len() >= 14);
281
- assert_eq!(w.len(), 14 + w[13] as usize);
282
- let mut state = DefuseState {
283
  flags: w[0],
284
  flags104: w[1],
285
  busy: w[2],
@@ -295,6 +299,13 @@ fn allocated(w: &[u32]) -> String {
295
  index: w[9],
296
  slot: 2,
297
  };
 
 
 
 
 
 
 
298
  let (mut pool, _, start) = decode_pool(&w[14..]);
299
  let out = allocated_defuse_start(
300
  &mut state,
@@ -331,3 +342,48 @@ fn allocated(w: &[u32]) -> String {
331
  list(&out.links.iter().map(|v| *v as u32).collect::<Vec<_>>())
332
  )
333
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  "radio" => println!("{}", radio(&w)),
25
  "allocation" => println!("{}", allocation(&w)),
26
  "allocated" => println!("{}", allocated(&w)),
27
+ "defuse-terminal" => println!("{}", defuse_terminal(&w)),
28
  _ => panic!("unknown contract"),
29
  }
30
  }
 
276
  format!("{{{}}}", allocation_fields(&pool, &out))
277
  }
278
 
279
+ fn decode_defuse(
280
+ w: &[u32],
281
+ ) -> (
282
+ urt_gameplay::defuse::DefuseState,
283
+ urt_gameplay::defuse::DefuseInput,
284
+ ) {
285
  use urt_gameplay::defuse::{DefuseInput, DefuseState};
286
+ let state = DefuseState {
 
 
287
  flags: w[0],
288
  flags104: w[1],
289
  busy: w[2],
 
299
  index: w[9],
300
  slot: 2,
301
  };
302
+ (state, input)
303
+ }
304
+
305
+ fn allocated(w: &[u32]) -> String {
306
+ assert!(w.len() >= 14);
307
+ assert_eq!(w.len(), 14 + w[13] as usize);
308
+ let (mut state, input) = decode_defuse(w);
309
  let (mut pool, _, start) = decode_pool(&w[14..]);
310
  let out = allocated_defuse_start(
311
  &mut state,
 
342
  list(&out.links.iter().map(|v| *v as u32).collect::<Vec<_>>())
343
  )
344
  }
345
+
346
+ fn defuse_terminal(w: &[u32]) -> String {
347
+ use urt_gameplay::defuse::DefuseEffect;
348
+ let (mut state, input) = decode_defuse(w);
349
+ let branch = match w[10] {
350
+ 0 => DefuseBranch::Start,
351
+ 1 => DefuseBranch::Cancel,
352
+ 2 => DefuseBranch::Finish,
353
+ _ => panic!("unknown defuse branch"),
354
+ };
355
+ let (mut pool, _, start) = decode_pool(&w[11..]);
356
+ let before_slots = pool.slots.clone();
357
+ let outcome = allocate_defuse_branch(&mut state, &mut pool, input, branch, start, [0; 3])
358
+ .unwrap()
359
+ .expect("expected an allocation attempt");
360
+ assert_eq!(pool.slots, before_slots);
361
+ assert!(outcome.initialized.is_none());
362
+ assert!(outcome.links.is_empty());
363
+ assert!(outcome.after_allocation.is_empty());
364
+ let effects = outcome
365
+ .before_allocation
366
+ .iter()
367
+ .map(|effect| match effect {
368
+ DefuseEffect::Log { format, slot } => {
369
+ format!(r#"{{"op":"log","format":"{}","slot":{slot}}}"#, hex(format))
370
+ }
371
+ _ => panic!("unexpected effect before defuse allocation"),
372
+ })
373
+ .collect::<Vec<_>>()
374
+ .join(",");
375
+ format!(
376
+ r#"{{"state":{{"flags":{},"flags104":{},"busy":{},"clock":{},"complete":{},"animation":{},"weapon":{},"event":{}}},"event_kind":{},"effects":[{}],"allocation":{{{}}}}}"#,
377
+ state.flags,
378
+ state.flags104,
379
+ state.busy,
380
+ state.clock,
381
+ state.complete,
382
+ state.animation,
383
+ state.weapon,
384
+ list(&state.event),
385
+ outcome.event_kind,
386
+ effects,
387
+ allocation_fields(&pool, &outcome.allocation)
388
+ )
389
+ }
crates/urt-gameplay/src/location_feedback.rs CHANGED
@@ -555,6 +555,101 @@ fn store_event(s: &mut EntitySlot, e: &crate::transition::EventRecord) {
555
  s.words[o / 4] = v;
556
  }
557
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
558
  /// Original153774 through153917, stopping before radio. Successful allocation
559
  /// domain only; terminal allocator prefixes are exposed by allocate_entity.
560
  /// Native registration/linking remain plans. Typed errors roll back both states.
@@ -570,13 +665,8 @@ pub fn allocated_defuse_start(
570
  crate::defuse::begin_defuse(&mut next, input)?;
571
  let allocation = allocate_entity(&mut p, input.tick, start)?;
572
  let index = allocation.selected.ok_or(Error::InvalidInput)?;
573
- let initialized = p.slots[index].clone();
574
- let mut event = slot_event(&initialized);
575
- crate::transition::temporary_event(&mut event, origin, 83, input.tick as i32)
576
- .map_err(|_| Error::InvalidInput)?;
577
- store_event(&mut p.slots[index], &event);
578
- p.slots[index].words[184 / 4] = input.duration;
579
- p.slots[index].words[424 / 4] |= 32;
580
  next.event = [input.duration, p.slots[index].words[424 / 4]];
581
  *state = next;
582
  *pool = p;
 
555
  s.words[o / 4] = v;
556
  }
557
  }
558
+ /// Selected branch of the defuse callback after eligibility and bomb lookup.
559
+ #[derive(Clone, Copy, Debug, PartialEq, Eq)]
560
+ pub enum DefuseBranch {
561
+ Start,
562
+ Cancel,
563
+ Finish,
564
+ }
565
+
566
+ /// Allocation and caller effects in their observed order. A terminal allocation
567
+ /// has no initialized record, links, or effects after allocation.
568
+ #[derive(Clone, Debug, PartialEq, Eq)]
569
+ pub struct DefuseAllocation {
570
+ pub event_kind: u32,
571
+ pub allocation: AllocationOutcome,
572
+ pub initialized: Option<EntitySlot>,
573
+ pub links: Vec<usize>,
574
+ pub before_allocation: Vec<crate::defuse::DefuseEffect>,
575
+ pub after_allocation: Vec<crate::defuse::DefuseEffect>,
576
+ }
577
+
578
+ /// Resolve event allocation for a reached defuse branch. Pending diagnostic
579
+ /// and fatal outcomes commit the observed caller and allocator prefix. Typed
580
+ /// errors leave the supplied state untouched. Native effects remain plans.
581
+ pub fn allocate_defuse_branch(
582
+ state: &mut crate::defuse::DefuseState,
583
+ pool: &mut EntityPool,
584
+ input: crate::defuse::DefuseInput,
585
+ branch: DefuseBranch,
586
+ start: u32,
587
+ origin: [u32; 3],
588
+ ) -> Result<Option<DefuseAllocation>, Error> {
589
+ use crate::defuse::{DefuseEffect, begin_defuse, cancel_defuse, finish_defuse};
590
+
591
+ let mut caller = *state;
592
+ let mut effects = match branch {
593
+ DefuseBranch::Start => begin_defuse(&mut caller, input)?,
594
+ DefuseBranch::Cancel => cancel_defuse(&mut caller, input)?,
595
+ DefuseBranch::Finish => finish_defuse(&mut caller, input)?,
596
+ };
597
+ let Some((position, event_kind)) =
598
+ effects
599
+ .iter()
600
+ .enumerate()
601
+ .find_map(|(position, effect)| match effect {
602
+ DefuseEffect::Allocate { event } => Some((position, *event)),
603
+ _ => None,
604
+ })
605
+ else {
606
+ return Ok(None);
607
+ };
608
+ let mut after_allocation = effects.split_off(position + 1);
609
+ effects.truncate(position);
610
+
611
+ let payload = caller.event[0];
612
+ caller.event = state.event;
613
+ let mut next_pool = pool.clone();
614
+ let allocation = allocate_entity(&mut next_pool, input.tick, start)?;
615
+ let (initialized, links) = if let Some(index) = allocation.selected {
616
+ let record = &mut next_pool.slots[index];
617
+ let initialized = construct_defuse_event(record, origin, event_kind, input.tick, payload)?;
618
+ caller.event = [payload, record.words[424 / 4]];
619
+ (Some(initialized), vec![index])
620
+ } else {
621
+ after_allocation.clear();
622
+ (None, vec![])
623
+ };
624
+ *state = caller;
625
+ *pool = next_pool;
626
+ Ok(Some(DefuseAllocation {
627
+ event_kind,
628
+ allocation,
629
+ initialized,
630
+ links,
631
+ before_allocation: effects,
632
+ after_allocation,
633
+ }))
634
+ }
635
+
636
+ fn construct_defuse_event(
637
+ record: &mut EntitySlot,
638
+ origin: [u32; 3],
639
+ kind: u32,
640
+ tick: u32,
641
+ payload: u32,
642
+ ) -> Result<EntitySlot, Error> {
643
+ let initialized = record.clone();
644
+ let mut event = slot_event(&initialized);
645
+ crate::transition::temporary_event(&mut event, origin, kind, tick as i32)
646
+ .map_err(|_| Error::InvalidInput)?;
647
+ store_event(record, &event);
648
+ record.words[184 / 4] = payload;
649
+ record.words[424 / 4] |= 32;
650
+ Ok(initialized)
651
+ }
652
+
653
  /// Original153774 through153917, stopping before radio. Successful allocation
654
  /// domain only; terminal allocator prefixes are exposed by allocate_entity.
655
  /// Native registration/linking remain plans. Typed errors roll back both states.
 
665
  crate::defuse::begin_defuse(&mut next, input)?;
666
  let allocation = allocate_entity(&mut p, input.tick, start)?;
667
  let index = allocation.selected.ok_or(Error::InvalidInput)?;
668
+ let initialized =
669
+ construct_defuse_event(&mut p.slots[index], origin, 83, input.tick, input.duration)?;
 
 
 
 
 
670
  next.event = [input.duration, p.slots[index].words[424 / 4]];
671
  *state = next;
672
  *pool = p;
docs/FINDINGS.md CHANGED
@@ -2033,3 +2033,5 @@ RE-1043: Rust matches24 source scenarios composing real fixed-pool selection/ini
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).
 
 
 
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).
2036
+
2037
+ - The Rust defuse adapter preserves allocator-terminal caller writes and the completion log plan. [Rust terminal parity](research/RUST_DEFUSE_ALLOCATION_TERMINAL.md).
docs/PROVISIONAL_TODO.md CHANGED
@@ -2095,3 +2095,5 @@ RE-974–983 completed routing, command rewrite, inactivity, movement-parameter
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)).
 
 
 
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)).
2098
+
2099
+ - [x] RE-1045 Preserve defuse caller state across allocator terminals in Rust ([evidence](research/RUST_DEFUSE_ALLOCATION_TERMINAL.md)).
docs/RESEARCH_LEDGER.md CHANGED
@@ -2851,3 +2851,7 @@ Rust matches24 source scenarios composing real fixed-pool selection/init, event
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).
 
 
 
 
 
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).
2854
+
2855
+ ## 2026-11-21 — RE-1045 Preserve defuse caller state across allocator terminals in Rust
2856
+
2857
+ Rust matches the caller state, earlier log and allocator results in sixteen traced cases. The adapter keeps the event projection and fixed pool records intact while committing the allocator count and caller state. See [Rust terminal integration](research/RUST_DEFUSE_ALLOCATION_TERMINAL.md).
docs/research/QVM_LOCATION_ALLOCATION_BATCH.md CHANGED
@@ -69,3 +69,5 @@ The single `cargo xtask test-full --since a1fd4e2b` run at the tenth-commit boun
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.
 
 
 
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.
72
+
73
+ RE-1045 matches all sixteen prefixes in [the Rust adapter](RUST_DEFUSE_ALLOCATION_TERMINAL.md). The adapter commits the earlier writes at a terminal outcome and exposes the completion log separately from later effects.
docs/research/README.md CHANGED
@@ -1661,3 +1661,5 @@ The extension collector adds five focused tests for native tail calls, command-r
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)
 
 
 
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)
1664
+
1665
+ - [Defuse allocation terminals in Rust](RUST_DEFUSE_ALLOCATION_TERMINAL.md)
docs/research/RUST_DEFUSE_ALLOCATION_TERMINAL.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Defuse allocation terminals in Rust
2
+
3
+ `allocate_defuse_branch` consumes a selected start, cancellation or finish branch and resolves its event allocation against a fixed pool. The two source cancellation paths use the same Rust branch because their state changes and emitted event agree. The adapter exposes the allocation result, the initialized record and link plan when applicable, and caller effect plans before and after allocation.
4
+
5
+ At a terminal outcome, the adapter commits the preceding caller and allocator writes. It preserves all entity records and the caller's prior event projection. A completion preserves its earlier log plan and omits subsequent score and counter plans. The existing successful-start API continues to reject terminal cases and shares the event-construction code. Native diagnostic and fatal execution remain external.
6
+
7
+ The [parity report](rust-defuse-allocation-terminal.json) checks sixteen source cases. The focused check also reruns existing successful-start parity. Source verification for successful cancellation and completion with real allocated records remains open.
docs/research/rust-defuse-allocation-terminal.json ADDED
@@ -0,0 +1,1239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "limits": "Caller-state and allocator parity before native diagnostic/fatal handling.",
3
+ "probes": [
4
+ {
5
+ "input": {
6
+ "allocation": {
7
+ "count": 1022,
8
+ "profile": 8,
9
+ "slots": [],
10
+ "start": 0,
11
+ "tick": 5000
12
+ },
13
+ "animation": 99,
14
+ "branch": "start",
15
+ "busy": 0,
16
+ "clock": 0,
17
+ "complete": 0,
18
+ "duration": 5,
19
+ "flags": 2147516512,
20
+ "flags104": 2147483666,
21
+ "index": 3,
22
+ "tick": 5000,
23
+ "weapon": 305397771
24
+ },
25
+ "rust": {
26
+ "allocation": {
27
+ "count": 1022,
28
+ "record": null,
29
+ "registrations": [],
30
+ "retry": 0,
31
+ "scan_index": 0,
32
+ "selected": null,
33
+ "status": "diagnostic-loop-pending"
34
+ },
35
+ "effects": [],
36
+ "event_kind": 83,
37
+ "state": {
38
+ "animation": 2,
39
+ "busy": 1,
40
+ "clock": 5000,
41
+ "complete": 0,
42
+ "event": [
43
+ 7,
44
+ 2147483649
45
+ ],
46
+ "flags": 2147516420,
47
+ "flags104": 2147483666,
48
+ "weapon": 305397771
49
+ }
50
+ },
51
+ "source": {
52
+ "allocation": {
53
+ "count": 1022,
54
+ "record": null,
55
+ "registrations": [],
56
+ "retry": 0,
57
+ "scan_index": 0,
58
+ "selected": null,
59
+ "status": "diagnostic-loop-pending"
60
+ },
61
+ "effects": [],
62
+ "event_kind": 83,
63
+ "state": {
64
+ "animation": 2,
65
+ "busy": 1,
66
+ "clock": 5000,
67
+ "complete": 0,
68
+ "event": [
69
+ 7,
70
+ 2147483649
71
+ ],
72
+ "flags": 2147516420,
73
+ "flags104": 2147483666,
74
+ "weapon": 305397771
75
+ }
76
+ }
77
+ },
78
+ {
79
+ "input": {
80
+ "allocation": {
81
+ "count": 1022,
82
+ "profile": 8,
83
+ "slots": [],
84
+ "start": 0,
85
+ "tick": 5000
86
+ },
87
+ "animation": 99,
88
+ "branch": "start",
89
+ "busy": 0,
90
+ "clock": 0,
91
+ "complete": 0,
92
+ "duration": 5,
93
+ "flags": 2147516420,
94
+ "flags104": 2147483666,
95
+ "index": 3,
96
+ "tick": 5000,
97
+ "weapon": 305397771
98
+ },
99
+ "rust": {
100
+ "allocation": {
101
+ "count": 1022,
102
+ "record": null,
103
+ "registrations": [],
104
+ "retry": 0,
105
+ "scan_index": 0,
106
+ "selected": null,
107
+ "status": "diagnostic-loop-pending"
108
+ },
109
+ "effects": [],
110
+ "event_kind": 83,
111
+ "state": {
112
+ "animation": 99,
113
+ "busy": 1,
114
+ "clock": 5000,
115
+ "complete": 0,
116
+ "event": [
117
+ 7,
118
+ 2147483649
119
+ ],
120
+ "flags": 2147516420,
121
+ "flags104": 2147483666,
122
+ "weapon": 305397771
123
+ }
124
+ },
125
+ "source": {
126
+ "allocation": {
127
+ "count": 1022,
128
+ "record": null,
129
+ "registrations": [],
130
+ "retry": 0,
131
+ "scan_index": 0,
132
+ "selected": null,
133
+ "status": "diagnostic-loop-pending"
134
+ },
135
+ "effects": [],
136
+ "event_kind": 83,
137
+ "state": {
138
+ "animation": 99,
139
+ "busy": 1,
140
+ "clock": 5000,
141
+ "complete": 0,
142
+ "event": [
143
+ 7,
144
+ 2147483649
145
+ ],
146
+ "flags": 2147516420,
147
+ "flags104": 2147483666,
148
+ "weapon": 305397771
149
+ }
150
+ }
151
+ },
152
+ {
153
+ "input": {
154
+ "allocation": {
155
+ "count": 1024,
156
+ "profile": 10,
157
+ "slots": [],
158
+ "start": 0,
159
+ "tick": 5000
160
+ },
161
+ "animation": 99,
162
+ "branch": "start",
163
+ "busy": 0,
164
+ "clock": 0,
165
+ "complete": 0,
166
+ "duration": 5,
167
+ "flags": 2147516512,
168
+ "flags104": 2147483666,
169
+ "index": 3,
170
+ "tick": 5000,
171
+ "weapon": 305397771
172
+ },
173
+ "rust": {
174
+ "allocation": {
175
+ "count": 1025,
176
+ "record": null,
177
+ "registrations": [],
178
+ "retry": 2,
179
+ "scan_index": 1024,
180
+ "selected": null,
181
+ "status": "fatal-error-pending"
182
+ },
183
+ "effects": [],
184
+ "event_kind": 83,
185
+ "state": {
186
+ "animation": 2,
187
+ "busy": 1,
188
+ "clock": 5000,
189
+ "complete": 0,
190
+ "event": [
191
+ 7,
192
+ 2147483649
193
+ ],
194
+ "flags": 2147516420,
195
+ "flags104": 2147483666,
196
+ "weapon": 305397771
197
+ }
198
+ },
199
+ "source": {
200
+ "allocation": {
201
+ "count": 1025,
202
+ "record": null,
203
+ "registrations": [],
204
+ "retry": 2,
205
+ "scan_index": 1024,
206
+ "selected": null,
207
+ "status": "fatal-error-pending"
208
+ },
209
+ "effects": [],
210
+ "event_kind": 83,
211
+ "state": {
212
+ "animation": 2,
213
+ "busy": 1,
214
+ "clock": 5000,
215
+ "complete": 0,
216
+ "event": [
217
+ 7,
218
+ 2147483649
219
+ ],
220
+ "flags": 2147516420,
221
+ "flags104": 2147483666,
222
+ "weapon": 305397771
223
+ }
224
+ }
225
+ },
226
+ {
227
+ "input": {
228
+ "allocation": {
229
+ "count": 1024,
230
+ "profile": 10,
231
+ "slots": [],
232
+ "start": 0,
233
+ "tick": 5000
234
+ },
235
+ "animation": 99,
236
+ "branch": "start",
237
+ "busy": 0,
238
+ "clock": 0,
239
+ "complete": 0,
240
+ "duration": 5,
241
+ "flags": 2147516420,
242
+ "flags104": 2147483666,
243
+ "index": 3,
244
+ "tick": 5000,
245
+ "weapon": 305397771
246
+ },
247
+ "rust": {
248
+ "allocation": {
249
+ "count": 1025,
250
+ "record": null,
251
+ "registrations": [],
252
+ "retry": 2,
253
+ "scan_index": 1024,
254
+ "selected": null,
255
+ "status": "fatal-error-pending"
256
+ },
257
+ "effects": [],
258
+ "event_kind": 83,
259
+ "state": {
260
+ "animation": 99,
261
+ "busy": 1,
262
+ "clock": 5000,
263
+ "complete": 0,
264
+ "event": [
265
+ 7,
266
+ 2147483649
267
+ ],
268
+ "flags": 2147516420,
269
+ "flags104": 2147483666,
270
+ "weapon": 305397771
271
+ }
272
+ },
273
+ "source": {
274
+ "allocation": {
275
+ "count": 1025,
276
+ "record": null,
277
+ "registrations": [],
278
+ "retry": 2,
279
+ "scan_index": 1024,
280
+ "selected": null,
281
+ "status": "fatal-error-pending"
282
+ },
283
+ "effects": [],
284
+ "event_kind": 83,
285
+ "state": {
286
+ "animation": 99,
287
+ "busy": 1,
288
+ "clock": 5000,
289
+ "complete": 0,
290
+ "event": [
291
+ 7,
292
+ 2147483649
293
+ ],
294
+ "flags": 2147516420,
295
+ "flags104": 2147483666,
296
+ "weapon": 305397771
297
+ }
298
+ }
299
+ },
300
+ {
301
+ "input": {
302
+ "allocation": {
303
+ "count": 1022,
304
+ "profile": 8,
305
+ "slots": [],
306
+ "start": 0,
307
+ "tick": 5000
308
+ },
309
+ "animation": 99,
310
+ "branch": "far",
311
+ "busy": 1,
312
+ "clock": 0,
313
+ "complete": 0,
314
+ "duration": 5,
315
+ "flags": 2147516512,
316
+ "flags104": 2147483666,
317
+ "index": 3,
318
+ "tick": 5000,
319
+ "weapon": 305397771
320
+ },
321
+ "rust": {
322
+ "allocation": {
323
+ "count": 1022,
324
+ "record": null,
325
+ "registrations": [],
326
+ "retry": 0,
327
+ "scan_index": 0,
328
+ "selected": null,
329
+ "status": "diagnostic-loop-pending"
330
+ },
331
+ "effects": [],
332
+ "event_kind": 84,
333
+ "state": {
334
+ "animation": 99,
335
+ "busy": 0,
336
+ "clock": 0,
337
+ "complete": 0,
338
+ "event": [
339
+ 7,
340
+ 2147483649
341
+ ],
342
+ "flags": 2147516512,
343
+ "flags104": 2147483650,
344
+ "weapon": 305397771
345
+ }
346
+ },
347
+ "source": {
348
+ "allocation": {
349
+ "count": 1022,
350
+ "record": null,
351
+ "registrations": [],
352
+ "retry": 0,
353
+ "scan_index": 0,
354
+ "selected": null,
355
+ "status": "diagnostic-loop-pending"
356
+ },
357
+ "effects": [],
358
+ "event_kind": 84,
359
+ "state": {
360
+ "animation": 99,
361
+ "busy": 0,
362
+ "clock": 0,
363
+ "complete": 0,
364
+ "event": [
365
+ 7,
366
+ 2147483649
367
+ ],
368
+ "flags": 2147516512,
369
+ "flags104": 2147483650,
370
+ "weapon": 305397771
371
+ }
372
+ }
373
+ },
374
+ {
375
+ "input": {
376
+ "allocation": {
377
+ "count": 1022,
378
+ "profile": 8,
379
+ "slots": [],
380
+ "start": 0,
381
+ "tick": 5000
382
+ },
383
+ "animation": 99,
384
+ "branch": "far",
385
+ "busy": 1,
386
+ "clock": 0,
387
+ "complete": 0,
388
+ "duration": 5,
389
+ "flags": 2147516420,
390
+ "flags104": 2147483666,
391
+ "index": 3,
392
+ "tick": 5000,
393
+ "weapon": 305397771
394
+ },
395
+ "rust": {
396
+ "allocation": {
397
+ "count": 1022,
398
+ "record": null,
399
+ "registrations": [],
400
+ "retry": 0,
401
+ "scan_index": 0,
402
+ "selected": null,
403
+ "status": "diagnostic-loop-pending"
404
+ },
405
+ "effects": [],
406
+ "event_kind": 84,
407
+ "state": {
408
+ "animation": 99,
409
+ "busy": 0,
410
+ "clock": 0,
411
+ "complete": 0,
412
+ "event": [
413
+ 7,
414
+ 2147483649
415
+ ],
416
+ "flags": 2147516416,
417
+ "flags104": 2147483650,
418
+ "weapon": 305397771
419
+ }
420
+ },
421
+ "source": {
422
+ "allocation": {
423
+ "count": 1022,
424
+ "record": null,
425
+ "registrations": [],
426
+ "retry": 0,
427
+ "scan_index": 0,
428
+ "selected": null,
429
+ "status": "diagnostic-loop-pending"
430
+ },
431
+ "effects": [],
432
+ "event_kind": 84,
433
+ "state": {
434
+ "animation": 99,
435
+ "busy": 0,
436
+ "clock": 0,
437
+ "complete": 0,
438
+ "event": [
439
+ 7,
440
+ 2147483649
441
+ ],
442
+ "flags": 2147516416,
443
+ "flags104": 2147483650,
444
+ "weapon": 305397771
445
+ }
446
+ }
447
+ },
448
+ {
449
+ "input": {
450
+ "allocation": {
451
+ "count": 1024,
452
+ "profile": 10,
453
+ "slots": [],
454
+ "start": 0,
455
+ "tick": 5000
456
+ },
457
+ "animation": 99,
458
+ "branch": "far",
459
+ "busy": 1,
460
+ "clock": 0,
461
+ "complete": 0,
462
+ "duration": 5,
463
+ "flags": 2147516512,
464
+ "flags104": 2147483666,
465
+ "index": 3,
466
+ "tick": 5000,
467
+ "weapon": 305397771
468
+ },
469
+ "rust": {
470
+ "allocation": {
471
+ "count": 1025,
472
+ "record": null,
473
+ "registrations": [],
474
+ "retry": 2,
475
+ "scan_index": 1024,
476
+ "selected": null,
477
+ "status": "fatal-error-pending"
478
+ },
479
+ "effects": [],
480
+ "event_kind": 84,
481
+ "state": {
482
+ "animation": 99,
483
+ "busy": 0,
484
+ "clock": 0,
485
+ "complete": 0,
486
+ "event": [
487
+ 7,
488
+ 2147483649
489
+ ],
490
+ "flags": 2147516512,
491
+ "flags104": 2147483650,
492
+ "weapon": 305397771
493
+ }
494
+ },
495
+ "source": {
496
+ "allocation": {
497
+ "count": 1025,
498
+ "record": null,
499
+ "registrations": [],
500
+ "retry": 2,
501
+ "scan_index": 1024,
502
+ "selected": null,
503
+ "status": "fatal-error-pending"
504
+ },
505
+ "effects": [],
506
+ "event_kind": 84,
507
+ "state": {
508
+ "animation": 99,
509
+ "busy": 0,
510
+ "clock": 0,
511
+ "complete": 0,
512
+ "event": [
513
+ 7,
514
+ 2147483649
515
+ ],
516
+ "flags": 2147516512,
517
+ "flags104": 2147483650,
518
+ "weapon": 305397771
519
+ }
520
+ }
521
+ },
522
+ {
523
+ "input": {
524
+ "allocation": {
525
+ "count": 1024,
526
+ "profile": 10,
527
+ "slots": [],
528
+ "start": 0,
529
+ "tick": 5000
530
+ },
531
+ "animation": 99,
532
+ "branch": "far",
533
+ "busy": 1,
534
+ "clock": 0,
535
+ "complete": 0,
536
+ "duration": 5,
537
+ "flags": 2147516420,
538
+ "flags104": 2147483666,
539
+ "index": 3,
540
+ "tick": 5000,
541
+ "weapon": 305397771
542
+ },
543
+ "rust": {
544
+ "allocation": {
545
+ "count": 1025,
546
+ "record": null,
547
+ "registrations": [],
548
+ "retry": 2,
549
+ "scan_index": 1024,
550
+ "selected": null,
551
+ "status": "fatal-error-pending"
552
+ },
553
+ "effects": [],
554
+ "event_kind": 84,
555
+ "state": {
556
+ "animation": 99,
557
+ "busy": 0,
558
+ "clock": 0,
559
+ "complete": 0,
560
+ "event": [
561
+ 7,
562
+ 2147483649
563
+ ],
564
+ "flags": 2147516416,
565
+ "flags104": 2147483650,
566
+ "weapon": 305397771
567
+ }
568
+ },
569
+ "source": {
570
+ "allocation": {
571
+ "count": 1025,
572
+ "record": null,
573
+ "registrations": [],
574
+ "retry": 2,
575
+ "scan_index": 1024,
576
+ "selected": null,
577
+ "status": "fatal-error-pending"
578
+ },
579
+ "effects": [],
580
+ "event_kind": 84,
581
+ "state": {
582
+ "animation": 99,
583
+ "busy": 0,
584
+ "clock": 0,
585
+ "complete": 0,
586
+ "event": [
587
+ 7,
588
+ 2147483649
589
+ ],
590
+ "flags": 2147516416,
591
+ "flags104": 2147483650,
592
+ "weapon": 305397771
593
+ }
594
+ }
595
+ },
596
+ {
597
+ "input": {
598
+ "allocation": {
599
+ "count": 1022,
600
+ "profile": 8,
601
+ "slots": [],
602
+ "start": 0,
603
+ "tick": 5000
604
+ },
605
+ "animation": 99,
606
+ "branch": "unflagged",
607
+ "busy": 1,
608
+ "clock": 0,
609
+ "complete": 0,
610
+ "duration": 5,
611
+ "flags": 2147516512,
612
+ "flags104": 2147483666,
613
+ "index": 3,
614
+ "tick": 5000,
615
+ "weapon": 305397771
616
+ },
617
+ "rust": {
618
+ "allocation": {
619
+ "count": 1022,
620
+ "record": null,
621
+ "registrations": [],
622
+ "retry": 0,
623
+ "scan_index": 0,
624
+ "selected": null,
625
+ "status": "diagnostic-loop-pending"
626
+ },
627
+ "effects": [],
628
+ "event_kind": 84,
629
+ "state": {
630
+ "animation": 99,
631
+ "busy": 0,
632
+ "clock": 0,
633
+ "complete": 0,
634
+ "event": [
635
+ 7,
636
+ 2147483649
637
+ ],
638
+ "flags": 2147516512,
639
+ "flags104": 2147483650,
640
+ "weapon": 305397771
641
+ }
642
+ },
643
+ "source": {
644
+ "allocation": {
645
+ "count": 1022,
646
+ "record": null,
647
+ "registrations": [],
648
+ "retry": 0,
649
+ "scan_index": 0,
650
+ "selected": null,
651
+ "status": "diagnostic-loop-pending"
652
+ },
653
+ "effects": [],
654
+ "event_kind": 84,
655
+ "state": {
656
+ "animation": 99,
657
+ "busy": 0,
658
+ "clock": 0,
659
+ "complete": 0,
660
+ "event": [
661
+ 7,
662
+ 2147483649
663
+ ],
664
+ "flags": 2147516512,
665
+ "flags104": 2147483650,
666
+ "weapon": 305397771
667
+ }
668
+ }
669
+ },
670
+ {
671
+ "input": {
672
+ "allocation": {
673
+ "count": 1022,
674
+ "profile": 8,
675
+ "slots": [],
676
+ "start": 0,
677
+ "tick": 5000
678
+ },
679
+ "animation": 99,
680
+ "branch": "unflagged",
681
+ "busy": 1,
682
+ "clock": 0,
683
+ "complete": 0,
684
+ "duration": 5,
685
+ "flags": 2147516420,
686
+ "flags104": 2147483666,
687
+ "index": 3,
688
+ "tick": 5000,
689
+ "weapon": 305397771
690
+ },
691
+ "rust": {
692
+ "allocation": {
693
+ "count": 1022,
694
+ "record": null,
695
+ "registrations": [],
696
+ "retry": 0,
697
+ "scan_index": 0,
698
+ "selected": null,
699
+ "status": "diagnostic-loop-pending"
700
+ },
701
+ "effects": [],
702
+ "event_kind": 84,
703
+ "state": {
704
+ "animation": 99,
705
+ "busy": 0,
706
+ "clock": 0,
707
+ "complete": 0,
708
+ "event": [
709
+ 7,
710
+ 2147483649
711
+ ],
712
+ "flags": 2147516416,
713
+ "flags104": 2147483650,
714
+ "weapon": 305397771
715
+ }
716
+ },
717
+ "source": {
718
+ "allocation": {
719
+ "count": 1022,
720
+ "record": null,
721
+ "registrations": [],
722
+ "retry": 0,
723
+ "scan_index": 0,
724
+ "selected": null,
725
+ "status": "diagnostic-loop-pending"
726
+ },
727
+ "effects": [],
728
+ "event_kind": 84,
729
+ "state": {
730
+ "animation": 99,
731
+ "busy": 0,
732
+ "clock": 0,
733
+ "complete": 0,
734
+ "event": [
735
+ 7,
736
+ 2147483649
737
+ ],
738
+ "flags": 2147516416,
739
+ "flags104": 2147483650,
740
+ "weapon": 305397771
741
+ }
742
+ }
743
+ },
744
+ {
745
+ "input": {
746
+ "allocation": {
747
+ "count": 1024,
748
+ "profile": 10,
749
+ "slots": [],
750
+ "start": 0,
751
+ "tick": 5000
752
+ },
753
+ "animation": 99,
754
+ "branch": "unflagged",
755
+ "busy": 1,
756
+ "clock": 0,
757
+ "complete": 0,
758
+ "duration": 5,
759
+ "flags": 2147516512,
760
+ "flags104": 2147483666,
761
+ "index": 3,
762
+ "tick": 5000,
763
+ "weapon": 305397771
764
+ },
765
+ "rust": {
766
+ "allocation": {
767
+ "count": 1025,
768
+ "record": null,
769
+ "registrations": [],
770
+ "retry": 2,
771
+ "scan_index": 1024,
772
+ "selected": null,
773
+ "status": "fatal-error-pending"
774
+ },
775
+ "effects": [],
776
+ "event_kind": 84,
777
+ "state": {
778
+ "animation": 99,
779
+ "busy": 0,
780
+ "clock": 0,
781
+ "complete": 0,
782
+ "event": [
783
+ 7,
784
+ 2147483649
785
+ ],
786
+ "flags": 2147516512,
787
+ "flags104": 2147483650,
788
+ "weapon": 305397771
789
+ }
790
+ },
791
+ "source": {
792
+ "allocation": {
793
+ "count": 1025,
794
+ "record": null,
795
+ "registrations": [],
796
+ "retry": 2,
797
+ "scan_index": 1024,
798
+ "selected": null,
799
+ "status": "fatal-error-pending"
800
+ },
801
+ "effects": [],
802
+ "event_kind": 84,
803
+ "state": {
804
+ "animation": 99,
805
+ "busy": 0,
806
+ "clock": 0,
807
+ "complete": 0,
808
+ "event": [
809
+ 7,
810
+ 2147483649
811
+ ],
812
+ "flags": 2147516512,
813
+ "flags104": 2147483650,
814
+ "weapon": 305397771
815
+ }
816
+ }
817
+ },
818
+ {
819
+ "input": {
820
+ "allocation": {
821
+ "count": 1024,
822
+ "profile": 10,
823
+ "slots": [],
824
+ "start": 0,
825
+ "tick": 5000
826
+ },
827
+ "animation": 99,
828
+ "branch": "unflagged",
829
+ "busy": 1,
830
+ "clock": 0,
831
+ "complete": 0,
832
+ "duration": 5,
833
+ "flags": 2147516420,
834
+ "flags104": 2147483666,
835
+ "index": 3,
836
+ "tick": 5000,
837
+ "weapon": 305397771
838
+ },
839
+ "rust": {
840
+ "allocation": {
841
+ "count": 1025,
842
+ "record": null,
843
+ "registrations": [],
844
+ "retry": 2,
845
+ "scan_index": 1024,
846
+ "selected": null,
847
+ "status": "fatal-error-pending"
848
+ },
849
+ "effects": [],
850
+ "event_kind": 84,
851
+ "state": {
852
+ "animation": 99,
853
+ "busy": 0,
854
+ "clock": 0,
855
+ "complete": 0,
856
+ "event": [
857
+ 7,
858
+ 2147483649
859
+ ],
860
+ "flags": 2147516416,
861
+ "flags104": 2147483650,
862
+ "weapon": 305397771
863
+ }
864
+ },
865
+ "source": {
866
+ "allocation": {
867
+ "count": 1025,
868
+ "record": null,
869
+ "registrations": [],
870
+ "retry": 2,
871
+ "scan_index": 1024,
872
+ "selected": null,
873
+ "status": "fatal-error-pending"
874
+ },
875
+ "effects": [],
876
+ "event_kind": 84,
877
+ "state": {
878
+ "animation": 99,
879
+ "busy": 0,
880
+ "clock": 0,
881
+ "complete": 0,
882
+ "event": [
883
+ 7,
884
+ 2147483649
885
+ ],
886
+ "flags": 2147516416,
887
+ "flags104": 2147483650,
888
+ "weapon": 305397771
889
+ }
890
+ }
891
+ },
892
+ {
893
+ "input": {
894
+ "allocation": {
895
+ "count": 1022,
896
+ "profile": 8,
897
+ "slots": [],
898
+ "start": 0,
899
+ "tick": 5000
900
+ },
901
+ "animation": 99,
902
+ "branch": "finish",
903
+ "busy": 1,
904
+ "clock": 0,
905
+ "complete": 0,
906
+ "duration": 5,
907
+ "flags": 2147516512,
908
+ "flags104": 2147483666,
909
+ "index": 3,
910
+ "tick": 5000,
911
+ "weapon": 305397771
912
+ },
913
+ "rust": {
914
+ "allocation": {
915
+ "count": 1022,
916
+ "record": null,
917
+ "registrations": [],
918
+ "retry": 0,
919
+ "scan_index": 0,
920
+ "selected": null,
921
+ "status": "diagnostic-loop-pending"
922
+ },
923
+ "effects": [
924
+ {
925
+ "format": "426f6d62207761732064656675736564206279202569210a",
926
+ "op": "log",
927
+ "slot": 2
928
+ }
929
+ ],
930
+ "event_kind": 84,
931
+ "state": {
932
+ "animation": 99,
933
+ "busy": 0,
934
+ "clock": 0,
935
+ "complete": 1,
936
+ "event": [
937
+ 7,
938
+ 2147483649
939
+ ],
940
+ "flags": 2147516512,
941
+ "flags104": 2147483650,
942
+ "weapon": 305397771
943
+ }
944
+ },
945
+ "source": {
946
+ "allocation": {
947
+ "count": 1022,
948
+ "record": null,
949
+ "registrations": [],
950
+ "retry": 0,
951
+ "scan_index": 0,
952
+ "selected": null,
953
+ "status": "diagnostic-loop-pending"
954
+ },
955
+ "effects": [
956
+ {
957
+ "format": "426f6d62207761732064656675736564206279202569210a",
958
+ "op": "log",
959
+ "slot": 2
960
+ }
961
+ ],
962
+ "event_kind": 84,
963
+ "state": {
964
+ "animation": 99,
965
+ "busy": 0,
966
+ "clock": 0,
967
+ "complete": 1,
968
+ "event": [
969
+ 7,
970
+ 2147483649
971
+ ],
972
+ "flags": 2147516512,
973
+ "flags104": 2147483650,
974
+ "weapon": 305397771
975
+ }
976
+ }
977
+ },
978
+ {
979
+ "input": {
980
+ "allocation": {
981
+ "count": 1022,
982
+ "profile": 8,
983
+ "slots": [],
984
+ "start": 0,
985
+ "tick": 5000
986
+ },
987
+ "animation": 99,
988
+ "branch": "finish",
989
+ "busy": 1,
990
+ "clock": 0,
991
+ "complete": 0,
992
+ "duration": 5,
993
+ "flags": 2147516420,
994
+ "flags104": 2147483666,
995
+ "index": 3,
996
+ "tick": 5000,
997
+ "weapon": 305397771
998
+ },
999
+ "rust": {
1000
+ "allocation": {
1001
+ "count": 1022,
1002
+ "record": null,
1003
+ "registrations": [],
1004
+ "retry": 0,
1005
+ "scan_index": 0,
1006
+ "selected": null,
1007
+ "status": "diagnostic-loop-pending"
1008
+ },
1009
+ "effects": [
1010
+ {
1011
+ "format": "426f6d62207761732064656675736564206279202569210a",
1012
+ "op": "log",
1013
+ "slot": 2
1014
+ }
1015
+ ],
1016
+ "event_kind": 84,
1017
+ "state": {
1018
+ "animation": 99,
1019
+ "busy": 0,
1020
+ "clock": 0,
1021
+ "complete": 1,
1022
+ "event": [
1023
+ 7,
1024
+ 2147483649
1025
+ ],
1026
+ "flags": 2147516416,
1027
+ "flags104": 2147483650,
1028
+ "weapon": 305397771
1029
+ }
1030
+ },
1031
+ "source": {
1032
+ "allocation": {
1033
+ "count": 1022,
1034
+ "record": null,
1035
+ "registrations": [],
1036
+ "retry": 0,
1037
+ "scan_index": 0,
1038
+ "selected": null,
1039
+ "status": "diagnostic-loop-pending"
1040
+ },
1041
+ "effects": [
1042
+ {
1043
+ "format": "426f6d62207761732064656675736564206279202569210a",
1044
+ "op": "log",
1045
+ "slot": 2
1046
+ }
1047
+ ],
1048
+ "event_kind": 84,
1049
+ "state": {
1050
+ "animation": 99,
1051
+ "busy": 0,
1052
+ "clock": 0,
1053
+ "complete": 1,
1054
+ "event": [
1055
+ 7,
1056
+ 2147483649
1057
+ ],
1058
+ "flags": 2147516416,
1059
+ "flags104": 2147483650,
1060
+ "weapon": 305397771
1061
+ }
1062
+ }
1063
+ },
1064
+ {
1065
+ "input": {
1066
+ "allocation": {
1067
+ "count": 1024,
1068
+ "profile": 10,
1069
+ "slots": [],
1070
+ "start": 0,
1071
+ "tick": 5000
1072
+ },
1073
+ "animation": 99,
1074
+ "branch": "finish",
1075
+ "busy": 1,
1076
+ "clock": 0,
1077
+ "complete": 0,
1078
+ "duration": 5,
1079
+ "flags": 2147516512,
1080
+ "flags104": 2147483666,
1081
+ "index": 3,
1082
+ "tick": 5000,
1083
+ "weapon": 305397771
1084
+ },
1085
+ "rust": {
1086
+ "allocation": {
1087
+ "count": 1025,
1088
+ "record": null,
1089
+ "registrations": [],
1090
+ "retry": 2,
1091
+ "scan_index": 1024,
1092
+ "selected": null,
1093
+ "status": "fatal-error-pending"
1094
+ },
1095
+ "effects": [
1096
+ {
1097
+ "format": "426f6d62207761732064656675736564206279202569210a",
1098
+ "op": "log",
1099
+ "slot": 2
1100
+ }
1101
+ ],
1102
+ "event_kind": 84,
1103
+ "state": {
1104
+ "animation": 99,
1105
+ "busy": 0,
1106
+ "clock": 0,
1107
+ "complete": 1,
1108
+ "event": [
1109
+ 7,
1110
+ 2147483649
1111
+ ],
1112
+ "flags": 2147516512,
1113
+ "flags104": 2147483650,
1114
+ "weapon": 305397771
1115
+ }
1116
+ },
1117
+ "source": {
1118
+ "allocation": {
1119
+ "count": 1025,
1120
+ "record": null,
1121
+ "registrations": [],
1122
+ "retry": 2,
1123
+ "scan_index": 1024,
1124
+ "selected": null,
1125
+ "status": "fatal-error-pending"
1126
+ },
1127
+ "effects": [
1128
+ {
1129
+ "format": "426f6d62207761732064656675736564206279202569210a",
1130
+ "op": "log",
1131
+ "slot": 2
1132
+ }
1133
+ ],
1134
+ "event_kind": 84,
1135
+ "state": {
1136
+ "animation": 99,
1137
+ "busy": 0,
1138
+ "clock": 0,
1139
+ "complete": 1,
1140
+ "event": [
1141
+ 7,
1142
+ 2147483649
1143
+ ],
1144
+ "flags": 2147516512,
1145
+ "flags104": 2147483650,
1146
+ "weapon": 305397771
1147
+ }
1148
+ }
1149
+ },
1150
+ {
1151
+ "input": {
1152
+ "allocation": {
1153
+ "count": 1024,
1154
+ "profile": 10,
1155
+ "slots": [],
1156
+ "start": 0,
1157
+ "tick": 5000
1158
+ },
1159
+ "animation": 99,
1160
+ "branch": "finish",
1161
+ "busy": 1,
1162
+ "clock": 0,
1163
+ "complete": 0,
1164
+ "duration": 5,
1165
+ "flags": 2147516420,
1166
+ "flags104": 2147483666,
1167
+ "index": 3,
1168
+ "tick": 5000,
1169
+ "weapon": 305397771
1170
+ },
1171
+ "rust": {
1172
+ "allocation": {
1173
+ "count": 1025,
1174
+ "record": null,
1175
+ "registrations": [],
1176
+ "retry": 2,
1177
+ "scan_index": 1024,
1178
+ "selected": null,
1179
+ "status": "fatal-error-pending"
1180
+ },
1181
+ "effects": [
1182
+ {
1183
+ "format": "426f6d62207761732064656675736564206279202569210a",
1184
+ "op": "log",
1185
+ "slot": 2
1186
+ }
1187
+ ],
1188
+ "event_kind": 84,
1189
+ "state": {
1190
+ "animation": 99,
1191
+ "busy": 0,
1192
+ "clock": 0,
1193
+ "complete": 1,
1194
+ "event": [
1195
+ 7,
1196
+ 2147483649
1197
+ ],
1198
+ "flags": 2147516416,
1199
+ "flags104": 2147483650,
1200
+ "weapon": 305397771
1201
+ }
1202
+ },
1203
+ "source": {
1204
+ "allocation": {
1205
+ "count": 1025,
1206
+ "record": null,
1207
+ "registrations": [],
1208
+ "retry": 2,
1209
+ "scan_index": 1024,
1210
+ "selected": null,
1211
+ "status": "fatal-error-pending"
1212
+ },
1213
+ "effects": [
1214
+ {
1215
+ "format": "426f6d62207761732064656675736564206279202569210a",
1216
+ "op": "log",
1217
+ "slot": 2
1218
+ }
1219
+ ],
1220
+ "event_kind": 84,
1221
+ "state": {
1222
+ "animation": 99,
1223
+ "busy": 0,
1224
+ "clock": 0,
1225
+ "complete": 1,
1226
+ "event": [
1227
+ 7,
1228
+ 2147483649
1229
+ ],
1230
+ "flags": 2147516416,
1231
+ "flags104": 2147483650,
1232
+ "weapon": 305397771
1233
+ }
1234
+ }
1235
+ }
1236
+ ],
1237
+ "source_report": "docs/research/qvm-defuse-allocation-terminal.json",
1238
+ "source_report_sha256": "9ad67032578ad8257be9f80b8c17ef9ebe70643734c54a57c0509ff0b9de79a3"
1239
+ }
scripts/analyze_rust_defuse_allocation_terminal.py ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Compare Rust defuse allocation terminals with the traced QVM prefixes."""
2
+ import hashlib
3
+ import json
4
+ import os
5
+ import subprocess
6
+ from pathlib import Path
7
+
8
+ from analyze_qvm import write_json
9
+ from analyze_rust_defuse_begin import encode as encode_defuse
10
+ from analyze_rust_location_allocation import encode as encode_pool
11
+ from rust_lifecycle_support import result
12
+
13
+
14
+ def main():
15
+ subprocess.run(['cargo', 'build', '--offline', '--package', 'urt-gameplay',
16
+ '--bin', 'urt-location-feedback'], check=True)
17
+ binary = Path(os.environ.get('CARGO_TARGET_DIR', 'target')) / 'debug' / 'urt-location-feedback'
18
+ path = Path('docs/research/qvm-defuse-allocation-terminal.json')
19
+ data = path.read_bytes()
20
+ branches = {'start': 0, 'far': 1, 'unflagged': 1, 'finish': 2}
21
+ probes = []
22
+ for row in json.loads(data)['probes']:
23
+ a = row['input']
24
+ expected = {key: row[key] for key in ('state', 'event_kind', 'effects', 'allocation')}
25
+ expected['state'] = {key: value for key, value in row['state'].items() if key != 'guards'}
26
+ args = [*encode_defuse(a), branches[a['branch']], *encode_pool(a['allocation'])]
27
+ probes.append(dict(input=a, source=expected, rust=result(binary, 'defuse-terminal', args)))
28
+ write_json(Path('docs/research/rust-defuse-allocation-terminal.json'), {
29
+ 'source_report': str(path), 'source_report_sha256': hashlib.sha256(data).hexdigest(),
30
+ 'probes': probes, 'limits': 'Caller-state and allocator parity before native diagnostic/fatal handling.',
31
+ })
32
+
33
+
34
+ if __name__ == '__main__':
35
+ main()
scripts/test_rust_defuse_allocation_terminal.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import hashlib
2
+ import json
3
+ import unittest
4
+ from pathlib import Path
5
+
6
+
7
+ class DefuseAllocationTerminalParity(unittest.TestCase):
8
+ def test_terminal_prefixes(self):
9
+ report = json.loads(Path('docs/research/rust-defuse-allocation-terminal.json').read_text())
10
+ digest = hashlib.sha256(Path(report['source_report']).read_bytes()).hexdigest()
11
+ self.assertEqual(report['source_report_sha256'], digest)
12
+ self.assertEqual(len(report['probes']), 16)
13
+ for row in report['probes']:
14
+ with self.subTest(input=row['input']):
15
+ self.assertEqual(row['source'], row['rust'])
16
+
17
+
18
+ if __name__ == '__main__':
19
+ unittest.main()
xtask/checks.tsv CHANGED
@@ -4747,3 +4747,13 @@ edge scripts/qvm_location_feedback_support.py scripts/analyze_qvm_defuse_allocat
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
 
 
 
 
 
 
 
 
 
 
 
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
4750
+ report scripts/analyze_rust_defuse_allocation_terminal.py docs/research/rust-defuse-allocation-terminal.json
4751
+ edge docs/research/rust-defuse-allocation-terminal.json scripts/test_rust_defuse_allocation_terminal.py
4752
+ group rust-defuse-allocation-terminal scripts/analyze_rust_defuse_allocation_terminal.py
4753
+ group rust-defuse-allocation-terminal scripts/analyze_rust_location_allocated_defuse.py
4754
+ group gameplay scripts/analyze_rust_defuse_allocation_terminal.py
4755
+ edge docs/research/qvm-defuse-allocation-terminal.json scripts/analyze_rust_defuse_allocation_terminal.py
4756
+ edge crates/urt-gameplay/src/location_feedback.rs scripts/analyze_rust_defuse_allocation_terminal.py
4757
+ edge crates/urt-gameplay/src/bin/urt-location-feedback.rs scripts/analyze_rust_defuse_allocation_terminal.py
4758
+ edge crates/urt-gameplay/src/defuse.rs scripts/analyze_rust_defuse_allocation_terminal.py
4759
+ edge crates/urt-gameplay/src/transition.rs scripts/analyze_rust_defuse_allocation_terminal.py