Cloud Architecture & Security

Deterministic static diff first. Amazon Bedrock second.

LLMs should never guess whether an API change is breaking. PatchSpec separates contract truth from migration writing: our deterministic engine detects every wire-level breakage, then invokes Anthropic Claude via Amazon Bedrock strictly to draft clean migration guides and compatibility adapters.

FIG 01 · PRODUCTION AWS & AMAZON BEDROCK EXECUTION PIPELINE
Deterministic LayerAmazon Bedrock Synthesis
AWS ISOLATED ACCOUNT BOUNDARY · IAM LEAST-PRIVILEGE · ZERO MODEL TRAININGINGRESS SOURCESGitHub PR Webhookbase.yaml + head.yamlCI Action / CLI UploadTLS 1.3 · HMAC-SHA25601 · EDGE & AUTHAmazon CloudFront+ API Gateway• Webhook verification• Per-repo rate limits02 · DETERMINISTIC DIFFAWS LambdaNode.js / TypeScript Runtime1. Parse YAML / JSON AST2. Resolve local $ref tree3. Run 14+ breaking rules4. Zero LLM guesswork03 · IMMUTABLE SNAPSHOTS & AUDIT INDEXAmazon S3Hashed specs · TTL expiryAmazon DynamoDBPR risk & SemVer trailJSON04 · PATCH SYNTHESISAmazon BedrockAnthropic Claude• Sonnet: PR summary• Opus: SDK adapters• Scoped diff context• Private IAM invokeDEVELOPER OUTPUTPR Check Run✓ Pass / ✕ Block mergeMigration PatchMarkdown + TS/Py diff

Pipeline Stage Specifications

STAGE 01

Edge Delivery & Auth

Amazon CloudFront + API Gateway

Receives GitHub PR webhook payloads and CLI/web spec uploads over TLS with per-repo rate limiting and HMAC signature verification.

STAGE 02

Deterministic Contract Diff

AWS Lambda (TypeScript / Node.js)

Parses OpenAPI 3.x and JSON Schema trees, resolves internal $ref pointers, and runs 14+ zero-hallucination wire-compatibility checks.

STAGE 03

Spec Snapshots & Audit Trail

Amazon S3 + Amazon DynamoDB

Stores immutable hashed spec versions in S3 with lifecycle expiry and indexes per-PR breaking-change reports and risk scores in DynamoDB.

STAGE 04

Semantic Patch & Migration Synthesis

Amazon Bedrock (Anthropic Claude)

Feeds ONLY verified diff findings plus affected route definitions to Claude on Amazon Bedrock to generate backward-compatible middleware patches, SDK migration diffs, and plain-English PR summaries.

Inference Economics

Model Tiering on Amazon Bedrock

PatchSpec keeps token latency and inference costs predictable by routing Bedrock invocations strictly by diff complexity:

Claude Sonnet · Amazon BedrockLow-Latency Tier

Fast PR changelog summaries, Deprecation / Sunset headers, and single-endpoint adapter snippets.

Claude Opus / Fable · Amazon BedrockDeep Synthesis Tier

Multi-endpoint breaking migrations, cross-schema refactors, and TypeScript/Python SDK compatibility patches.

Security & Isolation

Zero-Training Data Boundaries

API schemas map internal business surfaces. PatchSpec enforces strict execution isolation across local and hosted modes:

Free Web Auditor100% Client-Side

Executes completely inside your browser session — OpenAPI and JSON Schema files are never transmitted to or logged by PatchSpec servers.

Cloud CI PipelinePrivate IAM + Bedrock

Runs inside isolated AWS IAM roles using Amazon Bedrock private inference. Customer payloads are not used to train foundation models.

Test the deterministic engine in your browser

Run the live browser-local auditor now, or contact [email protected] for Early Access to the GitHub Actions + Bedrock cloud pipeline.

Open Live Auditor