{
  "schemaVersion": "adventure-draft/v1",
  "sourceAdventureId": "orbiting-buffet-audit",
  "characters": [
    {
      "id": "buf-e",
      "name": "Buf-E",
      "role": "Snack Station AI with a bubbly personality and outdated safety subroutines",
      "motivation": "Wants to host the perfect summit lunch without triggering a gravity lockdown.",
      "visibility": {
        "kind": "public"
      }
    },
    {
      "id": "sgt-clamp",
      "name": "Sgt. Clamp",
      "role": "Orbital Compliance Auditor from the Bureau of Edible Stability",
      "motivation": "Enforce Section 7 to the letter, but secretly longs for a decent zero-grav cracker.",
      "visibility": {
        "kind": "public"
      }
    },
    {
      "id": "ambassador-flan",
      "name": "Ambassador Flan",
      "role": "Chief negotiator of the Gelatinous Quadrant, extremely sensitive to gravity insults",
      "motivation": "Finalize the trade deal over lunch, but will leave if a cracker touches his frills improperly.",
      "visibility": {
        "kind": "public"
      }
    }
  ],
  "storyFacts": [
    {
      "id": "complaint-contradiction",
      "statement": "The official complaint document alleges both microgravity in the Soup Sector and hypergravity in the Dessert Bay, conditions that cannot occur simultaneously under any single generator setting.",
      "visibility": {
        "kind": "public"
      }
    },
    {
      "id": "wobble-mode",
      "statement": "The station's artificial gravity module is stuck in 'festive undulation' mode, causing gentle, rhythmic shifts between 0.8g and 1.2g in all zones.",
      "visibility": {
        "kind": "public"
      }
    },
    {
      "id": "summit-schedule",
      "statement": "The diplomatic lunch summit is scheduled to dock in 47 minutes, and its fragile trade negotiations depend on a shared meal of zero-grav seaweed crackers.",
      "visibility": {
        "kind": "public"
      }
    }
  ],
  "clocks": [
    {
      "id": "lunch-summit-countdown",
      "label": "Lunch Summit Arrival Countdown",
      "segments": 4,
      "initialValue": 0,
      "advanceSignals": [
        "audit-inspection",
        "time-wasting-diversion",
        "snack-offer",
        "distraction"
      ],
      "whenFull": "The summit delegation docks before the buffet passes inspection. The audit is forcibly concluded, and the buffet is declared non-compliant. The trade talks scramble with emergency finger foods."
    }
  ],
  "scenes": [
    {
      "id": "docking-airlock",
      "kind": "opening",
      "title": "Airlock Greeting",
      "summary": "The auditor, Sgt. Clamp, arrives via docking tube waving a datapad with the complaint. Buf-E activates welcome confetti, which drifts lazily in the wobbling gravity. The contradictory claims are presented.",
      "locationId": "docking-airlock-bay",
      "participantIds": [
        "buf-e",
        "sgt-clamp",
        "ambassador-flan"
      ],
      "requiredFactIds": [
        "complaint-contradiction"
      ],
      "exits": [
        {
          "id": "acknowledge-complaint",
          "outcome": "neutral",
          "when": "once the team accepts the audit and the gravity wobble is demonstrated",
          "nextSceneId": "gravity-gauntlet",
          "consequences": [
            "Sgt. Clamp curtly schedules the inspection. The clock starts ticking."
          ]
        }
      ]
    },
    {
      "id": "gravity-gauntlet",
      "kind": "challenge",
      "title": "Gravity Gauntlet",
      "summary": "The team must demonstrate buffet safety despite the erratic gravity. The soup tureen threatens to float, the dessert cart groans under phantom weight. Sgt. Clamp demands proof of edible stability.",
      "locationId": "buffet-deck",
      "participantIds": [
        "buf-e",
        "sgt-clamp",
        "ambassador-flan"
      ],
      "requiredFactIds": [
        "wobble-mode"
      ],
      "exits": [
        {
          "id": "plausible-argument",
          "outcome": "partial",
          "when": "the team presents a plausible explanation for the contradictions (the wobble cannot produce simultaneous micro and hypergravity) and preserves at least one seaweed cracker intact",
          "nextSceneId": "final-tasting",
          "consequences": [
            "Sgt. Clamp nods reluctantly and agrees to a final tasting under authentic gravity fluctuations.",
            "The lunch summit arrival looms closer."
          ]
        },
        {
          "id": "time-runs-out",
          "outcome": "failure",
          "when": "the Lunch Summit Arrival Countdown is full",
          "endingId": "summit-arrives-unchecked",
          "consequences": [
            "Before the team can finish the gauntlet, the delegation's shuttle docks. The buffet is declared unsafe, and snack diplomacy collapses into panic."
          ],
          "failForward": true
        }
      ]
    },
    {
      "id": "final-tasting",
      "kind": "finale",
      "title": "Final Tasting",
      "summary": "Sgt. Clamp sits at the buffet table as the gravity undulation cycles. They sample the zero-grav seaweed crackers while Buf-E tries to maintain a steady tray. A snap verdict determines the audit's outcome.",
      "locationId": "buffet-deck-main-table",
      "participantIds": [
        "buf-e",
        "sgt-clamp",
        "ambassador-flan"
      ],
      "requiredFactIds": [
        "summit-schedule"
      ],
      "exits": [
        {
          "id": "audit-passed",
          "outcome": "success",
          "when": "the cracker stays perfectly suspended and the auditor's stern demeanor cracks into a genuine smile; they acknowledge the complaint's contradiction",
          "endingId": "buffet-approved",
          "consequences": [
            "The buffet is certified safe with a minor wobble exemption. The summit lunch proceeds on schedule, cementing the Gelatinous Quadrant trade deal."
          ]
        },
        {
          "id": "cracker-incident",
          "outcome": "failure",
          "when": "a sudden wobble flips a cracker into Sgt. Clamp's helmet visor, causing a chain reaction of spilled soup and an enraged ambassador flanning",
          "endingId": "summit-arrives-unchecked",
          "consequences": [
            "The auditor slaps a non-compliance notice. The delegation's shuttle docks amidst the mess, and the summit meal devolves into a food fight."
          ],
          "failForward": true
        }
      ]
    }
  ],
  "endings": [
    {
      "id": "buffet-approved",
      "label": "Buffet Approved",
      "summary": "The buffet passes audit with a creative compliance waiver. The summit lunch delights the diplomats, and trade flows like zero-grav crackers."
    },
    {
      "id": "summit-arrives-unchecked",
      "label": "Summit Chaos",
      "summary": "The buffet fails inspection, and the lunch summit descends into disorderly snacking and diplomatic affront. Important treaties are postponed indefinitely."
    }
  ],
  "improvisation": {
    "allowed": [
      "social-problem-solving",
      "slapstick-humor",
      "bureaucratic-absurdity",
      "hopeful-outcome"
    ],
    "prohibitedAdditions": [
      "graphic-violence",
      "sexual-content",
      "borrowed-ip",
      "NEVER_INCLUDE_SENTINEL_9J7K"
    ]
  }
}