{
  "schemaVersion": "adventure-draft/v1",
  "sourceAdventureId": "orbiting-buffet-audit",
  "characters": [
    {
      "id": "mgr",
      "name": "Glenna",
      "role": "Buffet Manager",
      "motivation": "Pass the audit to avoid station shutdown",
      "visibility": {
        "kind": "public"
      }
    },
    {
      "id": "aud",
      "name": "Auditor Zorx",
      "role": "Galactic Health Inspector",
      "motivation": "Find a reason to fail the buffet (personal grudge)",
      "visibility": {
        "kind": "public"
      }
    },
    {
      "id": "eng",
      "name": "Vex",
      "role": "Station Engineer",
      "motivation": "Fix the gravity generator but is overworked",
      "visibility": {
        "kind": "public"
      }
    }
  ],
  "storyFacts": [
    {
      "id": "gravityAnomaly",
      "statement": "The buffet's gravity generator is malfunctioning, causing intermittent microgravity.",
      "visibility": {
        "kind": "public"
      }
    },
    {
      "id": "complaintParadox",
      "statement": "The audit report says 'no gravity issues' but a customer complaint says 'desserts float away'.",
      "visibility": {
        "kind": "public"
      }
    },
    {
      "id": "fixedGravity",
      "statement": "The gravity generator has been repaired.",
      "visibility": {
        "kind": "public"
      }
    }
  ],
  "clocks": [
    {
      "id": "summit",
      "label": "Summit Docking Countdown",
      "segments": 4,
      "initialValue": 0,
      "advanceSignals": [
        "investigation takes too long",
        "players cause a mishap",
        "auditor becomes impatient"
      ],
      "whenFull": "The summit arrives while the buffet is still in disarray."
    }
  ],
  "scenes": [
    {
      "id": "opening",
      "kind": "opening",
      "title": "Welcome to the Orbiting Buffet",
      "summary": "Players arrive at the station and meet Glenna, who explains the gravity audit and the contradictory complaint. The clock starts ticking.",
      "locationId": "buffet-lobby",
      "participantIds": [
        "mgr"
      ],
      "requiredFactIds": [],
      "exits": [
        {
          "id": "openingToChallenge",
          "outcome": "success",
          "when": "always",
          "nextSceneId": "challenge",
          "consequences": [
            "You move to the kitchen to investigate."
          ]
        }
      ]
    },
    {
      "id": "challenge",
      "kind": "challenge",
      "title": "The Gravity Anomaly",
      "summary": "Players investigate the kitchen and find the faulty gravity generator. They must fix it and resolve the complaint paradox. The auditor may interfere.",
      "locationId": "kitchen",
      "participantIds": [
        "eng",
        "aud"
      ],
      "requiredFactIds": [
        "gravityAnomaly",
        "complaintParadox"
      ],
      "exits": [
        {
          "id": "challengeToFinale",
          "outcome": "success",
          "when": "always",
          "nextSceneId": "finale",
          "consequences": [
            "You present your findings to the auditor."
          ]
        }
      ]
    },
    {
      "id": "finale",
      "kind": "finale",
      "title": "The Final Audit",
      "summary": "The auditor returns for the final verdict. Players present their findings. The outcome depends on whether the gravity is fixed.",
      "locationId": "buffet-lobby",
      "participantIds": [
        "mgr",
        "aud"
      ],
      "requiredFactIds": [],
      "exits": [
        {
          "id": "successExit",
          "outcome": "success",
          "when": "fact:fixedGravity == true",
          "endingId": "success",
          "consequences": [
            "The buffet passes the audit. The summit meal proceeds on schedule. Glenna is relieved."
          ]
        },
        {
          "id": "failureExit",
          "outcome": "failure",
          "when": "fact:fixedGravity == false",
          "endingId": "failForward",
          "failForward": true,
          "consequences": [
            "The audit fails, but you improvise a zero-gravity dining experience. The diplomats are delighted by the novelty."
          ]
        }
      ]
    }
  ],
  "endings": [
    {
      "id": "success",
      "label": "Audit Passed",
      "summary": "The buffet is certified safe. The lunch summit docks and everyone enjoys a perfect meal in stable gravity."
    },
    {
      "id": "failForward",
      "label": "Improvised Meal",
      "summary": "The buffet fails the audit, but you turn the crisis into a fun zero-gravity picnic. The summit is a success, and the station gets a new reputation."
    }
  ],
  "improvisation": {
    "allowed": [
      "social problem-solving",
      "slapstick without humiliation"
    ],
    "prohibitedAdditions": [
      "graphic violence",
      "sexual content",
      "borrowed IP",
      "NEVER_INCLUDE_SENTINEL_9J7K"
    ]
  }
}