refactor(simulation): move content/ under server/ (#669)

Content files (RON templates, YAML campaigns, gauntlet data) are consumed
exclusively by the server. Colocate them at server/content/ and update all
path references in Rust source, tooling scripts, and schema files.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-17 10:31:20 +01:00
co-authored by Claude Opus 4.6
parent c0669489ff
commit b2ef56440f
73 changed files with 153 additions and 55 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
REPO_ROOT="$(dirname "$SCRIPT_DIR")"
KNOWLEDGE_DIR="$REPO_ROOT/content/global/knowledge"
CONTENT_DIR="$REPO_ROOT/content/campaigns"
KNOWLEDGE_DIR="$REPO_ROOT/server/content/global/knowledge"
CONTENT_DIR="$REPO_ROOT/server/content/campaigns"
# --- Extract canonical fact_ids from knowledge catalogs ---
# Matches YAML lines like: fact_id: some_value or fact_id: "some_value"
+2 -2
View File
@@ -16,8 +16,8 @@ import jsonschema
import yaml
ROOT = Path(__file__).resolve().parent.parent
SCHEMA_PATH = ROOT / "content" / "_schema" / "checklist.schema.json"
GAUNTLET_DIR = ROOT / "content" / "gauntlet"
SCHEMA_PATH = ROOT / "server" / "content" / "_schema" / "checklist.schema.json"
GAUNTLET_DIR = ROOT / "server" / "content" / "gauntlet"
def load_schema():
+1 -1
View File
@@ -29,7 +29,7 @@ from pathlib import Path
import jsonschema
import yaml
CONTENT_DIR = Path(__file__).resolve().parent.parent / "content"
CONTENT_DIR = Path(__file__).resolve().parent.parent / "server" / "content"
SCHEMA_DIR = CONTENT_DIR / "_schema"
# Map directory parent name (or filename) to schema file
+8 -6
View File
@@ -2,21 +2,23 @@
# RON content validator — wrapper for the Rust validate_ron binary (#611).
#
# Usage:
# tooling/validate-ron <file.ron> <zone|culture>
# tooling/validate-ron <file.ron> <zone|zone_type|culture>
#
# Examples:
# tooling/validate-ron content/global/zone-identity-spec.example.ron zone
# tooling/validate-ron content/global/culture-van-maanens-star.example.ron culture
# tooling/validate-ron server/content/global/zone-types/rural_agricultural.ron zone_type
# tooling/validate-ron server/content/global/culture-van-maanens-star.example.ron culture
# tooling/validate-ron server/content/global/zone-identity-spec.example.ron zone
set -euo pipefail
if [ $# -lt 2 ]; then
echo "Usage: tooling/validate-ron <file.ron> <zone|culture>"
echo "Usage: tooling/validate-ron <file.ron> <zone|zone_type|culture>"
echo ""
echo "Validates a RON file against the Rust struct schema."
echo "Schema types:"
echo " zone — ZoneSpec (zone identity spec)"
echo " culture — CultureProfile (culture profile)"
echo " zone_type — ZoneTypeTemplate (D-142 zone-type template)"
echo " zone — ZoneSpec (legacy zone identity spec)"
echo " culture — CultureProfile (culture profile)"
exit 1
fi