{
  "date": "2026-11-26",
  "scope": "Self-contained Penguin scripts and general script-file loading",
  "delivery": {
    "removed": ["XSharpDemo/PenguinLevel.cs", "XSharpDemo/Assets/Scripts/Penguin.lua"],
    "packages": ["XSharpDemo/Assets/Levels/Penguin.xlevel", "XSharp.LevelSandbox/Assets/Levels/X1/08.xlevel"],
    "sourceEntry": "scripts/Penguin.lua",
    "manifestEntry": "scripts/scripts.json",
    "scriptId": "penguin/doors",
    "eventListener": "logic_script with levelEvents=true",
    "host": "Plain LevelDefinition.FromResource / FromFile; no compiled Penguin-specific behavior"
  },
  "fileSupport": [
    "Manifest file references in any registered language, with archive-path aliases preserving the declared language",
    "Direct .lua path references without a script manifest",
    "LogicScript.RunScriptFile resolves the precached named ID or archive path",
    "Host-only PrecacheScriptFile reads external authored sources during level precache",
    "Bounded UTF-8 source reading, duplicate/path validation and immutable save/demo source libraries"
  ],
  "tests": [
    { "project": "XSharp.Scripting.Tests", "passed": 29, "failed": 0, "skipped": 0 },
    {
      "project": "XSharp.Tests",
      "filter": "PackagedScriptFileTests|LadderGapPhysicsTests|ScriptLevelPackage|LevelPackageTests|LevelReaderTests|DemoControllerTests|DemoMovieTests|PlayerPhysics|PlayerWeaponScheduling|LevelAudioTests",
      "passed": 432,
      "failed": 0,
      "skipped": 0
    }
  ],
  "builds": ["tests/XSharp.LevelSmoke", "XSharp.LevelSandbox", "tools/XSharp.RideArmorParity"],
  "runtime": [
    {
      "scenario": "Embedded Penguin asset with plain LevelDefinition",
      "result": "passed",
      "evidence": "Startup, Lua door map IDs, resource switching and full level/session save-state round-trip"
    },
    {
      "scenario": "Standalone imported package with packaged Lua and ambient_generic",
      "result": "passed",
      "evidence": "Full engine save and real BK2 recording/replay retain closures, cyclic tables, pending calls, entity pose and RNG without repeating historical API effects"
    },
    {
      "scenario": "Penguin local map state with the Custom profile required by the legacy-v3 fixture",
      "result": "passed",
      "evidence": "Open door generated by packaged Lua survives full save restoration; foreground/background alias isolation, legacy-v3 terrain envelope and unchanged audio cache"
    },
    {
      "scenario": "External Sandbox X1/08 package, checkpoint 2, real boss-door entry",
      "result": "passed",
      "evidence": "Door opening/crossing/closing/closed, boss introduction and battle music, visible boss at 32 HP, unlocked player and first projectile. Entry: 296 frames; introduction: 201 frames; attack: 32 frames. No Penguin-specific C# bridge."
    }
  ],
  "runtimeOutputMuted": true,
  "assetIntegrity": {
    "demoChangedExistingEntries": ["entities/entities.json"],
    "sandboxChangedExistingEntries": ["entities/entities.json", "level.json"],
    "addedEntries": ["scripts/Penguin.lua", "scripts/scripts.json"],
    "geometryAndResourceSnapshotPayloads": "Identical to each asset's own previous committed payloads; the Sandbox's distinct snapshots are retained",
    "generatedAudioCommitted": false
  },
  "bounds": [
    "These are selected regression checks and real runtime scenarios, not a claim that the entire repository suite is green.",
    "External filesystem loading is a trusted host precache operation. Lua retains no ambient filesystem access.",
    "Old same-build demo/save constraints and deterministic replay checkpoint costs remain unchanged."
  ]
}
