@mhome/app-facade-protocol 1.164.1 → 1.166.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 +34 -0
- package/contract/onboard-v1.md +45 -0
- package/fixtures/routing/cases.json +32 -0
- package/manifest/app-facade.v1.json +7 -1
- package/manifest/authorization.v1.json +4 -2
- package/manifest/host-provision-targets.v1.json +1 -1
- package/manifest/hub-targets.v1.json +1 -1
- package/manifest/pod-targets.v1.json +1 -1
- package/manifest/presentation-times.v1.json +20 -0
- package/manifest/routing.v1.json +3 -2
- package/manifest/targets.v1.json +1 -1
- package/package.json +1 -1
- package/protocol.json +1 -1
package/README.md
CHANGED
|
@@ -317,3 +317,37 @@ Agent Profile Markdown image ownership and canonical read-back are specified in
|
|
|
317
317
|
[Agent Profile media](contract/agent-profile-media-v1.md).
|
|
318
318
|
|
|
319
319
|
NFC management: [contract](contract/nfc-v1.md), [schema](schema/nfc.v1.schema.json).
|
|
320
|
+
|
|
321
|
+
### Space creation identity and cancellation
|
|
322
|
+
|
|
323
|
+
`/app/space/create` commits the initial Owner and default data before `ACTIVE`.
|
|
324
|
+
A completed retry checks current Owner authority; it never restores a removed membership.
|
|
325
|
+
The authenticated, unspaced `/app/space/create/cancel` takes `{ "requestId": "..." }`.
|
|
326
|
+
It resolves the same server-derived Space identity without name searches or client-side ID derivation.
|
|
327
|
+
For missing/incomplete creation it durably starts the normal deletion operation; for `ACTIVE`
|
|
328
|
+
it returns `accepted: false`, the exact `spaceId`, `state: "ACTIVE"`, and `deleted: false`.
|
|
329
|
+
The caller must use normal Space deletion for that completed Space. Other results expose
|
|
330
|
+
`accepted`, nullable `operationId`, `spaceId`, `state`, `message`, and `deleted`; use
|
|
331
|
+
`/app/space/delete/status` with the accepted operation ID to observe completion.
|
|
332
|
+
Cancellation never renews a request or its retry deadline and remains available after expiry.
|
|
333
|
+
|
|
334
|
+
Testing accounts are identified by the server's enabled testing-account registry. Any account
|
|
335
|
+
may use ordinary opaque request IDs, including App and Agent creation by testing accounts;
|
|
336
|
+
their terminal identity/operation records have no automatic expiry. E2E producers use bounded
|
|
337
|
+
creation request IDs of the form `e2e-v1:<Unix deadline seconds>:<canonical UUID>` with a
|
|
338
|
+
maximum 24-hour creation window (one minute of clock skew). The whole string is immutable;
|
|
339
|
+
changing its deadline changes the creation identity. All authentication methods enforce expiry.
|
|
340
|
+
Ordinary opaque creation request IDs keep their existing identity derivation. A bounded ID
|
|
341
|
+
alone does not grant retention eligibility to an ordinary account.
|
|
342
|
+
|
|
343
|
+
Ordinary deletion retains only a terminal identity marker after business cleanup. For registered
|
|
344
|
+
testing creations with a bounded request ID, only confirmed terminal identity/operation records
|
|
345
|
+
receive AWS per-item `expireAt` TTL, after the creation cutoff and delayed final-sweep/in-flight
|
|
346
|
+
budgets. Live, failed and uncertain work has no automatic TTL. Database TTL is asynchronous;
|
|
347
|
+
Aliyun's table-wide TTL is not used for mixed ordinary/testing identities.
|
|
348
|
+
|
|
349
|
+
All Lion instances sharing this Space store must enforce the expiring-request contract
|
|
350
|
+
before terminal TTL records are produced. Upgrade both the public AWS service and local
|
|
351
|
+
cloud instances together. An old writer that accepts expired IDs would invalidate the
|
|
352
|
+
retention guarantee after collection; rolling back to that creation behavior is unsupported.
|
|
353
|
+
Enabling database TTL alone does not expire rows that have no `expireAt` attribute.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Product onboarding transport preparation
|
|
2
|
+
|
|
3
|
+
`/app/onboard/lan/attach` executes on the selected Hub for a directly authenticated
|
|
4
|
+
User Client with Space Manage access. Service, Agent, MCP and Cloud-bridge ingress
|
|
5
|
+
are rejected. Payloads use `mhome-onboard-api::carrier::LanAttachment` and
|
|
6
|
+
`AttachmentReady`: exact public Product/root, immutable Plan and a local socket
|
|
7
|
+
address. The address is a location hint, never identity or authority.
|
|
8
|
+
|
|
9
|
+
The current adapter accepts only standalone already-networked Wave and join-Hub
|
|
10
|
+
intent. Core checks its actual tenant/Space/Hub, runtime environment and persistent
|
|
11
|
+
Hub key, then opens the pinned purpose-3 carrier. Its bounded volatile attachment
|
|
12
|
+
lease survives Client disconnect but not Hub restart; it is not an operation
|
|
13
|
+
journal. Duplicate identical preparation reuses the live lease; a changed target
|
|
14
|
+
cannot replace it. At most eight attachments run, with a 120-second deadline and
|
|
15
|
+
Hub lifecycle cancellation.
|
|
16
|
+
|
|
17
|
+
`prepared:true` acknowledges transport preparation, not successful authentication,
|
|
18
|
+
grant installation, business readiness or product completion. The common device
|
|
19
|
+
engine owns Start and every role transition. Only the actual device's requests,
|
|
20
|
+
fresh Cloud current-Owner approval and exact durable readback can create/confirm
|
|
21
|
+
the role candidate. Client retry prepares the same approved Plan; it never creates
|
|
22
|
+
a replacement credential. Device Status remains the whole-operation result.
|
|
23
|
+
|
|
24
|
+
Native Client owns the local public read, paired carrier, logged-in Cloud exchange
|
|
25
|
+
and defined Start/status/explicit-retry protocol. CLI/UI are thin local callers.
|
|
26
|
+
Integration resolution and Entity materialization occur after communication
|
|
27
|
+
admission and are outside this transport operation.
|
|
28
|
+
|
|
29
|
+
The current native-local control surfaces are `/local/onboard/lan/start`,
|
|
30
|
+
`/local/onboard/lan/retry`, `/local/onboard/lan/observe`, `/local/onboard/status`
|
|
31
|
+
and `/local/onboard/close`. Open accepts a local `address`, optional six-digit
|
|
32
|
+
`pin`, explicit `noPin`, and caller-selected `responseDetail`. Status/close take
|
|
33
|
+
`sessionId` and `responseDetail`; open/status return `{sessionId,status}` with the
|
|
34
|
+
canonical device Status. Native Client renders Full/Essential; the local control
|
|
35
|
+
diagnostic timestamp is rendered in UTC in Essential, retaining milliseconds in
|
|
36
|
+
Full. A local session is an ephemeral account-bound connection, not device state.
|
|
37
|
+
Observe never starts or retries work. Close only closes that local connection.
|
|
38
|
+
|
|
39
|
+
Cloud approval is recorded before device Start. If that response or Start is
|
|
40
|
+
lost, reuse its original Plan. Saved-mode retry is the default; a caller may
|
|
41
|
+
explicitly provide the original configured PIN/no-PIN mode for a device that has
|
|
42
|
+
not saved Start and still has its physical window open. Do not infer durable
|
|
43
|
+
device state from Cloud approval, automatically downgrade a saved connection, or
|
|
44
|
+
allocate a new Plan/candidate. A normal initial Start also reuses an already
|
|
45
|
+
approved identical Plan rather than replacing it.
|
|
@@ -31,6 +31,38 @@
|
|
|
31
31
|
"cloudReady": false,
|
|
32
32
|
"entry": "unavailable"
|
|
33
33
|
},
|
|
34
|
+
{
|
|
35
|
+
"target": "/app/space/create/cancel",
|
|
36
|
+
"execution": "cloud",
|
|
37
|
+
"placement": null,
|
|
38
|
+
"hubReady": true,
|
|
39
|
+
"cloudReady": true,
|
|
40
|
+
"entry": "cloud"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"target": "/app/space/create/cancel",
|
|
44
|
+
"execution": "cloud",
|
|
45
|
+
"placement": null,
|
|
46
|
+
"hubReady": true,
|
|
47
|
+
"cloudReady": false,
|
|
48
|
+
"entry": "unavailable"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"target": "/app/space/create/cancel",
|
|
52
|
+
"execution": "cloud",
|
|
53
|
+
"placement": null,
|
|
54
|
+
"hubReady": false,
|
|
55
|
+
"cloudReady": true,
|
|
56
|
+
"entry": "cloud"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"target": "/app/space/create/cancel",
|
|
60
|
+
"execution": "cloud",
|
|
61
|
+
"placement": null,
|
|
62
|
+
"hubReady": false,
|
|
63
|
+
"cloudReady": false,
|
|
64
|
+
"entry": "unavailable"
|
|
65
|
+
},
|
|
34
66
|
{
|
|
35
67
|
"target": "/app/room/delete",
|
|
36
68
|
"execution": "spaceMode",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.app-facade.v1",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.166.0",
|
|
4
4
|
"callSchema": "schema/facade-call.v1.schema.json",
|
|
5
5
|
"routing": "manifest/routing.v1.json",
|
|
6
6
|
"routingSchema": "schema/routing.v1.schema.json",
|
|
@@ -546,6 +546,12 @@
|
|
|
546
546
|
"/app/suggestion/settings/get",
|
|
547
547
|
"/app/suggestion/settings/save"
|
|
548
548
|
]
|
|
549
|
+
},
|
|
550
|
+
"onboard": {
|
|
551
|
+
"contract": "contract/onboard-v1.md",
|
|
552
|
+
"requestTargets": [
|
|
553
|
+
"/app/onboard/lan/attach"
|
|
554
|
+
]
|
|
549
555
|
}
|
|
550
556
|
},
|
|
551
557
|
"authorization": "manifest/authorization.v1.json",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "1.
|
|
2
|
+
"contractVersion": "1.166.0",
|
|
3
3
|
"operations": {
|
|
4
4
|
"/app/agent/context/get": "spaceRead",
|
|
5
5
|
"/app/agent/conversation/get": "spaceRead",
|
|
@@ -273,6 +273,7 @@
|
|
|
273
273
|
"/app/space/beta/update": "spaceManage",
|
|
274
274
|
"/app/space/context/get": "spaceRead",
|
|
275
275
|
"/app/space/create": "userWrite",
|
|
276
|
+
"/app/space/create/cancel": "userWrite",
|
|
276
277
|
"/app/space/delete": "userWrite",
|
|
277
278
|
"/app/space/delete/status": "userRead",
|
|
278
279
|
"/app/space/detail/get": "spaceRead",
|
|
@@ -390,7 +391,8 @@
|
|
|
390
391
|
"/app/suggestion/handle": "spaceWrite",
|
|
391
392
|
"/app/suggestion/list": "spaceRead",
|
|
392
393
|
"/app/suggestion/settings/get": "spaceRead",
|
|
393
|
-
"/app/suggestion/settings/save": "spaceWrite"
|
|
394
|
+
"/app/suggestion/settings/save": "spaceWrite",
|
|
395
|
+
"/app/onboard/lan/attach": "spaceManage"
|
|
394
396
|
},
|
|
395
397
|
"nodePrefix": "/app/plugin/",
|
|
396
398
|
"serviceOperations": [
|
|
@@ -545,5 +545,25 @@
|
|
|
545
545
|
"updatedAt",
|
|
546
546
|
"expiresAt"
|
|
547
547
|
]
|
|
548
|
+
},
|
|
549
|
+
"/local/onboard/lan/start": {
|
|
550
|
+
"ms": [
|
|
551
|
+
"status.updatedAtMs"
|
|
552
|
+
]
|
|
553
|
+
},
|
|
554
|
+
"/local/onboard/lan/retry": {
|
|
555
|
+
"ms": [
|
|
556
|
+
"status.updatedAtMs"
|
|
557
|
+
]
|
|
558
|
+
},
|
|
559
|
+
"/local/onboard/lan/observe": {
|
|
560
|
+
"ms": [
|
|
561
|
+
"status.updatedAtMs"
|
|
562
|
+
]
|
|
563
|
+
},
|
|
564
|
+
"/local/onboard/status": {
|
|
565
|
+
"ms": [
|
|
566
|
+
"status.updatedAtMs"
|
|
567
|
+
]
|
|
548
568
|
}
|
|
549
569
|
}
|
package/manifest/routing.v1.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.app-facade.routing.v1",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.166.0",
|
|
4
4
|
"targetPrefix": "/app/",
|
|
5
5
|
"default": {
|
|
6
6
|
"execution": "spaceMode"
|
|
@@ -97,7 +97,8 @@
|
|
|
97
97
|
"/app/integration/preview/apply",
|
|
98
98
|
"/app/integration/preview/status",
|
|
99
99
|
"/app/developer/contracts/list",
|
|
100
|
-
"/app/developer/contracts/export"
|
|
100
|
+
"/app/developer/contracts/export",
|
|
101
|
+
"/app/onboard/lan/attach"
|
|
101
102
|
],
|
|
102
103
|
"connectionTargets": [
|
|
103
104
|
"/app/client/space/focus"
|
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED