# Layerup > This file is very large and may be truncated. For an index of this content, please refer to https://docs.uselayerup.com/llms.txt instead. # Action Plane Source: https://docs.uselayerup.com/action-plane The only path from a Decision to a mutation of a system of record. Every effect is typed, idempotent, approved, audited, and reversible. The threshold between AI suggestion and governed agency. # 14 — Action plane — lifecycle, idempotency & compensation. The Action Plane is the only path from a Decision to a mutation of a system of record. It is opinionated: every effect is typed, idempotent, approved, audited, and reversible (forward or compensating). This is the threshold between AI suggestion and governed agency. ## 14.1 Action lifecycle ```mermaid theme={null} stateDiagram-v2 [*] --> proposed proposed --> staged: tool.stage(args, idemKey) staged --> approved: policy.auto | human.approve staged --> rejected: human.deny | policy.deny approved --> committing: dispatcher.start committing --> committed: adapter.success committing --> failed: adapter.error committed --> reverted: compensation.committed rejected --> [*] failed --> [*] reverted --> [*] committed --> [*] ``` *Fig. 14.1 — Action state machine. Every transition is a typed AuditEvent.* ## 14.2 State semantics | State | Meaning | Visible? | | - | - | - | | `proposed` | Reasoning has produced a Decision; an Action object draft exists but no staging tool has been called. | internal only | | `staged` | Action is registered with idempotency key, attached to a Decision, awaiting approval. | visible to operators & reviewers | | `approved` | Approval policy satisfied (auto-approval rule or human approval). Ready to commit. | visible | | `committing` | Dispatcher is talking to the SoR adapter. | visible | | `committed` | SoR confirmed the effect and returned a receipt. | visible & persistent | | `rejected` | Approval denied by policy or human. | visible | | `failed` | SoR adapter failed; subject to retry per policy. | visible | | `reverted` | A compensating action committed. | visible | ## 14.3 Idempotency key construction Idempotency keys are deterministic over the action's *intent*, not its execution. A replay of the same intent — even from a different run, a different reviewer, or a different agent revision — must commit at most once. ```text theme={null} k = sha256( tenantId · actionKind // e.g. "claim.exposure.reserve.set" · targetSor // e.g. "policy_admin" · targetRefHash // hash of canonical target reference · payloadCanonical // canonical JSON of payload · ontologyPin ) ``` Where `payloadCanonical` is RFC-8785 JCS-canonicalised. The platform never commits twice with the same `k`; the second commit returns the first commit's receipt unchanged. ## 14.4 Approval policy Approval is per *(actionKind, severity, marking, principal)*. The platform supports four approval modes: | Mode | Trigger | Audit signature | | - | - | - | | **auto** | Action kind, principal scopes, marking and policy all permit auto-commit. | `action.approval.auto` | | **human-in-review** | Approval Task created; human approver must commit before timeout. | `action.approval.human` | | **quorum** | N-of-M reviewers must approve; commonly N=2 for high-effect actions. | `action.approval.quorum` | | **chain** | Sequential approval through a fixed chain (e.g. authority escalation). | `action.approval.chain` | ## 14.5 Pre-commit reality arbitration Before `committing`, the dispatcher performs a fixed sequence of checks. Any failure aborts the commit and raises a typed Exception. 1. Target object still exists in the SoR at the version observed when the Action was staged (optimistic concurrency). 2. No subsequent reviewer or agent has changed the same object in a way that invalidates the staged Action's preconditions. 3. The staged Action's marking and purpose still pass the PDP. 4. The Action is unique under its idempotency key (no prior commit). 5. The principal's authority still covers this Action (authority limits not breached at commit time). ## 14.6 Adapter strategies The Action Plane writes to systems of record through pluggable adapters. Two strategies are supported: > [card] Adapter calls a SoR API in real-time > > **Transactional** — Synchronous request/response (or async with a callback). > Receipt is the SoR's confirmation. Most policy admin / claims / billing > systems support this. > [card] Adapter writes to a file drop or batch queue > > **Flat-file / batch** — Used when the SoR has no real-time API. Receipt is > the file/batch identifier; eventual confirmation arrives via the standard > pull adapter (§7) and is correlated by idempotency key. > [!NOTE] > > Adapter selection is a tenant configuration. Both strategies enforce > idempotency; the difference is only in latency and how the receipt is > materialised. ## 14.7 Compensation algebra Reversal is typed. The platform refuses to "undo" a committed Action by mutation; reversal is always a separate, named compensating Action. | Original action | Compensating action | Notes | | - | - | - | | create \ | cancel \ or void \ | SoR-specific; never a hard delete unless the SoR offers it | | update \ from v_a to v_b | update \ from v_b to v_a | Pre-commit arbitration must verify v_b still active | | commit transfer of value | reverse transfer of value | For payments: refund / chargeback / reverse-payment | | set state to S | set state to prior_state(S) | State machines must declare reversible transitions | The pair *(Action, CompensatingAction)* is recorded together in lineage; the original Action's `compensatedBy` field is set on commit of the reversal. ## 14.8 Reversal vs supersession * **Reversal** — the prior effect is undone; nothing replaces it. Used when the original Action was wrong. * **Supersession** — the prior effect is replaced by a new effect; both are recorded; the prior is marked `superseded` but not `reverted`. Used when the underlying Decision was correct but circumstances changed. ## 14.9 Batch commit semantics Some Actions are batched (file drops, end-of-day uploads). The platform treats a batch as a typed object with its own state machine; per-record receipts are matched back by idempotency key. Partial batch failures produce typed Exceptions per record; successful records remain `committed`. ## 14.10 Action observability * Every state transition emits an AuditEvent and a span. * Metrics: *staging rate, approval rate, auto-approval ratio, reversal rate, time-to-commit p50/p99, adapter error class distribution*. * SLO: time from `approved` to `committed` — per adapter strategy. # Deployment Readiness Reference Source: https://docs.uselayerup.com/agents/appendix Complete AWS and Azure deployment readiness checklists, owner assignments for each prerequisite, and key contacts for the Layerup implementation engagement. # 12 — Deployment readiness reference — AWS & Azure checklists, prerequisite owners & key contacts. The following checklists summarise the technical prerequisites and governance steps required before Layerup AI Agents are ready for production deployment in your cloud environment. They are intended for your Enterprise Architecture and Platform Engineering teams to use as the authoritative pre-go-live gate. All checklist items must be confirmed as complete before live application traffic is routed to the agent. Items marked with a Layerup co-owner require coordination with your Layerup Implementation Lead. *** ## 11.1 AWS deployment readiness checklist > [accordion] Procurement & Registry (3 items) > > \| checklist item | owner | | --- | --- | | AWS Marketplace subscription active > for Layerup AI Agent listing | Your Procurement + AWS Account Team | | > Designated ECR repository created for Layerup container images within your AWS > account | Your Platform Engineering | | Image signing verification policy > configured in ECR to enforce Cosign signature validation before pull | Your > Security Team | > [accordion] Security Scanning (2 items) > > \| checklist item | owner | | --- | --- | | Amazon Inspector enabled on the > designated ECR repository for automatic image scanning on push | Your Security > Team | | Inspector findings severity threshold defined and enforced in CI/CD > promotion pipeline (block on Critical / High) | Your Security Team + Platform > Engineering | > [accordion] Network & Compute (3 items) > > \| checklist item | owner | | --- | --- | | Dedicated VPC with private subnets > configured for agent compute — no Internet Gateway route from agent subnets | > Your Platform Engineering | | VPC Endpoints provisioned for: S3, SQS, Amazon > Bedrock, CloudWatch Logs, ECR (both `ecr.api` and `ecr.dkr`) | Your Platform > Engineering | | Security Group rules configured for agent compute: no inbound > from outside VPC; outbound restricted to VPC endpoint destinations only | Your > Security Team | > [accordion] Encryption & Key Management (3 items) > > \| checklist item | owner | | --- | --- | | Customer-managed KMS key created > and designated for agent data (S3 input/output, CloudWatch Logs, optional > intermediate state storage) | Your Security Team | | S3 input bucket and S3 > output bucket created with CMK encryption, versioning enabled, and bucket > policies restricting access to agent IAM role only | Your Platform Engineering > \| | Key access policy confirmed: agent IAM role has `kms:Decrypt` only — > cannot rotate, disable, or delete the key | Your Security Team | > [accordion] Queuing & Event Infrastructure (2 items) > > \| checklist item | owner | | --- | --- | | SQS intake queue and completion > queue created with appropriate Dead-Letter Queue (DLQ) configuration and > visibility timeout set to accommodate maximum processing time (60 minutes > recommended) | Your Platform Engineering | | EventBridge rules (or S3 Event > Notification → SQS trigger) configured to route application packet uploads to > the agent trigger | Your Platform Engineering | > [accordion] Identity & Access (2 items) > > \| checklist item | owner | | --- | --- | | IAM Execution Role created with > least-privilege policy (s3:GetObject/PutObject on designated buckets, > bedrock:InvokeModel on approved model ARNs, bedrock:ApplyGuardrail, > sqs:ReceiveMessage/DeleteMessage, logs:PutLogEvents, kms:Decrypt) and explicit > deny-all for all other permissions | Your Security Team | | Confirmed: no > Layerup personnel hold permanent IAM credentials in your AWS account. > Implementation-phase time-limited role revocation plan agreed. | Your Security > Team + Layerup | > [accordion] AI Inference & Guardrails (2 items) > > \| checklist item | owner | | --- | --- | | Amazon Bedrock Guardrail policy > configured by your AI Platform team: topic denial policies, PII redaction > rules, grounding check enabled, prompt injection protection enabled | Your AI > Platform Team | | Designated Bedrock model ARN approved, access granted in IAM > role, and Bedrock service quota confirmed sufficient for expected concurrent > case volume | Your AI Platform Team | > [accordion] Observability & Audit (3 items) > > \| checklist item | owner | | --- | --- | | CloudWatch Log Group created with > 7-year retention policy and data protection lock (tamper prevention) applied | > Your Platform Engineering | | CloudWatch Metrics dashboard configured for > operational monitoring: cases_processed_count, > cases_flagged_for_escalation_count, average_processing_time_seconds, > guardrail_interventions_count, queue depth | Your Platform Engineering | | > CloudWatch Alarms configured: error rate threshold, queue depth breach, model > timeout rate, agent health degradation — with on-call notification routing | > Your Platform Engineering | > [accordion] CI/CD Pipeline (1 item) > > \| checklist item | owner | | --- | --- | | Container image promotion pipeline > gates configured: Inspector scan gate, regression test gate, approval gate, > and post-deploy verification alarm monitoring | Your Platform Engineering | > [accordion] AOP Onboarding & Governance (4 items) > > | checklist item | owner | > | - | - | > | Your organization's underwriting SOP documents provided to Layerup implementation team for AOP authoring | Your Underwriting Leadership | > | AOP validation test set (historical cases with known outcomes, minimum 50 cases recommended) provided to Layerup for validation testing | Your Underwriting Leadership | > | AOP stored in your source control system (CodeCommit / GitHub Enterprise) with approval workflow configured for AOP amendments | Your Platform Engineering | > | AOP version confirmed as meeting >99% reproducibility target on validation case set before production go-live | Layerup + Your Underwriting Leadership | > [accordion] Deployment Strategy & Rollout (3 items) > > \| checklist item | owner | | --- | --- | | Blue/Green or Shadow Mode > deployment strategy selected and infrastructure configured before first live > traffic | Your Platform Engineering + Layerup | | Initial phase rollout > percentage defined — recommended: Phase 1 at 10% of live application volume | > Your Underwriting Leadership + Layerup | | Escalation workflow to human > senior underwriter configured and tested: escalation queue routing, SLA > assignment, notification to on-call underwriter | Your Underwriting Operations > | *** ## 11.2 Azure deployment readiness checklist > [accordion] Procurement & Registry (3 items) > > \| checklist item | owner | | --- | --- | | Azure Marketplace offer > subscription active for Layerup AI Agent (Container App offer or Managed > Application) | Your Procurement + Microsoft Account Team | | Azure Container > Registry (ACR) instance provisioned within your Azure tenant; geo-replication > enabled across designated regions | Your Platform Engineering | | Azure > Defender for Containers enabled on ACR for continuous image scanning | Your > Security Team | > [accordion] Network (3 items) > > \| checklist item | owner | | --- | --- | | Azure Virtual Network with private > subnet configured for agent compute — no direct route to public internet from > agent subnet | Your Platform Engineering | | Private Endpoints provisioned > for: Azure Blob Storage, Azure Service Bus, Azure OpenAI | Your Platform > Engineering | | Network Security Group (NSG) rules configured: no inbound from > outside VNet; outbound restricted to Private Endpoint destinations only | Your > Security Team | > [accordion] Encryption & Key Management (2 items) > > \| checklist item | owner | | --- | --- | | Azure Key Vault provisioned with > CMK for agent data encryption; access policies restrict agent Managed Identity > to Secrets User role only | Your Security Team | | Blob Storage input and > output containers configured with CMK encryption and RBAC-scoped access > (Managed Identity access only) | Your Platform Engineering | > [accordion] Queuing & Event Infrastructure (1 item) > > \| checklist item | owner | | --- | --- | | Azure Service Bus namespace and > queues configured with Dead-Letter Queue; KEDA autoscaling configured on > Container Apps environment or AKS HPA configured for SB queue depth | Your > Platform Engineering | > [accordion] Identity & Access (2 items) > > \| checklist item | owner | | --- | --- | | User-Assigned Managed Identity > created with least-privilege RBAC assignments: Blob Data Reader (input), Blob > Data Contributor (output), Cognitive Services OpenAI User (specific OpenAI > resource), Key Vault Secrets User (designated vault), Monitoring Metrics > Publisher (designated workspace) | Your Security Team | | Confirmed: identity > has no subscription-level roles and no access to resources outside explicitly > scoped assignments | Your Security Team | > [accordion] AI Inference & Guardrails (2 items) > > \| checklist item | owner | | --- | --- | | Azure OpenAI resource provisioned > within your Azure tenant (not shared/public endpoint); Azure AI Foundry hub > configured | Your AI Platform Team | | Azure AI Content Safety policy > configured: harm category classifiers enabled, Prompt Shield enabled, custom > blocklists added as required | Your AI Platform Team | > [accordion] Observability & Audit (2 items) > > \| checklist item | owner | | --- | --- | | Log Analytics Workspace configured > with 7-year retention and immutability policy; Azure Monitor export to Azure > Storage with lifecycle management to archive tier enabled | Your Platform > Engineering | | Azure Monitor Alerts configured for agent health degradation, > queue depth breach, and SLA breach — with on-call operations notification > routing | Your Platform Engineering | > [accordion] CI/CD Pipeline (1 item) > > \| checklist item | owner | | --- | --- | | Azure DevOps (or GitHub Actions) > pipeline gates configured for container image promotion: Defender scan gate, > regression test gate, approval gate, and post-deploy monitoring window | Your > Platform Engineering | *** ## 11.3 Key contacts | contact | role | | - | - | | **Layerup Implementation Lead** | Primary point of contact for AOP onboarding, integration design, and deployment support. Engaged throughout the implementation phase. | | **Layerup Solutions Engineering** | Technical resource for cloud architecture questions, IAM policy review, data pipeline integration design, and VPC / VNet topology guidance. | | **Layerup Security Team** | Available to participate in your vendor security review process. Provides SOC 2 Type II report, penetration test results, SBOM documentation, and Cosign signature verification guidance under NDA. | > [!NOTE] > > All Layerup personnel access during the implementation engagement is performed > via a time-limited, audited IAM role / Azure PIM assignment that is explicitly > revoked upon production go-live. Your security team controls the revocation. > After go-live, no Layerup personnel hold access credentials to your production > environment. # Confidence Engine Source: https://docs.uselayerup.com/agents/confidence/engine The confidence engine is the backbone of every Layerup AI Agent recommendation — a multi-signal, evidence-grounded scoring system that governs whether a case is resolved, flagged, or escalated to a human underwriter. # 11 — Confidence engine — multi-signal scoring, threshold-governed escalation & audit-grounded reproducibility. Every output the Layerup AI Agent produces carries a confidence score. That score is not cosmetic. It is the operative signal that determines whether a case is auto-resolved, surfaced for underwriter review, or mandatorily escalated — and it is the primary control that prevents the agent from making a consequential recommendation it is not entitled to make. The confidence engine is designed around a single governing principle: **an artificially high confidence score is more dangerous than an artificially low one.** A suppressed score triggers a human review. An inflated score allows a case through that should not have passed. If confidence scores cannot be trusted to reflect genuine evidential quality, the agent's recommendations cannot be trusted — and the product's value proposition collapses with them. This section is addressed to your Underwriting Governance, Information Security, and Internal Audit teams. It describes how the confidence score is computed, what suppresses it, how thresholds govern agent behavior, and how the architecture addresses the legitimate enterprise concern about score reproducibility. *** ## 11.1 How the confidence score is computed The confidence score is not a single number returned by a foundation model. It is a **weighted composite** assembled from independently evaluated signal streams — one for each evidence domain the agent is configured to assess. Each stream produces its own sub-score. Those sub-scores are aggregated, normalized, and evaluated against your configured threshold tiers before any output is assembled. The evidence domains evaluated in every case are: | domain | what the engine assesses | | - | - | | **AOP Coverage** | Whether every material fact in this case has an applicable, unambiguous rule in the Agent Operating Procedure. | | **Document Extraction Quality** | The OCR and text-extraction confidence across all submitted documents, weighted by how critical each document is to the recommendation. | | **Cross-Evidence Consistency** | Whether the extracted facts across all documents, application form, and third-party data sources are internally coherent — no conflicting values for the same material fact. | | **Inference Quality** | The foundation model's own uncertainty signal across reasoning steps, plus any guardrail interventions that introduced gaps in the reasoning context. | | **External Data Alignment** | Whether third-party data sources (MIB, Rx history, motor vehicle records) are reconcilable with the submitted document set. | Each domain score is independently computed and independently logged. The composite confidence score is the weighted aggregate of these domain scores, with detractor penalties applied for each identified signal of ambiguity, conflict, or unresolvable uncertainty. > [!WARNING] > > The confidence score is never a direct LLM opinion about how confident it > feels. It is the output of a structured detractor model: a defined set of > signals, each with a logged value, an evidence citation, and a weighted > contribution to the composite. Every suppression is attributable. Every > attribution is auditable. The engine is designed so that the reasoning behind > a score of 68 is as legible as the recommendation itself. *** ## 11.2 Confidence detractors — exhaustive taxonomy The confidence engine operates on a detractor model. The theoretical maximum score for any case is 100. From that maximum, the engine applies suppression penalties for every identified signal of ambiguity, conflict, or unresolvable uncertainty. The composite score is what remains after all applicable detractors are applied. Any factor that prevents the agent from reaching a high-evidence, internally consistent, AOP-grounded conclusion about a material fact is a detractor. The detractors are grouped into four families below. *** ### AOP & Configuration Detractors These detractors fire when the agent's operating configuration itself is the source of uncertainty — either because the AOP does not cover the scenario presented, or because the AOP contains internal contradictions that prevent a deterministic evaluation. > [card] AOP Gap — Undefined Scenario > > The case presents a material fact or combination of facts for which no > applicable rule exists in the AOP. Rather than fabricating an evaluation, > the agent explicitly surfaces the gap and flags it as unresolved. The > absence of a rule is treated as a confidence suppressor, not a licence to > extrapolate. This is by design: an AOP gap is a signal that human > underwriting judgment is required. > [card] Intra-AOP Rule Conflict > > Two or more clauses in the AOP produce contradictory evaluations of the same > material fact. For example, the occupation section classifies a role as > Class 3, while the financial documentation standards section applies > thresholds appropriate for Class 2. The engine cannot produce a coherent > recommendation when the configuration itself is internally inconsistent — > both the conflict and the affected rules are logged in full. > [card] Out-of-Scope Edge Case > > The case involves a pattern that the AOP does not define any coverage for — > not a gap within a covered dimension, but an entire scenario type outside > the AOP's scope. This is distinct from an AOP gap: the AOP has not been > configured to evaluate this scenario at all rather than having an incomplete > rule for a scenario it covers. The agent does not extrapolate beyond its > configured scope under any circumstances. > [card] Missing Escalation Routing > > The AOP specifies that certain conditions should trigger escalation to a > named role, team, or queue that is not found in the configured routing > table. The agent cannot complete output assembly without a valid escalation > target, and the configuration omission itself suppresses confidence on the > affected case dimensions. *** ### Document Extraction Detractors These detractors fire when the quality of the raw document set — or the agent's ability to extract structured data from it — is insufficient to support a high-confidence evaluation of the material facts contained within. > [card] OCR Confidence Below Extraction Floor > > The OCR pipeline cannot extract readable text from a document page at or > above the configured confidence floor. Common causes include poor > handwriting, degraded scan quality, fax artefacts, dot-matrix printing, and > over-compressed image files. The agent does not attempt to reason over > content it cannot extract with sufficient confidence — the affected field is > marked as unresolved and contributes a suppression proportional to that > field's evidentiary weight. > [card] Unsupported or Corrupted Document Format > > The submitted document is in a format the extraction pipeline cannot parse, > or the file itself is structurally corrupted. This includes proprietary > medical record formats, certain legacy EDI document types, and files where > the binary structure does not match the declared MIME type. Corrupted > documents are flagged in the `unprocessed_attachments` list, and any > material facts expected from those documents are treated as unresolved. > [card] Password-Protected or Rights-Managed Document > > The document is encrypted, password-protected, or subject to DRM controls > that prevent the extraction pipeline from reading its content. The agent > logs the document identifier, the protection type, and the expected material > facts it cannot access. These cases require the submitting party to resubmit > in an unprotected format. > [card] Stale or Superseded Document Version > > The document's issue date predates a known SOP revision, regulatory update, > or product line change that the AOP was built to reflect. Content from a > superseded document may apply outdated standards, schedules, or > classification tables — using it without flagging this discrepancy would > introduce silent error. The agent logs the document date, the relevant > revision date, and the specific fields potentially affected. > [card] Translation or Language Extraction Uncertainty > > The submitted document is in a non-primary language and requires machine > translation before extraction. Translation confidence and OCR confidence > compound: a document with 90% OCR accuracy and 90% translation accuracy > produces data points with an effective extraction confidence of > approximately 81% before any further uncertainty is applied. Material facts > extracted from translated documents carry a compounded confidence penalty > proportional to both error rates. > [card] Incomplete Page Set > > The submitted document references pages, exhibits, or attachments that are > not present in the intake packet. The agent can identify this in documents > that contain explicit page counts, continuation references, or exhibits > lists. The missing content is treated as an unresolved evidence gap and > contributes a suppression proportional to the expected materiality of the > missing pages. *** ### Cross-Evidence Consistency Detractors These detractors fire when the agent successfully extracts data from multiple sources but finds that those sources cannot be reconciled into a coherent, internally consistent picture of the material facts. Consistency is evaluated across all document pairs, not just against the application form. > [card] Cross-Document Data Discrepancy > > Two or more source documents state different values for the same material > fact. Examples include a date of birth that differs between the application > form and the APS, an annual income figure that differs between the employer > letter and the tax return, or a diagnosis date that differs between two > treating physician reports. The agent logs the specific field, the > conflicting values, and the source documents for each — it does not resolve > the conflict by choosing the value it deems more credible. > [card] Applicant-Stated vs. Document-Evidenced Mismatch > > The facts stated on the application form cannot be corroborated by — or are > directly contradicted by — the supporting document set. This is one of the > highest-weight detractors in the engine, because an irreconcilable mismatch > between stated and evidenced facts on a material underwriting dimension is a > standalone underwriting concern independent of any other finding. > [card] Conflicting Occupation Representations > > The applicant's occupation is described differently across sources: the job > title on the application, the narrative in the Attending Physician > Statement, the employer letter, and the duty questionnaire cannot be aligned > to a single resolved occupation class. Occupation class is a primary > underwriting driver — irreconcilable occupation representations prevent the > agent from applying the correct risk thresholds and duty mix requirements. > [card] Inconsistent Income Timeline > > The YTD income figures, annualised projections, prior-year tax documents, > and employer letters cannot be arithmetically reconciled within the > tolerance bands defined in the AOP. This includes cases where the implied > YTD run rate is implausible relative to the stated annual income, and cases > where income figures across different document types diverge beyond the > AOP's defined reconciliation tolerance. > [card] Medical History Timeline Inconsistency > > Treatment dates, prescription fill dates, procedure dates, and the narrative > timeline in the Attending Physician Statement cannot be aligned into a > coherent chronological sequence. Timeline inconsistencies in medical > documentation are material underwriting findings in their own right — the > agent logs each inconsistency with the specific dates, the documents each > date was sourced from, and the nature of the conflict. > [card] Third-Party Data Conflict > > A third-party data source — MIB record, prescription drug history report, > motor vehicle report, or equivalent — contains information that is > inconsistent with the applicant's stated history or the submitted supporting > documentation. The agent logs the specific conflicting data points, their > source (third-party vs. submitted), and the severity of the discrepancy > under the AOP's defined conflict-severity rubric. > [card] Implausible or Anomalous Value > > An extracted value — income, age at diagnosis, treatment duration, claim > amount — falls outside the range of statistically plausible values for the > applicant's stated occupation class, age, or condition profile as defined in > the AOP's reference tables. The agent does not reject the value — it flags > it as requiring human scrutiny and applies a suppression proportional to the > degree of departure from the expected range. > [card] Reinsurance Treaty Boundary Case > > The case characteristics place it on or near a boundary defined in the > applicable reinsurance treaty — for example, a benefit amount or occupation > class that sits at the edge of a treaty's automatic acceptance limits. The > treaty boundary is explicitly configured in the AOP; cases within the > defined margin of that boundary receive a confidence suppression because the > correct treaty disposition cannot be determined without direct reinsurer > consultation. *** ### Inference & Reasoning Detractors These detractors fire when the reasoning process itself introduces uncertainty — either from the foundation model's own internal signal quality, from guardrail interventions that created gaps in reasoning context, or from structural ambiguities in the case that prevent the agent from reaching a deterministic conclusion under its configured rules. > [card] Model Uncertainty Signal > > The foundation model's own inference uncertainty indicator — expressed as > response hedging, low-confidence phrasing, or explicit qualification in the > reasoning chain — falls below the configured floor for a given reasoning > step. This is not the composite confidence score: it is the model's internal > signal about its own output quality on a specific sub-question. When the > model is uncertain about a conclusion, the engine treats that uncertainty as > a first-class signal rather than discarding it. > [card] Guardrail Partial Intervention > > An Amazon Bedrock Guardrail or Azure AI Content Safety policy redacted or > modified part of an inference input or output during a reasoning step. Even > where the guardrail did not block the step entirely, a partial intervention > creates a gap in the reasoning context: the model completed its reasoning on > a modified version of the input, and the agent cannot determine with > certainty what was altered. The intervention is logged in full; the affected > reasoning step carries a confidence suppression. > [card] Incomplete Duty Mix Resolution > > The available evidence is insufficient to break down the applicant's > occupational duty mix — the percentage split between manual, supervisory, > and clerical functions — to the granularity the AOP requires for the > applicable occupation class. Duty mix is a primary driver of disability risk > classification; an unresolved duty mix prevents the agent from applying the > correct thresholds and results in a confidence suppression on the occupation > analysis dimension. > [card] Unresolvable Requirement > > The agent determines that a specific piece of documentation is required > under the AOP to reach a recommendation on a material dimension, but that > document cannot be obtained through any available channel — for example, an > Attending Physician Statement from a treating physician whose practice has > closed. The requirement is surfaced explicitly; the agent does not > substitute alternative evidence for a document the AOP designates as > mandatory. > [card] Multi-Jurisdiction Complexity > > The case involves material facts — licensing, occupation classification, > regulatory limits, benefit amounts — that span multiple states or countries > where applicable rules differ and the correct jurisdiction cannot be > determined from available documentation. The agent logs each jurisdictional > ambiguity and the specific rules that conflict; it does not apply a single > jurisdiction's rules to a case where that selection is itself unresolved. > [card] Compounded Uncertainty Cascade > > Multiple individually moderate detractors, when combined, produce a > cascading suppression that is materially larger than the sum of their > individual penalties. The engine detects when detractors are correlated — > for example, an OCR confidence issue on the primary income document combined > with a cross-document income discrepancy — and applies a cascade multiplier > that reflects the compounded evidentiary weakness rather than treating each > detractor as independent. *** ## 11.3 Confidence engine architecture ```mermaid theme={null} flowchart LR subgraph signals [Signal Streams] AOP[AOP Coverage
Gap · Conflict · Scope] DOC[Document Extraction
OCR · Format · Completeness] XEVID[Cross-Evidence
Consistency · Discrepancy · Anomaly] INF[Inference Quality
Model Signal · Guardrail · Duty Mix] EXT[External Data
MIB · Rx · MVR Alignment] end subgraph engine [Confidence Engine] AGG[Weighted Signal
Aggregator] DET[Detractor
Normaliser] CMP[Composite Score
0 – 100] end subgraph routing [Threshold Routing] THR{Score vs.
Configured Tiers} AUTO[Auto-Resolve
Full Recommendation] SOFT[Soft Review
Partial + Flags] HARD[Hard Escalation
Senior Underwriter] end AOP --> AGG DOC --> AGG XEVID --> AGG INF --> AGG EXT --> AGG AGG --> DET DET --> CMP CMP --> THR THR -->|"High tier"| AUTO THR -->|"Mid tier"| SOFT THR -->|"Below floor"| HARD classDef stream fill:#fafafa,stroke:#111,color:#111; classDef core fill:#f4f4f2,stroke:#111,color:#111; classDef outcome fill:#fafafa,stroke:#111,color:#111; class AOP,DOC,XEVID,INF,EXT stream; class AGG,DET,CMP core; class AUTO,SOFT,HARD outcome; ``` *Fig. A12.1 — Confidence engine architecture. Five independently evaluated signal streams feed a weighted aggregator. Detractor penalties are applied by the normalizer before the composite score is evaluated against your configured threshold tiers. Each stream's contribution and each detractor's penalty are individually logged against the case.* *** ## 11.4 Threshold configuration & escalation tiers The confidence engine evaluates the composite score against **two configurable thresholds** defined in the AOP: a high threshold and a low threshold. These two values divide the score range into three tiers, each with a distinct agent behavior. | tier | score range | agent behavior | | - | - | - | | **Auto-Resolve** | ≥ high threshold (e.g., ≥ 90) | Full or partial recommendation issued with evidence citations. No mandatory human review. Flags are included for any dimension with a non-zero detractor, but the recommendation is considered actionable by the underwriter at their discretion. | | **Soft Review** | Between low and high thresholds (e.g., 75–89) | Partial recommendation with explicit flags issued. The case is surfaced in the underwriter's review queue for optional but encouraged human review. All detractor signals and their evidence are visible in the case record. | | **Hard Escalation** | \< low threshold (e.g., \< 75) | No recommendation is issued. The case is mandatorily routed to a senior underwriter with the full confidence signal breakdown, escalation reasons, open questions, and all available evidence citations. The agent does not produce a recommendation under these conditions. | > [!NOTE] > > Threshold values are set in the AOP, not in the container image. This means > different product lines, distribution channels, or regulatory jurisdictions > can carry different threshold configurations under separate AOP versions — all > managed through your standard AOP governance workflow (see 9). The escalation > logic that enforces these thresholds is hard-coded in the agent's output > assembly layer and cannot be bypassed by AOP configuration. > [!WARNING] > > A critical data point failure — where a material underwriting dimension cannot > be evaluated at all due to document absence, total OCR failure, or > irreconcilable inconsistency — triggers hard escalation regardless of the > composite confidence score. The score threshold is the floor; a critical > extraction failure is an unconditional ceiling. See 8 for the full escalation > gate protocol. *** ## 11.5 Score reproducibility — two structural features Enterprise customers consistently raise a legitimate question: if the confidence score is produced by a reasoning workload that incorporates a foundation model, how can it be trusted to be reproducible and auditable? This concern deserves a precise answer. Nondeterminism in the context of confidence scoring conflates two distinct phenomena that require different responses: * **Score variance from changing inputs** — the AOP is updated, a new document is added, the model version changes, or the case facts are genuinely different. Score variance in this case is *correct and expected*. A system that produces the same score regardless of input changes is the more dangerous product. * **Score variance from identical inputs** — the same case, the same AOP version, the same model version, the same document set produces materially different scores across runs. This is the legitimate concern. The confidence engine addresses the second phenomenon through two structural features. *** ### 11.5.1 Confidence signal lineage report Every case output includes a `confidence_signal_breakdown` object alongside the composite score. This object decomposes the composite into its constituent signal contributions — showing not just the final number, but every suppression that produced it. ```json theme={null} { "confidence_signal_breakdown": { "composite_score": 72, "signals": [ { "domain": "cross_evidence_consistency", "domain_score": 61, "weight": 0.3, "detractors": [ { "type": "cross_document_data_discrepancy", "severity": "high", "affected_field": "annual_income", "suppression_applied": 22, "sources": [ { "document": "tax_return_2024.pdf", "page": 1, "extracted_value": "142000" }, { "document": "employer_letter.pdf", "page": 1, "extracted_value": "118500" } ] } ] }, { "domain": "document_extraction_quality", "domain_score": 84, "weight": 0.2, "detractors": [ { "type": "ocr_below_extraction_floor", "severity": "moderate", "affected_field": "attending_physician_signature", "suppression_applied": 11, "sources": [ { "document": "aps_dr_chen.pdf", "page": 4, "ocr_confidence": 0.61 } ] } ] } ] } } ``` Every detractor in the breakdown is evidence-grounded: it names the source document, the page, the extracted value (or the OCR confidence), and the suppression it contributed. A score of 72 is not a black box — it is the precise, traceable sum of every ambiguity the engine identified. This means: * If two runs of the same case produce different scores, the lineage report shows exactly which signal changed, which detractor fired differently, and which source document drove the difference. * Your internal audit team can reconstruct the full scoring rationale for any historical case — at the signal level, not just the recommendation level — without re-running the agent. * Regulatory examiners reviewing a historical decision have access to the complete chain of evidence from raw OCR confidence to composite score to recommendation. > [!NOTE] > > The signal lineage report is written to both the output payload and your > CloudWatch / Azure Monitor audit log simultaneously. It is not a separate > query or a post-hoc report — it is a first-class output artefact logged at the > same time as the recommendation (see 7). *** ### 11.5.2 AOP-anchored reproducibility validation The CI/CD test harness (see 10) runs the agent against a versioned set of historical validation cases before any AOP promotion. For confidence scoring specifically, the harness does not only check whether the binary recommendation matches the historical outcome — it captures the **full score distribution** across the validation case set and compares it against the certified baseline distribution established at AOP certification. Before any AOP version is promoted to production, the harness must confirm that: 1. The composite score distribution across the validation set falls within the defined tolerance band relative to the certified baseline (configurable; default: ± 3 points on mean, ± 5 points on p10/p90). 2. No individual validation case produces a score that deviates by more than the defined per-case tolerance from its baseline (configurable; default: ± 8 points). 3. The proportion of cases in each tier — auto-resolve, soft review, hard escalation — does not shift by more than the defined tier-distribution tolerance (configurable; default: ± 5 percentage points per tier). A failure on any of these checks blocks the AOP promotion and generates a structured review report itemising each out-of-tolerance case, the detractors that changed, and the AOP delta responsible for the change. The certified baseline distribution is stored as a version-controlled artefact in your source control system alongside the AOP itself. It is updated only when a new AOP version is explicitly certified by your underwriting governance lead — it is never auto-updated by the harness. > [!WARNING] > > A score distribution that is consistently concentrated in the high tier is not > evidence of a well-calibrated AOP — it may be evidence of a permissive > configuration that is failing to suppress scores for genuinely ambiguous > cases. Layerup's implementation team reviews the certified baseline > distribution as part of every white-glove AOP update and will flag any > distribution that shows implausible concentration above the high threshold. *** ## 11.6 Confidence score in the output payload The confidence score and its signal lineage are surfaced in two locations within the output payload (see 6 for the full output schema). | field | location in payload | description | | - | - | - | | `confidence_score` | `ai_recommendation.confidence_score` | 0–100 integer. The composite score after all detractor penalties are applied. Cases below the configured low threshold receive `Escalate to Senior Underwriter` as the `decision` value. | | `confidence_signal_breakdown` | `ai_recommendation.confidence_signal_breakdown` | Decomposed signal breakdown object. One entry per evaluated domain, each with domain score, weight, and detractor array with source citations. | | `escalation_reasons` | `escalation_flag.escalation_reasons` | Structured list of the specific detractors that contributed to escalation, cross-referenced to the signals in `confidence_signal_breakdown`. Where the escalation was triggered by a critical data point failure rather than a threshold breach, the specific failure is enumerated here. | The relationship between these three fields forms the complete audit chain for any individual case decision: the composite score is explained by the signal breakdown, and the escalation reasons reference the specific signals that crossed the escalation threshold — giving your underwriting team, your compliance officers, and your internal auditors a single coherent artefact that traces from raw document evidence to final recommendation disposition. # Output Schema & Write-Back Source: https://docs.uselayerup.com/agents/data/output The structured JSON output payload produced by Layerup AI Agents — nine top-level objects, fully machine-readable — and the write-back integration patterns for delivering it to your systems of record. # 6 — Output schema & write-back — structured payload design & systems-of-record integration. The Layerup AI Agent produces a fully structured JSON payload upon completion of each case. This payload is the machine-readable representation of every dimension of the agent's analysis — recommendation, confidence, evidence, flags, and open questions. Your downstream systems of record consume this payload via API or direct S3 read, using whichever integration pattern fits your existing architecture. *** ## 6.1 Output payload structure — nine top-level objects The output JSON payload is designed to be human-reviewable at the operator console and machine-readable at the systems-of-record integration layer simultaneously. ```json theme={null} { "case_metadata": { ... }, "ai_recommendation": { ... }, "occupation_analysis": { ... }, "financial_analysis": { ... }, "medical_analysis": { ... }, "requirements": [ ... ], "evidence_citations": [ ... ], "open_questions": [ ... ], "escalation_flag": { ... } } ``` ### `case_metadata` Traceability envelope for the case. Every field required to reconstruct the agent's state at the time of processing. | field | description | | - | - | | `case_id` | Unique case identifier, correlated with your intake system. | | `applicant_id` | Anonymised / pseudonymised applicant identifier as configured. | | `processing_timestamps` | ISO 8601 timestamps for intake, processing start, and completion, with millisecond precision. | | `agent_version` | Semantic version of the Layerup agent container image (e.g., `1.4.2`). | | `aop_version` | Semantic version of the Agent Operating Procedure active at time of processing. | | `model_version` | Model identifier and version for the foundation model invoked, per reasoning step. | ### `ai_recommendation` The agent's top-level underwriting recommendation and confidence posture. | field | description | | - | - | | `decision` | One of: `Approve` · `Defer Pending Requirements` · `Decline` · `Escalate to Senior Underwriter` | | `confidence_score` | 0–100 integer. Cases below your configured threshold (default: 75) automatically receive `Escalate to Senior Underwriter`. | | `reasoning_summary` | Natural-language summary of the reasoning chain that produced the recommendation. Evidence-grounded and cross-referenced to source documents. | ### `occupation_analysis` | field | description | | - | - | | `submitted_occupation` | Occupation as stated by the applicant. | | `resolved_classification` | Resolved occupation class under your classification manual. | | `mismatch_flags` | Discrepancies between submitted occupation and evidence in supporting documents, with severity ratings. | | `duty_mix_breakdown` | Percentage breakdown of manual, supervisory, and clerical duty components, where determinable. | | `occupation_risk_score` | Relative risk score under your configured occupation class table. | ### `financial_analysis` | field | description | | - | - | | `income_sources` | Extracted income streams with source document citations. | | `income_quality_score` | Documentation sufficiency score across all income sources. | | `documentation_sufficiency_score` | Overall financial documentation adequacy rating. | | `yoy_trends` | Year-over-year income trends where multi-year documentation is available. | | `financial_flags` | Specific financial anomalies with severity scores (e.g., implausible YTD amounts, missing documentation, inconsistent income representations). | ### `medical_analysis` | field | description | | - | - | | `medical_history_summary` | Evidence-grounded narrative summary of the applicant's medical history as extracted from all available documents. | | `risk_drivers` | Identified medical underwriting risk drivers with severity ratings (Low · Moderate · High). | | `identified_medications` | Medication list extracted from Rx history and APS documents. | | `flagged_inconsistencies` | Conflicts or anomalies across medical documents with severity scores. | | `missing_records` | Records expected under the AOP configuration but not found in the submitted document set. | ### `requirements` Ordered list of requirements the agent determines cannot be waived given available documentation. Each requirement object contains: * The specific requirement (e.g., "Attending Physician Statement from treating cardiologist"). * The agent's evidence-grounded reasoning for why it is required. * A suggested due date, if applicable under your AOP configuration. ### `evidence_citations` For every extracted data point and every flag raised, a structured citation object references the source with precision: | field | description | | - | - | | `source_document` | Document filename as received in the intake packet. | | `page_number` | Page number within the document. | | `section` | Section or region identifier within the page. | | `extracted_text` | Verbatim extracted text snippet supporting the data point or flag. | | `ocr_confidence` | OCR confidence score for this extraction, where applicable. | > [!NOTE] > > Evidence citations are attached to every data point — not just flags. This > means your underwriting team can trace any value in the recommendation back to > the exact text in the exact page of the exact document from which it was > extracted. ### `open_questions` Natural-language list of questions the agent determines remain unanswered after reviewing all available documents. Each open question is grounded in a specific evidence gap — the agent does not generate speculative questions beyond what the document set and AOP configuration define as required. ### `escalation_flag` | field | description | | - | - | | `escalated` | Boolean. `true` if the agent is routing the case to senior underwriter review. | | `escalation_reasons` | Structured list of specific reasons (low confidence · critical extraction failure · edge case outside AOP · specific rule triggers). | | `escalation_routing` | Queue or routing target for the escalated case, as configured in the AOP. | *** ## 6.2 Write-back integration patterns Your IT team integrates the agent's output payload using whichever of the following patterns fits your existing system architecture. The agent supports all three simultaneously — you select the appropriate pattern per downstream consumer. > [card] S3 Drop + Lambda Consumer > > The agent writes the output JSON to a designated S3 output prefix. An S3 event trigger invokes a Lambda function that reads the payload and updates your policy administration system or CRM via its internal API. Recommended for teams already using event-driven Lambda patterns for system-of-record updates. > [card] Direct API Callback > > The agent POSTs the completed output payload to a designated internal HTTPS > endpoint (e.g., your internal microservice endpoint within the VPC) upon case > completion. The endpoint must be within the VPC and reachable without public > internet routing. Recommended for synchronous CRM integration patterns. > [card] Queue-Based Handoff > > The agent writes a completion notification to an SQS queue (AWS) or Service > Bus topic (Azure), allowing your downstream system to poll and consume at its > own pace. Recommended for downstream systems with their own processing > schedules or rate limits. > [card] Direct S3 Read > > Your downstream system reads the output JSON directly from the designated S3 output prefix on a schedule or in response to the SQS completion notification. Simplest integration pattern for systems that already have S3 read capabilities. ```mermaid theme={null} flowchart LR AGT[Agent Container] --> PAYLOAD[Output JSON Payload
Structured + evidence-cited] PAYLOAD --> S3OUT[S3 Output Bucket] S3OUT -->|S3 event| LMB[Lambda Consumer
→ Policy Admin API] S3OUT -->|direct read| SOR1[Policy Admin System] AGT -->|POST callback| SVC[Internal Microservice
within VPC] AGT -->|completion event| SQS[SQS / Service Bus
Completion Queue] SQS --> SOR2[CRM / DMS] classDef out fill:#f4f4f2,stroke:#111,color:#111; class PAYLOAD,S3OUT out; ``` *Fig. A6.1 — Write-back integration patterns. All patterns route output exclusively within your VPC boundary. No output copy is sent to Layerup's infrastructure.* # Data Pipeline & Ingestion Source: https://docs.uselayerup.com/agents/data/pipeline End-to-end data flow architecture, event-driven ingestion triggers, multi-document context assembly, OCR pipeline, third-party feed integration, and ambiguity flagging — all within your network boundary. # 5 — Data pipeline & ingestion — end-to-end flow, event-driven triggers & document intelligence. This section explains how application data flows into the Layerup AI Agent, how the agent processes that data, and how it surfaces structured intelligence back to your systems of record. The entire pipeline is event-driven, integrates with your existing cloud-native infrastructure, and at no point requires data to leave your network boundary. *** ## 5.1 End-to-end data flow — the full lifecycle of a single case The following describes the complete lifecycle of a single application case as it flows through the Layerup agent in an AWS environment. The Azure equivalent is structurally identical, with Azure service equivalents substituted at each stage. | stage | description | | - | - | | **Step 1 — Intake** | An application packet (PDFs, medical records, Rx history, APS documents, financial statements) arrives at your existing intake system. The packet is stored in the designated S3 input bucket and an intake metadata record is written to an SQS message. | | **Step 2 — Trigger** | An EventBridge rule (or the SQS trigger directly) detects the new SQS message and triggers the Layerup agent container execution, passing the S3 object key(s) as parameters. | | **Step 3 — Document Retrieval** | The agent's container reads the application documents from S3 using its scoped IAM role. Documents never leave your S3 environment; the agent pulls them into its isolated execution memory. | | **Step 4 — Ingestion & Normalisation** | The agent's ingestion layer processes each document: PDFs are parsed (including scanned / OCR documents), data is extracted, normalized against the underwriting configuration schema, and structured for reasoning. | | **Step 5 — LLM Reasoning (via Bedrock)** | The agent constructs prompts against its configured Agent Operating Procedure (AOP) and invokes the designated foundation model via Amazon Bedrock's private VPC endpoint. Bedrock Guardrails are applied at this layer. | | **Step 6 — Structured Output Generation** | The agent assembles its final structured output: the underwriting recommendation, confidence score, flagged inconsistencies, evidence citations, open questions, and requirement list. | | **Step 7 — Write-Back** | The output JSON payload is written to your designated S3 output bucket. Simultaneously, a completion event is written to SQS / EventBridge, which your downstream system (policy admin, CRM) consumes to update the case status. | | **Step 8 — Audit Logging** | All agent reasoning steps, tool invocations, source citations, and model responses are written to CloudWatch Logs in structured JSON format for audit and compliance review. | ```mermaid theme={null} flowchart TD subgraph intake ["Your Intake System"] DOC[Application Packet
PDFs · APS · Rx · Financials] S3IN[S3 Input Bucket
CMK-encrypted] SQS1[SQS Intake Queue] end subgraph agent ["Agent Compute — Private Subnet"] AGT[Agent Container
Bedrock AgentCore / ECS Fargate] AOP[(Agent Operating Procedure)] subgraph processing ["Document Intelligence Layer"] OCR[Multi-pass OCR Pipeline] NORM[Normalisation & Schema Mapping] CTX[Unified Case Context Assembly] end subgraph reasoning ["LLM Reasoning Layer"] BDR[Amazon Bedrock VPC Endpoint] GRL[Bedrock Guardrails] RSN[Reasoning Loop
Occupation · Financial · Medical] end end subgraph output ["Your Output Layer"] S3OUT[S3 Output Bucket
Structured JSON] SQS2[SQS Completion Queue] CWL[CloudWatch Logs
Step-level audit trail] SOR[Systems of Record
Policy Admin · CRM · DMS] end DOC --> S3IN --> SQS1 SQS1 -->|trigger| AGT AGT --> OCR --> NORM --> CTX AOP --> AGT CTX --> RSN RSN <--> BDR BDR <--> GRL RSN --> S3OUT & SQS2 & CWL SQS2 --> SOR classDef boundary fill:#fafafa,stroke:#111,stroke-width:1.5px,color:#111; classDef store fill:#f4f4f2,stroke:#111,color:#111; class intake,agent,output,processing,reasoning boundary; class S3IN,S3OUT,CWL,SQS1,SQS2,AOP store; ``` *Fig. A5.1 — End-to-end data flow. Every stage executes within your network boundary. No data transits to Layerup's infrastructure at any point.* *** ## 5.2 Ingestion mechanisms — event-driven, no polling required The Layerup agent is triggered by events within your existing event infrastructure. No polling mechanism is required. Supported trigger patterns include: ### 5.2.1 Event-driven architecture > [card] AWS SQS + S3 Event Notifications > > When a new application packet is uploaded to the designated S3 input bucket, S3 publishes an event notification to an SQS queue. The agent's ECS Service or AgentCore Runtime is configured with an SQS trigger that automatically starts a new agent task for each message. This is the recommended trigger pattern for most workloads. > [card] AWS EventBridge > > For more complex routing logic (e.g., routing different application types to > different agent configurations or versions), EventBridge Rules filter S3 > events by prefix, metadata tag, or application type, and route each to the > appropriate agent version. Useful when multiple agent configurations handle > distinct case types. > [card] API Gateway (Synchronous) > > If your existing workflow system requires synchronous invocation (i.e., it > calls an endpoint and waits for a response), an API Gateway endpoint can be > placed in front of the agent, with a Lambda function handling the > async-to-sync bridge. Given typical processing times of 7–55 minutes, the > asynchronous pattern with a callback webhook is generally preferred for > production workloads. > [card] Azure Service Bus + Blob Trigger > > On Azure, Blob Storage triggers an Azure Service Bus message on new document upload. Azure Container Apps' KEDA (Kubernetes Event-Driven Autoscaling) consumes the Service Bus queue and scales agent container instances accordingly. Structurally equivalent to the SQS + S3 Event Notifications pattern on AWS. ### 5.2.2 Handling unstructured and poor-quality documents A core capability of the Layerup AI Agents is the ability to ingest and extract meaningful intelligence from the imperfect document formats endemic to the insurance industry. **Multi-pass OCR pipeline** — Scanned PDFs and handwritten documents are processed through a multi-pass OCR pipeline before LLM reasoning. The OCR output is normalized and confidence-scored before being passed to the reasoning layer. Low-confidence OCR extractions are flagged as uncertain in the agent's evidence citations — the agent does not silently propagate low-quality extractions into its reasoning. Certified field-level extraction accuracy on the OCR-degraded validation segment — the same methodology used on every workflow page — for the document classes that most often break traditional OCR: | document class | field-level extraction accuracy | extraction floor hit rate | | - | - | - | | Bank statements (variable layout) | 98.8% | 0.8% | | Pay stubs (employer-specific) | 98.9% | 0.7% | | W-2 forms | 99.2% | 0.4% | | Credit reports (tri-merge) | 98.6% | 1.0% | | Tax returns (1040 + schedules) | 99.1% | 0.5% | | Handwritten letters / wet-ink | 98.1% | 1.4% | | Standard printed PDFs | 99.8% | 0.1% | Per-workflow tables, including the full mortgage insurance loan-file mix, live on the agent pages — start with [Mortgage Insurance Underwriting](/agents/workflows/mortgage-insurance-underwriting). Platform-level pipeline detail is in [Data Plane — Ingestion §7.10](/data/ingestion). **Multi-document context assembly** — The agent's ingestion layer reads across multiple documents simultaneously (application form, APS, Rx history, financial statements, attending physician statements) and constructs a unified case context. Cross-document inconsistencies — for example, a reported occupation on the application form that contradicts the duties described in a supporting job letter — are surfaced proactively in the agent's output. **Third-party data feed integration** — Structured data from licensed third-party providers (Milliman, pharmacy claims databases, MIB) can be integrated via direct API connector or scheduled file drop, depending on the provider's delivery mechanism. The agent's ingestion layer normalizes these feeds into its unified case schema alongside the unstructured documents from your intake system. **Ambiguity flagging** — When document quality or clarity prevents confident extraction, the agent flags the specific field as uncertain rather than hallucinating a value. These flags are surfaced in the requirements and evidence citation layers of the output payload, directing the human underwriter to the specific document and field requiring manual review. ```mermaid theme={null} flowchart LR subgraph docs ["Input Documents"] PDF[Scanned PDFs] APS[Attending Physician
Statements] RX[Rx History] FIN[Financial Statements] TPD[Third-party Data
MIB · Milliman · Pharmacy DB] end subgraph ingestion ["Ingestion & Normalisation Layer"] OCR[Multi-pass OCR
confidence-scored] PARSE[Document Parser
layout · tables · fields] NORM[Schema Normalisation
unified case schema] FLAG[Ambiguity Flagger
uncertain fields marked] CROSS[Cross-document
Inconsistency Detector] CTX[Unified Case Context] end PDF & APS & RX & FIN --> OCR --> PARSE --> NORM TPD --> NORM NORM --> FLAG & CROSS --> CTX classDef layer fill:#fafafa,stroke:#111,color:#111; class docs,ingestion layer; ``` *Fig. A5.2 — Ingestion layer architecture. Every document type — structured or unstructured, clean or degraded — passes through the same normalisation and ambiguity-flagging pipeline before entering the reasoning layer.* *** ## 5.3 Staged integration patterns Most organizations do not begin with a fully automated end-to-end deployment. They adopt the agent progressively — starting with manual case submission and advancing toward full system integration as confidence is established and IT integration work matures. The three stages below represent the typical adoption path. Each stage is a production-ready deployment, not a prototype — organizations may choose to remain at any stage indefinitely depending on their workflow requirements. *** ### Stage 1 — Manual / standalone (dashboard-first) **What it is:** Your underwriting team submits cases directly through the [companion dashboard](/agents/deployment/dashboard). Documents are uploaded manually, the agent processes the case, and the underwriter reviews the structured output in the dashboard UI. No connection to your existing policy administration system, DMS, or CRM is required. **When to use it:** When you want to begin using the agent immediately without waiting for downstream integration work to complete. This is the fastest path to your team seeing real agent output on real cases. **What your IT team needs to set up:** * Deploy the agent container and dashboard container into your VPC * Configure the S3 input/output buckets and SQS intake/completion queues * Set up Internal ALB and VPN access for your underwriting team * No changes to your existing policy admin system or workflow routing **Data flow:** ```mermaid theme={null} flowchart LR UW[Underwriter] -->|"uploads docs + submits"| DASH[Dashboard] DASH -->|"S3 + SQS"| AGT[Agent] AGT -->|"structured output"| S3OUT[S3 Output] S3OUT -->|"output review"| DASH UW -->|"reviews output in dashboard"| DASH ``` **Limitation:** Case submission is manual. Volume is bounded by the number of underwriters actively using the dashboard. No automated handoff to your policy admin system. *** ### Stage 2 — Queue-triggered (system-initiated, output consumed manually or via polling) **What it is:** Your existing workflow system automatically enqueues new cases to the SQS intake queue when a submission arrives. The agent processes cases without any manual trigger. Output is written to the S3 output bucket and a completion event is published to the SQS completion queue. Your downstream system either polls S3 for the output JSON or subscribes to the completion queue. **When to use it:** When your intake system can be updated to write an SQS message on new case submission, but your policy admin system is not yet capable of consuming structured JSON output from S3 or a webhook in real time. The dashboard can remain deployed at this stage as an output review interface — your underwriters see processed cases there even though submission is now automated. **What your IT team needs to set up:** * Stage 1 infrastructure (agent container, S3 buckets, SQS queues) * Update your intake system or policy admin system to write an SQS message on new case submission (a single event publish call) * Optionally: update your downstream system to subscribe to the SQS completion queue and pull output from S3 **Data flow:** ```mermaid theme={null} flowchart LR WS[Workflow System\nNew submission event] -->|"enqueue to SQS"| SQS[SQS Intake Queue] SQS -->|"trigger"| AGT[Agent] AGT -->|"write output"| S3OUT[S3 Output] AGT -->|"completion event"| SQS2[SQS Completion Queue] SQS2 -->|"consume"| PA[Policy Admin\nor Downstream System] S3OUT -.->|"optional: poll or review in dashboard"| DASH[Dashboard] ``` **Limitation:** Output consumption may still be semi-manual if your downstream system is not yet subscribed to the completion queue. Cases may require an underwriter to retrieve the output from S3 or the dashboard and manually update the policy admin system. *** ### Stage 3 — Full automation (end-to-end, no manual touchpoint below confidence threshold) **What it is:** The complete automated loop. New business submissions trigger the agent automatically; the agent's structured output is written to S3 and consumed by your policy admin system via the completion queue in real time. Cases above the configured high-confidence threshold are handled according to your auto-resolve policy (see [Confidence Engine](/agents/confidence/engine) for threshold configuration). Cases below threshold route to your underwriter queue for human review. No manual touchpoint occurs for auto-resolved cases. **When to use it:** When your downstream systems can consume structured JSON output from S3 or via webhook, your underwriting governance team has validated auto-resolve thresholds on real production data, and your team has completed Phase 1–2 of the [CI/CD rollout lifecycle](/agents/lifecycle/cicd). **What your IT team needs to set up:** * Stage 2 infrastructure * Full SQS completion queue integration with your policy admin system (read output JSON from S3 and apply disposition) * Webhook or queue-based routing of below-threshold cases to your underwriter review queue * Ongoing monitoring of auto-resolve rate and error rate via CloudWatch dashboards **Data flow:** ```mermaid theme={null} flowchart LR SUB[New Business Submission] -->|"automatic"| WS[Workflow System] WS -->|"S3 + SQS"| AGT[Agent] AGT -->|"output JSON"| S3OUT[S3 Output] AGT -->|"completion event"| SQS2[SQS Completion Queue] SQS2 --> ROUTER{Confidence\nthreshold?} ROUTER -->|"above threshold\nauto-resolve"| PA[Policy Admin\nApply disposition] ROUTER -->|"below threshold\nhuman review"| UW[Underwriter Queue] UW -->|"review + override"| PA ``` **Limitation:** Requires the most IT coordination and the most governance validation before go-live. Do not skip Stage 1 and Stage 2 — the calibration data you collect in those stages is what validates your auto-resolve threshold before full automation is appropriate. *** ### Choosing your starting stage | constraint | recommended starting stage | | - | - | | No IT integration resources available right now | Stage 1 — dashboard only | | Intake system can publish an SQS event; policy admin not yet ready | Stage 2 — queue-triggered | | Full system integration complete; governance team has validated thresholds | Stage 3 — full automation | | Piloting across two lines with different IT maturity | Stage 1 for one line, Stage 2 for the other — independently configured | > [!NOTE] > > Stages are not mutually exclusive across lines of business. You can run Stage > 1 for a new line and Stage 3 for a mature line in the same AWS account and the > same VPC — each line has its own SQS queues, S3 buckets, and agent > configuration. The infrastructure is additive. # Agent Core Service Suite Source: https://docs.uselayerup.com/agents/deployment/agent-core-services A breakdown of every Amazon Bedrock AgentCore service, which ones a Layerup deployment activates by default, which are optional, and what your cloud governance team needs to approve before go-live. # Agent Core service suite — what Layerup activates, what is optional, and what to bring to your governance board. Amazon Bedrock AgentCore is a full suite of managed services, not a single product. When you deploy Layerup AI Agents into your private cloud using AgentCore as the execution environment, you are not activating the entire suite by default. This page defines each service in the suite, the Layerup default configuration, and the approval implications for customers whose internal cloud governance teams must approve each AgentCore component independently. > [!NOTE] > > This page is specifically relevant for customers deploying under Option 2 > (Your Private Cloud). Customers using Option 3 (Layerup's Cloud) do not need > to manage AgentCore service activation — Layerup configures the runtime on > your behalf in our dedicated tenant. *** ## The four AgentCore services AgentCore is composed of four distinct managed services. Each can be independently enabled or disabled. Layerup activates only what the workflow requires. | AgentCore service | what it does | Layerup default | approval implication | | - | - | - | - | | **Runtime** | Launches a session-isolated microVM for each agent case run. Manages scaling, provisioning, and deprovisioning of compute environments. Integrates natively with Bedrock Guardrails at the inference layer. | **Always enabled** | Required — no deployment without this | | **Memory** | Provides short-term, multi-turn session context within a single case run. Allows the agent to maintain reasoning state across multiple inference calls for a single case without re-reading source documents on every step. | **Enabled by default** | Required for multi-step reasoning workflows; can be disabled on request | | **Gateway** | Converts external APIs, AWS Lambda functions, and third-party services (Salesforce, Slack, ServiceNow, etc.) into MCP-compatible tools the agent can invoke directly during a case run. | **Off by default** | Only activated if your workflow requires live system reads during case processing | | **Identity** | Manages agent authentication, agent-to-agent trust relationships, and access management for agent-level identities separate from your human IAM identities. | **Off by default** | Only activated for multi-agent orchestration deployments; not required for single-agent IDI or underwriting workflows | *** ## What most underwriting deployments require For the IDI underwriting workflow — and most claims and underwriting workflows — the active AgentCore services at go-live are: * **Runtime** (required) * **Memory** (required for multi-step case reasoning) Gateway and Identity are not activated unless your workflow design specifically calls for live system reads during inference or multi-agent coordination. Standard underwriting deployments read all input documents from S3 at task start and write all outputs to S3 at task end — no live API calls through Gateway are required. > [card] Runtime — always required > > Runtime is the execution substrate. Without it there is no AgentCore deployment — it is the component that provisions the isolated microVM, injects the container, and manages the full agent lifecycle from task receipt to task completion. > [card] Memory — required for multi-step reasoning > > IDI underwriting cases involve multiple sequential reasoning passes: > occupation analysis, financial analysis, medical flagging, and cross-evidence > synthesis. Memory maintains the agent's working state across these passes > within a single session without requiring the full document set to be > re-passed on every inference call. > [card] Gateway — conditional > > Gateway is relevant if your workflow design requires the agent to make live > API calls during case processing — for example, querying a real-time pharmacy > claims database, calling a third-party IREX endpoint, or writing a status > update to a CRM mid-case. For most deployments, these data sources are > pre-loaded into S3 before the agent task starts, making Gateway unnecessary. > [card] Identity — conditional > > Identity manages trust between multiple agents in an orchestrated multi-agent system. It is not required for single-agent deployments. If your roadmap includes a multi-agent workflow — for example, an orchestrating triage agent delegating to specialist underwriting sub-agents — Identity would be activated at that stage. *** ## Configuring the service scope Your Layerup implementation team configures which AgentCore services are activated during the deployment engagement. The scope is defined in your deployment specification before any infrastructure is provisioned, so your governance team knows exactly what services will be active prior to go-live. If your internal cloud governance team has approved only a subset of AgentCore services — for example, Runtime and Memory but not Gateway or Identity — Layerup can configure the deployment to use exactly that subset. No services beyond the approved set will be activated. > [!WARNING] > > If your cloud governance process requires per-service approval before any > AgentCore service is activated in your account, work with your Layerup > implementation engineer to produce a service-by-service activation manifest. > This document lists the exact AgentCore services, the IAM permissions each > requires, and the network endpoints each accesses — suitable for submission to > your internal cloud security review board. *** ## IAM implications by service Each active AgentCore service carries its own set of IAM permission requirements. The following summarizes the additional permissions each service adds to the agent's execution role beyond the base set described in [Identity, Access & AI Guardrails](/agents/security/iam). | AgentCore service | additional IAM permissions required | | - | - | | **Runtime** | `bedrock:InvokeAgent`, `bedrock:InvokeAgentRuntime` (scoped to specific agent ARN) | | **Memory** | `bedrock:GetAgentMemory`, `bedrock:UpdateAgentMemory` (scoped to session-specific memory store) | | **Gateway** | `bedrock:CreateAgentActionGroup`, plus permissions for each downstream service the Gateway connects (e.g., `lambda:InvokeFunction` for Lambda-backed tools) | | **Identity** | `bedrock:CreateAgentAlias`, `bedrock:InvokeAgent` across agent ARNs (for cross-agent delegation) | For a deployment using only Runtime and Memory — the standard underwriting configuration — the agent's execution role requires only the base least-privilege permissions from `security/iam` plus the Runtime and Memory additions above. Gateway and Identity permissions are not added unless explicitly configured. *** ## Activation timeline AgentCore services are provisioned in your account during the Layerup deployment engagement. The sequence is: 1. Your governance team confirms which services are approved 2. Your Layerup implementation engineer provides the per-service IAM policy documents and infrastructure-as-code (CloudFormation or Terraform) for your team to review 3. Your cloud team applies the infrastructure changes in your account 4. Layerup validates the service activation against the agreed manifest before any agent code is deployed No AgentCore service is activated without your team explicitly applying the infrastructure change in your own account. Layerup does not have the ability to activate services in your AWS account unilaterally. # Infrastructure & Compute Runtimes Source: https://docs.uselayerup.com/agents/deployment/compute Container image delivery, private registry integration, pre-deployment security scanning, execution environment options, and the compute scaling model for Layerup AI Agents. # 2 — Infrastructure provisioning & compute runtimes — container delivery, security scanning & execution environments. This section details the specific compute components required to run Layerup AI Agents at scale, and the compatibility of those components with your existing cloud-native infrastructure standards. It is addressed to Platform Engineering and Cloud Architecture teams. *** ## 2.1 Container image delivery and private registry integration Layerup AI Agents are packaged as a standard Open Container Initiative (OCI)-compliant Docker container image. This is an industry-standard artifact format — compatible with any enterprise container registry and runtime your organization already operates. ### 2.1.1 AWS: Amazon Elastic Container Registry (ECR) The delivery sequence for AWS environments: 1. Your AWS Marketplace subscription triggers delivery of the signed Layerup container image to a designated ECR repository within your own AWS account. 2. The image is tagged with a semantic version (e.g., `layerup-ai-agent:1.4.2`) for full traceability across environments. 3. ECR repository policies are configured by your team to allow access only from IAM roles within your account. Layerup retains zero access to the repository after image delivery. 4. Amazon ECR automatically replicates the image across your chosen AWS regions for high availability and disaster recovery compliance. ### 2.1.2 Azure: Azure Container Registry (ACR) The equivalent delivery sequence for Azure environments: 1. The Azure Marketplace offer delivers the signed image to your private Azure Container Registry (ACR) instance. 2. Azure Defender for Containers continuously scans all images in ACR for known CVEs from the moment of delivery. 3. Images are stored with geo-replication enabled across your designated Azure regions, maintaining data residency requirements at the registry layer. 4. ACR Access Tokens restrict pull access to specific managed identities assigned to your agent compute instances — no external principal can pull the image. *** ## 2.2 Pre-deployment security scanning — no image enters production unscanned Before any container image version is promoted to your production compute environment, it must pass your existing automated vulnerability scanning pipeline: | cloud | scanning tool | behavior | | - | - | - | | **AWS** | Amazon Inspector | Automatically initiates a vulnerability assessment when a new image version lands in ECR. Evaluates against known CVE databases, checking all OS packages and application dependencies. Images failing defined severity thresholds are quarantined and cannot be deployed to production without a documented exception approval. | | **Azure** | Microsoft Defender for Cloud | Continuously monitors images in ACR and running containers in AKS or Container Apps for emerging vulnerabilities. Surfaces findings directly in your Microsoft Defender portal. | | **Custom CI/CD Gates** | Jenkins · Azure DevOps · GitHub Actions | Your internal CI/CD pipelines can impose additional quality gates before a Layerup image version is approved for production deployment. These gates may include SAST/DAST scans, SBOM validation, and sign-off approvals from your security team. | > [!NOTE] > > Layerup also provides a signed SBOM in CycloneDX or SPDX format for every > released image version. Your security team can validate the SBOM against the > image digest before it enters your registry. See 4 for full supply chain > security documentation. *** ## 2.3 Agent execution environments Your Platform Engineering team selects the execution environment that best fits your existing infrastructure standards. Three options are supported. ### 2.3.1 AWS Option A: Amazon Bedrock AgentCore Runtime (recommended) Amazon Bedrock AgentCore Runtime (released early 2026) is AWS's native, purpose-built execution environment for AI agents. It is the recommended runtime for Layerup AI Agents on AWS for the following reasons: > [card] Session-Isolated microVMs > > AgentCore Runtime launches a lightweight, isolated microVM for each agent session. Each application case processed by the agent runs in its own isolated execution environment. Memory, context, and intermediate reasoning states cannot be accessed across sessions — critical for ensuring that the context of Applicant A's case does not contaminate the reasoning for Applicant B's case. > [card] Framework Agnostic > > AgentCore Runtime is framework-agnostic. The Layerup agent deploys without > requiring any AWS-specific SDK rewrites. The container simply executes within > the runtime — your existing container operational model applies. > [card] Managed Scaling > > AgentCore Runtime automatically provisions and deprovisions microVMs in > response to workload. During high-volume intake periods, the runtime scales > horizontally without your team needing to pre-provision capacity or manage EC2 > instance fleets. > [card] Native Bedrock Guardrails Integration > > The runtime natively integrates with Amazon Bedrock Guardrails, applying your configured compliance policies at the model inference layer before the agent can take any action. There is no additional integration work required to enable this layer. #### Agent deployment modality: container image vs. Python via S3 AgentCore Runtime supports two ways to deliver the agent code into a microVM session. Layerup ships as a container image by default. Understanding the tradeoffs is important for customers whose internal delivery pipelines were built for one modality or the other. | dimension | Container image (OCI / Docker) | Python code via S3 | | - | - | - | | **Layerup default** | Yes — all agent releases ship as signed OCI images | Under evaluation — not yet available in all regions | | **Runtime language** | Any — Node.js, Python, Java, Go, or multi-language | Python only — AWS controls the managed runtime version | | **System dependencies** | Full OS-level control; any library or binary can be included | Pip-installable pure-Python packages only | | **Source code visibility** | Code is bundled inside image layers; not directly readable by registry holders | Python source files (.py) are stored as plain text in an S3 bucket accessible to your AWS account team | | **IP protection** | Image layers can contain compiled bytecode; Cosign signing provides provenance chain | Source is readable by anyone with S3 read access to the delivery bucket | | **Delivery pipeline requirement** | Container-capable CI/CD pipeline with ECR pull access | Standard S3 write access; no container runtime required | | **Signing and SBOM** | Cosign-signed; CycloneDX SBOM included | Not applicable | > [!NOTE] > > AgentCore Runtime is itself just one of four services in the full Agent Core > suite. For a complete breakdown of which Agent Core services a Layerup > deployment activates, which are optional, and what each requires from your > cloud governance team, see [Agent Core Service > Suite](/agents/deployment/agent-core-services). ### 2.3.2 AWS Option B: Amazon ECS with Fargate For teams with existing ECS-based container orchestration, the Layerup agent can alternatively be deployed to Amazon ECS using the Fargate serverless compute engine: * **No EC2 Instance Management:** Fargate eliminates the need to provision or patch underlying EC2 instances. Your team defines the CPU and memory requirements for each agent task; Fargate provisions the compute dynamically. * **Task Isolation:** Each ECS Task definition for the Layerup agent runs in its own isolated compute environment with a separate network interface and IAM task role. * **ECS Service Auto Scaling:** Application Auto Scaling policies on the ECS service allow you to scale concurrent agent tasks horizontally based on SQS queue depth (i.e., the number of pending application packets awaiting processing). * **Existing ECS Integration:** If your existing AI platform team already manages workloads on ECS, the Layerup agent slots into that operational model without introducing new tooling or operational overhead. ### 2.3.3 Azure Option: AKS or Azure Container Apps On Azure, your team deploys the Layerup agent container using either of the following orchestration layers, depending on your existing platform standards: * **Azure Container Apps (ACA):** The lower-operational-overhead option. ACA provides a fully managed serverless container platform that handles scaling, load balancing, and service discovery automatically. Recommended for teams that prefer a managed abstraction over raw Kubernetes. KEDA (Kubernetes Event-Driven Autoscaling) on Container Apps scales agent instances directly off Azure Service Bus queue depth. * **Azure Kubernetes Service (AKS):** For teams that already operate AKS clusters, the Layerup agent is deployed as a Kubernetes `Deployment` resource with a corresponding `HorizontalPodAutoscaler`. Your existing Kubernetes RBAC, NetworkPolicies, OPA/Gatekeeper policies, and namespace isolation apply natively to the agent pods. * In both cases, inference calls are routed to your securely managed Azure OpenAI endpoints within your Azure AI Foundry hub, governed by Azure AI Content Safety filters configured by your team. ```mermaid theme={null} flowchart LR IMG[OCI Container Image\nLayerup AI Agent] IMG -->|delivered to ECR| AGC IMG -->|delivered to ECR| ECS IMG -->|delivered to ACR| ACA IMG -->|delivered to ACR| AKS AGC[Bedrock AgentCore Runtime\nRecommended — session-isolated microVMs] ECS[Amazon ECS + Fargate\nServerless task execution] ACA[Azure Container Apps\nKEDA autoscaling] AKS[Azure Kubernetes Service\nHPA + namespace isolation] ``` *Fig. A2.1 — Execution environment options by cloud provider. All options share the same network isolation model, IAM boundary, and guardrails integration.* *** ## 2.4 Compute scaling and session concurrency Layerup AI Agents process each application case asynchronously. A typical case requires between 7 and 55 minutes of reasoning time, depending on document volume and complexity. The following scaling model ensures intake volumes are handled efficiently regardless of concurrent load. | scenario | performance characteristic | | - | - | | Simple case (\<10 documents) | 7–12 minutes of processing time | | Standard case (10–50 documents) | 12–20 minutes of processing time | | Complex case (50+ documents, large MIB / Rx history) | 20–55 minutes of processing time | | Maximum observed processing time | \~55 minutes (hundreds of MB of documents across all channels) | | Concurrency | Unlimited parallel cases — each case runs in an independent isolated session | | AWS scaling trigger | SQS queue depth — target: fewer than 5 pending tasks per active agent instance | | Azure scaling trigger | Azure Service Bus queue depth — KEDA scaling rule on the Container Apps environment | Auto-scaling is configured to maintain a target SQS / Service Bus queue depth of fewer than 5 pending tasks per active agent instance, ensuring consistent processing latency regardless of intake volume spikes — including post-event surge scenarios. > [!NOTE] > > The asynchronous, queue-driven processing model means that peak intake events > do not degrade processing quality. New agent instances are provisioned within > seconds of queue depth rising above threshold. When the queue drains, > instances are de-provisioned automatically — you pay only for compute consumed > during active processing. # Companion Dashboard Source: https://docs.uselayerup.com/agents/deployment/dashboard The Layerup companion dashboard is an optional second container that provides a browser-based UI for manual case submission and structured output review. It deploys inside your VPC alongside the agent and adds no new egress paths. # Companion dashboard — optional UI component, separate container, same VPC boundary. Every Layerup AI Agent deployment includes the option to deploy a companion dashboard: a browser-accessible interface that lets underwriters submit cases manually, monitor processing status, and review structured agent output — without requiring any integration work with your existing policy administration or CRM systems. The dashboard is **entirely optional** and is delivered as a **separate, independently deployable OCI container image** from the agent container. Many production deployments operate without the dashboard at all, using queue-based or API-based integration directly with the agent. The decision of whether to deploy the dashboard is typically made per line of business, not for an entire deployment. *** ## What the dashboard is and is not > [card] What it is > > A lightweight, browser-accessible web application purpose-built for Layerup AI Agent workflows. It provides: a case submission form (document upload), a processing queue view, and a structured output review screen that renders the agent's recommendation, confidence score, evidence citations, and requirements list in a human-readable format. > [card] What it is not > > The dashboard is not a replacement for your policy administration system, your > DMS, or your CRM. It does not store data independently — it reads and writes > exclusively through the same S3 buckets and SQS queues that the agent uses. It > is a UI lens on data that lives in your own infrastructure, not a separate > data store. > [card] Who typically uses it > > Teams that want to begin processing cases immediately without completing > system integration work. The dashboard lets your underwriting team interact > with the agent from day one while your IT team works on connecting the agent > to your downstream systems. It is also used when the downstream system has > limited capability to consume structured agent output directly. > [card] Who typically does not use it > > Teams with fully integrated workflows where new business submissions arrive from and are processed by existing systems (policy admin, DMS, workbench) automatically. In these deployments the agent is invisible to end users — it receives tasks from SQS, processes them, writes output to S3, and notifies the downstream system via a completion event. *** ## Deployment architecture The dashboard is a second container image delivered through the same marketplace channel as the agent container. It is deployed into the same VPC, the same private subnet, and governed by the same security group policies. It introduces no new network boundaries and no new egress paths. ```mermaid theme={null} flowchart TD subgraph user ["User Access Layer"] UW[Underwriter Browser] end subgraph alb ["Access Layer — Your VPC"] ALB["Internal Application Load Balancer\n(private, VPC-only — no public DNS)"] BASTION["Corporate VPN / Bastion\nor AWS Client VPN"] end subgraph vpc ["Your VPC — Private Subnets"] subgraph dash ["Dashboard Container — ECS Task / ACA"] DASH[Dashboard Application\nNext.js · serve on port 3000] end subgraph agent ["Agent Container — AgentCore / ECS"] AGT[Layerup AI Agent] end subgraph storage ["Your Storage Layer"] S3IN[S3 Input Bucket\nDocument uploads] S3OUT[S3 Output Bucket\nStructured JSON output] SQS1[SQS Intake Queue] SQS2[SQS Completion Queue] CWL[CloudWatch Logs] end BDR[Bedrock VPC Endpoint] end subgraph sor ["Your Systems of Record"] PA[Policy Admin System] CRM[CRM] end UW -->|"corporate VPN / AWS Client VPN"| BASTION --> ALB ALB --> DASH DASH -->|"upload documents"| S3IN DASH -->|"submit case"| SQS1 DASH -->|"read output"| S3OUT SQS1 -->|"trigger"| AGT AGT -->|"inference"| BDR AGT -->|"write output"| S3OUT AGT -->|"completion event"| SQS2 AGT -->|"audit logs"| CWL SQS2 -.->|"optional downstream notification"| PA & CRM classDef boundary fill:#fafafa,stroke:#111,stroke-width:1.5px,color:#111; classDef store fill:#f4f4f2,stroke:#111,color:#111; classDef access fill:#fafafa,stroke:#111,color:#111; class vpc,dash,agent,storage,alb,user boundary; class S3IN,S3OUT,SQS1,SQS2,CWL store; ``` *Fig. D1.1 — Dashboard deployment topology. The dashboard container and the agent container are both in the same private subnet. The Internal ALB is accessible only from within your VPC — access from corporate endpoints requires a VPN or AWS Client VPN connection. No component has a public internet-facing endpoint.* *** ## Container image delivery The dashboard image is delivered through the same AWS Marketplace or Azure Marketplace subscription as the agent image. They arrive as two separate, independently versioned images in your private registry: | image | tag example | function | | - | - | - | | `layerup-ai-agent` | `layerup-ai-agent:1.4.2` | The underwriting reasoning agent | | `layerup-dashboard` | `layerup-dashboard:1.4.2` | The companion web UI | Both images are Cosign-signed. Both carry a CycloneDX SBOM. Both pass through your existing Amazon Inspector or Microsoft Defender vulnerability scanning pipeline before promotion to production. The dashboard image version is kept in lockstep with the agent image version — a `1.4.2` dashboard is always compatible with a `1.4.2` agent. *** ## IAM role — minimal scope The dashboard container operates under a dedicated IAM Execution Role that is entirely separate from the agent's execution role. The dashboard has no access to Amazon Bedrock — it never makes inference calls. Its permissions are limited to the S3 and SQS resources it uses to submit cases and retrieve output. | IAM permission | justification | | - | - | | `s3:PutObject` | Upload case documents to the designated S3 input bucket | | `s3:GetObject` | Read structured output JSON from the designated S3 output bucket | | `sqs:SendMessage` | Submit a new case intake event to the SQS intake queue | | `sqs:ReceiveMessage`, `sqs:DeleteMessage` | Poll the SQS completion queue for case status updates | | `kms:GenerateDataKey`, `kms:Decrypt` | Encrypt uploads to and decrypt output from S3 using the designated CMK | > [!WARNING] > > The dashboard IAM role is explicitly denied `bedrock:*`, `iam:*`, and all S3 > operations outside the two designated buckets. The dashboard cannot invoke > models, read other buckets, or escalate its own permissions. This is enforced > at the AWS IAM layer. *** ## Access control — who can reach the dashboard The Internal ALB in front of the dashboard container is configured with no public listener. Access is restricted to principals within your VPC — which in practice means: * Users on your **corporate VPN** that is peered or connected to your VPC * Users connected via **AWS Client VPN** or AWS Site-to-Site VPN * Users on the same **AWS Direct Connect** path as your VPC The dashboard does not implement its own authentication layer — it delegates authentication to your organization's identity provider. The recommended pattern is SAML 2.0 or OIDC integration via your ALB listener rules, ensuring that only authenticated corporate users with the appropriate group membership can access the interface. Your identity team configures this integration as part of the deployment engagement. *** ## When to deploy the dashboard vs. direct integration The decision is driven by your integration readiness, not by a permanent capability constraint. Most deployments start with the dashboard and progressively move toward direct integration as downstream system connections are established. | scenario | recommendation | | - | - | | No existing system integration work completed; team wants to begin using the agent immediately | Deploy dashboard — immediate access for your underwriting team with zero integration dependencies | | Existing policy admin system can consume structured JSON from S3 or via webhook | Deploy agent only; connect your system directly to the SQS completion queue and S3 output bucket | | Line of business has complex UI requirements beyond the standard review screen | Evaluate building a custom UI that calls the agent's internal API directly — your Layerup team can provide the API spec | | Piloting across two lines of business with different integration maturity | Deploy dashboard for the less-integrated line; queue-based direct integration for the mature line | | Production deployment at scale with full system integration | Dashboard optional — often retained as an audit review and manual override interface even when automation is primary | See [Staged Integration Patterns](/agents/data/pipeline#staged-integration-patterns) for a sequenced adoption roadmap covering how most organizations move from dashboard-first to fully automated integration. # Layerup's Cloud Source: https://docs.uselayerup.com/agents/deployment/layerup-cloud Network topology, connectivity options, API integration mechanism, dedicated cluster infrastructure, and data residency specifics for Option 3: Layerup-hosted dedicated cloud. # Layerup's Cloud — integration mechanism, network connectivity & dedicated cluster. This page covers the technical architecture of Option 3 — Layerup's Cloud — in the same depth that [Native VPC Deployment Paradigm](/agents/deployment/paradigm) covers Option 2. It is addressed to security architects and integration engineers evaluating whether the SaaS model satisfies your network, data residency, and integration requirements. > [!NOTE] > > Everything on this page applies only to Option 3. For Option 2 (your private > cloud), see [Native VPC Deployment Paradigm](/agents/deployment/paradigm). The > core agent logic, AOP governance, and output schema are identical across all > deployment models. *** ## What "dedicated cluster" means in concrete infrastructure terms Option 3 is not a shared multi-tenant SaaS product. Layerup provisions a fully isolated set of infrastructure in Layerup's AWS account, dedicated exclusively to your organization. No compute, storage, queuing, networking, encryption keys, or model deployments are shared with any other Layerup customer. | infrastructure component | what is provisioned for your organization | | - | - | | **VPC** | A dedicated Virtual Private Cloud in Layerup's AWS account, used by no other customer | | **ECR repository** | A private container registry holding only your organization's agent image version | | **S3 buckets** | Dedicated input and output buckets, encrypted with a customer-specific KMS key | | **SQS queues** | Dedicated intake and completion queues for your case workflow | | **Amazon Bedrock model** | A dedicated model deployment within Layerup's Bedrock account, not shared across customers | | **CloudWatch Log Group** | Dedicated audit log stream — no logs from other customers appear in your group | | **KMS key** | A customer-specific AWS KMS key for all data encryption at rest | | **IAM roles** | Execution roles scoped exclusively to your cluster's resources | Layerup's own operational tooling accesses your cluster through a separate, time-limited, audited cross-account role used only for deployment, monitoring, and incident response. This role is not used for any customer's data access and is subject to the same BAA controls as the customer-facing infrastructure. *** ## Network connectivity — two options ### Option A: HTTPS over internet (default) The default connectivity model uses HTTPS (TLS 1.3) over the public internet between your systems and Layerup's cluster API endpoint. All data is encrypted in transit. Your systems make API calls to a dedicated HTTPS endpoint assigned to your cluster (`.api.uselayerup.com`). This is the simplest path and is appropriate for most organizations. The dedicated endpoint is authenticated — unauthenticated requests are rejected before any data is processed. ```mermaid theme={null} flowchart LR subgraph yournet ["Your Network"] WS[Workflow System\nor Dashboard] FW[Corporate Firewall\nEgress: port 443 to uselayerup.com] end subgraph internet ["Internet — TLS 1.3 encrypted"] HTTPS[HTTPS API call\nyour-org.api.uselayerup.com] end subgraph layerup ["Layerup's Dedicated Cluster — Layerup AWS Account"] ALB[Application Load Balancer\nDedicated to your org] subgraph vpc ["Dedicated VPC — Private Subnets"] AGT[Agent Container\nBedrock AgentCore Runtime] S3IN[S3 Input Bucket\nCustomer KMS-encrypted] S3OUT[S3 Output Bucket\nCustomer KMS-encrypted] SQS1[SQS Intake Queue] SQS2[SQS Completion Queue] BDR[Bedrock VPC Endpoint\nDedicated model deployment] end end WS --> FW --> HTTPS --> ALB ALB --> SQS1 SQS1 --> AGT AGT --> S3IN & BDR AGT --> S3OUT & SQS2 SQS2 -->|"completion webhook or poll"| WS classDef boundary fill:#fafafa,stroke:#111,stroke-width:1.5px,color:#111; classDef store fill:#f4f4f2,stroke:#111,color:#111; class yournet,layerup,vpc,internet boundary; class S3IN,S3OUT,SQS1,SQS2 store; ``` *Fig. S1.1 — HTTPS connectivity (default). Data is encrypted end-to-end via TLS 1.3. The ALB and all cluster resources are in Layerup's dedicated VPC — no shared infrastructure.* **Firewall rule required on your side:** * Outbound TCP port 443 to `*.uselayerup.com` (or the specific IP range provided by your Layerup implementation engineer) *** ### Option B: AWS PrivateLink (private network path) For organizations whose security policy prohibits internet-egress to third-party HTTPS endpoints — or who prefer a fully private network path for all data traffic — Layerup supports connectivity via AWS PrivateLink. With PrivateLink, traffic between your VPC and Layerup's dedicated cluster travels entirely over AWS's private backbone network. No data traverses the public internet at any point. ```mermaid theme={null} flowchart LR subgraph yourvpc ["Your AWS VPC"] WS[Workflow System] VPCe[VPC Endpoint\nPrivateLink Interface] end subgraph backbone ["AWS Private Network Backbone\nno public internet"] PL[PrivateLink Connection] end subgraph layerup ["Layerup's Dedicated Cluster — Layerup AWS Account"] NLB[Network Load Balancer\nPrivateLink service endpoint] subgraph vpc ["Dedicated VPC"] AGT[Agent Container] S3IN[S3 Input\nBucket] S3OUT[S3 Output\nBucket] SQS1[SQS Intake] BDR[Bedrock VPC\nEndpoint] end end WS --> VPCe --> PL --> NLB NLB --> SQS1 --> AGT AGT --> S3IN & BDR & S3OUT classDef boundary fill:#fafafa,stroke:#111,stroke-width:1.5px,color:#111; classDef store fill:#f4f4f2,stroke:#111,color:#111; class yourvpc,layerup,vpc,backbone boundary; class S3IN,S3OUT,SQS1 store; ``` *Fig. S1.2 — PrivateLink connectivity. All traffic stays on AWS's internal network. Your VPC creates an Interface VPC Endpoint pointing to Layerup's PrivateLink service. No internet gateway or NAT gateway route is required.* **What your AWS team needs to provision for PrivateLink:** * An Interface VPC Endpoint in your AWS account, using the PrivateLink service name provided by Layerup * A security group on the endpoint allowing outbound from your integration workloads * No internet gateway route changes are required — PrivateLink traffic does not use the internet path **Availability:** PrivateLink is available for all Option 3 deployments in supported AWS regions. Confirm regional availability with your Layerup implementation engineer. *** ## API integration mechanism Your systems interact with the Layerup dedicated cluster through a REST API. The integration pattern mirrors Option 2 (S3/SQS-based staging) but operates against Layerup-managed endpoints rather than resources in your own AWS account. ### Submitting a case ``` POST https://your-org.api.uselayerup.com/v1/cases Authorization: Bearer Content-Type: application/json { "workflow": "idi-underwriting", "documents": [ { "type": "application_form", "upload_url": "" }, { "type": "aps", "upload_url": "" }, { "type": "rx_history", "upload_url": "" } ], "metadata": { "case_reference": "UW-2026-110482", "line_of_business": "idi", "aop_version": "v2.4.1" }, "webhook_url": "https://your-system.example.com/agent-callback" } ``` The API response returns a `case_id` and pre-signed S3 upload URLs for each document. Your system uploads the documents directly to Layerup's S3 input bucket using the pre-signed URLs (TLS-encrypted; URLs expire after 15 minutes). ### Receiving output Two consumption patterns are supported: | pattern | how it works | when to use | | - | - | - | | **Webhook (push)** | When the agent completes the case, Layerup POSTs the structured output JSON to your configured `webhook_url`. Your system must expose an HTTPS endpoint to receive it. | Recommended for real-time downstream integration | | **Polling (pull)** | Your system polls `GET /v1/cases/{case_id}/output` until status is `complete`, then retrieves the output payload. | Simpler to implement; suitable for lower-volume workflows or when webhook infrastructure is not available | ### Case status ``` GET https://your-org.api.uselayerup.com/v1/cases/{case_id} Authorization: Bearer Response: { "case_id": "IDI-2026-110482", "status": "processing", // pending | processing | complete | failed "submitted_at": "2026-06-17T18:22:00Z", "estimated_completion": "2026-06-17T18:35:00Z" } ``` *** ## Authentication — API and dashboard See [SSO & API Authentication](/agents/security/sso) for the full authentication reference. In summary: | access type | mechanism | | - | - | | **System-to-system (API calls)** | OAuth 2.0 client credentials — client ID + secret → access token (1-hour TTL) | | **Human users (dashboard)** | SAML 2.0 or OIDC federated to your corporate identity provider (Okta, Azure AD, PingFederate, etc.) | *** ## Data residency under Option 3 All data processed by the agent remains within Layerup's dedicated cluster for your organization. The following summarizes where data lives and how it is protected: | data type | location | encryption | retention | | - | - | - | - | | Submitted documents (S3 input) | Layerup's dedicated S3 bucket — your org only | AES-256, customer-specific KMS key | Deleted 7 days after case completion (configurable) | | Structured output JSON (S3 output) | Layerup's dedicated S3 bucket — your org only | AES-256, customer-specific KMS key | Retained per your configured retention policy | | Audit logs (CloudWatch) | Layerup's dedicated CloudWatch Log Group — your org only | Encrypted at rest | 7-year minimum retention (HIPAA requirement) | | LLM inference prompts and responses | Processed transiently within Bedrock model deployment — never persisted by Bedrock | Not stored | Never retained by Bedrock (confirmed by AWS DPA) | | Agent working memory (session) | Session-isolated microVM memory — cleared on session termination | In-memory only | Cleared at end of each case session | > [!NOTE] > > Your organization has audit access to the CloudWatch Log Group for your > dedicated cluster. Layerup provides read-only IAM access credentials for your > compliance team, allowing independent verification of the audit trail without > requiring Layerup involvement. This access is governed by the BAA. *** ## SaaS vs private cloud — key differences at a glance | dimension | Option 2: Your Private Cloud | Option 3: Layerup's Cloud | | - | - | - | | Infrastructure account | Your AWS account | Layerup's AWS account | | Network boundary | Your VPC | Layerup's dedicated VPC | | Integration model | Direct S3/SQS in your account | REST API → Layerup-managed S3/SQS | | Connectivity path | Internal (no internet egress) | HTTPS or PrivateLink | | Update control | Your CI/CD pipeline | Layerup — with advance notice and freeze option (see [Agent Update Lifecycle](/agents/lifecycle/updates)) | | IT provisioning | Your cloud team | Layerup | | Audit log access | Your CloudWatch | Read-only access to Layerup-managed CloudWatch | | KMS key | Your KMS (CMK) | Layerup-managed customer-specific KMS key | | Time to go live | Moderate | Fastest | # Multi-Line Deployment Source: https://docs.uselayerup.com/agents/deployment/multi-line How to deploy Layerup AI Agents across multiple lines of business — IDI, Life, Group Disability, and others — within a single deployment, with complete per-line data isolation, independent AOP configuration, and shared compute efficiency. # Multi-line deployment — per-line isolation with shared compute infrastructure. Organizations deploying Layerup AI Agents across multiple lines of business — for example, IDI underwriting and Group Life simultaneously — do not need a separate deployment per line. A single deployment supports multiple workflow configurations with complete data isolation between lines, independent AOP versioning per line, and separate IAM roles scoped exclusively to each line's storage and queuing resources. This page describes the multi-line isolation model, when to use one deployment vs. multiple, and how per-line independence is enforced in both Option 2 (private cloud) and Option 3 (Layerup's Cloud). *** ## The isolation model Each line of business within a single deployment receives its own independent set of infrastructure resources. Compute is shared — the same agent container image handles all lines — but every data, queuing, and configuration resource is scoped exclusively to one line. | resource | per-line | shared | notes | | - | - | - | - | | **S3 input bucket** | Yes | — | Line A cannot read or write Line B's documents | | **S3 output bucket** | Yes | — | Line A cannot read or write Line B's output | | **SQS intake queue** | Yes | — | Cases submitted to Line A never appear in Line B's queue | | **SQS completion queue** | Yes | — | Completion events are routed to the correct line's downstream system | | **IAM execution role** | Yes | — | Each line's agent task runs under a role scoped only to that line's buckets and queues | | **Agent Operating Procedure** | Yes | — | Each line has its own AOP file; an IDI AOP update has no effect on the Group Life AOP | | **CloudWatch Log Group** | Yes | — | Audit logs are separated by line; compliance review for one line does not expose another line's cases | | **Agent container image** | — | Yes | Same image version runs all lines; no line-specific logic is in the image — all line specificity is in the AOP | | **Bedrock model endpoint** | — | Yes | A single Bedrock model deployment handles inference for all lines within the cluster | | **ECR repository** | — | Yes | One image version applies to all lines simultaneously | *** ## Architecture diagram — two lines in one deployment ```mermaid theme={null} flowchart TB subgraph vpc ["Your VPC — Private Subnets"] subgraph compute ["Shared Agent Compute Layer"] AGT[Agent Container\nBedrock AgentCore Runtime\nShared across all lines] BDR[Bedrock VPC Endpoint\nShared model deployment] end subgraph idiLine ["IDI Underwriting — Isolated Resources"] IDI_SQS_IN[SQS Intake\nidi-intake] IDI_SQS_OUT[SQS Completion\nidi-completion] IDI_S3_IN[S3 Input\nidi-input-bucket] IDI_S3_OUT[S3 Output\nidi-output-bucket] IDI_IAM[IAM Role\nidi-execution-role\nScoped to IDI resources only] IDI_AOP[AOP v2.4.1\nIDI underwriting rules] IDI_CWL[CloudWatch\nidi-audit-logs] end subgraph lifeLine ["Group Life — Isolated Resources"] LIFE_SQS_IN[SQS Intake\nlife-intake] LIFE_SQS_OUT[SQS Completion\nlife-completion] LIFE_S3_IN[S3 Input\nlife-input-bucket] LIFE_S3_OUT[S3 Output\nlife-output-bucket] LIFE_IAM[IAM Role\nlife-execution-role\nScoped to Life resources only] LIFE_AOP[AOP v1.2.0\nGroup Life underwriting rules] LIFE_CWL[CloudWatch\nlife-audit-logs] end end subgraph sources ["Your Systems"] IDI_WS[IDI Workbench\nor Dashboard] LIFE_WS[Life Submission\nSystem] end IDI_WS -->|"submit case"| IDI_SQS_IN IDI_SQS_IN -->|"trigger — IDI role"| AGT AGT -->|"reads IDI AOP"| IDI_AOP AGT -->|"reads docs"| IDI_S3_IN AGT -->|"inference"| BDR AGT -->|"writes output"| IDI_S3_OUT AGT -->|"completion"| IDI_SQS_OUT AGT -->|"audit"| IDI_CWL LIFE_WS -->|"submit case"| LIFE_SQS_IN LIFE_SQS_IN -->|"trigger — Life role"| AGT AGT -->|"reads Life AOP"| LIFE_AOP AGT -->|"reads docs"| LIFE_S3_IN AGT -->|"writes output"| LIFE_S3_OUT AGT -->|"completion"| LIFE_SQS_OUT AGT -->|"audit"| LIFE_CWL classDef boundary fill:#fafafa,stroke:#111,stroke-width:1.5px,color:#111; classDef store fill:#f4f4f2,stroke:#111,color:#111; class vpc,compute,idiLine,lifeLine,sources boundary; class IDI_SQS_IN,IDI_SQS_OUT,IDI_S3_IN,IDI_S3_OUT,IDI_CWL store; class LIFE_SQS_IN,LIFE_SQS_OUT,LIFE_S3_IN,LIFE_S3_OUT,LIFE_CWL store; ``` *Fig. ML1.1 — Two lines (IDI Underwriting and Group Life) deployed within a single VPC. Shared agent compute handles both lines; all data, queuing, IAM, AOP, and audit resources are fully isolated per line. A case submitted to the IDI intake queue can only access IDI S3 buckets — the IAM execution role enforced by AWS prevents any cross-line data access.* *** ## How per-line IAM isolation is enforced Each line's agent task is launched with a distinct IAM execution role. The role's resource-level policy scopes every permission to that line's specific AWS resource ARNs: ```json theme={null} { "Effect": "Allow", "Action": ["s3:GetObject"], "Resource": "arn:aws:s3:::your-org-idi-input-bucket/*" } ``` The IDI execution role cannot read from `your-org-life-input-bucket/*` — this is denied at the AWS IAM layer, not by application logic. Even if the agent were compromised or misconfigured, it cannot access another line's data because the IAM boundary is enforced by AWS independently of the agent software. The SQS queue URL is passed to each agent task as an environment variable at launch. A task launched from the IDI intake queue receives only the IDI queue URL — it has no knowledge of other queues' URLs. *** ## AOP independence per line Each line maintains its own Agent Operating Procedure in your source control system. AOP files are stored independently and versioned independently: ``` aop/ idi-underwriting/ aop-v2.4.1.json ← IDI AOP — current production version aop-v2.5.0-draft.json ← IDI AOP — under review group-life/ aop-v1.2.0.json ← Group Life AOP — current production version group-disability/ aop-v0.9.0.json ← Group Disability — staging, not yet in production ``` An AOP promotion for IDI does not trigger any change to the Group Life AOP. Your underwriting governance teams for each line operate independently. The CI/CD test harness runs the AOP validation suite per-line — a failing IDI AOP change does not block a Group Life AOP promotion. *** ## Rollout independence per line Lines can be at different rollout phases simultaneously. Rollout phase (Shadow, Assist, Auto-resolve, Full deployment — see [CI/CD Pipeline](/agents/lifecycle/cicd)) is configured per line: | line | rollout phase | human review model | | - | - | - | | IDI Underwriting | Phase 3 — Broad Rollout | Spot-check for high-confidence; full review for escalated cases | | Group Life | Phase 1 — Limited Live | 100% human review of agent output | | Group Disability | Phase 0 — POC Validation | Historical cases only; no live applications | This independence means a mature line does not need to wait for a newer line to reach its phase before expanding. Each line's phase transition is governed by that line's agreement rate data and approved by that line's underwriting leadership. *** ## When to use separate deployments instead A single multi-line deployment is the right choice for most organizations. The exception cases where separate deployments are appropriate: | scenario | recommendation | | - | - | | Regulatory mandate requiring physically separate compute per line | Separate deployments — each line gets its own VPC, compute, and ECR | | Lines in different AWS regions for data residency reasons | Separate deployments per region | | Separate IT ownership — different teams manage different lines and cannot share a deployment account | Separate deployments with separate AWS accounts | | Separate vendor contracts per line requiring independent SLAs | Discuss with your Layerup implementation engineer — may be addressable within a single deployment | Separate deployments are fully supported. The cost is duplicated infrastructure provisioning, separate image update cadences, and separate deployment engagement scopes. For most organizations deploying 2–5 lines, a single multi-line deployment is significantly more efficient. *** ## Adding a new line to an existing deployment Adding a line to an existing deployment does not require redeploying the agent container. The process is additive: 1. Your Layerup implementation engineer delivers the new line's AOP file to your source control 2. Your infrastructure team provisions the new line's S3 buckets, SQS queues, IAM role, and CloudWatch Log Group using the same CloudFormation / Terraform template used for the first line (with line-specific resource names) 3. The new line's intake queue is registered with the agent compute layer as an additional trigger source 4. Your team runs Phase 0 (POC validation) on the new line before any live cases are processed No downtime is required for existing lines when a new line is added. # Deployment Options Source: https://docs.uselayerup.com/agents/deployment/options Choose how Layerup AI Agents are hosted and operated: on-premises in your own data center, in your private cloud account, or in Layerup's dedicated HIPAA-compliant cloud. All three are legally permissible under HIPAA. # Deployment Options — on-premises, private cloud, or Layerup-hosted cloud. Layerup AI Agents can be deployed in three distinct hosting models. The right choice depends on your organization's IT capacity, data sovereignty requirements, regulatory posture, and — critically — how quickly you want to go live. All three models satisfy HIPAA requirements when the appropriate contractual and technical controls are in place. | dimension | On-Premises | Your Private Cloud | Layerup's Cloud | | - | - | - | - | | **Infrastructure owner** | You (your data center) | You (your AWS / Azure account) | Layerup | | **Who provisions servers** | Your IT team | Your cloud team | Layerup | | **Data residency** | Fully on-site | Your cloud VPC / VNet | Layerup's dedicated isolated cluster | | **AI compute (GPUs)** | Your hardware | Your cloud instances | Layerup-managed | | **Time to go live** | Longest | Moderate | Fastest | | **HIPAA instrument** | BAA required | BAA required | BAA required | | **IT burden on your team** | Highest | High | Lowest | | **Recommended for** | Strict on-site mandates | Existing cloud maturity + data sovereignty | Fastest path to production | *** ## Option 1 — On-premises deployment In an on-premises deployment, the Layerup agent container runs entirely within your own physical data center. No cloud provider is involved. Your infrastructure team provisions the servers, networking, storage, and GPU compute required to run the agent and its LLM inference layer. > [card] Data stays on-site > > All application data, inference calls, and audit logs remain within your physical facility. Nothing leaves your network perimeter — not to Layerup, not to a cloud provider. > [card] Full infrastructure control > > Your team configures every layer: compute, networking, identity, encryption, > and logging. You are not dependent on any third-party cloud service being > available. > [card] AI compute requirement > > LLM inference requires GPU hardware. Many on-premises environments are > optimized for standard database and application workloads, not > high-performance AI compute. Provisioning the right GPU infrastructure is > typically the longest lead-time item in an on-premises deployment. > [card] Timeline reality > > Hardware procurement, rack installation, network configuration, security audits, and internal IT approvals all run sequentially. This is the slowest path to production. **When to choose on-premises:** Your organization has a hard regulatory or policy mandate that prohibits any data from being processed in a cloud environment. This is rare in 2026 — most regulated industries, including healthcare, have accepted cloud-based processing under appropriate contractual safeguards — but it remains a valid choice for organizations with strict air-gap requirements. > [!WARNING] > > On-premises deployments require your team to own the full operational > lifecycle: OS patching, container image updates, GPU driver management, and > availability SLAs. Layerup provides the agent software and deployment > guidance, but your infrastructure team is the operator. Factor this into your > resourcing plan. *** ## Option 2 — Your private cloud (customer-hosted VPC) In this model, the Layerup agent runs entirely within your own cloud account — your AWS VPC or your Azure VNet. Your organization owns and manages the cloud infrastructure; Layerup delivers the agent container image through the cloud marketplace into your private registry, and the agent runs exclusively inside your network boundary. This is the model described in full detail throughout the remainder of this documentation. See [Native VPC Deployment Paradigm](/agents/deployment/paradigm) for the complete architectural specification. > [card] Sovereign tenancy > > All compute, storage, inference calls, and audit logs live inside your own cloud account. Your IAM, your encryption keys, your CloudWatch or Azure Monitor — the agent operates entirely within the controls you already own. > [card] Zero-egress data residency > > Application data never leaves your cloud boundary. LLM inference is routed > through Amazon Bedrock or Azure OpenAI within your cloud tenant — not through > any Layerup-controlled endpoint. > [card] IT provisioning required > > Your cloud team must provision the execution environment (Bedrock AgentCore, > ECS Fargate, AKS, or Azure Container Apps), configure VPC networking, IAM > roles, and any required GPU-capable instance types. This takes real > coordination with your internal platform team. > [card] Timeline reality > > Go-live depends on your cloud team's availability, internal security review processes, and the maturity of your existing cloud-native infrastructure. Healthcare organizations with slower IT approval cycles typically take longer. **When to choose your private cloud:** Your organization has existing AWS or Azure infrastructure, a capable cloud platform team, and a data sovereignty requirement that data must reside within your own cloud account — but you do not need full on-premises operation. *** ## Option 3 — Layerup's cloud (Layerup-hosted dedicated cluster) In this model, Layerup provisions and operates a fully isolated, single-tenant cluster in Layerup's own HIPAA-compliant AWS environment — dedicated exclusively to your organization. Your data does not share compute, storage, networking, or any infrastructure with other Layerup customers. You access the agent through a secure, authenticated API endpoint; Layerup owns the infrastructure footprint. > [card] Fastest path to production > > Because Layerup controls the infrastructure, provisioning is not blocked by your IT team's backlog. There is no hardware procurement, no internal firewall request queue, no GPU provisioning delay. This is the fastest path to production. > [card] Single-tenant isolation > > Your dedicated cluster is physically and logically isolated from every other > customer. Separate VPC, separate compute, separate storage buckets, separate > encryption keys. Your PHI does not mix with any other customer's data at any > layer. > [card] HIPAA-compliant by default > > Layerup's cloud environment is HIPAA-compliant. We sign a Business Associate > Agreement (BAA) with your organization, legally binding us to HIPAA's Security > and Privacy Rules — encryption at rest and in transit, audit logging, breach > notification within 60 days, and minimum necessary access. Your obligation is > the BAA; the infrastructure compliance is Layerup's responsibility. > [card] Lowest IT burden > > Your IT team is not responsible for provisioning, patching, scaling, or maintaining any infrastructure. Layerup handles all updates, monitoring, and incident response. Your team integrates with the agent via a stable API, not an infrastructure deployment. **When to choose Layerup's cloud:** Your primary goal is the fastest possible go-live, and your data sovereignty requirement is satisfied by a dedicated single-tenant cluster with a BAA in place. This is the recommended choice for most healthcare customers who want a SaaS-like experience without the AI infrastructure burden. *** ## Business Associate Agreement (BAA) A BAA is required before any Layerup AI Agent deployment can process Protected Health Information. This applies to all three deployment options — including Option 2, where the agent runs entirely within your own AWS account. ### What a BAA is A Business Associate Agreement is a legally binding contract under HIPAA § 164.504(e) between a Covered Entity (your organization, as a health insurer) and a Business Associate (Layerup, as a service provider that handles PHI on your behalf). The BAA is not optional — HIPAA requires it any time PHI is disclosed to a service provider, regardless of where that service provider's infrastructure is located. ### What the BAA commits Layerup to | obligation | specifics | | - | - | | **Encryption** | PHI encrypted at rest (AES-256) and in transit (TLS 1.3) at all times | | **Access controls** | PHI accessible only to Layerup personnel with a documented need — and only during the deployment engagement; no persistent access in production | | **Audit logging** | All access to PHI logged and retained for a minimum of 6 years | | **Breach notification** | Written notification to your organization within **60 days** of discovery of a breach involving your PHI | | **Minimum necessary use** | PHI used only to perform the contracted agent services — never for model training, product improvement, or any purpose outside the SOW | | **Subcontractor BAAs** | Layerup executes BAAs with all subcontractors (including AWS) who may have access to PHI in connection with your deployment | | **Return or destruction** | Upon contract termination, all PHI in Layerup's possession is returned to you or securely destroyed within 30 days | ### What the BAA commits your organization to * Providing only the minimum necessary PHI required for the agent to perform its underwriting function * Notifying Layerup promptly if you become aware of a breach or potential breach involving data processed by the agent * Ensuring your team uses the agent only in accordance with the permitted purposes in the BAA and SOW *** ## Choosing the right option — decision guide ```mermaid theme={null} flowchart TD A[Start: What is your primary constraint?] --> B{Hard requirement: data must\nnever leave our data center} B -->|Yes| C[Option 1: On-Premises\nYour hardware, your network,\nfull air-gap] B -->|No| D{Do you require data to\nreside in your own cloud account\ne.g. AWS / Azure?} D -->|Yes| E[Option 2: Your Private Cloud\nYour VPC, your IAM,\nyour cloud marketplace] D -->|No| F{Is fastest go-live your\nprimary objective?} F -->|Yes| G[Option 3: Layerup's Cloud\nDedicated single-tenant cluster,\nBAA, fastest deployment] F -->|No, we want IT control| E classDef opt fill:#f4f4f2,stroke:#111,color:#111; classDef q fill:#fafafa,stroke:#111,color:#111; class C,E,G opt; class A,B,D,F q; ``` *Fig. D0.1 — Deployment option decision tree. All three paths are HIPAA-permissible when a BAA is in place.* *** ## Comparative go-live timeline | milestone | On-Premises | Your Private Cloud | Layerup's Cloud | | - | - | - | - | | Hardware / account provisioning | Longest | Moderate | Already done | | Security review and firewall approvals | Longest | Moderate | Layerup handles | | GPU / AI compute provisioning | Longest | Moderate | Already done | | BAA execution | Required | Required | Required | | Agent deployment and configuration | Moderate | Moderate | Fastest | | Integration and UAT | Moderate | Moderate | Moderate | | **Overall path to go live** | **Slowest** | **Moderate** | **Fastest** | > [!NOTE] > > Healthcare IT deployments in a customer's private cloud environment frequently > take longer than expected due to internal IT backlogs, security review cycles, > and the challenge of provisioning GPU infrastructure that most healthcare > organizations do not have in their existing cloud footprint. Layerup's cloud > option bypasses the entire provisioning phase by eliminating the dependency on > your IT department. # Native VPC Deployment Paradigm Source: https://docs.uselayerup.com/agents/deployment/paradigm The foundational deployment model: Layerup AI Agents run entirely within your private cloud network boundary, procured via cloud marketplace, isolated by construction from all external infrastructure. # 1 — Native VPC deployment paradigm — network isolation, marketplace procurement & data residency. This section establishes the foundational deployment model — demonstrating definitively that Layerup AI Agents operate entirely within your network boundaries, rather than as an external SaaS service calling back to Layerup-controlled infrastructure. This is the section your Enterprise Architecture and Network Security teams should review first. *** ## 1.1 Sovereign tenancy — what it means architecturally The central design principle of the Layerup AI Agents is **sovereign tenancy**. Your organization does not share compute, memory, network space, or data storage with any other Layerup customer. The agent is provisioned exclusively within your own cloud account and executed within your own Virtual Private Cloud (VPC) on AWS, or Virtual Network (VNet) on Azure. This model is fundamentally different from traditional AI-as-a-Service products, where an enterprise sends application data to a third-party API endpoint hosted outside its network: | dimension | traditional AI-as-a-Service | Layerup AI Agents | | - | - | - | | Compute location | Vendor's cloud account | Your cloud account | | Data residency | Vendor's infrastructure | Your VPC / VNet | | Inference routing | Vendor's model endpoints | Amazon Bedrock / Azure OpenAI within your tenant | | Security controls | Vendor-managed | Your IAM, your guardrails, your encryption keys | | Audit logs | Vendor's logging system | Your CloudWatch / Azure Monitor | | Network boundary | Public API call egresses your network | No egress; VPC Endpoints only | | Procurement | Direct vendor contract | AWS Marketplace or Azure Marketplace | *** ## 1.2 Marketplace procurement — enterprise-grade supply chain Your organization acquires the Layerup AI Agent container artifacts through the cloud marketplace of your preferred provider. This is the recommended procurement path for enterprise customers who wish to maintain strict vendor security reviews and draw down on existing cloud spending commitments. ### 1.2.1 AWS Marketplace AWS launched a dedicated category for AI Agents and Tools within AWS Marketplace in mid-2025. Through this channel: * The Layerup agent is listed as a container-based product. Your procurement team subscribes to the listing directly within your AWS account. * The signed Docker container image is delivered securely into your own Amazon Elastic Container Registry (ECR) — a private registry within your AWS account that Layerup cannot access after delivery. * Any spend on the Layerup agent via AWS Marketplace draws down on your existing AWS Enterprise Discount Program (EDP) commitment, consolidating vendor spend within the cloud relationship already in place. * The entire procurement transaction occurs within the AWS console, ensuring your standard vendor onboarding, contract, and security review workflows apply. ### 1.2.2 Azure Marketplace For Azure environments, an equivalent path exists via the Azure Marketplace: * The agent is listed as a Container App offer or a Managed Application, delivered directly into your Azure Container Registry (ACR). * Marketplace spend draws down on your Microsoft Azure Consumption Commitment (MACC), maintaining consolidated cloud economics. * The Azure Marketplace listing includes full Software Bill of Materials (SBOM) disclosure for your security review team — available before subscription. *** ## 1.3 VPC isolation and network boundary architecture Once the container image is delivered into your private registry, all subsequent infrastructure lives inside your private network. The following describes the AWS deployment network topology; Azure and GCP equivalents are structurally identical. | network component | description | | - | - | | **VPC** | The agent container runs exclusively within your dedicated AWS Virtual Private Cloud. The VPC is not shared with any external party. | | **Private Subnets** | The agent's compute instances (ECS Tasks or Bedrock AgentCore microVMs) are provisioned within private subnets — subnets that have no direct route to the public internet. | | **No Internet Gateway Route** | Private subnets used by the agent do not have a route to an Internet Gateway. Outbound public internet access is architecturally blocked at the routing level. | | **NAT Gateway (Optional)** | If the agent configuration requires access to approved external data feeds (e.g., a licensed pharmacy claims data API), this traffic is routed through a NAT Gateway with strict egress security group rules. All endpoints must be explicitly whitelisted. | | **VPC Endpoints** | Communication between the agent container and AWS managed services (Amazon Bedrock, S3, ECR, CloudWatch) occurs via private VPC Endpoints, ensuring no traffic traverses the public internet even for AWS internal service calls. | | **Security Groups** | The agent's security group permits no inbound traffic from outside your VPC. Outbound rules are restricted to specific ports and destinations required for agent operation. | ```mermaid theme={null} flowchart TB subgraph vpc ["Your VPC — Private Subnets Only"] subgraph compute ["Agent Compute Layer"] AGT[Agent Container
Bedrock AgentCore microVM
or ECS Fargate Task] end subgraph endpoints ["VPC Endpoints — Private Traffic Only"] EP_BDR[Bedrock VPC Endpoint] EP_S3[S3 VPC Endpoint] EP_ECR[ECR VPC Endpoint] EP_CWL[CloudWatch VPC Endpoint] EP_SQS[SQS VPC Endpoint] end subgraph storage ["Your Storage Layer"] S3IN[S3 Input Bucket] S3OUT[S3 Output Bucket] CWL[CloudWatch Logs] end SG[Security Group
No inbound · Restricted outbound] end ECR[ECR Private Registry
Your AWS Account] -->|image pull via VPC endpoint| AGT AGT -->|doc retrieval| EP_S3 --> S3IN AGT -->|inference call| EP_BDR AGT -->|output write| EP_S3 --> S3OUT AGT -->|audit logs| EP_CWL --> CWL AGT -->|queue receive| EP_SQS SG -. governs .-> AGT IGW[Internet Gateway] -. no route from private subnet .-> AGT LAYERUP[Layerup Infrastructure] -. no access .-> vpc classDef boundary fill:#fafafa,stroke:#111,stroke-width:1.5px,color:#111; classDef store fill:#f4f4f2,stroke:#111,color:#111; classDef blocked fill:#fff,stroke:#aaa,stroke-dasharray:4 4,color:#888; class vpc,compute,endpoints,storage boundary; class S3IN,S3OUT,CWL store; class IGW,LAYERUP blocked; ``` *Fig. A1.1 — Network isolation topology. All agent traffic flows through private VPC Endpoints. The Internet Gateway has no route from the agent's private subnets. Layerup has no network path into the VPC after image delivery.* *** ## 1.4 Zero-egress data residency — layered enforcement Data residency is enforced at multiple independent layers, not a single policy: > [card] Application Data at Rest > > All ingested documents (PDFs, medical records, financial statements) are stored in your Amazon S3 buckets or Azure Blob Storage, encrypted with your customer-managed KMS or Key Vault keys. Layerup holds no access credentials to these buckets at any time. > [card] LLM Inference > > The agent invokes foundation models through Amazon Bedrock (AWS) or Azure > OpenAI (Azure). Both services process data within your cloud tenant under your > data processing agreements. Data is not used to train shared models. No > inference request or response is routed through Layerup's infrastructure. > [card] Agent Reasoning & Memory > > The agent's reasoning chain, intermediate state, and working memory are > session-isolated within the AgentCore microVM or ECS task. They are not > persisted beyond the session unless your team explicitly configures > persistence to your own designated data store. > [card] Audit Logs & Outputs > > All final outputs (underwriting decision JSON, confidence scores, flagged inconsistencies, evidence citations) are written to your internal systems of record and your own logging infrastructure (CloudWatch or Azure Monitor). No output copy is sent to Layerup. > [!NOTE] > > The zero-egress guarantee extends to telemetry. The agent emits operational > metrics and structured audit logs exclusively to your CloudWatch or Azure > Monitor infrastructure. Layerup does not receive, aggregate, or process any > telemetry from your production environment. *** ## 1.5 Holistic end-to-end architecture The network isolation diagram in §1.3 shows the agent's internal VPC topology. This section shows the full picture: how your users or systems initiate work, how the agent processes it, and how structured output reaches your systems of record. Two deployment patterns exist depending on whether the [companion dashboard](/agents/deployment/dashboard) is deployed. *** ### Pattern A — with companion dashboard In this pattern, your underwriting team accesses the agent through a browser-based interface. Cases are submitted manually via the dashboard. No integration with your existing policy admin system is required at go-live. This is the recommended starting point for teams that want to begin using the agent immediately while downstream integration work is in progress. ```mermaid theme={null} flowchart TD subgraph user ["User Access"] UW[Underwriter Browser] VPN[Corporate VPN\nor AWS Client VPN] end subgraph access ["Access Layer — Your VPC"] ALB[Internal ALB\nPrivate — no public DNS] end subgraph vpc ["Your VPC — Private Subnets"] DASH[Dashboard Container\nCase submission + output review] AGT[Agent Container\nBedrock AgentCore Runtime] subgraph storage ["Your Storage Layer"] S3IN[S3 Input Bucket] S3OUT[S3 Output Bucket] SQS1[SQS Intake Queue] SQS2[SQS Completion Queue] CWL[CloudWatch Logs] end subgraph inference ["Inference Layer"] BDR[Bedrock VPC Endpoint] GRL[Bedrock Guardrails] end end subgraph sor ["Your Systems of Record"] PA[Policy Admin System] end UW --> VPN --> ALB --> DASH DASH -->|"upload docs"| S3IN DASH -->|"submit case"| SQS1 SQS1 -->|"trigger"| AGT AGT -->|"retrieve docs"| S3IN AGT -->|"inference"| BDR BDR <--> GRL AGT -->|"write output"| S3OUT AGT -->|"completion event"| SQS2 AGT -->|"audit logs"| CWL DASH -->|"read output"| S3OUT SQS2 -.->|"optional: notify downstream"| PA classDef boundary fill:#fafafa,stroke:#111,stroke-width:1.5px,color:#111; classDef store fill:#f4f4f2,stroke:#111,color:#111; classDef blocked fill:#fff,stroke:#aaa,stroke-dasharray:4 4,color:#888; class vpc,storage,inference,access,user boundary; class S3IN,S3OUT,SQS1,SQS2,CWL store; ``` *Fig. A1.2 — Holistic architecture with companion dashboard. The dashboard and agent containers both run in the same private subnet. The only user-facing entry point is the Internal ALB, reachable via VPN. The policy admin system notification (dashed) is optional — dashboards can operate as a standalone review interface without any downstream system connection.* *** ### Pattern B — without dashboard (system-integrated) In this pattern, the agent is invisible to end users. Your existing workflow system — policy admin, workbench, or intake platform — triggers the agent automatically when a new case is submitted. Output is written back to S3 and your system consumes it via the SQS completion queue or a polling mechanism. No dashboard container is deployed. ```mermaid theme={null} flowchart TD subgraph source ["Your Intake System"] SUB[New Business Submission\nor Case Event] WS[Workflow System\nPolicy Admin · Workbench · DMS] end subgraph vpc ["Your VPC — Private Subnets"] AGT[Agent Container\nBedrock AgentCore Runtime] subgraph storage ["Your Storage Layer"] S3IN[S3 Input Bucket] S3OUT[S3 Output Bucket] SQS1[SQS Intake Queue] SQS2[SQS Completion Queue] CWL[CloudWatch Logs] end subgraph inference ["Inference Layer"] BDR[Bedrock VPC Endpoint] GRL[Bedrock Guardrails] end end subgraph sor ["Your Systems of Record"] PA[Policy Admin System] CRM[CRM · DMS] end SUB --> WS WS -->|"stage docs"| S3IN WS -->|"enqueue case"| SQS1 SQS1 -->|"trigger"| AGT AGT -->|"retrieve docs"| S3IN AGT -->|"inference"| BDR BDR <--> GRL AGT -->|"write output JSON"| S3OUT AGT -->|"completion event"| SQS2 AGT -->|"audit logs"| CWL SQS2 -->|"case ready — consume output"| PA & CRM classDef boundary fill:#fafafa,stroke:#111,stroke-width:1.5px,color:#111; classDef store fill:#f4f4f2,stroke:#111,color:#111; class vpc,storage,inference,source boundary; class S3IN,S3OUT,SQS1,SQS2,CWL store; ``` *Fig. A1.3 — Holistic architecture without dashboard. Your workflow system enqueues work and consumes output. The agent runs entirely in the background — no user-facing component is required. This is the target state for fully integrated production deployments.* *** Both patterns share the same agent container, the same VPC boundary, the same Bedrock inference path, and the same audit trail. The only structural difference is whether a dashboard container is deployed and whether users interact with the agent directly or through your existing systems. See [Staged Integration Patterns](/agents/data/pipeline#staged-integration-patterns) for a roadmap on moving from Pattern A to Pattern B progressively. # Agent Operating Procedure & Configuration Source: https://docs.uselayerup.com/agents/lifecycle/aop The AOP is the agent's operating contract — a version-controlled, human-readable configuration artifact that encodes your underwriting rules. How it is authored, validated, updated, and governed. # 9 — Agent Operating Procedure — configuration as code, SOP translation & underwriting governance. The Layerup AI Agent's reasoning is not hardcoded in its container image. It is governed by its **Agent Operating Procedure (AOP)** — the agent-native representation of your underwriting Standard Operating Procedure (SOP). The AOP encodes your specific underwriting rules, risk tolerance thresholds, occupation classifications, financial benchmarks, escalation criteria, and flagging logic as a version-controlled, human-readable configuration artifact. This section is addressed to your Platform Engineering and Underwriting Governance teams. *** ## 9.1 What the AOP is and what it governs The AOP is the configuration artifact that answers the question: *"Given this application, what should the agent evaluate, how should it evaluate it, and when should it escalate?"* It is a JSON / YAML artifact stored in your source control system, subject to your change management workflows. It is not embedded in the container image — the image and the AOP are versioned and tracked independently, giving your governance team separate control over software updates and underwriting policy changes. The AOP governs: > [card] Underwriting Rules > > Explicit rules from your SOP: occupation class definitions, financial documentation requirements by income type, medical flagging criteria by condition category, and cross-referencing logic between document types. > [card] Risk Thresholds > > Quantitative thresholds: minimum income documentation sufficiency scores, > occupation risk score boundaries by class, confidence floor for auto-approval > vs. review vs. escalation, and OCR confidence floor for extraction acceptance. > [card] Escalation Criteria > > The specific conditions under which the agent escalates to a human > underwriter: confidence threshold, critical data point failure definitions, > edge case patterns outside AOP coverage, and senior underwriter routing logic. > [card] Evidence Requirements > > What constitutes sufficient evidence for each case dimension: which documents are required, which are optional, and which gaps in the document set trigger requirements rather than flags. *** ## 9.2 From SOP to AOP — the onboarding process The AOP onboarding process is the structured translation of your written (and unwritten) underwriting standard operating procedure into the agent's configuration format. This is a collaborative engagement between Layerup's implementation team and your underwriting leadership. ```mermaid theme={null} flowchart LR SOP[Your SOP Documents
Occupation manuals · Financial standards
Medical guidelines · Reinsurance treaties] --> TR[Step 1: SOP Provision
Layerup receives current SOP documents] --> TX[Step 2: Translation
2–3 day white-glove review
Rules identified · Schema converted] --> GAP[Step 3: Gap Resolution
Implicit rules surfaced
Tacit knowledge contributed by your underwriters] --> REV[Step 4: AOP Review
Reviewed by Layerup + your underwriting leads
Editable via configuration interface] --> VAL[Step 5: Validation
Tested against historical cases
Target: >99% reproducibility] --> PROD[Production AOP
Certified · Version-controlled · In source control] classDef step fill:#fafafa,stroke:#111,color:#111; class TR,TX,GAP,REV,VAL step; ``` *Fig. A9.1 — SOP to AOP onboarding pipeline. The process captures both explicit and tacit underwriting knowledge before the AOP is certified for production.* ### Step 1: SOP Document Provision Your underwriting leadership provides Layerup's implementation team with the current workflow SOP documents. These may include reinsurance treaty guidelines, occupation class manuals, financial documentation standards, medical underwriting guidelines, and state-specific regulatory requirements. ### Step 2: Translation Layerup's implementation team reviews the SOP documents over an approximately 2–3 day white-glove onboarding period. The team identifies all explicit underwriting rules, converts them to agent-native schema format, and identifies **gaps** — places where rules are implicit (i.e., they exist in the experience of your senior underwriters rather than in the written document). ### Step 3: Gap Resolution Identified gaps are surfaced in a structured **Gap Report** shared with your underwriting team. Your frontline underwriters contribute the tacit knowledge required to fill those gaps. This is a critical collaborative phase — the goal is to capture the full scope of underwriting judgment, not just what is written. ### Step 4: AOP Review The completed AOP configuration is reviewed by both Layerup's team and your underwriting leads before testing begins. Your team can view, edit, and annotate every AOP field through the Layerup configuration interface — no software engineering expertise is required to review or modify AOP content. ### Step 5: Testing and Validation The AOP is tested against a set of your historical cases with known outcomes. Layerup targets **greater than 99% reproducibility** of the agent's recommendation across multiple runs of the same case before certifying the AOP as production-ready. Discrepancies between the agent's recommendation and the historical outcome are reviewed with your underwriting team and used to refine the AOP before promotion. *** ## 9.3 AOP as a version-controlled artifact Once finalised, the AOP is stored as a version-controlled JSON / YAML artifact in your source control system (AWS CodeCommit, GitHub Enterprise, or equivalent). This enforces: * Every change to the agent's underwriting configuration is tracked, attributed to a specific author, and associated with a pull request and approval record. * Your compliance and audit teams can view the exact AOP version that was active during any historical underwriting decision — the AOP version is logged against every processed case. * Rolling back to a previous AOP version is a single-command operation via your CI/CD pipeline — the agent picks up the new AOP version on its next case. * The AOP itself is fully auditable: every field, threshold, and rule is human-readable and reviewable by your underwriting governance team without requiring software engineering expertise. *** ## 9.4 SOP update translation pipeline — white-glove and self-service When your underwriting leadership updates the SOP (e.g., following a state regulatory change, an internal guideline revision, or a new reinsurance treaty), the AOP is updated via one of two mechanisms depending on the magnitude of the change: | update type | trigger | process | approval required | | - | - | - | - | | **White-Glove** (major) | New occupation classes · Revised financial thresholds · New medical guidelines · Reinsurance treaty changes | Layerup implementation team performs structured translation, followed by a full re-validation testing cycle against historical cases before promotion | Your underwriting governance lead + Layerup | | **Self-Service** (minor) | Threshold adjustments · Clarifying rule additions · Minor flagging criteria changes | Your designated AOP administrators make direct edits via the configuration interface. Field-level version history, diff view, and AI-assisted translation utility are available. | Your AOP administrator + defined approval workflow in source control | ### Self-service interface capabilities The self-service AOP update interface provides: * **Field-level version history** — view the exact change history for any individual AOP rule or threshold, attributed to the author who made each change. * **Diff view** — side-by-side comparison between any two AOP versions, with the impacted underwriting rules highlighted. * **AI-assisted translation utility** — upload a new SOP section or regulatory document and receive a draft set of proposed AOP changes for human review. The draft is never auto-promoted — it requires explicit approval before taking effect. * **Test harness** — run the amended AOP against a set of historical validation cases before promotion, with results compared against the established baseline. # CI/CD Pipeline & Deployment Strategies Source: https://docs.uselayerup.com/agents/lifecycle/cicd Layerup's release process, your container image promotion pipeline, blue/green deployment, shadow mode validation, and the progressive volume rollout model from POC to full deployment. # 10 — CI/CD pipeline & deployment strategies — image promotion, blue/green, shadow mode & progressive rollout. This section describes how the Layerup AI Agent's container image is updated over time, how your team controls its promotion to production, and the safe deployment strategies that govern both the initial production launch and subsequent major updates. It is addressed to your Platform Engineering and Underwriting Operations teams. *** ## 10.1 Two independent versioning tracks The Layerup AI Agent operates on two independently versioned tracks. Changes to one track do not require changes to the other: | track | what it controls | who updates it | promotion process | | - | - | - | - | | **Container Image** (`layerup-ai-agent:`) | OCR engine · LLM orchestration framework · dependency patches · security CVE fixes · new agent capabilities | Layerup's engineering team | Released by Layerup → delivered to your ECR / ACR → promoted by your CI/CD pipeline | | **Agent Operating Procedure** (`aop:`) | Underwriting rules · risk thresholds · occupation classifications · escalation criteria | Your underwriting governance team (with Layerup support for major changes) | Version-controlled in your source control → promoted via your approval workflow | *** ## 10.2 Layerup's release process — gates before it reaches your registry Each new container image version released by Layerup passes through the following automated gates before it is available in your AWS Marketplace subscription or ACR mirroring pipeline: 1. **Automated test suite** — greater than 95% code coverage requirement across unit and integration tests. 2. **Static Application Security Testing (SAST)** — via Semgrep, scanning all application code against a ruleset of known vulnerability patterns. 3. **Dynamic Application Security Testing (DAST)** — against a sandboxed test environment with representative document payloads. 4. **SBOM generation** — CycloneDX format, published alongside the image for your security team's validation. 5. **CVE scan** — against the final built image before signing. 6. **Image signing** — via Cosign, anchored to Layerup's build identity. 7. **Semantic versioning and release tagging** — changelog published; image available in your subscription within 24 hours of release. *** ## 10.3 Your container image promotion pipeline — five mandatory gates When a new Layerup image version is available, your internal CI/CD pipeline governs its promotion to production. Layerup does not push image versions to your production environment — promotion is controlled entirely by your platform engineering team. ```mermaid theme={null} flowchart LR ECR[New Image in ECR / ACR
Signed · SBOM available] --> G1 subgraph pipeline ["Your Container Promotion Pipeline"] G1[Gate 1
Vulnerability Scan
Amazon Inspector / Defender] --> G2 G2[Gate 2
Regression Testing
Historical validation cases] --> G3 G3[Gate 3
Approval Gate
Designated approver sign-off] --> G4 G4[Gate 4
Deployment Strategy
Blue/Green · Shadow · Progressive] --> G5 G5[Gate 5
Production Verification
Metrics + alarm check post-deploy] end G5 --> PROD[Production Agent
New version serving live traffic] classDef gate fill:#fafafa,stroke:#111,color:#111; class G1,G2,G3,G4,G5 gate; ``` *Fig. A10.1 — Container image promotion pipeline. Your team controls every gate. Layerup is not involved in production promotion.* **Gate 1 — Vulnerability Scan:** The new image is automatically scanned by Amazon Inspector (AWS) or Microsoft Defender for Cloud (Azure) when it lands in your staging ECR / ACR. Findings must meet your defined severity thresholds before promotion proceeds. **Gate 2 — Regression Testing:** Your QA team runs the staging agent against a defined set of historical validation cases using the current production AOP. Results are compared against the established baseline for recommendation quality and processing time. **Gate 3 — Approval Gate:** A designated approver (e.g., your platform engineering lead or underwriting operations lead) reviews the test results and explicitly approves the promotion. This approval is recorded in your source control system as the merge of the image version bump pull request. **Gate 4 — Deployment Strategy:** The approved image is promoted to the production compute environment using your selected deployment strategy (see 10.4 below). **Gate 5 — Production Verification:** Post-deployment, your CloudWatch Alarms / Azure Monitor Alerts are monitored for a defined settling period. Any alarm breach during this period triggers automatic rollback. *** ## 10.4 Safe deployment strategies Given the sensitivity of AI-assisted underwriting decisions, a phased rollout strategy is strongly recommended for both the initial production deployment and subsequent major updates. Three strategies are available within your cloud-native infrastructure. ### 10.4.1 Blue/Green deployment In a Blue/Green deployment, two identical production environments run simultaneously: * **Blue (Current):** The existing production version of the Layerup agent, processing 100% of incoming cases. * **Green (New):** The new version of the agent, deployed in a parallel production-equivalent environment but receiving no live traffic initially. The promotion sequence: 1. Deploy the new agent version to the Green environment. 2. Run the Green environment's agent against a sample of recent historical cases (not live applications). 3. Compare Green output against the established Blue baseline for recommendation quality, confidence distribution, and processing time. 4. If output quality is satisfactory, route a configurable percentage of live traffic (e.g., 10% → 25% → 50% → 100%) to the Green environment over successive days or weeks. 5. If a regression is detected at any traffic percentage, roll back to 100% Blue with a single load balancer configuration change. On AWS, traffic shifting is implemented via ECS Service load balancer target group weights or via API Gateway canary deployment configuration. On Azure, the equivalent is Azure Container Apps' traffic splitting feature. ### 10.4.2 Shadow Mode deployment Shadow Mode is particularly valuable for validating a new AOP version before it influences production decisions: * The new agent version (with the updated AOP) runs in parallel to the existing production agent for all incoming cases. * Both agents process every case. The shadow agent's output is logged to a separate CloudWatch Log Group or S3 bucket for offline analysis. * **The shadow agent's output is not written back to your systems of record.** It has no write access to production databases. Its outputs are read-only audit records. * Your underwriting team reviews a sample of shadow agent outputs alongside the production agent's outputs, comparing recommendation quality before deciding to promote the new AOP version. This approach allows you to validate the impact of any underwriting configuration change against real live case volume, with zero risk of incorrect decisions reaching your production system of record. ```mermaid theme={null} flowchart TB CASE[Incoming Application Case] CASE --> PROD[Production Agent
Current version · Current AOP] CASE --> SHAD[Shadow Agent
New version / AOP · Read-only] PROD -->|writes output| SOR[Systems of Record
Policy Admin · CRM] PROD -->|writes audit log| CWL_PROD[CloudWatch Logs
Production] SHAD -->|writes shadow output only| CWL_SHAD[CloudWatch Logs
Shadow — for comparison] SHAD -. no write access .-> SOR classDef prod fill:#fafafa,stroke:#111,color:#111; classDef shadow fill:#f4f4f2,stroke:#aaa,stroke-dasharray:4 4,color:#555; class PROD,SOR,CWL_PROD prod; class SHAD,CWL_SHAD shadow; ``` *Fig. A10.2 — Shadow Mode. The shadow agent processes every live case alongside the production agent but writes no output to systems of record. Pure validation mode.* ### 10.4.3 Progressive Volume Rollout — the recommended initial deployment sequence The recommended initial production rollout for enterprises deploying the Layerup AI Agents for the first time is volume-progressive. The pace of progression is governed by your organization's own risk appetite and the agreement rate data produced at each phase. | phase | description | human review model | | - | - | - | | **Phase 0 — POC Validation** | Run against a defined set of historical cases with known outcomes. No live applications processed. | 100% review of all agent outputs by underwriting team. | | **Phase 1 — Limited Live (10%)** | Route 10% of incoming live applications to the agent. | Human underwriters review 100% of agent outputs alongside their own independent review. Discrepancies logged and used to refine the AOP. | | **Phase 2 — Expanded Pilot (25–30%)** | Scale to 25–30% of live volume as agreement rates stabilise. | Human review shifts to spot-check model for high-confidence agent recommendations (>90% confidence score). | | **Phase 3 — Broad Rollout (50–75%)** | Expand to the majority of eligible live application volume. | Underwriter focuses review on escalated cases, low-confidence cases, and flagged inconsistencies. | | **Phase 4 — Full Deployment** | Agent handles full eligible live application volume. | Underwriter role shifts to exception management and AOP governance. | > [!NOTE] > > Layerup does not prescribe a fixed timeline for phase progression. The data > produced at each phase — specifically the agreement rate between the agent's > recommendation and the independent human review — drives the decision to > advance. Your underwriting leadership retains full control over the pace of > rollout. # Agent Update Lifecycle Source: https://docs.uselayerup.com/agents/lifecycle/updates How Layerup manages agent updates to dedicated SaaS clusters: advance notice windows, maintenance schedules, freeze request policy, pre-update validation, and rollback SLA. # Agent update lifecycle — who controls updates, how you are notified, and what happens to your cluster. This page covers how the Layerup AI Agent is updated over time, with a clear distinction between the two deployment models. For Option 2 (your private cloud), your CI/CD pipeline controls every promotion — see [CI/CD Pipeline & Deployment Strategies](/agents/lifecycle/cicd) for that model. This page is specifically for Option 3 (Layerup's Cloud), where Layerup operates the dedicated cluster on your behalf. *** ## The fundamental difference: who controls promotion | concern | Option 2: Your Private Cloud | Option 3: Layerup's Cloud | | - | - | - | | **Who applies the update** | Your platform engineering team | Layerup | | **What gates promotion** | Your five-gate CI/CD pipeline (see `/agents/lifecycle/cicd`) | Layerup's internal release process + customer advance notice + freeze status check | | **Customer veto** | Always — your team chooses when to promote | Yes — via freeze request; see §U2 below | | **Rollback authority** | Your team executes rollback via load balancer config | Layerup executes rollback within 4 hours of a confirmed regression report | | **Testing before production** | Your regression test suite against historical cases | Layerup runs validation against your dedicated cluster's shadow-mode baseline | *** ## Two update categories ### Category 1 — Non-critical updates (new capabilities, performance improvements, dependency refreshes) Non-critical updates include new agent capabilities, OCR pipeline improvements, dependency version refreshes, performance optimisations, and LLM orchestration framework updates that do not address a confirmed security vulnerability. **Advance notice:** Layerup sends a release notification to your designated technical contact at least **14 calendar days** before the update is scheduled to be applied to your dedicated cluster. The notification includes: * A changelog describing all changes in the new version * The scheduled maintenance window (date, time, expected duration — maximum 30 minutes) * A link to the updated SBOM and Cosign-signed image digest * Instructions for submitting a freeze request if needed **Maintenance window:** Non-critical updates are applied during your agreed maintenance window — a recurring time slot (e.g., Sunday 02:00–04:00 ET) established during the deployment engagement. No updates are applied outside this window for non-critical releases. *** ### Category 2 — Critical security patches (CVSS ≥ 7.0 vulnerabilities) Critical security patches address confirmed vulnerabilities in the agent container, its dependencies, or the underlying OS layer. | CVSS severity | notice period | applied during maintenance window? | | - | - | - | | **Critical (CVSS ≥ 9.0)** | 48 hours | No — applied as soon as the patch is tested and validated | | **High (CVSS 7.0–8.9)** | 7 calendar days | Yes — next available maintenance window within 7 days | For Critical patches, Layerup will notify your designated contacts as soon as the patch is confirmed ready, with a minimum 48-hour window before application. For CVSS ≥ 9.0 vulnerabilities, freeze requests do not apply — Layerup will apply the patch to protect the integrity of your cluster and the BAA obligations. *** ## Freeze requests ### What a freeze is A freeze request instructs Layerup not to apply a scheduled non-critical update to your dedicated cluster. Freeze requests are honored for up to **90 calendar days** from the scheduled update date. **When to use a freeze:** * Your team has a live regulatory examination or audit period where any system change must be avoided * Your organization's change freeze calendar prohibits non-emergency changes during a specific period * Your integration team needs additional time to validate a specific release against your UAT environment before it is applied to production ### How to request a freeze Submit a freeze request to your Layerup implementation engineer at least **5 business days before** the scheduled maintenance window. Include: * The specific update version you are requesting to freeze * The duration of the freeze (up to 90 days) * The reason (optional, but useful for Layerup to plan the rescheduled window) Layerup will confirm the freeze in writing within 1 business day. ### Freeze limits and exceptions | rule | detail | | - | - | | Maximum freeze duration | 90 calendar days per release | | Consecutive freezes | Permitted — but clusters more than 180 days behind the current release require a joint review with Layerup's engineering team | | Critical security patches | Freeze requests do not apply to CVSS ≥ 9.0 patches (see Category 2 above) | | End of freeze | Layerup schedules the deferred update in the next available maintenance window after the freeze expires | *** ## Pre-update validation Before applying any update to your dedicated cluster, Layerup runs an automated validation against a representative sample of your cluster's recent processing history: 1. **Shadow run:** The new agent version is run against the 100 most recent cases from your cluster (from the shadow mode log — no live cases are re-processed). Shadow outputs are compared against the outputs produced by the current production version. 2. **Regression check:** Layerup's release team reviews any recommendation-level differences between the shadow and production outputs. A diff rate above 2% on any decision type blocks the release from being applied to your cluster until the discrepancy is investigated. 3. **Performance check:** Processing time and confidence score distributions are compared against your cluster's established baseline. A statistically significant shift in either metric blocks the release. If any pre-update check fails, Layerup will not apply the update to your cluster. You will be notified within 24 hours of the check failure, and a new maintenance window will be scheduled once the issue is resolved. *** ## Rollback If a production regression is confirmed after an update is applied to your dedicated cluster, Layerup will execute a rollback to the prior version within **4 hours** of a confirmed regression report. ### How to report a regression Contact your Layerup implementation engineer via the dedicated support channel (provided during the deployment engagement). Include: * The case IDs exhibiting anomalous behavior * The specific output dimension that appears incorrect (recommendation type, confidence score range, evidence citation quality) * The approximate time the anomaly started (to correlate with the update application time) Layerup retains the prior agent version on your dedicated cluster for **30 calendar days** post-update. After 30 days, the prior version is decommissioned and rollback to that version is no longer available. *** ## Update notification contacts During the deployment engagement, your organization designates: | contact role | purpose | | - | - | | **Technical contact (primary)** | Receives all release notifications, maintenance window confirmations, and pre-update validation reports | | **Technical contact (secondary)** | Receives all notifications in copy; acts as backup if primary is unavailable | | **Security contact** | Receives critical security patch notifications specifically; may be the same as primary technical contact | Contact designations can be updated at any time by notifying your Layerup implementation engineer. *** ## Summary of SLAs | commitment | SLA | | - | - | | Non-critical update advance notice | ≥ 14 calendar days | | Critical patch (CVSS 7.0–8.9) advance notice | ≥ 7 calendar days | | Critical patch (CVSS ≥ 9.0) advance notice | ≥ 48 hours | | Maximum maintenance window duration | 30 minutes | | Freeze request confirmation | ≤ 1 business day | | Pre-update validation report (on failure) | ≤ 24 hours after check failure | | Rollback execution (confirmed regression) | ≤ 4 hours | | Prior version retention post-update | 30 calendar days | # Error Handling & Resilience Source: https://docs.uselayerup.com/agents/observability/resilience The Layerup agent never silently fails. Every error condition — OCR failure, model timeout, guardrail intervention, low confidence — results in a deterministic, logged fallback action and human escalation. # 8 — Error handling & resilience — deterministic fallback, escalation protocols & failure-mode taxonomy. The Layerup agent is designed to never silently fail. This is not an operational aspiration — it is a structural property enforced by the agent's output assembly architecture. Every error condition results in a deterministic fallback action that preserves case integrity, writes a structured error record to your audit log, and ensures a human underwriter is notified. *** ## 8.1 Design principle — fail deterministically, never silently The following invariant governs all error handling logic in the Layerup agent: > [!WARNING] > > Any error condition that prevents the agent from producing a high-confidence, > fully evidence-grounded output for a case results in an explicit, structured > escalation to a human underwriter. The agent will never produce a > confident-looking output for a case it cannot process correctly. Silent > failures, suppressed exceptions, and optimistic outputs under uncertainty are > architecturally excluded. This means the agent's output always falls into one of three categories: 1. **Full recommendation** — All required documents processed, confidence above threshold, evidence grounded, requirements complete. 2. **Partial recommendation with flags** — Some data points uncertain, some documents degraded, but overall confidence sufficient. Output includes explicit flags directing the underwriter to the uncertain items. 3. **Escalation** — Confidence below threshold, critical extraction failure, or edge case outside AOP coverage. Case is routed to a senior underwriter with full context. There is no fourth category. *** ## 8.2 Document processing failures ### OCR failure If the OCR pipeline cannot extract readable text from a document with confidence above the configured threshold: 1. The agent logs a structured warning citing the specific document filename and page number. 2. The agent continues processing all other documents in the case — partial failure does not abort the case. 3. The failed document is included in the `requirements` list as requiring manual review by the underwriter, with explicit notation that OCR confidence was insufficient. 4. The agent does not attempt to reason over unreadable content. Uncertain fields from failed OCR extractions are explicitly marked as unresolved in the output payload. ### Unsupported document format If the agent encounters a document format outside its supported types (e.g., a proprietary medical record format, a password-protected PDF, or a corrupted file): 1. The error is logged with the specific document identifier, format, and error type. 2. The document is included in an `unprocessed_attachments` list in the output payload. 3. The underwriter is directed to review the document manually, with the specific reason for non-processing stated. *** ## 8.3 LLM inference failures ### Model timeout If an Amazon Bedrock or Azure OpenAI inference call exceeds the configured timeout (default: 120 seconds): 1. The agent implements an exponential backoff retry policy with a maximum of **3 retries**. 2. Retry intervals: 5s → 15s → 45s (with jitter), ensuring SQS / Service Bus visibility timeout is not breached during the retry window. 3. If all 3 retries fail, the case is marked as `Failed` and routed to the human escalation queue with full error context. 4. The failure event is written to CloudWatch Logs with millisecond-precision timestamps for each retry attempt. | retry attempt | wait before retry | action if exceeded | | - | - | - | | Attempt 1 | Immediate | Log failure · retry | | Attempt 2 | 5 seconds (+ jitter) | Log failure · retry | | Attempt 3 | 15 seconds (+ jitter) | Log failure · retry | | Final failure | 45 seconds (+ jitter) | Mark `Failed` · route to escalation queue | ### Guardrail intervention If Amazon Bedrock Guardrails or Azure AI Content Safety blocks an inference request: 1. The specific guardrail policy that triggered the block is logged in full detail to the audit log, including the blocked input and the policy type. 2. The agent **aborts that specific reasoning step** and does not attempt to rephrase or retry past the guardrail block. There is no code path that circumvents the guardrail. 3. The case is flagged for human review, with the guardrail intervention noted in the escalation flag and requirements list. > [!WARNING] > > The agent is explicitly prohibited from retrying past a guardrail block with a > modified prompt. A guardrail block is treated as a terminal error for that > reasoning step. This ensures guardrail policies cannot be circumvented through > iterative prompt modification. ### Model unavailability If the underlying foundation model is unavailable (e.g., during an AWS Bedrock or Azure OpenAI service incident): 1. The agent's SQS queue / Service Bus retains unprocessed messages for the duration of the outage. Messages are not dropped. 2. Once the service recovers, the agent processes the backlog in arrival order. 3. Your CloudWatch Alarm / Azure Monitor Alert notifies your operations team of the queue depth during an outage, with configurable thresholds for breach notification. 4. SQS Dead-Letter Queue (DLQ) / Service Bus Dead-Letter Queue captures any messages that exceed the maximum receive count — these are reviewed manually by your operations team. *** ## 8.4 Flag-and-escalate protocol — the confidence floor The Layerup agent is configured to escalate to a human underwriter in any situation where its confidence is insufficient to support a definitive recommendation. The escalation logic operates as a mandatory, pre-output gate — it cannot be bypassed by prompt engineering or configuration. ```mermaid theme={null} flowchart TD OUT[Agent Output Assembly] --> CHK1{Confidence Score
≥ configured threshold?
Default: 75%} CHK1 -->|No| ESC[Escalate to Senior Underwriter] CHK1 -->|Yes| CHK2{Critical data point
extraction failure?} CHK2 -->|Yes| ESC CHK2 -->|No| CHK3{Pattern outside
AOP coverage?} CHK3 -->|Yes| ESC CHK3 -->|No| REC[Full / Partial Recommendation
with explicit flags] ESC --> ESCPAY[Escalation Payload
flag · reasons · evidence context] REC --> PAY[Recommendation Payload
with evidence citations] classDef gate fill:#fafafa,stroke:#111,color:#111; classDef action fill:#f4f4f2,stroke:#111,color:#111; class CHK1,CHK2,CHK3 gate; class ESC,REC,ESCPAY,PAY action; ``` *Fig. A8.1 — Escalation gate. Every case passes three mandatory checks before a recommendation is assembled. Escalation is not an error state — it is the designed outcome for cases where human judgment is required.* The three mandatory escalation triggers are: > [card] Confidence Below Threshold > > Any case where the overall confidence score falls below your configured threshold (default: 75%) receives an automatic `Escalate to Senior Underwriter` recommendation, regardless of the agent's other findings. The threshold is configurable in the AOP; the escalation logic is not. > [card] Critical Data Point Failure > > Any case where a critical data point (e.g., primary income source, primary > occupation) cannot be extracted from available documents — due to document > absence, OCR failure, or irreconcilable inconsistency — results in automatic > escalation, regardless of confidence on other dimensions. > [card] Edge Case Outside AOP > > Any case where the agent detects a pattern it has not been configured to > evaluate — an edge case outside the AOP's defined coverage — results in a flag > with an explicit note that the specific scenario requires human judgment. The > agent does not extrapolate beyond its AOP scope. > [card] Guardrail-Triggered Escalation > > Any case where a Bedrock Guardrail or Azure AI Content Safety block cannot be resolved through the retry protocol is automatically escalated, with the full guardrail intervention record included in the escalation payload for the reviewing underwriter. *** ## 8.5 Failure-mode summary | failure mode | agent response | written to audit log | human escalation | | - | - | - | - | | OCR below confidence threshold | Flag document · continue other docs | Yes | Via requirements list | | Unsupported document format | Log · include in unprocessed list | Yes | Via requirements list | | Model timeout (all retries exhausted) | Mark Failed · route to escalation queue | Yes | Yes — immediate | | Guardrail intervention | Abort reasoning step · flag case | Yes (full guardrail detail) | Yes | | Model service unavailability | Retain in queue · process on recovery | Yes — queue depth alarms | Via operations team alert | | Confidence below threshold | Escalate to Senior Underwriter | Yes | Yes | | Critical extraction failure | Escalate to Senior Underwriter | Yes | Yes | | Edge case outside AOP | Flag with explicit note | Yes | Yes | # Observability, Logging & Audit Trails Source: https://docs.uselayerup.com/agents/observability/telemetry Telemetry architecture across CloudWatch and Azure Monitor, step-level reasoning capture, deterministic audit trails for regulatory examination, log retention and immutability, and long-term archival. # 7 — Observability, logging & audit trails — telemetry architecture, deterministic reasoning capture & regulatory compliance. This section addresses the requirements of your internal audit, compliance, and IT operations teams. The Layerup agent is designed to be a fully transparent workload — every decision, reasoning step, document extraction, and model inference is logged in structured, queryable format within your own observability infrastructure. No telemetry is emitted to Layerup's systems. *** ## 7.1 Telemetry architecture — structured, queryable, yours The Layerup agent emits structured telemetry to your native cloud monitoring systems throughout the lifecycle of each agent session. The telemetry architecture is designed to be immediately consumable by your existing operations and audit tooling without bespoke integration. ### 7.1.1 AWS: Amazon CloudWatch The agent emits the following data streams to CloudWatch: | log stream | level | contents | | - | - | - | | **Application Logs** | `INFO` | High-level session events: session start, document ingestion complete, LLM reasoning initiated, reasoning complete, output written, session end. Useful for operational dashboards and SLA monitoring. | | **Audit Logs** | `AUDIT` | Immutable, append-only structured log entries for each agent decision, source citation, and flag raised. Includes the full reasoning chain that produced each recommendation, enabling complete reconstruction of the agent's decision process for any case. | | **Error Logs** | `ERROR` / `WARN` | Structured error events for failed document reads, OCR failures, model timeout events, and unexpected exceptions. Each event carries a correlation ID linking it back to the originating case. | | **Metrics** | CloudWatch Metrics | Custom metrics: `cases_processed_count`, `cases_flagged_for_escalation_count`, `average_processing_time_seconds`, `document_ocr_confidence_score_average`, `guardrail_interventions_count`. Powers operational dashboards and drives CloudWatch Alarms. | ### 7.1.2 Azure: Azure Monitor and Application Insights On Azure, equivalent telemetry flows to Azure Monitor and Application Insights: * Structured logs are emitted to a **Log Analytics Workspace**, enabling KQL queries across all agent sessions and cross-session analytics. * **Azure Application Insights** provides distributed tracing across the agent's processing pipeline, enabling your team to visualise the end-to-end processing timeline for any case. * **Azure Monitor Alerts** are configured to notify your on-call operations team of any agent health degradation or SLA breach. *** ## 7.2 Deterministic audit trails — regulatory-grade reasoning capture A critical requirement for any regulated carrier deploying AI in underwriting decisions is the ability to produce a complete, immutable audit trail for any given case — including the AI's reasoning — to satisfy state insurance department examination requirements, internal audit standards, and potential legal discovery. ### 7.2.1 Step-level reasoning capture For every underwriting case, the Layerup agent writes a structured audit record that contains: > [card] Prompt Transparency > > The exact prompt sent to the foundation model for each reasoning step (with applicant PII redacted according to your Bedrock Guardrail configuration). No reasoning occurs in a black box. > [card] Model Response Capture > > The model's complete response for each reasoning step, including the specific > guardrail policy evaluations applied and their outcomes. > [card] Decision Logic Trace > > The agent's decision logic at each step: which rules from the AOP were > triggered, what evidence was evaluated, and what conclusion was reached — > mapped to specific AOP rule identifiers. > [card] Source Citations > > Source citations for every extracted data point, including the document > filename, page number, section, and verbatim extracted text excerpt. > [card] Millisecond Timestamps > > Timestamps with millisecond precision for each reasoning step — enabling > point-in-time reconstruction of the agent's processing timeline for any case. > [card] Version Pinning > > The AOP version and model version active at the time of the case — enabling exact point-in-time reconstruction of the agent's configuration and behavior for historical review or re-examination. ### 7.2.2 CloudWatch Log Insights — example audit queries Your audit team uses CloudWatch Log Insights to query the structured audit trail. The structured log format supports a wide range of compliance queries without requiring custom tooling: ```sql theme={null} -- Retrieve the full reasoning chain for a specific case fields @timestamp, reasoning_step, aop_rule_triggered, evidence_cited, conclusion | filter case_id = "case_20260601_00123" | sort @timestamp asc -- Find all cases where a Bedrock Guardrail was triggered in the last 30 days fields @timestamp, case_id, guardrail_policy, guardrail_outcome | filter guardrail_intervention = true | filter @timestamp > dateadd(day, -30, now()) -- Identify low-confidence cases where recommendation was Defer fields @timestamp, case_id, confidence_score, ai_recommendation | filter confidence_score < 85 | filter ai_recommendation = "Defer Pending Requirements" | stats count(*) by bin(1d) -- Count escalations to senior underwriter by occupation class and month fields @timestamp, case_id, occupation_class, escalation_reason | filter escalation_flag = true | stats count(*) by occupation_class, datefloor(@timestamp, 1mo) ``` ### 7.2.3 Log retention and immutability CloudWatch Log Groups containing agent audit logs are configured to meet insurance regulatory record-keeping requirements: | control | configuration | | - | - | | **Retention Policy** | Minimum 7-year retention, aligned with insurance regulatory record-keeping requirements. Configurable to match your organization's own retention schedule. | | **Log Group Lock (Data Protection)** | Your team applies a CloudWatch Logs data protection policy to prevent log tampering or deletion. Audit logs are append-only from the moment of creation. | | **Export to S3 and Glacier** | Long-term audit logs are exported from CloudWatch to S3 and transitioned to S3 Glacier Deep Archive for cost-effective long-term retention, encrypted with your KMS CMK. | | **Azure Equivalent** | Log Analytics Workspace with 7-year retention, immutability policy enabled, and Azure Monitor export to Azure Storage with lifecycle management to archive tier. | ```mermaid theme={null} flowchart LR AGT[Agent — Each Reasoning Step] -->|structured JSON| CWL subgraph cloudwatch ["CloudWatch Log Architecture"] CWL[CloudWatch Log Group
AUDIT level · append-only] LGP[Data Protection Policy
tamper-prevention lock] RET[7-year retention rule] CWL --> LGP & RET end CWL -->|Log Insights| QRY[Audit Queries
by case · by guardrail · by date] CWL -->|export pipeline| S3ARC[S3 Archive Bucket
CMK-encrypted] S3ARC -->|lifecycle rule| GLA[S3 Glacier Deep Archive
long-term regulatory retention] classDef arch fill:#fafafa,stroke:#111,color:#111; class cloudwatch arch; ``` *Fig. A7.1 — Audit log lifecycle. From step-level emission to Glacier archival, every audit record remains within your account, under your encryption keys, with tamper prevention applied from the moment of creation.* # Agents Overview Source: https://docs.uselayerup.com/agents/overview Layerup AI Agents are sovereign, containerized reasoning workloads that deploy entirely within your private cloud — no SaaS boundary, no shared infrastructure, no egress to Layerup. # 0 — Agents overview — sovereign deployment, governed inference, zero-egress architecture. Layerup AI Agents are not a SaaS product. They are a containerized, tenant-isolated reasoning workload that you deploy, own, and operate entirely inside your existing private cloud infrastructure — whether that is Amazon Web Services, Microsoft Azure, or Google Cloud Platform. The agents drop into your environment the way any enterprise container workload does: procured through a cloud marketplace, delivered into your private registry, executed inside your VPC, and governed by your own native cloud security tooling. At no point does application data, underwriting logic, inference output, or audit telemetry cross the boundary into Layerup-controlled infrastructure during production operation. | attribute | value | | - | - | | deployment model | Private VPC / VNet — your cloud account, your network | | procurement | AWS Marketplace · Azure Marketplace | | inference | Amazon Bedrock · Azure OpenAI — within your cloud tenant | | data residency | Zero-egress — no application data leaves your network boundary | | security posture | No-new-perimeter — operates within the controls you already own | | configuration | Agent Operating Procedure (AOP) — version-controlled, human-readable | | audience | Enterprise Architecture · Information Security · Underwriting Governance | | document version | v1.0 · June 2026 | *** ## 0.1 The five sovereign guarantees Every Layerup AI Agent deployment is built around five structural guarantees that cannot be configured away. > [card] Sovereign Tenancy > > Your agent runs exclusively within your cloud account. No compute, memory, network space, or data storage is shared with any other Layerup customer — or with Layerup itself. The agent is provisioned inside your VPC on AWS or your VNet on Azure and never leaves it. > [card] Zero-Egress Data Residency > > Application packets, medical records, financial statements, LLM inference > calls, reasoning chains, confidence scores, and audit logs all stay inside > your network boundary. No copy of any production data is transmitted to > Layerup's infrastructure at any time. > [card] No-New-Perimeter > > The agent does not introduce a net-new security surface. It operates entirely > within the IAM policies, network controls, encryption keys, and compliance > tooling your security team has already established. Amazon Inspector, Bedrock > Guardrails, CloudWatch, Azure Defender — these are your tools, configured by > your team. > [card] Least-Privilege Identity > > The agent container is granted only the specific, enumerated permissions > required for its defined workflow — nothing more. A dedicated IAM Execution > Role (AWS) or User-Assigned Managed Identity (Azure) is scoped to specific S3 > buckets, SQS queues, Bedrock model ARNs, and CloudWatch Log Groups. Broad > administrative access is architecturally excluded. > [card] Governed Inference > > All LLM inference is routed through Amazon Bedrock or Azure OpenAI — managed > services operating within your cloud tenant under your data processing > agreements. Your team configures and manages the AI safety guardrails (Bedrock > Guardrails / Azure AI Content Safety) that govern every inference call. > Layerup does not configure, manage, or bypass these controls. > [card] Deterministic Audit > > Every agent reasoning step, source citation, model response, guardrail evaluation, and output decision is written to your own observability infrastructure — CloudWatch Logs or Azure Monitor — in structured, queryable format. The audit trail is immutable, append-only, and retained for a minimum of seven years. It belongs to you. *** ## 0.2 What this is not > [!WARNING] > > Layerup AI Agents are not a SaaS API, a shared inference endpoint, or a > third-party service that your data is sent to. If any proposed integration > requires sending application data to a Layerup-controlled endpoint during > production operation, that is a misconfiguration. The sovereign deployment > model is the only production model Layerup supports for regulated enterprise > customers. The agent is also not a rules engine or a workflow automation script. It is a reasoning workload — one that reads your documents, applies your underwriting logic as expressed in its Agent Operating Procedure, invokes foundation models under governed constraints, and produces structured, evidence-cited, confidence-scored outputs. The human underwriter retains decision authority at every stage of the rollout. *** ## 0.3 Architecture at a glance The following diagram describes the full boundary of the Layerup AI Agent within an AWS deployment. The Azure topology is structurally identical, with equivalent managed services. ```mermaid theme={null} flowchart TB subgraph yourcloud ["Your Cloud Account (VPC / VNet)"] subgraph intake ["Intake Layer"] S3IN[S3 Input Bucket
CMK-encrypted] SQS[SQS Intake Queue] end subgraph compute ["Agent Compute — Private Subnet"] AGT[Layerup Agent Container
Bedrock AgentCore / ECS Fargate / AKS] AOP[(Agent Operating Procedure
version-controlled config)] end subgraph inference ["Governed Inference"] BDR[Amazon Bedrock
VPC Endpoint] GRL[Bedrock Guardrails
configured by your team] end subgraph output ["Output Layer"] S3OUT[S3 Output Bucket
structured JSON] CWL[CloudWatch Logs
immutable audit trail] SQS2[SQS Completion Queue] end SOR[Systems of Record
Policy Admin · CRM · DMS] end MKTPL[AWS Marketplace
container image delivery] -->|signed OCI image| ECR[ECR Private Registry] ECR -->|pull within account| AGT S3IN --> AGT SQS --> AGT AOP --> AGT AGT --> BDR BDR --> GRL GRL --> BDR AGT --> S3OUT AGT --> CWL AGT --> SQS2 SQS2 --> SOR classDef boundary fill:#fafafa,stroke:#111,stroke-width:1.5px,color:#111; classDef store fill:#f4f4f2,stroke:#111,color:#111; classDef external fill:#fff,stroke:#555,stroke-dasharray:4 4,color:#333; class yourcloud,intake,compute,inference,output boundary; class S3IN,S3OUT,CWL,SQS,SQS2,AOP store; class MKTPL external; ``` *Fig. A0.1 — Full deployment boundary. Everything inside the outer box is your cloud account. Layerup has no access to any resource inside the boundary after the initial container image delivery.* *** ## 0.4 How this document is organised This documentation set covers six architectural domains in detail. Each section is intended for the relevant function in your enterprise architecture review: > [card] [Deployment Architecture](/agents/deployment/options) > > On-premises, private cloud, or Layerup-hosted cloud — compare all three deployment models, HIPAA obligations, and go-live timelines. For Enterprise Architecture and Network Security. > [card] [Infrastructure & Compute](/agents/deployment/compute) > > Container image delivery, private registry integration, pre-deployment > security scanning, execution environments, and compute scaling model. For > Platform Engineering. > [card] [Security & Governance](/agents/security/iam) > > IAM least-privilege model, AI guardrails, encryption standards, vulnerability > management, and supply chain security. For Information Security and > Compliance. > [card] [Data & Integration](/agents/data/pipeline) > > End-to-end data flow, event-driven ingestion, document processing, output > schema, and write-back integration patterns. For Integration Architecture. > [card] [Observability & Resilience](/agents/observability/telemetry) > > Telemetry architecture, deterministic audit trails, log retention, error > handling, and fallback protocols. For IT Operations and Internal Audit. > [card] [Configuration & Lifecycle](/agents/lifecycle/aop) > > Agent Operating Procedure onboarding, configuration as code, CI/CD pipeline, and safe deployment strategies. For Platform Engineering and Underwriting Governance. # Architectural Principles Source: https://docs.uselayerup.com/agents/principles Seven non-negotiable invariants that govern every Layerup AI Agent deployment. These are structural properties of the architecture — not configuration options. # 0.1 — Architectural principles — the invariants that govern every agent deployment. The Layerup AI Agents architecture is built on a set of non-negotiable invariants. These are not aspirational design goals or configurable settings. They are structural properties enforced by the deployment model, the container design, and the IAM boundary — present in every production deployment regardless of the customer's specific configuration choices. Enterprise architecture and information security teams should treat these as baseline guarantees before evaluating any individual capability. *** ## 0.1.1 Sovereign tenancy — by construction, not by policy Your organization does not share compute, memory, network space, or data storage with any other Layerup customer. The agent is provisioned exclusively within your own cloud account and executes within your own Virtual Private Cloud (AWS) or Virtual Network (Azure). This is categorically different from the traditional AI-as-a-Service model, where an enterprise sends application data to a multi-tenant API endpoint hosted outside its network. Sovereign tenancy in the Layerup model is architectural — it follows from the fact that the agent runs as a container inside your account, not from a policy that Layerup applies to a shared infrastructure layer. **Enforcement mechanism:** Container runs inside your VPC private subnets. Your network controls the traffic. Your IAM controls the identity. Layerup cannot access your compute environment. *** ## 0.1.2 Zero-egress data residency — no application data leaves your boundary At no point in the production operation lifecycle does any of the following leave your network boundary: * Raw application documents (PDFs, medical records, financial statements) * OCR-extracted text or normalized data fields * LLM prompts constructed by the agent * Model inference responses * Agent reasoning chains and working memory * Confidence scores, underwriting recommendations, or flagged inconsistencies * Audit logs and step-level telemetry LLM inference is routed exclusively to Amazon Bedrock (AWS) or Azure OpenAI (Azure) via private VPC Endpoints or Private Link — managed services that operate within your cloud tenant under your data processing agreements, and that have committed not to use your data for model training. **Enforcement mechanism:** Private subnets with no Internet Gateway route. VPC Endpoints for all AWS service communication. Security Groups permitting no inbound traffic from outside the VPC and only explicitly whitelisted outbound destinations. *** ## 0.1.3 No-new-perimeter posture — your controls govern the agent The Layerup agent does not introduce a net-new security perimeter that your information security team must learn, monitor, and audit separately. Every security control applied to the agent workload is a native control your team already owns and operates: > [card] Identity > > AWS IAM Roles and Azure Managed Identities — the same identity framework governing every other workload in your account. > [card] Vulnerability Scanning > > Amazon Inspector (AWS) or Microsoft Defender for Cloud (Azure) — the tools > already integrated into your security operations workflow. > [card] AI Guardrails > > Amazon Bedrock Guardrails or Azure AI Content Safety — configured entirely by > your team, applied at inference time, not managed by Layerup. > [card] Observability > > Amazon CloudWatch or Azure Monitor — the observability infrastructure your operations team already monitors. **Enforcement mechanism:** The container is framework-agnostic and uses standard AWS SDK / Azure SDK calls. It does not introduce proprietary network tunnels, agent management endpoints, or telemetry sidecars that phone home to Layerup. *** ## 0.1.4 Least-privilege identity — scoped, enumerated, deny-all by default The agent container is granted only the specific, enumerated IAM permissions required to perform its defined workflow functions. A deny-all default policy explicitly blocks everything else. The agent cannot: access S3 buckets outside its designated input/output paths; invoke Bedrock models outside the specifically approved model ARNs; read Secrets Manager secrets outside its designated path; call EC2, RDS, or any other service not listed in its execution role policy. No Layerup personnel hold any IAM credentials in your cloud account during production operation. Any access during the implementation engagement is performed via a time-limited, audited role that is explicitly revoked upon production go-live. **Enforcement mechanism:** IAM Execution Role with explicit deny-all and explicit allows for only the required operations. Azure equivalent: User-Assigned Managed Identity with RBAC scoped to specific resources. *** ## 0.1.5 Configuration as code — the AOP is the agent's operating contract The agent's reasoning behavior is governed entirely by its Agent Operating Procedure (AOP) — a version-controlled, human-readable configuration artifact that encodes your underwriting rules, risk thresholds, occupation classifications, financial benchmarks, and escalation criteria. The AOP is not embedded in the container image. It is stored in your source control system (AWS CodeCommit, GitHub Enterprise, or equivalent), subject to your change management and approval workflows. Every change to the AOP is attributed to a specific author, associated with a pull request, and reviewable by your underwriting governance team without requiring software engineering expertise. **Enforcement mechanism:** AOP is loaded at runtime from your version control system. The container image version and the AOP version are independently tracked and logged against every processed case. *** ## 0.1.6 Governed inference — guardrails are your controls, applied at inference time The agent invokes foundation models through Amazon Bedrock or Azure OpenAI — both services that your team procures, configures, and governs within your cloud tenant. Bedrock Guardrails and Azure AI Content Safety policies are configured by your platform team and applied as a middleware layer to every inference call the agent makes. The agent has no code path that bypasses the guardrail layer. Guardrail interventions — PII redaction, topic denial, prompt injection blocks — are logged in full detail to your audit infrastructure. The agent does not retry past a guardrail block; instead, it escalates the case for human review. **Enforcement mechanism:** All inference calls are routed through the guardrail-enforced Bedrock / Azure OpenAI endpoints. The agent's IAM role is scoped to `bedrock:ApplyGuardrail` as a required permission for all inference invocations. *** ## 0.1.7 Fail-and-escalate — deterministic fallback, never silent failure The agent is designed to never silently fail. Every error condition — OCR failure, model timeout, low-confidence extraction, guardrail intervention, out-of-scope edge case — results in a deterministic, logged fallback action. The escalation path is always to a human underwriter, never to a hallucinated output. Specifically: * Any case where overall confidence falls below the configured threshold (default: 75%) automatically receives an **Escalate to Senior Underwriter** recommendation, regardless of other findings. * Any case where a critical data point cannot be extracted from available documents results in automatic escalation. * Any case where the agent encounters a pattern outside its AOP coverage is flagged explicitly as requiring human judgment — the agent does not extrapolate beyond its configured scope. **Enforcement mechanism:** Confidence threshold checks are hard-coded in the agent's output assembly layer, not configurable via prompting. The escalation flag is written before the output payload is assembled; it cannot be suppressed by downstream logic. > [!WARNING] > > The fail-and-escalate invariant means the agent systematically narrows the set > of cases requiring human review to the most complex and ambiguous ones — it > does not replace human judgment for those cases. The underwriter's role > evolves from processing every case to exercising expert judgment on the cases > the agent cannot resolve with sufficient confidence. # Encryption & Supply Chain Security Source: https://docs.uselayerup.com/agents/security/data-protection Encryption standards across every data layer, container image supply chain provenance, SBOM disclosure, CVE remediation SLAs, penetration testing, and SOC 2 Type II coverage. # 4 — Encryption & supply chain security — data protection, image provenance & vendor assurance. This section covers the encryption posture of the Layerup AI Agents across every data layer, and the supply chain security controls that govern how the container image itself is built, signed, scanned, and delivered to your private registry. *** ## 4.1 Encryption standards — your keys, your control The Layerup agent adheres to your existing encryption standards and operates entirely within encryption key boundaries controlled by your security team. The agent holds no encryption keys of its own. | layer | encryption approach | | - | - | | **Data in Transit** | All communication between the agent container and AWS or Azure managed services uses TLS 1.3. VPC Endpoints and Private Link ensure that traffic never traverses the public internet, providing an additional layer of network-level confidentiality beyond TLS. | | **Application Documents at Rest** | Application packets stored in S3 or Azure Blob are encrypted using customer-managed keys (CMK) stored in AWS Key Management Service (KMS) or Azure Key Vault. Your Key Administrators control key rotation schedules and access policies. | | **Agent Memory / Intermediate State** | Working memory within an AgentCore microVM or ECS task is ephemeral and discarded at session end. If your team configures persistent intermediate state storage (e.g., to a designated DynamoDB table or Cosmos DB instance), that storage is encrypted using the same CMK framework. | | **Audit Logs at Rest** | CloudWatch Logs and Azure Monitor logs are encrypted at rest using AWS KMS or Azure Key Vault keys designated by your team. | | **Key Access** | The agent's IAM Role / Managed Identity is granted only `kms:Decrypt` or Key Vault Secrets User permissions. It cannot rotate, disable, or delete keys. | > [!WARNING] > > The agent cannot access or export your KMS / Key Vault keys. It holds only > decrypt permission for the specific key designated to its input bucket. Key > rotation, disablement, and deletion remain exclusively under your Key > Administrators' control — revoking the key instantly and permanently > terminates the agent's ability to read application data. *** ## 4.2 Supply chain security — provenance from build to production Layerup maintains a rigorous supply chain security posture for the AI Agents container images. The following documentation is available to your security team upon request under NDA. ### 4.2.1 Software Bill of Materials (SBOM) A complete SBOM in **CycloneDX** or **SPDX** format is published for every released image version, listing every OS package, language runtime, and application library bundled within the container image, along with version numbers and license information. Your security team can: * Validate the SBOM against the image digest before it enters your ECR / ACR. * Cross-reference the SBOM against your organization's approved package lists. * Import the SBOM into your existing SCA (Software Composition Analysis) tooling. The Azure Marketplace listing includes SBOM disclosure as part of the offer metadata — your procurement and security teams can review it before subscribing. ### 4.2.2 Image signing — Cosign / Sigstore The container image is signed using **Sigstore/Cosign**. Before pulling the image to your ECR or ACR, your team can verify the image signature, confirming that: * The image was built by Layerup's verified CI/CD pipeline. * The image has not been tampered with in transit between Layerup's build system and your private registry. * The signature is anchored to a specific build identity and timestamp. ECR and ACR both support signature verification policies that can be configured to quarantine unsigned or unverified images before they are available for deployment. ### 4.2.3 CVE remediation SLAs Layerup commits to releasing patched container image versions within defined SLAs upon disclosure of vulnerabilities affecting the agent's dependencies: | severity | CVSS score | remediation SLA | | - | - | - | | Critical | >= 9.0 | 24 hours | | High | 7.0–8.9 | 5 business days | | Medium | 4.0–6.9 | Next scheduled release | | Low | \< 4.0 | Best effort | When a patched image is released, it is available in your AWS Marketplace subscription or ACR mirroring pipeline within 24 hours of the Layerup release. Your internal CI/CD pipeline governs promotion to production (see 10 for the full image promotion pipeline). ### 4.2.4 Penetration testing Layerup conducts annual third-party penetration testing against the agent's container image and orchestration components. The most recent penetration test report is available to your security team under NDA, including: * Scope, methodology, and testing period. * All findings and severity ratings. * Remediation status for all identified findings. ### 4.2.5 SOC 2 Type II Layerup's development and build infrastructure is covered by a SOC 2 Type II audit. The most recent report is available to your security team under NDA. The audit covers: * Security (CC6): Logical access controls, change management, and incident response for Layerup's build and release infrastructure. * Availability (A1): Uptime and release pipeline reliability. * Confidentiality (C1): Handling of customer configuration data and SBOM artifacts. > [card] Available Under NDA > > **SOC 2 Type II Report** — Contact your Layerup account team to initiate NDA execution and report access. Available within 5 business days of NDA completion. > [card] Available Under NDA > > **Penetration Test Report** — Annual third-party test results available to your Information Security team under NDA. Includes all findings and remediation evidence. *** ## 4.3 Layerup's internal release pipeline — what runs before your team sees the image Every container image version released by Layerup passes through the following automated gates before it is made available via AWS Marketplace or ACR mirroring: 1. **Automated unit and integration test suite** — greater than 95% code coverage requirement. 2. **Static Application Security Testing (SAST)** — via Semgrep, scanning all application code. 3. **Dynamic Application Security Testing (DAST)** — against a sandboxed test environment. 4. **SBOM generation** — CycloneDX format, cross-referenced against known CVE databases. 5. **CVE scan** — against the final built image before signing. 6. **Image signing** — via Cosign, anchored to Layerup's build identity. 7. **Semantic versioning** — release tag, changelog publication, and marketplace listing update. Your security team reviews your copy of the image in your private registry after these gates have passed — before your CI/CD pipeline applies its own gates (see 10.2). # Identity, Access & AI Guardrails Source: https://docs.uselayerup.com/agents/security/iam Least-privilege IAM model for AWS and Azure, native AI guardrail configuration, and the principle that the agent introduces no new security surface — it operates within the perimeter you already own. # 3 — Identity, access & AI guardrails — least-privilege IAM, governed inference & native safety controls. This section directly addresses the requirements of your Information Security, Compliance, and Legal teams. Every security control layer described here maps to the specific cloud-native tooling your organization already owns and operates. The Layerup agent does not introduce a net-new security perimeter — it operates within the perimeter you have already established. *** ## 3.1 Identity and access management — least privilege by design The Layerup agent container is never granted broad administrative access to your AWS or Azure account. It operates under the principle of least privilege: assigned only the specific permissions required to perform its defined workflow functions. Everything else is explicitly denied. ### 3.1.1 AWS IAM Execution Role A dedicated IAM Execution Role is created for the Layerup agent task. The representative least-privilege policy is as follows: | IAM permission | justification | | - | - | | `s3:GetObject` | Read application packet documents from the designated S3 input bucket only. | | `s3:PutObject` | Write the final output JSON payload to the designated S3 output bucket only. | | `bedrock:InvokeModel` | Call a specific, approved foundation model within Amazon Bedrock. Scoped to specific model ARNs — the agent cannot invoke other Bedrock models. | | `bedrock:ApplyGuardrail` | Apply your configured Bedrock Guardrail policy to agent inputs and outputs. Required for all inference invocations. | | `sqs:ReceiveMessagesqs:DeleteMessage` | Receive work items from the designated SQS intake queue and acknowledge completion. | | `logs:CreateLogStreamlogs:PutLogEvents` | Write structured audit logs to the designated CloudWatch Log Group. | | `kms:Decrypt` | Decrypt application data from S3 using the designated customer-managed KMS key. Cannot rotate, disable, or delete keys. | > [!WARNING] > > The IAM Role is explicitly denied all other permissions via a deny-all default > policy. It cannot access other S3 buckets, invoke EC2 APIs, access Secrets > Manager secrets outside its designated path, or make any calls to services > outside those listed above. This is enforced at the AWS IAM layer — not by > agent configuration. No Layerup personnel hold any IAM credentials in your AWS account at any time during production operation. Layerup's involvement during the implementation engagement is performed via a time-limited, audited role that is explicitly revoked upon production go-live. ### 3.1.2 Azure Managed Identity The Azure equivalent is a User-Assigned Managed Identity attached to the Container App or AKS Pod. Your Azure RBAC assignments scope this identity to: | RBAC assignment | scope | | - | - | | `Storage Blob Data Reader` | Designated input storage container only | | `Storage Blob Data Contributor` | Designated output storage container only | | `Cognitive Services OpenAI User` | Specific Azure OpenAI resource used for inference | | `Key Vault Secrets User` | Designated Key Vault for decryption keys | | `Monitoring Metrics Publisher` | Designated Azure Monitor workspace | The identity has no subscription-level roles and cannot access any resources outside those explicitly scoped by your Azure RBAC configuration. *** ## 3.2 Native AI guardrails — your controls, applied at inference time Your team retains full control over the AI safety boundaries applied to the Layerup agent at inference time. These guardrails are configured and managed entirely by your platform team using native cloud tooling — Layerup does not configure, manage, or bypass these policies. ### 3.2.1 AWS: Amazon Bedrock Guardrails Amazon Bedrock Guardrails are applied as a middleware layer between the Layerup agent's prompt construction and the foundation model's response. Your team configures the following policy types within the Bedrock Guardrail: > [card] Topic Denial Policies > > Block the model from discussing topics outside the defined scope of the agent's configured workflow (e.g., preventing the model from generating investment advice or medical diagnoses outside its underwriting remit). > [card] PII Redaction > > Automatically detect and redact personally identifiable information (SSNs, > Date of Birth, medical record numbers) from model inputs and outputs where not > required for the workflow. Guardrail-applied PII handling is auditable and > consistent across all agent sessions. > [card] Hallucination Filtering (Grounding Checks) > > Bedrock Guardrails support grounding checks that evaluate whether the model's > output is factually consistent with the provided source documents — providing > an independent verification layer on top of the agent's own source-citation > requirement. > [card] Prompt Injection Protection > > Content classifiers detect and block prompt injection attempts — inputs > crafted to override the agent's operating instructions. Every inference call > is screened before the model processes it. > [card] Toxicity & Harm Filtering > > Standard Bedrock Guardrail content policies filter harmful or inappropriate > content from both model inputs and outputs across all agent sessions. > [card] Custom Blocklists > > Your team can configure domain-specific blocked terms or content patterns beyond the standard guardrail defaults — for example, blocking specific claim-related terms that should never appear in model outputs. ### 3.2.2 Azure: Azure AI Content Safety On Azure, the equivalent is Azure AI Content Safety, integrated into the Azure AI Foundry orchestration layer: * **Harm category classifiers** (hate, violence, self-harm, sexual content) are applied at the prompt and completion layers for every inference call. * **Prompt Shield** blocks jailbreak and indirect prompt injection attacks before the model processes the input. * **Custom blocklists** can be configured by your team to add domain-specific terms or patterns to the filtering ruleset. * Content Safety is applied consistently to every inference request made by the agent — there is no code path that bypasses the filter. ```mermaid theme={null} flowchart LR AGT[Agent Container] -->|"constructs prompt + AOP context"| GRL subgraph guardrail ["Guardrail Layer — Your Configuration"] GRL[Bedrock Guardrails
or Azure AI Content Safety] subgraph checks ["Applied Policy Checks"] C1[Topic Denial] C2[PII Redaction] C3[Prompt Injection Block] C4[Grounding Check] C5[Harm Filtering] end GRL --> C1 & C2 & C3 & C4 & C5 end C1 & C2 & C3 & C4 & C5 -->|"all pass → forward to model"| LLM[Foundation Model
Bedrock / Azure OpenAI] LLM -->|"response → re-screened"| GRL2[Guardrail Output Screen] GRL2 -->|"cleared response"| AGT C3 -->|"injection detected → block + log"| ESC[Escalate to Human Review] classDef layer fill:#fafafa,stroke:#111,color:#111; classDef check fill:#f4f4f2,stroke:#111,color:#111; class guardrail,checks layer; class C1,C2,C3,C4,C5 check; ``` *Fig. A3.1 — Guardrail enforcement flow. Every inference call passes through your configured guardrail policies before reaching the foundation model, and again on the model's response. A guardrail block triggers human escalation — the agent does not retry past a block.* # SSO & API Authentication Source: https://docs.uselayerup.com/agents/security/sso Single Sign-On configuration for the companion dashboard and OAuth 2.0 client credentials for system-to-system API authentication — covering both Option 2 (private cloud) and Option 3 (Layerup's Cloud). # SSO & API authentication — dashboard federation and system-to-system credentials. Authentication for Layerup AI Agent deployments covers two distinct access patterns with different mechanisms: 1. **Human users** accessing the [companion dashboard](/agents/deployment/dashboard) — authenticated via your corporate identity provider using SAML 2.0 or OIDC 2. **Systems** (your workflow platform, policy admin system) making API calls to submit cases and retrieve output — authenticated via OAuth 2.0 client credentials Both patterns apply to Option 3 (Layerup's Cloud). For Option 2 (your private cloud), the dashboard authentication is configured entirely by your team against your own ALB listener; system-to-system authentication is handled by your own API Gateway or IAM-signed requests. > [card] [Microsoft Entra ID](/agents/security/sso-entra) > > Step-by-step OIDC and SAML setup for Microsoft Entra ID (Azure AD), > including group claims configuration and multi-environment guidance. > [card] [Okta](/agents/security/sso-okta) > > Step-by-step OIDC and SAML setup for Okta, including group claims and > application assignment configuration. > [card] [PingFederate](/agents/security/sso-ping) > > Step-by-step SAML 2.0 setup for PingFederate, including SP connection > configuration and attribute contract mapping. *** ## Part 1 — Human user authentication (dashboard SSO) ### How it works The companion dashboard delegates authentication entirely to your corporate identity provider. The dashboard never stores credentials or passwords. On first access, users are redirected to your IdP login page; after authentication, a signed assertion is returned to the dashboard which establishes the user's session and role. ```mermaid theme={null} flowchart LR subgraph user ["User"] UW[Underwriter Browser] end subgraph dashboard ["Layerup Dashboard\nor Internal ALB"] SP[Service Provider\nSAML SP or OIDC Client] end subgraph idp ["Your Identity Provider\nOkta · Azure AD · PingFederate"] IDP[Identity Provider\nSSO Portal] end UW -->|"access dashboard"| SP SP -->|"redirect to IdP login"| IDP IDP -->|"authenticate user"| UW UW -->|"SAML assertion or OIDC token"| SP SP -->|"validate + establish session"| UW classDef boundary fill:#fafafa,stroke:#111,stroke-width:1.5px,color:#111; class user,dashboard,idp boundary; ``` *Fig. A8.1 — SSO authentication flow. The dashboard acts as SAML Service Provider or OIDC Relying Party. Credentials never leave your identity provider.* *** ### Supported protocols and identity providers | protocol | support | notes | | - | - | - | | **SAML 2.0** | Fully supported | SP-initiated and IdP-initiated flows both supported | | **OIDC (OpenID Connect)** | Fully supported | Authorization code flow with PKCE | | identity provider | protocol | status | | - | - | - | | Okta | SAML 2.0 / OIDC | Certified | | Microsoft Azure AD / Entra ID | SAML 2.0 / OIDC | Certified | | PingFederate | SAML 2.0 | Certified | | Google Workspace | SAML 2.0 / OIDC | Certified | | CyberArk Identity | SAML 2.0 | Certified | | Any SAML 2.0-compliant IdP | SAML 2.0 | Supported — configuration assistance available | *** ### Required claims and attribute mapping Your IdP must include the following attributes in the SAML assertion or OIDC ID token: | claim | SAML attribute name | OIDC claim | required | purpose | | - | - | - | - | - | | Email address | `urn:oid:0.9.2342.19200300.100.1.3` or `email` | `email` | Yes | Unique user identity | | Display name | `urn:oid:2.16.840.1.113730.3.1.241` or `displayName` | `name` | Recommended | Display in dashboard UI | | Group membership | `memberOf` (configurable) | `groups` (configurable) | Yes — for role assignment | Determines dashboard role | #### Role assignment — per-agent model The dashboard enforces roles at the **per-agent** level. Each deployed workflow agent carries its own pair of roles: a `submitter` role and a `reviewer` role scoped exclusively to that agent's cases. Role assignment is driven by IdP group membership claims — no manual user management is required in the dashboard itself. **Role naming convention:** | role type | IdP group name pattern | permissions | | - | - | - | | `{agent-slug}-admin` | `layerup-{agent-slug}-admins` | Full configuration access for the specified agent: manage AOP settings, configure thresholds and escalation rules, adjust confidence tier configuration, and administer agent-level settings. Includes all reviewer permissions. | | `{agent-slug}-submitter` | `layerup-{agent-slug}-submitters` | Submit new cases, upload documents, and view own case outputs for the specified agent only | | `{agent-slug}-reviewer` | `layerup-{agent-slug}-reviewers` | Read-only access to all case outputs, confidence scores, evidence citations, and requirement lists for the specified agent only | **Examples across active agents:** | IdP group | agent | access level | | - | - | - | | `layerup-contents-valuation-admins` | Contents Valuation | Configure + administer + read-only all | | `layerup-contents-valuation-submitters` | Contents Valuation | Submit + view own | | `layerup-contents-valuation-reviewers` | Contents Valuation | Read-only all | | `layerup-dental-underwriting-admins` | Dental Underwriting | Configure + administer + read-only all | | `layerup-dental-underwriting-submitters` | Dental Underwriting | Submit + view own | | `layerup-dental-underwriting-reviewers` | Dental Underwriting | Read-only all | | `layerup-group-disability-underwriting-admins` | Group STD/LTD Underwriting | Configure + administer + read-only all | | `layerup-auto-fnol-submitters` | Auto FNOL | Submit + view own | A user may belong to multiple groups and will receive the combined permissions across all mapped agents. Users with no matching group membership are denied access at the ALB layer before reaching the dashboard application. > [!NOTE] > > When a new agent is activated in your deployment, your Layerup implementation > engineer provides the two new IdP group names for that agent (`{agent - slug} > -submitters` and `{agent - slug}-reviewers`). Your IdP administrator creates > those groups, assigns the appropriate users, and maps them in the Layerup > application registration. No changes to the dashboard container or the agent > container are required — permission expansion is purely an IdP configuration > change. **Multi-environment group naming:** For deployments with separate Development, UAT, and Production environments sharing a single IdP tenant, prefix the group name with the environment to maintain access isolation: | environment | example group | | - | - | | Development | `layerup-dev-contents-valuation-admins` | | Development | `layerup-dev-contents-valuation-submitters` | | UAT | `layerup-uat-contents-valuation-submitters` | | Production | `layerup-prod-contents-valuation-admins` | | Production | `layerup-prod-contents-valuation-submitters` | Layerup provisions a separate application registration per environment in your IdP, each mapped to its own set of environment-prefixed groups. *** ### Configuration process #### For Option 2 (your private cloud) Your team configures SSO directly on the ALB listener in your AWS account. The ALB's built-in OIDC and SAML authentication features handle the SSO redirect and assertion validation natively — no additional software is required. 1. Your Layerup implementation engineer provides the **SP Entity ID** and **Assertion Consumer Service (ACS) URL** for the dashboard 2. Your IdP administrator creates an application entry for the Layerup dashboard using these values 3. Your IdP administrator configures the group claims to map to `layerup-submitters` and `layerup-reviewers` (or your equivalent group names) 4. Your AWS team configures the ALB listener rule with your IdP's OIDC discovery URL or SAML metadata URL 5. Layerup validates the SSO flow in the staging environment before go-live #### For Option 3 (Layerup's Cloud) Layerup configures SSO on the ALB in Layerup's dedicated cluster. Your team provides: 1. Your IdP's **SAML metadata URL** (for SAML 2.0) or **OIDC discovery document URL** (for OIDC) 2. The group names or OIDs that map to `submitter` and `reviewer` roles in your directory Layerup provisions the trust configuration and provides the SP metadata for your IdP administrator to complete the registration. The full configuration is validated during the deployment engagement before go-live. > [!NOTE] > > The dashboard session token (issued after successful SSO) has a configurable > TTL, defaulting to 8 hours. Sessions are invalidated immediately when a user > is removed from the IdP group — no manual session revocation is required. *** ## Part 2 — System-to-system authentication (API) ### Overview Machine-to-machine integration — your workflow system submitting cases and consuming output — uses OAuth 2.0 client credentials. No user is involved in this flow. Your system authenticates directly with a client ID and client secret to obtain a short-lived access token, then presents that token on every API call. ```mermaid theme={null} flowchart LR subgraph system ["Your Integration System"] APP[Workflow System\nor Integration Service] end subgraph auth ["Layerup Auth Server\nor Your API Gateway"] TOKEN[Token Endpoint\nOAuth 2.0 Client Credentials] end subgraph api ["Layerup Agent API\nor Your VPC Endpoint"] CASES[Cases API\nSubmit · Status · Output] end APP -->|"POST /oauth/token\nclient_id + client_secret"| TOKEN TOKEN -->|"access_token\nTTL: 1 hour"| APP APP -->|"Bearer access_token"| CASES CASES -->|"202 Accepted\ncase_id"| APP classDef boundary fill:#fafafa,stroke:#111,stroke-width:1.5px,color:#111; class system,auth,api boundary; ``` *Fig. A8.2 — OAuth 2.0 client credentials flow. Your system exchanges a client ID and secret for a short-lived access token, then uses that token to authenticate every API call. Tokens expire after 1 hour and are automatically renewed.* *** ### Token request ``` POST https://your-org.auth.uselayerup.com/oauth/token Content-Type: application/x-www-form-urlencoded grant_type=client_credentials &client_id=lrup_ci_abc123xyz &client_secret= &scope=cases:submit cases:read Response: { "access_token": "eyJhbGciOiJSUzI1NiJ9...", "token_type": "Bearer", "expires_in": 3600, "scope": "cases:submit cases:read" } ``` Tokens are signed RS256 JWTs. Your system validates the token signature using Layerup's published JWKS endpoint (`https://your-org.auth.uselayerup.com/.well-known/jwks.json`) before trusting any token for internal routing decisions. *** ### API scopes | scope | grants | | - | - | | `cases:submit` | Submit new cases, upload documents | | `cases:read` | Retrieve case status and output; subscribe to completion webhooks | | `cases:submit cases:read` | Full integration access (standard for workflow system credentials) | Credentials are issued per integration. If your organization has multiple systems that should have independent access — for example, separate credentials for a contents valuation workbench and a dental claims submission system — Layerup issues separate client ID/secret pairs with independent scope assignments. *** ### Credential management | concern | how it is handled | | - | - | | **Secret storage** | Store in AWS Secrets Manager or HashiCorp Vault — never in plaintext config files or environment variables | | **Secret rotation** | Rotate at least every 90 days; Layerup issues the new credential before the old one expires, allowing a zero-downtime rotation window | | **Compromise response** | Contact your Layerup implementation engineer — the credential is revoked within 15 minutes of a confirmed compromise report | | **Credential scoping** | One client credential per integration system — do not share credentials between multiple systems | *** ## Option 2 vs Option 3 — authentication comparison | concern | Option 2: Your Private Cloud | Option 3: Layerup's Cloud | | - | - | - | | **Dashboard SSO** | Configured by your team on your ALB listener | Configured by Layerup on dedicated cluster ALB — your team provides IdP metadata | | **IdP federation** | Direct — your ALB trusts your IdP | Layerup's ALB trusts your IdP via SAML / OIDC trust configured during deployment | | **System-to-system auth** | Your API Gateway or IAM-signed requests — no Layerup-managed auth layer | OAuth 2.0 client credentials issued by Layerup's auth server | | **Token issuer** | Your API Gateway / IAM | `your-org.auth.uselayerup.com` | | **Secret storage** | Your AWS Secrets Manager | Your AWS Secrets Manager (credentials provided by Layerup) | | **Credential rotation** | Your team controls rotation | Coordinated with Layerup — zero-downtime window provided | # Reference Appendix Source: https://docs.uselayerup.com/appendix Reference material for technical diligence: glossary, object index, tool-pattern index, action registry, role × permission matrix, event taxonomy, and integration / rollout checklists. # 24 — Reference appendix. Reference material for technical diligence: glossary, object index, tool-pattern index, action registry, role × permission matrix, event taxonomy, and integration / rollout checklists. All entries are generic platform contracts. ## 24.1 Glossary For full definitions, see §4. Selected entries: | Term | Definition | | - | - | | Substrate | The platform itself; the unified plane on which agents and humans operate. | | Plane | One of the eight horizontal layers (Experience, Reasoning, Logic, Ontology, Data, Model Gateway, Action, External SoR). | | System of record | An external authoritative system Layerup integrates with. | | Object | A typed business entity in the Ontology. | | Marking | A non-bypassable label attached to data; gates access. | | Purpose | A declared reason for accessing data; required for tool calls and human reads. | | Decision | A typed verdict produced by an agent or human reviewer; first-class object. | | Action | A typed intent to mutate a system of record; lives on the Action Plane. | | AgentRun | One bounded execution of an agent against an input object. | | EvidenceSpan | A typed citation linking a derived property or Decision back to source bytes. | | Capability lane | A typed slot in the Model Gateway routing table. | | PDP | Policy Decision Point; evaluates every tool call. | | Idempotency key | Deterministic key over the action's intent; commit at most once. | | Drift sigma | Standard-deviation distance of current eval window from trailing baseline. | | Replay | Reconstruction of a run given runId and ontology version. | | Break-glass | Purpose-tagged, MFA-stepped, time-limited grant for incident response. | ## 24.2 Object schema index All 28 objects of the Insurance Ontology (§5): | # | Group | Object | Anchor | | - | - | - | - | | 1 | Parties | Insured | o-insured | | 2 | Parties | Broker | o-broker | | 3 | Parties | Claimant | o-claimant | | 4 | Parties | Underwriter | o-underwriter | | 5 | Parties | Adjuster | o-adjuster | | 6 | Master data | Policy | o-policy | | 7 | Master data | Coverage | o-coverage | | 8 | Master data | Endorsement | o-endorsement | | 9 | Underwriting | Submission | o-submission | | 10 | Underwriting | Quote | o-quote | | 11 | Underwriting | RiskAssessment | o-risk | | 12 | Underwriting | Pricing | o-pricing | | 13 | Underwriting | BindingAuthority | o-binding | | 14 | Claims | Claim | o-claim | | 15 | Claims | LossEvent | o-loss | | 16 | Claims | Exposure | o-exposure | | 17 | Claims | Reserve | o-reserve | | 18 | Claims | Payment | o-payment | | 19 | Workflow | Task | o-task | | 20 | Workflow | Exception | o-exception | | 21 | Evidence | Document | o-document | | 22 | Evidence | EmailThread | o-email | | 23 | Evidence | Attachment | o-attachment | | 24 | Evidence | EvidenceSpan | o-evspan | | 25 | Governance | Decision | o-decision | | 26 | Governance | Action | o-action | | 27 | Governance | AgentRun | o-agentrun | | 28 | Governance | AuditEvent | o-audit | ## 24.3 Tool-pattern index | # | Pattern | Effect class | Anchor | | - | - | - | - | | 1 | Extraction | pure | tp-extraction | | 2 | Lookup | read-external | tp-lookup | | 3 | Validation | pure | tp-validation | | 4 | Classification | pure | tp-classification | | 5 | Composition | pure | tp-composition | | 6 | Action-staging | stage | tp-action-staging | | 7 | Approval-request | commit-low | tp-approval-request | | 8 | Aggregation | read-internal | tp-aggregation | | 9 | Conversion / Arithmetic | pure | tp-conversion | | 10 | Search / Retrieval | read-internal | tp-search | ## 24.4 Action registry (kinds) Tenant-specific actions inherit one of these kind families. The platform does not reserve names; tenants register kinds in the action registry. | Family | Examples (illustrative) | Default approval mode | | - | - | - | | create.\ | create.submission · create.claim · create.endorsement | scope + policy | | update.\.\ | update.policy.coverage · update.claim.status · update.exposure.reserve | scope + policy + (human gate above threshold) | | commit.financial.\ | commit.financial.payment · commit.financial.refund · commit.financial.reserve | quorum (typical) | | state.transition | state.claim.close · state.quote.bind · state.task.complete | scope + policy | | communication.\ | communication.outbound.email · communication.outbound.letter | scope + content review | | govern.\ | govern.exception.resolve · govern.audit.legal_hold | chain | ## 24.5 Role × permission matrix Default role grants. Tenants override per their authority model. | Role | policy.read | policy.write | uw\.review | claim.read | claim.write | payment.commit | action.approve | audit.read | | - | - | - | - | - | - | - | - | - | | Underwriter | ✓ | (within authority) | ✓ | ✓ | — | — | (within authority) | — | | UW Manager | ✓ | ✓ | ✓ | ✓ | — | — | ✓ | — | | Adjuster | ✓ | — | — | ✓ | ✓ | (within authority) | (within authority) | — | | Claims Manager | ✓ | — | — | ✓ | ✓ | ✓ | ✓ | — | | Reviewer | ✓ | — | (read) | ✓ | — | — | (scoped) | — | | Auditor | ✓ | — | (read) | ✓ | — | — | — | ✓ | | Security primary | ✓ | — | — | — | — | — | — | ✓ | | Operator (tenant) | (scoped) | — | — | (scoped) | — | — | — | — | | Agent (intake class) | (scoped) | — | (propose only) | (scoped) | (propose only) | — | — | — | ## 24.6 Event taxonomy index See §17.3 for the full taxonomy. Top-level families: * `identity.*` · `policy.*` · `data.*` · `ontology.*` * `tool.*` · `model.*` · `decision.*` · `action.*` * `config.*` · `incident.*` · `audit.*` ## 24.7 Integration checklist * **Identity** — SSO (SAML/OIDC) bound · SCIM provisioning · MFA required · break-glass policy signed off. * **Tenancy** — Region pin set · BYOK keys provisioned · DR class chosen · audit anchoring chosen. * **Ingest** — Channels enabled · per-channel auth configured · dedupe keys reviewed · rate budgets set. * **Mappings** — Per-source mappings authored · ontology pin set · provenance shape verified · replay sample passes. * **Tools** — Tool registry populated · scopes / markings / purposes declared · contract tests in pack. * **Agents** — Agent definitions reviewed · scopes minimised · budgets set · handoff queues provisioned. * **Models** — Approved registry populated · region pinning enforced · no-train signal verified · evals passing. * **Action plane** — SoR adapters configured · idempotency proven on contract tests · approval policies signed off · compensation paths covered. * **Security** — Markings defined · RBAC + ABAC seeded · purpose taxonomy seeded · PDP latency within SLO. * **Observability** — OTel collector configured · dashboards installed · alert routing set · cost attribution rolled up. * **DR** — RPO/RTO class verified · DR drill scheduled · backup integrity checks run. ## 24.8 Production rollout checklist * **Architecture readiness** — All planes deployed; contracts verified; per-plane SLOs in green for 30 days. * **Security readiness** — Penetration test cleared; SOC2 / ISO controls mapped; tenant security primary signed off. * **Model readiness** — All approved models passing eval gates; drift baselines stable; calibration up to date. * **Integration readiness** — All adapters in green; idempotency drills passed; reversal drills passed. * **Governance readiness** — Audit chain anchored; legal-hold tested; retention policy enforced. * **Production readiness** — Capacity plan signed off; on-call rotations live; runbooks current; freeze windows declared. * **Rollout readiness** — Canary plan approved; rollback rehearsed; tenant comms plan signed off. > [!NOTE] > > This documentation specifies the platform contract. Concrete tenant > configurations — specific models in each lane, specific tools, specific > mappings, specific authority limits, specific retention durations — are tenant > artefacts and live alongside this documentation under the tenant's release > governance. # Core Concepts & Vocabulary Source: https://docs.uselayerup.com/concepts Every term defined here is used throughout the documentation with the exact meaning given. Sections 5–22 assume this vocabulary. # 04 — Core concepts & vocabulary. Every term defined here is used throughout this documentation with the exact meaning given below. Each entry has an anchor so later sections can link back. Sections 5–22 assume this vocabulary. ## 4.1 Substrate & planes **substrate** — The platform itself: the unified plane on which agents and humans operate. The substrate is not a workflow; workflows are configurations on top of it. **plane** — One of the eight horizontal layers shown in §3 (Experience, Reasoning, Logic, Ontology, Data, Model Gateway, Action, External SoR). Cross-cutting services (Identity, Audit, Telemetry) are not "planes" but observe every plane. **system of record** — An external authoritative system Layerup integrates with — policy administration, claims, billing, document, registry, ledger. Layerup never replaces a system of record. ## 4.2 Ontology & objects **object** — A typed business entity in the Ontology — Policy, Claim, Submission, Quote, Decision, Action, AuditEvent, etc. (§5) **property** — A typed field on an object. Every property carries source, confidence, and version metadata (see provenance record). **link** — A typed relationship between objects (e.g. `Claim.exposureOf → Policy`). Links are themselves versioned and audited. **marking** — A non-bypassable label attached to data — e.g. `pii.high`, `regulated.hipaa`, `tenant.eu-only`. Markings propagate through derivations and gate access. **purpose** — A declared reason for accessing data, e.g. `underwriting.review`, `claims.adjustment`, `quality.calibration`. Tool calls and human reads must declare a purpose; the PDP (§16) checks compatibility with the data's marking. ## 4.3 Decisions, actions & runs **Decision** — A typed verdict produced by either an agent or a human reviewer against a typed input, with linked evidence and rationale. First-class object in the Ontology (§5). **Action** — A typed intent to mutate a system of record. Lives on the Action Plane (§14) with a state machine: *proposed → staged → approved → committed → reverted/rejected/failed*. **AgentRun** — One bounded execution of an agent against an input object. Has a unique `runId`, a scoped permission set, a token budget, a wall-clock budget, and a deterministic seed for replay. **decision lineage** — The graph of *(input properties → tool calls → model outputs → verifier rulings → decision)* for a Decision. Stored against the run; queryable. **action lineage** — The graph of *(decision → proposed action → staged action → approval → committed effect → optional compensation)* for an Action. **model lineage** — The pinned identity of every model used in a run — base id, fine-tune id, prompt revision, retrieval snapshot id, parameter set, region. ## 4.4 Reasoning & agents **agent** — A versioned, role-scoped reasoning unit composed of: a planner, an executor, a verifier, a memory, a tool registry slice, and a model routing policy. Agents do not have ambient authority. **planner** — The component that turns a typed input + role into an ordered sequence (or DAG) of tool calls and reasoning steps. Output is a structured plan, not free text. **executor** — The component that schedules and dispatches the planner's plan, applies retry policy, manages tool concurrency, and records every step. **verifier** — The component that runs typed assertions, schema checks, business-rule packs and adversarial probes against a candidate Decision before it is allowed to leave the run. **memory** — Run-scoped, object-pinned working memory; never cross-tenant. Long-term memory is via the Ontology, not the agent. **handoff** — The transition from agent execution to a human reviewer (or to a different agent). Handoffs are typed, reasoned, and themselves audited. ## 4.5 Models & assets **capability lane** — A typed slot in the Model Gateway routing table — e.g. *reasoning.long*, *reasoning.fast*, *embedding.text*, *vlm.document*, *ocr.handwriting*. Lanes have approved models and SLO targets. **approved model** — A model entry in the registry that has cleared eval gates, security review, and tenant policy. Only approved models can be routed. **no-train policy** — The default: customer data is never used to train any model. Opt-in is per dataset, per model lineage, with explicit tenant authorization. **prompt revision** — A semver-tagged hash of a prompt asset. Pinned at agent definition. Recorded in model lineage. **retrieval snapshot** — An immutable snapshot of an indexed corpus used at inference time. Referenced by every EvidenceSpan it contributes to. ## 4.6 Evaluation & drift **eval harness** — The continuous evaluation system. Runs golden, replay, adversarial and probe suites against any model/prompt/tool change. Produces gate verdicts. **bench score** — A normalised score across an evaluation suite, weighted by suite criticality. Used as a release gate threshold (§13). **drift sigma (σ)** — The standard-deviation distance of a current eval window from the trailing baseline window. Drift breaches σ thresholds trigger demotion. **regression suite** — A frozen labelled set of inputs and expected verdicts, run on every change. Failures block release. ## 4.7 Lineage & replay **provenance record** — The metadata stored alongside every property: . **EvidenceSpan** — A typed citation: *(documentId, byteRange | bbox | timestampRange, retrievalSnapshotId)*. EvidenceSpans link to the Property they support and the Decision they justify. **content address** — A SHA-256 over normalised input bytes. Used as the immutable handle for documents, attachments, prompt revisions, and retrieval snapshots. **replay** — Reconstruction of a run given *(runId, ontologyVersion)*. Deterministic on tool calls (idempotent), seed-pinned on model calls, and limited by retention. ## 4.8 Identity & governance **RBAC** — Role-based access control: capability scopes attached to roles, roles attached to principals. **ABAC** — Attribute-based access control: predicates over (principal, object, environment) attributes evaluated at decision time. **PDP** — Policy decision point. The component (§16) that evaluates every tool call against the caller's scopes, the object's marking, the action's policy, and the agent's role. **PEP** — Policy enforcement point. The dispatcher in front of every tool that calls the PDP and applies the verdict. **break-glass** — A purpose-tagged, MFA-stepped, time-limited grant of a normally-denied scope, used for incident response. Always recorded in the tenant audit chain. ## 4.9 Operations **idempotency key** — A deterministic key that uniquely identifies the intent of an Action; replays of the same intent must commit at most once. Construction defined in §14. **compensating action** — A typed reversal of a previously committed Action, used when forward retry is unsafe. The pair *(Action, CompensatingAction)* is recorded together in lineage. **SLO** — Service-level objective: a measurable target (latency, success ratio, freshness) per surface. Defined in §20. **RPO / RTO** — Recovery point objective / recovery time objective. Per-tenant disaster recovery commitments (§19). > [!NOTE] > > Every term above resolves with a stable anchor (`#c-…`) so later sections can > cite definitions inline. The full glossary is in §24. # Data Plane — Ingestion Source: https://docs.uselayerup.com/data/ingestion The Data Plane accepts heterogeneous signal from many channels, classifies, hashes, normalises, and presents it as a typed, content-addressed stream of objects. # 07 — Data plane — ingestion & source surfaces. The Data Plane is the platform's port to the outside world. It accepts heterogeneous signal from many channels, classifies it, hashes it, normalises it, and presents it to the Ontology and the Reasoning plane as a typed, content-addressed stream of objects. ## 7.0 Reference — multimodal ingestion layer The platform ingests anything an insurance carrier already touches: human-language channels (email, chat, phone, SMS), structured digital channels (forms, partner APIs, webhooks), document channels (PDF, scans, images, handwriting), voice channels (calls, voicemail, IVR transcripts), and machine channels (telematics, sensor, CDC). Everything funnels through a Channel Router, into channel-appropriate extractors (OCR / VLM, voice transcription, structured parsers), and out into a Unified Intake Queue typed against the Ontology. ```mermaid theme={null} flowchart TB subgraph CH [Channels] CH1[Email / mailbox] CH2[Chat / SMS / messaging] CH3[Phone / voicemail / IVR] CH4[Web / mobile forms] CH5[Partner APIs / webhooks] CH6[SFTP / batch files] CH7[Document upload / scan] CH8[Telematics / sensor stream] end subgraph ROUTER [Channel router] R1[Authenticate] R2[Classify channel] R3[Tag tenant / region] R4[Apply rate budget] end subgraph EXT [Channel-specific extractors] E1[Structured parser] E2[Agentic OCR / VLM] E3[Voice transcription] E4[Email / chat parser] E5[Stream consumer] end subgraph QUEUE [Unified intake queue] Q1[Typed event] Q2[Provenance + hash] Q3[Markings applied] end CH1 --> ROUTER CH2 --> ROUTER CH3 --> ROUTER CH4 --> ROUTER CH5 --> ROUTER CH6 --> ROUTER CH7 --> ROUTER CH8 --> ROUTER ROUTER --> E1 ROUTER --> E2 ROUTER --> E3 ROUTER --> E4 ROUTER --> E5 E1 --> QUEUE E2 --> QUEUE E3 --> QUEUE E4 --> QUEUE E5 --> QUEUE QUEUE --> ONT[Ontology / Data abstraction] classDef src fill:#fff,stroke:#111,color:#111; classDef hub fill:#fafafa,stroke:#111,stroke-width:1.5px,color:#111; class CH,EXT src; class ROUTER,QUEUE hub; ``` *Fig. 7.0a — Multimodal ingestion layer. Eight channel families → Channel Router → channel-specific extractors → Unified Intake Queue → Ontology.* ## 7.1 Channel matrix The substrate accepts signal across three transport modes — push, pull, and stream — and three content modes — structured, semi-structured, and unstructured. The same ingest gateway (§7.3) terminates all of them; differences are confined to adapters. | Mode | Examples | Latency | Idempotency | Default backpressure | | - | - | - | - | - | | Push · structured | Webhooks · partner APIs · broker portals | real-time | caller-supplied key + body hash | HTTP 429 + Retry-After | | Push · unstructured | Inbound email · SFTP drop · upload portal | seconds–minutes | (message-id, attachment-hash) tuple | queue depth gating | | Pull · structured | Policy admin · claims · billing · GL | scheduled or change-feed | (source, primary key, version) | chunked cursor | | Pull · unstructured | Document mgmt · regulator portals | polled | (source, externalId, contentHash) | chunked cursor | | Stream | Telematics · sensor · clickstream · partner CDC | milliseconds–seconds | per-stream watermark | partition lag · DLQ | ## 7.2 Content modes > [card] Typed payloads > > **Structured** — JSON / XML / Avro / Protobuf with a known schema. Validated > at the gateway, mapped directly to Ontology objects. > [card] Form-shaped > > **Semi-structured** — Standard forms (ACORD, regulator filings, broker > spreadsheets). Parsed into a tabular intermediate, then mapped. > [card] Free-form content > > **Unstructured** — PDFs, images, scans, handwritten forms, emails, voice > transcripts. Routed through extraction tools (§9 · Extraction) under audit. ## 7.3 Ingest gateway responsibilities The ingest gateway is a single hardened component that every channel terminates into. It performs: 1. **Authentication** — mTLS / OAuth2 client credentials / signed webhook / SFTP key. Anonymous ingest is never permitted. 2. **Authorisation** — the source principal's scope must include `data.ingest.`. Cross-tenant routing is impossible by construction. 3. **Anti-malware & content scan** — every byte stream is scanned at the boundary. Quarantine on detection; tenant security plane notified. 4. **Classification** — initial markings (tenant, region, default sensitivity) are applied immediately. 5. **Hashing** — SHA-256 of the canonical payload bytes; stored as the document content address. 6. **Persistence** — write to immutable object storage with versioned key and retention policy. 7. **Dedupe** — see §7.5. 8. **Acknowledgement** — typed receipt with `(documentId, contentHash, ingestId)`; acknowledged after durable persistence and audit emission. ## 7.4 Topology ```mermaid theme={null} flowchart TB src1[Push channel] --> gw[Ingest gateway] src2[Pull adapter] --> gw src3[Stream consumer] --> gw gw --> auth[Auth + scope] auth --> scan[Scan + classify] scan --> hash[Hash + persist] hash --> dedupe[Dedupe] dedupe --> map[Mapping queue] hash --> store[(Immutable object store)] dedupe --> dlq[(DLQ)] audit[(Audit chain)] -.- gw audit -.- auth audit -.- scan audit -.- dedupe ``` *Fig. 7.1 — Ingest topology. Every channel terminates into the same gateway; every step emits an AuditEvent.* ## 7.5 Dedupe key construction Dedupe keys are deterministic per channel and form the basis of intake idempotency. The same logical signal received twice never produces two upstream objects. | Channel | Dedupe key | | - | - | | Webhook | `sha256(deliveryId · bodyHash)` | | Email | `sha256(messageId · normalisedFrom · attachmentHashes)` | | Pull (CDC / change-feed) | `(sourceId, recordKey, sourceVersion)` | | SFTP / batch | `sha256(filePath · contentHash · ingestEpoch)` | | Stream | `(partition, offset)` | ## 7.6 Intake idempotency contract * Replays of an identical payload return the original `ingestId` with the receipt unchanged. * Different payloads under the same dedupe key are typed as a `data.ingest.collision` Exception and quarantined. * Replays of an identical stream offset are silently dropped. * The gateway never silently overwrites a previously persisted document. ## 7.7 Rate-shaping & backpressure Each channel has a per-tenant rate budget configured at provisioning. Sustained breach results in 429 / Retry-After to push channels and pause-of-cursor to pull adapters. Streams apply per-partition lag thresholds; sustained breach moves traffic to a slow lane and raises a `data.ingest.lag` Exception. The gateway never silently drops signal. ## 7.8 Boundary failure modes | Failure | Detection | Containment | Audit signature | | - | - | - | - | | Auth replay | nonce / timestamp window | reject; lock principal after threshold | `data.ingest.auth_replay` | | Schema drift (push) | schema validation fail | route to schema-quarantine queue | `data.ingest.schema_drift` | | Malware | scanner verdict | quarantine; security notify | `data.ingest.malware` | | Source unavailable (pull) | error rate window | backoff with circuit breaker | `data.ingest.source_down` | | Stream lag | partition lag > SLO | slow lane + Exception | `data.ingest.lag` | ## 7.9 Channel Router The Channel Router is the first hop after the gateway accepts a payload. Its job is to decide **which extractor lane** the payload belongs to, **which tenant and region** it lives in, and **which rate budget and markings** apply — before any extractor touches the bytes. It is intentionally thin and stateless. Every routing decision is a typed AuditEvent. **Inputs** * Wire-level metadata (transport, source IP, signed sender). * Authenticated principal and its tenant scope. * Content type, MIME, magic-bytes, file extension. * Channel hint declared by the gateway (e.g. `email.inbound`, `partner.webhook`). **Outputs** * Typed `ChannelRoute`: `{tenant, region, channel, lane, markings, rateClass}`. * One or more lane handles (a structured payload can fan out: parse the email body in the email-parser lane *and* route attachments through the OCR / VLM lane). * Audit emission: `data.route.assigned` with route handle and decision reasons. **Routing taxonomy** | Channel class | Default lane | Fan-out lanes | | - | - | - | | Email · inbound | email-parser | OCR / VLM (attachments) · structured-parser (forms) | | Chat / SMS | chat-parser | — | | Phone / voicemail / IVR | voice-transcription | chat-parser (post-transcript) | | Web / mobile form | structured-parser | OCR / VLM (uploads) | | Partner API / webhook | structured-parser | — | | SFTP / batch | structured-parser or OCR / VLM by content type | — | | Telematics / sensor | stream-consumer | — | The router is also where **region pinning is established**. A payload's region is decided here, persists through every downstream plane, and is never re-decided. Cross-region transit is therefore impossible by construction unless an explicit cross-region replication policy applies. (See §19 and §23.2.) ## 7.10 Agentic OCR The OCR / VLM lane is not a single OCR engine; it is an **agentic extraction pipeline** that selects and combines extraction tools per document. The lane supports printed text, handwriting, scanned forms, photographs, diagrams, tables, and mixed-content multi-page documents. **Pipeline stages** 1. **Pre-processing** — orientation, deskew, despeckle, page split, segmentation. 2. **Layout analysis** — block / line / table / figure regions; reading order. 3. **Primary extraction** — printed-text OCR, handwriting OCR, table parser, signature detector, stamp detector. Each is a versioned tool (§9 · Extraction). 4. **VLM fallback** — for low-confidence regions or non-textual content (images, diagrams), a vision-language model emits structured descriptions. 5. **Cross-extractor reconciliation** — outputs are reconciled by an agent that selects the most-supported value per field; the reasoning trail (§10.3) records why. 6. **Provenance emission** — every emitted property carries an `EvidenceSpan` (page, bbox, optionally token range) plus extractor identity and confidence. **Why "agentic"** For mixed and degraded documents, no single extractor wins. The lane is run by an agent that picks tools, requests fallbacks, and verifies cross-extractor consistency. This agentic loop is what lets the same lane handle a structured ACORD form, a smartphone photograph of a handwritten loss notice, and a scanned binder all at quality — without per-document hand-tuning. **Calibration & audit** * Confidence per field is calibrated per extractor and per document class (§8.3). * Every reconciliation decision is an AuditEvent (`data.ocr.reconcile`). * Originals are retained at content-address; an extraction can be re-run against a newer extractor version without losing the original lineage. **Certified extraction benchmarks** The lane is evaluated on the OCR-degraded segment of each workflow's synthetic validation set before a model or extractor version is certified. Field-level accuracy is measured against underwriter-labelled ground truth — not against another extractor. "Extraction floor hit rate" is the share of pages where confidence falls below the configured floor, so the field is flagged uncertain instead of being passed silently to reasoning. | document class | field-level extraction accuracy | extraction floor hit rate | | - | - | - | | Bank statements (variable layout) | 98.8% | 0.8% | | Pay stubs (employer-specific) | 98.9% | 0.7% | | W-2 forms | 99.2% | 0.4% | | Credit reports (tri-merge) | 98.6% | 1.0% | | Tax returns (1040 + schedules) | 99.1% | 0.5% | | Scanned financials (complex layout) | 99.2% | 0.6% | | Payroll registers and wage tables | 98.8% | 0.8% | | Handwritten letters / APS / wet-ink notes | 98.1% | 1.4% | | Standard printed PDFs | 99.8% | 0.1% | These figures sit in the same certified range as the per-workflow tables — see [Mortgage Insurance Underwriting](/agents/workflows/mortgage-insurance-underwriting) for the MI loan-file mix (bank statements, pay stubs, W-2s, credit, URLA, appraisal) and [IDI Underwriting](/agents/workflows/idi-underwriting) for financials and handwritten APS. A higher floor hit rate on handwriting and tri-merge credit is intentional: the lane prefers a human look at a low-confidence income, liability, or credit-event field over a silent miss. > [!NOTE] > > Traditional OCR engines treat the page as text to be transcribed. Agentic OCR > treats the page as a set of underwriting fields: it picks a tool per region, > reconciles competing extracts, and refuses to promote a value that does not > clear the floor. That is why the same lane holds accuracy on bank-statement > tables and employer-specific pay stubs that break template OCR. ## 7.11 Voice Transcription Voice channels (recorded calls, voicemail, IVR, agent-customer dialog, claim FNOL phone intake, broker phone submissions) are routed into the voice-transcription lane. The lane produces a typed `Transcript` with timing, speaker labels, language tag, redactions, and line-by-line confidence. **Pipeline stages** 1. **Pre-processing** — channel split, silence trim, format normalisation. 2. **ASR** — speech-to-text in the language detected; configurable per region and per LOB. 3. **Diarisation** — speaker turns (agent / customer / third-party). 4. **Translation** (optional) — into the operator-display language; original transcript retained. 5. **Redaction** — PII / PHI tokens are redacted at the lane boundary per markings policy (§15.4); raw audio retention follows the configured per-tenant retention floor. 6. **Hand-off** — the transcript is published to the Unified Intake Queue (§7.12) typed as `VoiceTranscript`, with a backref to the original recording. Downstream agents treat a transcript like any other unstructured document — they read from the Ontology, cite EvidenceSpans (line ranges in the transcript), and emit Decisions and Actions. ## 7.12 Unified Intake Queue The Unified Intake Queue is the single, ordered, typed surface that all extractor lanes publish into and that downstream planes (Ontology, Reasoning) consume from. It is what makes the substrate **channel-agnostic above the queue**: an underwriting agent or a claims agent does not know whether the originating signal arrived as an email attachment, an IVR call, a partner webhook, or a sensor event — it sees only typed ontology objects with provenance. **Properties** * **Typed**: every queued event is an Ontology-typed payload with provenance. * **Per-tenant**: queues are tenant-isolated; cross-tenant fan-out is impossible. * **Per-region**: queues are region-bound; cross-region transit requires explicit policy. * **Ordered with idempotency**: the dedupe key (§7.5) is honoured at queue write; re-publishes are no-ops. * **Backpressure-aware**: lag SLOs apply (§7.7); slow lanes are first-class. * **Auditable**: every enqueue and dequeue is an AuditEvent (`data.intake.publish`, `data.intake.consume`). **Why a unified queue** Two alternatives are inferior. (a) "Channel-by-channel queues then merge in the workflow" forces every workflow to handle every channel; the same workflow logic is rewritten in every product. (b) "No queue, direct call to runtime" couples ingest and reasoning, so a backed-up extractor blocks live runs. The unified queue keeps every plane simple: extractors publish typed events, the runtime consumes typed events. > [!NOTE] > > The Channel Router establishes region at the gateway, every extractor lane > runs region-pinned, and the Unified Intake Queue is region-bound. A payload > that arrives in an EU mailbox is parsed by EU extractors, queued in the EU > intake queue, and consumed by EU agents using EU-pinned models — with no > cross-region transit. The same pattern holds for any region: APAC, LATAM, > sovereign clouds. Region is therefore not a deployment afterthought but a > property carried by every event from byte zero. (See §19, §23.2.) # Data Abstraction, Mapping, Lineage & Replay Source: https://docs.uselayerup.com/data/lineage The Data Abstraction Layer: where heterogeneous input becomes typed, audited, replayable Ontology objects with full provenance, lineage graph, and governed RAG retrieval. # 08 — Data abstraction, mapping, lineage & replay. Once signal is in the gateway, the Data Plane projects it onto the Ontology. This is the **Data Abstraction Layer**: the place where heterogeneous, messy, multi-format input becomes typed, audited, replayable Ontology objects. Every typed property carries a provenance record. Every property is part of a lineage graph that links back to its source bytes. Every run is replayable against its original ontology version. And every object is searchable by an agent through a governed RAG Knowledge Base. ## 8.0 Reference — data abstraction layer The Data Abstraction Layer turns the unified intake stream (§7.12) into typed Ontology objects with full lineage, then exposes those objects to the Reasoning Plane through a governed retrieval surface and a versioned RAG Knowledge Base. ```mermaid theme={null} flowchart TB Q[Unified intake queue] --> EX[Entity extraction] EX --> INST[Ontology instantiation] INST --> MAP[Schema mapping] MAP --> CV[Cross-validation] CV --> ONT[(Ontology objects + lineage)] ONT --> SS[Semantic search and code lookup] ONT --> RAG[(RAG knowledge base)] SS --> AG[Agent runtime] RAG --> AG classDef step fill:#fff,stroke:#111,color:#111; classDef store fill:#fafafa,stroke:#111,stroke-width:1.5px,color:#111; class EX,INST,MAP,CV,SS step; class ONT,RAG store; class Q,AG step; ``` *Fig. 8.0a — Data Abstraction Layer pipeline. Five stages (Entity Extraction → Ontology Instantiation → Schema Mapping → Cross-Validation → Semantic Search / RAG) sit between the Unified Intake Queue and the Agent Runtime.* ## 8.1 Source-to-canonical mapping model A **mapping** is a versioned, declarative artefact that projects a source schema onto an Ontology object. Mappings are stored as part of the configuration domain (§21) and are subject to the same release governance as agents and tools. ```yaml theme={null} id: mapping.policy.source-a ontology: layerup://ontology/v1 ontologyPin: 2026.05 target: Policy source: kind: pull schema: source-a.policy.v7 fields: policyId: $.policyId policyNumber: $.polNum insuredRef: ref(Insured, $.insuredKey) productCode: $.product lineOfBusiness: $.lob currency: $.ccy effective: date($.effDate) expiry: date($.expDate) status: enum($.status, table=mapping.policy.status) coverageRefs: map($.coverages, mapping.coverage.source-a) required: [ policyId, policyNumber, insuredRef, productCode, lineOfBusiness, currency, effective, expiry, status, coverageRefs, ] provenance: source: source-a channel: pull recordKey: $.policyId audit: on: - mapping.applied - mapping.rejected ``` Mappings can be deterministic (pure projections) or call extraction tools (§9 · Extraction). Either way, every emitted property carries a provenance record (§8.2). Mappings are functions; they do not maintain hidden state. ## 8.2 Provenance record Every property the platform writes is accompanied by a provenance record. The record is the substrate's evidentiary contract. ```json theme={null} { "source": "source-a | email | webhook | stream:sensor.v3 | extractor:tool.extract.contact.v2", "sourceId": "doc_… | msg_… | evt_…", "byteRange": { "kind": "byteRange", "start": 1024, "end": 1208 }, "extractor": { "tool": "tool.extract.contact", "version": "2.4.1" }, "extractorRun": "run_01HF…", "modelLineage": { "model": "layerup://gw/lane/extract.text/v3", "promptRev": "p_2c8f", "retrievalSnap": "rs_19a4" }, "confidence": 0.94, "observedAt": "2026-05-24T13:21:09Z", "ontologyVersion": "2026.05", "verifierVerdict": "pass" } ``` ## 8.3 Confidence model Confidence is a normalised scalar in `[0,1]` with a defined source. Deterministic mappings emit `1.0`. Extraction tools emit a model-derived score subject to calibration. Aggregations of multiple evidence spans use a fixed combination rule: ```text theme={null} combined(c1, c2, …, cn) = 1 − Π_i (1 − c_i) // independent supports narrowed(c, ruleVerdict) = c · w(ruleVerdict) // verifier dampens or boosts calibrated(c) = isotonic_regression(c, calibrator_v) // per-tool calibration ``` Calibrators are versioned and re-fit on a fixed schedule against labelled samples; a calibrator change is itself a `data.calibrator.update` AuditEvent. ## 8.4 Lineage graph ```mermaid theme={null} flowchart LR S[Source
system / channel] D[Document
content-addressed] ES[EvidenceSpan
byteRange / bbox / row] P[Property
typed value] O[Object
Ontology entity] RUN[AgentRun] DEC[Decision] ACT[Action] S --> D --> ES --> P --> O RUN -. reads .-> O RUN --> DEC DEC --> ACT DEC -. cites .-> ES classDef n fill:#fff,stroke:#111,color:#111; class S,D,ES,P,O,RUN,DEC,ACT n; ``` *Fig. 8.1 — Lineage graph. Every Property is reachable from its source bytes via at least one EvidenceSpan; every Decision cites the spans it relied on; every Action is reachable from the Decision that authored it.* ## 8.5 Time-travel queries Every Object supports `asOf(timestamp)` reads. The substrate retains version history per property; given a timestamp, the resolver returns the version-set in force at that instant. Lineage queries (e.g. "show me the EvidenceSpans cited by Decision X") are stable under any subsequent ontology evolution because Decisions pin to ontology versions (§6.4). ## 8.6 Replay semantics Replay reconstructs an AgentRun from its persisted inputs and lineage. The substrate distinguishes two replay modes: > [card] Deterministic steps > > **Bit-exact** — All tool calls (§9) are idempotent and side-effect-bounded; > replaying them on the same inputs reproduces the same outputs bit-exactly. > Validation, lookup, conversion, classification with discrete outputs, and > rule packs are bit-exact. > [card] Non-deterministic steps > > **Seed-pinned** — Model calls capture the model id, prompt revision, > retrieval snapshot, parameter set, and seed. Replays use the exact pinned > set; outputs are reproducible to the bounds the underlying model supports. > Where a model has been retired, replay routes through the registered > successor and an Exception of kind `replay.successor` is emitted. ## 8.7 Replay bundle format A replay bundle is a self-contained, signed export of everything required to re-execute a run: the input objects pinned to their ontology version, the prompt revisions, the retrieval snapshots used, the tool versions, and the model lineage. Bundles are exportable in the `.lrb` archive format and are themselves content-addressed. | Path inside bundle | Contents | | - | - | | `/manifest.json` | Run identity, integrity hashes, signing identity | | `/ontology/` | Frozen ontology snapshot at run pin | | `/objects/` | Ontology objects referenced by the run | | `/documents/` | Source documents (bytes-by-content-address) | | `/spans/` | EvidenceSpans cited | | `/prompts/` | Prompt revisions | | `/retrieval/` | Retrieval-corpus snapshot manifests | | `/models/` | Model lineage and capability lane mapping | | `/audit/` | The slice of the audit chain covering the run | ## 8.8 Retention Documents, EvidenceSpans, Decisions, Actions, and AuditEvents are retained per the tenant's policy with a per-class minimum. The substrate enforces minimum retention regardless of any tenant deletion request; deletion below the minimum requires a typed `data.retention.exception` Decision, signed off by the tenant's data protection officer. > [!NOTE] > > Specific retention durations are tenant policy and are not part of the > platform's architectural contract. The substrate guarantees the controls; > tenants set the values. ## 8.9 Entity Extraction Entity Extraction is the stage at which the substrate identifies typed entities inside unstructured payloads — named parties, identifiers, monetary amounts, dates, addresses, vehicles, vessels, properties, providers, codes — and proposes them as candidates for Ontology objects (§8.10) and Property values (§8.1). **Inputs / outputs** * Inputs: a content-addressed Document plus optional region/LOB hints from the Channel Router (§7.9). * Outputs: a typed `EntityCandidate` set, each with type, value, EvidenceSpan (page / bbox / token range / transcript line), extractor identity, model lineage, and calibrated confidence (§8.3). **Pattern** Extractors are *tools* (§9 · Extraction). The lane runs an agent that selects extractors per content class, layers VLM fallback on low-confidence regions, and cross-checks outputs across extractors. Multiple extractors can propose candidates for the same span; the agent picks the most-supported value and records the others as alternates. ## 8.10 Ontology Instantiation Once entity candidates exist, the substrate decides which existing Ontology objects they belong to and which new objects to instantiate. This is the stage that resolves identity and links. **Algorithm** 1. **Candidate normalisation** — canonicalise identifiers (case-fold, strip punctuation, normalise tax-ids, addresses, account numbers). 2. **Entity resolution** — match candidates to existing Ontology objects via deterministic keys first, then probabilistic match using approved embeddings against an entity index. Per-LOB resolvers can be pinned (e.g. provider registry for Health, vessel registry for Marine). 3. **Decision** — one of `match` (link to existing), `create` (instantiate new), or `defer` (raise an Exception of kind `data.entity.ambiguous` for human review). 4. **Link writes** — relationships are emitted with provenance, so every link has an audit trail back to the EvidenceSpan that supports it. Ontology Instantiation never silently merges identities. A merge requires a typed `data.entity.merge` Decision, which is itself replayable. ## 8.11 Cross-Validation Cross-Validation is the stage at which proposed property values are validated *across sources* before becoming authoritative on the Ontology. It is what makes the Data Abstraction Layer trustworthy under conflicting evidence. **Validation classes** * **Within-document** — consistency between fields in the same document (e.g. policy number and policyholder name match). * **Cross-document** — agreement among multiple documents covering the same Ontology object (e.g. loss notice + adjuster report + photographs). * **Against systems of record** — reconciliation with the authoritative system (e.g. policy admin lookup, provider registry, tax authority). * **Against rule packs** — policy-table validation (e.g. coverage applies on date of loss; deductible ≤ limit; sum of allocations equals 100%). * **Against historical lineage** — check that a proposed property update is consistent with the history (e.g. policy effective date does not change after binding). Conflicts are resolved by deterministic rule packs first, agent reasoning second, and human review third. Every cross-validation decision is a typed AuditEvent (`data.crossvalidate.`) and is part of the property's provenance record. ## 8.12 Semantic Search & Code Lookup Once Ontology objects exist with provenance, the substrate exposes them to the Reasoning Plane through two retrieval interfaces: * **Semantic search** — a typed retrieval interface that combines dense embeddings (over EvidenceSpans, Documents, transcripts, and Property text) with structured filters (tenant, region, LOB, marking, time window). All retrievals are permission-checked (§16) at query time, never at index-build time. * **Code lookup** — deterministic lookups against governed code-lists (ICD-10, CPT, NAICS, ISO, vehicle / vessel / property registries, peril codes, occupational codes, currency, jurisdictional rules). Each list is versioned and pinned by the agent at run time. **Why both** Pure embedding search hallucinates and is hard to govern; pure code lookup misses anything not in a registry. The substrate uses both surfaces side-by-side: agents retrieve semantically when intent is fuzzy, and look up deterministically when the answer must be exact. Code-lookup tools are deterministic by construction (§9) and therefore replay bit-exactly. ## 8.13 RAG Knowledge Base The RAG Knowledge Base is the substrate's governed retrieval-augmented surface for agents that need to *read* beyond a single object's lineage. It is a first-class component: indexed, versioned, multi-tenant, region-pinned, marking-aware, and replayable. **Composition** * **Vector Store** — embedding index over EvidenceSpans, Documents, transcripts, and selected Property text. Embeddings are produced by approved embedding models in the Model Gateway (§12) and re-embedded on model upgrade with a deterministic re-embedding job that produces a new *retrieval snapshot*. * **Indexed Knowledge** — structured indexes over Ontology objects (typed properties, relationships, code-lists, calibration tables, policy tables, rule packs, prior decision summaries). These are not embedded; they are deterministic. * **Retrieval Snapshot** — an immutable handle that pins which embedding model, which index version, and which inclusion / marking filters were in effect at retrieval time. Every Decision and tool call records its retrieval snapshot id (§8.7), so every retrieval is replayable. **Governance** * **Marking-aware retrieval** — retrievals enforce the caller's clearance (§15.4); a chunk a caller cannot see does not appear in the result set, and its absence is itself audited. * **Tenant isolation** — vector indexes are tenant-isolated by physical partition; a query cannot cross tenants by construction. * **Region pinning** — indexes live in their tenant's region; a cross-region query is impossible without an explicit replication policy. * **Provenance preservation** — every retrieved chunk retains its source EvidenceSpan, so any Decision that uses a retrieval can cite the underlying bytes (§17 · Decision lineage). * **No customer-data training** — retrievals are not training data. The Model Gateway's no-train policy (§12) binds at the retrieval boundary too. From the Reasoning Plane's perspective, the RAG Knowledge Base is just another tool pattern (§9 · Search / Retrieval): typed query, typed result set, idempotent on the same retrieval snapshot, audited per call. The agent does not know whether the answer came from semantic similarity or a code lookup — only that it cited the EvidenceSpan it used. # Enterprise Scale & Federation Source: https://docs.uselayerup.com/enterprise-scale For the global CTO: how the substrate operates across geography, LOB, workflow, and systems at enterprise scale — all on one substrate, with sub-linear marginal cost per addition. # 23 — Enterprise scale & federation. This section is for the global CTO who needs to underwrite scale before commitment. It answers four questions explicitly. **Across geography**: how does the substrate operate in many regions at once, with sovereignty and SLOs intact? **Across LOB**: how does it serve every line of business on the same substrate? **Across workflow**: how does it serve underwriting *and* claims *and* servicing *and* billing *and* compliance *and* distribution on the same runtime? **Across systems**: how does it orchestrate every system the carrier already runs without replacing any of them? ## 23.1 Federation reference The federation diagram below is the canonical picture of Layerup at enterprise scale: one substrate, four scaling axes, every workflow domain, every LOB, every region, every system of record, all governed by the same compliance & control surface and the same audit chain. ```mermaid theme={null} flowchart TB subgraph SUR [Carrier surfaces] SUR1[Customer mobile / web] SUR2[Operator consoles] SUR3[Broker and agent portals] SUR4[Email / chat / phone / SMS] SUR5[Partner APIs] end subgraph LU [Layerup substrate] subgraph WF [Workflow execution] WF1[Underwriting agents] WF2[Claims agents] WF3[Servicing agents] WF4[Billing and finance agents] WF5[Compliance and risk agents] WF6[Distribution and audit agents] WF7[Risk engineering agents] WF8[Reinsurance and treaty agents] end subgraph PL [Shared platform planes] PL1[Multimodal ingestion] PL2[Data abstraction and ontology] PL3[Agent runtime and reasoning] PL4[Model fabric] PL5[Action plane] PL6[Compliance and control] PL7[Audit and lineage] end WF1 --> PL WF2 --> PL WF3 --> PL WF4 --> PL WF5 --> PL WF6 --> PL WF7 --> PL WF8 --> PL end subgraph SOR [Carrier systems of record] SOR1[Policy admin] SOR2[Claims platform] SOR3[Billing / GL] SOR4[Document mgmt] SOR5[Partner registries] SOR6[Reinsurance / treaty] SOR7[BI and analytics] end subgraph REG [Regions] REG1[EU cell] REG2[US cell] REG3[APAC cell] REG4[Sovereign / on-prem cell] end SUR --> LU LU --> SOR LU -. deployed across .-> REG classDef cell fill:#fff,stroke:#111,color:#111; classDef hub fill:#fafafa,stroke:#111,stroke-width:1.5px,color:#111; class SUR,SOR,REG cell; class LU,WF,PL hub; ``` *Fig. 23.1 — Layerup at enterprise scale. One substrate. Eight workflow domains. Seven shared planes. Every system of record. Every region. The four scaling axes (geo, LOB, workflow, system) all manifest on this one figure.* ## 23.2 Four scaling dimensions > [card] Multi-region federation > > **Axis 1 · Geography** — Each new region is a new cell (§19.10). Same > software, same ontology, same runtime, same control layer, configured to the > region's sovereignty profile. Cross-region governance plane carries metadata > only. New region cost ≈ provisioning + config. Not platform redevelopment. > [card] Multi-LOB ontology > > **Axis 2 · Line of business** — LOB-specific extensions live as branches off > the canonical Ontology trunk (§5.5). Personal Auto, Homeowners, Commercial > Property, Workers' Comp, Marine, Specialty / E\&S, Life, Health, Reinsurance > — all on the same 28-object trunk. New LOB cost ≈ branch authoring + > LOB-specific tools. Not platform redevelopment. > [card] Multi-workflow runtime > > **Axis 3 · Workflow** — The same Orchestrator + Specialist Worker + > Reasoning Trail + Verifier loop (§10) serves every workflow domain. New > workflow cost ≈ agent definition + tool registry + verifier rule pack. Not > new runtime, not new model fabric, not new control layer. > [card] Multi-system orchestration > > **Axis 4 · System** — Every carrier system of record is a SoR adapter > (§14.4) inside the integration plane (§3.7). New system cost ≈ adapter > authoring + mapping authoring + idempotency contract. Carrier systems are > never replaced. ## 23.3 Workflow catalog by domain The substrate is workflow-domain-agnostic. Below is a non-exhaustive catalog of workflow domains the same Layerup substrate serves. Every entry runs the same ingestion, ontology, runtime, control, action, audit, telemetry stack — the only differences are the agent definitions, tool registries, verifier rule packs, and SoR adapters in use. | Domain | Example agent classes | Primary SoR adapters | | - | - | - | | **Claims** | Loss-notice intake, severity triage, coverage adjudication, fraud signal review, subrogation candidate, payment readiness, reserve update, exception triage | Claims platform, billing, document mgmt, partner registries, reinsurance | | **Underwriting** | Submission intake, appetite-fit triage, broker-of-record reconcile, risk classification, pricing draft, binding authority check, fac requirement check | Policy admin, broker portal, partner data, ratings APIs, reinsurance treaty | | **Servicing** | Endorsement intake, mid-term change adjudication, billing inquiry, address / coverage change, document re-issue, customer correspondence drafting | Policy admin, billing, document mgmt, customer portal | | **Billing & Finance** | Premium reconciliation, payment exception, broker commission audit, refund / write-off draft, GL exception triage, treaty cession reconcile | Billing, GL, treaty / reinsurance, broker registries | | **Compliance & Risk** | Regulator filing intake, sanctions / screening review, market-conduct review, regulatory exception triage, audit response drafting | Policy admin, claims, billing, document mgmt, regulator filings | | **Distribution** | Broker onboarding KYC, broker performance review, distribution audit, agency channel reconcile, partner-data quality | Broker / agent registries, partner APIs, billing | | **Risk Engineering** | Loss-control survey intake, recommendation drafting, mitigation tracking, on-site report extraction, premium impact estimate | Policy admin, document mgmt, GIS / hazard data, reinsurance treaty | | **Reinsurance & Treaty** | Cession determination, bordereau review, treaty exception triage, fac risk file drafting, retrocession reconcile | Policy admin, claims, treaty / reinsurance, broker / cedant registries | ## 23.4 Repeatability mathematics Why scaling on Layerup is sub-linear in cost: each new (region, LOB, workflow, system) tuple reuses the substrate's shared planes; only the configuration domains change. The substrate's marginal cost equation is below; concrete values are tenant-specific and not part of the architectural contract. ```text theme={null} cost(region_n+1) ≈ provisioning(cell) + config(region) // platform code is shared cost(LOB_n+1) ≈ branch_authoring + tool_pinning // ontology trunk is shared cost(workflow_n+1) ≈ agent_definition + verifier_rule_pack // runtime is shared cost(system_n+1) ≈ adapter_authoring + mapping_authoring // ingest / action shape is shared total = first_deployment + Σ(marginal costs) ≪ first_deployment × N for any nontrivial N ``` The carrier's first workflow is the most expensive; every subsequent workflow is materially cheaper because it reuses the substrate. The same property holds for new regions, new LOBs, and new SoR adapters. This is the property a global CTO is buying. ## 23.5 Indicative rollout shape A typical enterprise rollout follows a shape rather than a fixed schedule. Specific durations are tenant-dependent and not part of the architectural contract; the *shape* is. | Phase | Scope | What ships | | - | - | - | | **Phase 0 · Substrate stand-up** | One region cell, identity federation, ingestion gateway, audit chain, model fabric Stage 1–6 for one capability lane. | Substrate ready for the first agent. | | **Phase 1 · First workflow** | One workflow in one LOB in one region. Full ontology branch, agents, tools, verifier, action adapters. | End-to-end production pattern proven. | | **Phase 2 · Adjacent workflow / LOB** | Add a second workflow domain or a second LOB in the same region. | Reuse of substrate planes demonstrated; marginal cost validated. | | **Phase 3 · Multi-region** | Stand up a second region cell; cross-region governance plane active. | Multi-region federation pattern in production. | | **Phase 4 · Enterprise scale** | N regions × M LOBs × K workflows; SoR adapter coverage across the carrier's stack. | Substrate operating as the carrier's AI work plane. | ## 23.6 Day one vs. year three | Dimension | Day one | Year three | | - | - | - | | Regions | 1 cell | N cells, federated | | LOBs | 1 ontology branch | M branches on shared trunk | | Workflows | 1 workflow domain | Multi-domain (claims, UW, servicing, billing, compliance, distribution, risk eng, reinsurance) | | Agents | Few agent classes | Many agent classes, all under same governance | | Tools | Domain-specific registry | Shared registry with domain-specific extensions | | Models | Tier A primary, Tier B fallback | Tier A / B / C mix per lane, customer-owned where justified | | SoR adapters | Core systems | Full carrier stack including registries, reinsurance, BI | | Audit / lineage | Per-tenant chain | Per-tenant chains, anchored, cross-region governance roll-up | | Kill switch | Tenant scope | Tenant + region + workflow + agent + tool granularities exercised | | Operating cost | Front-loaded | O(*configurations*); marginal cost per addition is small | > [!NOTE] > > Layerup's bet on year three is not "we will build more workflow tools." It is > **"we will be the substrate your AI workflows live on, no matter how many you > add, no matter what region they run in, no matter which systems they federate > with."** Workflows are configurations on the substrate. The substrate is the > product. # Embedding the Chat Widget Source: https://docs.uselayerup.com/integrations/chat-widget/embed Add a fully managed support chat widget to any website or mobile app with a single script tag. The Layerup chat widget runs inside a sandboxed `