Core Appliance Engine

The 5-Stage Constrained Blackboard Coding Harness

Unconstrained ReAct agent loops hallucinate non-billable headers, ignore payer SOPs, and burn runaway LLM tokens. Atreya-MD replaces them with a strictly typed, bounded blackboard loop capped by a Zero-LLM CMS hard gate.

Step-by-Step Execution

Click Through Every Mutation on the Typed ChartState Blackboard

Each stage isolates a clinical ICD-10-CM responsibility, records verbatim evidence offsets, and logs tool executions locally inside your VPC.

Step 0 · ChartState Blackboard Mutation

Pre-Loop: Skill Merge, Exact Hash Cache & PHI Guard

Before invoking any LLM, Atreya-MD resolves active .md skills, checks the exact-hash deduplication cache, optionally scrubs 18 Safe-Harbor PHI classes, and retrieves strictly tenant-isolated episodic memory.

Blackboard Inputs
Clinical Chart InputActive LLM ProfileGlobal → Client → Dept → Insurer .md
Verified Outputs
SHA-256 Cache KeyPHI-Safe Clinical TextTenant Episodic Memory
Deterministic Guarantees
  • Editing any .md skill or changing LLM profiles invalidates stale cache entries atomically.
  • Episodic memory isolates strictly by Client and Insurer scope — zero cross-tenant bleed.
  • Exact-hash hits return verified ICD-10-CM codes + DAG in <15ms at $0 LLM token cost.
Stage 5 validation failures loop structured remediation feedback back to Stage 4 (capped at 4 outer iterations).
Knowledge Space · Zero Client GPU

Hybrid BM25 + EmbeddingGemma Vectors + ICD Knowledge Graph

Stream vendor-published FY2027 pre-embedded catalogs (~98,479 codes / 74,955 billable leaves) straight into your local VPC appliance, then expand candidates across CMS structural edges.

ICD-10-CM Clinical Knowledge Graph (FY2027 · 98,479 Nodes)

Inspect 1-Hop Semantic & CMS Structural Relations

I13.0BILLABLE LEAF

Hypertensive heart & CKD w/ HF and stage 1–4 CKD

HCC 226 · CC
Retrieval: BM25 + EmbeddingGemma 768-dim RRF
Bidirectional Excludes1 enforced at Stage 5
parentI13

Hypertensive heart and CKD (Non-billable Header)

use_additionalI50.23

Acute on chronic systolic heart failure

use_additionalN18.32

Chronic kidney disease, stage 3b

excludes1I10

Essential (primary) hypertension — Cannot co-code

excludes1I11.0

Hypertensive heart disease without CKD

siblingI13.2

Hypertensive heart & CKD w/ HF and stage 5/ESRD

Multi-Profile BYO-LLM Registry

Zero Vendor LLM Lock-In. Override Per Batch or Dataset.

Configure multiple LLM profiles live under /settings/llms, run live connectivity tests, and benchmark open-weights vs frontier models head-to-head on your own ground-truth regression datasets.

AWS Bedrock (HIPAA BAA)Azure OpenAI (HIPAA BAA)Google Cloud Vertex AISelf-Hosted vLLM / SGLangLM Studio (Local LAN)DeepSeek V3 / R1Anthropic Enterprise
Native Model Context Protocol (MCP)

Zero-Code Connectors for Internal EHR, Labs & Payer LCD/NCDs

Register any internal Streamable HTTP or SSE MCP server in Settings and click Discover Tools. Every endpoint automatically injects into Stage 4 as mcp__<server>__<tool> with optional PHI argument scrubbing and full Explainability DAG tracing.

3D Embedding Explorer

SVD PCA projection + cosine angle matrix across clinical phrases.

Exact-Hash Dedup Cache

Eliminates duplicate LLM spend on identical chart+scope+skill hashes.

Visual Topology · Customer VPC vs Vendor Product-Ops BoundaryZERO PHI EGRESS
Customer On-Premise / VPC / Air-Gapped Network
FastAPI + React 19
RBAC, REST/SSE v1
ARQ Workers
5-Stage Blackboard Loop
PostgreSQL 17
pgvector + Audit Chain
Redis + S3/MinIO
Checkpoints & Parquet
BYO-LLM Router
Bedrock/Azure/vLLM
Company MCP
EHR Labs & Formularies
Vendor Offline Deliverables
  • 1. Signed `.lic` file: Verified offline via embedded Ed25519 public key.
  • 2. FY2027 `.csv.gz` + SHA-256 manifest: Pre-embedded 98k vectors.
No outbound license phone-home