{name}
{'ACTIVE' if enabled else 'STAGED'}{desc}
=== REPOSITORY GUARD ===
Branch: main
HEAD: ad99844402cf3d27c85cee5223c03cabc79aebca
Existing working-tree entries: 60
No files will be modified.
=== SAFE JSON STRUCTURES ===
--- /home/shire3d/ARMOR/config/agents/registry.json ---
{
"schemaVersion": 1,
"generatedFor": "SHiRE Mini",
"orchestrator": "shire-central",
"agentHubUrl": "http://100.116.93.90:8770",
"agents": [
{
"schemaVersion": 1,
"id": "marketing-boss",
"name": "Marketing Boss",
"category": "Growth and Commerce",
"route": "/agents/marketing-boss",
"localUrl": "http://100.116.93.90:4173",
"description": "Builds SHIRE3D marketing strategy, synchronises approved public product listings and prepares customer-facing campaigns for Ray to review.",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"enabled": true,
"status": "READY_FOR_LOCAL_DRAFTING",
"appPath": "agents/apps/marketing-boss",
"brandBoundary": "SHIRE3D_ONLY",
"modules": [],
"brain": {
"type": "dedicated_scoped_logical_brain",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"centralOrchestrator": "shire-central",
"memoryIsolation": "default",
"crossAgentSharing": "explicit-through-shire"
},
"memory": {
"working": "data/agents/marketing-boss/working",
"persistent": "data/agents/marketing-boss/memory",
"tasks": "data/agents/marketing-boss/tasks",
"evidence": "data/agents/marketing-boss/evidence"
},
"health": {
"reporting": true,
"capabilityEvidenceRequired": true
},
"externalActionApprovalRequired": true,
"networkAccess": "PRIVATE_TAILNET"
},
{
"schemaVersion": 1,
"id": "flexiforge",
"name": "FlexiForge Articulation Agent",
"category": "Design and Manufacture",
"route": "/agents/flexiforge",
"localUrl": null,
"description": "Plans and creates approval-gated articulated or fidget conversions from supplied 3D geometry.",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"enabled": false,
"status": "STAGED_DEPENDENCIES_AND_FORGE_VALIDATION_REQUIRED",
"appPath": "agents/apps/flexiforge",
"brandBoundary": "SHIRE3D",
"modules": [],
"brain": {
"type": "dedicated_scoped_logical_brain",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"centralOrchestrator": "shire-central",
"memoryIsolation": "default",
"crossAgentSharing": "explicit-through-shire"
},
"memory": {
"working": "data/agents/flexiforge/working",
"persistent": "data/agents/flexiforge/memory",
"tasks": "data/agents/flexiforge/tasks",
"evidence": "data/agents/flexiforge/evidence"
},
"health": {
"reporting": true,
"capabilityEvidenceRequired": true
},
"externalActionApprovalRequired": true
},
{
"schemaVersion": 1,
"id": "scanforge",
"name": "ScanForge Scanner Agent",
"category": "Design and Capture",
"route": "/agents/scanforge",
"localUrl": null,
"description": "Coordinates Kinect capture, calibration, reconstruction, measurements and verified scan handoff.",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"enabled": false,
"status": "FRONTEND_READY_SCAN_BRIDGE_AND_HARDWARE_TESTS_REQUIRED",
"appPath": "agents/apps/scanforge",
"brandBoundary": "SHIRE",
"modules": [],
"brain": {
"type": "dedicated_scoped_logical_brain",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"centralOrchestrator": "shire-central",
"memoryIsolation": "default",
"crossAgentSharing": "explicit-through-shire"
},
"memory": {
"working": "data/agents/scanforge/working",
"persistent": "data/agents/scanforge/memory",
"tasks": "data/agents/scanforge/tasks",
"evidence": "data/agents/scanforge/evidence"
},
"health": {
"reporting": true,
"capabilityEvidenceRequired": true
},
"externalActionApprovalRequired": true
},
{
"schemaVersion": 1,
"id": "store-doctor",
"name": "Store Doctor",
"category": "Commerce and Listings",
"route": "/agents/store-doctor",
"localUrl": null,
"description": "Audits SHIRE3D products, listings, pricing, profitability and catalogue health, then recommends specific repairs.",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"enabled": false,
"status": "STAGED_SPECIALIST_LAYER_REQUIRED",
"appPath": "agents/apps/store-doctor-foundation",
"brandBoundary": "SHIRE3D_ONLY",
"modules": [],
"brain": {
"type": "dedicated_scoped_logical_brain",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"centralOrchestrator": "shire-central",
"memoryIsolation": "default",
"crossAgentSharing": "explicit-through-shire"
},
"memory": {
"working": "data/agents/store-doctor/working",
"persistent": "data/agents/store-doctor/memory",
"tasks": "data/agents/store-doctor/tasks",
"evidence": "data/agents/store-doctor/evidence"
},
"health": {
"reporting": true,
"capabilityEvidenceRequired": true
},
"externalActionApprovalRequired": true
},
{
"schemaVersion": 1,
"id": "limbforge",
"name": "LimbForge",
"category": "Prosthetic Cover Design",
"route": "/agents/limbforge",
"localUrl": null,
"description": "Designs non-load-bearing cosmetic prosthetic covers using verified measurements, clearances and safety gates.",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"enabled": false,
"status": "STAGED_BASE44_ADAPTER_REPLACEMENT_REQUIRED",
"appPath": "agents/apps/limbforge",
"brandBoundary": "SHIRE",
"modules": [
"ossiguard"
],
"brain": {
"type": "dedicated_scoped_logical_brain",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"centralOrchestrator": "shire-central",
"memoryIsolation": "default",
"crossAgentSharing": "explicit-through-shire"
},
"memory": {
"working": "data/agents/limbforge/working",
"persistent": "data/agents/limbforge/memory",
"tasks": "data/agents/limbforge/tasks",
"evidence": "data/agents/limbforge/evidence"
},
"health": {
"reporting": true,
"capabilityEvidenceRequired": true
},
"externalActionApprovalRequired": true
},
{
"schemaVersion": 1,
"id": "covercanvas",
"name": "CoverCanvas",
"category": "Artwork and Surface Design",
"route": "/agents/covercanvas",
"localUrl": null,
"description": "Creates reusable cover-independent artwork layers and applies them to validated cover geometry.",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"enabled": false,
"status": "STAGED_BASE44_REMOVAL_AND_GEOMETRY_ENGINE_REQUIRED",
"appPath": "agents/apps/covercanvas",
"brandBoundary": "SHIRE",
"modules": [],
"brain": {
"type": "dedicated_scoped_logical_brain",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"centralOrchestrator": "shire-central",
"memoryIsolation": "default",
"crossAgentSharing": "explicit-through-shire"
},
"memory": {
"working": "data/agents/covercanvas/working",
"persistent": "data/agents/covercanvas/memory",
"tasks": "data/agents/covercanvas/tasks",
"evidence": "data/agents/covercanvas/evidence"
},
"health": {
"reporting": true,
"capabilityEvidenceRequired": true
},
"externalActionApprovalRequired": true
}
],
"privateNetworkAccess": {
"mode": "tailscale_socket_proxy",
"agentHub": "http://100.116.93.90:8770",
"marketingBoss": "http://100.116.93.90:4173",
"publicInternetExposure": false
}
}
--- /home/shire3d/ARMOR/config/agents/modules-registry.json ---
{
"schemaVersion": 1,
"modules": [
{
"schemaVersion": 1,
"id": "dental-studio",
"name": "SHiRE Dental Studio",
"type": "safety_gated_product_module",
"route": "/forge/dental-studio",
"appPath": "modules/dental-studio",
"agent": null,
"status": "STAGED_NOT_CLINICALLY_OR_COMMERCIALLY_RELEASE_READY",
"safety": {
"realPatientData": false,
"clinicalManufacturing": false,
"professionalClaims": false
},
"note": "Installed as a separate product/module, not activated as a specialist Agent."
}
]
}
--- /home/shire3d/ARMOR/data/agents/install-state.json ---
{
"version": "0.1.0",
"installedAt": "2026-07-26T08:21:52.913172+00:00",
"backupDir": "/SHiREVault/Backup/OSBackups/SHIRE-MINI-AGENTS-PRE-INSTALL-20260726T082146Z",
"serviceUser": "ray",
"marketingFirstRunExitCode": 0,
"activeAgents": [
"marketing-boss"
],
"stagedAgents": [
"flexiforge",
"scanforge",
"store-doctor",
"limbforge",
"covercanvas"
],
"modules": [
"dental-studio"
],
"ossiguard": "limbforge-module-not-top-level-agent"
}
--- /home/shire3d/ARMOR/agents/definitions/marketing-boss/agent.manifest.json ---
{
"schemaVersion": 1,
"id": "marketing-boss",
"name": "Marketing Boss",
"category": "Growth and Commerce",
"route": "/agents/marketing-boss",
"localUrl": "http://127.0.0.1:4173",
"description": "Builds SHIRE3D marketing strategy, synchronises approved public product listings and prepares customer-facing campaigns for Ray to review.",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"enabled": true,
"status": "READY_FOR_LOCAL_DRAFTING",
"appPath": "agents/apps/marketing-boss",
"capabilities": [
"catalogue.read_public",
"campaign.plan",
"copy.draft",
"content.schedule_propose",
"performance.analyse"
],
"blockedActions": [
"publish_live",
"spend_money",
"use_credentials_without_consent",
"message_customers",
"change_accounts"
],
"brandBoundary": "SHIRE3D_ONLY",
"modules": [],
"brain": {
"type": "dedicated_scoped_logical_brain",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"centralOrchestrator": "shire-central",
"memoryIsolation": "default",
"crossAgentSharing": "explicit-through-shire"
},
"memory": {
"working": "data/agents/marketing-boss/working",
"persistent": "data/agents/marketing-boss/memory",
"tasks": "data/agents/marketing-boss/tasks",
"evidence": "data/agents/marketing-boss/evidence"
},
"health": {
"reporting": true,
"capabilityEvidenceRequired": true
},
"externalActionApprovalRequired": true
}
--- /home/shire3d/ARMOR/agents/definitions/scanforge/agent.manifest.json ---
{
"schemaVersion": 1,
"id": "scanforge",
"name": "ScanForge Scanner Agent",
"category": "Design and Capture",
"route": "/agents/scanforge",
"localUrl": null,
"description": "Coordinates Kinect capture, calibration, reconstruction, measurements and verified scan handoff.",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"enabled": false,
"status": "FRONTEND_READY_SCAN_BRIDGE_AND_HARDWARE_TESTS_REQUIRED",
"appPath": "agents/apps/scanforge",
"capabilities": [
"scanner.status",
"scan.plan",
"capture.coordinate",
"mesh.handoff"
],
"blockedActions": [
"fake_hardware_ready",
"medical_certification",
"socket_or_implant_geometry",
"forge_auto_unlock"
],
"brandBoundary": "SHIRE",
"modules": [],
"brain": {
"type": "dedicated_scoped_logical_brain",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"centralOrchestrator": "shire-central",
"memoryIsolation": "default",
"crossAgentSharing": "explicit-through-shire"
},
"memory": {
"working": "data/agents/scanforge/working",
"persistent": "data/agents/scanforge/memory",
"tasks": "data/agents/scanforge/tasks",
"evidence": "data/agents/scanforge/evidence"
},
"health": {
"reporting": true,
"capabilityEvidenceRequired": true
},
"externalActionApprovalRequired": true
}
--- /home/shire3d/ARMOR/agents/definitions/store-doctor/agent.manifest.json ---
{
"schemaVersion": 1,
"id": "store-doctor",
"name": "Store Doctor",
"category": "Commerce and Listings",
"route": "/agents/store-doctor",
"localUrl": null,
"description": "Audits SHIRE3D products, listings, pricing, profitability and catalogue health, then recommends specific repairs.",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"enabled": false,
"status": "STAGED_SPECIALIST_LAYER_REQUIRED",
"appPath": "agents/apps/store-doctor-foundation",
"capabilities": [
"listing.audit",
"catalogue.health",
"pricing.review",
"profitability.estimate",
"repair.plan"
],
"blockedActions": [
"change_live_listing_without_approval",
"use_store_credentials_without_consent",
"refund_or_message_customer"
],
"brandBoundary": "SHIRE3D_ONLY",
"modules": [],
"brain": {
"type": "dedicated_scoped_logical_brain",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"centralOrchestrator": "shire-central",
"memoryIsolation": "default",
"crossAgentSharing": "explicit-through-shire"
},
"memory": {
"working": "data/agents/store-doctor/working",
"persistent": "data/agents/store-doctor/memory",
"tasks": "data/agents/store-doctor/tasks",
"evidence": "data/agents/store-doctor/evidence"
},
"health": {
"reporting": true,
"capabilityEvidenceRequired": true
},
"externalActionApprovalRequired": true
}
--- /home/shire3d/ARMOR/agents/definitions/covercanvas/agent.manifest.json ---
{
"schemaVersion": 1,
"id": "covercanvas",
"name": "CoverCanvas",
"category": "Artwork and Surface Design",
"route": "/agents/covercanvas",
"localUrl": null,
"description": "Creates reusable cover-independent artwork layers and applies them to validated cover geometry.",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"enabled": false,
"status": "STAGED_BASE44_REMOVAL_AND_GEOMETRY_ENGINE_REQUIRED",
"appPath": "agents/apps/covercanvas",
"capabilities": [
"artwork.plan",
"mask.create",
"relief.intent",
"placement.propose"
],
"blockedActions": [
"claim_simulation_is_geometry",
"export_unvalidated_cover",
"overwrite_master_artwork"
],
"brandBoundary": "SHIRE",
"modules": [],
"brain": {
"type": "dedicated_scoped_logical_brain",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"centralOrchestrator": "shire-central",
"memoryIsolation": "default",
"crossAgentSharing": "explicit-through-shire"
},
"memory": {
"working": "data/agents/covercanvas/working",
"persistent": "data/agents/covercanvas/memory",
"tasks": "data/agents/covercanvas/tasks",
"evidence": "data/agents/covercanvas/evidence"
},
"health": {
"reporting": true,
"capabilityEvidenceRequired": true
},
"externalActionApprovalRequired": true
}
--- /home/shire3d/ARMOR/agents/definitions/limbforge/agent.manifest.json ---
{
"schemaVersion": 1,
"id": "limbforge",
"name": "LimbForge",
"category": "Prosthetic Cover Design",
"route": "/agents/limbforge",
"localUrl": null,
"description": "Designs non-load-bearing cosmetic prosthetic covers using verified measurements, clearances and safety gates.",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"enabled": false,
"status": "STAGED_BASE44_ADAPTER_REPLACEMENT_REQUIRED",
"appPath": "agents/apps/limbforge",
"capabilities": [
"cover.plan",
"measurement.validate",
"component.envelope",
"manufacturing.prepare"
],
"blockedActions": [
"load_bearing_design",
"socket_design",
"implant_contact_geometry",
"medical_certification",
"export_without_validation"
],
"brandBoundary": "SHIRE",
"modules": [
"ossiguard"
],
"brain": {
"type": "dedicated_scoped_logical_brain",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"centralOrchestrator": "shire-central",
"memoryIsolation": "default",
"crossAgentSharing": "explicit-through-shire"
},
"memory": {
"working": "data/agents/limbforge/working",
"persistent": "data/agents/limbforge/memory",
"tasks": "data/agents/limbforge/tasks",
"evidence": "data/agents/limbforge/evidence"
},
"health": {
"reporting": true,
"capabilityEvidenceRequired": true
},
"externalActionApprovalRequired": true
}
--- /home/shire3d/ARMOR/agents/definitions/flexiforge/agent.manifest.json ---
{
"schemaVersion": 1,
"id": "flexiforge",
"name": "FlexiForge Articulation Agent",
"category": "Design and Manufacture",
"route": "/agents/flexiforge",
"localUrl": null,
"description": "Plans and creates approval-gated articulated or fidget conversions from supplied 3D geometry.",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"enabled": false,
"status": "STAGED_DEPENDENCIES_AND_FORGE_VALIDATION_REQUIRED",
"appPath": "agents/apps/flexiforge",
"capabilities": [
"mesh.inspect",
"joint.suggest",
"clearance.plan",
"forge.prepare"
],
"blockedActions": [
"export_without_second_approval",
"claim_printability_without_tests",
"create_harmful_designs"
],
"brandBoundary": "SHIRE3D",
"modules": [],
"brain": {
"type": "dedicated_scoped_logical_brain",
"fastModel": "qwen3:1.7b",
"deepModel": "qwen3:8b",
"centralOrchestrator": "shire-central",
"memoryIsolation": "default",
"crossAgentSharing": "explicit-through-shire"
},
"memory": {
"working": "data/agents/flexiforge/working",
"persistent": "data/agents/flexiforge/memory",
"tasks": "data/agents/flexiforge/tasks",
"evidence": "data/agents/flexiforge/evidence"
},
"health": {
"reporting": true,
"capabilityEvidenceRequired": true
},
"externalActionApprovalRequired": true
}
=== AGENT HUB STRUCTURE ===
File: /home/shire3d/ARMOR/agents/runtime/agent_hub.py
Lines: 352
--- Classes and functions ---
0040: FunctionDef: now_iso
0044: FunctionDef: read_json
0051: FunctionDef: atomic_write_json
0058: FunctionDef: registry
0063: FunctionDef: agents
0068: FunctionDef: agent_by_id
0072: FunctionDef: contract_for
0080: FunctionDef: http_json
0102: FunctionDef: ollama_models
0109: FunctionDef: model_available
0116: FunctionDef: vault_status
0142: FunctionDef: service_health
0158: FunctionDef: agent_status
0187: FunctionDef: queue_task
0207: FunctionDef: chat
0247: FunctionDef: dashboard
0262: ClassDef: Handler
0334: FunctionDef: main
0265: FunctionDef: log_message
0268: FunctionDef: _send_json
0278: FunctionDef: _read_json
0291: FunctionDef: do_GET
0314: FunctionDef: do_POST
--- Relevant implementation excerpts ---
0001: #!/usr/bin/env python3
0002: """SHiRE Agent Hub candidate: local-only registry, health, scoped chat and task queues."""
0003: from __future__ import annotations
0004:
0005: import argparse
0006: import datetime as dt
0007: import hashlib
0008: import html
0009: import json
0010: import os
0011: from pathlib import Path
0012: import re
0013: import subprocess
0014: import threading
0015: import urllib.error
0016: import urllib.request
0017: from http import HTTPStatus
0018: from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
0019: from typing import Any
0020:
0021: ROOT = Path(os.environ.get("SHIRE_ROOT", "/home/shire3d/ARMOR")).resolve()
0022: REGISTRY_FILE = Path(os.environ.get("SHIRE_AGENT_REGISTRY", ROOT / "config/agents/registry.json"))
0023: AGENTS_ROOT = Path(os.environ.get("SHIRE_AGENTS_ROOT", ROOT / "agents/definitions"))
0024: DATA_ROOT = Path(os.environ.get("SHIRE_AGENT_DATA", ROOT / "data/agents"))
0025: VAULT_ROOT = Path(os.environ.get("SHIRE_VAULT", "/SHiREVault"))
0026: OLLAMA_URL = os.environ.get("OLLAMA_URL", "http://127.0.0.1:11434").rstrip("/")
0027: MARKETING_URL = os.environ.get("MARKETING_BOSS_URL", "http://127.0.0.1:4173").rstrip("/")
0028: HOST = os.environ.get("SHIRE_AGENT_HUB_HOST", "127.0.0.1")
0029: PORT = int(os.environ.get("SHIRE_AGENT_HUB_PORT", "8770"))
0030: MAX_BODY = 1_000_000
0031: LOCK = threading.RLock()
...
0033: SENSITIVE_RE = re.compile(r"(?i)(password|secret|api[_ -]?key|access[_ -]?token|refresh[_ -]?token)\s*[:=]\s*\S+")
0034: EXTERNAL_ACTION_RE = re.compile(
0035: r"(?i)\b(publish|post live|send to customer|message customer|spend|buy ads?|launch ads?|"
0036: r"change credentials?|enter password|connect account|delete|refund|charge|email customers?)\b"
0037: )
...
0056:
0057:
0058: def registry() -> dict[str, Any]:
0059: value = read_json(REGISTRY_FILE, {})
0060: return value if isinstance(value, dict) else {}
0061:
0062:
0063: def agents() -> list[dict[str, Any]]:
0064: value = registry().get("agents", [])
0065: return value if isinstance(value, list) else []
0066:
0067:
0068: def agent_by_id(agent_id: str) -> dict[str, Any] | None:
0069: return next((item for item in agents() if item.get("id") == agent_id), None)
0070:
0071:
0072: def contract_for(agent_id: str) -> str:
0073: path = AGENTS_ROOT / agent_id / "SYSTEM_CONTRACT.md"
0074: try:
0075: return path.read_text(encoding="utf-8")
0076: except OSError:
0077: return "You are a scoped SHiRE specialist. Report missing evidence and stop before external actions."
0078:
0079:
0080: def http_json(url: str, method: str = "GET", payload: Any = None, timeout: float = 4.0) -> tuple[int, Any]:
0081: data = None
0082: headers = {"Accept": "application/json"}
...
0084: data = json.dumps(payload).encode("utf-8")
0085: headers["Content-Type"] = "application/json"
0086: req = urllib.request.Request(url, data=data, method=method, headers=headers)
0087: try:
0088: with urllib.request.urlopen(req, timeout=timeout) as response:
0089: raw = response.read(MAX_BODY)
0090: return response.status, json.loads(raw.decode("utf-8"))
0091: except urllib.error.HTTPError as exc:
0092: raw = exc.read(MAX_BODY)
0093: try:
...
0101:
0102: def ollama_models() -> list[str]:
0103: status, payload = http_json(f"{OLLAMA_URL}/api/tags", timeout=2.0)
0104: if status != 200:
0105: return []
0106: return [str(item.get("name")) for item in payload.get("models", []) if item.get("name")]
...
0114:
0115:
0116: def vault_status() -> dict[str, Any]:
0117: mounted = False
0118: writable = False
0119: filesystem = ""
0120: try:
0121: proc = subprocess.run(["findmnt", "-n", "-o", "FSTYPE", "-T", str(VAULT_ROOT)], capture_output=True, text=True, timeout=3)
0122: mounted = proc.returncode == 0
0123: filesystem = proc.stdout.strip()
...
0146: "service": "shire-agent-hub",
0147: "version": "0.1.0",
0148: "boundTo": f"{HOST}:{PORT}",
0149: "publicInboundPorts": False,
0150: "registry": str(REGISTRY_FILE),
0151: "agentCount": len(agents()),
0152: "ollama": {"url": OLLAMA_URL, "online": bool(installed), "models": installed},
0153: "shireVault": vault_status(),
0154: "time": now_iso(),
0155: }
0156:
0157:
0158: def agent_status(item: dict[str, Any]) -> dict[str, Any]:
0159: installed = ollama_models()
0160: fast = item.get("brain", {}).get("fastModel") or item.get("fastModel")
0161: deep = item.get("brain", {}).get("deepModel") or item.get("deepModel")
0162: status = {
0163: "id": item.get("id"),
0164: "name": item.get("name"),
0165: "declaredStatus": item.get("status"),
0166: "enabled": bool(item.get("enabled")),
0167: "route": item.get("route"),
0168: "localUrl": item.get("localUrl"),
0169: "brain": {
0170: "fastModel": fast,
...
0180: }
0181: if item.get("id") == "marketing-boss":
0182: code, value = http_json(f"{MARKETING_URL}/api/health", timeout=2.0)
0183: status["application"] = {"online": code == 200 and bool(value.get("ok")), "health": value if code else None, "error": value.get("error") if isinstance(value, dict) else None}
0184: return status
0185:
0186:
...
0217: if EXTERNAL_ACTION_RE.search(message):
0218: system += "\nThe current request appears to involve an external, financial, credential-sensitive, destructive or public action. Prepare a proposal only and explicitly mark it AWAITING_RAY_APPROVAL. Do not claim the action happened."
0219: status, result = http_json(
0220: f"{OLLAMA_URL}/api/chat",
0221: method="POST",
0222: payload={
...
0231: timeout=180.0,
0232: )
0233: if status != 200:
0234: raise RuntimeError(f"Ollama request failed: {result.get('error', 'unknown error')}")
0235: text = str((result.get("message") or {}).get("content") or "").strip()
...
0247: def dashboard() -> str:
0248: cards = []
0249: for item in agents():
0250: status = html.escape(str(item.get("status", "UNKNOWN")))
0251: enabled = bool(item.get("enabled"))
0252: name = html.escape(str(item.get("name", item.get("id"))))
0253: desc = html.escape(str(item.get("description", "")))
0254: aid = html.escape(str(item.get("id")))
0255: url = item.get("localUrl")
0256: open_button = f'Open workspace' if url else ''
0257: cards.append(f''' {desc}{name}
{'ACTIVE' if enabled else 'STAGED'}
Dedicated scoped brains coordinated by SHiRE Central. Private Tailnet access enabled.