# if.api demo — Make.com automation resolver (receipt-backed)

**Audience:** external reviewers + operators  
**Reality gate:** demo of a transformation contract, not a deployed Make.com integration.

---

## Links (HTML-first)

if.trace receipt:
https://infrafabric.io/static/trace/2mpXmqbyKWtgStp0B1xnyQ

Pack (HTML view):
https://infrafabric.io/static/pack/2mpXmqbyKWtgStp0B1xnyQ

Pack (raw Markdown):
https://infrafabric.io/static/pack/2mpXmqbyKWtgStp0B1xnyQ.md

Source bundle (tgz):
https://infrafabric.io/static/source/964c6e87ddc4a70d5d2b8eb7c5ebb7a5b8db774c5a95e5c7f4e63b776a2fd077.tgz

---

## What this proves (black/white)

This demo proves:
- a known Make.com scenario definition can be transformed deterministically into a normalized event envelope
- the output is bound to if.trace receipts (hash checks; signatures only where present and verifiable)

This demo does not prove:
- live Make.com API calls, OAuth scopes, or scenario execution
- any shipped if.bus runtime or message broker

---

## Demo artifacts

Source bundle sha256 (tgz):

    964c6e87ddc4a70d5d2b8eb7c5ebb7a5b8db774c5a95e5c7f4e63b776a2fd077

Input JSON sha256:

    05b61a7a0309b46cbdc96d0b750eb26c62703c4e5a243406ab3522dcb0aa9668

Normalized output JSON sha256:

    85fe8b181dff7bdf5507d54f71ef1eef022b2e5e530c639efc48450f8f73aff7

---

## How to reproduce (no internal access)

```bash
curl -fsSL -o if-api-make-demo-source.tgz "https://infrafabric.io/static/source/964c6e87ddc4a70d5d2b8eb7c5ebb7a5b8db774c5a95e5c7f4e63b776a2fd077.tgz"
sha256sum if-api-make-demo-source.tgz

tar -xzf if-api-make-demo-source.tgz
python3 resolve_make_demo.py make_input.json > resolved_event.json
sha256sum resolved_event.json
```

Expected `sha256sum` (source bundle):

    964c6e87ddc4a70d5d2b8eb7c5ebb7a5b8db774c5a95e5c7f4e63b776a2fd077  if-api-make-demo-source.tgz

Expected `sha256sum` (normalized output):

    85fe8b181dff7bdf5507d54f71ef1eef022b2e5e530c639efc48450f8f73aff7  resolved_event.json

---

## Output (normalized event envelope)

```json
{
  "event": "resolve",
  "input_sha256": "05b61a7a0309b46cbdc96d0b750eb26c62703c4e5a243406ab3522dcb0aa9668",
  "integration": "make.com",
  "notes": {
    "integrity": "see if.trace receipt for output bytes",
    "live_lookup": false
  },
  "requested_at": "2026-01-07T00:00:00Z",
  "resolved_at": "2026-01-07T00:00:00Z",
  "results": [
    {
      "metadata": {
        "action": "slack.post_message",
        "owner": "demo.builder@example.com",
        "status": "enabled",
        "trigger": "google.drive.new_file"
      },
      "resolution_method": "synthetic-map",
      "scenario_id": "scn_1001",
      "status": "resolved",
      "target_url": "https://www.make.com/en/scenarios/1001"
    },
    {
      "metadata": {
        "action": "google.sheets.append_row",
        "owner": "demo.builder@example.com",
        "status": "paused",
        "trigger": "github.issue_opened"
      },
      "resolution_method": "synthetic-map",
      "scenario_id": "scn_2002",
      "status": "resolved",
      "target_url": "https://www.make.com/en/scenarios/2002"
    }
  ],
  "schema_version": "demo.v1"
}
```
