Architecture

Runs inside your environment, next to the systems you already have

LLM Capsule sends approved AI a substituted version of your data, then restores the original values in the answer inside your network. This page has what a security, data, or platform team needs to judge it: the zones and data path first, then components, deployment, and integration.

Where it sits

LLM Capsule runs inside your network, beside your existing systems

In a deployed setup, LLM Capsule runs inside your network and original documents are not sent to a third-party service. Values your policy flags reach approved AI only as stand-ins.

internal

Your internal systems

No replacement, no migration. LLM Capsule reads the data where it already lives.

  • ERP
  • CRM
  • ticketing
  • document management

LLM Capsule

Sensitive items leave as substituted values, and the original values in the returned output are restored here.

  1. Detect
  2. Substitute
  3. Run
  4. Restore

Original values and the restore mapping stay on this side of the line.

boundary
  • outbound substituted values
  • inbound model output
external

Approved AI models

Only models your organization approved. What arrives here is the substituted document.

  • ChatGPT
  • Claude
  • Gemini
  • Perplexity
  • any LLM API
  • on-prem sLLM

So values your policy flags leave your network only as stand-ins.

Zone overview

Four zones, and the boundary between them

The path runs in order. Operational systems and original values stay in your environment. The working version, with flagged values swapped for structure-preserving stand-ins, crosses the boundary, and the original values are restored where the work happens.

Zone 1

Operational systems

Records and original values stay in the systems that already run the work. LLM Capsule connects to ERP, CRM, tickets, documents, databases and RAG. No replacement, no data migration.

  • ERP · CRM · ticketing
  • Documents · databases · RAG
  • REST · gRPC · JDBC · Graph API
Zone 2

Structure-preserving substitution

Sensitive markers become a substituted working version, while tables, fields and references stay usable. Only that version moves forward. Original values and the restore mapping stay here.

  • Sensitive markers identified
  • Tables · fields · references retained
  • Original values stay inside
Zone 3

Policy-based routing

Your policy routes the working version by workflow, data type, permissions and model approval. The work runs on an approved external or on-premise model. Original values stay in Zone 2.

  • Workflow · data policy applied
  • Approved external model
  • On-premise model
Zone 4

Restore in the workflow

LLM Capsule combines the model response with the local mapping and restores the original values in place. The result returns straight to tickets, reports, records or workflows, with each restore logged for traceability.

  • Restored through local mapping
  • Tickets · reports · work records
  • Restore recorded
Data boundary Working version crosses Original values and restore mapping stay inside

Technical review · implementation path

Review the implementation path behind one operational request

Source interfaces, the working version, the approved route, and local restore, all shown as one reviewable implementation surface.

Operational systems

Reads directly from the operational systems that are already in place.

CONNECTED SYSTEMS

ERPSAP / Oracle CRMSalesforce RAGVector DB LegacyOracle TicketsJira / SN DMSSharePoint

RAW INPUT FIELDS

Customer
David Lawson
ID
Ticket
CS-4203
CD
Free text
David Lawson, 010-4102-8823, shipment delayed 3 days, requests refund
BD

ID identifier · CD reference code · BD unstructured body

Integration surface · REST · gRPC · JDBC · Graph API

Connects beside existing systems Connects to existing ERP, CRM and legacy systems through the API, SDK or connector that fits each one. The integration point and setup scope are agreed per workflow.

Structure-preserving substitution

Detection and substitution preserve the task structure.

SUBSTITUTION FLOW

INPROCESSOUT

Customer(capsule:person_1)ID

Ticket(capsule:champ_1)CD

Free text[context-preserving]BD

capsule:id is the substituted-value format that stands in for the original inside the capsule.

DETECTION & SUBSTITUTION

  • Custom detection rules per workspace
  • Semantic substitution
  • Free-text NER detection
Structure-preserving Detection and substitution keep tables, fields and references usable. Only the working version crosses the boundary; original values and the restore mapping stay in this zone.
DATA BOUNDARY Working version crosses Original values and restore mapping remain inside

Policy-based routing

The organization selects the approved execution route.

LLM PIPELINE

PATH A · EXTERNALPublic cloud · region-hosted
PATH B · ON-PREMPrivate · on-prem

The approved route can change without altering the working-version contract.

ROUTING & RETRIEVAL

  • Multi-LLM routing
  • Hybrid retrieval (embedding and keyword)
  • Output validation

In-region endpointEU Region

No direct access to source DB The execution route never touches the source database. It receives only the structure-preserving working version.

Restore in the workflow

The original values are restored in the environment where the work began.

RESPONSE TO ORIGINAL CONTEXT

Customer
David Lawson
ID
Ticket
CS-4203
CD
Free text
David Lawson, 010-4102-8823, shipment delayed 3 days, requests refund
BD

RESTORE

  • Local mapping lookup
  • Original value restore
  • Context re-binding
  • Output validation

OUTPUT PROPERTIES

  • Original values restored
  • Only substitutes sent out
  • Context preserved
  • Business-ready output

Auto restoreLocal onlyData residency

Local restore The restore mapping exists only inside the customer environment; the result returns to the originating tool immediately.
Business-ready result returns to the existing operational workflow
Five implementation components

Five technical components behind four workflow functions

These components implement the four functions on the product page. Detection and substitution look like one step from outside. Here they split into two, so you can configure, observe and audit each on its own.

Structure-preserving substitution · one step from the outside

  • Component 01

    Detection Engine

    Finds sensitive data in structured fields or free text.

    PII + customer-defined markersBeyond regex: semantic + context

    0.94PII detection F1, self-tested

  • Component 02

    Substitution Engine

    Swaps sensitive values only. The shape around them stays intact.

    Consistent stand-ins · custom markers · NERTables · hierarchies · references intact

What makes it operable at scale

  • Component 03

    Policy Definition

    Sensitivity rules keep changing. Policy keeps pace without breaking past work.

    Versioned · scoped · RBAC'dTime-shifting: archive yesterday, enforce todayPer-team, per-workflow scope
  • Component 04

    Restore Engine

    Brings the real answer back to where the work started.

    Local mapping lookupContext re-bindingValidated, ready in the originating tool
  • Component 05

    Operational Records

    Every step from detection to restore leaves an auditable record.

    Policy version · model · latency · outcome
Implementation principles

Six engineering principles behind the workflow

These are technical constraints and implementation criteria, not a second set of product features. Together, they make the customer-facing capabilities reliable in production.

  • Pillar 01
    Reads free-text, not just structured PII Free-text fields like a CS ticket mix customer names, contact information, and claim narrative with no fixed structure, so detection has to read meaning and context, not just patterns.
    • Free-text + structured fields together
    • Beyond pattern-matching: semantic + context
    Zone 2 · Substitution
  • Pillar 02
    Integration that fits each environment LLM Capsule connects through an API, SDK, or connector that fits the environment, and the integration point and setup scope are agreed per workflow. Operations teams keep using the tools they already have.
    • REST / gRPC · SDK · connector
    • Substitution and restore handled by the adjacent LLM Capsule layer
    Zone 1 · Source
  • Pillar 03
    When substitution alone is not enough: embedded DTS Substitution and restore are the default path. When substitution alone cannot keep the originals inside and still give the task what it needs, embedded DTS fills in data with the required patterns, distributions, and relationships. Not every dataset needs it, and DTS-prepared data is not mapped back to the originals.
    • Optional step, decided per dataset
    • DTS prepares data, LLM Capsule restores original values
    • For analysis, training, and evaluation
    Zone 2 · Substitution
  • Pillar 04
    External AI only sees the substitute External AI sees only the substituted version, so the original operational data stays inside your environment.
    • Structure-preserving, consistent substitution
    • Original values and the mapping stay inside
    Boundary · Zone 3
  • Pillar 05
    In-environment auto restore LLM Capsule restores the original values in the AI response inside the organization.
    • Reversing a substitute needs the in-house mapping
    Zone 4 · Restore
  • Pillar 06
    Governance, policy & domain context retained Organizational policy, permissions, and domain context drive the entire AI processing path, and governance stays inside the organization end-to-end.
    • What gets substituted, where it routes, how each restore is audited
    • Path A · external
    • Path B · on-prem
    Zone 3 · Routing

Each principle addresses a concrete architectural failure mode: loss of structure, system rewrites, context loss, an uncontrolled external path, manual value re-entry, or policy drift.

Two execution paths

One architecture. Two paths. Policy-driven per workflow.

The same LLM Capsule instance can route different workflows through different paths, all under one governance framework.

PATH A · External

Approved external LLM, working version only

For workflows where the rules allow a substituted working version to reach an external model under the usual contracts (DPA, SCCs).

  • Routes to ChatGPT, Claude, Gemini, Perplexity, or any LLM API
  • Flagged values reach the model only as stand-ins. Original values and the mapping stay in your environment.
  • In-region endpoints supported (EU-hosted for sovereign AI)
  • Best for: NOC RCA, claims classification, summarization
PATH B · On-prem

On-prem local lightweight model

For workflows where no external endpoint is acceptable: classified data, operational-technology (OT) systems, or tightly regulated healthcare records.

  • Runs on an approved model on internal GPUs
  • No external model endpoint, with a fully air-gapped option
  • Same LLM Capsule instance, same audit, same policy framework
  • Best for: defense, classified workflows, strict sovereign AI
In-environment integration

Connects to the systems you already run

These are the operational systems LLM Capsule reads from directly. Each one connects through the method that fits it.

ERP System
SAP / Oracle
CRM
Salesforce
Ticketing
Jira / ServiceNow
DMS / ECM
SharePoint
Legacy DB
Oracle / MSSQL
RAG Pipeline
Vector DB
Agent
LangChain / AutoGen
MCP Server
Claude Desktop / Cursor
  • Integration scope agreed per workflow
  • API, SDK, or connector
  • Original values stay inside the environment
  • Runs next to your systems, on-prem or in-VPC

Invocation interfaces, matched to each stack

REST / gRPC
Modern ops tools, RAG pipelines, custom orchestrators.
JDBC / ODBC
Legacy DBs (Oracle, MSSQL, DB2), via stored procedure or job step.
Graph API
DMS/ECM (e.g. SharePoint), triggered by document events.
On-prem API
Same contract across air-gapped, hybrid, or VPC.
Embedded SDK integration
Library-level integration for ISVs and platform vendors.
Slack App integration
For teams using Slack as the operations UI.
Deployment modes

Six deployment modes, matched to your environment

Deployed modes run inside the customer environment, and Path A or Path B is chosen per workflow. The Slack app and the free trial run on CUBIG-hosted infrastructure.

Air-gapped on-prem

Fully internal. No external network. Path B only. Defense, classified, OT.

On-prem hybrid

Internal LLM Capsule + approved external LLM. Path A for most workflows, Path B for sensitive subset.

VPC / private cloud

Customer's cloud VPC. LLM Capsule and restore mapping stay in the tenant; the LLM call goes to an in-region endpoint.

AWS / Microsoft Marketplace

Listed and procurable through AWS Marketplace and Microsoft Marketplace. VPC deployment, cloud billing integration.

Embedded SDK deployment

For ISVs and platform vendors building LLM Capsule into their own product. Library-level integration that ships inside the host application.

Slack App deployment

For teams using Slack as the operations UI. LLM Capsule runtime stays in the customer environment; the Slack App is the surface that invokes it.

Telecom-grade deployment

A separate operator-grade topology (NFV, container, multi-region) that composes with the modes above rather than replacing them.

  • T-Challenge 2026 runner-up
Audit & approval

The evidence security and legal sign off on

Once the working team is convinced, security and legal sign off. LLM Capsule records audit logs, policy history and exposure control as you run. Full documentation lives in the Trust Center.

Audit log

LLM Capsule logs detection, substitution and restore as events, with retention set by policy.

Policy history

Every change to detection or routing policy keeps the prior version and when it changed.

Originals Stay Inside

Original values and the restore mapping stay in the customer environment.

Certifications, compliance framework mapping, and DPA documentation are covered in the Trust Center. Visit Trust Center

Bring your deployment constraints. Leave with a plan for your environment.

Share your network limits, approved model path and one real workflow. We map out where it runs, what leaves as stand-ins, and where the originals and the restore mapping live.