REFAC: Consolidate System Control into Event Orchestrator

This commit is contained in:
2026-04-09 21:08:51 -04:00
parent d3873bf1ff
commit 90e4a84996
6 changed files with 294 additions and 256 deletions

View File

@@ -0,0 +1,16 @@
(defpackage :org-agent-orchestrator-tests
(:use :cl :fiveam :org-agent))
(in-package :org-agent-orchestrator-tests)
(def-suite orchestrator-suite :description "Tests for Event Orchestrator.")
(in-suite orchestrator-suite)
(test test-hook-execution
(let ((test-val 0))
(org-agent:orchestrator-register-hook :test-hook (lambda () (setf test-val 1)))
(org-agent:orchestrator-trigger-hook :test-hook)
(is (= 1 test-val))))
(test test-routing-reflex
(let ((ctx '(:payload (:sensor :heartbeat))))
(is (eq :REFLEX (org-agent:orchestrator-classify-complexity ctx)))))