semiotic 3.9.2 → 3.10.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.
Files changed (452) hide show
  1. package/README.md +99 -74
  2. package/agent-skill/semiotic-charts/SKILL.md +13 -7
  3. package/ai/artifact-contract-reference.md +408 -0
  4. package/ai/artifact-surface-inventory.json +5586 -0
  5. package/ai/behaviorContracts.cjs +24 -2
  6. package/ai/cli.js +480 -56
  7. package/ai/dist/mcp-server.js +68 -68
  8. package/ai/examples.md +1 -1
  9. package/ai/reference.md +31 -14
  10. package/ai/schema.json +1868 -438
  11. package/ai/surface-manifest.json +11 -4
  12. package/ai/system-prompt.md +2 -0
  13. package/ai/task-packets/compare-category-totals.json +301 -0
  14. package/ai/task-packets/compare-category-totals.md +188 -0
  15. package/ai/task-packets/correct-published-chart.json +271 -0
  16. package/ai/task-packets/correct-published-chart.md +597 -0
  17. package/ai/task-packets/index.json +40 -0
  18. package/ai/task-packets/update-live-chart.json +289 -0
  19. package/ai/task-packets/update-live-chart.md +424 -0
  20. package/dist/c-2N7IU2NY.min.js +1 -0
  21. package/dist/c-2WK7YJLL.min.js +1 -0
  22. package/dist/c-33QOXEUG.min.js +1 -0
  23. package/dist/c-42PLDTX7.min.js +1 -0
  24. package/dist/c-447VIMRO.min.js +1 -0
  25. package/dist/c-4FN7Q6VQ.min.js +1 -0
  26. package/dist/c-553QUDKA.min.js +1 -0
  27. package/dist/c-55BAJ333.min.js +1 -0
  28. package/dist/c-7242NXSG.min.js +1 -0
  29. package/dist/c-7EGHJU2F.min.js +1 -0
  30. package/dist/c-7HP7MB2I.min.js +1 -0
  31. package/dist/c-7NBU5ZKS.min.js +1 -0
  32. package/dist/c-AFBSWT77.min.js +1 -0
  33. package/dist/c-AJ7EC32V.min.js +1 -0
  34. package/dist/c-AQADQNY7.min.js +1 -0
  35. package/dist/c-ATM475SA.min.js +1 -0
  36. package/dist/c-AVO3Q7T7.min.js +1 -0
  37. package/dist/c-AZKPVBOC.min.js +1 -0
  38. package/dist/c-BNFJMDHN.min.js +1 -0
  39. package/dist/c-BNG5ECK5.min.js +1 -0
  40. package/dist/c-BOHCQILI.min.js +1 -0
  41. package/dist/c-CCTGN5CK.min.js +1 -0
  42. package/dist/c-CPSPZH6A.min.js +1 -0
  43. package/dist/c-CPV4N35K.min.js +1 -0
  44. package/dist/c-D6HAAPTX.min.js +1 -0
  45. package/dist/c-DE5Q3U2X.min.js +1 -0
  46. package/dist/c-DK662R77.min.js +1 -0
  47. package/dist/c-DY2676CR.min.js +1 -0
  48. package/dist/c-E32M6XW5.min.js +1 -0
  49. package/dist/c-E4JDJH4I.min.js +1 -0
  50. package/dist/c-E7I2L7CU.min.js +1 -0
  51. package/dist/c-EBOQ7ER7.min.js +1 -0
  52. package/dist/c-ELDWAO2V.min.js +1 -0
  53. package/dist/c-EUBTECGM.min.js +1 -0
  54. package/dist/c-GNTXRXRN.min.js +1 -0
  55. package/dist/c-GSZRZRD6.min.js +1 -0
  56. package/dist/c-GWX7JGMF.min.js +1 -0
  57. package/dist/c-GXV3C3MO.min.js +1 -0
  58. package/dist/c-HHTK2R75.min.js +1 -0
  59. package/dist/c-HLLFJYTY.min.js +1 -0
  60. package/dist/c-HPOYKCCG.min.js +1 -0
  61. package/dist/c-HXDKPIKR.min.js +1 -0
  62. package/dist/c-I4QJ6YLM.min.js +1 -0
  63. package/dist/c-IDJV3CZK.min.js +1 -0
  64. package/dist/c-ITKX3RC5.min.js +1 -0
  65. package/dist/c-JG2JCQLP.min.js +1 -0
  66. package/dist/c-JLGRHXGZ.min.js +1 -0
  67. package/dist/c-JO2UGTCP.min.js +1 -0
  68. package/dist/c-JUKIWTBJ.min.js +1 -0
  69. package/dist/c-KCRJGUHP.min.js +1 -0
  70. package/dist/c-LMGSSD2E.min.js +1 -0
  71. package/dist/c-LYQMZMZQ.min.js +1 -0
  72. package/dist/c-LYVKDBQJ.min.js +1 -0
  73. package/dist/c-MVR3RWF3.min.js +1 -0
  74. package/dist/c-MXCP7GNZ.min.js +1 -0
  75. package/dist/c-NG7BLZTR.min.js +1 -0
  76. package/dist/c-NYZ2QNAM.min.js +1 -0
  77. package/dist/c-OO5QLMJC.min.js +1 -0
  78. package/dist/c-OOVX2JPQ.min.js +1 -0
  79. package/dist/c-ORLEBW72.min.js +1 -0
  80. package/dist/c-P65V6HLO.min.js +1 -0
  81. package/dist/c-PP6VY3QU.min.js +1 -0
  82. package/dist/c-PRIKOLTE.min.js +1 -0
  83. package/dist/c-PSNI6KAZ.min.js +1 -0
  84. package/dist/c-PYNW54D2.min.js +1 -0
  85. package/dist/c-QA3HMQJP.min.js +1 -0
  86. package/dist/c-ROEHCIGV.min.js +1 -0
  87. package/dist/c-S3AZX5PP.min.js +1 -0
  88. package/dist/c-T2V7O2LO.min.js +1 -0
  89. package/dist/c-TIXX5CAU.min.js +1 -0
  90. package/dist/c-TKG2NP7G.min.js +1 -0
  91. package/dist/c-VJTDST2R.min.js +1 -0
  92. package/dist/c-VXLOLYTO.min.js +1 -0
  93. package/dist/c-W4ZUKSEQ.min.js +1 -0
  94. package/dist/c-WH2O53VI.min.js +1 -0
  95. package/dist/c-WNGH47HF.min.js +1 -0
  96. package/dist/c-WUWXGQYA.min.js +1 -0
  97. package/dist/c-XDQKXPX4.min.js +1 -0
  98. package/dist/{c-CKLIFCGN.min.js → c-XSB27XPS.min.js} +1 -1
  99. package/dist/c-YDECTEUW.min.js +1 -0
  100. package/dist/c-YF3YKVQI.min.js +1 -0
  101. package/dist/c-YLZIV3VS.min.js +1 -0
  102. package/dist/c-ZYPXQF7B.min.js +1 -0
  103. package/dist/components/Annotation.d.ts +2 -1
  104. package/dist/components/ai/chartRecipeRegistry.d.ts +6 -1
  105. package/dist/components/ai/chartRecipes.d.ts +4 -0
  106. package/dist/components/ai/describePhysicsProjection.d.ts +18 -0
  107. package/dist/components/ai/describePhysicsSource.d.ts +13 -0
  108. package/dist/components/artifact/ArtifactInspector.d.ts +26 -0
  109. package/dist/components/artifact/ArtifactInspectorContextSections.d.ts +18 -0
  110. package/dist/components/artifact/artifactContractDiff.d.ts +8 -0
  111. package/dist/components/artifact/artifactInspectorSummary.d.ts +53 -0
  112. package/dist/components/artifact/artifactRevision.d.ts +54 -0
  113. package/dist/components/artifact/artifactTestFixtures.d.ts +17 -0
  114. package/dist/components/artifact/attachmentAudit.d.ts +13 -0
  115. package/dist/components/artifact/claimCorrections.d.ts +3 -0
  116. package/dist/components/artifact/claimGraph.d.ts +5 -0
  117. package/dist/components/artifact/claimLifecycle.d.ts +32 -0
  118. package/dist/components/artifact/claims.d.ts +24 -0
  119. package/dist/components/artifact/collection.d.ts +10 -0
  120. package/dist/components/artifact/collectionCorrectionScope.d.ts +4 -0
  121. package/dist/components/artifact/collectionImpact.d.ts +11 -0
  122. package/dist/components/artifact/collectionLineage.d.ts +3 -0
  123. package/dist/components/artifact/collectionOperations.d.ts +8 -0
  124. package/dist/components/artifact/collectionPolicy.d.ts +22 -0
  125. package/dist/components/artifact/collectionTypes.d.ts +117 -0
  126. package/dist/components/artifact/configurationRepair.d.ts +8 -0
  127. package/dist/components/artifact/contract.d.ts +30 -0
  128. package/dist/components/artifact/evaluateArtifact.d.ts +12 -0
  129. package/dist/components/artifact/evaluateArtifactTypes.d.ts +78 -0
  130. package/dist/components/artifact/evaluationPresentation.d.ts +9 -0
  131. package/dist/components/artifact/evidenceSample.d.ts +8 -0
  132. package/dist/components/artifact/exportPaths.d.ts +8 -0
  133. package/dist/components/artifact/fieldPolicies.d.ts +12 -0
  134. package/dist/components/artifact/fingerprint.d.ts +36 -0
  135. package/dist/components/artifact/grounding.d.ts +51 -0
  136. package/dist/components/artifact/groundingBudget.d.ts +38 -0
  137. package/dist/components/artifact/hostTransfer.d.ts +13 -0
  138. package/dist/components/artifact/identity.d.ts +19 -0
  139. package/dist/components/artifact/inheritance.d.ts +48 -0
  140. package/dist/components/artifact/inheritanceIntegrity.d.ts +3 -0
  141. package/dist/components/artifact/jsonCompatibility.d.ts +2 -0
  142. package/dist/components/artifact/obligations.d.ts +3 -0
  143. package/dist/components/artifact/policies.d.ts +45 -0
  144. package/dist/components/artifact/policyRelations.d.ts +3 -0
  145. package/dist/components/artifact/recordProjection.d.ts +7 -0
  146. package/dist/components/artifact/representation.d.ts +50 -0
  147. package/dist/components/artifact/serialization.d.ts +40 -0
  148. package/dist/components/artifact/temporal.d.ts +32 -0
  149. package/dist/components/artifact/temporalAdapters.d.ts +75 -0
  150. package/dist/components/artifact/temporalAuditHelpers.d.ts +12 -0
  151. package/dist/components/artifact/temporalPresentation.d.ts +8 -0
  152. package/dist/components/artifact/types.d.ts +341 -0
  153. package/dist/components/artifact/validation.d.ts +13 -0
  154. package/dist/components/artifact/validationFieldStatus.d.ts +7 -0
  155. package/dist/components/artifact/validationPrimitives.d.ts +24 -0
  156. package/dist/components/artifact/validationSurfaces.d.ts +7 -0
  157. package/dist/components/artifact/validationTemporal.d.ts +3 -0
  158. package/dist/components/charts/geo/FlowMap.d.ts +7 -0
  159. package/dist/components/charts/geo/flowMapLineStyle.d.ts +18 -0
  160. package/dist/components/charts/ordinal/DonutChart.d.ts +2 -0
  161. package/dist/components/charts/ordinal/FunnelChart.d.ts +2 -0
  162. package/dist/components/charts/ordinal/GroupedBarChart.d.ts +6 -0
  163. package/dist/components/charts/ordinal/PieChart.d.ts +2 -0
  164. package/dist/components/charts/ordinal/RadarChart.d.ts +2 -0
  165. package/dist/components/charts/ordinal/StackedBarChart.d.ts +6 -0
  166. package/dist/components/charts/physics/CollisionSwarmChart.d.ts +1 -1
  167. package/dist/components/charts/physics/EventDropChart.d.ts +3 -1
  168. package/dist/components/charts/physics/GaltonBoardChart.d.ts +4 -2
  169. package/dist/components/charts/physics/ProcessFlowChart.d.ts +6 -0
  170. package/dist/components/charts/physics/UnitPileChart.d.ts +2 -1
  171. package/dist/components/charts/physics/collisionSwarmPacking.d.ts +14 -0
  172. package/dist/components/charts/physics/collisionSwarmPhysics.d.ts +1 -0
  173. package/dist/components/charts/physics/eventDropAdmission.d.ts +32 -0
  174. package/dist/components/charts/physics/eventDropPhysics.d.ts +22 -1
  175. package/dist/components/charts/physics/galtonBoardPhysics.d.ts +2 -9
  176. package/dist/components/charts/physics/physicsChartReconcile.d.ts +4 -0
  177. package/dist/components/charts/physics/physicsChartUtils.d.ts +1 -1
  178. package/dist/components/charts/physics/physicsGaltonData.d.ts +10 -0
  179. package/dist/components/charts/physics/physicsHocHandle.d.ts +2 -0
  180. package/dist/components/charts/physics/physicsPileData.d.ts +11 -0
  181. package/dist/components/charts/physics/physicsPilePhysics.d.ts +5 -12
  182. package/dist/components/charts/physics/physicsProjectionOverlays.d.ts +1 -1
  183. package/dist/components/charts/physics/physicsSourceRows.d.ts +8 -0
  184. package/dist/components/charts/physics/usePhysicsChartData.d.ts +19 -0
  185. package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +4 -0
  186. package/dist/components/charts/realtime/RealtimeHistogram.d.ts +14 -6
  187. package/dist/components/charts/realtime/RealtimeLineChart.d.ts +4 -0
  188. package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +4 -0
  189. package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +4 -0
  190. package/dist/components/charts/realtime/realtimeAccessors.d.ts +4 -0
  191. package/dist/components/charts/realtime/realtimeChartRuntime.d.ts +8 -7
  192. package/dist/components/charts/realtime/realtimeChartTypes.d.ts +7 -0
  193. package/dist/components/charts/realtime/temporalHistogramConfig.d.ts +17 -11
  194. package/dist/components/charts/shared/GaugeReadout.d.ts +9 -0
  195. package/dist/components/charts/shared/ThresholdAnnotation.d.ts +18 -0
  196. package/dist/components/charts/shared/ThresholdEndCap.d.ts +7 -0
  197. package/dist/components/charts/shared/auditAccessibilityText.d.ts +4 -2
  198. package/dist/components/charts/shared/numericTickFormatter.d.ts +2 -0
  199. package/dist/components/charts/shared/radialCenterContent.d.ts +10 -0
  200. package/dist/components/charts/shared/tooltipUtils.d.ts +1 -1
  201. package/dist/components/charts/shared/useChartLegend.d.ts +4 -0
  202. package/dist/components/charts/shared/useXYPointStyle.d.ts +2 -0
  203. package/dist/components/charts/xy/BubbleChart.d.ts +7 -0
  204. package/dist/components/charts/xy/CandlestickChart.d.ts +7 -0
  205. package/dist/components/charts/xy/DifferenceChart.d.ts +7 -0
  206. package/dist/components/charts/xy/MinimapChart.d.ts +7 -0
  207. package/dist/components/charts/xy/MultiAxisLineChart.d.ts +7 -0
  208. package/dist/components/charts/xy/ScatterplotMatrix.d.ts +6 -0
  209. package/dist/components/charts/xy/WaterfallChart.d.ts +8 -0
  210. package/dist/components/charts/xy/differenceMarkStyle.d.ts +28 -0
  211. package/dist/components/charts/xy/multiAxisFields.d.ts +23 -0
  212. package/dist/components/charts/xy/scatterplotMatrixCells.d.ts +50 -0
  213. package/dist/components/evidence/chartEvidenceEnvelope.d.ts +16 -8
  214. package/dist/components/evidence/evidenceEnvelopeInput.d.ts +8 -0
  215. package/dist/components/evidence/evidenceEnvelopeValidation.d.ts +11 -0
  216. package/dist/components/evidence/evidenceGate.d.ts +3 -1
  217. package/dist/components/evidence/renderedSceneHash.d.ts +23 -0
  218. package/dist/components/evidence/stableJsonHash.d.ts +4 -0
  219. package/dist/components/export/chartConfig.d.ts +40 -5
  220. package/dist/components/export/chartConfigArtifact.d.ts +6 -0
  221. package/dist/components/legendLayout.d.ts +18 -0
  222. package/dist/components/legendStyles.d.ts +4 -0
  223. package/dist/components/recipes/firstAvailableTrack.d.ts +17 -0
  224. package/dist/components/recipes/intervals.d.ts +1 -1
  225. package/dist/components/semiotic-ai-core.d.ts +33 -22
  226. package/dist/components/semiotic-ai.d.ts +15 -3
  227. package/dist/components/semiotic-artifact-react.d.ts +10 -0
  228. package/dist/components/semiotic-artifact.d.ts +23 -0
  229. package/dist/components/semiotic-experimental.d.ts +1 -1
  230. package/dist/components/semiotic-physics.d.ts +4 -4
  231. package/dist/components/semiotic-text.d.ts +2 -0
  232. package/dist/components/semiotic-utils-core.d.ts +18 -18
  233. package/dist/components/semiotic.d.ts +3 -3
  234. package/dist/components/server/renderEvidence.d.ts +12 -0
  235. package/dist/components/server/renderToStaticSVG.d.ts +3 -0
  236. package/dist/components/server/staticSVGChrome.d.ts +1 -4
  237. package/dist/components/server/staticXYAxisTicks.d.ts +2 -38
  238. package/dist/components/server/staticXYGrid.d.ts +1 -1
  239. package/dist/components/server/svgSizing.d.ts +6 -0
  240. package/dist/components/shared/svgRoot.d.ts +17 -0
  241. package/dist/components/store/selectionProvenance.d.ts +6 -0
  242. package/dist/components/stream/GeoSVGOverlay.d.ts +4 -0
  243. package/dist/components/stream/NetworkSVGOverlay.d.ts +4 -0
  244. package/dist/components/stream/OrdinalSVGOverlay.d.ts +4 -0
  245. package/dist/components/stream/SVGOverlay.d.ts +4 -0
  246. package/dist/components/stream/SceneToSVG.d.ts +4 -19
  247. package/dist/components/stream/SceneToSVGXY.d.ts +13 -0
  248. package/dist/components/stream/StreamGeoFrame.d.ts +1 -2
  249. package/dist/components/stream/StreamOrdinalFrame.d.ts +1 -2
  250. package/dist/components/stream/XYGrid.d.ts +11 -0
  251. package/dist/components/stream/axisTickUtils.d.ts +0 -1
  252. package/dist/components/stream/hitTestUtils.d.ts +2 -0
  253. package/dist/components/stream/overlayAccessibleText.d.ts +18 -0
  254. package/dist/components/stream/physics/PhysicsControllers.d.ts +1 -1
  255. package/dist/components/stream/physics/PhysicsKernel.d.ts +9 -0
  256. package/dist/components/stream/physics/PhysicsPipelineStore.d.ts +5 -4
  257. package/dist/components/stream/physics/PhysicsPipelineTypes.d.ts +9 -0
  258. package/dist/components/stream/physics/StreamPhysicsTypes.d.ts +3 -0
  259. package/dist/components/stream/physics/physicsCanvasCoordinates.d.ts +5 -0
  260. package/dist/components/stream/physics/physicsFixedPosition.d.ts +16 -0
  261. package/dist/components/stream/physics/physicsKernelCloning.d.ts +6 -0
  262. package/dist/components/stream/physics/physicsPipelineObservations.d.ts +2 -0
  263. package/dist/components/stream/physics/physicsPipelineSettle.d.ts +15 -9
  264. package/dist/components/stream/physics/physicsRegionRuntime.d.ts +8 -17
  265. package/dist/components/stream/physics/physicsSemanticUI.d.ts +9 -0
  266. package/dist/components/stream/pipelineConfig.d.ts +4 -0
  267. package/dist/components/stream/pipelineStoreUpdateResults.d.ts +1 -1
  268. package/dist/components/stream/resolveXYAxes.d.ts +13 -0
  269. package/dist/components/stream/sceneToSVGShared.d.ts +2 -1
  270. package/dist/components/stream/seriesGeometry.d.ts +13 -0
  271. package/dist/components/stream/streamEncodingTypes.d.ts +53 -0
  272. package/dist/components/stream/types.d.ts +4 -53
  273. package/dist/components/stream/useGeoFrameHandle.d.ts +16 -0
  274. package/dist/components/stream/useOrdinalFrameHandle.d.ts +15 -0
  275. package/dist/components/stream/useXYFrameHandle.d.ts +15 -0
  276. package/dist/components/stream/xyAxisTicks.d.ts +25 -0
  277. package/dist/components/stream/xyDateTicks.d.ts +3 -2
  278. package/dist/components/stream/xyFrameAxisTypes.d.ts +2 -0
  279. package/dist/components/stream/xySceneBuilders/ribbonScene.d.ts +1 -1
  280. package/dist/components/stream/xySceneBuilders/types.d.ts +1 -0
  281. package/dist/components/text/annotationTextLayout.d.ts +28 -0
  282. package/dist/components/text/pretextAnnotationLayout.d.ts +29 -0
  283. package/dist/components/text/usePretextAnnotations.d.ts +12 -0
  284. package/dist/controls.module.min.js +1 -1
  285. package/dist/geo.min.js +1 -1
  286. package/dist/geo.module.min.js +1 -1
  287. package/dist/network.module.min.js +1 -1
  288. package/dist/ordinal.module.min.js +1 -1
  289. package/dist/physics-matter.min.js +1 -1
  290. package/dist/physics-matter.module.min.js +1 -1
  291. package/dist/physics-rapier.min.js +1 -1
  292. package/dist/physics-rapier.module.min.js +1 -1
  293. package/dist/physics.module.min.js +1 -1
  294. package/dist/physicsWorker.js +1 -1
  295. package/dist/processSankeyLayoutWorker.js +1 -1
  296. package/dist/rough.min.js +1 -1
  297. package/dist/rough.module.min.js +1 -1
  298. package/dist/semiotic-access.module.min.js +1 -1
  299. package/dist/semiotic-ai-artifact-policy-constants.module.min.js +2 -0
  300. package/dist/semiotic-ai-core.d.ts +33 -22
  301. package/dist/semiotic-ai-core.min.js +1 -1
  302. package/dist/semiotic-ai-core.module.min.js +1 -1
  303. package/dist/semiotic-ai-hash-primitives.module.min.js +2 -0
  304. package/dist/semiotic-ai.d.ts +15 -3
  305. package/dist/semiotic-ai.module.min.js +1 -1
  306. package/dist/semiotic-artifact-react.d.ts +10 -0
  307. package/dist/semiotic-artifact-react.min.js +2 -0
  308. package/dist/semiotic-artifact-react.module.min.js +2 -0
  309. package/dist/semiotic-artifact.d.ts +23 -0
  310. package/dist/semiotic-artifact.min.js +1 -0
  311. package/dist/semiotic-artifact.module.min.js +1 -0
  312. package/dist/semiotic-client-cjs-shared.min.js +1 -1
  313. package/dist/semiotic-client-glyph.module.min.js +1 -1
  314. package/dist/semiotic-client-responsive.module.min.js +1 -1
  315. package/dist/semiotic-client-shared.module.min.js +1 -1
  316. package/dist/semiotic-custom-layout-selection-cjs-shared.min.js +1 -1
  317. package/dist/semiotic-data.min.js +1 -1
  318. package/dist/semiotic-data.module.min.js +1 -1
  319. package/dist/semiotic-evidence.min.js +1 -1
  320. package/dist/semiotic-evidence.module.min.js +1 -1
  321. package/dist/semiotic-experimental-auxiliary.module.min.js +1 -1
  322. package/dist/semiotic-experimental-node-auxiliary.module.min.js +1 -1
  323. package/dist/semiotic-experimental-react-shared.module.min.js +1 -1
  324. package/dist/semiotic-experimental-vacp.min.js +1 -1
  325. package/dist/semiotic-experimental-vacp.module.min.js +1 -1
  326. package/dist/semiotic-experimental.d.ts +1 -1
  327. package/dist/semiotic-line.module.min.js +1 -1
  328. package/dist/semiotic-physics.d.ts +4 -4
  329. package/dist/semiotic-realtime-core.module.min.js +1 -1
  330. package/dist/semiotic-realtime-react.module.min.js +1 -1
  331. package/dist/semiotic-recipes-core-cjs-base.min.js +1 -1
  332. package/dist/semiotic-recipes-core.module.min.js +1 -1
  333. package/dist/semiotic-recipes-geo-cjs.min.js +1 -1
  334. package/dist/semiotic-recipes-react.min.js +1 -1
  335. package/dist/semiotic-server-edge-node.module.min.js +1 -1
  336. package/dist/semiotic-server-edge.min.js +1 -1
  337. package/dist/semiotic-server-edge.module.min.js +1 -1
  338. package/dist/semiotic-server-node.min.js +1 -1
  339. package/dist/semiotic-server-node.module.min.js +1 -1
  340. package/dist/semiotic-text.d.ts +2 -0
  341. package/dist/semiotic-text.min.js +2 -0
  342. package/dist/semiotic-text.module.min.js +2 -0
  343. package/dist/semiotic-themes-core.min.js +1 -1
  344. package/dist/semiotic-themes-core.module.min.js +1 -1
  345. package/dist/semiotic-themes.min.js +1 -1
  346. package/dist/semiotic-themes.module.min.js +1 -1
  347. package/dist/semiotic-utils-core.d.ts +18 -18
  348. package/dist/semiotic-utils-core.min.js +1 -1
  349. package/dist/semiotic-utils-core.module.min.js +1 -1
  350. package/dist/semiotic-value.module.min.js +1 -1
  351. package/dist/semiotic.d.ts +3 -3
  352. package/dist/semiotic.module.min.js +1 -1
  353. package/dist/server.min.js +1 -1
  354. package/dist/server.module.min.js +1 -1
  355. package/dist/xy.module.min.js +1 -1
  356. package/package.json +55 -14
  357. package/spec/README.md +8 -3
  358. package/spec/v0.1/artifact-contract.schema.json +2299 -0
  359. package/spec/v0.1/examples/artifact-contract-full.json +369 -0
  360. package/spec/v0.1/examples/artifact-contract-unknown-state.json +46 -0
  361. package/dist/c-3BLJEQNG.min.js +0 -1
  362. package/dist/c-3SCUN5HI.min.js +0 -1
  363. package/dist/c-3VVKFA4M.min.js +0 -1
  364. package/dist/c-43TJZS3F.min.js +0 -1
  365. package/dist/c-4DTZPSUD.min.js +0 -1
  366. package/dist/c-4ES5367Y.min.js +0 -1
  367. package/dist/c-52TEGIUJ.min.js +0 -1
  368. package/dist/c-54IRWOGM.min.js +0 -1
  369. package/dist/c-5D2S4RMI.min.js +0 -1
  370. package/dist/c-5JWCTX3G.min.js +0 -1
  371. package/dist/c-6CMMSN6N.min.js +0 -1
  372. package/dist/c-6HRB2L7H.min.js +0 -1
  373. package/dist/c-6O5EVOPH.min.js +0 -1
  374. package/dist/c-7W4SV36A.min.js +0 -1
  375. package/dist/c-A4WRGZFX.min.js +0 -1
  376. package/dist/c-AG7WWVIH.min.js +0 -1
  377. package/dist/c-AH6J4MTN.min.js +0 -1
  378. package/dist/c-AKAF6JAD.min.js +0 -1
  379. package/dist/c-ALYR5LKK.min.js +0 -1
  380. package/dist/c-BBKITSXB.min.js +0 -1
  381. package/dist/c-BYDPC44I.min.js +0 -1
  382. package/dist/c-CFFIU2MW.min.js +0 -1
  383. package/dist/c-CGNHBHCE.min.js +0 -1
  384. package/dist/c-CJYSXIFV.min.js +0 -1
  385. package/dist/c-CZF7MV67.min.js +0 -1
  386. package/dist/c-D53OKBSY.min.js +0 -1
  387. package/dist/c-DADXPJXV.min.js +0 -1
  388. package/dist/c-DBQ2V7CH.min.js +0 -1
  389. package/dist/c-DPMVAUAW.min.js +0 -1
  390. package/dist/c-ECJCKLYY.min.js +0 -1
  391. package/dist/c-EGATGOWJ.min.js +0 -1
  392. package/dist/c-EGR6VYBW.min.js +0 -1
  393. package/dist/c-ESNR43AN.min.js +0 -1
  394. package/dist/c-F3LIKINL.min.js +0 -1
  395. package/dist/c-F5ZB5GJ6.min.js +0 -1
  396. package/dist/c-G36WS6LN.min.js +0 -1
  397. package/dist/c-G3VYMHKE.min.js +0 -1
  398. package/dist/c-GGISSW5E.min.js +0 -1
  399. package/dist/c-GR6MOEQC.min.js +0 -1
  400. package/dist/c-GSVCN34B.min.js +0 -1
  401. package/dist/c-GYOQCEFP.min.js +0 -1
  402. package/dist/c-H3DNMTCC.min.js +0 -1
  403. package/dist/c-I6J3FEZE.min.js +0 -1
  404. package/dist/c-IGH6MGJ5.min.js +0 -1
  405. package/dist/c-II2EEAJN.min.js +0 -1
  406. package/dist/c-IUHFPMHD.min.js +0 -1
  407. package/dist/c-J6M4JHRS.min.js +0 -1
  408. package/dist/c-JM3MGLQV.min.js +0 -1
  409. package/dist/c-KM3N7F7R.min.js +0 -1
  410. package/dist/c-LF5BZFNC.min.js +0 -1
  411. package/dist/c-LKBSGFQC.min.js +0 -1
  412. package/dist/c-MNF2S4AA.min.js +0 -1
  413. package/dist/c-MT3WBK7M.min.js +0 -1
  414. package/dist/c-NDJADPIF.min.js +0 -1
  415. package/dist/c-NVPQCIL5.min.js +0 -1
  416. package/dist/c-NY3JWV2K.min.js +0 -1
  417. package/dist/c-OFWJBEE5.min.js +0 -1
  418. package/dist/c-OYFHP5F5.min.js +0 -1
  419. package/dist/c-PGKQGGQ2.min.js +0 -1
  420. package/dist/c-PPWDL5ZI.min.js +0 -1
  421. package/dist/c-Q2IPZ3MU.min.js +0 -1
  422. package/dist/c-QKHMBE2E.min.js +0 -1
  423. package/dist/c-QMVM3AY6.min.js +0 -1
  424. package/dist/c-QSGWX53A.min.js +0 -1
  425. package/dist/c-RJKEKZOO.min.js +0 -1
  426. package/dist/c-RSVIHIQ4.min.js +0 -1
  427. package/dist/c-S6U5CGT5.min.js +0 -1
  428. package/dist/c-SFDIIU5G.min.js +0 -1
  429. package/dist/c-SLGMUBUL.min.js +0 -1
  430. package/dist/c-SRTBCRVE.min.js +0 -1
  431. package/dist/c-T6UAIKBH.min.js +0 -1
  432. package/dist/c-TMCTEVVW.min.js +0 -1
  433. package/dist/c-TMOSJLT3.min.js +0 -1
  434. package/dist/c-TZW3JGJ5.min.js +0 -1
  435. package/dist/c-U6ESPM7V.min.js +0 -1
  436. package/dist/c-UC5PTTFI.min.js +0 -1
  437. package/dist/c-USFMFKIH.min.js +0 -1
  438. package/dist/c-VGKUEZBC.min.js +0 -1
  439. package/dist/c-VGW3VG3I.min.js +0 -1
  440. package/dist/c-VN2HG5BS.min.js +0 -1
  441. package/dist/c-VPZDY5Q4.min.js +0 -1
  442. package/dist/c-VRXUB2F2.min.js +0 -1
  443. package/dist/c-VUBQNQJH.min.js +0 -1
  444. package/dist/c-VUH4PGZY.min.js +0 -1
  445. package/dist/c-W3CE4A4S.min.js +0 -1
  446. package/dist/c-X5UBGU2V.min.js +0 -1
  447. package/dist/c-XDRV7RKW.min.js +0 -1
  448. package/dist/c-YGZHURXZ.min.js +0 -1
  449. package/dist/c-YZVRZGX2.min.js +0 -1
  450. /package/dist/{c-N4G2L7ID.min.js → c-HYW2XA4Q.min.js} +0 -0
  451. /package/dist/{c-ENF72HU5.min.js → c-QAVFOEUY.min.js} +0 -0
  452. /package/dist/{c-OCI56QF2.min.js → c-V4XMSLC3.min.js} +0 -0
@@ -7,7 +7,7 @@
7
7
  "src/components/semiotic-ai.ts",
8
8
  "ai/mcp-server.ts"
9
9
  ],
10
- "version": "3.9.2",
10
+ "version": "3.10.0",
11
11
  "components": {
12
12
  "schema": 61,
13
13
  "aiChartExports": 56,
@@ -832,24 +832,28 @@
832
832
  ]
833
833
  },
834
834
  "mcp": {
835
- "toolCount": 24,
835
+ "toolCount": 28,
836
836
  "tools": [
837
837
  "applyTheme",
838
838
  "auditAccessibility",
839
+ "auditArtifact",
839
840
  "auditChart",
840
841
  "auditMobileVisualization",
841
842
  "createChart",
842
843
  "diagnoseConfig",
843
844
  "evaluateChart",
844
845
  "explainChart",
846
+ "explainRefusal",
845
847
  "getChartSchema",
846
848
  "getSchema",
847
849
  "groundChart",
848
850
  "improveChart",
849
851
  "interrogateChart",
850
852
  "proposeChartVariants",
853
+ "recommendRepresentation",
851
854
  "renderChart",
852
855
  "renderInteractiveChart",
856
+ "repairArtifact",
853
857
  "repairChartConfig",
854
858
  "reportIssue",
855
859
  "suggestChart",
@@ -870,8 +874,9 @@
870
874
  ],
871
875
  "activation": "semiotic-mcp --profile public or MCP_TOOL_PROFILE=public"
872
876
  },
873
- "resourceCount": 10,
877
+ "resourceCount": 13,
874
878
  "resources": [
879
+ "semiotic-artifact-contract-schema",
875
880
  "semiotic-behavior-contracts",
876
881
  "semiotic-build-info",
877
882
  "semiotic-chatgpt-chart-widget",
@@ -881,7 +886,9 @@
881
886
  "semiotic-schema",
882
887
  "semiotic-schema-index",
883
888
  "semiotic-surface-manifest",
884
- "semiotic-system-prompt"
889
+ "semiotic-system-prompt",
890
+ "semiotic-task-index",
891
+ "semiotic-task-packet"
885
892
  ],
886
893
  "promptCount": 2,
887
894
  "prompts": [
@@ -125,6 +125,8 @@ These rules are generated from `ai/behaviorContracts.cjs` and are consumed by `s
125
125
  - **Proportional symbol maps use geographic props** (`geo.proportional-symbol-wire-shape`): ProportionalSymbolMap reads point rows from points, longitude from xAccessor (default lon), latitude from yAccessor (default lat), and radius from sizeBy. sizeRange is the two-number pixel-radius range.
126
126
  - **Physics charts separate chart mode from simulation input** (`physics.sample-and-mechanical-inputs`): Sample simulations use data plus the chart's accessors. Seeded no-data demonstrations use simulationMode="mechanical" (legacy mode="mechanical" remains accepted); mode otherwise carries chart display modes such as primary or sparkline.
127
127
  - **Physics push methods ingest source records** (`physics.push-uses-source-records`): Physics HOC refs push source records through the chart's accessors. pushRows and dataIdAccessor are not component props; stable source id fields are retained on spawned bodies without an invented accessor.
128
+ - **Distribution physics charts update bodies and projections together** (`physics.live-source-reconciliation`): Bodies, categories, domains, and totals update together without changing React keys. getData() returns source rows. New data replaces live rows; rerunMS restores the seed.
129
+ - **EventDrop distinguishes admission history from current closure** (`physics.event-admission-history`): Arrival order determines historical lateness with a delay/function watermark. Equal arrival times keep source order. A window is closed when its end is at or below the watermark; previously accepted events stay accepted as later events advance it. An explicit watermark.value instead tests one fixed policy.
128
130
 
129
131
  <!-- semiotic-behavior-contracts:end -->
130
132
 
@@ -0,0 +1,301 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "generatedBy": "scripts/generate-ai-task-packets.mjs",
4
+ "id": "compare-category-totals",
5
+ "title": "Compare category totals you can check",
6
+ "summary": "Compare three totals in React, inspect their exact values, and verify the server-rendered bar geometry.",
7
+ "route": "/tasks/compare-category-totals",
8
+ "identity": {
9
+ "packageName": "semiotic",
10
+ "packageVersion": "3.10.0",
11
+ "channel": "source",
12
+ "sourceRevision": "sha256:5e5a22378c5f0f2ba897818a2d9a0daedca6f6a7b7465f8e248548b231ec1eae",
13
+ "revisionKind": "content-digest",
14
+ "runtime": {
15
+ "digest": "sha256:cf510709caa078398644ff232870d8405551b420c1b8967da1d08dbc9c7fc821",
16
+ "fileCount": 1082
17
+ },
18
+ "taskSources": {
19
+ "digest": "sha256:62733dc8fadd1c8655adc743fb1fcb2c555c73dd191c1df8cf8f6c689e2085ba",
20
+ "fileCount": 36
21
+ },
22
+ "availability": "Verified source checkout guidance; npm package, hosted site and MCP deployment identities require separate checks."
23
+ },
24
+ "job": "Compare categories and keep a usable route to the values when the picture is unavailable.",
25
+ "dataShape": "One already aggregated, nonnegative total per category, all in the same unit. The synthetic fixture is North 12, South 30, West 18.",
26
+ "fit": [
27
+ "Use in an existing Semiotic React application or when structured chart access and schema-guided validation meet an explicit project requirement."
28
+ ],
29
+ "exclusions": [
30
+ "A small chart change alone need not justify replacing a working visualization library.",
31
+ "This fixture does not establish that an external source is accurate or that every reader can use the result."
32
+ ],
33
+ "api": {
34
+ "name": "BarChart",
35
+ "category": "ordinal",
36
+ "importPath": "semiotic/ordinal",
37
+ "schemaResourceUri": "semiotic://schema/BarChart",
38
+ "renderable": true,
39
+ "requiresLiveData": false,
40
+ "description": "Vertical or horizontal bars for categorical comparisons.",
41
+ "component": "BarChart",
42
+ "usageMode": "static",
43
+ "dataRequired": true,
44
+ "schema": {
45
+ "type": "object",
46
+ "properties": {
47
+ "data": {
48
+ "type": "array",
49
+ "description": "Array of data objects"
50
+ },
51
+ "categoryAccessor": {
52
+ "type": "string",
53
+ "description": "Key for category labels",
54
+ "default": "category",
55
+ "x-semiotic-runtime-types": [
56
+ "string",
57
+ "function"
58
+ ]
59
+ },
60
+ "valueAccessor": {
61
+ "type": "string",
62
+ "description": "Key for bar values",
63
+ "default": "value",
64
+ "x-semiotic-runtime-types": [
65
+ "string",
66
+ "function"
67
+ ]
68
+ },
69
+ "sort": {
70
+ "type": [
71
+ "boolean",
72
+ "string"
73
+ ],
74
+ "description": "Sort bars: false, true, 'asc', 'desc', or comparator function",
75
+ "default": false,
76
+ "x-semiotic-runtime-types": [
77
+ "boolean",
78
+ "string",
79
+ "function"
80
+ ]
81
+ },
82
+ "orientation": {
83
+ "type": "string",
84
+ "enum": [
85
+ "vertical",
86
+ "horizontal"
87
+ ],
88
+ "default": "vertical"
89
+ },
90
+ "title": {
91
+ "type": "string",
92
+ "description": "Visible chart title and the chart's accessible name."
93
+ },
94
+ "description": {
95
+ "type": "string",
96
+ "description": "Concise accessible description that overrides the chart's generated aria-label."
97
+ },
98
+ "summary": {
99
+ "type": "string",
100
+ "description": "Screen-reader-only summary of the chart's key takeaway; include keyboard interaction guidance when relevant."
101
+ },
102
+ "accessibleTable": {
103
+ "type": [
104
+ "boolean",
105
+ "object"
106
+ ],
107
+ "description": "Expose the chart data through Semiotic's screen-reader data table. Object form `{ portalTarget: string }` relocates its interactive UI to the DOM element with that ID.",
108
+ "default": true,
109
+ "oneOf": [
110
+ {
111
+ "type": "boolean"
112
+ },
113
+ {
114
+ "type": "object",
115
+ "additionalProperties": false,
116
+ "required": [
117
+ "portalTarget"
118
+ ],
119
+ "properties": {
120
+ "portalTarget": {
121
+ "type": "string",
122
+ "description": "ID of a DOM element outside any consumer-owned role=img wrapper. React callers may also pass an Element or a callback through the typed API."
123
+ }
124
+ }
125
+ }
126
+ ]
127
+ },
128
+ "height": {
129
+ "type": "number",
130
+ "default": 400
131
+ },
132
+ "responsiveWidth": {
133
+ "type": "boolean"
134
+ },
135
+ "valueLabel": {
136
+ "type": "string"
137
+ }
138
+ },
139
+ "requiredForStatic": [
140
+ "data"
141
+ ]
142
+ },
143
+ "schemaScope": "Selected properties copied from ai/schema.json; retrieve the component resource for the full schema. React push mode follows the included behavior contracts.",
144
+ "contracts": [
145
+ {
146
+ "id": "accessibility.description-props",
147
+ "title": "Accessible chart text uses direct chart props",
148
+ "summary": "High-level charts expose title for the visible name, description for a concise accessible description, summary for a screen-reader-only takeaway and interaction guidance, and accessibleTable for the data-table fallback.",
149
+ "action": "Put title, description, summary, and accessibleTable directly on the chart component when they appear in its schema. If a consumer-owned role=img wraps the chart, use accessibleTable: { portalTarget: \"element-id\" } and render that target outside the image. For generated L1–L3 description or a navigable chart tree, use ChartContainer with chartConfig plus describe and/or navigable; do not invent frameProps fields."
150
+ },
151
+ {
152
+ "id": "props.data-required-by-usage-mode",
153
+ "title": "Data required by usage mode",
154
+ "summary": "Static usage (`renderChart`, MCP previews, SSR snapshots, and copy/paste examples with immediate data) requires data in props. React push mode selects live ingestion by omitting data and mutating through a ref.",
155
+ "action": "Pass usageMode=\"push\" to `semiotic-ai --doctor` when validating ref-based JSX with no data prop. Keep usageMode=\"static\" or omit it for renderChart/MCP/static configs where data must be present."
156
+ },
157
+ {
158
+ "id": "rendering.renderchart-static-props",
159
+ "title": "renderChart uses static props only",
160
+ "summary": "MCP renderChart and semiotic/server renderChart render a single static SVG/PNG snapshot. Browser-only realtime components and future ref pushes are not renderable through that path.",
161
+ "action": "Use renderChart only with renderable HOC components and complete static data. For live behavior, return React code with a ref and do not promise MCP-rendered output."
162
+ },
163
+ {
164
+ "id": "serialization.formatters-are-react-callbacks",
165
+ "title": "Axis formatters are React callbacks",
166
+ "summary": "xFormat, yFormat, categoryFormat, and valueFormat are callback props, not d3 format strings or axis-title strings. They are intentionally absent from JSON/MCP schemas and string values fail validation.",
167
+ "action": "In serialized props, omit formatter callbacks and use xLabel, yLabel, categoryLabel, or valueLabel for axis titles. In React JSX, pass a function such as xFormat={value => formatAxis(value)}."
168
+ }
169
+ ]
170
+ },
171
+ "examples": [
172
+ {
173
+ "title": "React component",
174
+ "environment": "React browser",
175
+ "path": "docs/src/pages/tasks/examples/CategoryComparisonExample.tsx",
176
+ "source": "import { useState } from \"react\"\nimport { BarChart } from \"semiotic/ordinal\"\nimport { categoryComparisonProps } from \"./category-comparison\"\n\nexport default function CategoryComparisonExample() {\n const [orientation, setOrientation] = useState<\"vertical\" | \"horizontal\">(\"vertical\")\n return (\n <section aria-label=\"Category comparison example\" className=\"task-example\">\n <p>Synthetic fixture: three already aggregated regional totals, all measured in units.</p>\n <label>\n Bar direction{\" \"}\n <select\n value={orientation}\n onChange={(event) => setOrientation(event.target.value as typeof orientation)}\n >\n <option value=\"vertical\">Vertical</option>\n <option value=\"horizontal\">Horizontal</option>\n </select>\n </label>\n <BarChart {...categoryComparisonProps} orientation={orientation} responsiveWidth />\n <p>\n South accounts for 30 of the 60 units. Changing direction preserves the values and category\n order.\n </p>\n </section>\n )\n}\n",
177
+ "digest": "sha256:1cbc3f7dc27a4114e0b1b208c4eab532230ef5fda623116f5c734a51582f764b"
178
+ },
179
+ {
180
+ "title": "Shared fixture and chart props",
181
+ "environment": "Browser and server",
182
+ "path": "docs/src/pages/tasks/examples/category-comparison.ts",
183
+ "source": "import type { BarChartProps } from \"semiotic/ordinal\"\n\nexport const regionalTotals = [\n { region: \"North\", total: 12 },\n { region: \"South\", total: 30 },\n { region: \"West\", total: 18 },\n]\n\nexport const categoryComparisonProps = {\n data: regionalTotals,\n categoryAccessor: \"region\",\n valueAccessor: \"total\",\n sort: false,\n title: \"Regional totals\",\n description: \"Synthetic regional totals in the same unit: North 12, South 30, West 18.\",\n summary:\n \"South has the largest total, 30. The three regions total 60 units. Open the data table for exact values.\",\n accessibleTable: true,\n valueLabel: \"Units\",\n height: 300,\n} satisfies BarChartProps<(typeof regionalTotals)[number]>\n",
184
+ "digest": "sha256:385eb02b937bced7c4a7d6bbf88232ace90c56a7e06bb7935fdba37f0ee30c53"
185
+ },
186
+ {
187
+ "title": "Optional server verification",
188
+ "environment": "Node authoring only",
189
+ "path": "docs/src/pages/tasks/examples/check-category-comparison.ts",
190
+ "source": "// Server-side authoring only: keep validation and SVG rendering out of the React route.\nimport { prepareChart } from \"semiotic/ai/core\"\nimport { renderChartWithEvidence } from \"semiotic/server\"\nimport { categoryComparisonProps } from \"./category-comparison\"\n\nexport function checkCategoryComparison() {\n const result = prepareChart(\n { component: \"BarChart\", props: categoryComparisonProps },\n { render: renderChartWithEvidence },\n )\n if (!result.ok || !result.evidence || !result.svg) {\n throw new Error(result.reasons.join(\"; \") || \"Render evidence is unavailable\")\n }\n return result\n}\n",
191
+ "digest": "sha256:a0e2cfe29c1985899f360b447b9bc223026d9954e26790adf30a5bf4473da56b"
192
+ }
193
+ ],
194
+ "evidence": {
195
+ "claimId": "task.compare-category-totals",
196
+ "statement": "Compare three totals in React, inspect their exact values, and verify the server-rendered bar geometry.",
197
+ "owner": "Semiotic repository maintainers",
198
+ "status": "supported-in-scope",
199
+ "observed": {
200
+ "verifiedAt": "2026-09-11T03:13:52.427Z",
201
+ "environment": {
202
+ "node": "v22.22.1",
203
+ "platform": "darwin",
204
+ "architecture": "arm64",
205
+ "browser": "Playwright Chromium"
206
+ },
207
+ "runs": [
208
+ {
209
+ "kind": "unit",
210
+ "targets": [
211
+ "docs/src/pages/tasks/examples/category-comparison.test.ts",
212
+ "docs/src/pages/tasks/examples/live-chart.test.tsx",
213
+ "docs/src/pages/tasks/examples/source-correction.test.ts"
214
+ ],
215
+ "name": "Task source units",
216
+ "command": "node node_modules/vitest/vitest.mjs run ./docs/src/pages/tasks/examples/category-comparison.test.ts ./docs/src/pages/tasks/examples/live-chart.test.tsx ./docs/src/pages/tasks/examples/source-correction.test.ts --reporter=default --reporter=json --outputFile=<temporary-report-directory>/unit.json --allowOnly=false",
217
+ "exitCode": 0,
218
+ "passed": 14,
219
+ "skipped": 0,
220
+ "passedByFile": {
221
+ "docs/src/pages/tasks/examples/category-comparison.test.ts": 4,
222
+ "docs/src/pages/tasks/examples/live-chart.test.tsx": 5,
223
+ "docs/src/pages/tasks/examples/source-correction.test.ts": 5
224
+ }
225
+ },
226
+ {
227
+ "kind": "browser",
228
+ "targets": [
229
+ "integration-tests/docs-examples-task-live.spec.ts",
230
+ "integration-tests/docs-examples-tasks.spec.ts"
231
+ ],
232
+ "name": "Task browser behavior",
233
+ "command": "node node_modules/@playwright/test/cli.js test --config playwright.docs-examples.config.ts ./integration-tests/docs-examples-task-live.spec.ts ./integration-tests/docs-examples-tasks.spec.ts --reporter=list,json --forbid-only",
234
+ "exitCode": 0,
235
+ "passed": 6,
236
+ "skipped": 0,
237
+ "passedByFile": {
238
+ "integration-tests/docs-examples-task-live.spec.ts": 2,
239
+ "integration-tests/docs-examples-tasks.spec.ts": 4
240
+ }
241
+ }
242
+ ],
243
+ "record": "ai/tasks/verification.json",
244
+ "authorship": "Agent-observed execution of repository tests; independent review is not recorded."
245
+ },
246
+ "validity": "Only the content digests and environment recorded here; not a release range or an adoption result.",
247
+ "invalidation": "Changes to runtime source, schemas, manifests, task examples, tests, verification tooling or this task definition invalidate the recorded result.",
248
+ "commands": [
249
+ "npx vitest run docs/src/pages/tasks/examples/category-comparison.test.ts",
250
+ "npx playwright test --config playwright.docs-examples.config.ts integration-tests/docs-examples-tasks.spec.ts"
251
+ ],
252
+ "checks": {
253
+ "unit": "docs/src/pages/tasks/examples/category-comparison.test.ts",
254
+ "browser": "integration-tests/docs-examples-tasks.spec.ts"
255
+ },
256
+ "expected": [
257
+ "North 12, South 30, West 18; total 60, with South largest.",
258
+ "Three SVG bars retain 12:30:18 proportions and insertion order in both orientations.",
259
+ "The browser data table retains the exact category/value mapping.",
260
+ "An invalid value accessor is refused; the repaired configuration preserves the rows."
261
+ ],
262
+ "unassessed": [
263
+ "Underlying source accuracy: this is a synthetic fixture.",
264
+ "Assistive-technology reception and usability with actual readers.",
265
+ "Organic discovery, model preference, and published-package parity."
266
+ ]
267
+ },
268
+ "recovery": [
269
+ {
270
+ "symptom": "The chart has no useful values after a field was renamed.",
271
+ "contractId": "props.data-required-by-usage-mode",
272
+ "action": "Set valueAccessor to the actual numeric field, total, while preserving data. Run the server check and inspect the exact-value table.",
273
+ "recheck": "The bars must encode 12, 30 and 18; a nonempty scene alone is insufficient."
274
+ },
275
+ {
276
+ "symptom": "prepareChart returned ok, but there is no SVG.",
277
+ "contractId": "rendering.renderchart-static-props",
278
+ "action": "Inject renderChartWithEvidence from semiotic/server in Node authoring code when rendered evidence is required.",
279
+ "recheck": "Inspect evidence and svg explicitly. Without a renderer, ok covers a different set of checks."
280
+ }
281
+ ],
282
+ "continuation": {
283
+ "rationale": "This project needs React rendering with inspectable category values.",
284
+ "recheck": [
285
+ "Category/value mapping, units, order, summary and the accessible table after source or dependency changes."
286
+ ],
287
+ "loss": "An image alone omits the source rows and verification context. Keep the config and fixture when the next reader needs exact values."
288
+ },
289
+ "update": {
290
+ "status": "source-only",
291
+ "introducedIn": null,
292
+ "previousAssumption": "A valid configuration or a nonempty render establishes that the values are mapped correctly.",
293
+ "action": "Run configuration checks, inspect the rendered geometry and compare the category/value table with independent fixture facts.",
294
+ "recheck": [
295
+ "Rendering evidence must be present when a render is claimed.",
296
+ "An installed package version different from the packet's packageVersion needs matching guidance."
297
+ ],
298
+ "remaining": "Source truth and usability with actual readers remain separate obligations."
299
+ },
300
+ "definition": "ai/tasks/compare-category-totals.json"
301
+ }
@@ -0,0 +1,188 @@
1
+ <!-- Generated by scripts/generate-ai-task-packets.mjs; edit ai/tasks/compare-category-totals.json. -->
2
+
3
+ # Compare category totals you can check
4
+
5
+ Compare three totals in React, inspect their exact values, and verify the server-rendered bar geometry.
6
+
7
+ Source package: semiotic@3.10.0. Channel: source.
8
+ Source revision: sha256:5e5a22378c5f0f2ba897818a2d9a0daedca6f6a7b7465f8e248548b231ec1eae. Verified source checkout guidance; npm package, hosted site and MCP deployment identities require separate checks.
9
+
10
+ ## The job
11
+
12
+ Compare categories and keep a usable route to the values when the picture is unavailable.
13
+
14
+ Data: One already aggregated, nonnegative total per category, all in the same unit. The synthetic fixture is North 12, South 30, West 18.
15
+
16
+ ## Fit and constraints
17
+
18
+ - Use in an existing Semiotic React application or when structured chart access and schema-guided validation meet an explicit project requirement.
19
+
20
+ - A small chart change alone need not justify replacing a working visualization library.
21
+ - This fixture does not establish that an external source is accurate or that every reader can use the result.
22
+
23
+ ## Smallest working path
24
+
25
+ Component: BarChart from `semiotic/ordinal`. Usage: static. Data prop required in this mode: true.
26
+
27
+ ### React component
28
+
29
+ React browser; source: docs/src/pages/tasks/examples/CategoryComparisonExample.tsx.
30
+
31
+ ```tsx
32
+ import { useState } from "react"
33
+ import { BarChart } from "semiotic/ordinal"
34
+ import { categoryComparisonProps } from "./category-comparison"
35
+
36
+ export default function CategoryComparisonExample() {
37
+ const [orientation, setOrientation] = useState<"vertical" | "horizontal">("vertical")
38
+ return (
39
+ <section aria-label="Category comparison example" className="task-example">
40
+ <p>Synthetic fixture: three already aggregated regional totals, all measured in units.</p>
41
+ <label>
42
+ Bar direction{" "}
43
+ <select
44
+ value={orientation}
45
+ onChange={(event) => setOrientation(event.target.value as typeof orientation)}
46
+ >
47
+ <option value="vertical">Vertical</option>
48
+ <option value="horizontal">Horizontal</option>
49
+ </select>
50
+ </label>
51
+ <BarChart {...categoryComparisonProps} orientation={orientation} responsiveWidth />
52
+ <p>
53
+ South accounts for 30 of the 60 units. Changing direction preserves the values and category
54
+ order.
55
+ </p>
56
+ </section>
57
+ )
58
+ }
59
+ ```
60
+
61
+ ### Shared fixture and chart props
62
+
63
+ Browser and server; source: docs/src/pages/tasks/examples/category-comparison.ts.
64
+
65
+ ```ts
66
+ import type { BarChartProps } from "semiotic/ordinal"
67
+
68
+ export const regionalTotals = [
69
+ { region: "North", total: 12 },
70
+ { region: "South", total: 30 },
71
+ { region: "West", total: 18 },
72
+ ]
73
+
74
+ export const categoryComparisonProps = {
75
+ data: regionalTotals,
76
+ categoryAccessor: "region",
77
+ valueAccessor: "total",
78
+ sort: false,
79
+ title: "Regional totals",
80
+ description: "Synthetic regional totals in the same unit: North 12, South 30, West 18.",
81
+ summary:
82
+ "South has the largest total, 30. The three regions total 60 units. Open the data table for exact values.",
83
+ accessibleTable: true,
84
+ valueLabel: "Units",
85
+ height: 300,
86
+ } satisfies BarChartProps<(typeof regionalTotals)[number]>
87
+ ```
88
+
89
+ ### Optional server verification
90
+
91
+ Node authoring only; source: docs/src/pages/tasks/examples/check-category-comparison.ts.
92
+
93
+ ```ts
94
+ // Server-side authoring only: keep validation and SVG rendering out of the React route.
95
+ import { prepareChart } from "semiotic/ai/core"
96
+ import { renderChartWithEvidence } from "semiotic/server"
97
+ import { categoryComparisonProps } from "./category-comparison"
98
+
99
+ export function checkCategoryComparison() {
100
+ const result = prepareChart(
101
+ { component: "BarChart", props: categoryComparisonProps },
102
+ { render: renderChartWithEvidence },
103
+ )
104
+ if (!result.ok || !result.evidence || !result.svg) {
105
+ throw new Error(result.reasons.join("; ") || "Render evidence is unavailable")
106
+ }
107
+ return result
108
+ }
109
+ ```
110
+
111
+ ## Check the result
112
+
113
+ Evidence state: supported-in-scope. Only the content digests and environment recorded here; not a release range or an adoption result.
114
+
115
+ - North 12, South 30, West 18; total 60, with South largest.
116
+ - Three SVG bars retain 12:30:18 proportions and insertion order in both orientations.
117
+ - The browser data table retains the exact category/value mapping.
118
+ - An invalid value accessor is refused; the repaired configuration preserves the rows.
119
+
120
+ Run:
121
+
122
+ ```sh
123
+ npx vitest run docs/src/pages/tasks/examples/category-comparison.test.ts
124
+ npx playwright test --config playwright.docs-examples.config.ts integration-tests/docs-examples-tasks.spec.ts
125
+ ```
126
+
127
+ Recorded execution: 2026-09-11T03:13:52.427Z. Agent-observed execution of repository tests; independent review is not recorded.
128
+
129
+ Not assessed:
130
+
131
+ - Underlying source accuracy: this is a synthetic fixture.
132
+ - Assistive-technology reception and usability with actual readers.
133
+ - Organic discovery, model preference, and published-package parity.
134
+
135
+ ## Repair and recheck
136
+
137
+ ### The chart has no useful values after a field was renamed.
138
+
139
+ Set valueAccessor to the actual numeric field, total, while preserving data. Run the server check and inspect the exact-value table.
140
+
141
+ Recheck: The bars must encode 12, 30 and 18; a nonempty scene alone is insufficient.
142
+
143
+ Contract: props.data-required-by-usage-mode.
144
+
145
+ ### prepareChart returned ok, but there is no SVG.
146
+
147
+ Inject renderChartWithEvidence from semiotic/server in Node authoring code when rendered evidence is required.
148
+
149
+ Recheck: Inspect evidence and svg explicitly. Without a renderer, ok covers a different set of checks.
150
+
151
+ Contract: rendering.renderchart-static-props.
152
+
153
+ ## Exact API and mode guidance
154
+
155
+ Selected properties copied from ai/schema.json; retrieve the component resource for the full schema. React push mode follows the included behavior contracts.
156
+
157
+ Full component resource: semiotic://schema/BarChart. Machine packet: /tasks/compare-category-totals.json.
158
+
159
+ - **accessibility.description-props:** High-level charts expose title for the visible name, description for a concise accessible description, summary for a screen-reader-only takeaway and interaction guidance, and accessibleTable for the data-table fallback. Put title, description, summary, and accessibleTable directly on the chart component when they appear in its schema. If a consumer-owned role=img wraps the chart, use accessibleTable: { portalTarget: "element-id" } and render that target outside the image. For generated L1–L3 description or a navigable chart tree, use ChartContainer with chartConfig plus describe and/or navigable; do not invent frameProps fields.
160
+
161
+ - **props.data-required-by-usage-mode:** Static usage (`renderChart`, MCP previews, SSR snapshots, and copy/paste examples with immediate data) requires data in props. React push mode selects live ingestion by omitting data and mutating through a ref. Pass usageMode="push" to `semiotic-ai --doctor` when validating ref-based JSX with no data prop. Keep usageMode="static" or omit it for renderChart/MCP/static configs where data must be present.
162
+
163
+ - **rendering.renderchart-static-props:** MCP renderChart and semiotic/server renderChart render a single static SVG/PNG snapshot. Browser-only realtime components and future ref pushes are not renderable through that path. Use renderChart only with renderable HOC components and complete static data. For live behavior, return React code with a ref and do not promise MCP-rendered output.
164
+
165
+ - **serialization.formatters-are-react-callbacks:** xFormat, yFormat, categoryFormat, and valueFormat are callback props, not d3 format strings or axis-title strings. They are intentionally absent from JSON/MCP schemas and string values fail validation. In serialized props, omit formatter callbacks and use xLabel, yLabel, categoryLabel, or valueLabel for axis titles. In React JSX, pass a function such as xFormat={value => formatAxis(value)}.
166
+
167
+ ## Maintenance context
168
+
169
+ This project needs React rendering with inspectable category values.
170
+
171
+ - Category/value mapping, units, order, summary and the accessible table after source or dependency changes.
172
+
173
+ An image alone omits the source rows and verification context. Keep the config and fixture when the next reader needs exact values.
174
+
175
+ Read the installed package and lockfile before applying source guidance. A matching version string alone does not establish deployed parity. These notes are removable project context, subordinate to the current task and dependency policy.
176
+
177
+ ## Behavioral update
178
+
179
+ Status: source-only. Released introduction: not established.
180
+
181
+ Assumption to revisit: A valid configuration or a nonempty render establishes that the values are mapped correctly.
182
+
183
+ Run configuration checks, inspect the rendered geometry and compare the category/value table with independent fixture facts.
184
+
185
+ - Rendering evidence must be present when a render is claimed.
186
+ - An installed package version different from the packet's packageVersion needs matching guidance.
187
+
188
+ Source truth and usability with actual readers remain separate obligations.