codebase-des-system

Execute DES scenario JSON to validate game state transitions and assertions.

Updated Dec 13, 2025
One-click install
npx skills add https://github.com/EliasVahlberg/saltglass-steppe --skill codebase-des-system
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-des-system
Source: https://github.com/EliasVahlberg/saltglass-steppe/tree/main/.kiro_snapshot_2026-04-04_1209/skills/codebase-des-system
Command: npx skills add https://github.com/EliasVahlberg/saltglass-steppe --skill codebase-des-system

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill documents the DES (Debug Execution System) interpreter and scenario format so developers can author, run, and debug deterministic headless test scenarios that reproduce and diagnose failing game behaviors without needing the UI.

Core Features & Use Cases

  • Scenario Authoring: Defines the JSON schema for scenarios, including inheritance, variables, map setup, mocks, entities, scheduled actions, and assertions.
  • Deterministic Test Execution: Explains how the DES runs GameState turn-by-turn, how to schedule actions and assertion timing, and lists all supported actions and checks for reproducing combat, storms, and environment interactions.
  • APIs & Integration: Describes public APIs for running single or parallel scenarios, rendering callbacks for visual debugging, and how to run DES scenarios as cargo tests.

Quick Start

Use the DES to run and validate the scenario file tests/scenarios/my_test.json with a fixed seed for reproducible results.

Frequently Asked Questions about codebase-des-system

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write deterministic test scenarios for game mechanics in Rust?

You write deterministic test scenarios by defining a JSON schema with map setup, entities, scheduled actions, and assertions. The DES interpreter executes this scenario JSON turn-by-turn against the GameState to validate transitions and reproduce behaviors using a fixed seed.

Can I run headless game testing scenarios as cargo tests?

Yes, you can run DES scenarios as cargo tests. The Skill provides public APIs including run_scenario for single execution and run_parallel for concurrent execution, allowing scenario JSON files to validate game state transitions within your standard Rust test suite.

How do I debug failing AI behavior without launching the game UI?

You debug failing AI behavior by using the DES interpreter to run headless turn-by-turn scenarios with mock settings and scheduled actions. The run_with_render API provides rendering callbacks for visual debugging while validating deterministic state transitions.

What is scenario inheritance in deterministic game testing?

Scenario inheritance is a JSON schema feature that allows test scenarios to extend base configurations, sharing map setup, variables, and mock settings. It enables deterministic test execution by reusing defined game states and scheduled actions across multiple scenario validations.

Does the DES support testing environmental events like storms and combat?

Yes, the DES supports testing environmental events like storms and combat. The deterministic test execution engine lists supported actions and checks specifically for reproducing combat, storms, and environment interactions via scheduled action timing and assertions.

What's the best way to execute multiple game test scenarios concurrently in Rust?

The best way to execute multiple scenarios concurrently is the run_parallel API. It runs deterministic DES scenario JSON files simultaneously, validating game state transitions and assertions for headless turn-by-turn testing of game mechanics at scale.