All workflows

Machine Reflex Event Evidence

Event-native incident evidence for non-AI systems: IoT sensor gateways, CI/CD release hooks, data pipelines, inventory/event buses and ordinary cron jobs. CloudEvents 1.0 anomalies, sequence gaps, timestamp drift, forbidden types and numeric thresholds produce deterministic incident fingerprints and review actions, paid only when buyer software chooses to invoke the evidence endpoint after the free anomaly quote.

2 credits per call · $0.019 USDC with x402

Sample input

{
  "event": {
    "specversion": "1.0",
    "id": "run-2",
    "source": "/ci/release-gate",
    "type": "com.example.release.finished",
    "data": {
      "sequence": 2,
      "errors": 3
    }
  },
  "previous_events": [
    {
      "specversion": "1.0",
      "id": "run-1",
      "source": "/ci/release-gate",
      "type": "com.example.release.finished",
      "data": {
        "sequence": 1,
        "errors": 0
      }
    }
  ],
  "policy": {
    "expected_types": [
      "com.example.release.finished"
    ],
    "metric_field": "errors",
    "metric_max": 0,
    "require_consecutive_sequence": true
  }
}

Worked sample output

{
  "ok": true,
  "mode": "machine_reflex_evidence",
  "decision": "quarantine",
  "findings": [
    {
      "code": "metric_above_maximum",
      "severity": "high",
      "detail": "Metric violates buyer-declared maximum"
    }
  ],
  "observed_events": 2,
  "event_identity": {
    "source": "/ci/release-gate",
    "id": "run-2",
    "type": "com.example.release.finished",
    "time": null,
    "subject": null
  },
  "evidence": {
    "event_sha256": "137a4d72a463c2e47fc054da69c81fc51806ec901ed678e3ada7e7dfb397216c",
    "history_sha256": "e853f081872748f2183a6ac29f43ed0b1f2be2662295db9fa055ca917ddd6409",
    "policy_sha256": "1ae0102908e3b2ab9df2bde5d62ba3f483ff9d3aeb15ff1581c835fe5e282335",
    "incident_sha256": "eaa6c56c9a8f336d575c54a73d20b15cb9166db7c23883440f04fb8dcf682822"
  },
  "latest_comparable_event": null,
  "suggested_actions": [
    "isolate_metric_and_investigate_sensor_or_pipeline"
  ],
  "independently_verified": false,
  "charged_by_this_function": false,
  "limitations": [
    "Caller-provided CloudEvents are not independently authenticated; hashes are integrity fingerprints, not signed or external attestations.",
    "No incident response, payment, hardware command, webhook, retry or external action is executed.",
    "Duplicate and sequence detection cover only the supplied history, not all events in other systems."
  ]
}

Worked example using published sample data only. Own-data execution is paid.

Connect in curl

Set BOUNTY_API_KEY privately after your payment is verified. Change the retry key for each new logical request.

curl 'https://bounty-engineer-x402-prod.onrender.com/v1/prepaid/machine-reflex-evidence' \
  -H "Authorization: Bearer $BOUNTY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: workflow-request-001' \
  -H 'X-Max-Credits: 2' \
  --data '{"event":{"specversion":"1.0","id":"run-2","source":"/ci/release-gate","type":"com.example.release.finished","data":{"sequence":2,"errors":3}},"previous_events":[{"specversion":"1.0","id":"run-1","source":"/ci/release-gate","type":"com.example.release.finished","data":{"sequence":1,"errors":0}}],"policy":{"expected_types":["com.example.release.finished"],"metric_field":"errors","metric_max":0,"require_consecutive_sequence":true}}'

Connect in n8n

Download the inactive n8n template. Import it, configure the private Header Auth credential, inspect the sample and run it manually. A new execution creates a new billable request; there is no automatic schedule.

Use an HTTP POST to https://bounty-engineer-x402-prod.onrender.com/v1/prepaid/machine-reflex-evidence. Send JSON and these headers; store the Bearer token as a private credential.

{
  "method": "POST",
  "headers": {
    "Authorization": "Bearer YOUR_PRIVATE_API_KEY",
    "Content-Type": "application/json",
    "Idempotency-Key": "UNIQUE_PER_LOGICAL_REQUEST",
    "X-Max-Credits": "2"
  },
  "body": {
    "event": {
      "specversion": "1.0",
      "id": "run-2",
      "source": "/ci/release-gate",
      "type": "com.example.release.finished",
      "data": {
        "sequence": 2,
        "errors": 3
      }
    },
    "previous_events": [
      {
        "specversion": "1.0",
        "id": "run-1",
        "source": "/ci/release-gate",
        "type": "com.example.release.finished",
        "data": {
          "sequence": 1,
          "errors": 0
        }
      }
    ],
    "policy": {
      "expected_types": [
        "com.example.release.finished"
      ],
      "metric_field": "errors",
      "metric_max": 0,
      "require_consecutive_sequence": true
    }
  }
}

Reuse a retry key only for the same input. Failed execution returns reserved credits. Full integration and recovery guide · Machine-readable recipe