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 — Slack webhook resolver (receipt-backed)
**Audience:** external reviewers + operators
**Reality gate:** demo of a transformation contract, not a deployed Slack integration.
---
## Links (HTML-first)
if.trace receipt:
https://infrafabric.io/static/trace/93xpGazJYImUZjfW8zLSlg
Pack (HTML view):
https://infrafabric.io/static/pack/93xpGazJYImUZjfW8zLSlg
Pack (raw Markdown):
https://infrafabric.io/static/pack/93xpGazJYImUZjfW8zLSlg.md
Source bundle (tgz):
https://infrafabric.io/static/source/0df7785dfa1d9be0c0a7c039c8f7a717d3218f2a6d4f280dfb9e86c5136bfee9.tgz
---
## What this proves (black/white)
This demo proves:
- a known Slack webhook configuration can be transformed deterministically into a normalized event envelope
- the output is bound to if.trace receipts (hash checks; signatures only where present and verifiable)
This demo does not prove:
- live Slack API calls, OAuth scopes, or message delivery
- any shipped if.bus runtime or message broker
---
## Demo artifacts
Source bundle sha256 (tgz):
0df7785dfa1d9be0c0a7c039c8f7a717d3218f2a6d4f280dfb9e86c5136bfee9
Input JSON sha256:
eb6ce79aa3cea30cbb461a7145ceaba0e5bd54bc83d6f67690180f31649e062d
Normalized output JSON sha256:
f282b1817c478993b6b2dfa58ff1e7039426f9b0a67a1439d16ae8914cd732f3
---
## How to reproduce (no internal access)
```bash
curl -fsSL -o if-api-slack-demo-source.tgz "https://infrafabric.io/static/source/0df7785dfa1d9be0c0a7c039c8f7a717d3218f2a6d4f280dfb9e86c5136bfee9.tgz"
sha256sum if-api-slack-demo-source.tgz
tar -xzf if-api-slack-demo-source.tgz
python3 resolve_slack_demo.py slack_input.json > resolved_event.json
sha256sum resolved_event.json
```
Expected `sha256sum` (source bundle):
0df7785dfa1d9be0c0a7c039c8f7a717d3218f2a6d4f280dfb9e86c5136bfee9 if-api-slack-demo-source.tgz
Expected `sha256sum` (normalized output):
f282b1817c478993b6b2dfa58ff1e7039426f9b0a67a1439d16ae8914cd732f3 resolved_event.json
---
## Output (normalized event envelope)
```json
{
"event": "resolve",
"input_sha256": "eb6ce79aa3cea30cbb461a7145ceaba0e5bd54bc83d6f67690180f31649e062d",
"integration": "slack.webhook",
"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": [
{
"metadata": {
"channel": "#evidence",
"channel_id": "C00000001",
"owner": "demo.builder@example.com",
"status": "active",
"team_id": "T00000001"
},
"resolution_method": "synthetic-map",
"status": "resolved",
"target_url": "https://app.slack.com/client/T00000001/C00000001",
"webhook_id": "wh_1001"
},
{
"metadata": {
"channel": "#audit-log",
"channel_id": "C00000002",
"owner": "demo.builder@example.com",
"status": "paused",
"team_id": "T00000001"
},
"resolution_method": "synthetic-map",
"status": "resolved",
"target_url": "https://app.slack.com/client/T00000001/C00000002",
"webhook_id": "wh_1002"
}
],
"schema_version": "demo.v1"
}
```