Skip to content

farmountain/Aureus_Agentic_OS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

488 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aureus Agentic OS

Production-Grade AI Agent Orchestration Platform
Reliable execution through durable orchestration, verified reasoning (CRV), causal world models, and auditable memory with rollback.

Version License Beta Program

Aureus (Agentic Unified Reliability & Execution Under Steering) enables controlled autonomy—AI agents that can act in real systems safely, transparently, and at enterprise scale.

🎯 Quick Links

For... Start Here
First-time users 5-Minute Quick Start
Beta participants Beta Program Guide
Production deployment Operations Guide
Developers Installation | Developer Guide
Architecture deep-dive Architecture

📋 Table of Contents

✨ Features

Core Capabilities

  • Durable Orchestration: DAG/FSM-based workflow execution with automatic persistence and resume
  • Validation Gates (CRV): Validation gates that block invalid commits before they affect the system
  • Goal-Guard FSM: Policy-based governance that gates risky actions based on risk tiers
  • Memory HipCortex: Temporal indexing, snapshots, and audit logs with rollback capability
  • World Model: Causal state management with do-graph and constraint validation
  • Observability: Comprehensive telemetry, metrics, and distributed tracing
  • Evaluation Harness: Success criteria per task type with automated evaluation and reporting
  • Enhanced Error Handling: Detailed error messages with actionable remediation guidance
  • Agent Studio: Visual agent builder with AI-assisted generation, validation, simulation, and deployment

Non-negotiable Invariants

  1. Durability: Workflows resume from persisted state after failures
  2. Idempotency: Retries don't duplicate side effects
  3. Verification: CRV gates block invalid commits
  4. Governance: Goal-Guard FSM gates risky actions
  5. Auditability: All actions and state diffs are logged and traceable
  6. Rollback: Safe restore to last verified snapshot

🚀 Quick Start

Option 1: Docker Compose (Recommended for Testing)

# Clone and navigate
git clone https://github.com/aureus/Aureus_Agentic_OS.git
cd Aureus_Agentic_OS/demo-deployment

# Configure (takes 2 minutes)
cp .env.example .env
# Edit .env with your settings (DB password, JWT secret, optionally OpenAI key)

# Start all services
doc🏗️ Deployment Options

### Docker Compose (Production-Ready)
**Status**: ✅ **Production-ready** for on-premise/private cloud  
**Best for**: SMBs, on-premise deployments, single-node setups

- Multi-service orchestration (Console, PostgreSQL, Redis, Prometheus, Grafana)
- Health checks and auto-restart
- Volume persistence for data and logs
- Comprehensive configuration via `.env`

**Deploy**: See [demo-deployment/](./demo-deployment/)

### Kubernetes (Coming Week 6-8 of Beta)
**Status**: ⚠️ **Beta** - Manifests available, testing in progress  
**Best for**: Enterprise cloud deployments, multi-node clusters

- StatefulSets for PostgreSQL
- Horizontal pod autoscaling
- Ingress with TLS
- Network policies
- Multi-environment support (dev/staging/prod)

**Deploy**: See [infrastructure/kubernetes/](./infrastructure/kubernetes/)

### Production Configuration

# Access console
open http://localhost:3000

Full guide: Operations Guide — Quick Start

Option 2: Development Setup

# Install dependencies
npm install

# Build all packages
npm run build

# Run tests
npm test

# Start development console
cd apps/console
npm run dev

Full guide: Installation

Production Profile

Production-grade durability and auditability require a persistent StateStore plus persistent memory/audit stores, a real LLM provider, and sandbox execution enabled.

CLI example (durable state + persistent event logs):


### By Topic

- **Getting Started**: [Installation](./GUIDE.md#installation) | [Quick Start](./OPERATIONS.md#quick-start)
- **Architecture**: [Architecture Overview](./ARCHITECTURE.md)
- **User Guides**: [Agent Studio](./GUIDE.md#agent-studio) | [Workflow Generator](./GUIDE.md#workflow-generator) | [SDK Reference](./GUIDE.md#for-developers)
- **Deployment**: [Operations Guide](./OPERATIONS.md)
- **Operations**: [Monitoring](./OPERATIONS.md#monitoring) | [Security](./OPERATIONS.md#security-operations)
- **Contributing**: [Contributing Guide](./CONTRIBUTING.md)

## 🎓 Beta Program

**Technical Beta is Now Open!** 

We're accepting 10-15 technical users to evaluate Aureus in production-like environments.

**✅ What's Included**:
- Full platform access (Docker Compose deployment)
- All core features: Orchestration, CRV, Policy, Memory, Observability
- Python SDK + TypeScript SDK
- Email support + bi-weekly office hours
- Direct feedback channel to engineering team

**📅 Timeline**: 8-12 weeks (February - April 2026)  
**💰 Cost**: Free for beta participants  
**🎁 Benefits**: $5K service credits, early access, roadmap influence

**Apply Now**: [Beta Program Guide](./GUIDE.md#beta-program)

## 📁 Project
aureus run workflow.yaml \
  --state-store-type postgres \
  --event-log-dir /var/log/aureus/events

Environment example (durable state, persistent memory/audit, real LLM, sandbox):

export NODE_ENV=production
export STATE_STORE_TYPE=postgres
export DATABASE_URL="postgresql://aureus:your-password@db.example.com:5432/aureus"
export EVENT_LOG_DIR="/var/log/aureus/events"

# Real LLM provider
export LLM_PROVIDER="openai"
export LLM_MODEL="gpt-4"
export OPENAI_API_KEY="sk-..."

# Sandbox execution
export ENABLE_SANDBOX="true"

Memory & audit persistence: configure HipCortex with PostgresMemoryStore and PostgresAuditLog so memory entries and audit trails persist in the same PostgreSQL instance. See Operations — Persistent Stores for wiring details.

Package Structure

  • packages/kernel: Orchestration runtime with DAG/FSM, retries, and idempotency
  • packages/hypothesis: Hypothesis branching and evaluation for goal-driven reasoning with CRV validation
  • packages/policy: Goal-guard FSM with permission model and risk tiers
  • packages/crv: Validation gate operators and composition utilities
  • packages/memory-hipcortex: Temporal index, snapshots, audit log, and rollback
  • packages/world-model: State store with do-graph and constraints
  • packages/tools: Tool adapters with safety wrappers
  • packages/observability: Telemetry, metrics, and traces
  • packages/evaluation-harness: Success criteria evaluation and metrics reporting
  • packages/benchright: Benchmark evaluation for execution traces with output quality, reasoning coherence, cost/value, hypothesis switching, and counterfactual analysis
  • packages/sdk: Developer SDK for building agent applications
  • packages/sdk-python: Python SDK with client bindings for workflow execution, CRV, policy evaluation, and observability
  • apps/console: Operator console with API and CLI for monitoring and control

Usage Example

import { WorkflowOrchestrator, InMemoryStateStore, HypothesisManager } from '@aureus/kernel';
import { GoalGuardFSM, RiskTier } from '@aureus/policy';
import { CRVGate, Validators } from '@aureus/crv';
import { HipCortex } from '@aureus/memory-hipcortex';

// Create components
const stateStore = new InMemoryStateStore();
const hipCortex = new HipCortex();
const goalGuard = new GoalGuardFSM();

// Setup CRV gate for validation
const crvGate = new CRVGate({
  name: 'State Validation',
  validators: [
    Validators.notNull(),
    Validators.schema({ value: 'number' }),
  ],
  blockOnFailure: true,
});

// Create hypothesis manager for goal-driven reasoning
const hypothesisManager = new HypothesisManager({
  maxConcurrentHypotheses: 5,
  scoringCriteria: { /* configurable weights */ },
  minAcceptableScore: /* configurable threshold */,
  autoPrune: true,
  enableTelemetry: true,
});

// Define and execute workflow with hypothesis support
const orchestrator = new WorkflowOrchestrator(
  stateStore, 
  executor,
  undefined,
  undefined,
  undefined,
  undefined,
  crvGate,
  goalGuard,
  undefined,
  undefined,
  undefined,
  hypothesisManager
);
const result = await orchestrator.executeWorkflow(spec);

// Use hypothesis manager to explore multiple solution approaches
hypothesisManager.registerGoal({
  id: 'optimize-workflow',
  description: 'Optimize workflow execution',
  successCriteria: [{
    id: 'sc-1',
    description: 'Execution time < 5 seconds',
    validator: (state) => state.executionTime < 5000,
    weight: 1.0,
  }],
});

// Create and evaluate multiple hypothesis branches
const hyp1 = await hypothesisManager.createHypothesis(
  'optimize-workflow',
  'Approach 1: Parallel execution',
  []
);

const hyp2 = await hypothesisManager.createHypothesis(
  'optimize-workflow',
  'Approach 2: Caching',
  []
);

// Evaluate with CRV validation
await hypothesisManager.evaluateHypothesis(hyp1.id, {
  executeActions: true,
  validateWithCRV: true,
});

await hypothesisManager.evaluateHypothesis(hyp2.id, {
  executeActions: true,
  validateWithCRV: true,
});

// Get best hypothesis and merge
const topHypotheses = hypothesisManager.getTopHypotheses('optimize-workflow', 1);
if (topHypotheses.length > 0) {
  await hypothesisManager.mergeHypothesis(topHypotheses[0].id);
}

Operator Console

The Aureus Console provides monitoring and control capabilities for workflows:

  • API Server: REST API for monitoring workflows and controlling actions
  • CLI Interface: Command-line tool for viewing workflow status and events
  • Authentication: JWT-based authentication with basic username/password
  • Real-time Monitoring: View running tasks, CRV status, policy status
  • Action Control: Approve/deny gated actions, trigger rollbacks
  • Audit Logs: View complete timeline and event history
  • Agent Studio: Visual agent builder with AI-assisted generation

See GUIDE.md — Operator Console for usage details and lifecycle, approvals, and rollback workflows.

Agent Studio

The Agent Studio is a comprehensive platform for designing, validating, and deploying AI agents with confidence:

Features

  • AI-Assisted Generation: Natural language goal → structured agent blueprint
  • Visual Configuration: Interactive wizard for tool selection, policy configuration, and risk profiling
  • Validation & Simulation: Test agents in sandbox environments before deployment
  • Deployment Pipeline: Stage → Approve → Promote workflow with rollback support

Agent Blueprint Schema

An agent blueprint defines:

  • Goal & Configuration: Agent's objective, LLM settings (prompt, temperature, model)
  • Tools: Available tools with permissions and risk tiers
  • Policies: Safety policies and governance rules
  • Workflows: Executable workflows the agent can trigger
  • Constraints: Operational limits and guardrails
  • Success Criteria: Metrics for evaluating agent performance

Usage

Web UI

Access the Agent Studio at http://localhost:3000/agent-studio when running the console:

cd apps/console
npm run dev

Navigate through the 5-step wizard:

  1. Define agent goal and risk profile
  2. Select tools and capabilities
  3. Configure policies and guardrails
  4. Generate and validate agent blueprint
  5. Deploy to target environment

API Endpoints

Generate Agent Blueprint:

POST /api/agents/generate
{
  "goal": "Monitor system logs and alert on critical errors",
  "riskProfile": "MEDIUM",
  "preferredTools": ["http-client", "email-sender"],
  "policyRequirements": ["Rate limiting", "Approval for alerts"]
}

Validate Agent:

POST /api/agents/validate
{
  "blueprint": { ... }
}

Simulate Agent:

POST /api/agents/simulate
{
  "blueprint": { ... },
  "testScenario": {
    "description": "Test log monitoring",
    "inputs": { "logFile": "system.log" }
  },
  "dryRun": true
}

Deploy Agent:

POST /api/agents/deploy
{
  "blueprint": { ... },
  "environment": "staging",
  "approvalRequired": true
}

Programmatic Usage

import { AgentBuilder } from '@aureus/console';
import { validateAgentBlueprint } from '@aureus/kernel';

const builder = new AgentBuilder(eventLog);

// Generate agent
const result = await builder.generateAgent({
  goal: "Monitor API health and alert on failures",
  riskProfile: "MEDIUM",
  preferredTools: ["http-client", "email-sender"],
  constraints: ["Read-only access", "Max 10 requests/minute"]
});

// Validate
const validation = await builder.validateAgent(result.blueprint);
if (!validation.valid) {
  console.error("Validation issues:", validation.issues);
}

// Blueprint is ready for deployment
console.log("Agent ID:", result.blueprint.id);

Example Agent Blueprint

{
  "id": "agent-monitor-001",
  "name": "API Health Monitor Agent",
  "version": "1.0.0",
  "goal": "Monitor API endpoints and alert on failures",
  "riskProfile": "MEDIUM",
  "config": {
    "prompt": "You are an API monitoring agent...",
    "temperature": 0.5,
    "model": "gpt-4"
  },
  "tools": [
    {
      "toolId": "http-client",
      "name": "HTTP Client",
      "enabled": true,
      "permissions": ["read"],
      "riskTier": "LOW"
    },
    {
      "toolId": "email-sender",
      "name": "Email Sender",
      "enabled": true,
      "permissions": ["write"],
      "riskTier": "MEDIUM"
    }
  ],
  "policies": [
    {
      "policyId": "rate-limit",
      "name": "Rate Limiting",
      "enabled": true,
      "rules": [
        {
          "type": "rate_limit",
          "parameters": { "maxActionsPerMinute": 60 }
        }
      ]
    }
  ],
  "workflows": [
    {
      "workflowId": "monitor-workflow",
      "name": "Health Check Workflow",
      "triggerConditions": ["scheduled", "on_demand"]
    }
  ],
  "successCriteria": [
    "All endpoints checked successfully",
    "Alerts sent for failures",
    "No policy violations"
  ]
}

Demo Scenarios

Reproducible scenarios demonstrating Aureus capabilities end-to-end:

Bank Credit Reconciliation

A complete demonstration of a bank credit reconciliation workflow that showcases all core components working together. This scenario:

  • Extracts schemas from DDL files
  • Validates field mappings using CRV
  • Performs batch reconciliation checks
  • Generates comprehensive reports with audit trails

Run the scenario:

cd apps/demo-scenarios/bank-credit-recon
npm install
npm run build
npm start

Run tests:

npm test

Generated outputs:

  • recon_report.md - Detailed reconciliation report with schema analysis and results
  • audit_timeline.md - Complete audit trail of all actions
  • reliability_metrics.json - Performance and accuracy metrics

See GUIDE.md — Demo Scenarios for complete documentation.

Architecture

See ARCHITECTURE.md for detailed architectural information.

Documentation

Document Contents
ARCHITECTURE.md System design, components, data flow, failure modes
GUIDE.md Installation, quickstart, SDK reference, troubleshooting
OPERATIONS.md Deployment, configuration, monitoring, security ops
CONTRIBUTING.md Build system, package reference, PR workflow

Roadmap

See roadmap.md for development roadmap.

License

MIT

About

AUREUS Agentic OS is a production-grade operating system for AI agents that guarantees reliable execution through durable orchestration, verified reasoning (CRV), causal world models, and auditable memory with rollback. It enables controlled autonomy—AI agents that can act in real systems safely, transparently, and at enterprise scale.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors