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
@@ -0,0 +1,597 @@
1
+ <!-- Generated by scripts/generate-ai-task-packets.mjs; edit ai/tasks/correct-published-chart.json. -->
2
+
3
+ # Correct a chart after its source changes
4
+
5
+ Apply a source correction, replace affected claims explicitly, and preserve the context a later reader needs.
6
+
7
+ Source package: semiotic@3.10.0. Channel: source.
8
+ Source revision: sha256:468d1a308430272a298f6cd79a05bf89f244cb3dcb401a7e83303bd835f816ec. Verified source checkout guidance; npm package, hosted site and MCP deployment identities require separate checks.
9
+
10
+ ## The job
11
+
12
+ A source value changed. Update the chart and identify conclusions that still need review.
13
+
14
+ Data: Synthetic regional totals: North 12, South 30, West 18. Correct West to 36; the new total is 78 and West becomes largest.
15
+
16
+ ## Fit and constraints
17
+
18
+ - Use when published chart claims and source identity must remain inspectable across revisions.
19
+ - Artifact sidecars are optional; ordinary chart rendering remains available without project notes.
20
+
21
+ - A matching hash does not authenticate the source or prove arbitrary prose true.
22
+ - A generated revision or transfer report does not grant publication approval or record a human review.
23
+
24
+ ## Smallest working path
25
+
26
+ Component: BarChart from `semiotic/ordinal`. Usage: static. Data prop required in this mode: true.
27
+
28
+ ### Correction and handoff controls
29
+
30
+ React browser; source: docs/src/pages/tasks/examples/SourceCorrectionExample.tsx.
31
+
32
+ ```tsx
33
+ import { useMemo, useState } from "react"
34
+ import { BarChart } from "semiotic/ordinal"
35
+ import {
36
+ correctedRows,
37
+ inspectSourceHandoff,
38
+ originalRows,
39
+ originalSourceArtifact,
40
+ reviseSourceArtifact,
41
+ sourceChartProps,
42
+ sourceCorrectionNote,
43
+ sourceCorrectionSidecar,
44
+ } from "./source-correction"
45
+ import "./source-correction.css"
46
+
47
+ function downloadText(filename: string, content: string, type = "application/json") {
48
+ const url = URL.createObjectURL(new Blob([content], { type }))
49
+ const link = document.createElement("a")
50
+ link.href = url
51
+ link.download = filename
52
+ link.click()
53
+ setTimeout(() => URL.revokeObjectURL(url), 0)
54
+ }
55
+
56
+ export default function SourceCorrectionExample() {
57
+ const original = useMemo(originalSourceArtifact, [])
58
+ const [revised, setRevised] = useState<ReturnType<typeof reviseSourceArtifact>>()
59
+ const [message, setMessage] = useState("Original revision: total 60; South leads with 30 units.")
60
+ const [includeSidecar, setIncludeSidecar] = useState(true)
61
+ const [includeNote, setIncludeNote] = useState(false)
62
+ const current = revised ?? original
63
+ const props = current.props as ReturnType<typeof sourceChartProps>
64
+ const sidecar = useMemo(() => sourceCorrectionSidecar(current.contract), [current.contract])
65
+ const handoff = useMemo(
66
+ () => inspectSourceHandoff(props, includeSidecar ? JSON.parse(sidecar.content) : undefined),
67
+ [props, includeSidecar, sidecar.content],
68
+ )
69
+
70
+ function attemptCorrection(reassess: boolean) {
71
+ try {
72
+ const result = reviseSourceArtifact(reassess)
73
+ setRevised(result)
74
+ setMessage(
75
+ "Correction prepared: total 78; West leads with 36 units. Two previous claims were superseded. Human editorial review remains pending.",
76
+ )
77
+ } catch (error) {
78
+ setMessage(`Correction refused: ${error instanceof Error ? error.message : String(error)}`)
79
+ }
80
+ }
81
+
82
+ return (
83
+ <section className="source-correction-example" aria-label="Source correction demonstration">
84
+ <p>
85
+ The source corrects West from 18 to 36 units. That changes the total and the leading region.
86
+ Updating the bars requires reviewing both conclusions. These are synthetic teaching values.
87
+ </p>
88
+ <table>
89
+ <caption>The source correction, in units</caption>
90
+ <thead>
91
+ <tr>
92
+ <th scope="col">Region</th>
93
+ <th scope="col">Original</th>
94
+ <th scope="col">Corrected</th>
95
+ </tr>
96
+ </thead>
97
+ <tbody>
98
+ {originalRows.map((row, index) => (
99
+ <tr key={row.region}>
100
+ <th scope="row">{row.region}</th>
101
+ <td>{row.total}</td>
102
+ <td>{correctedRows[index].total}</td>
103
+ </tr>
104
+ ))}
105
+ <tr>
106
+ <th scope="row">Total</th>
107
+ <td>60</td>
108
+ <td>78</td>
109
+ </tr>
110
+ </tbody>
111
+ </table>
112
+ <div className="source-correction-actions">
113
+ <button type="button" disabled={Boolean(revised)} onClick={() => attemptCorrection(false)}>
114
+ Try changing data only
115
+ </button>
116
+ <button type="button" disabled={Boolean(revised)} onClick={() => attemptCorrection(true)}>
117
+ Correct data and both claims
118
+ </button>
119
+ <button
120
+ type="button"
121
+ onClick={() => {
122
+ setRevised(undefined)
123
+ setMessage("Original revision restored: total 60; South leads with 30 units.")
124
+ }}
125
+ >
126
+ Reset example
127
+ </button>
128
+ </div>
129
+ <p role="status" data-testid="source-correction-status">
130
+ {message}
131
+ </p>
132
+ <BarChart {...props} />
133
+ <p>
134
+ <strong>Displayed revision {current.contract.artifact.revision}.</strong> {props.summary}
135
+ </p>
136
+ <ul aria-label="Claim history">
137
+ {current.contract.claims.map((claim) => (
138
+ <li key={claim.id}>
139
+ <strong>{claim.status}</strong>: {claim.text}
140
+ {claim.supersedes?.length ? ` Replaces ${claim.supersedes.join(", ")}.` : ""}
141
+ </li>
142
+ ))}
143
+ </ul>
144
+ <p>
145
+ Supported here means an authored claim about this fixture, with arithmetic checked in its
146
+ tests. The contract does not prove prose true. No human editorial approval is recorded.
147
+ {revised
148
+ ? ` The revision evaluation is ${revised.evaluation.status}; publishable is ${String(revised.publishable)}.`
149
+ : ""}
150
+ </p>
151
+ {revised && (
152
+ <details>
153
+ <summary>Inspect correction identities and open checks</summary>
154
+ <p>
155
+ Original data identity: <code>{original.contract.artifact.dataFingerprint}</code>
156
+ </p>
157
+ <p>
158
+ Revised data identity: <code>{revised.contract.artifact.dataFingerprint}</code>
159
+ </p>
160
+ <ul>
161
+ {revised.evaluation.manualChecks.map((check) => (
162
+ <li key={check}>{check}</li>
163
+ ))}
164
+ </ul>
165
+ <pre>{JSON.stringify(revised.contract.contestability?.corrections, null, 2)}</pre>
166
+ </details>
167
+ )}
168
+ <details>
169
+ <summary>Optional handoff: see what another reader receives</summary>
170
+ <p>
171
+ The chart configuration includes its values. The separate sidecar carries claims, evidence
172
+ identifiers and correction history. The optional note records project context. You can
173
+ keep the chart without either file.
174
+ </p>
175
+ <label>
176
+ <input
177
+ type="checkbox"
178
+ checked={includeSidecar}
179
+ onChange={(event) => setIncludeSidecar(event.target.checked)}
180
+ />{" "}
181
+ Include correction sidecar
182
+ </label>
183
+ <label>
184
+ <input
185
+ type="checkbox"
186
+ checked={includeNote}
187
+ onChange={(event) => setIncludeNote(event.target.checked)}
188
+ />{" "}
189
+ Include project maintenance note
190
+ </label>
191
+ <p role="status" data-testid="source-handoff-status">
192
+ {handoff.message}
193
+ </p>
194
+ <p>
195
+ An image alone cannot establish the source values, correction history or review status.
196
+ </p>
197
+ <div className="source-correction-actions">
198
+ <button
199
+ type="button"
200
+ onClick={() =>
201
+ downloadText(
202
+ "regional-totals.config.json",
203
+ JSON.stringify({ component: "BarChart", props }, null, 2),
204
+ )
205
+ }
206
+ >
207
+ Download chart configuration
208
+ </button>
209
+ {includeSidecar && (
210
+ <button
211
+ type="button"
212
+ onClick={() => downloadText(sidecar.sidecarPath, sidecar.content)}
213
+ >
214
+ Download correction sidecar
215
+ </button>
216
+ )}
217
+ {includeNote && (
218
+ <button
219
+ type="button"
220
+ onClick={() =>
221
+ downloadText(
222
+ "regional-totals-maintenance.md",
223
+ sourceCorrectionNote,
224
+ "text/markdown",
225
+ )
226
+ }
227
+ >
228
+ Download maintenance note
229
+ </button>
230
+ )}
231
+ </div>
232
+ {includeNote && <pre>{sourceCorrectionNote}</pre>}
233
+ </details>
234
+ </section>
235
+ )
236
+ }
237
+ ```
238
+
239
+ ### Source correction and portable context
240
+
241
+ Host authoring and transfer; source: docs/src/pages/tasks/examples/source-correction.ts.
242
+
243
+ ```ts
244
+ import {
245
+ buildArtifactContract,
246
+ createAdjacentArtifactSidecar,
247
+ createArtifactPacket,
248
+ evaluateArtifact,
249
+ fingerprintValue,
250
+ prepareArtifactRevision,
251
+ validateArtifactPacket,
252
+ type ArtifactContract,
253
+ type Claim,
254
+ type EvidenceRef,
255
+ type PrepareArtifactRevisionOptions,
256
+ } from "semiotic/artifact"
257
+ import type { BarChartProps } from "semiotic/ordinal"
258
+
259
+ export const originalRows = [
260
+ { region: "North", total: 12 },
261
+ { region: "South", total: 30 },
262
+ { region: "West", total: 18 },
263
+ ]
264
+
265
+ export const correctedRows = [
266
+ { region: "North", total: 12 },
267
+ { region: "South", total: 30 },
268
+ { region: "West", total: 36 },
269
+ ]
270
+
271
+ // Fixed teaching-fixture times describe the example, not a verification run.
272
+ const originalAt = "2026-08-01T12:00:00Z"
273
+ export const correctionAt = "2026-08-02T12:00:00Z"
274
+ const reason = "The source corrected West from 18 to 36 units."
275
+
276
+ export function sourceChartProps(data = originalRows) {
277
+ const sum = data.reduce((total, row) => total + row.total, 0)
278
+ const largest = data.reduce((winner, row) => (row.total > winner.total ? row : winner))
279
+ return {
280
+ data: data.map((row) => ({ ...row })),
281
+ categoryAccessor: "region",
282
+ valueAccessor: "total",
283
+ title: "Regional totals",
284
+ description: "Three synthetic regional totals, measured in the same unit.",
285
+ summary: `${largest.region} has the largest total: ${largest.total} units. All regions total ${sum} units.`,
286
+ accessibleTable: true,
287
+ height: 280,
288
+ responsiveWidth: true,
289
+ } satisfies BarChartProps<(typeof originalRows)[number]>
290
+ }
291
+
292
+ function sourceEvidence(revision: "1" | "2"): EvidenceRef {
293
+ return {
294
+ id: `regional-source-v${revision}`,
295
+ role: "source-data",
296
+ label: `Synthetic regional totals, revision ${revision}`,
297
+ source: { name: "Authored teaching fixture", version: revision },
298
+ dataVersion: revision,
299
+ fingerprint: fingerprintValue(revision === "1" ? originalRows : correctedRows).fingerprint,
300
+ observedAt: revision === "1" ? originalAt : correctionAt,
301
+ }
302
+ }
303
+
304
+ function claims(revision: "1" | "2"): Claim[] {
305
+ return [
306
+ {
307
+ id: `regional-total-v${revision}`,
308
+ text: revision === "1" ? "The total is 60 units." : "The total is 78 units.",
309
+ kind: "aggregation",
310
+ status: "supported",
311
+ evidenceIds: [`regional-source-v${revision}`],
312
+ scope: { unit: "units", coverage: "three synthetic regions" },
313
+ authoredBy: { kind: "system", name: "Deterministic teaching fixture" },
314
+ review: { status: "proposed" },
315
+ },
316
+ {
317
+ id: `regional-largest-v${revision}`,
318
+ text:
319
+ revision === "1"
320
+ ? "South has the largest total: 30 units."
321
+ : "West has the largest total: 36 units.",
322
+ kind: "observation",
323
+ status: "supported",
324
+ evidenceIds: [`regional-source-v${revision}`],
325
+ scope: { unit: "units", coverage: "three synthetic regions" },
326
+ authoredBy: { kind: "system", name: "Deterministic teaching fixture" },
327
+ review: { status: "proposed" },
328
+ },
329
+ ]
330
+ }
331
+
332
+ export function originalSourceArtifact() {
333
+ const props = sourceChartProps()
334
+ const contract = buildArtifactContract("BarChart", props, {
335
+ id: "regional-totals",
336
+ revision: "1",
337
+ intents: ["comparison"],
338
+ purpose: { stakes: "informational" },
339
+ claims: claims("1"),
340
+ evidence: [sourceEvidence("1")],
341
+ time: {
342
+ observedAt: originalAt,
343
+ presentation: { state: "historical", label: "Original synthetic source" },
344
+ revision: { status: "original" },
345
+ },
346
+ reception: {
347
+ channels: [{ channel: "visual" }, { channel: "agent" }],
348
+ description: props.description,
349
+ dataFallback: true,
350
+ },
351
+ form: {
352
+ chartFamily: "ordinal",
353
+ whyThisForm: "Bar lengths compare totals in the same unit.",
354
+ },
355
+ contestability: { sourceRequestsAllowed: true },
356
+ accountability: {
357
+ authors: [{ kind: "system", name: "Semiotic documentation fixture" }],
358
+ reviews: [{ id: "editorial-review", status: "pending" }],
359
+ },
360
+ inheritance: { privacy: "public", rawDataDefault: "exclude" },
361
+ fieldStatus: {
362
+ "accountability.reviews": {
363
+ status: "manual",
364
+ reason: "This teaching example records no human editorial approval.",
365
+ suppliedBy: "system",
366
+ },
367
+ },
368
+ })
369
+ return { props, contract }
370
+ }
371
+
372
+ export function sourceCorrectionOptions(current: ArtifactContract): PrepareArtifactRevisionOptions {
373
+ return {
374
+ revision: "2",
375
+ data: correctedRows.map((row) => ({ ...row })),
376
+ evidence: [...current.evidence, sourceEvidence("2")],
377
+ presentation: {
378
+ summary: sourceChartProps(correctedRows).summary,
379
+ description: "Corrected synthetic regional totals; West changed from 18 to 36 units.",
380
+ },
381
+ time: {
382
+ observedAt: correctionAt,
383
+ presentation: { state: "historical", label: "Corrected synthetic source" },
384
+ revision: { status: "corrected", reason, correctionId: "regional-total-correction" },
385
+ },
386
+ claimTransitions: claims("2").map((replacement, index) => ({
387
+ action: "supersede",
388
+ previousClaimId: claims("1")[index].id,
389
+ replacement,
390
+ correction: {
391
+ id: index === 0 ? "regional-total-correction" : "regional-largest-correction",
392
+ reason,
393
+ createdAt: correctionAt,
394
+ createdBy: { kind: "system", name: "Deterministic teaching fixture" },
395
+ },
396
+ })),
397
+ policy: "exploratory",
398
+ now: correctionAt,
399
+ recommendRepresentation: false,
400
+ groundingChannels: ["agent"],
401
+ }
402
+ }
403
+
404
+ export function reviseSourceArtifact(reassessClaims = true) {
405
+ const original = originalSourceArtifact()
406
+ const options = sourceCorrectionOptions(original.contract)
407
+ return prepareArtifactRevision("BarChart", original.props, original.contract, {
408
+ ...options,
409
+ claimTransitions: reassessClaims ? options.claimTransitions : [],
410
+ })
411
+ }
412
+
413
+ export function sourceCorrectionSidecar(contract: ArtifactContract) {
414
+ return createAdjacentArtifactSidecar(
415
+ createArtifactPacket(contract, {
416
+ format: "static-package",
417
+ includeEvidenceSamples: false,
418
+ }),
419
+ "regional-totals",
420
+ )
421
+ }
422
+
423
+ export const sourceCorrectionNote = `Regional totals: maintenance context
424
+
425
+ Purpose: compare three synthetic totals in the same unit.
426
+ Component: BarChart from semiotic/ordinal.
427
+ Choice rationale: React charting with exact values and explicit correction history.
428
+ Constraint: preserve the project's dependency policy; changed requirements may justify another library.
429
+ Version: inspect the installed package and lockfile before editing.
430
+ Verification: this optional note stores no execution result or human approval.
431
+ Recheck: category/value mapping, arithmetic, summary, claim transitions and accessible route.
432
+ Limits: a matching fingerprint does not authenticate the source or prove arbitrary prose.
433
+ Files: retain chart configuration/data separately from the artifact-contract sidecar.
434
+ Documentation: /tasks/correct-published-chart (check its build identity against your installation).
435
+ `
436
+
437
+ /** A missing sidecar carries no evidence of source identity or prior review. */
438
+ export function inspectSourceHandoff(props: ReturnType<typeof sourceChartProps>, packet?: unknown) {
439
+ if (packet === undefined) {
440
+ return {
441
+ status: "unavailable" as const,
442
+ message:
443
+ "Correction context unavailable. Chart values remain available, but source identity, previous claims and review history were not transferred.",
444
+ }
445
+ }
446
+ const validation = validateArtifactPacket(packet)
447
+ if (!validation.valid || !validation.packet) {
448
+ return {
449
+ status: "refused" as const,
450
+ message: `Sidecar refused: ${validation.errors.join("; ")}`,
451
+ }
452
+ }
453
+ const contract = validation.packet.contract
454
+ const evaluation = evaluateArtifact("BarChart", props, contract, {
455
+ policy: "exploratory",
456
+ now: correctionAt,
457
+ recommendRepresentation: false,
458
+ })
459
+ if (
460
+ evaluation.obligations.some(({ id, status }) => id.startsWith("identity.") && status !== "pass")
461
+ ) {
462
+ return {
463
+ status: "refused" as const,
464
+ message:
465
+ "Sidecar refused: its identity does not establish a match with this chart configuration and data.",
466
+ }
467
+ }
468
+ return {
469
+ status: "available" as const,
470
+ message: `Revision ${contract.artifact.revision} correction context matches this chart. Human editorial approval remains unrecorded.`,
471
+ contract,
472
+ }
473
+ }
474
+ ```
475
+
476
+ ### Example styles
477
+
478
+ Browser presentation; source: docs/src/pages/tasks/examples/source-correction.css.
479
+
480
+ ```css
481
+ .source-correction-example {
482
+ min-width: 0;
483
+ }
484
+
485
+ .source-correction-example table {
486
+ border-collapse: collapse;
487
+ margin-block: 1rem;
488
+ width: 100%;
489
+ }
490
+
491
+ .source-correction-example th,
492
+ .source-correction-example td {
493
+ border-bottom: 1px solid var(--border-color, #ccc);
494
+ padding: 0.5rem;
495
+ text-align: left;
496
+ }
497
+
498
+ .source-correction-actions {
499
+ display: flex;
500
+ flex-wrap: wrap;
501
+ gap: 0.5rem;
502
+ margin-block: 1rem;
503
+ }
504
+
505
+ .source-correction-actions button {
506
+ font: inherit;
507
+ padding: 0.45rem 0.7rem;
508
+ }
509
+
510
+ .source-correction-example label {
511
+ display: block;
512
+ margin-block: 0.6rem;
513
+ }
514
+
515
+ .source-correction-example pre {
516
+ white-space: pre-wrap;
517
+ overflow-wrap: anywhere;
518
+ }
519
+
520
+ .source-correction-example code {
521
+ overflow-wrap: anywhere;
522
+ }
523
+ ```
524
+
525
+ ## Check the result
526
+
527
+ Evidence state: supported-in-scope. Only the content digests and environment recorded here; not a release range or an adoption result.
528
+
529
+ - Changing data without revisiting active claims is refused.
530
+ - The original total 60 and South-largest claims are superseded; replacements describe total 78 and West 36.
531
+ - The original chart and evidence remain intact while corrected identities change.
532
+ - Exported context retains the revision history; image-only delivery reports missing context.
533
+ - Publication and human-review obligations remain visible.
534
+
535
+ Run:
536
+
537
+ ```sh
538
+ npx vitest run docs/src/pages/tasks/examples/source-correction.test.ts
539
+ npx playwright test --config playwright.docs-examples.config.ts integration-tests/docs-examples-tasks.spec.ts
540
+ ```
541
+
542
+ Recorded execution: 2026-09-11T03:13:52.427Z. Agent-observed execution of repository tests; independent review is not recorded.
543
+
544
+ Not assessed:
545
+
546
+ - Authenticity of upstream data and the truth of arbitrary editorial statements.
547
+ - Independent human review, publication policy and reader reception.
548
+ - Benefits to fresh-agent maintenance: the offline study defines cases but measures no adoption outcome.
549
+
550
+ ## Repair and recheck
551
+
552
+ ### prepareArtifactRevision refuses a changed source.
553
+
554
+ Supply explicit transitions for every affected active claim. Retain prior evidence and give the correction a distinct revision and new source identity.
555
+
556
+ Recheck: Inspect superseded claims, replacement IDs, correction history and remaining manual obligations.
557
+
558
+ ### A recipient has the image but cannot inspect source or review context.
559
+
560
+ Provide chart config/data and an optional artifact packet or adjacent sidecar. The sidecar contains the contract and transfer report, not a complete dataset.
561
+
562
+ Recheck: Check the transfer's omissions. Treat unavailable context as unknown; do not manufacture approval.
563
+
564
+ ## Exact API and mode guidance
565
+
566
+ Selected properties copied from ai/schema.json; retrieve the component resource for the full schema. React push mode follows the included behavior contracts.
567
+
568
+ Full component resource: semiotic://schema/BarChart. Machine packet: /tasks/correct-published-chart.json.
569
+
570
+ - **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.
571
+
572
+ - **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.
573
+
574
+ - **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.
575
+
576
+ ## Maintenance context
577
+
578
+ A published regional comparison needs source and claim continuity through a correction.
579
+
580
+ - Affected arithmetic, ranking, source identity, claim transitions and review obligations after a change.
581
+
582
+ Removing a project note does not break the chart. Image-only transfer loses inspectable source/review context; retain config/data separately from the artifact sidecar.
583
+
584
+ 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.
585
+
586
+ ## Behavioral update
587
+
588
+ Status: source-only. Released introduction: not established.
589
+
590
+ Assumption to revisit: Updating source rows or matching an identity automatically refreshes all conclusions and approves publication.
591
+
592
+ Use explicit claim transitions for the changed source, preserve old evidence and inspect correction history, transfer losses and outstanding human review.
593
+
594
+ - Both total and ranking claims must change in this fixture.
595
+ - A matching version string does not establish deployed parity or source authenticity.
596
+
597
+ This is current source guidance with no recorded release introduction or editorial approval.
@@ -0,0 +1,40 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "generatedBy": "scripts/generate-ai-task-packets.mjs",
4
+ "channel": "source",
5
+ "tasks": [
6
+ {
7
+ "id": "compare-category-totals",
8
+ "title": "Compare category totals you can check",
9
+ "summary": "Compare three totals in React, inspect their exact values, and verify the server-rendered bar geometry.",
10
+ "route": "/tasks/compare-category-totals",
11
+ "packageVersion": "3.10.0",
12
+ "sourceRevision": "sha256:5e5a22378c5f0f2ba897818a2d9a0daedca6f6a7b7465f8e248548b231ec1eae",
13
+ "markdown": "/tasks/compare-category-totals.md",
14
+ "json": "/tasks/compare-category-totals.json",
15
+ "evidenceStatus": "supported-in-scope"
16
+ },
17
+ {
18
+ "id": "update-live-chart",
19
+ "title": "Update a live chart by record ID",
20
+ "summary": "Maintain a bounded window of incoming records, apply corrections, and reconcile the display after reconnecting.",
21
+ "route": "/tasks/update-live-chart",
22
+ "packageVersion": "3.10.0",
23
+ "sourceRevision": "sha256:6b65d57a034fd350a344bdb5e68c916519ec0877bd488029ff09c0632285fc31",
24
+ "markdown": "/tasks/update-live-chart.md",
25
+ "json": "/tasks/update-live-chart.json",
26
+ "evidenceStatus": "supported-in-scope"
27
+ },
28
+ {
29
+ "id": "correct-published-chart",
30
+ "title": "Correct a chart after its source changes",
31
+ "summary": "Apply a source correction, replace affected claims explicitly, and preserve the context a later reader needs.",
32
+ "route": "/tasks/correct-published-chart",
33
+ "packageVersion": "3.10.0",
34
+ "sourceRevision": "sha256:468d1a308430272a298f6cd79a05bf89f244cb3dcb401a7e83303bd835f816ec",
35
+ "markdown": "/tasks/correct-published-chart.md",
36
+ "json": "/tasks/correct-published-chart.json",
37
+ "evidenceStatus": "supported-in-scope"
38
+ }
39
+ ]
40
+ }