AI-powered value engineering platform for B2B SaaS. ValueOS helps customer success and sales teams quantify, track, and expand business value through an eight-agent fabric backed by Supabase, Redis, and CloudEvents messaging.
pnpm monorepo. Checked-in application workspaces live in apps/, while the primary production runtimes are apps/ValyntApp (valynt-app) for the customer-facing frontend, apps/mcp-dashboard (mcp-dashboard) for internal MCP observability, and packages/backend (@valueos/backend) for the API.
apps/
ValyntApp/ # Customer-facing web application (workspace: valynt-app)
mcp-dashboard/ # Internal MCP observability dashboard (workspace: mcp-dashboard)
agentic-ui-pro/ # Experimental agentic UI prototype workspace (workspace: agentic-ui-pro)
packages/
backend/ # Express API runtime (workspace: @valueos/backend)
components/ # Shared UI component library (workspace: @valueos/components)
config-v2/ # Shared configuration schemas (workspace: @vos/config-v2)
infra/ # Infrastructure adapters and queue/storage helpers (workspace: @valueos/infra)
integrations/ # Third-party integration adapters (workspace: @valueos/integrations)
mcp/ # Model Context Protocol modules plus nested workspaces under packages/mcp/*
memory/ # Semantic, episodic, vector, and provenance memory layer (workspace: @valueos/memory)
sdui/ # Server-Driven UI engine (workspace: @valueos/sdui)
services/ # Service-specific packages and support assets under packages/services/*
shared/ # Runtime-agnostic shared types and validators (workspace: @valueos/shared)
test-utils/ # Shared test helpers and repo-level test utilities
infra/
k8s/ # Kubernetes manifests (blue-green, HPA, network policies)
terraform/ # Active supporting cloud infrastructure (networking, data, cache, monitoring)
archive/ # Archived infrastructure references and retired deployment models
supabase/ # Database migrations and RLS policies
observability/ # Prometheus, Grafana, OpenTelemetry configs
Use these canonical documentation values when updating public-facing docs, examples, or architecture summaries:
- Product name:
ValueOS - Marketing site:
https://valueos.com - Application:
https://app.valueos.com - API:
https://api.valueos.com - Docs:
https://docs.valueos.com - Status:
https://status.valueos.com - Support:
support@valueos.com - Docs ownership:
docs@valueos.com - Runtime inventory source of truth: docs/architecture/runtime-inventory.json, summarized in docs/architecture/README.md
Additional contributor guidance lives in the repository-root AGENTS.md, the repository-wide docs/AGENTS.md, and scoped package guides such as packages/backend/AGENTS.md and packages/shared/AGENTS.md.
- Docker Desktop with WSL2 backend (Windows) or Docker Engine (Linux)
- VS Code with Dev Containers extension (or Windsurf)
- 8GB RAM minimum (16GB recommended)
The recommended development environment runs entirely in Docker containers with full Linux-to-production parity.
# From WSL2 terminal (Windows) or native terminal (Linux/Mac)
cd ~
git clone <repository-url> ValueOS
cd ValueOS
code .
# Then: F1 → "Dev Containers: Reopen in Container"cp .devcontainer/.env.template .devcontainer/.env
# Optional: edit .devcontainer/.env to customize portspnpm install
pnpm run dev # Starts frontend (5173) and backend (3001)The devcontainer provides:
- PostgreSQL 15, Redis 7, Supabase stack (Auth, REST, Realtime, Storage, Studio)
- Node.js 20, pnpm 10, all build tools
- MailHog for email testing
- No local installation required
See .devcontainer/README.md for detailed setup, troubleshooting, and advanced configuration.
For teams preferring cloud-based Supabase (instead of local containerized stack):
cp ops/env/.env.cloud-dev.example ops/env/.env.cloud-dev
cp ops/env/.env.frontend.cloud-dev.example ops/env/.env.frontend.cloud-dev
cp ops/env/.env.backend.cloud-dev.example ops/env/.env.backend.cloud-devFill in credentials from your Supabase dashboard (Project Settings → API). See ops/env/README.md for details.
Then start with:
pnpm install
pnpm run dev:frontend
pnpm run dev:backend # In another terminal| Command | Purpose |
|---|---|
pnpm run dev |
Start frontend and backend together |
pnpm run dev:frontend |
Start apps/ValyntApp (React + Vite) only |
pnpm run dev:backend |
Start packages/backend (Express API) only |
pnpm run build |
Build both apps/ValyntApp and packages/backend |
pnpm run start |
Start the production backend server |
pnpm run check |
Run TypeScript no-emit checks |
pnpm test |
Run the canonical repo-wide Vitest workspace across all maintained suites |
pnpm run format |
Format code with Prettier |
pnpm run db:migrate |
Apply database migrations |
pnpm run dx:check |
Run preflight environment checks |
pnpm run check:docs:consistency |
Verify canonical product names, domains, support contacts, and apps/ inventory across docs surfaces |
# Canonical repo-wide unit/integration test entrypoint
pnpm test
# RLS tenant isolation tests
pnpm run test:rls
# Security scan
pnpm run security:scan
# E2E tests (requires dev server running)
pnpm run test:e2e:gate
# Workflow DAG validation
pnpm run test:workflow-dag-validationpnpm test is the canonical root test command. It runs the repository Vitest workspace from vitest.config.ts, which includes every maintained package-level suite currently wired at the repo root. Use package-local pnpm --filter <package> test commands only when you intentionally want a narrower scope.
- Unit tests:
packages/backend/src/services/__tests__/- Service-level unit tests - Integration tests:
packages/backend/src/services/__tests__/integration/- End-to-end service integration - Security tests:
tests/security/- RLS policies, tenant isolation - Test helpers:
packages/backend/src/services/__tests__/integration/helpers/testHelpers.ts
External APIs are mocked in tests:
- HubSpot CRM:
CRMConnectortests mock HubSpot API responses - SEC EDGAR:
SECEdgarClienttests mock filing data - LLM Gateway: Agent tests use deterministic test fixtures via
secureInvokemocking
Located in testHelpers.ts:
factories.benchmark({ metric_name: "ROI" });
factories.assumption({ name: "Test Assumption" });
factories.case({ title: "Test Case" });ValueOS is a modular monolith deployed to Kubernetes.
+-----------------------------------------------------------+
| apps/ValyntApp (React + Vite + Tailwind) |
| Customer-facing frontend runtime |
+-----------------------------------------------------------+
| apps/mcp-dashboard (React + Vite) |
| Internal MCP observability workspace |
+-----------------------------------------------------------+
| packages/backend (Express API) |
| REST endpoints · RBAC · rate limiting |
| |
| Runtime services (packages/backend/src/runtime/): |
| DecisionRouter — selects agent/action by domain |
| ExecutionRuntime — task lifecycle, queues, retries |
| PolicyEngine — safety, compliance, HITL |
| ContextStore — assembles domain state for agents |
| ArtifactComposer — generates business case outputs |
| RecommendationEngine — next-best-action generation |
+-----------------------------------------------------------+
| Agent Fabric (packages/backend/src/lib/agent-fabric/) |
| 8 agents · BaseAgent · secureInvoke |
| OpportunityAgent · TargetAgent · FinancialModelingAgent |
| IntegrityAgent · RealizationAgent · ExpansionAgent |
| NarrativeAgent · ComplianceAuditorAgent |
+-----------------------------------------------------------+
| Domain Model (packages/shared/src/domain/) |
| 9 Zod-typed objects: Account, Opportunity, Stakeholder, |
| ValueHypothesis, Assumption, Evidence, BusinessCase, |
| RealizationPlan, ExpansionOpportunity |
+-----------------------------------------------------------+
| Data Layer |
| Supabase (Postgres + RLS) · Redis · CloudEvents bus |
+-----------------------------------------------------------+
- Primary runtime rule:
apps/ValyntAppis the customer-facing frontend runtime andpackages/backendis the API runtime.apps/mcp-dashboardis a checked-in internal dashboard workspace, not a second customer app. - Agent routing: All agent decisions are driven by structured domain state, not keyword matching.
- Multi-tenancy: Shared-schema with
organization_id/tenant_idenforced by Postgres RLS on every table. - LLM safety: All agent LLM calls go through
BaseAgent.secureInvoke()— circuit breaker, hallucination detection, Zod validation. - Auth: Supabase Auth with JWT, RBAC, WebAuthn/FIDO2, and MFA.
- Observability: OpenTelemetry SDK, Prometheus metrics (
packages/backend/src/observability/), Winston. - Deployment: Blue-green on Kubernetes with HPA, network policies, and External Secrets Operator.
See docs/architecture/ for detailed design documents, AGENTS.md for the repository-root agent guide, and docs/AGENTS.md for the canonical cross-repo instructions.
- CI security gate: TruffleHog (secrets), CodeQL + Semgrep (SAST), Trivy (containers + filesystem), Checkov (IaC), Hadolint (Dockerfiles). Critical/high findings block merge.
- Pre-commit: Gitleaks scans staged files.
- Secrets: Vault / AWS Secrets Manager via External Secrets Operator. No secrets in code or config.
- RLS: All tenant-scoped tables enforce row-level security. Dedicated CI check validates policies.
See docs/security-compliance/ for the full security overview and compliance guide, and review SECURITY.md for coordinated vulnerability disclosure.
| Category | Path | Contents |
|---|---|---|
| Getting Started | docs/getting-started/ | Introduction, quickstart, installation, FAQ |
| Architecture | docs/architecture/ | System overview, agent design, API design, data layer |
| Engineering | docs/engineering/ | Code standards, ADRs, database guide, testing |
| Operations | docs/operations/ | CI/CD, deployment, monitoring, backup/recovery |
| Launch Readiness Inputs | docs/launch-readiness-inputs.md | Canonical ERD, tenancy model, and SLO/error-budget references |
| Runbooks | docs/runbooks/ | Deployment, database, infrastructure, emergency procedures |
| Security | docs/security-compliance/ | Auth, audit logging, compliance, data protection |
| Environments | docs/environments/ | Local dev, staging, production setup |
| Features | docs/features/ | Agents, billing, design system, integrations |
| DX | docs/developer-experience/ | Dev environment, tooling, troubleshooting |
| Processes | docs/processes/ | Code review, incident management, releases |
See infra/README.md for the canonical infrastructure classification and authoritative deployment path, and DEPLOY.md for the shared-environment Kubernetes deployment flow. Docker Compose remains local-only under ops/compose/.
- Open this repository in the Dev Container.
- Run
pnpm installto install dependencies. - Run
pnpm run devto start both runtimes, orpnpm run dev:frontend/pnpm run dev:backendindependently. - Create a feature branch from
main. - Make changes following the patterns in docs/engineering/code-standards.md, AGENTS.md, docs/AGENTS.md, and any deeper scoped
AGENTS.mdfiles that cover the files you edit. - Ensure
pnpm run lint,pnpm test, andpnpm run checkpass locally. - Open a PR using the pull request template.
Proprietary. All rights reserved.