# if.api demo — Adobe Sign (receipt-backed)

**Audience:** external reviewers + operators  
**Reality gate:** demo of a signing contract, not a deployed Adobe Sign integration.

---

## Links (HTML-first)

if.trace receipt:
https://infrafabric.io/static/trace/U2USOHGE8j715whbmsBr0Q

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

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

Source bundle (tgz):
https://infrafabric.io/static/source/261660596859ee0d1ff2ca71f9062b8fb584eb1852f9faa341756729a9ddc587.tgz

---

## What this proves (black/white)

This demo proves:
- a known signing request can be normalized deterministically into a results envelope
- the output is bound to if.trace receipts (hash checks; signatures only where present and verifiable)

This demo does not prove:
- live Adobe Sign API calls, credentials, or signer identity verification
- any shipped if.bus runtime or message broker

---

## Demo artifacts

Source bundle sha256 (tgz):

    261660596859ee0d1ff2ca71f9062b8fb584eb1852f9faa341756729a9ddc587

Input JSON sha256:

    96a59c23d3e39247e5ca7d39f7e8564214f1b05c531d2d6919d07f05a66d4452

Normalized output JSON sha256:

    a3bd67cca0e3056fc71e5645045550024aed12a7f9869d3ed73d9491a88eebcd

---

## How to reproduce (no internal access)

```bash
curl -fsSL -o if-api-adobe-sign-demo-source.tgz "https://infrafabric.io/static/source/261660596859ee0d1ff2ca71f9062b8fb584eb1852f9faa341756729a9ddc587.tgz"
sha256sum if-api-adobe-sign-demo-source.tgz

tar -xzf if-api-adobe-sign-demo-source.tgz
python3 run_adobe_sign_demo.py adobe_sign_input.json > normalized_event.json
sha256sum normalized_event.json
```

Expected `sha256sum` (source bundle):

    261660596859ee0d1ff2ca71f9062b8fb584eb1852f9faa341756729a9ddc587  if-api-adobe-sign-demo-source.tgz

Expected `sha256sum` (normalized output):

    a3bd67cca0e3056fc71e5645045550024aed12a7f9869d3ed73d9491a88eebcd  normalized_event.json

---

## Output (normalized event envelope)

```json
{
  "event": "sign",
  "input_sha256": "96a59c23d3e39247e5ca7d39f7e8564214f1b05c531d2d6919d07f05a66d4452",
  "integration": "adobe.sign",
  "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": [
    {
      "agreement_name": "Demo NDA",
      "document_name": "demo-nda.pdf",
      "metadata": {
        "agreement_id": "AGR-0001",
        "routing": "serial",
        "signature_type": "electronic"
      },
      "resolution_method": "synthetic-map",
      "status": "simulated"
    }
  ],
  "schema_version": "demo.v1"
}
```
