You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/blueprints/ai-agent-sandbox/dapp-and-indexer.mdx
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,16 @@
1
1
---
2
-
title: AI Agent Sandbox Dapp and Indexer
3
-
description: Dapp metadata, iframe policy, indexed state, and live health boundaries for AI Agent Sandbox.
2
+
title: AI Agent Sandbox Dapp Integration
3
+
description: Dapp metadata, iframe policy, protocol state, and live health boundaries for AI Agent Sandbox.
4
4
---
5
5
6
-
# AI Agent Sandbox Dapp and Indexer
6
+
# AI Agent Sandbox Dapp Integration
7
7
8
8
Tangle Cloud should launch the hosted sandbox app from metadata, then keep the raw protocol page one click away.
9
9
10
10
The hosted app owns the sandbox UX. The protocol page owns raw state inspection.
11
11
12
+
The AI Agent Sandbox repo does not ship a dedicated indexer today. Treat protocol state as data the dapp can read from contracts or a shared protocol indexing layer when one is available. Do not make an indexer part of the blueprint operator path.
13
+
12
14
## Metadata the dapp should use
13
15
14
16
| Field | Current value in repo metadata |
@@ -21,7 +23,7 @@ The hosted app owns the sandbox UX. The protocol page owns raw state inspection.
21
23
22
24
The metadata also declares cloud, dedicated instance, and TEE instance modes. Use those records to route service creation to the right blueprint ID for the selected network.
@@ -33,11 +35,11 @@ The metadata also declares cloud, dedicated instance, and TEE instance modes. Us
33
35
| Jobs | Show lifecycle and workflow commands. |
34
36
| Heartbeats | Separate "not ready yet" from "operator stopped reporting." |
35
37
36
-
The indexer should preserve enough history to distinguish pending provisioning from operator failure. The hosted app should not have to guess.
38
+
The dapp should preserve enough protocol history to distinguish pending provisioning from operator failure. That history can come from direct chain reads, a shared protocol indexer, or another canonical protocol-state service. It is not a separate component shipped by this blueprint.
37
39
38
40
## Live checks
39
41
40
-
Indexed state is not enough to open a terminal or inject a secret. Before showing a sandbox as usable, the app should check:
42
+
Protocol state is not enough to open a terminal or inject a secret. Before showing a sandbox as usable, the app should check:
41
43
42
44
1. operator API reachability
43
45
2. session auth challenge/session flow
@@ -51,12 +53,12 @@ For TEE mode, the app should also expose attestation status and avoid presenting
51
53
52
54
The sandbox app is iframe-first. The parent dapp should:
Copy file name to clipboardExpand all lines: pages/blueprints/ai-trading/dapp-and-indexer.mdx
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
1
---
2
-
title: AI Trading Dapp and Indexer
3
-
description: Arena routing, operator discovery, and indexed state for AI Trading.
2
+
title: AI Trading Dapp Integration
3
+
description: Arena routing, operator discovery, protocol state, and live operator reads for AI Trading.
4
4
---
5
5
6
-
# AI Trading Dapp and Indexer
6
+
# AI Trading Dapp Integration
7
7
8
8
The Arena is the product app for AI Trading. Tangle Cloud should launch it from trusted metadata and preserve the protocol fallback route for raw service state.
9
9
10
+
The AI Trading repo does not ship a dedicated indexer today. Its own improvement notes list vault event indexing as future work. Treat protocol state as data the Arena can read from contracts or a shared protocol indexing layer when one exists, not as a blueprint operator requirement.
11
+
10
12
## Metadata the dapp should use
11
13
12
14
| Field | Current value in repo metadata |
@@ -19,7 +21,7 @@ The Arena is the product app for AI Trading. Tangle Cloud should launch it from
19
21
20
22
The metadata also declares cloud, instance, and TEE modes. The Arena should use those mode records instead of hard-coding a single blueprint ID.
| Blueprint exists |Indexer over blueprint creation and metadata updates.|
40
+
| Blueprint exists |Contract reads or shared protocol indexing over blueprint creation and metadata updates. |
41
41
| Operator can serve it | Operator registration and endpoint metadata. |
42
42
| Service instance exists | Service request, approval, and activation events. |
43
-
| Job was submitted |Indexed job events.|
43
+
| Job was submitted |Protocol job events. |
44
44
| Product is healthy | Operator API, app-level probe, or blueprint-specific proof path. |
45
45
| Product result is trustworthy | Contract state, attestation, settlement receipt, SP1 proof, signed report, or product-specific validation. |
46
46
47
-
The indexer is discovery infrastructure. It tells the dapp what the protocol saw. It does not replace runtime health checks.
47
+
Shared protocol indexing is discovery infrastructure when it exists. It tells the dapp what the protocol saw. It is not shipped by these product blueprint repos, and it does not replace runtime health checks.
48
48
49
49
## Failure states worth showing
50
50
@@ -89,14 +89,14 @@ The direct local staking gate must exercise real contract calls for:
89
89
6. schedule withdraw
90
90
7. execute withdraw
91
91
92
-
The browser gate should prove the same actions through the UI. If local GraphQL/indexer noise blocks the browser run, say that plainly and keep the direct contract gate as the hard proof. Do not claim the browser gate passed unless it did.
92
+
The browser gate should prove the same actions through the UI. If local GraphQL or protocol-state noise blocks the browser run, say that plainly and keep the direct contract gate as the hard proof. Do not claim the browser gate passed unless it did.
| Blueprint | The recipe: jobs, metadata, binaries, contracts, and app policy. |
19
-
| Operator registration | An operator says, on-chain, "I can run this recipe." |
20
-
| Service request | A user chooses parameters and the operators that should serve them. |
21
-
| Service instance | The running service created from that request. |
22
-
| Job | A command against one service instance. Jobs change state or ask operators to do work. |
23
-
| Query | A read from contracts, the indexer, or an operator API. Queries should not be modeled as jobs. |
24
-
25
-
The indexer turns protocol events into app state. It can tell the dapp which blueprints exist, which operators registered, which service instances were created, which jobs landed, and which endpoints operators advertised. It does not prove that an endpoint is healthy, honest, or serving the right model. Product pages still need operator API checks, contract reads, attestations, settlement receipts, or proof systems.
| Blueprint | The recipe: jobs, metadata, binaries, contracts, and app policy. |
19
+
| Operator registration | An operator says, on-chain, "I can run this recipe." |
20
+
| Service request | A user chooses parameters and the operators that should serve them. |
21
+
| Service instance | The running service created from that request. |
22
+
| Job | A command against one service instance. Jobs change state or ask operators to do work. |
23
+
| Query | A read from contracts, a shared protocol indexer when available, or an operator API. Queries should not be modeled as jobs. |
24
+
25
+
A shared protocol indexer can turn protocol events into app state. It can tell the dapp which blueprints exist, which operators registered, which service instances were created, which jobs landed, and which endpoints operators advertised. It is not part of the three product blueprint repos documented here, and it does not prove that an endpoint is healthy, honest, or serving the right model. Product pages still need operator API checks, contract reads, attestations, settlement receipts, or proof systems.
0 commit comments