PatchSpec
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.

Production AWS Cloud Pipeline

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 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.

Model Tiering on Amazon Bedrock

PatchSpec keeps token latency and inference costs predictable by matching Bedrock models to task complexity:

  • Claude Sonnet (Amazon Bedrock): Fast PR changelog summaries, deprecation headers, and single-endpoint adapter snippets.
  • Claude Opus / Fable (Amazon Bedrock): Multi-endpoint breaking migrations, cross-schema refactors, and TypeScript/Python SDK compatibility patches.

Zero-Training Data Boundaries

API schemas describe internal business surfaces. PatchSpec is designed around strict isolation:

  • Free Web Auditor: Executes 100% locally in your browser — OpenAPI specs are never transmitted to any server.
  • Cloud CI Pipeline: Runs inside isolated AWS IAM roles with Amazon Bedrock private inference (customer payloads are not used to train foundation models).

Test the deterministic engine now

Try the live browser auditor or request Early Access to the GitHub Actions + Bedrock cloud pipeline.

Open Live Auditor