Commit Graph

2 Commits

Author SHA1 Message Date
c37f7d245e Complete Phase 1: Finalize all core interfaces with immutable architecture
- **IEngine**: Add run(), step(), loadModules(), socket management, health monitoring
- **IModuleSystem**: Inherit ITaskScheduler, 1:1 module relationship, task delegation
- **IModule**: Service injection (IIO*, ITaskScheduler*), pub/sub communication, void process()
- **IIO**: Pull-based pub/sub with wildcards, low-frequency batching, health monitoring
- **ITaskScheduler**: Task delegation interface for module→execution system

Architecture completed with quadruple interface pattern optimized for:
- Thread-safe pull-based messaging
- Module task delegation to execution systems
- Engine health monitoring of all IIO instances
- Immutable interface foundation for future development

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 09:03:56 +08:00
61ef2293ad Replace engine architecture with modular triple interface system
- Remove old 10-engine system (engines/ directory deleted)
- Implement C++ triple interface architecture:
  * IEngine: Execution coordination (Debug → Production)
  * IModuleSystem: Strategy pattern (Sequential → Threaded → Cluster)
  * IModule: Pure game logic interface (200-300 lines per module)
  * IIO: Communication transport (Intra → Local → Network)

- Add autonomous module structure:
  * modules/factory/: Production logic with autonomous build
  * modules/economy/: Market simulation with autonomous build
  * modules/logistic/: Supply chain with autonomous build
  * Each module: CLAUDE.md + CMakeLists.txt + shared/ + build/

- Benefits for Claude Code development:
  * Ultra-focused contexts (200 lines vs 50K+ lines)
  * Autonomous builds (cmake . from module directory)
  * Hot-swappable infrastructure without logic changes
  * Parallel development across multiple Claude instances

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-20 09:15:03 +08:00