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

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

---

## Links (HTML-first)

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

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

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

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

---

## What this proves (black/white)

This demo proves:
- a known PubMed ID 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 PubMed metadata resolution or API policy compliance
- any shipped if.bus runtime or message broker

---

## Demo artifacts

Source bundle sha256 (tgz):

    a88fd6c0d2c33447f9532f6cf55c15613315f06bff3c00ed535a8bfd6210aa56

Input JSON sha256:

    fef16f73edf2697a823de56563fad3e00543826046c1c93647ba84250d687d27

Normalized output JSON sha256:

    4f8d527116458c525597954b8a4ae8006c326b90791ca8138402564d9a0e8f64

---

## How to reproduce (no internal access)

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

tar -xzf if-api-pubmed-resolver-demo-source.tgz
python3 resolve_pubmed_demo.py pubmed_input.json > resolved_event.json
sha256sum resolved_event.json
```

Expected `sha256sum` (source bundle):

    a88fd6c0d2c33447f9532f6cf55c15613315f06bff3c00ed535a8bfd6210aa56  if-api-pubmed-resolver-demo-source.tgz

Expected `sha256sum` (normalized output):

    4f8d527116458c525597954b8a4ae8006c326b90791ca8138402564d9a0e8f64  resolved_event.json

---

## Output (normalized event envelope)

```json
{
  "event": "resolve",
  "input_sha256": "fef16f73edf2697a823de56563fad3e00543826046c1c93647ba84250d687d27",
  "integration": "pubmed.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": "31452104",
      "metadata": {
        "journal": "Example Journal",
        "published": "2025-12-31",
        "title": "Synthetic demo artifact (PubMed)"
      },
      "resolution_method": "synthetic-map",
      "scheme": "pubmed",
      "status": "resolved",
      "target_url": "https://pubmed.ncbi.nlm.nih.gov/31452104/"
    },
    {
      "identifier": "31604385",
      "metadata": {
        "journal": "Example Journal",
        "published": "2025-12-31",
        "title": "Synthetic decision pack (PubMed)"
      },
      "resolution_method": "synthetic-map",
      "scheme": "pubmed",
      "status": "resolved",
      "target_url": "https://pubmed.ncbi.nlm.nih.gov/31604385/"
    }
  ],
  "schema_version": "demo.v1"
}
```