{
  "code": "SIM-01",
  "slug": "deterministic-mission-state-machines",
  "title": "Deterministic Mission State Machines",
  "category": "Simulation & Conformance",
  "status": "Current",
  "version": "2.0.4-wip",
  "summary": "Defines mission states, allowed transitions, guards, effects, event records, and reproducible simulation input.",
  "keywords": [
    "state machine",
    "deterministic",
    "transition guard",
    "simulation",
    "event log"
  ],
  "mission_phases": [
    "Task",
    "Plan",
    "Access",
    "Collect",
    "Validate",
    "Deliver",
    "Extract",
    "Debrief"
  ],
  "canonical": "https://iarpg.com/standard/deterministic-mission-state-machines",
  "json": "https://iarpg.com/records/deterministic-mission-state-machines.json",
  "requirements": [
    {
      "level": "MUST",
      "text": "A simulatable mission declare finite states, allowed transitions, guard conditions, effects, and terminal outcomes."
    },
    {
      "level": "MUST",
      "text": "Given the same mission version, seed, and action sequence, the simulator produce the same event log."
    },
    {
      "level": "SHOULD",
      "text": "Randomness influence uncertainty without hiding transition rules."
    }
  ],
  "research": [
    {
      "label": "Finite state machine architecture",
      "href": "/docs/report/systemic-architecture-for-trustless-escrow-and-courier-contracts-in-a-virtual-reality-mmorpg#2-1-finite-state-machine-fsm-architecture",
      "note": "Deterministic contract state machine patterns adapted to operations."
    }
  ],
  "related": [
    "mission-lifecycle",
    "mission-event-logging",
    "simulation-conformance"
  ],
  "roles": [
    "Operative",
    "Handler",
    "Intelligence Analyst",
    "Technical Operator",
    "Counterintelligence Officer",
    "Liaison Officer",
    "Logistics Specialist",
    "Source Handler"
  ],
  "interaction_types": [
    "Review",
    "Decide",
    "Record",
    "Handoff"
  ],
  "authority_types": [
    "Civil administration",
    "Military command",
    "Commercial intelligence service",
    "International verification body",
    "Scientific or infrastructure consortium",
    "Independent investigative network"
  ],
  "collection_disciplines": [],
  "conformance_level": "Level D — Simulatable",
  "implementation_maturity": "Published WIP",
  "release": "IARPG-OPS-2",
  "revised_utc": "2026-07-20T12:04:07Z",
  "purpose": "Represent operations as deterministic, inspectable state machines with reproducible logs and declared conformance levels.",
  "rationale": "Simulation claims are meaningful only when the transition rules, inputs, seed, and event log are inspectable.",
  "game_interaction": [
    "Load mission",
    "Choose action",
    "Advance state",
    "Export event log"
  ],
  "inputs": [
    "Mission JSON",
    "State rules",
    "Deterministic seed"
  ],
  "outputs": [
    "Simulation record",
    "Conformance result",
    "Event log"
  ],
  "state_transitions": [
    {
      "from": "not-applicable",
      "event": "record requirement evaluated",
      "to": "conforming-or-documented-exception"
    }
  ],
  "evidence_and_provenance": [
    "The implementation records the source, UTC event time, mission identifier, responsible role, and reason code for consequential state changes.",
    "Generated dialogue and player interpretation are not stored as authoritative facts without a separate verification event."
  ],
  "ui_requirements": [
    "Show the record code and requirement level at the point of use.",
    "Expose the reason for blocked, failed, escalated, or irreversible actions.",
    "Provide a direct link to the canonical standard and machine-readable record."
  ],
  "accessibility_requirements": [
    "Essential information is available without reliance on color, audio, motion, or a VR-only gesture.",
    "Keyboard, screen-reader, reduced-motion, seated-play, and high-contrast equivalents are documented where the interaction applies."
  ],
  "telemetry_events": [
    {
      "name": "standard.deterministic-mission-state-machines.evaluated",
      "required_fields": [
        "event_id",
        "timestamp_utc",
        "mission_id",
        "record_code",
        "result",
        "reason_code"
      ]
    }
  ],
  "abuse_and_exploit_cases": [
    "A participant attempts to omit required context so another role accepts a misleading task.",
    "A generated or user-authored statement is presented as server-authoritative without verification.",
    "A consequential state transition occurs without a durable reason code."
  ],
  "failure_behavior": "Fail closed for irreversible or settlement-bearing actions. Preserve the current state, show the missing requirement, and allow correction or documented exception review.",
  "recovery_behavior": "Restore from the last authoritative event, retain the rejected transition in the audit log, and require a new validated event before continuing.",
  "example_implementation": "A mission interface evaluates SIM-01 before advancing the relevant state and writes the result to the local event log with a UTC timestamp and reason code.",
  "evidence_requirement": "Reviewable provenance required",
  "related_examples": [
    "port-access-anomaly-investigation"
  ],
  "revision_history": [
    {
      "version": "1.0.0",
      "date_utc": "2026-07-19",
      "note": "Initial IARPG-OPS-1 publication."
    },
    {
      "version": "2.0.1-wip",
      "date_utc": "2026-07-19",
      "note": "Expanded for IARPG-OPS-2 workbench, simulation, evidence, accessibility, telemetry, and machine-readable publication."
    },
    {
      "version": "2.0.2-wip",
      "date_utc": "2026-07-19T16:42:07Z",
      "change": "Reviewed for operation-package lifecycle compatibility and local tool integration."
    },
    {
      "version": "2.0.3-wip",
      "date_utc": "2026-07-19T18:45:50Z",
      "note": "Reviewed for integrity-aware package verification, merge, multi-role replay, custody comparison, batch review, backup, publication preview, and release-promotion workflows."
    },
    {
      "version": "2.0.4-wip",
      "date_utc": "2026-07-20T12:04:07Z",
      "note": "Reviewed for canonicalization, round-trip portability, recovery, provenance, compatibility, accessibility, hosting evidence, and stable-promotion gates."
    }
  ]
}
