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 — ORCID resolver (receipt-backed)

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

---

## Links (HTML-first)

if.trace receipt:
https://infrafabric.io/static/trace/RT-yKNMoCECSvSrZyX4ycw

Pack (HTML view):
https://infrafabric.io/static/pack/RT-yKNMoCECSvSrZyX4ycw

Pack (raw Markdown):
https://infrafabric.io/static/pack/RT-yKNMoCECSvSrZyX4ycw.md

Source bundle (tgz):
https://infrafabric.io/static/source/47d7433586d796f082330d32e846bc7455cebdbeb0044b34edcfc70050bae884.tgz

---

## What this proves (black/white)

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

This demo does not prove:
- live ORCID lookups, OAuth, or claim verification
- any shipped if.bus runtime or message broker

---

## Demo artifacts

Source bundle sha256 (tgz):

    47d7433586d796f082330d32e846bc7455cebdbeb0044b34edcfc70050bae884

Input JSON sha256:

    d5132df441e351b6779c61a023d50ef20bee02b02ba237588ca304d593217b2c

Normalized output JSON sha256:

    d0c0792ab1eee673f20e342f15ed1c018b7bc932cb8f79a76fba8ba76a7a41f4

---

## How to reproduce (no internal access)

```bash
curl -fsSL -o if-api-orcid-resolver-demo-source.tgz "https://infrafabric.io/static/source/47d7433586d796f082330d32e846bc7455cebdbeb0044b34edcfc70050bae884.tgz"
sha256sum if-api-orcid-resolver-demo-source.tgz

tar -xzf if-api-orcid-resolver-demo-source.tgz
python3 resolve_orcid_demo.py orcid_input.json > resolved_event.json
sha256sum resolved_event.json
```

Expected `sha256sum` (source bundle):

    47d7433586d796f082330d32e846bc7455cebdbeb0044b34edcfc70050bae884  if-api-orcid-resolver-demo-source.tgz

Expected `sha256sum` (normalized output):

    d0c0792ab1eee673f20e342f15ed1c018b7bc932cb8f79a76fba8ba76a7a41f4  resolved_event.json

---

## Output (normalized event envelope)

```json
{
  "event": "resolve",
  "input_sha256": "d5132df441e351b6779c61a023d50ef20bee02b02ba237588ca304d593217b2c",
  "integration": "orcid.resolver",
  "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": [
    {
      "identifier": "0000-0000-0000-0000",
      "metadata": {
        "affiliations": [
          "Synthetic Institute for Evidence"
        ],
        "display_name": "Synthetic Researcher A",
        "verified": false
      },
      "resolution_method": "synthetic-map",
      "scheme": "orcid",
      "status": "resolved",
      "target_url": "https://orcid.org/0000-0000-0000-0000"
    },
    {
      "identifier": "0000-0000-0000-0001",
      "metadata": {
        "affiliations": [
          "Synthetic Governance Lab"
        ],
        "display_name": "Synthetic Reviewer B",
        "verified": false
      },
      "resolution_method": "synthetic-map",
      "scheme": "orcid",
      "status": "resolved",
      "target_url": "https://orcid.org/0000-0000-0000-0001"
    }
  ],
  "schema_version": "demo.v1"
}
```