{
  "schemaVersion": "adventure-draft/v1",
  "sourceAdventureId": "orbiting-buffet-audit",
  "characters": [
    {
      "id": "galactic-auditor",
      "name": "Zyx-9, Galactic Compliance Auditor",
      "role": "by-the-book auditor",
      "motivation": "expose non-compliance to protect the Galactic Diet",
      "visibility": {
        "kind": "public"
      }
    },
    {
      "id": "buffet-manager",
      "name": "Chef Gloop",
      "role": "overworked buffet manager",
      "motivation": "keep the buffet delicious and scandal-free",
      "visibility": {
        "kind": "public"
      }
    },
    {
      "id": "rival-executive",
      "name": "Vice-Chairman Foam",
      "role": "smug rival caterer",
      "motivation": "see the buffet fail so his conglomerate gets the contract",
      "visibility": {
        "kind": "gm"
      }
    }
  ],
  "storyFacts": [
    {
      "id": "fact-probe-contradiction",
      "statement": "The audit probe's diagnostics conflict with the buffet's gravity specs.",
      "visibility": {
        "kind": "public"
      }
    },
    {
      "id": "fact-secret-stabilizer",
      "statement": "A hidden zero-gravity field stabilizer, installed for a previous dignitary's delicate soufflé, is overheating.",
      "visibility": {
        "kind": "gm"
      }
    },
    {
      "id": "fact-rival-complaint",
      "statement": "Vice-Chairman Foam of GloopCorp's rival conglomerate filed the anonymous complaint to sabotage the buffet.",
      "visibility": {
        "kind": "gm"
      }
    }
  ],
  "clocks": [
    {
      "id": "gravity-audit-clock",
      "label": "Gravity Audit Instability",
      "segments": 4,
      "initialValue": 0,
      "advanceSignals": [
        "audit-spike",
        "field-burst",
        "power-drain"
      ],
      "whenFull": "The gravity field collapses completely. The buffet becomes a floating disaster zone. The summit is cancelled permanently."
    }
  ],
  "scenes": [
    {
      "id": "opening-scene",
      "kind": "opening",
      "title": "Welcome to the Buffet",
      "summary": "The diplomatic snack station orbits in quiet chaos. Gravity hiccups toss croissants into the chandelier. A holographic audit probe drifts, beeping contradictory warnings. The summit lunch docks in 20 minutes.",
      "locationId": "buffet-station",
      "participantIds": [
        "galactic-auditor",
        "buffet-manager"
      ],
      "requiredFactIds": [
        "fact-probe-contradiction"
      ],
      "exits": [
        {
          "id": "opening-success",
          "outcome": "success",
          "when": "The players convince the auditor to give them a chance to fix the gravity fluctuations and identify the complaint source.",
          "nextSceneId": "challenge-scene",
          "consequences": [
            "Zyx-9 grudgingly agrees to a 15-minute delay.",
            "The stabilizer begins to audibly whine."
          ]
        },
        {
          "id": "opening-failure",
          "outcome": "failure",
          "when": "The players are unable to soothe Zyx-9, who begins filing an immediate shutdown order.",
          "endingId": "audit-failure",
          "consequences": [
            "The buffet is declared a hazard.",
            "The summit is cancelled before even docking."
          ]
        }
      ]
    },
    {
      "id": "challenge-scene",
      "kind": "challenge",
      "title": "Stabilize the Gourmet Chaos",
      "summary": "The gravity surges are worsening. The secret stabilizer is overheating. Meanwhile, someone is jamming the audit probe. The players must balance repairs, sabotage detection, and placating the auditor.",
      "locationId": "engine-room",
      "participantIds": [
        "galactic-auditor",
        "buffet-manager"
      ],
      "requiredFactIds": [
        "fact-secret-stabilizer"
      ],
      "exits": [
        {
          "id": "challenge-success",
          "outcome": "success",
          "when": "The players stabilize the gravity, trace the jamming signal to Vice-Chairman Foam's shuttle, and reassure Zyx-9.",
          "nextSceneId": "finale-scene",
          "consequences": [
            "Gravity holds steady.",
            "Zyx-9 is cautiously optimistic."
          ]
        },
        {
          "id": "challenge-fail-forward",
          "outcome": "failure",
          "when": "The players manage to keep the gravity from collapsing, but the jammer remains unidentified, leaving Zyx-9 suspicious and twitchy.",
          "nextSceneId": "finale-scene",
          "consequences": [
            "Zyx-9's trust is minimal.",
            "The rival is still at large."
          ],
          "failForward": true
        },
        {
          "id": "challenge-clock-failure",
          "outcome": "failure",
          "when": "The Gravity Audit Instability clock reaches 4.",
          "endingId": "audit-failure",
          "consequences": [
            "The gravity field ruptures, sending food and equipment flying.",
            "The station is evacuated."
          ]
        }
      ]
    },
    {
      "id": "finale-scene",
      "kind": "finale",
      "title": "The Summit Docks",
      "summary": "The dignitaries' shuttle is on final approach. The buffet must present flawlessly. The auditor delivers the final verdict. The hidden rival plans a last-minute sabotage.",
      "locationId": "buffet-station",
      "participantIds": [
        "galactic-auditor",
        "buffet-manager",
        "rival-executive"
      ],
      "requiredFactIds": [
        "fact-rival-complaint"
      ],
      "exits": [
        {
          "id": "finale-success",
          "outcome": "success",
          "when": "The players expose Vice-Chairman Foam's sabotage with undeniable proof, and Chef Gloop presents a flawless, stabilized buffet.",
          "endingId": "summit-success",
          "consequences": [
            "Zyx-9 stamps compliance.",
            "Diplomats enjoy the meal."
          ]
        },
        {
          "id": "finale-fail-forward",
          "outcome": "failure",
          "when": "Despite chaotic gravity and half-baked evidence, the players manage to serve an edible, if messy, lunch. Zyx-9 issues a conditional compliance that tarnishes the buffet's reputation.",
          "endingId": "audit-failure",
          "consequences": [
            "The buffet is condemned, but the diplomats share a laugh.",
            "The rival conglomerate smirks."
          ],
          "failForward": true
        }
      ]
    }
  ],
  "endings": [
    {
      "id": "summit-success",
      "label": "Summit Saved",
      "summary": "The buffet audit passes, the diplomatic lunch is a triumph, and Chef Gloop receives a medal."
    },
    {
      "id": "audit-failure",
      "label": "Audit Fiasco",
      "summary": "The buffet is condemned, but the inter-species diplomats share a laugh and vow to return next cycle."
    }
  ],
  "improvisation": {
    "allowed": [
      "social-problem-solving",
      "slapstick",
      "zero-g-comedy",
      "gadget-repairs"
    ],
    "prohibitedAdditions": [
      "graphic-violence",
      "sexual-content",
      "borrowed-ip",
      "never-include-sentinel-9j7k"
    ]
  }
}