pnpm workspace for the AAES-OS UCR spine TypeScript packages. The legacy v1 cognitive runtime (src/, HTTP orchestrator) remains at the repo root for backward compatibility.
aaes-os/
packages/
runledger/ # RunLedgerStore — runs, spans, invariant links
trace-bus/ # TraceBusClient — pub/sub trace events
aaes-governance/ # InvariantEngine + FaultJournalStore (Phase 3 stub)
ucr-runtime/ # UCRRuntime shell (Phase 3 stub)
tri-core-protocol/ # Governance triad types (Phase 3 stub)
services/
ops-console/ # React UI + Express telemetry + Prometheus /metrics
infra/
grafana/ # aaes-os-dashboard.json
prometheus/ # scrape config snippet
tools/ # placeholder — CLI/dev tools
docs/ # workspace-local docs pointer
tests/integration/ # cross-package spine tests
src/ # legacy AAES-OS v1 orchestrator (unchanged)
- Node.js ≥ 20
- pnpm ≥ 9
cd aaes-os
pnpm installpnpm build # all workspace packages
pnpm build:legacy # legacy src/ orchestrator (npm/tsc root tsconfig)pnpm test # build packages + vitest (unit + integration)
pnpm test:packages # per-package vitest where configured
pnpm test:legacy # legacy node:test suiteTelemetry UI and Prometheus metrics for drift, fault patterns, and patch effectiveness.
cd aaes-os
pnpm install
pnpm --filter @aaes-os/ops-console dev- Vite UI: http://localhost:5173 (proxies
/telemetryand/metricsto port 4000) - API: http://localhost:4000
GET /telemetry— JSON{ drift, topPatterns, lastFaults, patchTimeline }GET /metrics— Prometheus exposition (aaes_drift_score,aaes_fault_events_total,aaes_fault_pattern_recurrence)
Production:
pnpm --filter @aaes-os/ops-console build
pnpm --filter @aaes-os/ops-console startImport Grafana dashboard from infra/grafana/aaes-os-dashboard.json. Prometheus scrape target: localhost:4000 (see infra/prometheus/prometheus.yml).
Demo seed data (20 faults for INV_FAIL_INV_OUTPUT_SHAPE / INV_FAIL_INV_DETERMINISM, plus 2 patch samples) loads on server startup.
runledger ← trace-bus
↑ ↑
└──── ucr-runtime (stub)
aaes-governance → runledger (types)
tri-core-protocol (standalone types)
See docs/architecture/AAES_OS_UCR_MAPPING.md at the repo root.
| Phase | Scope | Status |
|---|---|---|
| 1 | Workspace shell, branded types, package.json/tsconfig | Done |
| 2 | In-memory RunStore, TraceBusClient, integration test | Done |
| 3 | Governance + UCR + tri-core stubs | Types/stubs only |
| 4 | Ops Console service | Done (services/ops-console) |
| 5 | Infra / persistence | Grafana + Prometheus snippets |