AI Risk IntelligenceArchitecture overview
Read-only · no backend callGuided demo
System design

How this platform is built, and why.

The platform turns enterprise business context and internal knowledge into structured, evidence-aware architecture assessments. It is not a generic chatbot: its output is a validated assessment covering solution architecture, integrations, risk, governance, human oversight, and information gaps — using deterministic, single-agent, or multi-agent execution only where the problem earns that complexity.

End-to-end flow

How one decision moves through the system

  1. Ingest & ground

    Bounded APIs accept PDF, DOCX, UTF-8 text, and Markdown; content is normalized, chunked with provenance, embedded, and optionally added to the knowledge graph. Original upload bytes are not persisted.

  2. Retrieve evidence

    Vector RAG finds semantically relevant chunks while bounded GraphRAG adds entity relationships and impact paths, both attributable to a source document and chunk.

  3. Choose execution mode

    A deterministic flow handles straightforward cases; a single agent may use two read-only knowledge tools; a multi-agent graph separates evidence, architecture, risk/governance, and synthesis roles.

  4. Synthesize & validate

    All paths converge on one typed assessment contract. Citation sanitization removes invented or duplicate provenance before anything is persisted.

  5. Evaluate & instrument

    Deterministic, version-controlled fixtures score retrieval and assessment quality outside the production request path; safe operational telemetry exports over OTLP/HTTP.

  6. Apply the runtime risk gate

    A centralized, deterministic gate decides whether a result may complete, should carry a warning, requires human review, or must be blocked and escalated.

  7. Human review & audit

    Reviewers authenticate with signed JWTs; RBAC governs who may decide. Decisions are appended to a durable, attributed audit history rather than overwriting it.

Design rationale

Why the major components exist

Why these exist

Data and grounding

  • PostgreSQL is the transactional system of record for assessment lifecycle, knowledge chunks, graph entities, runtime checkpoints, and review events — one database keeps them transactionally consistent.
  • pgvector adds embedding storage and cosine-similarity search without a separate vector database, appropriate at the current scale.
  • RAG grounds assessments in enterprise evidence instead of relying on a model's general knowledge, with source identifiers that make claims inspectable.
  • The knowledge graph / GraphRAG represents typed relationships so bounded traversal can expose dependencies and impact chains similarity search alone would miss.
Why these exist

Execution and quality

  • LangGraph provides explicit state, routing, and deterministic fan-in, so orchestration and failure paths stay inspectable rather than relying on an unconstrained supervisor agent.
  • Single-agent mode is used when one reasoning loop benefits from selective tool use; multi-agent mode is reserved for cases where independent evidence, architecture, and governance analysis earns its extra coordination cost.
  • The evaluation harness gives repeatable, version-controlled comparisons across retrieval, provenance, architecture fit, risk coverage, groundedness, and abstention.
  • Runtime governance and human-in-the-loop review make sure a technically successful model response is never automatically treated as an approved enterprise decision.
Why these exist

Portability, access, and operations

  • Provider abstraction keeps vendor SDKs inside adapters, with separate contracts for chat models and embeddings so a reasoning provider can change without invalidating the vector index.
  • OIDC/JWKS, JWT, and RBAC establish a stateless identity boundary: signed tokens are checked for algorithm, signature, issuer, audience, expiry, subject, and role before any protected action.
  • Docker and CI make the production-like topology repeatable — linting, typechecking, deterministic regressions, a real PostgreSQL/pgvector integration suite, and health/readiness checks run on every push.
Judgment

Complexity is earned, not assumed

The deterministic path is a first-class option, not a fallback.

A fixed transformation or simple rule can be safer, cheaper, and easier to audit than an agent. Single-agent execution earns its place when bounded tool choice materially improves context gathering; multi-agent execution is justified only when independent evidence, architecture, and governance analysis exposes disagreement that a single pass would miss — more agents also mean more latency, cost, and failure surface. Producing more risks or controls is not valuable if they are irrelevant or unsupported, so the platform is evaluated on precision as well as coverage, and rewards appropriate abstention.

Honest scope

Current limitations

  • The deployment manifest is present, but no measured cloud SLO exists yet.
  • Full tenant isolation, tenant-aware authorization, quotas, and data partitioning are not present.
  • OCR and image-only PDF ingestion are not supported; neither are Excel or PowerPoint ingestion.
  • Only one generic HTTPS policy-repository connector exists; Google Drive, SharePoint, ticketing, messaging, and GRC connectors are not implemented.
  • OIDC/JWKS token verification is present, but browser authorization-code login, SCIM provisioning, and IdP lifecycle administration are not.
  • There is no external observability SaaS, managed alerting, or production incident integration.
  • Live-provider architecture, risk, and retrieval quality has not been benchmarked; current results use deterministic synthetic fixtures, not production assurance.