Skip to main content

Summary for Repository Documentation Updates

This document provides a summary of recent code changes that should be reflected in the main repository’s CLAUDE.md and README.md files.

CLAUDE.md Updates Needed

Build System Section

Add information about circular dependency handling:

Testing Section

Add CI-specific guidance:

Terrain System Section

Add new terrain parameter system:

README.md Updates Needed

Deployment Section

Add Vast.ai deployment information:
Features:
  • Filters for US-based machines
  • Standard CUDA Docker images
  • SSH key generation for secure access
  • Runtime environment variable injection

Build System Section

Add circular dependency information:

Key Changes Summary

Terrain System (High Priority)

  1. TerrainHeightParams.ts: New centralized parameter file
    • Single source of truth for all terrain constants
    • Worker code generation via buildGetBaseHeightAtJS()
    • Prevents parameter drift between threads
  2. Worker Computation: Height and normal calculation in workers
    • 63x reduction in main-thread noise evaluations
    • Parallel processing across CPU cores
    • Conditional fallback for flat zone tiles

Duel Arena (Medium Priority)

  1. Combat AI Fixes: 6 bug fixes for agent duel gameplay
    • 2H sword attack timing
    • Teleport handling during fights
    • Stale avatar cleanup
    • FIGHT text display
    • Health bar synchronization
  2. Visual Enhancements:
    • Lit torches at arena corners
    • Procedural stone tile floor textures
    • Fence posts and rails (replaced solid walls)

Build System (High Priority)

  1. Circular Dependency Handling:
    • procgen and plugin-hyperscape builds resilient to circular deps
    • Uses tsc || echo and --skipLibCheck patterns
    • Prevents clean build failures
  2. CI Improvements:
    • Increased test timeouts for CI reliability
    • Fixed invalid manifest JSONs
    • Added Foundry for MUD contracts tests

Deployment (Medium Priority)

  1. Vast.ai Support:
    • Python 3.11+ requirement (bookworm-slim)
    • vastai SDK installation with —break-system-packages
    • SSH key generation in Docker
    • US-based machine filtering
  2. Docker Improvements:
    • build-essential for native modules
    • git-lfs for asset checks
    • CI=true to skip asset download
    • DNS configuration (Google DNS)

Documentation Files Updated

In This PR

  1. changelog.mdx: Added February 22, 2026 update section
  2. architecture.mdx: Added terrain system and circular dependency info
  3. packages/shared.mdx: Added terrain generation system section
  4. devops/troubleshooting.mdx: Added circular dependency and manifest validation sections
  5. devops/docker.mdx: Added production Docker image configurations
  6. guides/deployment.mdx: Added Vast.ai and CI/CD sections
  7. wiki/game-systems/terrain.mdx: Updated with TerrainHeightParams details
  8. wiki/game-systems/duel-arena.mdx: Added visual enhancements and combat AI fixes
  9. api-reference/terrain.mdx: New API reference for TerrainSystem and TerrainHeightParams
  10. guides/recent-updates.mdx: New migration guide for recent changes

Repository Files to Update Manually

These files are in the main repository (not the docs repo) and should be updated manually:
  1. CLAUDE.md: Add sections for circular dependencies, CI test reliability, and terrain system
  2. README.md: Add Vast.ai deployment, Docker configurations, and build system notes

Line Count Summary

Total Documentation Changes: ~450 lines added across 10 files
  • changelog.mdx: ~150 lines (new update section)
  • architecture.mdx: ~30 lines (terrain system, circular deps)
  • packages/shared.mdx: ~50 lines (terrain generation)
  • devops/troubleshooting.mdx: ~40 lines (build fixes, manifest validation)
  • devops/docker.mdx: ~60 lines (production images)
  • guides/deployment.mdx: ~50 lines (Vast.ai, CI/CD)
  • wiki/game-systems/terrain.mdx: ~80 lines (parameter updates)
  • wiki/game-systems/duel-arena.mdx: ~40 lines (visual enhancements)
  • api-reference/terrain.mdx: ~300 lines (new file)
  • guides/recent-updates.mdx: ~200 lines (new file)
  • guides/repository-updates-summary.mdx: ~100 lines (this file)
Total: ~1,100 lines of comprehensive documentation updates