Code cleanup + Best practices + Separation of concerns

This commit is contained in:
Renn F
2025-12-14 01:09:57 +01:00
parent ee1d54ac90
commit 855536eb18
46 changed files with 2542 additions and 2339 deletions
+1 -17
View File
@@ -32,23 +32,7 @@ from roboco.llm import ToonAdapter
# Global TOON adapter for encoding task data
_toon = ToonAdapter()
# =============================================================================
# VALID STATE TRANSITIONS
# =============================================================================
VALID_TRANSITIONS: dict[str, list[str]] = {
"pending": ["claimed"],
"claimed": ["in_progress", "pending"],
"in_progress": ["blocked", "paused", "verifying"],
"blocked": ["in_progress"],
"paused": ["in_progress"],
"verifying": ["awaiting_qa", "needs_revision", "awaiting_documentation"],
"needs_revision": ["in_progress"],
"awaiting_qa": ["awaiting_documentation", "needs_revision"],
"awaiting_documentation": ["completed"],
"completed": [],
"cancelled": [],
}
# NOTE: For task lifecycle validation, use enforcement.task_lifecycle.VALID_TRANSITIONS
# =============================================================================