Files
timmy-home/tickets/TICKET-204-execution-registry.md
Allegro 645f63a4f6 docs: Add EPIC-202 and tickets for Claw-based agent build
- EPIC-202: Build Claw-Architecture Agent
- TICKET-203: ToolPermissionContext
- TICKET-204: ExecutionRegistry
- TICKET-205: Session Persistence

Replaces idle Allegro-Primus with real work capability.
2026-03-31 21:05:13 +00:00

1.1 KiB

TICKET-204: Create ExecutionRegistry

Epic: EPIC-202
Priority: P0
Status: Ready
Assignee: Allegro
Estimate: 6 hours

Description

Create ExecutionRegistry for clean command/tool routing, replacing model-decided routing.

Acceptance Criteria

  • ExecutionRegistry class
  • register_command(name, handler) method
  • register_tool(name, handler) method
  • command(name) -> CommandHandler lookup
  • tool(name) -> ToolHandler lookup
  • execute(prompt, context) routing method
  • Permission context integration
  • Tests pass

Implementation Notes

Pattern from Claw src/execution_registry.py:

class ExecutionRegistry:
    def __init__(self):
        self._commands: dict[str, CommandHandler] = {}
        self._tools: dict[str, ToolHandler] = {}
    
    def register_command(self, name: str, handler: CommandHandler):
        self._commands[name] = handler
    
    def command(self, name: str) -> CommandHandler | None:
        return self._commands.get(name)

References

  • Claw: src/execution_registry.py
  • Claw: src/runtime.py for usage