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 — Box resolver (receipt-backed)
**Audience:** external reviewers + operators
**Reality gate:** demo of a transformation contract, not a deployed Box integration.
---
## Links (HTML-first)
if.trace receipt:
https://infrafabric.io/static/trace/G-6hX-Cmog5k5sYkrC68QA
Pack (HTML view):
https://infrafabric.io/static/pack/G-6hX-Cmog5k5sYkrC68QA
Pack (raw Markdown):
https://infrafabric.io/static/pack/G-6hX-Cmog5k5sYkrC68QA.md
Source bundle (tgz):
https://infrafabric.io/static/source/8f6f2147d69ffd7bc1702bca59f81db59e5cce3d8bbbb2dbab8568da2dc34dfb.tgz
---
## What this proves (black/white)
This demo proves:
- a known Box 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 Box API calls, OAuth scopes, or sharing rules
- any shipped if.bus runtime or message broker
---
## Demo artifacts
Source bundle sha256 (tgz):
8f6f2147d69ffd7bc1702bca59f81db59e5cce3d8bbbb2dbab8568da2dc34dfb
Input JSON sha256:
54b48075d59ea3dca6229547a06220797c9fcd4e0d5f4d0fba37e0b71f1ebca1
Normalized output JSON sha256:
1b6ddc09d8cd571ef7a99a09b4cbc4094ff00923181b66c4b060f8ae0cb03127
---
## How to reproduce (no internal access)
```bash
curl -fsSL -o if-api-box-demo-source.tgz "https://infrafabric.io/static/source/8f6f2147d69ffd7bc1702bca59f81db59e5cce3d8bbbb2dbab8568da2dc34dfb.tgz"
sha256sum if-api-box-demo-source.tgz
tar -xzf if-api-box-demo-source.tgz
python3 resolve_box_demo.py box_input.json > resolved_event.json
sha256sum resolved_event.json
```
Expected `sha256sum` (source bundle):
8f6f2147d69ffd7bc1702bca59f81db59e5cce3d8bbbb2dbab8568da2dc34dfb if-api-box-demo-source.tgz
Expected `sha256sum` (normalized output):
1b6ddc09d8cd571ef7a99a09b4cbc4094ff00923181b66c4b060f8ae0cb03127 resolved_event.json
---
## Output (normalized event envelope)
```json
{
"event": "resolve",
"input_sha256": "54b48075d59ea3dca6229547a06220797c9fcd4e0d5f4d0fba37e0b71f1ebca1",
"integration": "box",
"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": [
{
"file_id": "123456789",
"metadata": {
"modified_at": "2026-01-06T21:10:00Z",
"name": "report.pdf",
"path_display": "/demo/report.pdf",
"size_bytes": 175420
},
"resolution_method": "synthetic-map",
"status": "resolved",
"target_url": "https://app.box.com/file/123456789"
},
{
"file_id": "987654321",
"metadata": {
"modified_at": "2026-01-06T21:00:00Z",
"name": "evidence",
"path_display": "/demo/evidence",
"size_bytes": 0
},
"resolution_method": "synthetic-map",
"status": "resolved",
"target_url": "https://app.box.com/folder/987654321"
}
],
"schema_version": "demo.v1"
}
```