{
  "schemaVersion": 1,
  "slug": "api-experiment",
  "id": "case-api-experiment",
  "title": "Test an occupancy alert from a connected API",
  "summary": "A replayed JSON feed becomes an immutable dataset, a verified numerical test, and a saved 70% versus 85% comparison.",
  "category": "experiments",
  "features": ["Connected APIs", "Experiments", "Automatic validation", "Immutable datasets", "Numerical tools", "Alternative comparisons", "Automation levels", "My canvas", "Agent canvas", "Result provenance"],
  "image": {"file": "my-canvas.png", "alt": "Synatrail My canvas with a connected API card, verified occupancy experiment, result card and derived candidate"},
  "steps": [
    {"title": "Connect the feed", "body": "A controlled API read replays six illustrative occupancy rows into a pinned dataset version. The My canvas connector names the exact version used by the test."},
    {"title": "Register a falsifier", "body": "A scripted agent proposal asks whether at least two rows reach 70% occupancy. Its numeric filter and count metric are fixed before the run."},
    {"title": "Let the test run", "body": "At full automation the platform reads the connection, wires it to the Data port, computes three qualifying rows, and records a verified, met result with provenance."},
    {"title": "Compare the stricter rule", "body": "An 85% branch uses the same dataset and retains one row. The comparison preserves the baseline and records the two-row difference."}
  ],
  "outcome": {"title": "Three of six fixture rows reach 70%", "body": "The registered minimum of two is met. At 85%, only one fixture row remains. These are computed replay results, not measurements of a live library."},
  "provenance": "Isolated local Synatrail execution on 2026-10-05. The API response and agent proposal are explicit deterministic fixtures. No live public API or model provider was called; the connector read, immutable dataset, numerical worker, verification, canvas state and branch comparison are actual platform outputs.",
  "metrics": [
    {"value": "6", "label": "fixture rows read"},
    {"value": "3", "label": "rows at or above 70%"},
    {"value": "1", "label": "row at or above 85%"}
  ],
  "downloads": [
    {"file": "canvas-export.json", "label": "Saved canvas export"},
    {"file": "run-receipt.json", "label": "Verification and comparison receipt"},
    {"file": "fixture-response.json", "label": "Replayed API response"},
    {"file": "investigation.json", "label": "My and Agent graph snapshot"},
    {"file": "result-detail.png", "label": "Test plan screenshot"},
    {"file": "verification-detail.png", "label": "Verified result screenshot"}
  ],
  "documents": [
    {"file": "README.md", "title": "Follow the connected API experiment", "label": "Walkthrough and reproduction", "description": "The source fixture, canvas sequence, exact verdict, comparison and local reproduction command."}
  ]
}
