Workflow Health Check
Perform comprehensive system health check across workflow services.
Inputs
| Input | Type | Default | Purpose |
|---|---|---|---|
fix_issues |
bool | false | Attempt auto-fix |
verbose |
bool | false | Show verbose output |
check_remote |
bool | false | Include SSH checks |
Persona
persona_load("devops")— systemctl, ollama, podman, sqlite, curl, ssh
Workflow
1. Load Persona
persona_load("devops")
2. Known Issues
check_known_issues("systemctl", ""),check_known_issues("podman", ""),check_known_issues("ollama", "")
3. System Info
hostnamectl_status()— hostnametimedatectl_status()— time config
4. Systemd
systemctl_list_units(state="failed")— failed unitssystemctl_status(unit="aa-workflow")— workflow servicesystemctl_is_active(unit="aa-workflow")journalctl_unit(unit="aa-workflow", lines=50)— recent logs (if verbose)
5. Ollama
ollama_status()— AI serviceollama_test()— connectivity and models
6. Cron
cron_list()— configured jobscron_status()— service status
7. Podman
podman_ps()— running containers
8. Database
sqlite_tables(database="workflow.db")sqlite_query(database="workflow.db", query="PRAGMA integrity_check")
9. HTTP
curl_get(url="http://localhost:8080/health")
10. SSH (if check_remote)
ssh_test(host="localhost")
11. Auth
inscope_auth_status()— InScope token
12. Local Checks
workflow_run_local_checks()— project-specific checks
13. Failure Learning
- If service inactive:
learn_tool_fix("systemctl", "service inactive", "aa-workflow not running", "systemctl --user start aa-workflow") - If Ollama connection refused:
learn_tool_fix("ollama", "connection refused", "Ollama not running", "systemctl start ollama")
14. Log
memory_session_log("Workflow health check", "fix_issues={}, verbose={}")
MCP Tools
systemctl_status,systemctl_is_active,systemctl_list_units,journalctl_unitollama_status,ollama_testcron_list,cron_statuspodman_ps,sqlite_query,sqlite_tablescurl_get,ssh_test,inscope_auth_statushostnamectl_status,timedatectl_status,workflow_run_local_checks
Converted and distributed by TomeVault — claim your Tome and manage your conversions.