@kumwe/studio-testkit 0.1.0-alpha.7 → 0.1.0-alpha.8
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 +50 -11
- package/corpus-manifest.json +381 -35
- package/dist/host-testbed.d.ts +22 -2
- package/dist/host-testbed.d.ts.map +1 -1
- package/dist/host-testbed.js +230 -35
- package/dist/host-testbed.js.map +1 -1
- package/dist/index.d.ts +40 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -2
- package/dist/index.js.map +1 -1
- package/fixtures/host-capabilities.example.json +2 -2
- package/fixtures/preview.render.example.json +1 -0
- package/fixtures/studio-config.example.json +3 -3
- package/invalid/host-capabilities.invalid-protocol-version.json +1 -1
- package/invalid/host-sequence.pending-expectation.json +52 -0
- package/invalid/host-sequence.preview-render-missing-request-id.json +50 -0
- package/invalid/preview-message.activated-unknown-interaction.json +1 -1
- package/invalid/preview-message.duplicate-marker.json +24 -0
- package/invalid/preview-message.invalid-digest.json +1 -0
- package/invalid/preview-message.invalid-marker-grammar.json +19 -0
- package/invalid/preview-message.missing-marker-map.json +20 -0
- package/invalid/preview-message.missing-render-request-id.json +18 -0
- package/invalid/preview-message.unknown-type.json +13 -0
- package/invalid/preview-message.viewport-height-too-small.json +13 -0
- package/invalid/preview-message.viewport-unsafe-role.json +13 -0
- package/package.json +3 -3
- package/vectors/host/artifact.dependencies.result.json +2 -2
- package/vectors/host/artifact.load.stored.json +2 -2
- package/vectors/host/artifact.load.unknown.error.json +2 -2
- package/vectors/host/artifact.publish.accepted.json +2 -2
- package/vectors/host/artifact.publish.forbidden.error.json +1 -1
- package/vectors/host/artifact.publish.stale.error.json +2 -2
- package/vectors/host/artifact.save.accepted.json +2 -2
- package/vectors/host/artifact.save.forbidden.error.json +1 -1
- package/vectors/host/artifact.save.stale.error.json +2 -2
- package/vectors/host/artifact.unpublish.stale.error.json +2 -2
- package/vectors/host/envelope.malformed-context.error.json +2 -2
- package/vectors/host/envelope.protocol-version.error.json +1 -1
- package/vectors/host/envelope.stale-generation.error.json +2 -2
- package/vectors/host/localization.messages.unknown-locale.error.json +2 -2
- package/vectors/host/media.abort-upload.unknown.error.json +1 -1
- package/vectors/host/media.authorize-upload.granted.json +1 -1
- package/vectors/host/media.authorize-upload.path-filename.error.json +1 -1
- package/vectors/host/media.authorize-upload.too-large.error.json +1 -1
- package/vectors/host/media.complete-upload.unknown.error.json +1 -1
- package/vectors/host/media.get.unknown.json +2 -2
- package/vectors/host/media.import-external.private-host.error.json +1 -1
- package/vectors/host/media.list.cursor.error.json +2 -2
- package/vectors/host/media.list.limit.error.json +2 -2
- package/vectors/host/media.upload-status.unknown.error.json +1 -1
- package/vectors/host/permission.explain.withheld.json +2 -2
- package/vectors/host/permission.refresh.snapshot.json +2 -2
- package/vectors/host/recovery.load.absent.json +2 -2
- package/vectors/host/telemetry.emit.accepted.json +2 -2
- package/vectors/host/telemetry.emit.non-primitive.error.json +2 -2
- package/vectors/host-sequence/artifact.publish.changed-intent.sequence.json +75 -0
- package/vectors/host-sequence/artifact.publish.idempotent-replay.sequence.json +111 -0
- package/vectors/host-sequence/preview.cancel.cross-context.sequence.json +78 -0
- package/vectors/host-sequence/preview.render.cancelled.sequence.json +75 -0
- package/vectors/host-sequence/recovery.store.canonical-number.sequence.json +72 -0
- package/vectors/host-sequence/recovery.store.changed-context.sequence.json +61 -0
- package/vectors/host-sequence/recovery.store.rate-limited.sequence.json +93 -0
- package/vectors/host-sequence/recovery.store.resource-scope.sequence.json +61 -0
- package/vectors/host-sequence/recovery.store.wrong-operation-id.sequence.json +56 -0
- package/vectors/preview/canonical-preorder.json +102 -0
- package/vectors/preview/empty-draft.json +36 -0
- package/vectors/schema-profile/alternative-limit.accepted.json +95 -0
- package/vectors/schema-profile/alternative-limit.rejected.json +92 -0
- package/vectors/schema-profile/array-composition.accepted.json +35 -0
- package/vectors/schema-profile/byte-limit.accepted.json +30 -0
- package/vectors/schema-profile/byte-limit.rejected.json +26 -0
- package/vectors/schema-profile/closed-object.accepted.json +38 -0
- package/vectors/schema-profile/decimal-multiple.accepted.json +54 -0
- package/vectors/schema-profile/depth-limit.accepted.json +90 -0
- package/vectors/schema-profile/depth-limit.rejected.json +88 -0
- package/vectors/schema-profile/description-limit.accepted.json +29 -0
- package/vectors/schema-profile/description-limit.rejected.json +25 -0
- package/vectors/schema-profile/diagnostic-precedence.rejected.json +26 -0
- package/vectors/schema-profile/duplicate-dependent-required.rejected.json +21 -0
- package/vectors/schema-profile/duplicate-required.rejected.json +18 -0
- package/vectors/schema-profile/empty-combinator.rejected.json +17 -0
- package/vectors/schema-profile/empty-enum.rejected.json +17 -0
- package/vectors/schema-profile/enum-limit.accepted.json +89 -0
- package/vectors/schema-profile/enum-limit.rejected.json +84 -0
- package/vectors/schema-profile/examples-limit.accepted.json +35 -0
- package/vectors/schema-profile/examples-limit.rejected.json +31 -0
- package/vectors/schema-profile/format-keyword.rejected.json +17 -0
- package/vectors/schema-profile/forward-reference-path-precedence.rejected.json +20 -0
- package/vectors/schema-profile/invalid-pointer.rejected.json +18 -0
- package/vectors/schema-profile/json-depth-limit.accepted.json +278 -0
- package/vectors/schema-profile/json-depth-limit.rejected.json +276 -0
- package/vectors/schema-profile/json-item-limit.accepted.json +686 -0
- package/vectors/schema-profile/json-item-limit.rejected.json +682 -0
- package/vectors/schema-profile/json-property-limit.accepted.json +1031 -0
- package/vectors/schema-profile/json-property-limit.rejected.json +1028 -0
- package/vectors/schema-profile/local-reference.accepted.json +28 -0
- package/vectors/schema-profile/memoized-diagnostic.accepted.json +31 -0
- package/vectors/schema-profile/node-limit.accepted.json +1097 -0
- package/vectors/schema-profile/node-limit.rejected.json +1094 -0
- package/vectors/schema-profile/non-object-root.rejected.json +9 -0
- package/vectors/schema-profile/non-schema-reference.rejected.json +21 -0
- package/vectors/schema-profile/object-key-limit.accepted.json +32 -0
- package/vectors/schema-profile/object-key-limit.rejected.json +28 -0
- package/vectors/schema-profile/open-root.rejected.json +13 -0
- package/vectors/schema-profile/percent-encoded-pointer.rejected.json +26 -0
- package/vectors/schema-profile/property-name-limit.accepted.json +543 -0
- package/vectors/schema-profile/property-name-limit.rejected.json +536 -0
- package/vectors/schema-profile/recursive-diagnostic-precedence.rejected.json +30 -0
- package/vectors/schema-profile/recursive-reference.rejected.json +24 -0
- package/vectors/schema-profile/reference-fanout.accepted.json +662 -0
- package/vectors/schema-profile/reference-length-limit.accepted.json +45 -0
- package/vectors/schema-profile/reference-length-limit.rejected.json +39 -0
- package/vectors/schema-profile/reference-limit.accepted.json +416 -0
- package/vectors/schema-profile/reference-limit.rejected.json +415 -0
- package/vectors/schema-profile/reference-vs-keyword-precedence.rejected.json +22 -0
- package/vectors/schema-profile/reserved-pointer.rejected.json +26 -0
- package/vectors/schema-profile/root-diagnostic-precedence.rejected.json +16 -0
- package/vectors/schema-profile/root-vs-reference-precedence.rejected.json +19 -0
- package/vectors/schema-profile/schema-map-limit.accepted.json +539 -0
- package/vectors/schema-profile/schema-map-limit.rejected.json +536 -0
- package/vectors/schema-profile/semantic-recursion-precedence.rejected.json +21 -0
- package/vectors/schema-profile/semantic-reference-precedence.rejected.json +21 -0
- package/vectors/schema-profile/title-limit.accepted.json +29 -0
- package/vectors/schema-profile/title-limit.rejected.json +25 -0
- package/vectors/schema-profile/unresolved-reference.rejected.json +17 -0
- package/vectors/schema-profile/unsafe-dependent-required.rejected.json +24 -0
- package/vectors/schema-profile/unsafe-member.rejected.json +17 -0
- package/vectors/schema-profile/unsafe-required.rejected.json +17 -0
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"context": {
|
|
21
21
|
"operationId": "studio.operation/media.complete-upload",
|
|
22
|
-
"protocolVersion": "0.1.0-draft.
|
|
22
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
23
23
|
"requestId": "requests/vector-1",
|
|
24
24
|
"resourceContextKey": "contexts/vector",
|
|
25
25
|
"sessionGeneration": "session-r1"
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"sessionGeneration": "session-r1"
|
|
19
19
|
},
|
|
20
20
|
"context": {
|
|
21
|
-
"operationId": "studio.
|
|
22
|
-
"protocolVersion": "0.1.0-draft.
|
|
21
|
+
"operationId": "studio.operation/media.get",
|
|
22
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
23
23
|
"requestId": "requests/vector-1",
|
|
24
24
|
"resourceContextKey": "contexts/vector",
|
|
25
25
|
"sessionGeneration": "session-r1"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"context": {
|
|
21
21
|
"operationId": "studio.operation/media.import-external",
|
|
22
|
-
"protocolVersion": "0.1.0-draft.
|
|
22
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
23
23
|
"requestId": "requests/vector-1",
|
|
24
24
|
"resourceContextKey": "contexts/vector",
|
|
25
25
|
"sessionGeneration": "session-r1"
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"sessionGeneration": "session-r1"
|
|
19
19
|
},
|
|
20
20
|
"context": {
|
|
21
|
-
"operationId": "studio.
|
|
22
|
-
"protocolVersion": "0.1.0-draft.
|
|
21
|
+
"operationId": "studio.operation/media.list",
|
|
22
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
23
23
|
"requestId": "requests/vector-1",
|
|
24
24
|
"resourceContextKey": "contexts/vector",
|
|
25
25
|
"sessionGeneration": "session-r1"
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"sessionGeneration": "session-r1"
|
|
19
19
|
},
|
|
20
20
|
"context": {
|
|
21
|
-
"operationId": "studio.
|
|
22
|
-
"protocolVersion": "0.1.0-draft.
|
|
21
|
+
"operationId": "studio.operation/media.list",
|
|
22
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
23
23
|
"requestId": "requests/vector-1",
|
|
24
24
|
"resourceContextKey": "contexts/vector",
|
|
25
25
|
"sessionGeneration": "session-r1"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"context": {
|
|
21
21
|
"operationId": "studio.operation/media.upload-status",
|
|
22
|
-
"protocolVersion": "0.1.0-draft.
|
|
22
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
23
23
|
"requestId": "requests/vector-1",
|
|
24
24
|
"resourceContextKey": "contexts/vector",
|
|
25
25
|
"sessionGeneration": "session-r1"
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"sessionGeneration": "session-r1"
|
|
19
19
|
},
|
|
20
20
|
"context": {
|
|
21
|
-
"operationId": "studio.
|
|
22
|
-
"protocolVersion": "0.1.0-draft.
|
|
21
|
+
"operationId": "studio.operation/permission.explain",
|
|
22
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
23
23
|
"requestId": "requests/vector-1",
|
|
24
24
|
"resourceContextKey": "contexts/vector",
|
|
25
25
|
"sessionGeneration": "session-r1"
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"sessionGeneration": "session-r1"
|
|
19
19
|
},
|
|
20
20
|
"context": {
|
|
21
|
-
"operationId": "studio.
|
|
22
|
-
"protocolVersion": "0.1.0-draft.
|
|
21
|
+
"operationId": "studio.operation/permission.refresh",
|
|
22
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
23
23
|
"requestId": "requests/vector-1",
|
|
24
24
|
"resourceContextKey": "contexts/vector",
|
|
25
25
|
"sessionGeneration": "session-r1"
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"sessionGeneration": "session-r1"
|
|
19
19
|
},
|
|
20
20
|
"context": {
|
|
21
|
-
"operationId": "studio.
|
|
22
|
-
"protocolVersion": "0.1.0-draft.
|
|
21
|
+
"operationId": "studio.operation/recovery.load",
|
|
22
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
23
23
|
"requestId": "requests/vector-1",
|
|
24
24
|
"resourceContextKey": "contexts/vector",
|
|
25
25
|
"sessionGeneration": "session-r1"
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"sessionGeneration": "session-r1"
|
|
19
19
|
},
|
|
20
20
|
"context": {
|
|
21
|
-
"operationId": "studio.
|
|
22
|
-
"protocolVersion": "0.1.0-draft.
|
|
21
|
+
"operationId": "studio.operation/telemetry.emit",
|
|
22
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
23
23
|
"requestId": "requests/vector-1",
|
|
24
24
|
"resourceContextKey": "contexts/vector",
|
|
25
25
|
"sessionGeneration": "session-r1"
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"sessionGeneration": "session-r1"
|
|
19
19
|
},
|
|
20
20
|
"context": {
|
|
21
|
-
"operationId": "studio.
|
|
22
|
-
"protocolVersion": "0.1.0-draft.
|
|
21
|
+
"operationId": "studio.operation/telemetry.emit",
|
|
22
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
23
23
|
"requestId": "requests/vector-1",
|
|
24
24
|
"resourceContextKey": "contexts/vector",
|
|
25
25
|
"sessionGeneration": "session-r1"
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "host-sequence-vector",
|
|
4
|
+
"id": "vector.host-sequence.artifact.publish.changed-intent",
|
|
5
|
+
"description": "A publication key accepted for one artifact reference refuses a changed argument before concurrency evaluation, while preserving the exact seeded kind, revision and session generation.",
|
|
6
|
+
"profile": "studio.profile/host-baseline-v2",
|
|
7
|
+
"assertions": ["idempotency-changed-argument-refusal"],
|
|
8
|
+
"idempotencyPolicy": {
|
|
9
|
+
"scopeFields": ["idempotencyKey", "operationId", "resourceContextKey", "sessionGeneration"],
|
|
10
|
+
"argumentCanonicalization": "canonical-json",
|
|
11
|
+
"intentContextFields": ["expectedRevision", "locale", "protocolVersion"],
|
|
12
|
+
"absentOptionalFields": "omit",
|
|
13
|
+
"numberNormalization": "canonical-json",
|
|
14
|
+
"excludedContextFields": ["requestId", "traceContext"]
|
|
15
|
+
},
|
|
16
|
+
"given": {
|
|
17
|
+
"artifacts": [
|
|
18
|
+
{
|
|
19
|
+
"id": "vector.model",
|
|
20
|
+
"kind": "content-model",
|
|
21
|
+
"revision": "upstream-content-r41",
|
|
22
|
+
"status": "draft"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"permissions": ["studio.permission/publish"],
|
|
26
|
+
"sessionGeneration": "session-live-r41"
|
|
27
|
+
},
|
|
28
|
+
"steps": [
|
|
29
|
+
{
|
|
30
|
+
"action": "invoke",
|
|
31
|
+
"id": "publish-first",
|
|
32
|
+
"port": "artifact",
|
|
33
|
+
"operation": "publish",
|
|
34
|
+
"context": {
|
|
35
|
+
"operationId": "studio.operation/artifact.publish",
|
|
36
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
37
|
+
"requestId": "requests/publish-first",
|
|
38
|
+
"resourceContextKey": "contexts/vector",
|
|
39
|
+
"sessionGeneration": "session-live-r41",
|
|
40
|
+
"expectedRevision": "upstream-content-r41",
|
|
41
|
+
"idempotencyKey": "idempotency/publish-model"
|
|
42
|
+
},
|
|
43
|
+
"argument": { "id": "vector.model", "version": "1.0.0" },
|
|
44
|
+
"completion": "settled",
|
|
45
|
+
"expect": {
|
|
46
|
+
"outcome": "result",
|
|
47
|
+
"revisionAdvancesFrom": "upstream-content-r41",
|
|
48
|
+
"value": "null"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"action": "invoke",
|
|
53
|
+
"id": "publish-changed-intent",
|
|
54
|
+
"port": "artifact",
|
|
55
|
+
"operation": "publish",
|
|
56
|
+
"context": {
|
|
57
|
+
"operationId": "studio.operation/artifact.publish",
|
|
58
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
59
|
+
"requestId": "requests/publish-changed",
|
|
60
|
+
"resourceContextKey": "contexts/vector",
|
|
61
|
+
"sessionGeneration": "session-live-r41",
|
|
62
|
+
"expectedRevision": "upstream-content-r41",
|
|
63
|
+
"idempotencyKey": "idempotency/publish-model"
|
|
64
|
+
},
|
|
65
|
+
"argument": { "id": "vector.model", "version": "2.0.0" },
|
|
66
|
+
"completion": "settled",
|
|
67
|
+
"expect": { "outcome": "error", "category": "invalid-request", "retryable": false }
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"expectFinal": {
|
|
71
|
+
"artifacts": [{ "id": "vector.model", "status": "published", "revisionFrom": "publish-first" }],
|
|
72
|
+
"pendingPreviewRenders": 0,
|
|
73
|
+
"previewDeliveries": []
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "host-sequence-vector",
|
|
4
|
+
"id": "vector.host-sequence.artifact.publish.idempotent-replay",
|
|
5
|
+
"description": "In-flight and completed retries of an accepted publication coalesce on one result, do not consume another rate-limit unit, and ignore per-attempt request and trace correlation.",
|
|
6
|
+
"profile": "studio.profile/host-baseline-v2",
|
|
7
|
+
"assertions": ["idempotent-in-flight-coalescing", "idempotent-completed-replay"],
|
|
8
|
+
"idempotencyPolicy": {
|
|
9
|
+
"scopeFields": ["idempotencyKey", "operationId", "resourceContextKey", "sessionGeneration"],
|
|
10
|
+
"argumentCanonicalization": "canonical-json",
|
|
11
|
+
"intentContextFields": ["expectedRevision", "locale", "protocolVersion"],
|
|
12
|
+
"absentOptionalFields": "omit",
|
|
13
|
+
"numberNormalization": "canonical-json",
|
|
14
|
+
"excludedContextFields": ["requestId", "traceContext"]
|
|
15
|
+
},
|
|
16
|
+
"given": {
|
|
17
|
+
"artifacts": [
|
|
18
|
+
{
|
|
19
|
+
"id": "vector.blueprint",
|
|
20
|
+
"kind": "blueprint",
|
|
21
|
+
"revision": "vector.blueprint-r1",
|
|
22
|
+
"status": "draft"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"permissions": ["studio.permission/publish"],
|
|
26
|
+
"sessionGeneration": "session-r1",
|
|
27
|
+
"rateLimits": [
|
|
28
|
+
{
|
|
29
|
+
"operationId": "studio.operation/artifact.publish",
|
|
30
|
+
"maximumRequests": 1,
|
|
31
|
+
"windowMilliseconds": 60000,
|
|
32
|
+
"retryAfterMilliseconds": 60000
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"steps": [
|
|
37
|
+
{
|
|
38
|
+
"action": "invoke",
|
|
39
|
+
"id": "publish-first",
|
|
40
|
+
"port": "artifact",
|
|
41
|
+
"operation": "publish",
|
|
42
|
+
"context": {
|
|
43
|
+
"operationId": "studio.operation/artifact.publish",
|
|
44
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
45
|
+
"requestId": "requests/publish-first",
|
|
46
|
+
"resourceContextKey": "contexts/vector",
|
|
47
|
+
"sessionGeneration": "session-r1",
|
|
48
|
+
"expectedRevision": "vector.blueprint-r1",
|
|
49
|
+
"idempotencyKey": "idempotency/publish-vector",
|
|
50
|
+
"traceContext": { "traceparent": "trace-first" }
|
|
51
|
+
},
|
|
52
|
+
"argument": { "id": "vector.blueprint", "version": "1.0.0" },
|
|
53
|
+
"completion": "pending"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"action": "invoke",
|
|
57
|
+
"id": "publish-coalesced",
|
|
58
|
+
"port": "artifact",
|
|
59
|
+
"operation": "publish",
|
|
60
|
+
"context": {
|
|
61
|
+
"operationId": "studio.operation/artifact.publish",
|
|
62
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
63
|
+
"requestId": "requests/publish-coalesced",
|
|
64
|
+
"resourceContextKey": "contexts/vector",
|
|
65
|
+
"sessionGeneration": "session-r1",
|
|
66
|
+
"expectedRevision": "vector.blueprint-r1",
|
|
67
|
+
"idempotencyKey": "idempotency/publish-vector",
|
|
68
|
+
"traceContext": { "traceparent": "trace-coalesced" }
|
|
69
|
+
},
|
|
70
|
+
"argument": { "id": "vector.blueprint", "version": "1.0.0" },
|
|
71
|
+
"completion": "settled",
|
|
72
|
+
"expect": {
|
|
73
|
+
"outcome": "result",
|
|
74
|
+
"revisionAdvancesFrom": "vector.blueprint-r1",
|
|
75
|
+
"value": "null"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"action": "settle",
|
|
80
|
+
"id": "publish-first-settled",
|
|
81
|
+
"invocation": "publish-first",
|
|
82
|
+
"expect": { "outcome": "result", "sameAs": "publish-coalesced", "value": "null" }
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"action": "invoke",
|
|
86
|
+
"id": "publish-completed-replay",
|
|
87
|
+
"port": "artifact",
|
|
88
|
+
"operation": "publish",
|
|
89
|
+
"context": {
|
|
90
|
+
"operationId": "studio.operation/artifact.publish",
|
|
91
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
92
|
+
"requestId": "requests/publish-completed",
|
|
93
|
+
"resourceContextKey": "contexts/vector",
|
|
94
|
+
"sessionGeneration": "session-r1",
|
|
95
|
+
"expectedRevision": "vector.blueprint-r1",
|
|
96
|
+
"idempotencyKey": "idempotency/publish-vector",
|
|
97
|
+
"traceContext": { "traceparent": "trace-completed" }
|
|
98
|
+
},
|
|
99
|
+
"argument": { "id": "vector.blueprint", "version": "1.0.0" },
|
|
100
|
+
"completion": "settled",
|
|
101
|
+
"expect": { "outcome": "result", "sameAs": "publish-first", "value": "null" }
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"expectFinal": {
|
|
105
|
+
"artifacts": [
|
|
106
|
+
{ "id": "vector.blueprint", "status": "published", "revisionFrom": "publish-first" }
|
|
107
|
+
],
|
|
108
|
+
"pendingPreviewRenders": 0,
|
|
109
|
+
"previewDeliveries": []
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "host-sequence-vector",
|
|
4
|
+
"id": "vector.host-sequence.preview.cancel.cross-context",
|
|
5
|
+
"description": "Cancellation in another resource context cannot cancel an in-flight render with the same draft digest; the original render completes and is delivered once.",
|
|
6
|
+
"profile": "studio.profile/host-baseline-v2",
|
|
7
|
+
"assertions": ["cross-context-cancellation-isolation"],
|
|
8
|
+
"idempotencyPolicy": {
|
|
9
|
+
"scopeFields": ["idempotencyKey", "operationId", "resourceContextKey", "sessionGeneration"],
|
|
10
|
+
"argumentCanonicalization": "canonical-json",
|
|
11
|
+
"intentContextFields": ["expectedRevision", "locale", "protocolVersion"],
|
|
12
|
+
"absentOptionalFields": "omit",
|
|
13
|
+
"numberNormalization": "canonical-json",
|
|
14
|
+
"excludedContextFields": ["requestId", "traceContext"]
|
|
15
|
+
},
|
|
16
|
+
"given": { "artifacts": [], "permissions": [], "sessionGeneration": "session-r1" },
|
|
17
|
+
"steps": [
|
|
18
|
+
{
|
|
19
|
+
"action": "invoke",
|
|
20
|
+
"id": "render-context-a",
|
|
21
|
+
"port": "preview",
|
|
22
|
+
"operation": "render",
|
|
23
|
+
"context": {
|
|
24
|
+
"operationId": "studio.operation/preview.render",
|
|
25
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
26
|
+
"requestId": "requests/render-context-a",
|
|
27
|
+
"resourceContextKey": "contexts/preview-a",
|
|
28
|
+
"sessionGeneration": "session-r1"
|
|
29
|
+
},
|
|
30
|
+
"argument": {
|
|
31
|
+
"artifactId": "vector.blueprint",
|
|
32
|
+
"draftDigest": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
33
|
+
"draftRevision": "vector-blueprint-r1",
|
|
34
|
+
"requestId": "renders/context-a-1",
|
|
35
|
+
"viewport": "desktop"
|
|
36
|
+
},
|
|
37
|
+
"completion": "pending"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"action": "invoke",
|
|
41
|
+
"id": "cancel-context-b",
|
|
42
|
+
"port": "preview",
|
|
43
|
+
"operation": "cancel",
|
|
44
|
+
"context": {
|
|
45
|
+
"operationId": "studio.operation/preview.cancel",
|
|
46
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
47
|
+
"requestId": "requests/cancel-context-b",
|
|
48
|
+
"resourceContextKey": "contexts/preview-b",
|
|
49
|
+
"sessionGeneration": "session-r1"
|
|
50
|
+
},
|
|
51
|
+
"argument": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
52
|
+
"completion": "settled",
|
|
53
|
+
"expect": { "outcome": "result", "value": "null" }
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"action": "release-preview-render",
|
|
57
|
+
"id": "release-context-a",
|
|
58
|
+
"invocation": "render-context-a",
|
|
59
|
+
"value": {
|
|
60
|
+
"draftDigest": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
61
|
+
"markers": [],
|
|
62
|
+
"markerMap": {},
|
|
63
|
+
"diagnostics": [],
|
|
64
|
+
"requestId": "renders/context-a-1"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"action": "settle",
|
|
69
|
+
"id": "render-context-a-settled",
|
|
70
|
+
"invocation": "render-context-a",
|
|
71
|
+
"expect": { "outcome": "result", "value": "rendered" }
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"expectFinal": {
|
|
75
|
+
"pendingPreviewRenders": 0,
|
|
76
|
+
"previewDeliveries": ["cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "host-sequence-vector",
|
|
4
|
+
"id": "vector.host-sequence.preview.render.cancelled",
|
|
5
|
+
"description": "A renderer completion released after cancellation cannot escape: cancel returns null, render settles cancelled, and the late result is not delivered.",
|
|
6
|
+
"profile": "studio.profile/host-baseline-v2",
|
|
7
|
+
"assertions": ["in-flight-preview-cancellation", "late-preview-result-discard"],
|
|
8
|
+
"idempotencyPolicy": {
|
|
9
|
+
"scopeFields": ["idempotencyKey", "operationId", "resourceContextKey", "sessionGeneration"],
|
|
10
|
+
"argumentCanonicalization": "canonical-json",
|
|
11
|
+
"intentContextFields": ["expectedRevision", "locale", "protocolVersion"],
|
|
12
|
+
"absentOptionalFields": "omit",
|
|
13
|
+
"numberNormalization": "canonical-json",
|
|
14
|
+
"excludedContextFields": ["requestId", "traceContext"]
|
|
15
|
+
},
|
|
16
|
+
"given": { "artifacts": [], "permissions": [], "sessionGeneration": "session-r1" },
|
|
17
|
+
"steps": [
|
|
18
|
+
{
|
|
19
|
+
"action": "invoke",
|
|
20
|
+
"id": "render-pending",
|
|
21
|
+
"port": "preview",
|
|
22
|
+
"operation": "render",
|
|
23
|
+
"context": {
|
|
24
|
+
"operationId": "studio.operation/preview.render",
|
|
25
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
26
|
+
"requestId": "requests/preview-render",
|
|
27
|
+
"resourceContextKey": "contexts/vector",
|
|
28
|
+
"sessionGeneration": "session-r1"
|
|
29
|
+
},
|
|
30
|
+
"argument": {
|
|
31
|
+
"artifactId": "vector.blueprint",
|
|
32
|
+
"draftDigest": "b03cc45a784d7cd4d2836e24694d42f9c8e2ee3dde3ceca79b0a147436db47c6",
|
|
33
|
+
"draftRevision": "vector-blueprint-r1",
|
|
34
|
+
"requestId": "renders/cancelled-1",
|
|
35
|
+
"viewport": "desktop"
|
|
36
|
+
},
|
|
37
|
+
"completion": "pending"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"action": "invoke",
|
|
41
|
+
"id": "cancel-render",
|
|
42
|
+
"port": "preview",
|
|
43
|
+
"operation": "cancel",
|
|
44
|
+
"context": {
|
|
45
|
+
"operationId": "studio.operation/preview.cancel",
|
|
46
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
47
|
+
"requestId": "requests/preview-cancel",
|
|
48
|
+
"resourceContextKey": "contexts/vector",
|
|
49
|
+
"sessionGeneration": "session-r1"
|
|
50
|
+
},
|
|
51
|
+
"argument": "b03cc45a784d7cd4d2836e24694d42f9c8e2ee3dde3ceca79b0a147436db47c6",
|
|
52
|
+
"completion": "settled",
|
|
53
|
+
"expect": { "outcome": "result", "value": "null" }
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"action": "release-preview-render",
|
|
57
|
+
"id": "release-late-render",
|
|
58
|
+
"invocation": "render-pending",
|
|
59
|
+
"value": {
|
|
60
|
+
"draftDigest": "b03cc45a784d7cd4d2836e24694d42f9c8e2ee3dde3ceca79b0a147436db47c6",
|
|
61
|
+
"markers": [],
|
|
62
|
+
"markerMap": {},
|
|
63
|
+
"diagnostics": [],
|
|
64
|
+
"requestId": "renders/cancelled-1"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"action": "settle",
|
|
69
|
+
"id": "render-cancelled",
|
|
70
|
+
"invocation": "render-pending",
|
|
71
|
+
"expect": { "outcome": "error", "category": "cancelled", "retryable": false }
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"expectFinal": { "pendingPreviewRenders": 0, "previewDeliveries": [] }
|
|
75
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "host-sequence-vector",
|
|
4
|
+
"id": "vector.host-sequence.recovery.store.canonical-number",
|
|
5
|
+
"description": "Canonical JSON normalizes negative zero to zero, so requests that differ only by that numeric spelling replay one accepted recovery write.",
|
|
6
|
+
"profile": "studio.profile/host-baseline-v2",
|
|
7
|
+
"assertions": ["canonical-number-equivalence", "idempotent-completed-replay"],
|
|
8
|
+
"idempotencyPolicy": {
|
|
9
|
+
"scopeFields": ["idempotencyKey", "operationId", "resourceContextKey", "sessionGeneration"],
|
|
10
|
+
"argumentCanonicalization": "canonical-json",
|
|
11
|
+
"intentContextFields": ["expectedRevision", "locale", "protocolVersion"],
|
|
12
|
+
"absentOptionalFields": "omit",
|
|
13
|
+
"numberNormalization": "canonical-json",
|
|
14
|
+
"excludedContextFields": ["requestId", "traceContext"]
|
|
15
|
+
},
|
|
16
|
+
"given": {
|
|
17
|
+
"artifacts": [],
|
|
18
|
+
"permissions": [],
|
|
19
|
+
"sessionGeneration": "session-r1",
|
|
20
|
+
"rateLimits": [
|
|
21
|
+
{
|
|
22
|
+
"operationId": "studio.operation/recovery.store",
|
|
23
|
+
"maximumRequests": 1,
|
|
24
|
+
"windowMilliseconds": 60000,
|
|
25
|
+
"retryAfterMilliseconds": 60000
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"steps": [
|
|
30
|
+
{
|
|
31
|
+
"action": "invoke",
|
|
32
|
+
"id": "store-negative-zero",
|
|
33
|
+
"port": "recovery",
|
|
34
|
+
"operation": "store",
|
|
35
|
+
"context": {
|
|
36
|
+
"operationId": "studio.operation/recovery.store",
|
|
37
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
38
|
+
"requestId": "requests/store-negative-zero",
|
|
39
|
+
"resourceContextKey": "contexts/canonical-number",
|
|
40
|
+
"sessionGeneration": "session-r1",
|
|
41
|
+
"idempotencyKey": "idempotency/canonical-number",
|
|
42
|
+
"traceContext": { "traceparent": "trace-negative-zero" }
|
|
43
|
+
},
|
|
44
|
+
"argument": { "value": -0 },
|
|
45
|
+
"completion": "settled",
|
|
46
|
+
"expect": { "outcome": "result", "value": "null" }
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"action": "invoke",
|
|
50
|
+
"id": "store-positive-zero-replay",
|
|
51
|
+
"port": "recovery",
|
|
52
|
+
"operation": "store",
|
|
53
|
+
"context": {
|
|
54
|
+
"operationId": "studio.operation/recovery.store",
|
|
55
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
56
|
+
"requestId": "requests/store-positive-zero",
|
|
57
|
+
"resourceContextKey": "contexts/canonical-number",
|
|
58
|
+
"sessionGeneration": "session-r1",
|
|
59
|
+
"idempotencyKey": "idempotency/canonical-number",
|
|
60
|
+
"traceContext": { "traceparent": "trace-positive-zero" }
|
|
61
|
+
},
|
|
62
|
+
"argument": { "value": 0 },
|
|
63
|
+
"completion": "settled",
|
|
64
|
+
"expect": { "outcome": "result", "sameAs": "store-negative-zero", "value": "null" }
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"expectFinal": {
|
|
68
|
+
"recovery": [{ "resourceContextKey": "contexts/canonical-number", "value": { "value": 0 } }],
|
|
69
|
+
"pendingPreviewRenders": 0,
|
|
70
|
+
"previewDeliveries": []
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "host-sequence-vector",
|
|
4
|
+
"id": "vector.host-sequence.recovery.store.changed-context",
|
|
5
|
+
"description": "Adding an optional semantic context field changes the canonical intent: an accepted key with absent locale refuses the same argument when locale becomes present.",
|
|
6
|
+
"profile": "studio.profile/host-baseline-v2",
|
|
7
|
+
"assertions": ["idempotency-changed-context-refusal"],
|
|
8
|
+
"idempotencyPolicy": {
|
|
9
|
+
"scopeFields": ["idempotencyKey", "operationId", "resourceContextKey", "sessionGeneration"],
|
|
10
|
+
"argumentCanonicalization": "canonical-json",
|
|
11
|
+
"intentContextFields": ["expectedRevision", "locale", "protocolVersion"],
|
|
12
|
+
"absentOptionalFields": "omit",
|
|
13
|
+
"numberNormalization": "canonical-json",
|
|
14
|
+
"excludedContextFields": ["requestId", "traceContext"]
|
|
15
|
+
},
|
|
16
|
+
"given": { "artifacts": [], "permissions": [], "sessionGeneration": "session-r1" },
|
|
17
|
+
"steps": [
|
|
18
|
+
{
|
|
19
|
+
"action": "invoke",
|
|
20
|
+
"id": "store-without-locale",
|
|
21
|
+
"port": "recovery",
|
|
22
|
+
"operation": "store",
|
|
23
|
+
"context": {
|
|
24
|
+
"operationId": "studio.operation/recovery.store",
|
|
25
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
26
|
+
"requestId": "requests/store-without-locale",
|
|
27
|
+
"resourceContextKey": "contexts/context-intent",
|
|
28
|
+
"sessionGeneration": "session-r1",
|
|
29
|
+
"idempotencyKey": "idempotency/context-intent"
|
|
30
|
+
},
|
|
31
|
+
"argument": { "draft": "retained" },
|
|
32
|
+
"completion": "settled",
|
|
33
|
+
"expect": { "outcome": "result", "value": "null" }
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"action": "invoke",
|
|
37
|
+
"id": "store-with-locale",
|
|
38
|
+
"port": "recovery",
|
|
39
|
+
"operation": "store",
|
|
40
|
+
"context": {
|
|
41
|
+
"operationId": "studio.operation/recovery.store",
|
|
42
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
43
|
+
"requestId": "requests/store-with-locale",
|
|
44
|
+
"resourceContextKey": "contexts/context-intent",
|
|
45
|
+
"sessionGeneration": "session-r1",
|
|
46
|
+
"idempotencyKey": "idempotency/context-intent",
|
|
47
|
+
"locale": "en"
|
|
48
|
+
},
|
|
49
|
+
"argument": { "draft": "retained" },
|
|
50
|
+
"completion": "settled",
|
|
51
|
+
"expect": { "outcome": "error", "category": "invalid-request", "retryable": false }
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"expectFinal": {
|
|
55
|
+
"recovery": [
|
|
56
|
+
{ "resourceContextKey": "contexts/context-intent", "value": { "draft": "retained" } }
|
|
57
|
+
],
|
|
58
|
+
"pendingPreviewRenders": 0,
|
|
59
|
+
"previewDeliveries": []
|
|
60
|
+
}
|
|
61
|
+
}
|