@mhome/app-facade-protocol 1.159.0 → 1.161.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/contract/automation-v1.md +11 -7
- package/contract/suggestion-v1.md +13 -7
- package/fixtures/presentation/cases.json +2 -4
- package/fixtures/suggestion.migration.json +8 -0
- package/manifest/app-facade.v1.json +1 -1
- package/manifest/authorization.v1.json +1 -1
- 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 +1 -2
- package/manifest/routing.v1.json +1 -1
- package/manifest/targets.v1.json +1 -1
- package/package.json +1 -1
- package/protocol.json +1 -1
- package/schema/suggestion.v1.schema.json +14 -0
|
@@ -62,16 +62,20 @@ An already absent and cleaned definition is a completed delete target.
|
|
|
62
62
|
A started external call without a result is uncertain, not a confirmed failure.
|
|
63
63
|
- `/app/automation/diagnostic/get` takes `{automationId, cursor?, limit?}` and returns
|
|
64
64
|
`{diagnostics, nextCursor}`. The default page size is 50, with a maximum of 100.
|
|
65
|
-
Follow `nextCursor` until absent
|
|
65
|
+
Follow `nextCursor` until absent.
|
|
66
66
|
Cursors are opaque and bound to the authorized Space and Automation. Metadata
|
|
67
|
-
is ordered by
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
locally, from the first completed publication. Reads and retries do not extend expiry.
|
|
72
|
-
Active captures and pending terminal publication are protected. Ordinary successful
|
|
67
|
+
is ordered by frozen completion time (capture time while active), then thread and
|
|
68
|
+
raw instance identity, all newest first. Each thread exposes its latest 10 retained
|
|
69
|
+
terminal instances across revisions. Failed/interrupted, DEBUG and explicitly
|
|
70
|
+
stopped/captured executions share this quota; ordinary successful
|
|
73
71
|
runs create no run-history event and retain no completed execution detail; their
|
|
74
72
|
checkpoint objects are reclaimed asynchronously. Last-run state remains separate.
|
|
73
|
+
Active captures are additional. `availableAt` records first terminal publication;
|
|
74
|
+
there is no `expiresAt` or age expiry. Reads/retries and richer updates never refresh
|
|
75
|
+
terminal order. Internal storage may buffer about 20 records before batch trimming
|
|
76
|
+
to 10; periodic cleanup handles lower volume and failed object deletion. Buffered
|
|
77
|
+
older terminal records are unavailable through both list and direct-read APIs.
|
|
78
|
+
Active and pending-publication bytes are protected until settlement/acknowledgement.
|
|
75
79
|
- `/app/automation/diagnostic/read` takes the execution identity and optional
|
|
76
80
|
`cursor`, and returns `{logs, nextCursor}`. Follow the opaque cursor for older
|
|
77
81
|
events. Pages contain up to 100 events with a target size of 256 KiB; a single
|
|
@@ -44,8 +44,8 @@ the public input and model output cannot select a payer. Billing failure must
|
|
|
44
44
|
not silently select another member or account.
|
|
45
45
|
|
|
46
46
|
This is a payment rule, not an authorization grant. A scheduled service is not
|
|
47
|
-
an enrolled `ClientPrincipal::Space`, nor a user impersonation. Core/Lion
|
|
48
|
-
|
|
47
|
+
an enrolled `ClientPrincipal::Space`, nor a user impersonation. Core/Lion use a
|
|
48
|
+
backend-only scheduled entry, bind its Space and current execution
|
|
49
49
|
ownership, check enabled settings/model/budget, and restrict reads and validation
|
|
50
50
|
to that Space. Explicit generation additionally checks the requesting user's
|
|
51
51
|
Space access. Shape validation cannot substitute for those checks.
|
|
@@ -61,10 +61,10 @@ failures and measured usage. Input/result JSON remains opaque to the leaf wire
|
|
|
61
61
|
crate; the shared generator and Space host validate the registered business
|
|
62
62
|
models. Nested transport facts, plans, errors and usage remain strict.
|
|
63
63
|
|
|
64
|
-
Lion authorizes callback reads against the stored active invocation and dispatch
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
Lion authorizes callback reads against the stored active invocation and dispatch.
|
|
65
|
+
Explicit callbacks retain the requesting user's Facade authority; scheduled
|
|
66
|
+
callbacks use the backend-only read port and the same business dispatch and
|
|
67
|
+
presentation. Recognizing the wire shape alone grants no internal authority.
|
|
68
68
|
Terminal delivery is best-effort with bounded execution deadlines, without a
|
|
69
69
|
second durable outbox, reasoning replay or write replay.
|
|
70
70
|
|
|
@@ -218,6 +218,11 @@ null values are rejected. Existing enabled-only calls remain valid. Stored setti
|
|
|
218
218
|
from before interval configuration use the same six-hour default.
|
|
219
219
|
The switch controls periodic generation only; explicit authorized generation remains
|
|
220
220
|
available. The UI places these controls in a separate Agent Suggestion Settings page.
|
|
221
|
+
The first enabled backend observation initializes the durable interval origin;
|
|
222
|
+
the first automatic run waits one full configured interval (six hours by default).
|
|
223
|
+
`SuggestionScheduleState` stores only `intervalStartedAt`; it is initialized once
|
|
224
|
+
and advanced atomically with each admitted automatic run. It is not a run and
|
|
225
|
+
does not change generation/get before the first real run. Manual runs never write it.
|
|
221
226
|
Automatic intervals are measured from the previous admitted automatic start,
|
|
222
227
|
regardless of completion time or outcome. Explicit runs never reset that clock.
|
|
223
228
|
This is an interval, not a calendar schedule or a promise of an exact next start.
|
|
@@ -237,7 +242,8 @@ script compilation, billing settlement, persistence or local/cloud integration.
|
|
|
237
242
|
## Space migration
|
|
238
243
|
|
|
239
244
|
The `suggestion/data` DataSync category transfers portable values, not storage keys:
|
|
240
|
-
`SETTINGS` carries `tenantId`, `spaceId` and settings; `
|
|
245
|
+
`SETTINGS` carries `tenantId`, `spaceId` and settings; `SCHEDULE` carries the same
|
|
246
|
+
owner and `schedule` (`SuggestionScheduleState`); `STATE` carries that owner,
|
|
241
247
|
`current` (run, trusted invocation, optional focus and observed usage), and optional
|
|
242
248
|
`contextSummary`; `SUGGESTION` carries `tenantId` and the full typed `item`, whose
|
|
243
249
|
`spaceId` supplies its Space owner. The shared `suggestion.migration.json` fixture
|
|
@@ -354,8 +354,7 @@
|
|
|
354
354
|
"startedAt": 90,
|
|
355
355
|
"finishedAt": 100,
|
|
356
356
|
"captured": false,
|
|
357
|
-
"availableAt": 100
|
|
358
|
-
"expiresAt": 86400100
|
|
357
|
+
"availableAt": 100
|
|
359
358
|
}
|
|
360
359
|
],
|
|
361
360
|
"nextCursor": null
|
|
@@ -380,8 +379,7 @@
|
|
|
380
379
|
"startedAt": "1970-01-01 00:00:00.090 +00:00 (UTC)",
|
|
381
380
|
"finishedAt": "1970-01-01 00:00:00.100 +00:00 (UTC)",
|
|
382
381
|
"captured": false,
|
|
383
|
-
"availableAt": "1970-01-01 00:00:00.100 +00:00 (UTC)"
|
|
384
|
-
"expiresAt": "1970-01-02 00:00:00.100 +00:00 (UTC)"
|
|
382
|
+
"availableAt": "1970-01-01 00:00:00.100 +00:00 (UTC)"
|
|
385
383
|
}
|
|
386
384
|
],
|
|
387
385
|
"nextCursor": null
|
|
@@ -53,6 +53,14 @@
|
|
|
53
53
|
},
|
|
54
54
|
"contextSummary": "Previous successful review"
|
|
55
55
|
},
|
|
56
|
+
{
|
|
57
|
+
"kind": "SCHEDULE",
|
|
58
|
+
"tenantId": "tenant",
|
|
59
|
+
"spaceId": "space",
|
|
60
|
+
"schedule": {
|
|
61
|
+
"intervalStartedAt": 2000
|
|
62
|
+
}
|
|
63
|
+
},
|
|
56
64
|
{
|
|
57
65
|
"kind": "SUGGESTION",
|
|
58
66
|
"tenantId": "tenant",
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -1367,6 +1367,20 @@
|
|
|
1367
1367
|
},
|
|
1368
1368
|
"minProperties": 1,
|
|
1369
1369
|
"additionalProperties": false
|
|
1370
|
+
},
|
|
1371
|
+
"SuggestionScheduleState": {
|
|
1372
|
+
"type": "object",
|
|
1373
|
+
"additionalProperties": false,
|
|
1374
|
+
"required": [
|
|
1375
|
+
"intervalStartedAt"
|
|
1376
|
+
],
|
|
1377
|
+
"properties": {
|
|
1378
|
+
"intervalStartedAt": {
|
|
1379
|
+
"type": "integer",
|
|
1380
|
+
"minimum": 1,
|
|
1381
|
+
"maximum": 9007199254740991
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1370
1384
|
}
|
|
1371
1385
|
}
|
|
1372
1386
|
}
|