@mhome/conversation-protocol 5.5.0 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/fixtures/execution/steer-resume.v1.json +112 -0
- package/fixtures/execution/steer.v1.json +67 -0
- package/fixtures/execution/steered-event.v1.json +72 -0
- package/fixtures/suggestion/conformance.json +204 -0
- package/fixtures/thread-load-steered.response.json +64 -0
- package/fixtures/turn-submit-steering.response.json +60 -0
- package/fixtures/turn-submit.request.json +2 -1
- package/manifest/targets.v1.json +1 -1
- package/package.json +1 -1
- package/protocol.json +4 -2
- package/schema/conversation-frame.v2.schema.json +23 -2
- package/schema/execution/envelope.v1.schema.json +66 -1
- package/schema/execution/suggestion.v1.schema.json +155 -0
package/README.md
CHANGED
|
@@ -45,6 +45,31 @@ Model data is re-exported from `llm-api`; there is one model-message representat
|
|
|
45
45
|
messages intentionally use separate content types and never contain private model continuation.
|
|
46
46
|
Runtime state machines, checkpoint formats, prompts and recovery policy remain in Agent Runtime.
|
|
47
47
|
|
|
48
|
+
### Suggestion execution
|
|
49
|
+
|
|
50
|
+
`SuggestionInvocationContext` declares trusted non-conversation generation with
|
|
51
|
+
a Space, run/operation IDs, trigger and deadline. It never invents a chat thread,
|
|
52
|
+
surface, enrolled Space Client or user actor for scheduled work. Public generate
|
|
53
|
+
input cannot supply this context. Core/Lion admission authenticates and binds it;
|
|
54
|
+
`validate()` only checks shape, not authority.
|
|
55
|
+
|
|
56
|
+
`SuggestionTrigger::Explicit` carries the verified requesting user, who pays for
|
|
57
|
+
that run. `Scheduled` resolves the current Space owner through the existing
|
|
58
|
+
billing adapter. `SuggestionPayer` is a derived reference, not a wire-controlled
|
|
59
|
+
account or an authorization grant. Both kinds produce Space-owned results.
|
|
60
|
+
|
|
61
|
+
The `Llm`, `AppFacade` and `ContextSource` ports accept a context type parameter
|
|
62
|
+
defaulting to the existing `InvocationContext`, preserving ordinary chat adapter
|
|
63
|
+
implementations. Background adapters explicitly use `SuggestionInvocationContext`.
|
|
64
|
+
`ExecutionContext` exposes only shared Space/run/operation metadata and child
|
|
65
|
+
operation derivation; it does not erase the distinct authority contracts. The
|
|
66
|
+
background Facade adapter must restrict access to authorized reads and script
|
|
67
|
+
validation regardless of what the prompt says.
|
|
68
|
+
|
|
69
|
+
`schema/execution/suggestion.v1.schema.json` and its shared conformance fixtures
|
|
70
|
+
define this new context. Existing conversation frames and execution wire payloads
|
|
71
|
+
are unchanged; declaring a context does not dispatch a task or register an RPC.
|
|
72
|
+
|
|
48
73
|
HITL items share one public card contract: `kind` selects approval or user action; `card.type`
|
|
49
74
|
selects trusted frontend presentation and `card.data` retains structured business data. Approval
|
|
50
75
|
responses use approve/reject. User-action responses use continue with required `data` (null when
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"version": 1,
|
|
4
|
+
"message_id": "message-1",
|
|
5
|
+
"correlation_id": "correlation-1",
|
|
6
|
+
"causation_id": null,
|
|
7
|
+
"sent_at_unix_ms": 1700000000000,
|
|
8
|
+
"dispatch": {
|
|
9
|
+
"dispatch_id": "dispatch-1",
|
|
10
|
+
"agent_session_id": "agent-session-1"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"payload": {
|
|
14
|
+
"family": "command",
|
|
15
|
+
"payload": {
|
|
16
|
+
"command": {
|
|
17
|
+
"type": "steer",
|
|
18
|
+
"context": {
|
|
19
|
+
"actor": {
|
|
20
|
+
"principal": {
|
|
21
|
+
"kind": "user",
|
|
22
|
+
"userId": "user-1"
|
|
23
|
+
},
|
|
24
|
+
"client_id": "client-1",
|
|
25
|
+
"credential_id": null
|
|
26
|
+
},
|
|
27
|
+
"thread_id": "thread-1",
|
|
28
|
+
"run_id": "run-1",
|
|
29
|
+
"operation_id": "operation-1",
|
|
30
|
+
"deadline_unix_ms": null,
|
|
31
|
+
"traceparent": null,
|
|
32
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
33
|
+
"space": {
|
|
34
|
+
"tenant_id": "tenant-1",
|
|
35
|
+
"space_id": "scope-1"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"inputs": [
|
|
39
|
+
{
|
|
40
|
+
"request_id": "input-1",
|
|
41
|
+
"actor": {
|
|
42
|
+
"principal": {
|
|
43
|
+
"kind": "user",
|
|
44
|
+
"userId": "user-1"
|
|
45
|
+
},
|
|
46
|
+
"client_id": "client-1",
|
|
47
|
+
"credential_id": null
|
|
48
|
+
},
|
|
49
|
+
"message": {
|
|
50
|
+
"role": "user",
|
|
51
|
+
"content": [
|
|
52
|
+
{
|
|
53
|
+
"type": "text",
|
|
54
|
+
"text": "hello"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"context_generation": {
|
|
62
|
+
"user_space": "scope-1",
|
|
63
|
+
"identity": "identity-1",
|
|
64
|
+
"memory": "memory-1",
|
|
65
|
+
"integration_guide": "guide-1",
|
|
66
|
+
"installed_integrations": "installed-1",
|
|
67
|
+
"space_integrations": "scope-integrations-1"
|
|
68
|
+
},
|
|
69
|
+
"llm_plan": {
|
|
70
|
+
"revision": "1700000000000",
|
|
71
|
+
"route": {
|
|
72
|
+
"backend": "openrouter",
|
|
73
|
+
"profile": "cloud_openrouter",
|
|
74
|
+
"model": "openai/gpt-5.4-mini",
|
|
75
|
+
"provider_preferences": [
|
|
76
|
+
"OpenAI"
|
|
77
|
+
],
|
|
78
|
+
"temperature": 0.5,
|
|
79
|
+
"context_window_tokens": 128000,
|
|
80
|
+
"cache_control": true,
|
|
81
|
+
"reasoning_effort": null,
|
|
82
|
+
"model_snapshot": {
|
|
83
|
+
"capabilities": {
|
|
84
|
+
"input": [
|
|
85
|
+
"image"
|
|
86
|
+
],
|
|
87
|
+
"tool_calling": true,
|
|
88
|
+
"structured_output": true
|
|
89
|
+
},
|
|
90
|
+
"generation_support": {
|
|
91
|
+
"temperature": true,
|
|
92
|
+
"maxTokens": true,
|
|
93
|
+
"thinking": true,
|
|
94
|
+
"reasoningEfforts": [
|
|
95
|
+
"high"
|
|
96
|
+
],
|
|
97
|
+
"temperatureWithReasoning": true,
|
|
98
|
+
"temperatureMax": null,
|
|
99
|
+
"maxOutputTokens": null
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"base_checkpoint": {
|
|
105
|
+
"object_key": "checkpoints/abc.json",
|
|
106
|
+
"sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
107
|
+
"format_version": 1
|
|
108
|
+
},
|
|
109
|
+
"abandoned_run_id": null
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"version": 1,
|
|
4
|
+
"message_id": "message-1",
|
|
5
|
+
"correlation_id": "correlation-1",
|
|
6
|
+
"causation_id": null,
|
|
7
|
+
"sent_at_unix_ms": 1700000000000,
|
|
8
|
+
"dispatch": {
|
|
9
|
+
"dispatch_id": "dispatch-1",
|
|
10
|
+
"agent_session_id": "agent-session-1"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"payload": {
|
|
14
|
+
"family": "command",
|
|
15
|
+
"payload": {
|
|
16
|
+
"command": {
|
|
17
|
+
"type": "steer",
|
|
18
|
+
"context": {
|
|
19
|
+
"actor": {
|
|
20
|
+
"principal": {
|
|
21
|
+
"kind": "user",
|
|
22
|
+
"userId": "user-1"
|
|
23
|
+
},
|
|
24
|
+
"client_id": "client-1",
|
|
25
|
+
"credential_id": null
|
|
26
|
+
},
|
|
27
|
+
"thread_id": "thread-1",
|
|
28
|
+
"run_id": "run-1",
|
|
29
|
+
"operation_id": "operation-1",
|
|
30
|
+
"deadline_unix_ms": null,
|
|
31
|
+
"traceparent": null,
|
|
32
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
33
|
+
"space": {
|
|
34
|
+
"tenant_id": "tenant-1",
|
|
35
|
+
"space_id": "scope-1"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"inputs": [
|
|
39
|
+
{
|
|
40
|
+
"request_id": "input-1",
|
|
41
|
+
"actor": {
|
|
42
|
+
"principal": {
|
|
43
|
+
"kind": "user",
|
|
44
|
+
"userId": "user-1"
|
|
45
|
+
},
|
|
46
|
+
"client_id": "client-1",
|
|
47
|
+
"credential_id": null
|
|
48
|
+
},
|
|
49
|
+
"message": {
|
|
50
|
+
"role": "user",
|
|
51
|
+
"content": [
|
|
52
|
+
{
|
|
53
|
+
"type": "text",
|
|
54
|
+
"text": "hello"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"context_generation": null,
|
|
62
|
+
"llm_plan": null,
|
|
63
|
+
"base_checkpoint": null,
|
|
64
|
+
"abandoned_run_id": null
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"version": 1,
|
|
4
|
+
"message_id": "message-2",
|
|
5
|
+
"correlation_id": "correlation-1",
|
|
6
|
+
"causation_id": "message-1",
|
|
7
|
+
"sent_at_unix_ms": 1700000001000,
|
|
8
|
+
"dispatch": {
|
|
9
|
+
"dispatch_id": "dispatch-1",
|
|
10
|
+
"agent_session_id": "agent-session-1"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"payload": {
|
|
14
|
+
"family": "event",
|
|
15
|
+
"payload": {
|
|
16
|
+
"event": {
|
|
17
|
+
"id": "event-1",
|
|
18
|
+
"sequence": 2,
|
|
19
|
+
"context": {
|
|
20
|
+
"actor": {
|
|
21
|
+
"principal": {
|
|
22
|
+
"kind": "user",
|
|
23
|
+
"userId": "user-1"
|
|
24
|
+
},
|
|
25
|
+
"client_id": "client-1",
|
|
26
|
+
"credential_id": null
|
|
27
|
+
},
|
|
28
|
+
"thread_id": "thread-1",
|
|
29
|
+
"run_id": "run-1",
|
|
30
|
+
"operation_id": "operation-1",
|
|
31
|
+
"deadline_unix_ms": null,
|
|
32
|
+
"traceparent": null,
|
|
33
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
34
|
+
"space": {
|
|
35
|
+
"tenant_id": "tenant-1",
|
|
36
|
+
"space_id": "scope-1"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"event": {
|
|
40
|
+
"type": "steered",
|
|
41
|
+
"inputs": [
|
|
42
|
+
{
|
|
43
|
+
"request_id": "input-1",
|
|
44
|
+
"actor": {
|
|
45
|
+
"principal": {
|
|
46
|
+
"kind": "user",
|
|
47
|
+
"userId": "user-1"
|
|
48
|
+
},
|
|
49
|
+
"client_id": "client-1",
|
|
50
|
+
"credential_id": null
|
|
51
|
+
},
|
|
52
|
+
"message": {
|
|
53
|
+
"role": "user",
|
|
54
|
+
"content": [
|
|
55
|
+
{
|
|
56
|
+
"type": "text",
|
|
57
|
+
"text": "hello"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"checkpoint": {
|
|
66
|
+
"object_key": "checkpoints/abc.json",
|
|
67
|
+
"sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
68
|
+
"format_version": 1
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
{
|
|
2
|
+
"valid": [
|
|
3
|
+
{
|
|
4
|
+
"name": "scheduled",
|
|
5
|
+
"value": {
|
|
6
|
+
"space": {
|
|
7
|
+
"tenant_id": "tenant-fixture",
|
|
8
|
+
"space_id": "space-fixture"
|
|
9
|
+
},
|
|
10
|
+
"runId": "run-fixture",
|
|
11
|
+
"operationId": "operation-fixture",
|
|
12
|
+
"deadlineUnixMs": 5000,
|
|
13
|
+
"trigger": {
|
|
14
|
+
"type": "SCHEDULED"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "explicit member pays",
|
|
20
|
+
"value": {
|
|
21
|
+
"space": {
|
|
22
|
+
"tenant_id": "tenant-fixture",
|
|
23
|
+
"space_id": "space-fixture"
|
|
24
|
+
},
|
|
25
|
+
"runId": "run-fixture",
|
|
26
|
+
"operationId": "operation-fixture",
|
|
27
|
+
"deadlineUnixMs": 5000,
|
|
28
|
+
"trigger": {
|
|
29
|
+
"type": "EXPLICIT",
|
|
30
|
+
"userId": "member-b"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "unicode_id_at_limit",
|
|
36
|
+
"value": {
|
|
37
|
+
"space": {
|
|
38
|
+
"tenant_id": "tenant-fixture",
|
|
39
|
+
"space_id": "space-fixture"
|
|
40
|
+
},
|
|
41
|
+
"runId": "猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫",
|
|
42
|
+
"operationId": "operation-fixture",
|
|
43
|
+
"deadlineUnixMs": 5000,
|
|
44
|
+
"trigger": {
|
|
45
|
+
"type": "SCHEDULED"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "BOM is not identity padding",
|
|
51
|
+
"value": {
|
|
52
|
+
"space": {
|
|
53
|
+
"tenant_id": "tenant-fixture",
|
|
54
|
+
"space_id": "space-fixture"
|
|
55
|
+
},
|
|
56
|
+
"runId": "run-fixture",
|
|
57
|
+
"operationId": "operation-fixture",
|
|
58
|
+
"deadlineUnixMs": 5000,
|
|
59
|
+
"trigger": {
|
|
60
|
+
"type": "SCHEDULED"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"invalid": [
|
|
66
|
+
{
|
|
67
|
+
"name": "owner supplied for scheduled",
|
|
68
|
+
"value": {
|
|
69
|
+
"space": {
|
|
70
|
+
"tenant_id": "tenant-fixture",
|
|
71
|
+
"space_id": "space-fixture"
|
|
72
|
+
},
|
|
73
|
+
"runId": "run-fixture",
|
|
74
|
+
"operationId": "operation-fixture",
|
|
75
|
+
"deadlineUnixMs": 5000,
|
|
76
|
+
"trigger": {
|
|
77
|
+
"type": "SCHEDULED",
|
|
78
|
+
"userId": "forged"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "explicit lacks user",
|
|
84
|
+
"value": {
|
|
85
|
+
"space": {
|
|
86
|
+
"tenant_id": "tenant-fixture",
|
|
87
|
+
"space_id": "space-fixture"
|
|
88
|
+
},
|
|
89
|
+
"runId": "run-fixture",
|
|
90
|
+
"operationId": "operation-fixture",
|
|
91
|
+
"deadlineUnixMs": 5000,
|
|
92
|
+
"trigger": {
|
|
93
|
+
"type": "EXPLICIT"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "missing tenant",
|
|
99
|
+
"value": {
|
|
100
|
+
"space": {
|
|
101
|
+
"space_id": "space-fixture"
|
|
102
|
+
},
|
|
103
|
+
"runId": "run-fixture",
|
|
104
|
+
"operationId": "operation-fixture",
|
|
105
|
+
"deadlineUnixMs": 5000,
|
|
106
|
+
"trigger": {
|
|
107
|
+
"type": "SCHEDULED"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "no deadline",
|
|
113
|
+
"value": {
|
|
114
|
+
"space": {
|
|
115
|
+
"tenant_id": "tenant-fixture",
|
|
116
|
+
"space_id": "space-fixture"
|
|
117
|
+
},
|
|
118
|
+
"runId": "run-fixture",
|
|
119
|
+
"operationId": "operation-fixture",
|
|
120
|
+
"deadlineUnixMs": 0,
|
|
121
|
+
"trigger": {
|
|
122
|
+
"type": "SCHEDULED"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "oversized deadline",
|
|
128
|
+
"value": {
|
|
129
|
+
"space": {
|
|
130
|
+
"tenant_id": "tenant-fixture",
|
|
131
|
+
"space_id": "space-fixture"
|
|
132
|
+
},
|
|
133
|
+
"runId": "run-fixture",
|
|
134
|
+
"operationId": "operation-fixture",
|
|
135
|
+
"deadlineUnixMs": 9007199254740992,
|
|
136
|
+
"trigger": {
|
|
137
|
+
"type": "SCHEDULED"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "no synthetic conversation",
|
|
143
|
+
"value": {
|
|
144
|
+
"space": {
|
|
145
|
+
"tenant_id": "tenant-fixture",
|
|
146
|
+
"space_id": "space-fixture"
|
|
147
|
+
},
|
|
148
|
+
"runId": "run-fixture",
|
|
149
|
+
"operationId": "operation-fixture",
|
|
150
|
+
"deadlineUnixMs": 5000,
|
|
151
|
+
"trigger": {
|
|
152
|
+
"type": "SCHEDULED"
|
|
153
|
+
},
|
|
154
|
+
"threadId": "pretend"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "no payer override",
|
|
159
|
+
"value": {
|
|
160
|
+
"space": {
|
|
161
|
+
"tenant_id": "tenant-fixture",
|
|
162
|
+
"space_id": "space-fixture"
|
|
163
|
+
},
|
|
164
|
+
"runId": "run-fixture",
|
|
165
|
+
"operationId": "operation-fixture",
|
|
166
|
+
"deadlineUnixMs": 5000,
|
|
167
|
+
"trigger": {
|
|
168
|
+
"type": "SCHEDULED"
|
|
169
|
+
},
|
|
170
|
+
"payer": "owner"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "no whitespace identity",
|
|
175
|
+
"value": {
|
|
176
|
+
"space": {
|
|
177
|
+
"tenant_id": "tenant-fixture",
|
|
178
|
+
"space_id": "space-fixture"
|
|
179
|
+
},
|
|
180
|
+
"runId": " ",
|
|
181
|
+
"operationId": "operation-fixture",
|
|
182
|
+
"deadlineUnixMs": 5000,
|
|
183
|
+
"trigger": {
|
|
184
|
+
"type": "SCHEDULED"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "unicode_id_over_limit",
|
|
190
|
+
"value": {
|
|
191
|
+
"space": {
|
|
192
|
+
"tenant_id": "tenant-fixture",
|
|
193
|
+
"space_id": "space-fixture"
|
|
194
|
+
},
|
|
195
|
+
"runId": "猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫猫",
|
|
196
|
+
"operationId": "operation-fixture",
|
|
197
|
+
"deadlineUnixMs": 5000,
|
|
198
|
+
"trigger": {
|
|
199
|
+
"type": "SCHEDULED"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"target": "/chat/thread/load",
|
|
3
|
+
"direction": "response",
|
|
4
|
+
"body": {
|
|
5
|
+
"thread": {
|
|
6
|
+
"threadId": "thread-2",
|
|
7
|
+
"title": "New conversation",
|
|
8
|
+
"state": "active",
|
|
9
|
+
"createdAt": "2026-08-22T00:00:00Z",
|
|
10
|
+
"updatedAt": "2026-08-22T00:00:00Z",
|
|
11
|
+
"archivedAt": null,
|
|
12
|
+
"purgeAfter": null
|
|
13
|
+
},
|
|
14
|
+
"session": {
|
|
15
|
+
"activityAtUnixMs": 0
|
|
16
|
+
},
|
|
17
|
+
"sync": {
|
|
18
|
+
"mode": "snapshot",
|
|
19
|
+
"snapshot": {
|
|
20
|
+
"version": 0,
|
|
21
|
+
"messages": [
|
|
22
|
+
{
|
|
23
|
+
"messageId": "root:user",
|
|
24
|
+
"requestId": "root",
|
|
25
|
+
"role": "user",
|
|
26
|
+
"authorUserId": "user",
|
|
27
|
+
"content": {
|
|
28
|
+
"parts": [
|
|
29
|
+
{
|
|
30
|
+
"type": "text",
|
|
31
|
+
"text": "start"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"createdAt": "2026-08-22T00:00:00Z"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"messageId": "addition:user",
|
|
39
|
+
"requestId": "addition",
|
|
40
|
+
"role": "user",
|
|
41
|
+
"authorUserId": "user",
|
|
42
|
+
"content": {
|
|
43
|
+
"parts": [
|
|
44
|
+
{
|
|
45
|
+
"type": "text",
|
|
46
|
+
"text": "also do this"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"createdAt": "2026-08-22T00:00:01Z",
|
|
51
|
+
"runId": "root"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"activeRun": null,
|
|
55
|
+
"pendingInteraction": null,
|
|
56
|
+
"runOutcomes": []
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"queue": {
|
|
60
|
+
"queueVersion": 0,
|
|
61
|
+
"items": []
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"target": "/chat/turn/submit",
|
|
3
|
+
"direction": "response",
|
|
4
|
+
"body": {
|
|
5
|
+
"receipt": {
|
|
6
|
+
"requestId": "addition",
|
|
7
|
+
"threadId": "thread-2",
|
|
8
|
+
"disposition": "steering",
|
|
9
|
+
"sessionDisposition": "existing",
|
|
10
|
+
"queueVersion": 1,
|
|
11
|
+
"admission": {
|
|
12
|
+
"state": "bound",
|
|
13
|
+
"admissionVersion": 1,
|
|
14
|
+
"reason": "accepted",
|
|
15
|
+
"threadId": "thread-2",
|
|
16
|
+
"queueVersion": 1,
|
|
17
|
+
"runId": "root"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"control": {
|
|
21
|
+
"surfaceId": "cs1:cp:dXNlcg",
|
|
22
|
+
"version": "00000000000000000001:00000000000000000001",
|
|
23
|
+
"activeThread": {
|
|
24
|
+
"threadId": "thread-2",
|
|
25
|
+
"title": "New conversation",
|
|
26
|
+
"state": "active",
|
|
27
|
+
"createdAt": "2026-08-22T00:00:00Z",
|
|
28
|
+
"updatedAt": "2026-08-22T00:00:00Z",
|
|
29
|
+
"archivedAt": null,
|
|
30
|
+
"purgeAfter": null
|
|
31
|
+
},
|
|
32
|
+
"activeRun": {
|
|
33
|
+
"requestId": "root",
|
|
34
|
+
"startedAt": "2026-08-22T00:00:00Z"
|
|
35
|
+
},
|
|
36
|
+
"pendingInteraction": null,
|
|
37
|
+
"queue": {
|
|
38
|
+
"queueVersion": 1,
|
|
39
|
+
"items": [
|
|
40
|
+
{
|
|
41
|
+
"requestId": "addition",
|
|
42
|
+
"threadId": "thread-2",
|
|
43
|
+
"runId": "root",
|
|
44
|
+
"authorUserId": "user",
|
|
45
|
+
"content": {
|
|
46
|
+
"parts": [
|
|
47
|
+
{
|
|
48
|
+
"type": "text",
|
|
49
|
+
"text": "also do this"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"createdAt": "2026-08-22T00:00:01Z"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"historyVersion": 0
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"protocol": "mhome.conversation",
|
|
3
|
-
"contractVersion": "5.
|
|
3
|
+
"contractVersion": "5.7.0",
|
|
4
4
|
"manifest": "manifest/targets.v1.json",
|
|
5
5
|
"schemas": {
|
|
6
6
|
"frame": "schema/conversation-frame.v2.schema.json",
|
|
7
7
|
"execution": "schema/execution/envelope.v1.schema.json",
|
|
8
|
+
"suggestionExecution": "schema/execution/suggestion.v1.schema.json",
|
|
8
9
|
"podTalk": "schema/pod-talk.v1.schema.json"
|
|
9
10
|
},
|
|
10
11
|
"fixtures": {
|
|
11
12
|
"valid": "fixtures",
|
|
12
|
-
"facadeResponse": "fixtures/response/conformance.json"
|
|
13
|
+
"facadeResponse": "fixtures/response/conformance.json",
|
|
14
|
+
"suggestionExecution": "fixtures/suggestion/conformance.json"
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -88,6 +88,9 @@
|
|
|
88
88
|
"queueVersion": {
|
|
89
89
|
"type": "integer",
|
|
90
90
|
"minimum": 0
|
|
91
|
+
},
|
|
92
|
+
"runId": {
|
|
93
|
+
"$ref": "#/$defs/id"
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
96
|
},
|
|
@@ -121,6 +124,9 @@
|
|
|
121
124
|
"queueVersion": {
|
|
122
125
|
"type": "integer",
|
|
123
126
|
"minimum": 0
|
|
127
|
+
},
|
|
128
|
+
"runId": {
|
|
129
|
+
"$ref": "#/$defs/id"
|
|
124
130
|
}
|
|
125
131
|
}
|
|
126
132
|
},
|
|
@@ -485,6 +491,9 @@
|
|
|
485
491
|
},
|
|
486
492
|
"createdAt": {
|
|
487
493
|
"$ref": "#/$defs/time"
|
|
494
|
+
},
|
|
495
|
+
"runId": {
|
|
496
|
+
"$ref": "#/$defs/id"
|
|
488
497
|
}
|
|
489
498
|
}
|
|
490
499
|
},
|
|
@@ -603,6 +612,9 @@
|
|
|
603
612
|
},
|
|
604
613
|
"createdAt": {
|
|
605
614
|
"$ref": "#/$defs/time"
|
|
615
|
+
},
|
|
616
|
+
"runId": {
|
|
617
|
+
"$ref": "#/$defs/id"
|
|
606
618
|
}
|
|
607
619
|
}
|
|
608
620
|
},
|
|
@@ -1732,6 +1744,13 @@
|
|
|
1732
1744
|
"occurredAtUnixMs": {
|
|
1733
1745
|
"type": "integer",
|
|
1734
1746
|
"minimum": 0
|
|
1747
|
+
},
|
|
1748
|
+
"delivery": {
|
|
1749
|
+
"enum": [
|
|
1750
|
+
"default",
|
|
1751
|
+
"steer",
|
|
1752
|
+
"queue"
|
|
1753
|
+
]
|
|
1735
1754
|
}
|
|
1736
1755
|
}
|
|
1737
1756
|
}
|
|
@@ -1936,7 +1955,8 @@
|
|
|
1936
1955
|
"enum": [
|
|
1937
1956
|
"scheduled",
|
|
1938
1957
|
"queued",
|
|
1939
|
-
"duplicate"
|
|
1958
|
+
"duplicate",
|
|
1959
|
+
"steering"
|
|
1940
1960
|
]
|
|
1941
1961
|
},
|
|
1942
1962
|
"queueVersion": {
|
|
@@ -2004,7 +2024,8 @@
|
|
|
2004
2024
|
"scheduled",
|
|
2005
2025
|
"queued",
|
|
2006
2026
|
"duplicate",
|
|
2007
|
-
"blocked_pending_interaction"
|
|
2027
|
+
"blocked_pending_interaction",
|
|
2028
|
+
"steering"
|
|
2008
2029
|
]
|
|
2009
2030
|
},
|
|
2010
2031
|
"sessionDisposition": {
|
|
@@ -504,6 +504,30 @@
|
|
|
504
504
|
"$ref": "#/$defs/interaction"
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"type": "object",
|
|
510
|
+
"additionalProperties": false,
|
|
511
|
+
"required": [
|
|
512
|
+
"type",
|
|
513
|
+
"context",
|
|
514
|
+
"inputs"
|
|
515
|
+
],
|
|
516
|
+
"properties": {
|
|
517
|
+
"type": {
|
|
518
|
+
"const": "steer"
|
|
519
|
+
},
|
|
520
|
+
"context": {
|
|
521
|
+
"$ref": "#/$defs/context"
|
|
522
|
+
},
|
|
523
|
+
"inputs": {
|
|
524
|
+
"type": "array",
|
|
525
|
+
"minItems": 1,
|
|
526
|
+
"items": {
|
|
527
|
+
"$ref": "#/$defs/steering_input"
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
507
531
|
}
|
|
508
532
|
]
|
|
509
533
|
},
|
|
@@ -873,6 +897,26 @@
|
|
|
873
897
|
"$ref": "#/$defs/usage"
|
|
874
898
|
}
|
|
875
899
|
}
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"type": "object",
|
|
903
|
+
"additionalProperties": false,
|
|
904
|
+
"required": [
|
|
905
|
+
"type",
|
|
906
|
+
"inputs"
|
|
907
|
+
],
|
|
908
|
+
"properties": {
|
|
909
|
+
"type": {
|
|
910
|
+
"const": "steered"
|
|
911
|
+
},
|
|
912
|
+
"inputs": {
|
|
913
|
+
"type": "array",
|
|
914
|
+
"minItems": 1,
|
|
915
|
+
"items": {
|
|
916
|
+
"$ref": "#/$defs/steering_input"
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
}
|
|
876
920
|
}
|
|
877
921
|
]
|
|
878
922
|
},
|
|
@@ -1293,7 +1337,8 @@
|
|
|
1293
1337
|
"enum": [
|
|
1294
1338
|
"queued",
|
|
1295
1339
|
"interaction_ready",
|
|
1296
|
-
"cancel_requested"
|
|
1340
|
+
"cancel_requested",
|
|
1341
|
+
"steering_queued"
|
|
1297
1342
|
]
|
|
1298
1343
|
},
|
|
1299
1344
|
"queue_revision": {
|
|
@@ -2205,6 +2250,26 @@
|
|
|
2205
2250
|
"$ref": "#/$defs/identifier"
|
|
2206
2251
|
}
|
|
2207
2252
|
}
|
|
2253
|
+
},
|
|
2254
|
+
"steering_input": {
|
|
2255
|
+
"type": "object",
|
|
2256
|
+
"additionalProperties": false,
|
|
2257
|
+
"required": [
|
|
2258
|
+
"request_id",
|
|
2259
|
+
"actor",
|
|
2260
|
+
"message"
|
|
2261
|
+
],
|
|
2262
|
+
"properties": {
|
|
2263
|
+
"request_id": {
|
|
2264
|
+
"$ref": "#/$defs/identifier"
|
|
2265
|
+
},
|
|
2266
|
+
"actor": {
|
|
2267
|
+
"$ref": "#/$defs/actor"
|
|
2268
|
+
},
|
|
2269
|
+
"message": {
|
|
2270
|
+
"$ref": "#/$defs/message"
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2208
2273
|
}
|
|
2209
2274
|
}
|
|
2210
2275
|
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://mhome.ai/schema/suggestion-execution.v1.schema.json",
|
|
4
|
+
"$comment": "Trusted deployment admission only; not a public generate request. Validation does not authenticate a sender or authorize reads.",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Space": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"tenant_id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"maxLength": 256,
|
|
13
|
+
"allOf": [
|
|
14
|
+
{
|
|
15
|
+
"pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"not": {
|
|
19
|
+
"pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"space_id": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"minLength": 1,
|
|
27
|
+
"maxLength": 256,
|
|
28
|
+
"allOf": [
|
|
29
|
+
{
|
|
30
|
+
"pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"not": {
|
|
34
|
+
"pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"tenant_id",
|
|
42
|
+
"space_id"
|
|
43
|
+
],
|
|
44
|
+
"additionalProperties": false
|
|
45
|
+
},
|
|
46
|
+
"Trigger": {
|
|
47
|
+
"oneOf": [
|
|
48
|
+
{
|
|
49
|
+
"type": "object",
|
|
50
|
+
"properties": {
|
|
51
|
+
"type": {
|
|
52
|
+
"const": "SCHEDULED"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"type"
|
|
57
|
+
],
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"type": {
|
|
64
|
+
"const": "EXPLICIT"
|
|
65
|
+
},
|
|
66
|
+
"userId": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"minLength": 1,
|
|
69
|
+
"maxLength": 256,
|
|
70
|
+
"allOf": [
|
|
71
|
+
{
|
|
72
|
+
"pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"not": {
|
|
76
|
+
"pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": [
|
|
83
|
+
"type",
|
|
84
|
+
"userId"
|
|
85
|
+
],
|
|
86
|
+
"additionalProperties": false
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"SuggestionInvocationContext": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"properties": {
|
|
93
|
+
"space": {
|
|
94
|
+
"$ref": "#/$defs/Space"
|
|
95
|
+
},
|
|
96
|
+
"runId": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"minLength": 1,
|
|
99
|
+
"maxLength": 256,
|
|
100
|
+
"allOf": [
|
|
101
|
+
{
|
|
102
|
+
"pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"not": {
|
|
106
|
+
"pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"operationId": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"minLength": 1,
|
|
114
|
+
"maxLength": 256,
|
|
115
|
+
"allOf": [
|
|
116
|
+
{
|
|
117
|
+
"pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"not": {
|
|
121
|
+
"pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
"trigger": {
|
|
127
|
+
"$ref": "#/$defs/Trigger"
|
|
128
|
+
},
|
|
129
|
+
"deadlineUnixMs": {
|
|
130
|
+
"type": "integer",
|
|
131
|
+
"minimum": 1,
|
|
132
|
+
"maximum": 9007199254740991
|
|
133
|
+
},
|
|
134
|
+
"traceparent": {
|
|
135
|
+
"anyOf": [
|
|
136
|
+
{
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"type": "null"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"required": [
|
|
146
|
+
"space",
|
|
147
|
+
"runId",
|
|
148
|
+
"operationId",
|
|
149
|
+
"trigger",
|
|
150
|
+
"deadlineUnixMs"
|
|
151
|
+
],
|
|
152
|
+
"additionalProperties": false
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|