Sprint 207: Examples Purge & Modernization 🧹
Welcome to Sprint 207! As KnotenCore continues to mature, codebase hygiene becomes paramount. In this sprint, we undertook a massive cleanup: removing over 80 obsolete or redundant example files, modernizing the remaining codebase for full parser compliance, and locking down 100% CI testing on all examples.
🧹 The Great File Purge
Over 170+ sprints, many hand-written JSON ASTs and legacy `.nod` files accumulated in the examples/ directory. Many of these referenced deleted FFI interfaces or old voxel systems. We deleted empty subdirectories (like graphics, graphics/calculator, io_test) and 60+ legacy scripts.
Only **18 high-quality `.knoten` DSL files** and **2 `.nod` helper files** remain, providing a streamlined, maintained reference library for developers and AI code-generation agents.
⚙️ Syntax Modernization & Fixes
We refactored the remaining examples to align with our strict parser requirements. In telemetry_dashboard.knoten, we resolved uninitialized variables (e.g. changing let last_run; to let last_run = "never";) and simplified comments to ensure the parser never hits lexer parsing halts.
🔒 Enforced CI Testing
To prevent future code drift, we added test_examples_compilation_and_validation inside `tests/sandbox_tests.rs`. This test automatically loops through all 18 remaining examples, parsing and validating them against the compiler schema. No legacy code can be committed going forward without passing these checks!