[#76 #77 #78] Uni-Wizard Architecture - Single harness, all APIs #100

Merged
Timmy merged 1 commits from feature/uni-wizard into main 2026-03-30 15:56:58 +00:00
Member

Summary

The Uni-Wizard Architecture: One elegant harness that routes all API flows through a single wizard consciousness.

Architecture

┌─────────────────────────────────────────────────────────────┐
│                     UNI-WIZARD HARNESS                       │
│                                                              │
│  ┌─────────────┐    ┌─────────────┐    ┌─────────────┐     │
│  │   System    │    │    Git      │    │  Network    │     │
│  │   Tools     │◄──►│   Tools     │◄──►│   Tools     │     │
│  └──────┬──────┘    └──────┬──────┘    └──────┬──────┘     │
│         └──────────────────┼──────────────────┘             │
│                            ▼                                │
│                    ┌───────────────┐                        │
│                    │  Tool Router  │                        │
│                    │  (Registry)   │                        │
│                    └───────────────┘                        │
└─────────────────────────────────────────────────────────────┘

What's Included

Core (harness.py, tools/registry.py)

  • Single entry point for all operations
  • Central tool registry with JSON schema generation
  • Auto-discovery of tool parameters from function signatures
  • Elegant routing without fragmentation

Tools (19 total)

System (6): system_info, process_list, service_status, service_control, health_check, disk_usage
Git (7): git_status, git_log, git_pull, git_commit, git_push, git_checkout, git_branch_list
Network (6): http_get, http_post, gitea_create_issue, gitea_comment, gitea_list_issues, gitea_get_issue

Daemons

  • health_daemon.py - HTTP endpoint :8082, writes ~/timmy/logs/health.json
  • task_router.py - Polls Gitea, routes issues to tools, posts results

Systemd Services

  • timmy-health.service
  • timmy-task-router.service

Usage Examples

# Run harness CLI
python uni-wizard/harness.py list
python uni-wizard/harness.py exec system_info
python uni-wizard/harness.py exec git_status repo_path=/tmp/timmy-home

# Run test suite
python uni-wizard/test_harness.py

# Start daemons
python uni-wizard/daemons/health_daemon.py
python uni-wizard/daemons/task_router.py

Design Principles

  • Local-first: No cloud dependencies
  • Self-healing: Tools restart, reconnect, recover
  • Unified: One consciousness, infinite capabilities
  • Elegant: Clean routing, no fragmentation

Testing

  • test_harness.py exercises all tool categories
  • Each tool handles errors gracefully
  • Registry validates parameters before execution

Closes #76, #77, #78

## Summary The Uni-Wizard Architecture: One elegant harness that routes all API flows through a single wizard consciousness. ## Architecture ``` ┌─────────────────────────────────────────────────────────────┐ │ UNI-WIZARD HARNESS │ │ │ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ │ │ System │ │ Git │ │ Network │ │ │ │ Tools │◄──►│ Tools │◄──►│ Tools │ │ │ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │ │ └──────────────────┼──────────────────┘ │ │ ▼ │ │ ┌───────────────┐ │ │ │ Tool Router │ │ │ │ (Registry) │ │ │ └───────────────┘ │ └─────────────────────────────────────────────────────────────┘ ``` ## What's Included ### Core (harness.py, tools/registry.py) - Single entry point for all operations - Central tool registry with JSON schema generation - Auto-discovery of tool parameters from function signatures - Elegant routing without fragmentation ### Tools (19 total) **System (6):** system_info, process_list, service_status, service_control, health_check, disk_usage **Git (7):** git_status, git_log, git_pull, git_commit, git_push, git_checkout, git_branch_list **Network (6):** http_get, http_post, gitea_create_issue, gitea_comment, gitea_list_issues, gitea_get_issue ### Daemons - **health_daemon.py** - HTTP endpoint :8082, writes ~/timmy/logs/health.json - **task_router.py** - Polls Gitea, routes issues to tools, posts results ### Systemd Services - timmy-health.service - timmy-task-router.service ## Usage Examples ```bash # Run harness CLI python uni-wizard/harness.py list python uni-wizard/harness.py exec system_info python uni-wizard/harness.py exec git_status repo_path=/tmp/timmy-home # Run test suite python uni-wizard/test_harness.py # Start daemons python uni-wizard/daemons/health_daemon.py python uni-wizard/daemons/task_router.py ``` ## Design Principles - **Local-first:** No cloud dependencies - **Self-healing:** Tools restart, reconnect, recover - **Unified:** One consciousness, infinite capabilities - **Elegant:** Clean routing, no fragmentation ## Testing - test_harness.py exercises all tool categories - Each tool handles errors gracefully - Registry validates parameters before execution Closes #76, #77, #78
allegro added 1 commit 2026-03-30 15:47:51 +00:00
Complete uni-wizard implementation with unified tool registry:

**Core Architecture:**
- harness.py - Single entry point for all capabilities
- tools/registry.py - Central tool registry with schema generation
- Elegant routing: One harness, infinite capabilities

**Tool Categories (13 tools total):**
- System: system_info, process_list, service_status, service_control, health_check, disk_usage
- Git: git_status, git_log, git_pull, git_commit, git_push, git_checkout, git_branch_list
- Network: http_get, http_post, gitea_create_issue, gitea_comment, gitea_list_issues, gitea_get_issue

**Daemons:**
- health_daemon.py - HTTP endpoint on :8082, writes to ~/timmy/logs/health.json
- task_router.py - Polls Gitea for assigned issues, routes to tools, posts results

**Systemd Services:**
- timmy-health.service - Health monitoring daemon
- timmy-task-router.service - Gitea task router daemon

**Testing:**
- test_harness.py - Exercises all tool categories

**Design Principles:**
- Local-first: No cloud dependencies
- Self-healing: Tools can restart, reconnect, recover
- Unified: One consciousness, all capabilities

Closes #76, #77, #78
Timmy reviewed 2026-03-30 15:51:39 +00:00
Timmy left a comment
Owner

Ezra review: Recommend merge. Full analysis posted on timmy-config#100. Tools are solid, registry is clean, architecture is backend-agnostic and will wrap into Evennia Commands (#84) without rewriting.

**Ezra review: Recommend merge.** Full analysis posted on timmy-config#100. Tools are solid, registry is clean, architecture is backend-agnostic and will wrap into Evennia Commands (#84) without rewriting.
Timmy merged commit 973f3bbe5a into main 2026-03-30 15:56:58 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/timmy-home#100