{
  "schema": 1,
  "game": "X2",
  "actor": "PararoidR5",
  "eventId": 11,
  "romSha1": "637079014421563283CDED6AEAA0604597B2E33C",
  "sourcePacket": "x2/0b-pararoid-r-5",
  "spans": [
    {
      "address": "01B4A5",
      "length": 61,
      "sha256": "99BA5A1374D844ABBFAA18947C770E63A621659C1D3AE4237F51078274306557",
      "purpose": "Initial health 5, contact damage 2, gravity 48 and subtype flags"
    },
    {
      "address": "01B55C",
      "length": 193,
      "sha256": "E84281A3F3385D0B3307AD7D9EBC9B2765EBC3D5937E12FA606437AA4920B229",
      "purpose": "Face player, animation-gated jump, one RNG selection and ceiling collision"
    },
    {
      "address": "01B61E",
      "length": 282,
      "sha256": "4C4EC8D2C02992717C5B21ECA4F2934B98E0C742B6F385022B5B2FAC7BB3D0AD",
      "purpose": "Attachment to player pose and forced-input/escape handling"
    },
    {
      "address": "01B87D",
      "length": 101,
      "sha256": "0853647EA6788F974F723CAB5C89CCC7FD3767991595A979BEC6F2D60EB01A81",
      "purpose": "Player eligibility, capture overlap and RNG input selection"
    },
    {
      "address": "06C1B7",
      "length": 12,
      "sha256": "95EA9A8D565E90BB26A61DCB98AE6CC95774604327A3FDCE747561B20DFDDC41",
      "purpose": "Jump velocities and forced-input masks"
    },
    {
      "address": "01B738",
      "length": 294,
      "sha256": "64A4B0DD7EA2126FFF8EED616C20C9EE61AF291477132AD419DD011A11791459",
      "purpose": "Escape initialization, chained detached hops and collision state"
    },
    {
      "address": "06C1C3",
      "length": 256,
      "sha256": "8F9BE1D989369E7BF449547AF3AF2DC2C6BE310318D1255C26533C3ED4153272",
      "purpose": "128 player-pose attachment offset pairs"
    },
    {
      "address": "08CDE4",
      "length": 23,
      "sha256": "12395AD2011F26C644DB697B24F8880E759C3394EF205C1142D339DA2C018A59",
      "purpose": "Default floor tolerance and override by object field 2F"
    }
  ],
  "corrected": {
    "initialHealth": 5,
    "contactDamage": 2,
    "initialGravitySubpixels": 48
  },
  "boundary": "ROM-derived controller and real engine integration validated within the stated scope. Complete native actor/level parity is not certified. NativeRuntimeParity remains not verified.",
  "translated": {
    "scope": "Fall, landing animation, facing preparation, RNG jump, animation-gated collision shape, player capture/pose attachment, forced action pulses, escape and detached hops.",
    "jumpHorizontalSubpixels": 320,
    "jumpUpwardSubpixels": [
      1008,
      784
    ],
    "gravitySubpixels": 48,
    "fallSpeedLimit": 1280,
    "initialFacing": "Subtype bit 40; integer-position initialization clears both fractions.",
    "jumpRng": "One draw at $01:B5B9, select $06:C1B7 by value & 2.",
    "captureRng": "One draw only after eligible overlap at $01:B8BE, choose forced action by value & 6.",
    "inputChoices": [
      "shot",
      "jump",
      "dash",
      "jump"
    ],
    "forcedInput": "Shot queues fresh presses without forced hold. Jump/dash hold continuously and pulse a fresh press every eight updates. Physical movement remains available; the old 40-frame input lock is removed.",
    "escape": "Count action edges and direction transitions toward 20; the threshold is checked on the following controller update. Invalid player states and ladder terrain also start detachment. The detached controller flips direction and retains its collision phase across later hops.",
    "collision": "The moving modes set native field 2F nonzero. $08:CDEF..CDF3 therefore sets the floor tolerance to zero, unlike the default four pixels used by other actors. Preserve integer snaps and actor fractions. The unusual $01:B611..B617 byte clears are retained.",
    "audio": "No explicit flight, capture or escape action cue in the original handler. Shared hit/explosion services remain engine adapters."
  },
  "validation": {
    "nativeCapture": {
      "route": "Native Stage Select -> Up/Start -> Morph Moth -> same-stage checkpoint 3 -> normal Left/B approach. No player, actor, camera, palette or VRAM injection.",
      "slot": 3416,
      "initialFrame": 16879,
      "finalFrame": 17254,
      "records": 376,
      "comparedUpdates": 375,
      "fields": [
        "position X/Y",
        "velocity X/Y",
        "mode",
        "step/substep",
        "animation address/timer/frame/flags",
        "facing",
        "escape count",
        "input pulse clock",
        "collision phase"
      ],
      "suppliedInputs": [
        "player position/state/pose at original call sites",
        "original overlap-helper carry",
        "two actual RNG return values",
        "terrain grid decoded from imported level"
      ],
      "reasonForCallSiteContext": "End-of-frame player coordinates and the bus pose sample differ from values consumed inside the actor routine. Helper-time snapshots are retained; no per-frame actor corrections are applied.",
      "result": "All 375 compared updates match; this does not certify native overlap integration, global RNG, camera, object-pool or whole-level parity."
    },
    "focusedTests": "Thirteen motion/input tests plus three owner-reference cleanup cases pass. Includes four ordinary jump cycles, forced action pulse cadence, edge-driven escape, physical input preservation, serialization and orphan cleanup.",
    "runtime": "Actual DX9 imported-level smoke passes capture without input lock, real buster projectile from forced fresh-shot presses without a held shot button, physical-action escape and deterministic 180-frame save-state replay. The optional native X2 player pose provider is exercised as well.",
    "fullSuite": {
      "passed": 2379,
      "skipped": 24,
      "failed": 31,
      "failureComparison": "All failure names match the prior baseline."
    }
  },
  "captureFiles": [
    {
      "path": "docs/enemies/native/captures/pararoid-r5-actors.csv",
      "sha256": "EA97398B278CD2530BE48B275C260560FBA35B560577819C87472A3E642D5A20"
    },
    {
      "path": "docs/enemies/native/captures/pararoid-r5-context.csv",
      "sha256": "557B90FBD0DF4691E9E25BC93700397CB2C5491052C9BB9EFB44F134B2FD31CC"
    },
    {
      "path": "docs/enemies/native/captures/pararoid-r5-rng.csv",
      "sha256": "D36CB5142EC74C0FD082868085248F21492B06FF7D9FDF0B63B3D9F6BC689298"
    },
    {
      "path": "XSharp.Tests/Fixtures/Enemies/pararoid-r5-maps.txt",
      "sha256": "533E601DB9A8C72FE645FFF4DEB68071FE549F54E32E25C13665B6E793F1D49D"
    }
  ],
  "regeneration": {
    "animationCommand": "dotnet run --project EnemyExtractor -c Release -- --rom <X2-USA-ROM> --animation-assembly 0C --animation-count 13 --output <PararoidR5.animations.json>",
    "poseTable": "Append ExtractedAnimationSegment(Address=0x06C1C3, Bytes=rom.Read(0x06C1C3,256)) using XSharp.Tools.Enemies.RomImage; serialize Bytes as the existing base64 JSON string representation. Verify the source span hash above.",
    "captureScript": "tools/bizhawk/MMX2_PararoidR5_Capture.lua",
    "captureArguments": "Output directory and a native initialized Stage Select save state. The reference uses the documented cursor origin in MMX2_StageRoute.lua."
  },
  "pending": [
    "Full native weapon-index damage/drop tables, captured-state damage exceptions, hit effects and culling",
    "Slope/conveyor/water and other terrain-helper edge cases beyond the recorded solid-map region",
    "Native overlap resolver and complete player-state/pose integration; the optional X2 player simulation can supply original pose IDs, while the custom player uses the stand-pose attachment anchor",
    "Original enemy object-slot pressure and scheduling, global RNG/camera/workload equivalence",
    "Multiple attached parasites share and clear native forced-input masks in slot order; the general engine uses independent entity-owned overlays, so complete multi-parasite input equivalence remains pending"
  ]
}
