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 — PURL resolver (receipt-backed)
**Audience:** external reviewers + operators
**Reality gate:** demo of a transformation contract, not a deployed PURL resolver.
---
## Links (HTML-first)
if.trace receipt:
https://infrafabric.io/static/trace/q_2CUIyV8_VF7wWsLy1l-Q
Pack (HTML view):
https://infrafabric.io/static/pack/q_2CUIyV8_VF7wWsLy1l-Q
Pack (raw Markdown):
https://infrafabric.io/static/pack/q_2CUIyV8_VF7wWsLy1l-Q.md
Source bundle (tgz):
https://infrafabric.io/static/source/282a12531936552a5789cc6381cc913ee7effd3fd46007cc3bca09670254e81a.tgz
---
## What this proves (black/white)
This demo proves:
- a known PURL 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 PURL resolution, registry policy, or metadata governance
- any shipped if.bus runtime or message broker
---
## Demo artifacts
Source bundle sha256 (tgz):
282a12531936552a5789cc6381cc913ee7effd3fd46007cc3bca09670254e81a
Input JSON sha256:
008ec3e3319591a1991c0079ad757539cdbc05ce33407e0bfdb4ed4ab8f4909b
Normalized output JSON sha256:
2574fa0601dd63d70cd9b24dbe2603f8ccbac992709fd47d07b34c72ae189e6c
---
## How to reproduce (no internal access)
```bash
curl -fsSL -o if-api-purl-resolver-demo-source.tgz "https://infrafabric.io/static/source/282a12531936552a5789cc6381cc913ee7effd3fd46007cc3bca09670254e81a.tgz"
sha256sum if-api-purl-resolver-demo-source.tgz
tar -xzf if-api-purl-resolver-demo-source.tgz
python3 resolve_purl_demo.py purl_input.json > resolved_event.json
sha256sum resolved_event.json
```
Expected `sha256sum` (source bundle):
282a12531936552a5789cc6381cc913ee7effd3fd46007cc3bca09670254e81a if-api-purl-resolver-demo-source.tgz
Expected `sha256sum` (normalized output):
2574fa0601dd63d70cd9b24dbe2603f8ccbac992709fd47d07b34c72ae189e6c resolved_event.json
---
## Output (normalized event envelope)
```json
{
"event": "resolve",
"input_sha256": "008ec3e3319591a1991c0079ad757539cdbc05ce33407e0bfdb4ed4ab8f4909b",
"integration": "purl.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": "https://purl.org/net/if-demo-1",
"metadata": {
"issued": "2025-12-31",
"publisher": "Example Registry",
"title": "Synthetic demo artifact (PURL)"
},
"resolution_method": "synthetic-map",
"scheme": "purl",
"status": "resolved",
"target_url": "https://example.org/purl-demo-1"
},
{
"identifier": "https://purl.org/net/if-demo-2",
"metadata": {
"issued": "2025-12-31",
"publisher": "Example Registry",
"title": "Synthetic decision pack (PURL)"
},
"resolution_method": "synthetic-map",
"scheme": "purl",
"status": "resolved",
"target_url": "https://example.org/purl-demo-2"
}
],
"schema_version": "demo.v1"
}
```