Skip to content

Commit 1e5dde4

Browse files
committed
Add NativeAssistantBridgeProfile schema
1 parent 76dd039 commit 1e5dde4

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://schemas.srcos.ai/v2/NativeAssistantBridgeProfile.json",
4+
"title": "NativeAssistantBridgeProfile",
5+
"description": "SourceOS native assistant bridge profile for host/device assistant surfaces such as Apple App Intents, Siri/App Shortcuts, Apple Foundation Models, Android intents, Windows shell integrations, and browser/native extension bridges.",
6+
"type": "object",
7+
"additionalProperties": false,
8+
"required": ["id", "type", "specVersion", "name", "platform", "bridgeClass", "capabilities", "policy", "evidence"],
9+
"properties": {
10+
"id": { "type": "string", "pattern": "^urn:srcos:native-assistant-bridge-profile:" },
11+
"type": { "const": "NativeAssistantBridgeProfile" },
12+
"specVersion": { "type": "string" },
13+
"name": { "type": "string" },
14+
"platform": { "type": "string", "enum": ["macos", "ios", "ipados", "watchos", "visionos", "android", "windows", "linux", "browser", "cross-device"] },
15+
"bridgeClass": { "type": "string", "enum": ["apple-app-intents", "apple-shortcuts", "apple-foundation-models", "android-intents", "windows-shell", "browser-extension", "native-messaging", "mcp", "other"] },
16+
"capabilities": {
17+
"type": "array",
18+
"minItems": 1,
19+
"items": {
20+
"type": "object",
21+
"additionalProperties": false,
22+
"required": ["capabilityId", "operation", "defaultDecision"],
23+
"properties": {
24+
"capabilityId": { "type": "string" },
25+
"operation": { "type": "string", "enum": ["open-workroom", "create-office-artifact", "summarize", "route-local-model", "handoff-to-agent-machine", "inspect-evidence", "search-workspace", "create-reminder", "create-note", "share-artifact", "other"] },
26+
"defaultDecision": { "type": "string", "enum": ["allow-readonly", "ask", "deny", "allow-with-policy"] },
27+
"requiresUserConfirmation": { "type": "boolean", "default": true },
28+
"requiresNetworkProfileRef": { "type": ["string", "null"] },
29+
"requiresModelRouteBindingRef": { "type": ["string", "null"] },
30+
"requiresAgentRegistryGrantRef": { "type": ["string", "null"] }
31+
}
32+
}
33+
},
34+
"policy": {
35+
"type": "object",
36+
"additionalProperties": false,
37+
"properties": {
38+
"localOnlyDefault": { "type": "boolean", "default": true },
39+
"allowPromptEgress": { "type": "boolean", "default": false },
40+
"allowCrossDeviceHandoff": { "type": "boolean", "default": false },
41+
"allowPersonalContextRead": { "type": "boolean", "default": false },
42+
"allowSideEffectsWithoutConfirmation": { "type": "boolean", "default": false },
43+
"allowedAppSurfaces": { "type": "array", "items": { "type": "string" } },
44+
"deniedAppSurfaces": { "type": "array", "items": { "type": "string" } }
45+
}
46+
},
47+
"dataBoundary": {
48+
"type": "object",
49+
"additionalProperties": false,
50+
"properties": {
51+
"allowedRefs": { "type": "array", "items": { "type": "string" } },
52+
"deniedRefs": { "type": "array", "items": { "type": "string" } },
53+
"rawAppDatabaseAccessAllowed": { "type": "boolean", "default": false },
54+
"promptHashOnlyEvidence": { "type": "boolean", "default": true }
55+
}
56+
},
57+
"evidence": {
58+
"type": "object",
59+
"additionalProperties": false,
60+
"properties": {
61+
"emitAssistantInvocation": { "type": "boolean", "default": true },
62+
"emitUserConfirmation": { "type": "boolean", "default": true },
63+
"emitRouteDecision": { "type": "boolean", "default": true },
64+
"emitNativeBridgeReceipt": { "type": "boolean", "default": true },
65+
"redactPromptText": { "type": "boolean", "default": true }
66+
}
67+
}
68+
}
69+
}

0 commit comments

Comments
 (0)