Universal AI Automation System
Murphy is an ambitious, deeply complex AI automation system. It is currently developed and maintained by a single developer (@IKNOWINOT). While the architecture is comprehensive and the test suite covers thousands of functions, not everything works as intended. Emergent bugs are still being discovered and classified across the 1,230+ module surface area.
What this means for you:
- π Beta-quality software β core automation, integrations, and governance pipelines are functional. Industrial/OT connectors require hardware. Security hardening is complete for the authentication and CORS layers but should be verified before internet-facing deployment.
- π Emergent bugs β complex interactions between modules can produce unexpected behavior. Edge cases are actively being catalogued.
- π§ Self-healing capabilities β Murphy includes a self-improvement engine, bug pattern detector, and correction loop.
- π Test coverage is extensive β 806 test files with 24,577 test functions. CI runs automatically on push/PR via GitHub Actions.
- π€ Contributions welcome β see CONTRIBUTING.md.
Bottom line: This system is genuinely powerful β it can automate an entire business stack from intake to delivery, manage SCADA/industrial systems, orchestrate content creation pipelines, and run AI agent swarms. Review and configure credentials before production deployment.
Murphy is a complete, operational AI automation system that can automate any business type, including its own operations. It requires security hardening before production deployment.
β
Describe β Execute - Tell Murphy what you want in plain English; it builds the plan, governs it, and runs it
β
Universal Automation - Automate anything (factory, content, data, system, agent, business)
β
Self-Integration - Add GitHub repos, APIs, hardware automatically
β
Self-Improvement - Learns from corrections, trains shadow agent
β
Self-Operation - Runs Inoni LLC autonomously
β
Human-in-the-Loop - Safety approval for all integrations
β
Wingman Protocol - Executor/validator pairing for every task
β
Causality Sandbox - What-if scenario simulation and causal reasoning
β
HITL Graduation - Structured human-to-automation handoff pipeline
β
Orchestrators - Safety, efficiency, and supply chain orchestration
β
Container Deployment - Docker and Kubernetes configs included (security hardening required before production)
β
Permutation Calibration - Learn optimal information ordering for each domain (docs)
Recently added: Permutation Calibration System (Mode A exploration β Mode B procedural execution with drift detection), Room LLM Brain (MSS-aligned MAGNIFY/SIMPLIFY/SOLIDIFY in every room), World Knowledge Calibrator (algebraic sensor anchors), Agentic Communications Router (agent-to-agent messaging), Bot Room Registry (multi-room persona mapping), Rosetta Platform State (3-layer platform/agent/combined copy system), Optimal Routing Wiring (TriageβLibrarianβCausalityβRubixβGoldenPath pipeline), Room Cognitive Roles (MSS role per room)
Coming in #136: Drawing Engine, Credential Gate, Sensor Fusion, Osmosis Engine, Autonomous Perception, Wingman Evolution, Engineering Toolbox
Murphy's hero flow inverts the traditional automation paradigm β you describe what you want; Murphy builds it.
1. DESCRIBE: "Monitor my sales data and send a weekly summary to Slack"
2. EXECUTE: Murphy builds a governed DAG workflow with safety gates
3. REFINE: Open the visual canvas to tweak any step (optional)
No drag-and-drop. No connector wiring. No trigger logic. Just a plain English sentence.
Murphy uses ai_workflow_generator.py to convert your description into a structured workflow, nocode_workflow_terminal.py as the Librarian-powered conversation interface, and workflow_canvas.html as the optional visual refinement layer once the plan is generated.
π For comprehensive documentation on voice/typed command automation, see:
- Generative Automation Presets β Complete guide to natural language workflow generation, industry presets, role-based execution, and human-in-the-loop governance
See the full Roadmap for the sprint plan that takes this from prototype to production.
Copy-paste this single command β it clones, installs, and configures everything:
curl -fsSL https://raw.githubusercontent.com/IKNOWINOT/Murphy-System/main/install.sh | bashThen start Murphy:
murphy start # Start in foreground
murphy start -d # Start as background daemon
murphy status # Check health
murphy stop # Stop daemon
murphy help # See all commandsNo API key required β the onboard LLM works out of the box. Add a DeepInfra API key to
.envfor enhanced quality (optional).
If you prefer not to pipe to bash:
git clone https://github.com/IKNOWINOT/Murphy-System.git
cd Murphy-System
bash setup_and_start.sh # Linux / macOSgit clone https://github.com/IKNOWINOT/Murphy-System.git
cd Murphy-System
setup_and_start.bat &REM WindowsThe script handles the virtual environment, installs all dependencies (including extras), configures .env, and lets you choose between the backend server or the terminal UI.
π Documentation:
- Complete Guide: GETTING_STARTED.md
- Quick Start: Murphy System/MURPHY_1.0_QUICK_START.md
- API Reference: Murphy System/API_DOCUMENTATION.md
- Deployment Guide: Murphy System/DEPLOYMENT_GUIDE.md
# Clone and enter
git clone https://github.com/IKNOWINOT/Murphy-System.git
cd Murphy-System
# Option A: Use the setup script (recommended)
bash setup_and_start.sh
# Option B: Manual setup
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements_core.txt # Fast install (~30 seconds)
# OR: pip install -r requirements.txt # Full install (includes ML, Matrix, etc.)
cp .env.example .env
python -m src.runtime.boot # Starts on http://localhost:8000curl http://localhost:8000/api/health
# β {"status": "healthy", ...}Murphy System supports two runtime modes:
- Monolith (default): Loads all modules. Use for full system testing.
- Tiered: Loads only what your team needs. Faster startup, lower memory.
Set MURPHY_RUNTIME_MODE=tiered in .env to try tiered mode.
See docs/TIERED_RUNTIME.md for details.
Methodology: Each percentage reflects code-measured reality, not design intent. Aspirational items are tracked in ROADMAP.md.
| Area | % | Measured Status |
|---|---|---|
| Core automation pipeline (Describe β Execute) | 88% | Pipeline structured and tested (19/19 critical path tests pass). Real-user and production load testing remain. |
| Execution wiring (gate + swarm + orchestrator) | 93% | Wired and unit-tested. 49 integration tests pass. Real-user validation remains. |
| Deterministic + LLM routing | 93% | Functional. LLM key rotation/fallback hardening in progress. |
| Persistence + replay | 68% | Default is MURPHY_DB_MODE=stub (in-memory). PostgreSQL and SQLite backends wired but require infra setup (DATABASE_URL). |
| Multi-channel delivery | 60% | EmailDeliveryAdapter builds SMTP payloads but does not send (no network I/O). Slack works when connector configured. Webhook functional. Needs: real SMTP/SendGrid wiring. |
| Compliance validation | 82% | Framework complete (GDPR/SOC 2/HIPAA/PCI-DSS sensors). Formal attestation revenue-gated. |
| Operational automation | 83% | Phases 2β8 implemented. Cross-phase integration testing incomplete. |
| Test coverage | 82% | 806 test files, 24,577 test functions defined. Many skips for optional deps. CI uses single Python 3.12. |
| UI pages | 72% | 62 HTML files exist. Core terminal UIs (10) are polished. Feature UIs (boards, CRM, dashboards) 700β1400 lines each. Some pages are thin skeletons. No real user testing performed. |
| Security hardening | 78% | Auth/CORS/CSP/JWT complete. E2EE is stub-only (UNENCRYPTED_STUB fallback) β real Megolm encryption not implemented. |
| Code quality | 88% | Ruff lint clean. 90-category audit complete. Minor residuals in progress. |
| Management parity (Phases 1β12) | 90% | Phases 1β11 have real backend code. Phase 12 (Mobile) has backend API only β no native iOS/Android app. |
| CI/CD pipeline | 87% | Single Python 3.12 (no matrix). Ruff 0 errors. Coverage upload unconditional. |
| Documentation accuracy | 65% | Stats table was 3Γ stale. Multiple inconsistent counts across README sections. This update corrects all figures to code-measured values. |
| E2E Hero Flow | 82% | 49 integration tests pass. Real-user validation and production load testing remain. |
| Librarian Command Coverage | 100% | 593 catalog entries covering all module_manifest commands. Tested. |
| Librarian Triage Escalation | 100% | Mode-aware (ASK/ONBOARDING/PRODUCTION/ASSISTANT). 57 tests. |
| Weighted overall | ~80% | See Production Readiness Audit |
Test status: 806 test files with 24,577 test functions defined. Skipped tests require optional packages (Flask, Textual, torch). CI pipeline runs on every push/PR β see Test Status below.
Murphy-System/
βββ README.md β You are here
βββ GETTING_STARTED.md β Setup guide
βββ CONTRIBUTING.md β Contribution guidelines
βββ CODE_OF_CONDUCT.md β Community standards
βββ SECURITY.md β Vulnerability reporting
βββ CHANGELOG.md β Version history
βββ LICENSE β BSL 1.1 (β Apache 2.0 after 4 yr)
βββ install.sh β One-line CLI installer
βββ .gitignore
βββ requirements.txt
βββ scripts/
β βββ transfer_archive.sh β Archive transfer tool
βββ docs/
β βββ screenshots/ β Verification screenshots
βββ Murphy System/ β ACTIVE SYSTEM
βββ murphy β CLI tool (start/stop/status/β¦)
βββ murphy_system_1.0_runtime.py β Single production runtime
βββ src/ β 1,230 named modules across 86 packages (1,346 .py files total)
βββ tests/ β 806 test files (24,577 test functions)
βββ bots/ β 108 bot modules
βββ documentation/ β Structured API/user docs
βββ docs/ β Technical docs
βββ k8s/ β Kubernetes manifests
βββ monitoring/ β Prometheus config
βββ scripts/ β Operational scripts
βββ *.html β 62 web interfaces (10 core terminal UIs + feature pages + marketing)
βββ USER_MANUAL.md β Comprehensive user manual
βββ BUSINESS_MODEL.md β Open-core editions
βββ README.md, API_DOCUMENTATION.md, DEPLOYMENT_GUIDE.md
βββ Dockerfile, docker-compose.yml β Container deployment
Archive: Legacy versions and artifacts have been moved to iknowinot/murphy-system-archive to keep downloads lean.
murphy_system_1.0_runtime.py is the single production runtime.
How to run:
bash setup_and_start.shAvailable endpoints: /api/health, /api/status, /api/info, /api/execute, and automation endpoints under /api/automation/...
Key runtime capabilities:
- Deterministic and LLM routing via policy-driven routing engine
- Multi-channel delivery (document, email, chat, voice, translation)
- Gate-based execution wiring with EXECUTIVE/OPERATIONS/QA/HITL/COMPLIANCE/BUDGET gates
- Two-phase and async orchestration with swarm execution support
- Persistence and replay via JSON, SQLite, or PostgreSQL backends with Alembic migrations
- Event backbone with pub/sub, retry, circuit breakers, and dead letter queue
- Self-improvement engine with pattern extraction and confidence calibration
- Operational SLO tracking (success rates, latency percentiles)
- Compliance validation (GDPR/SOC 2/HIPAA/PCI-DSS) with regional support
- RBAC governance with shadow agent integration
- Per-request ownership verification and session context enforcement
- PII detection and automated log sanitization (8 pattern types)
- Per-bot and per-swarm resource quotas with auto-suspension
- Swarm communication loop detection (DFS cycle detection, rate limiting)
- Cryptographic bot identity verification (HMAC-SHA256 signing)
- Behavioral anomaly detection (z-score analysis, resource spikes, API patterns)
- Unified security dashboard with event correlation and compliance reporting
- 1,230 named modules across 86 packages; 24,577 test functions defined
- Neon terminal UI across 62 web interfaces
Architect UI: serve Murphy System/terminal_architect.html with python -m http.server 8090 and open http://localhost:8090/Murphy%20System/terminal_architect.html?apiPort=8000
Use this table as the primary lookup for active modules, docs, and entry points.
| Domain | Location | Purpose | Entry Points |
|---|---|---|---|
| Runtime API | Murphy System/murphy_system_1.0_runtime.py |
Runtime 1.0 API server | bash setup_and_start.sh, GET /api/status |
| Role-based UIs | Murphy System/terminal_architect.html |
Architect planning + gate review UI | python -m http.server 8090, ?apiPort=8000 |
| Operations UI | Murphy System/terminal_integrated.html |
Operations execution UI | python -m http.server 8090, ?apiPort=8000 |
| Worker UI | Murphy System/terminal_worker.html |
Delivery worker UI | python -m http.server 8090, ?apiPort=8000 |
| Legacy UI Assets | Murphy System/murphy_ui_integrated.html |
Legacy UI assets (scheduled for archive) | Open directly for reference |
| Tests | Murphy System/tests/ |
Dynamic chain, gate, and capability tests | python -m pytest |
| Subsystem | Primary Module | Notes |
|---|---|---|
| Gate + Confidence | src/confidence_engine/ |
G/D/H + 5D uncertainty |
| Learning + Corrections | src/learning_engine/ |
Shadow agent training pipeline |
| Integration Engine | src/integration_engine/ |
GitHub ingestion + HITL approvals |
| Swarm System | src/true_swarm_system.py |
Dynamic swarm generation (wiring ongoing) |
| Governance | src/governance_framework/ |
Scheduler + authority bands |
| Persistence | src/persistence_manager.py, src/db.py |
JSON, SQLite, PostgreSQL backends; Alembic migrations |
| Event Backbone | src/event_backbone.py |
Durable queues, retry, circuit breakers |
| Delivery Adapters | src/delivery_adapters.py |
Document/email/chat/voice/translation |
| Gate Execution | src/gate_execution_wiring.py |
Runtime gate enforcement + policy modes |
| Self-Improvement | src/self_improvement_engine.py |
Feedback loops, calibration, remediation |
| SLO Tracker | src/operational_slo_tracker.py |
Success rate, latency percentiles, SLO compliance |
| Automation Scheduler | src/automation_scheduler.py |
Multi-project priority scheduling + load balancing |
| Capability Map | src/capability_map.py |
AST-based module inventory, gap analysis, remediation |
| Compliance Engine | src/compliance_engine.py |
GDPR/SOC2/HIPAA/PCI-DSS sensors, HITL approvals |
| RBAC Governance | src/rbac_governance.py |
Multi-tenant RBAC, shadow agent governance |
| Ticketing Adapter | src/ticketing_adapter.py |
ITSM lifecycle, remote access, patch/rollback |
| Wingman Protocol | src/wingman_protocol.py |
Executor/validator pairing, deterministic validation |
| Runtime Profile Compiler | src/runtime_profile_compiler.py |
Onboarding-to-profile, safety/autonomy controls |
| Governance Kernel | src/governance_kernel.py |
Non-LLM enforcement, budget tracking, audit emission |
| Control Plane Separation | src/control_plane_separation.py |
Planning/execution plane split, mode switching |
| Durable Swarm Orchestrator | src/durable_swarm_orchestrator.py |
Budget-aware swarms, idempotency, circuit breaker |
| Golden Path Bridge | src/golden_path_bridge.py |
Execution path capture, replay, similarity matching |
| Org Chart Enforcement | src/org_chart_enforcement.py |
Role-bound permissions, escalation chains, cross-dept arbitration |
| Shadow Agent Integration | src/shadow_agent_integration.py |
Shadow-agent org-chart parity, account/user controls |
| Triage Rollcall Adapter | src/triage_rollcall_adapter.py |
Capability rollcall before swarm expansion, candidate ranking |
| Rubix Evidence Adapter | src/rubix_evidence_adapter.py |
Deterministic evidence lane: CI, Bayesian, Monte Carlo, forecast |
| Semantics Boundary Controller | src/semantics_boundary_controller.py |
Belief-state, risk/CVaR, RVoI questions, invariance, verification-feedback |
| Bot Governance Policy Mapper | src/bot_governance_policy_mapper.py |
Legacy bot quota/budget/stability β Murphy runtime profiles |
| Bot Telemetry Normalizer | src/bot_telemetry_normalizer.py |
Triage/rubix bot events β Murphy observability schema |
| Legacy Compatibility Matrix | src/legacy_compatibility_matrix.py |
Legacy orchestration bridge hooks, migration paths, governance validation |
| HITL Autonomy Controller | src/hitl_autonomy_controller.py |
HITL arming/disarming, confidence-gated autonomy, cooldown management |
| Freelancer Validator | src/freelancer_validator/ |
Freelance-platform HITL: Fiverr/Upwork adapters, org budgets, criteria scoring, credential verification |
| Compliance Region Validator | src/compliance_region_validator.py |
Region-specific compliance validation, cross-border checks, data residency |
| Observability Summary Counters | src/observability_counters.py |
Behavior fix vs coverage tracking, improvement velocity, closed-loop metrics |
| Deterministic Routing Engine | src/deterministic_routing_engine.py |
Policy-driven deterministic/LLM/hybrid routing, fallback promotion, parity |
| Platform Connector Framework | src/platform_connector_framework.py |
90+ platform connectors (Slack, Jira, Salesforce, GitHub, AWS, OpenAI, Anthropic, Mailchimp, Shopify, Stripe, SCADA/Modbus, BACnet, OPC UA, Building Automation, Energy Management, Additive Manufacturing, and more) |
| Workflow DAG Engine | src/workflow_dag_engine.py |
DAG workflows: topological sort, parallel groups, conditional branching |
| Automation Type Registry | src/automation_type_registry.py |
16 templates across 11 categories (IT, DevOps, marketing, etc.) |
| API Gateway Adapter | src/api_gateway_adapter.py |
Rate limiting, auth, circuit breaker, caching, webhook dispatch |
| Webhook Event Processor | src/webhook_event_processor.py |
10 webhook sources, signature verification, event normalization |
| Self-Automation Orchestrator | src/self_automation_orchestrator.py |
Prompt chain, task queue, gap analysis, AI collaborator mode |
| Plugin/Extension SDK | src/plugin_extension_sdk.py |
Third-party plugin lifecycle, manifest validation, sandboxed execution |
| AI Workflow Generator | src/ai_workflow_generator.py |
Natural language β DAG workflows, template matching, keyword inference |
| Workflow Template Marketplace | src/workflow_template_marketplace.py |
Publish, search, install, rate community workflow templates |
| Cross-Platform Data Sync | src/cross_platform_data_sync.py |
Bidirectional sync, field mapping, conflict resolution, change tracking |
| Digital Asset Generator | src/digital_asset_generator.py |
Unreal/Maya/Blender/Fortnite/Unity/Godot asset pipelines, sprite sheets, texture atlases |
| Rosetta Stone Heartbeat | src/rosetta_stone_heartbeat.py |
Executive-origin org-wide pulse propagation, tier translators, sync verification |
| Content Creator Platform Modulator | src/content_creator_platform_modulator.py |
YouTube/Twitch/OnlyFans/TikTok/Patreon/Kick/Rumble connectors, cross-platform syndication |
| ML Strategy Engine | src/ml_strategy_engine.py |
Anomaly detection, forecasting, classification, recommendation, clustering, Q-learning RL, A/B testing, ensemble, online learning |
| Agentic API Provisioner | src/agentic_api_provisioner.py |
Self-provisioning API with OpenAPI spec generation, webhook management, module introspection, self-healing health monitoring |
| Video Streaming Connector | src/video_streaming_connector.py |
Twitch/YouTube Live/OBS/vMix/Restream/StreamYard/Streamlabs/Kick Live/Facebook Live with simulcasting |
| Remote Access Connector | src/remote_access_connector.py |
TeamViewer/AnyDesk/RDP/VNC/SSH/Parsec/Chrome Remote Desktop/Guacamole/Splashtop |
| UI Testing Framework | src/ui_testing_framework.py |
12 testing capabilities: visual regression, interactive components, E2E, performance, cross-browser, mobile gestures, dark mode, security, i18n |
| Security Hardening Config | src/security_hardening_config.py |
Input sanitization (XSS/SQLi/path traversal), CORS lockdown, token-bucket rate limiting, CSP headers, API key rotation, audit logging, session security (MFA, concurrent limits) |
| Authorization Enhancer | src/security_plane/authorization_enhancer.py |
Per-request ownership verification, session context enforcement, audit trail |
| Log Sanitizer | src/security_plane/log_sanitizer.py |
PII detection (8 types), automated redaction, retroactive log sanitization |
| Bot Resource Quotas | src/security_plane/bot_resource_quotas.py |
Per-bot quotas, swarm aggregate limits, auto-suspension |
| Swarm Communication Monitor | src/security_plane/swarm_communication_monitor.py |
Message graph tracking, DFS cycle detection, rate limiting, pattern detection |
| Bot Identity Verifier | src/security_plane/bot_identity_verifier.py |
HMAC-SHA256 signing, message verification, identity registry, key revocation |
| Bot Anomaly Detector | src/security_plane/bot_anomaly_detector.py |
Z-score anomaly detection, resource spikes, API pattern analysis |
| Security Dashboard | src/security_plane/security_dashboard.py |
Unified event view, correlation, compliance reports, escalation |
| Self-Introspection | src/self_introspection_module.py |
Runtime self-analysis and codebase scanning |
| Self-Codebase Swarm | src/self_codebase_swarm.py |
Autonomous BMS spec generation and RFP parsing |
| Cut Sheet Engine | src/cutsheet_engine.py |
Manufacturer data parsing and wiring diagram generation |
| Visual Swarm Builder | src/visual_swarm_builder.py |
Visual pipeline construction for swarm workflows |
| CEO Branch Activation | src/ceo_branch_activation.py |
Top-level autonomous decision-making and planning |
| Production Assistant Engine | src/production_assistant_engine.py |
Request lifecycle and deliverable gate validation |
Progress tracking: All security enhancements are complete. All RFI items (RFI-001..RFI-015) have been resolved. See SECURITY.md for vulnerability reporting.
Murphy can automate any business type once the relevant integrations/adapters are configured:
| Type | Examples | Use Cases |
|---|---|---|
| Factory/IoT | Sensors, actuators, HVAC, BACnet, Modbus, OPC UA | Temperature control, production lines, building automation |
| Building Automation | Johnson Controls, Honeywell, Siemens, Alerton, KNX, DALI | HVAC optimization, lighting, energy management |
| Manufacturing | ISA-95, MTConnect, PackML, MQTT/Sparkplug B, IEC 61131 | Production scheduling, PLC integration, quality management |
| Energy Management | OpenBlue, EcoStruxure, EnergyCAP, ENERGY STAR | Energy analytics, demand response, sustainability reporting |
| Content | Blog posts, social media | Publishing, marketing automation |
| Creator Platforms | YouTube, Twitch, OnlyFans, TikTok, Patreon, Kick, Rumble | Content scheduling, cross-platform syndication, monetization, analytics |
| Messaging | WhatsApp, Telegram, Signal, Snapchat, WeChat, LINE, KakaoTalk | Secure messaging, bot automation, group/channel management, payments |
| Business Services | ZenBusiness, Google Business Messages | Business formation, compliance, registered agent, business messaging |
| Digital Assets | Unreal Engine, Maya, Blender, Fortnite Creative, Unity, Godot | Game assets, sprite sheets, 3D models, texture atlases |
| Data | Databases, analytics | ETL, reporting, insights |
| System | Commands, DevOps | Infrastructure, deployments |
| Agent | Swarms, reasoning | Complex tasks, decision-making |
| Business | Sales, marketing, finance | Lead gen, content, invoicing |
Murphy can add integrations automatically:
# Add Stripe integration
POST /api/integrations/add
{
"source": "https://github.com/stripe/stripe-python",
"category": "payment-processing"
}
# Murphy will:
# 1. Clone and analyze repository β
# 2. Extract capabilities β
# 3. Generate module/agent β
# 4. Test for safety β
# 5. Ask for approval (HITL) β
# 6. Load if approved β
Result: Integration time depends on repository size, dependencies, and safety review.
Note: Integration endpoints require optional dependencies and external credentials to run end-to-end.
Murphy learns from corrections:
# Submit correction
POST /api/corrections/submit
{
"task_id": "abc123",
"correction": "The correct output should be..."
}
# Murphy will:
# 1. Capture correction β
# 2. Extract patterns β
# 3. Train shadow agent β
# 4. Improve future performance β
Result: Designed to improve over time as corrections accumulate (measured results vary by workflow).
Murphy runs Inoni LLC autonomously via configurable automation templates:
| Engine | Capabilities | Notes |
|---|---|---|
| Sales | Lead gen, qualification, outreach | Automated workflows included |
| Marketing | Content, social media, SEO | Content automation support |
| R&D | Bug detection, fixes, deployment | R&D automation hooks |
| Business | Finance, support, project mgmt | Workflow templates included |
| Production | Releases, QA, monitoring | Release/monitoring automation |
The Meta-Case: Murphy improves Murphy (R&D engine fixes Murphy's bugs automatically).
Automation reality: Runtime 1.0 can automate workflows once integrations, credentials, and adapters are configured. Out-of-the-box it provides orchestration, templates, and safety gates rather than full autonomous operation.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MURPHY SYSTEM 1.0 β
β Universal Control Plane β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββ΄ββββββββββββββββββ
β β
βββββββββββββββββ ββββββββββββββββ
β PHASE 1: β β PHASE 2: β
β Setup β β Execute β
β (Generative) β β (Production) β
βββββββββββββββββ ββββββββββββββββ
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β MODULAR ENGINES β
β Sensor | Actuator | Database | API | Content β
β Command | Agent | Compute | Reasoning β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β CORE SUBSYSTEMS β
β Murphy Validation | Confidence Engine β
β Learning Engine | Supervisor System β
β HITL Monitor | Integration Engine β
β TrueSwarmSystem | Governance Framework β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
| Component | Description | Files |
|---|---|---|
| Original Runtime | Base Murphy system | Hundreds of Python files |
| Phase 1-5 | Forms, validation, correction, learning | Dozens of files |
| Control Plane | Universal automation engine | 7 engines |
| Business Automation | Inoni self-operation | 5 engines |
| Integration Engine | GitHub ingestion with HITL | 6 components |
| Orchestrator | Two-phase execution | 1 file |
| Final Runtime | Complete system | 1 file |
| Paper Trading Engine | Simulated crypto trading + 9 strategies | 7+ files |
Murphy includes a full paper-trading simulation engine for personal crypto trading research:
| Module | Purpose |
|---|---|
src/paper_trading_engine.py |
Portfolio simulator: slippage, fees, stop-loss, P&L metrics |
src/strategy_templates/ |
9 strategy templates (momentum, mean reversion, breakout, scalping, DCA, grid, trajectory, sentiment, arbitrage) |
src/cost_calibrator.py |
Detects hidden costs (spread, slippage, fees) and auto-adjusts estimates |
src/error_calibrator.py |
Tracks prediction vs actual divergence; triggers recalibration when bias is detected |
src/backtester.py |
Historical backtesting via CSV or yfinance; multi-strategy comparison |
src/paper_trading_routes.py |
FastAPI routes at /api/trading/* |
paper_trading_dashboard.html |
Dashboard at /ui/paper-trading |
Note: All trading is PAPER/SIMULATED only in this phase. No real money is moved. The system is for personal use β see the graduation system (PR-3) before enabling live trading.
- MURPHY_1.0_QUICK_START.md - Get started in 5 minutes
- MURPHY_SYSTEM_1.0_SPECIFICATION.md - Complete specification
- INTEGRATION_ENGINE_COMPLETE.md - Integration documentation
- API Documentation - Interactive docs at /docs
POST /api/execute
{
"task_description": "Monitor temperature and adjust HVAC to maintain 72Β°F",
"task_type": "automation"
}POST /api/automation/marketing/create_content
{
"parameters": {
"content_type": "blog_post",
"topic": "AI Automation",
"length": "1500 words"
}
}POST /api/automation/sales/generate_leads
{
"parameters": {
"target_industry": "SaaS",
"company_size": "10-50"
}
}POST /api/integrations/add
{
"source": "https://github.com/stripe/stripe-python",
"category": "payment-processing"
}- β
Centralized auth on all API servers (
flask_security.py,fastapi_security.py) - β API key authentication on all routes (health endpoints exempt)
- β
CORS origin allowlist (no wildcards) β
MURPHY_CORS_ORIGINSenv var - β Rate limiting per client IP (token-bucket, 60 req/min default)
- β Security response headers (HSTS, CSP, X-Frame-Options, etc.)
- β Input sanitization (XSS, SQL injection, path traversal detection)
- β Tenant isolation in confidence engine (thread-safe per-tenant graphs)
- β IDOR protection on execution orchestrator (ownership checks on pause/resume/abort)
- β Input validation on execution orchestrator (authority level allowlist, safe ID patterns)
- β
Environment-based debug mode (
MURPHY_ENV, no hardcodeddebug=True)
- β Range-based content inspection for artifacts, intake files, and deliverables
- β Content manifest with section index, line count, byte size, SHA-256 checksum
- β
Head/tail/range/section projection modes (analogous to
view_range) - β Structured content key-path navigation with depth truncation
- β Content search with configurable context lines
- β Tenant-isolated access logging and audit trail
- β
REST API:
/viewport/manifest,/viewport/project,/viewport/search - β Content resolver bridging MAS planes, Persistence Manager, and System Librarian
- β Every integration requires approval
- β LLM-powered risk analysis
- β Clear recommendations
- β No automatic commits
- β G/D/H Formula (Goodness, Domain, Hazard)
- β 5D Uncertainty (UD, UA, UI, UR, UG)
- β Murphy Gate (threshold validation)
- β Safety Score (0.0-1.0)
- β Includes GDPR-aligned controls (requires review)
- β Includes SOC 2 Type II-aligned controls (requires review)
- β Includes HIPAA-aligned controls (requires review)
- β Includes PCI DSS-aligned controls (requires review)
- β
Per-request ownership verification with session context enforcement (
authorization_enhancer.py) - β
PII detection and automated log sanitization β 8 pattern types (
log_sanitizer.py) - β
Per-bot and per-swarm resource quotas with auto-suspension (
bot_resource_quotas.py) - β
Swarm communication loop detection β DFS cycle detection, rate limiting (
swarm_communication_monitor.py) - β
Cryptographic bot identity verification β HMAC-SHA256 signing and revocation (
bot_identity_verifier.py) - β
Behavioral anomaly detection β z-score analysis, resource spikes, API patterns (
bot_anomaly_detector.py) - β
Unified security dashboard with event correlation and compliance reporting (
security_dashboard.py)
| Metric | Specification |
|---|---|
| API Throughput | Targeted 1,000+ req/s |
| Task Execution | Targeted 100+ tasks/s |
| Integration Time | Targeted <5 min per repo |
| API Latency | Targeted <100ms p95 |
| Uptime Target | 99.9% target |
| Error Rate | Targeted <1% |
bash setup_and_start.shDockerfile, docker-compose.yml, and k8s/ manifests are included in Murphy System/ as active deployment options. Security hardening is required before production use.
# From the Murphy System/ directory
docker build -t murphy-system .
docker compose up -d
# Kubernetes
kubectl apply -f k8s/Note: Review and harden the container configuration before deploying to a production environment.
The Murphy System Runtime exposes a FastAPI-based REST API. Start the server with bash setup_and_start.sh, then visit http://localhost:8000/docs for interactive documentation.
| Method | Path | Auth Required | Description |
|---|---|---|---|
GET |
/api/health |
No | Health check β returns system status |
GET |
/api/status |
Yes | Full system status and metrics |
GET |
/api/info |
Yes | System info (version, modules, capabilities) |
GET |
/api/system/info |
Yes | Detailed system configuration info |
POST |
/api/execute |
Yes | Execute a task via the universal control plane |
POST |
/api/forms/plan-upload |
Yes | Upload a pre-existing execution plan |
POST |
/api/forms/plan-generation |
Yes | Generate a plan from natural language description |
POST |
/api/forms/task-execution |
Yes | Execute a task with structured validation |
POST |
/api/forms/validation |
Yes | Validate an execution packet |
POST |
/api/forms/correction |
Yes | Submit a correction for learning loop |
GET |
/api/forms/submission/{id} |
Yes | Retrieve a form submission by ID |
GET |
/api/llm/status |
Yes | LLM provider status and availability |
GET |
/api/librarian/status |
Yes | System Librarian knowledge-base status |
GET |
/api/onboarding/status |
Yes | Onboarding workflow status |
POST |
/api/ucp/execute |
Yes | Universal Control Protocol execution |
GET |
/api/integrations/{status} |
Yes | List integrations filtered by status |
Authentication: Production mode (
MURPHY_ENV=production) requiresAuthorization: Bearer <key>orX-API-Key: <key>header on all non-health endpoints. Development mode allows unauthenticated access. See [Murphy System/documentation/api/AUTHENTICATION.md](Murphy System/documentation/api/AUTHENTICATION.md) for full details.
Murphy System supports two complementary configuration mechanisms. Environment variables always take precedence.
# Edit main settings (LLM provider, thresholds, safety levels, logging):
nano "Murphy System/config/murphy.yaml"
# Edit engine settings (swarm, gates, orchestrator, self-healing):
nano "Murphy System/config/engines.yaml"See Murphy System/config/murphy.yaml.example and Murphy System/config/engines.yaml.example for fully-annotated documentation of every setting.
Copy Murphy System/.env.example to Murphy System/.env and fill in the values. Environment variables override YAML defaults.
| Variable | Default | Description |
|---|---|---|
DEEPINFRA_API_KEY |
(none) | DeepInfra API key β enables Mixtral/Llama/Gemma cloud LLMs. Optional: the onboard local LLM (phi3 via Ollama) works without this. |
MURPHY_LLM_PROVIDER |
local |
LLM provider to use: local, deepinfra, openai, or anthropic. |
OLLAMA_MODEL |
phi3 |
Default Ollama model. phi3 is pulled automatically by the deploy workflow. |
OLLAMA_BASE_URL |
http://localhost:11434 |
Ollama API endpoint. |
MURPHY_ENV |
development |
Runtime environment: development (auth optional) or production (auth required). |
MURPHY_API_KEYS |
(none) | Comma-separated API keys for request authentication in production mode. |
MURPHY_CORS_ORIGINS |
http://localhost:3000,... |
Comma-separated list of allowed CORS origins. |
MURPHY_RATE_LIMIT_RPM |
60 |
Maximum requests per minute per client IP (token-bucket rate limiter). |
MURPHY_RATE_LIMIT_BURST |
20 |
Maximum burst size for rate limiter. |
Secrets (API keys, passwords, tokens) must never be placed in YAML files. Use
.env(development) or a secrets manager (production).
| Document | Description |
|---|---|
| Quick Start | Get started in 5 minutes |
| Roadmap | Public revenue-first sprint plan |
| Specification | Complete system spec |
| API Documentation | API reference |
| Deployment Guide | Deployment instructions |
| User Manual | Comprehensive user manual |
| [Launch Automation Plan](Murphy System/docs/LAUNCH_AUTOMATION_PLAN.md) | Self-automating launch strategy |
| [Operations & Testing Plan](Murphy System/docs/OPERATIONS_TESTING_PLAN.md) | Iterative test-fix-document cycle |
| [Gap Analysis](Murphy System/docs/GAP_ANALYSIS.md) | System gap analysis and status |
| API Docs | Interactive API docs (requires running server) |
| Archive | Legacy versions and artifacts (separate repository) |
# Run tests (some suites require optional dependencies like pydantic, numpy, torch)
python -m pytest
# Run integration tests
pytest tests/integration/
# Run performance tests
k6 run tests/performance/load-test.jsWe welcome contributions! Please read:
- CONTRIBUTING.md β How to contribute
- CODE_OF_CONDUCT.md β Community standards
- SECURITY.md β Reporting vulnerabilities
src/pilot_config.pyβ Canonical pilot account (cpost@murphy.systems) and automation routingsrc/large_control_model.pyβ LCM meta-controller: NL β MSS β Rosetta β Causality β Dispatchsrc/rosette_lens.pyβ Rosetta agent positions β MSS data lens bridgesrc/nav_registry.pyβ All 1,230+ modules mapped to navigation categoriesstatic/murphy-nav.jsβ Shared navigation component (Finance & Grants always visible)src/demo_runner.pyβ Real demo pipeline: every scenario routes through actual Murphy components
Business Source License 1.1 (BSL 1.1)
Murphy is free to use, modify, and deploy for any purpose β personal, commercial, internal, or educational. The only restriction: you cannot offer Murphy itself as a competing hosted service.
After four years, each version automatically converts to Apache 2.0 (fully permissive open source).
TL;DR: Use it however you want. Just don't clone it and sell it as SaaS.
See LICENSE for details.
- GitHub Issues
- Documentation
- Examples
Murphy runs Inoni LLC (the company that makes Murphy)
- Sales: Lead generation automation workflows
- Marketing: Content and campaign automation support
- R&D: Bug triage and fix workflow automation
- Business: Finance/support workflow automation
- Production: Release and monitoring automation
The Ultimate Proof: The product IS the proof.
- β Security hardening β centralized auth, CORS, rate limiting, input validation
- β Artifact Viewport β range-based content inspection system
- β Tenant isolation β per-tenant memory planes, thread-safe graph managers
- Multi-language support (JavaScript, Java, Go)
- Enhanced shadow agent improvements
- Integration marketplace
- Advanced analytics
- Real-time collaboration
- Visual workflow builder
- Mobile app
- Enterprise features
- Multi-tenant architecture
- Global deployment
Murphy is the only automation platform that covers the entire stack β from factory floor SCADA to enterprise business workflows to content creator pipelines β in a single governed system.
| Capability | Murphy | Zapier | Make | n8n | Temporal | LangChain |
|---|---|---|---|---|---|---|
| Describe β Execute (NLβWorkflow) | β | β | β | β | β | |
| SCADA / Modbus / BACnet / OPC UA | β | β | β | β | β | β |
| Building Automation (BAS/BMS) | β | β | β | β | β | β |
| Energy Management (EMS) | β | β | β | β | β | β |
| Additive Manufacturing / 3D Printing | β | β | β | β | β | β |
| Content Creator Platform (YouTube, Twitch) | β | β | β | |||
| Self-Integration Engine | β | β | β | β | β | β |
| Self-Improvement + Immune Engine | β | β | β | β | β | β |
| Confidence-Gated Execution | β | β | β | β | β | β |
| Human-in-the-Loop Gates | β | β | β | β | β | |
| Pre-built Connectors | 90+ | 7,000+ | 1,800+ | 400+ | N/A | N/A |
| Production Readiness | Beta | β | β | β | β |
- Zapier: Integration breadth, but no NL execution, no industrial, no AI governance
- Murphy: Self-integration engine closes the breadth gap; NL-to-workflow is unique
- Advantage: Industrial/OT + AI orchestration + governance β categories Zapier cannot enter
- Make: Great visual builder, cheaper per operation
- Murphy: NL execution, SCADA, content creator, and self-improvement β no equivalent in Make
- Advantage: Premium verticals (industrial, content, AI) justify higher price
- n8n: Open-source, self-hosted, strong developer community
- Murphy: Same self-hosting story + governance + industrial + AI-native execution
- Advantage: Governance gates, HITL, SCADA, and Murphy Foundation Model
| Metric | Value |
|---|---|
| Source Files | 1,230 named Python modules across 86 packages (1,346 .py files total) |
| Source Lines | 594,131 |
| Classes | 5,646 |
| Functions / Methods | 21,332 |
| Packages | 86 subsystem directories |
| Test Files | 806 |
| Test Functions | 24,577 |
| Automation Types | 6 (factory, content, data, system, agent, business) |
| Gap-Closure Categories Audited | 90 (all at zero) |
The test suite is the primary quality gate for Murphy. Run it with:
cd "Murphy System"
python -m pytest tests/ -q --tb=shortLatest verified results (code-measured 2026-04-04):
| Metric | Count |
|---|---|
| Test files | 806 |
| Test functions | 24,577 |
| Gap-closure tests | 406 (rounds 3β42) |
Skipped tests require optional dependencies (Flask, Textual, torch) that are
not part of the core FastAPI-based system. Install them with pip install flask flask-cors textual torch if you want full coverage.
Known collection error: test_fastapi_rate_limiter_cleanup.py requires
fastapi β install with pip install fastapi to include it.
Murphy includes built-in self-improvement infrastructure:
| Component | Module | What It Does |
|---|---|---|
| Bug Pattern Detector | src/bug_pattern_detector.py |
Analyzes error logs to classify recurring failure patterns |
| Self-Improvement Engine | src/self_improvement_engine.py |
Extracts lessons from corrections, calibrates confidence scores |
| Correction Loop | src/learning_engine/ |
Shadow agent training pipeline that learns from human overrides |
| Self-Healing Coordinator | src/self_healing_coordinator.py |
Coordinates automated remediation across subsystems |
| Self-Fix Loop | src/self_fix_loop.py |
NEW β Autonomous closed-loop: diagnose β plan β execute β test β verify β repeat |
| Synthetic Failure Generator | src/synthetic_failure_generator/ |
Creates controlled failures to test recovery paths |
| Murphy Immune Engine | src/murphy_immune_engine.py |
NEW β 11-phase immune cycle: reconcile β predict β diagnose β recall β plan β execute β test β harden β cascade-check β memorize β report |
Can Murphy fix itself? Yes β for runtime-adjustable issues:
- β Detect recurring error patterns and suggest fixes
- β Learn from human corrections and adjust behavior
- β Auto-calibrate confidence thresholds based on outcomes
- β Process patch requests through the correction loop
- β NEW: Autonomously diagnose gaps, plan runtime fixes, execute adjustments (timeout tuning, confidence recalibration, recovery procedure registration, route optimization), test the fix, and repeat until zero gaps remain
- β Modify source code (requires human review via code proposals)
β οΈ Complex emergent bugs require manual diagnosis
See [docs/SELF_FIX_LOOP.md](Murphy System/docs/SELF_FIX_LOOP.md) for full documentation on the autonomous self-fix loop.
File an issue or submit a patch β Murphy's learning loop will incorporate the feedback into its operational models.
The Founder Update Engine gives Murphy's operator a live operating picture and actionable recommendations for keeping the system current, secure, and healthy.
| Module | Class | Purpose |
|---|---|---|
src/founder_update_engine/recommendation_engine.py |
RecommendationEngine |
Central recommendation store (9 types, 5 priorities) |
src/founder_update_engine/subsystem_registry.py |
SubsystemRegistry |
Fleet health tracking β auto-discovers all subsystems |
src/founder_update_engine/update_coordinator.py |
UpdateCoordinator |
Maintenance-window scheduling and update audit trail |
src/founder_update_engine/sdk_update_scanner.py |
SdkUpdateScanner |
Scans requirements files for outdated/vulnerable packages |
src/founder_update_engine/auto_update_applicator.py |
AutoUpdateApplicator |
Health-gated, rate-limited auto-application of safe updates |
src/founder_update_engine/bug_response_handler.py |
BugResponseHandler |
Classifies bug reports, drafts responses, creates recommendations |
src/founder_update_engine/operating_analysis_dashboard.py |
OperatingAnalysisDashboard |
Aggregates fleet metrics β DashboardSnapshot + threshold-triggered recs |
Safety: All actions are proposals. Nothing modifies source files. Founder approval required for security issues and major version bumps. Health-gate prevents updates when any subsystem is FAILED.
Tests: 133 passing in tests/test_founder_update_engine.py.
# 1. Clone
git clone https://github.com/IKNOWINOT/Murphy-System.git
# 2. Start
cd Murphy-System
bash setup_and_start.sh
# 3. Use
curl http://localhost:8000/api/statusWelcome to the future of AI automation! π
- Email: corey.gfc@gmail.com
| Category | Completion |
|---|---|
| Core Architecture & Engine Wiring | 93% |
| Hero Flow (Describe β Execute β Refine) | 82% |
| Librarian Command Coverage & Triage | 100% |
| Security Hardening | 78% |
| Test Coverage | 82% |
| Documentation Accuracy | 65% |
| UI Pages (62 HTML files) | 72% |
| Management Parity (12 Phases) | 90% |
| Multi-channel Delivery | 60% |
| Persistence (DB backends) | 68% |
| CI/CD Pipeline | 87% |
| Production Deployment Readiness | 60% |
| Weighted Overall | ~80% |
Primary gaps for production: Email delivery has no SMTP transport, database defaults to in-memory stub, E2EE is unimplemented, and no native mobile app exists. See ROADMAP.md for the sprint plan to close these.
Murphy System 1.0 - Automate Everything β’