@kumwe/studio-testkit 0.1.0-alpha.7 → 0.1.0-beta.2

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.
Files changed (189) hide show
  1. package/README.md +122 -23
  2. package/THIRD_PARTY_NOTICES.md +9 -0
  3. package/conformance/authoring-web/non-drag-move-equivalence.json +199 -0
  4. package/conformance/renderer-web/blob-default-deny.json +62 -0
  5. package/conformance/renderer-web/chart-fallback.json +54 -0
  6. package/conformance/renderer-web/complete-catalog.json +649 -0
  7. package/conformance/renderer-web/escaped-heading.json +43 -0
  8. package/conformance/renderer-web/interactive-behaviors.json +284 -0
  9. package/conformance/renderer-web/presentation-capabilities.json +104 -0
  10. package/conformance/renderer-web/responsive-grid.json +48 -0
  11. package/conformance/renderer-web/security-fallbacks.json +184 -0
  12. package/conformance/rich-text/advanced.first-party.json +67 -0
  13. package/corpus-manifest.json +571 -37
  14. package/dist/contextual-conformance.d.ts +81 -0
  15. package/dist/contextual-conformance.d.ts.map +1 -0
  16. package/dist/contextual-conformance.js +1 -0
  17. package/dist/host-testbed.d.ts +68 -5
  18. package/dist/host-testbed.d.ts.map +1 -1
  19. package/dist/host-testbed.js +1 -547
  20. package/dist/http-authoring-contract.d.ts +3 -0
  21. package/dist/http-authoring-contract.d.ts.map +1 -0
  22. package/dist/http-authoring-contract.js +1 -0
  23. package/dist/http-host-adapter.d.ts +12 -64
  24. package/dist/http-host-adapter.d.ts.map +1 -1
  25. package/dist/http-host-adapter.js +1 -256
  26. package/dist/http-host-responder.d.ts +58 -0
  27. package/dist/http-host-responder.d.ts.map +1 -0
  28. package/dist/http-host-responder.js +1 -0
  29. package/dist/index.d.ts +88 -3
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +2 -140
  32. package/dist/web-conformance.d.ts +112 -0
  33. package/dist/web-conformance.d.ts.map +1 -0
  34. package/dist/web-conformance.js +1 -0
  35. package/fixtures/authoring-message-catalog.en.json +1093 -0
  36. package/fixtures/authoring-save.plan.example.json +48 -0
  37. package/fixtures/authoring-session.example.json +212 -0
  38. package/fixtures/authoring-target.example.json +34 -0
  39. package/fixtures/host-capabilities.example.json +2 -2
  40. package/fixtures/host-operations.example.json +77 -0
  41. package/fixtures/plugin.example.json +12 -0
  42. package/fixtures/preview.render.example.json +1 -0
  43. package/fixtures/reusable-content-type.example.json +26 -0
  44. package/fixtures/studio-config.example.json +3 -3
  45. package/fixtures/studio-deployment.hosted.example.json +152 -0
  46. package/fixtures/studio-deployment.standalone.example.json +9 -0
  47. package/invalid/authoring-save.plan-missing-coordinates.json +16 -0
  48. package/invalid/authoring-save.plan-missing-successor-context.json +28 -0
  49. package/invalid/authoring-save.request-plan-missing-successor-context.json +26 -0
  50. package/invalid/authoring-session.missing-entry-state.json +9 -0
  51. package/invalid/authoring-target.missing-resource-types.json +24 -0
  52. package/invalid/binding-projection-vector.unknown-status.json +85 -0
  53. package/invalid/host-capabilities.invalid-protocol-version.json +1 -1
  54. package/invalid/host-error.retry-delay-without-retry.json +16 -0
  55. package/invalid/host-error.retry-delay-wrong-category.json +16 -0
  56. package/invalid/host-error.revision-without-conflict.json +16 -0
  57. package/invalid/host-sequence.pending-expectation.json +52 -0
  58. package/invalid/host-sequence.preview-render-missing-request-id.json +50 -0
  59. package/invalid/preview-message.activated-unknown-interaction.json +1 -1
  60. package/invalid/preview-message.duplicate-marker.json +24 -0
  61. package/invalid/preview-message.invalid-digest.json +1 -0
  62. package/invalid/preview-message.invalid-marker-grammar.json +19 -0
  63. package/invalid/preview-message.missing-marker-map.json +20 -0
  64. package/invalid/preview-message.missing-render-request-id.json +18 -0
  65. package/invalid/preview-message.unknown-type.json +13 -0
  66. package/invalid/preview-message.viewport-height-too-small.json +13 -0
  67. package/invalid/preview-message.viewport-unsafe-role.json +13 -0
  68. package/invalid/reusable-content-type.entry-values.json +32 -0
  69. package/invalid/studio-chart.script-config.json +10 -0
  70. package/invalid/studio-deployment.long-lived-token.json +24 -0
  71. package/invalid/studio-deployment.missing-required.json +5 -0
  72. package/invalid/studio-deployment.unknown-member.json +15 -0
  73. package/invalid/studio-drawing.svg-payload.json +10 -0
  74. package/invalid/studio-money.float.json +8 -0
  75. package/invalid/studio-presentation.css-injection.json +8 -0
  76. package/invalid/studio-table.html-cell.json +8 -0
  77. package/package.json +8 -4
  78. package/studio-release.json +35 -0
  79. package/vectors/authoring-http/transport-matrix.json +237 -0
  80. package/vectors/binding-projection/app-content-fields.resolved.json +286 -0
  81. package/vectors/binding-projection/field-removed.diagnostic.json +135 -0
  82. package/vectors/binding-projection/model-revision-mismatch.diagnostic.json +124 -0
  83. package/vectors/host/artifact.dependencies.result.json +2 -2
  84. package/vectors/host/artifact.load.stored.json +2 -2
  85. package/vectors/host/artifact.load.unknown.error.json +2 -2
  86. package/vectors/host/artifact.publish.accepted.json +2 -2
  87. package/vectors/host/artifact.publish.forbidden.error.json +1 -1
  88. package/vectors/host/artifact.publish.stale.error.json +2 -2
  89. package/vectors/host/artifact.save.accepted.json +2 -2
  90. package/vectors/host/artifact.save.forbidden.error.json +1 -1
  91. package/vectors/host/artifact.save.stale.error.json +2 -2
  92. package/vectors/host/artifact.unpublish.stale.error.json +2 -2
  93. package/vectors/host/envelope.malformed-context.error.json +2 -2
  94. package/vectors/host/envelope.protocol-version.error.json +1 -1
  95. package/vectors/host/envelope.stale-generation.error.json +2 -2
  96. package/vectors/host/localization.messages.unknown-locale.error.json +2 -2
  97. package/vectors/host/media.abort-upload.unknown.error.json +1 -1
  98. package/vectors/host/media.authorize-upload.granted.json +1 -1
  99. package/vectors/host/media.authorize-upload.path-filename.error.json +1 -1
  100. package/vectors/host/media.authorize-upload.too-large.error.json +1 -1
  101. package/vectors/host/media.complete-upload.unknown.error.json +1 -1
  102. package/vectors/host/media.get.unknown.json +2 -2
  103. package/vectors/host/media.import-external.private-host.error.json +1 -1
  104. package/vectors/host/media.list.cursor.error.json +2 -2
  105. package/vectors/host/media.list.limit.error.json +2 -2
  106. package/vectors/host/media.upload-status.unknown.error.json +1 -1
  107. package/vectors/host/model.get.stored.json +37 -0
  108. package/vectors/host/model.list.authorized.json +31 -0
  109. package/vectors/host/permission.explain.withheld.json +2 -2
  110. package/vectors/host/permission.refresh.snapshot.json +2 -2
  111. package/vectors/host/recovery.load.absent.json +2 -2
  112. package/vectors/host/telemetry.emit.accepted.json +2 -2
  113. package/vectors/host/telemetry.emit.non-primitive.error.json +2 -2
  114. package/vectors/host-sequence/artifact.publish.changed-intent.sequence.json +75 -0
  115. package/vectors/host-sequence/artifact.publish.idempotent-replay.sequence.json +111 -0
  116. package/vectors/host-sequence/preview.cancel.cross-context.sequence.json +78 -0
  117. package/vectors/host-sequence/preview.render.cancelled.sequence.json +75 -0
  118. package/vectors/host-sequence/recovery.store.canonical-number.sequence.json +72 -0
  119. package/vectors/host-sequence/recovery.store.changed-context.sequence.json +61 -0
  120. package/vectors/host-sequence/recovery.store.rate-limited.sequence.json +93 -0
  121. package/vectors/host-sequence/recovery.store.resource-scope.sequence.json +61 -0
  122. package/vectors/host-sequence/recovery.store.wrong-operation-id.sequence.json +56 -0
  123. package/vectors/preview/canonical-preorder.json +102 -0
  124. package/vectors/preview/empty-draft.json +36 -0
  125. package/vectors/schema-profile/alternative-limit.accepted.json +95 -0
  126. package/vectors/schema-profile/alternative-limit.rejected.json +92 -0
  127. package/vectors/schema-profile/array-composition.accepted.json +35 -0
  128. package/vectors/schema-profile/byte-limit.accepted.json +30 -0
  129. package/vectors/schema-profile/byte-limit.rejected.json +26 -0
  130. package/vectors/schema-profile/closed-object.accepted.json +38 -0
  131. package/vectors/schema-profile/decimal-multiple.accepted.json +54 -0
  132. package/vectors/schema-profile/depth-limit.accepted.json +90 -0
  133. package/vectors/schema-profile/depth-limit.rejected.json +88 -0
  134. package/vectors/schema-profile/description-limit.accepted.json +29 -0
  135. package/vectors/schema-profile/description-limit.rejected.json +25 -0
  136. package/vectors/schema-profile/diagnostic-precedence.rejected.json +26 -0
  137. package/vectors/schema-profile/duplicate-dependent-required.rejected.json +21 -0
  138. package/vectors/schema-profile/duplicate-required.rejected.json +18 -0
  139. package/vectors/schema-profile/empty-combinator.rejected.json +17 -0
  140. package/vectors/schema-profile/empty-enum.rejected.json +17 -0
  141. package/vectors/schema-profile/enum-limit.accepted.json +89 -0
  142. package/vectors/schema-profile/enum-limit.rejected.json +84 -0
  143. package/vectors/schema-profile/examples-limit.accepted.json +35 -0
  144. package/vectors/schema-profile/examples-limit.rejected.json +31 -0
  145. package/vectors/schema-profile/format-keyword.rejected.json +17 -0
  146. package/vectors/schema-profile/forward-reference-path-precedence.rejected.json +20 -0
  147. package/vectors/schema-profile/invalid-pointer.rejected.json +18 -0
  148. package/vectors/schema-profile/json-depth-limit.accepted.json +278 -0
  149. package/vectors/schema-profile/json-depth-limit.rejected.json +276 -0
  150. package/vectors/schema-profile/json-item-limit.accepted.json +686 -0
  151. package/vectors/schema-profile/json-item-limit.rejected.json +682 -0
  152. package/vectors/schema-profile/json-property-limit.accepted.json +1031 -0
  153. package/vectors/schema-profile/json-property-limit.rejected.json +1028 -0
  154. package/vectors/schema-profile/local-reference.accepted.json +28 -0
  155. package/vectors/schema-profile/memoized-diagnostic.accepted.json +31 -0
  156. package/vectors/schema-profile/node-limit.accepted.json +1097 -0
  157. package/vectors/schema-profile/node-limit.rejected.json +1094 -0
  158. package/vectors/schema-profile/non-object-root.rejected.json +9 -0
  159. package/vectors/schema-profile/non-schema-reference.rejected.json +21 -0
  160. package/vectors/schema-profile/object-key-limit.accepted.json +32 -0
  161. package/vectors/schema-profile/object-key-limit.rejected.json +28 -0
  162. package/vectors/schema-profile/open-root.rejected.json +13 -0
  163. package/vectors/schema-profile/percent-encoded-pointer.rejected.json +26 -0
  164. package/vectors/schema-profile/property-name-limit.accepted.json +543 -0
  165. package/vectors/schema-profile/property-name-limit.rejected.json +536 -0
  166. package/vectors/schema-profile/recursive-diagnostic-precedence.rejected.json +30 -0
  167. package/vectors/schema-profile/recursive-reference.rejected.json +24 -0
  168. package/vectors/schema-profile/reference-fanout.accepted.json +662 -0
  169. package/vectors/schema-profile/reference-length-limit.accepted.json +45 -0
  170. package/vectors/schema-profile/reference-length-limit.rejected.json +39 -0
  171. package/vectors/schema-profile/reference-limit.accepted.json +416 -0
  172. package/vectors/schema-profile/reference-limit.rejected.json +415 -0
  173. package/vectors/schema-profile/reference-vs-keyword-precedence.rejected.json +22 -0
  174. package/vectors/schema-profile/reserved-pointer.rejected.json +26 -0
  175. package/vectors/schema-profile/root-diagnostic-precedence.rejected.json +16 -0
  176. package/vectors/schema-profile/root-vs-reference-precedence.rejected.json +19 -0
  177. package/vectors/schema-profile/schema-map-limit.accepted.json +539 -0
  178. package/vectors/schema-profile/schema-map-limit.rejected.json +536 -0
  179. package/vectors/schema-profile/semantic-recursion-precedence.rejected.json +21 -0
  180. package/vectors/schema-profile/semantic-reference-precedence.rejected.json +21 -0
  181. package/vectors/schema-profile/title-limit.accepted.json +29 -0
  182. package/vectors/schema-profile/title-limit.rejected.json +25 -0
  183. package/vectors/schema-profile/unresolved-reference.rejected.json +17 -0
  184. package/vectors/schema-profile/unsafe-dependent-required.rejected.json +24 -0
  185. package/vectors/schema-profile/unsafe-member.rejected.json +17 -0
  186. package/vectors/schema-profile/unsafe-required.rejected.json +17 -0
  187. package/dist/host-testbed.js.map +0 -1
  188. package/dist/http-host-adapter.js.map +0 -1
  189. package/dist/index.js.map +0 -1
@@ -0,0 +1,28 @@
1
+ {
2
+ "schema": "authoring-save.schema.json",
3
+ "description": "A save plan must bind the exact host-minted return context that an accepted result will advance to.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "authoring-save-plan",
7
+ "id": "save-plans/missing-successor-context",
8
+ "revision": "save-plan-r1",
9
+ "sessionId": "sessions/missing-successor-context",
10
+ "outcome": "save-item",
11
+ "expected": {
12
+ "model": {
13
+ "id": "models/article",
14
+ "version": "1.0.0",
15
+ "revision": "model-r1"
16
+ },
17
+ "blueprint": {
18
+ "id": "blueprints/article",
19
+ "version": "1.0.0",
20
+ "revision": "blueprint-r1"
21
+ },
22
+ "entry": { "id": "entries/article", "revision": "entry-r1" }
23
+ },
24
+ "affectedArtifacts": ["entry"],
25
+ "consequences": [],
26
+ "confirmationRequired": false
27
+ }
28
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "schema": "authoring-save.schema.json",
3
+ "description": "A save request must echo the complete plan reference, including its planned successor return context.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "authoring-save-item-request",
7
+ "plan": { "id": "save-plans/entry-r8", "revision": "save-plan-r1" },
8
+ "acceptedConsequences": [],
9
+ "draft": {
10
+ "outcome": "save-item",
11
+ "entry": {
12
+ "contractVersion": "0.1-draft",
13
+ "kind": "entry",
14
+ "id": "entries/article",
15
+ "revision": "entry-r7",
16
+ "model": {
17
+ "id": "models/article",
18
+ "version": "1.0.0",
19
+ "revision": "model-r1"
20
+ },
21
+ "status": "draft",
22
+ "values": {}
23
+ }
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "schema": "authoring-session.schema.json",
3
+ "description": "A contextual session cannot claim coordinated hydration without a separately identified Entry document.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "authoring-session",
7
+ "sessionId": "sessions/incomplete"
8
+ }
9
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "schema": "authoring-target.schema.json",
3
+ "description": "A target cannot be resolved without a bounded host resource type inventory.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "authoring-target",
7
+ "id": "org.example.catalog/product-content",
8
+ "owner": {
9
+ "id": "org.example/catalog",
10
+ "version": "1.0.0"
11
+ },
12
+ "label": {
13
+ "key": "org.example.catalog/product-content"
14
+ },
15
+ "surface": "org.example.catalog/product-editor",
16
+ "eligibility": ["create", "edit"],
17
+ "modes": ["content"],
18
+ "startKinds": ["existing"],
19
+ "presentationStates": ["inline"],
20
+ "saveOutcomes": ["save-item"],
21
+ "requiredCapabilities": [],
22
+ "contributionDependencies": []
23
+ }
24
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "schema": "binding-projection-vector.schema.json",
3
+ "description": "A binding projection vector cannot invent a status a second host cannot reproduce.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "binding-projection-vector",
7
+ "id": "binding-projection/invalid-status",
8
+ "description": "Invalid status probe.",
9
+ "profile": "studio.profile/binding-projection-v1",
10
+ "blueprint": {
11
+ "contractVersion": "0.1-draft",
12
+ "kind": "blueprint",
13
+ "id": "studio.test/invalid-vector-blueprint",
14
+ "version": "1.0.0",
15
+ "revision": "blueprint-r1",
16
+ "owner": { "id": "studio.test/host", "version": "1.0.0" },
17
+ "status": "draft",
18
+ "label": { "key": "studio.test/blueprint", "defaultMessage": "Blueprint" },
19
+ "model": { "id": "studio.test/model", "version": "1.0.0", "revision": "model-r1" },
20
+ "dependencyLock": {
21
+ "theme": { "id": "studio.test/theme", "version": "1.0.0", "revision": "theme-r1" },
22
+ "blocks": []
23
+ },
24
+ "roots": []
25
+ },
26
+ "model": {
27
+ "contractVersion": "0.1-draft",
28
+ "kind": "content-model",
29
+ "id": "studio.test/model",
30
+ "version": "1.0.0",
31
+ "revision": "model-r1",
32
+ "owner": { "id": "studio.test/host", "version": "1.0.0" },
33
+ "status": "published",
34
+ "label": { "key": "studio.test/model", "defaultMessage": "Model" },
35
+ "fields": [
36
+ {
37
+ "id": "title",
38
+ "kind": "string",
39
+ "label": { "key": "studio.test/title", "defaultMessage": "Title" },
40
+ "required": false,
41
+ "localized": false,
42
+ "cardinality": "one"
43
+ }
44
+ ],
45
+ "relationships": []
46
+ },
47
+ "blockDefinitions": [
48
+ {
49
+ "contractVersion": "0.1-draft",
50
+ "kind": "block-definition",
51
+ "type": "studio.test/text",
52
+ "version": "1.0.0",
53
+ "revision": "block-r1",
54
+ "owner": { "id": "studio.test/host", "version": "1.0.0" },
55
+ "label": { "key": "studio.test/text", "defaultMessage": "Text" },
56
+ "category": "studio.category/content",
57
+ "propertySchema": { "type": "object", "additionalProperties": false },
58
+ "slots": [],
59
+ "ports": [],
60
+ "editingModes": ["blueprint"],
61
+ "themeControls": [],
62
+ "rendererRequirements": [
63
+ { "surface": "preview", "capability": "studio.renderer/test", "versions": "^1.0.0" }
64
+ ],
65
+ "accessibility": {
66
+ "category": "text",
67
+ "accessibleName": "not-applicable",
68
+ "keyboard": { "key": "studio.test/keyboard", "defaultMessage": "Use the outline." },
69
+ "reducedMotion": "not-applicable",
70
+ "outputChecks": ["studio.check/text"]
71
+ }
72
+ }
73
+ ],
74
+ "expect": {
75
+ "model": { "id": "studio.test/model", "version": "1.0.0", "revision": "model-r1" },
76
+ "nodes": [
77
+ {
78
+ "nodeId": "node-1",
79
+ "ports": [{ "port": "title", "status": "silently-repaired", "candidates": [] }]
80
+ }
81
+ ],
82
+ "diagnostics": []
83
+ }
84
+ }
85
+ }
@@ -5,7 +5,7 @@
5
5
  "contractVersion": "0.1-draft",
6
6
  "kind": "host-capabilities",
7
7
  "host": {
8
- "id": "org.kumwe/cms",
8
+ "id": "org.kumwe/app",
9
9
  "version": "3.0.0-alpha.1",
10
10
  "generation": "runtime-generation-42"
11
11
  },
@@ -0,0 +1,16 @@
1
+ {
2
+ "schema": "host-error.schema.json",
3
+ "description": "A retry delay is present only on a retryable rate-limit or unavailable failure.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "host-error",
7
+ "category": "rate-limited",
8
+ "correlationId": "requests/invalid-retry-delay",
9
+ "message": {
10
+ "key": "studio.host/rate-limited",
11
+ "defaultMessage": "The request is rate limited."
12
+ },
13
+ "retryable": false,
14
+ "retryAfterMilliseconds": 1000
15
+ }
16
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "schema": "host-error.schema.json",
3
+ "description": "A retry delay is present only on a rate-limit or unavailable failure.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "host-error",
7
+ "category": "forbidden",
8
+ "correlationId": "requests/invalid-retry-delay-category",
9
+ "message": {
10
+ "key": "studio.host/forbidden",
11
+ "defaultMessage": "The request is forbidden."
12
+ },
13
+ "retryable": true,
14
+ "retryAfterMilliseconds": 1000
15
+ }
16
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "schema": "host-error.schema.json",
3
+ "description": "A safe current revision is disclosed only for a conflict.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "host-error",
7
+ "category": "validation-failed",
8
+ "correlationId": "requests/invalid-revision",
9
+ "message": {
10
+ "key": "studio.host/validation-failed",
11
+ "defaultMessage": "The request failed validation."
12
+ },
13
+ "retryable": false,
14
+ "revision": "entry-r2"
15
+ }
16
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "schema": "host-sequence-vector.schema.json",
3
+ "description": "A pending invocation cannot declare a settled outcome before an explicit settle step.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "host-sequence-vector",
7
+ "id": "vector.host-sequence.invalid.pending-expectation",
8
+ "description": "Invalid pending sequence step.",
9
+ "profile": "studio.profile/host-baseline-v2",
10
+ "assertions": ["in-flight-preview-cancellation"],
11
+ "idempotencyPolicy": {
12
+ "scopeFields": ["idempotencyKey", "operationId", "resourceContextKey", "sessionGeneration"],
13
+ "argumentCanonicalization": "canonical-json",
14
+ "intentContextFields": ["expectedRevision", "locale", "protocolVersion"],
15
+ "absentOptionalFields": "omit",
16
+ "numberNormalization": "canonical-json",
17
+ "excludedContextFields": ["requestId", "traceContext"]
18
+ },
19
+ "given": { "artifacts": [], "permissions": [], "sessionGeneration": "session-r1" },
20
+ "steps": [
21
+ {
22
+ "action": "invoke",
23
+ "id": "render-pending",
24
+ "port": "preview",
25
+ "operation": "render",
26
+ "context": {
27
+ "operationId": "studio.operation/preview.render",
28
+ "protocolVersion": "0.1.0-draft.2",
29
+ "requestId": "requests/preview-render",
30
+ "resourceContextKey": "contexts/vector",
31
+ "sessionGeneration": "session-r1"
32
+ },
33
+ "argument": {
34
+ "artifactId": "vector.blueprint",
35
+ "draftDigest": "b03cc45a784d7cd4d2836e24694d42f9c8e2ee3dde3ceca79b0a147436db47c6",
36
+ "draftRevision": "vector-blueprint-r1",
37
+ "requestId": "renders/pending-invalid-1",
38
+ "viewport": "desktop"
39
+ },
40
+ "completion": "pending",
41
+ "expect": { "outcome": "result", "value": "rendered" }
42
+ },
43
+ {
44
+ "action": "settle",
45
+ "id": "render-settled",
46
+ "invocation": "render-pending",
47
+ "expect": { "outcome": "error", "category": "cancelled", "retryable": false }
48
+ }
49
+ ],
50
+ "expectFinal": { "pendingPreviewRenders": 0, "previewDeliveries": [] }
51
+ }
52
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "schema": "host-sequence-vector.schema.json",
3
+ "description": "A preview render invocation must carry the complete draft.2 render identity, including its session-unique request identifier.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "host-sequence-vector",
7
+ "id": "vector.host-sequence.invalid.preview-render-missing-request-id",
8
+ "description": "Invalid preview render identity.",
9
+ "profile": "studio.profile/host-baseline-v2",
10
+ "assertions": ["cross-context-cancellation-isolation"],
11
+ "idempotencyPolicy": {
12
+ "scopeFields": ["idempotencyKey", "operationId", "resourceContextKey", "sessionGeneration"],
13
+ "argumentCanonicalization": "canonical-json",
14
+ "intentContextFields": ["expectedRevision", "locale", "protocolVersion"],
15
+ "absentOptionalFields": "omit",
16
+ "numberNormalization": "canonical-json",
17
+ "excludedContextFields": ["requestId", "traceContext"]
18
+ },
19
+ "given": { "artifacts": [], "permissions": [], "sessionGeneration": "session-r1" },
20
+ "steps": [
21
+ {
22
+ "action": "invoke",
23
+ "id": "render-missing-request-id",
24
+ "port": "preview",
25
+ "operation": "render",
26
+ "context": {
27
+ "operationId": "studio.operation/preview.render",
28
+ "protocolVersion": "0.1.0-draft.2",
29
+ "requestId": "requests/preview-render",
30
+ "resourceContextKey": "contexts/vector",
31
+ "sessionGeneration": "session-r1"
32
+ },
33
+ "argument": {
34
+ "artifactId": "vector.blueprint",
35
+ "draftDigest": "b03cc45a784d7cd4d2836e24694d42f9c8e2ee3dde3ceca79b0a147436db47c6",
36
+ "draftRevision": "vector-blueprint-r1",
37
+ "viewport": "desktop"
38
+ },
39
+ "completion": "pending"
40
+ },
41
+ {
42
+ "action": "settle",
43
+ "id": "render-settled",
44
+ "invocation": "render-missing-request-id",
45
+ "expect": { "outcome": "error", "category": "invalid-request", "retryable": false }
46
+ }
47
+ ],
48
+ "expectFinal": { "pendingPreviewRenders": 0, "previewDeliveries": [] }
49
+ }
50
+ }
@@ -10,7 +10,7 @@
10
10
  "type": "studio.preview/activated",
11
11
  "payload": {
12
12
  "interaction": "hover",
13
- "marker": "node-1"
13
+ "marker": "studio.preview/node/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/0"
14
14
  }
15
15
  }
16
16
  }
@@ -0,0 +1,24 @@
1
+ {
2
+ "schema": "preview-message.schema.json",
3
+ "description": "A rendered marker inventory contains each canonical marker exactly once.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "preview-message",
7
+ "channelId": "preview-channel-1",
8
+ "sessionGeneration": "session-r1",
9
+ "sequence": 4,
10
+ "type": "studio.preview/rendered",
11
+ "payload": {
12
+ "draftDigest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
13
+ "markers": [
14
+ "studio.preview/node/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/0",
15
+ "studio.preview/node/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/0"
16
+ ],
17
+ "markerMap": {
18
+ "studio.preview/node/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/0": "node-1"
19
+ },
20
+ "requestId": "renders/1",
21
+ "diagnostics": []
22
+ }
23
+ }
24
+ }
@@ -12,6 +12,7 @@
12
12
  "artifactId": "org.example.blueprints/product-card",
13
13
  "draftDigest": "not-a-digest",
14
14
  "draftRevision": "product-card-r5-local-12",
15
+ "requestId": "renders/product-card-14",
15
16
  "viewport": "expanded"
16
17
  }
17
18
  }
@@ -0,0 +1,19 @@
1
+ {
2
+ "schema": "preview-message.schema.json",
3
+ "description": "A preview marker binds one canonical draft digest to a bounded zero-based preorder ordinal.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "preview-message",
7
+ "channelId": "preview-channel-1",
8
+ "sessionGeneration": "session-r1",
9
+ "sequence": 4,
10
+ "type": "studio.preview/rendered",
11
+ "payload": {
12
+ "draftDigest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
13
+ "markers": ["markers/m1"],
14
+ "markerMap": { "markers/m1": "node-1" },
15
+ "requestId": "renders/1",
16
+ "diagnostics": []
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "schema": "preview-message.schema.json",
3
+ "description": "A rendered response must carry an exact marker-to-node map for its complete marker inventory.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "preview-message",
7
+ "channelId": "preview-channel-1",
8
+ "sessionGeneration": "session-r1",
9
+ "sequence": 4,
10
+ "type": "studio.preview/rendered",
11
+ "payload": {
12
+ "draftDigest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
13
+ "markers": [
14
+ "studio.preview/node/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/0"
15
+ ],
16
+ "requestId": "renders/1",
17
+ "diagnostics": []
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "schema": "preview-message.schema.json",
3
+ "description": "Every render attempt has a session-unique request identifier for exact callback correlation.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "preview-message",
7
+ "channelId": "preview-channel-1",
8
+ "sessionGeneration": "session-r1",
9
+ "sequence": 4,
10
+ "type": "studio.preview/render",
11
+ "payload": {
12
+ "artifactId": "blueprints/example",
13
+ "draftDigest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
14
+ "draftRevision": "blueprint-r1",
15
+ "viewport": "expanded"
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "schema": "preview-message.schema.json",
3
+ "description": "The draft.2 preview vocabulary is closed; unknown message types require a negotiated protocol revision.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "preview-message",
7
+ "channelId": "preview-channel-1",
8
+ "sessionGeneration": "session-r1",
9
+ "sequence": 4,
10
+ "type": "org.example.preview/custom",
11
+ "payload": {}
12
+ }
13
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "schema": "preview-message.schema.json",
3
+ "description": "Explicit preview viewport width and height are each bounded to at least 240 CSS pixels.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "preview-message",
7
+ "channelId": "preview-channel-1",
8
+ "sessionGeneration": "session-r1",
9
+ "sequence": 3,
10
+ "type": "studio.preview/viewport",
11
+ "payload": { "height": 239 }
12
+ }
13
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "schema": "preview-message.schema.json",
3
+ "description": "Semantic viewport roles use the safe local-name grammar.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "preview-message",
7
+ "channelId": "preview-channel-1",
8
+ "sessionGeneration": "session-r1",
9
+ "sequence": 3,
10
+ "type": "studio.preview/viewport",
11
+ "payload": { "viewport": "constructor" }
12
+ }
13
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "schema": "reusable-content-type.schema.json",
3
+ "description": "A reusable content type coordinates Model and Blueprint revisions but never contains Entry values.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "reusable-content-type",
7
+ "id": "content-types/product-page",
8
+ "version": "1.0.0",
9
+ "revision": "product-page-type-r1",
10
+ "label": {
11
+ "key": "org.example.catalog/product-page-type"
12
+ },
13
+ "status": "published",
14
+ "model": {
15
+ "id": "org.example.models/product",
16
+ "version": "1.0.0",
17
+ "revision": "product-model-r1"
18
+ },
19
+ "blueprint": {
20
+ "id": "org.example.blueprints/product-card",
21
+ "version": "1.0.0",
22
+ "revision": "product-card-r5"
23
+ },
24
+ "authoringPolicy": {
25
+ "modes": ["content"],
26
+ "itemComposition": "denied"
27
+ },
28
+ "values": {
29
+ "name": "Must not cross this boundary"
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "schema": "studio-chart.schema.json",
3
+ "description": "Chart.js options and authored callbacks are not canonical Studio chart data.",
4
+ "value": {
5
+ "type": "bar",
6
+ "labels": ["Unsafe"],
7
+ "datasets": [{ "label": "Values", "values": [1] }],
8
+ "options": { "onClick": "alert(1)" }
9
+ }
10
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "schema": "studio-deployment.schema.json",
3
+ "description": "Serialized bearer authentication without required issuance and expiry metadata cannot represent a bounded lifetime.",
4
+ "value": {
5
+ "kind": "studio-deployment",
6
+ "mount": "#studio-page",
7
+ "release": {
8
+ "version": "0.1.0-beta.2",
9
+ "corpusManifestDigest": "sha256-HCQ5pF8NMk9nPOXfU6kVX/E8sjgJjHdyDQ86CTOjGi0="
10
+ },
11
+ "transport": {
12
+ "kind": "http",
13
+ "routing": {
14
+ "kind": "single-endpoint",
15
+ "endpoint": "/api/studio"
16
+ },
17
+ "authentication": {
18
+ "kind": "bearer-token",
19
+ "credentials": "omit",
20
+ "token": "<bearer-token>"
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "schema": "studio-deployment.schema.json",
3
+ "description": "An emitted deployment must identify its kind, exact mount, and browser archive release.",
4
+ "value": {}
5
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "schema": "studio-deployment.schema.json",
3
+ "description": "Deployment configuration is closed and rejects inferred backend configuration.",
4
+ "value": {
5
+ "kind": "studio-deployment",
6
+ "mount": "#studio-page",
7
+ "release": {
8
+ "version": "0.1.0-beta.2",
9
+ "corpusManifestDigest": "sha256-HCQ5pF8NMk9nPOXfU6kVX/E8sjgJjHdyDQ86CTOjGi0="
10
+ },
11
+ "backend": {
12
+ "url": "/api/studio"
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "schema": "studio-drawing.schema.json",
3
+ "description": "Drawing colors cannot carry CSS URLs or executable SVG payloads.",
4
+ "value": {
5
+ "width": 100,
6
+ "height": 100,
7
+ "alt": "Unsafe drawing",
8
+ "strokes": [{ "color": "url(javascript:alert(1))", "width": 2, "points": [{ "x": 1, "y": 1 }] }]
9
+ }
10
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "schema": "studio-money.schema.json",
3
+ "description": "Persisted money must use an exact decimal string rather than a binary float.",
4
+ "value": {
5
+ "amount": 19.99,
6
+ "currency": "USD"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "schema": "studio-presentation.schema.json",
3
+ "description": "Presentation intent rejects arbitrary CSS and selectors.",
4
+ "value": {
5
+ "position": "fixed;inset:0",
6
+ "style": "background:url(javascript:alert(1))"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "schema": "studio-table.schema.json",
3
+ "description": "Table data rejects cell objects carrying executable markup.",
4
+ "value": {
5
+ "columns": ["Name"],
6
+ "rows": [[{ "html": "<img src=x onerror=alert(1)>" }]]
7
+ }
8
+ }