index.md

HTML wrapper for HTML-only fetchers; content is shown verbatim.

Raw file

Links (extracted)

Clickable list for reviewers; avoids copy/paste line-wrap issues.
# if.api demo — DocuSign (receipt-backed)

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

---

## Links (HTML-first)

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

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

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

Source bundle (tgz):
https://infrafabric.io/static/source/7c2f19dfaa1665229d3bfae1f7c71d6b36a63a8b7c9ad41c2258b6134ca25320.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 DocuSign API calls, credentials, or signer identity verification
- any shipped if.bus runtime or message broker

---

## Demo artifacts

Source bundle sha256 (tgz):

    7c2f19dfaa1665229d3bfae1f7c71d6b36a63a8b7c9ad41c2258b6134ca25320

Input JSON sha256:

    64b22d150a4adac2f686eb4ba02b23aabb6344a50cb0dc7b8494435fab6479c9

Normalized output JSON sha256:

    c8091d9b075b4930f07f2f9c369028b9bf79663d61b8e95b554edfe426b87939

---

## How to reproduce (no internal access)

```bash
curl -fsSL -o if-api-docusign-demo-source.tgz "https://infrafabric.io/static/source/7c2f19dfaa1665229d3bfae1f7c71d6b36a63a8b7c9ad41c2258b6134ca25320.tgz"
sha256sum if-api-docusign-demo-source.tgz

tar -xzf if-api-docusign-demo-source.tgz
python3 run_docusign_demo.py docusign_input.json > normalized_event.json
sha256sum normalized_event.json
```

Expected `sha256sum` (source bundle):

    7c2f19dfaa1665229d3bfae1f7c71d6b36a63a8b7c9ad41c2258b6134ca25320  if-api-docusign-demo-source.tgz

Expected `sha256sum` (normalized output):

    c8091d9b075b4930f07f2f9c369028b9bf79663d61b8e95b554edfe426b87939  normalized_event.json

---

## Output (normalized event envelope)

```json
{
  "event": "sign",
  "input_sha256": "64b22d150a4adac2f686eb4ba02b23aabb6344a50cb0dc7b8494435fab6479c9",
  "integration": "docusign",
  "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": [
    {
      "document_name": "demo-agreement.pdf",
      "envelope_name": "Demo Agreement",
      "metadata": {
        "envelope_id": "ENV-0001",
        "routing": "serial",
        "signature_type": "electronic"
      },
      "resolution_method": "synthetic-map",
      "status": "simulated"
    }
  ],
  "schema_version": "demo.v1"
}
```