Files
zCode-CLI-X/test-ruflo-smoke.mjs.md
admin 24d2da0b2d test: add comprehensive smoke test for Ruflo-inspired systems
Test coverage:
- PluginSystem: 10 assertions (load, unload, extension points)
- HookSystem: 4 assertions (pre/post tool, pre/post AI)
- AgentSystem: 9 assertions (creation, capabilities, tasks)
- SwarmCoordinator: 12 assertions (spawn, execute, distribute, terminate)
- AgentOrchestrator: 4 assertions (single/multi-agent execution)
- MemoryBackend: 14 assertions (JSON + InMemory, LRU, TTL, search)

Total: 53 assertions, all passing.

This validates that all 1977 lines of Ruflo-inspired code work correctly at runtime.
2026-05-06 09:59:30 +00:00

925 B

Ruflo-inspired Systems Smoke Test

This test validates all Ruflo-inspired features ported to zCode:

Plugin System

  • PluginManager lifecycle (load, unload, invoke extension points)
  • PluginLoader dependency resolution
  • BasePlugin with initialization hooks

Hook System

  • Pre/post tool hooks
  • Pre/post AI hooks
  • Session lifecycle hooks

Agent System

  • Agent creation with capabilities
  • Task creation with priorities and dependencies
  • Agent status tracking
  • Task execution lifecycle

Swarm Coordinator

  • Agent spawning and termination
  • Task distribution across agents
  • Multi-agent execution
  • Swarm state tracking

Agent Orchestrator

  • Agent type-based execution
  • Multi-agent workflow execution

Memory Backend

  • JSONBackend with LRU eviction
  • InMemoryBackend with TTL
  • Typed memory storage (fact, pattern, lesson)

Run

node test-ruflo-smoke.mjs

Expected: All 53 assertions pass.