Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

48 Hours of API Contract Drift: Field Notes from a Free Model on a Free Server

Description and use

An automated API drift detector on a free server uses cron, JSON schema validation, and an LLM to produce plain‑English summaries of changes. It caught real changes and reduced false positives after normalizing diffs.

Problem

Detect silent API contract changes without a persistent database or orchestration platform.

Outcome

The detector caught two real contract changes (author field flattening and timestamp format) while eliminating most false positives after normalizing diffs. It proved useful as a low‑cost triage tool but not a sole gatekeeper.

Workflow

  • Set up a free server with systemd timer to run every 15 minutes
  • Fetch API response and JSON Schema
  • Validate response against schema with jsonschema
  • Generate normalized diff (added, removed, type‑changed)
  • Prompt free LLM with diff and example timestamp
  • Receive plain‑English summary and impact rating
  • Post summary to Slack webhook

Evidence

The free server did what free servers do: it slept. My initial cron expression ran every 15 minutes, but the process was killed after two hours of inactivity.

Source

Instead of feeding raw JSON snippets, I started passing a normalized diff—one line per field, with only three states: added, removed, or type-changed.

Source

Twice in 48 hours the detector fired with a real signal. The first was a deprecated author object that became a flat list of strings.

Source

The second was more subtle: the API started returning timestamps without timezone offsets.

Source

  • Record date: 2026-09-05T18:08:14.516Z