@salesforce/afv-skills 1.14.0 → 1.16.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 (365) hide show
  1. package/package.json +1 -1
  2. package/skills/activating-datacloud/SKILL.md +0 -1
  3. package/skills/analyzing-omnistudio-dependencies/SKILL.md +0 -1
  4. package/skills/applying-slds/SKILL.md +322 -0
  5. package/skills/applying-slds/checklists.md +83 -0
  6. package/skills/applying-slds/examples.md +283 -0
  7. package/skills/applying-slds/guidance/README.md +83 -0
  8. package/skills/applying-slds/guidance/blueprints-index.md +213 -0
  9. package/skills/applying-slds/guidance/icons-guidance.md +186 -0
  10. package/skills/applying-slds/guidance/overviews/borders.md +236 -0
  11. package/skills/applying-slds/guidance/overviews/color.md +266 -0
  12. package/skills/applying-slds/guidance/overviews/display-density.md +366 -0
  13. package/skills/applying-slds/guidance/overviews/icons.md +240 -0
  14. package/skills/applying-slds/guidance/overviews/illustrations.md +235 -0
  15. package/skills/applying-slds/guidance/overviews/shadows.md +176 -0
  16. package/skills/applying-slds/guidance/overviews/spacing.md +216 -0
  17. package/skills/applying-slds/guidance/overviews/typography.md +323 -0
  18. package/skills/applying-slds/guidance/overviews/utilities.md +542 -0
  19. package/skills/applying-slds/guidance/slds-development-guide.md +288 -0
  20. package/skills/applying-slds/guidance/styling-hooks/borders.md +202 -0
  21. package/skills/applying-slds/guidance/styling-hooks/color/expressive-palette-hooks.md +153 -0
  22. package/skills/applying-slds/guidance/styling-hooks/color/index.md +171 -0
  23. package/skills/applying-slds/guidance/styling-hooks/color/semantic/accent-hooks.md +204 -0
  24. package/skills/applying-slds/guidance/styling-hooks/color/semantic/feedback-hooks.md +768 -0
  25. package/skills/applying-slds/guidance/styling-hooks/color/semantic/surface-hooks.md +337 -0
  26. package/skills/applying-slds/guidance/styling-hooks/color/system-hooks.md +132 -0
  27. package/skills/applying-slds/guidance/styling-hooks/index.md +327 -0
  28. package/skills/applying-slds/guidance/styling-hooks/shadows.md +238 -0
  29. package/skills/applying-slds/guidance/styling-hooks/spacing.md +254 -0
  30. package/skills/applying-slds/guidance/styling-hooks/typography.md +448 -0
  31. package/skills/applying-slds/guidance/utilities/alignment.md +119 -0
  32. package/skills/applying-slds/guidance/utilities/borders.md +131 -0
  33. package/skills/applying-slds/guidance/utilities/box.md +125 -0
  34. package/skills/applying-slds/guidance/utilities/color.md +165 -0
  35. package/skills/applying-slds/guidance/utilities/dark-mode.md +111 -0
  36. package/skills/applying-slds/guidance/utilities/description-list.md +168 -0
  37. package/skills/applying-slds/guidance/utilities/floats.md +117 -0
  38. package/skills/applying-slds/guidance/utilities/grid.md +264 -0
  39. package/skills/applying-slds/guidance/utilities/horizontal-list.md +110 -0
  40. package/skills/applying-slds/guidance/utilities/hyphenation.md +84 -0
  41. package/skills/applying-slds/guidance/utilities/index.md +205 -0
  42. package/skills/applying-slds/guidance/utilities/interactions.md +89 -0
  43. package/skills/applying-slds/guidance/utilities/layout.md +109 -0
  44. package/skills/applying-slds/guidance/utilities/line-clamp.md +131 -0
  45. package/skills/applying-slds/guidance/utilities/margin.md +155 -0
  46. package/skills/applying-slds/guidance/utilities/media-object.md +161 -0
  47. package/skills/applying-slds/guidance/utilities/name-value-list.md +152 -0
  48. package/skills/applying-slds/guidance/utilities/padding.md +155 -0
  49. package/skills/applying-slds/guidance/utilities/position.md +177 -0
  50. package/skills/applying-slds/guidance/utilities/print.md +114 -0
  51. package/skills/applying-slds/guidance/utilities/scrollable.md +126 -0
  52. package/skills/applying-slds/guidance/utilities/sizing.md +190 -0
  53. package/skills/applying-slds/guidance/utilities/themes.md +121 -0
  54. package/skills/applying-slds/guidance/utilities/truncate.md +127 -0
  55. package/skills/applying-slds/guidance/utilities/typography.md +166 -0
  56. package/skills/applying-slds/guidance/utilities/vertical-list.md +166 -0
  57. package/skills/applying-slds/guidance/utilities/visibility.md +228 -0
  58. package/skills/applying-slds/metadata/README.md +84 -0
  59. package/skills/applying-slds/metadata/blueprints/components/accordion.yaml +304 -0
  60. package/skills/applying-slds/metadata/blueprints/components/activity-timeline.yaml +92 -0
  61. package/skills/applying-slds/metadata/blueprints/components/alert.yaml +103 -0
  62. package/skills/applying-slds/metadata/blueprints/components/app-launcher.yaml +94 -0
  63. package/skills/applying-slds/metadata/blueprints/components/avatar-group.yaml +81 -0
  64. package/skills/applying-slds/metadata/blueprints/components/avatar.yaml +97 -0
  65. package/skills/applying-slds/metadata/blueprints/components/badges.yaml +102 -0
  66. package/skills/applying-slds/metadata/blueprints/components/brand-band.yaml +198 -0
  67. package/skills/applying-slds/metadata/blueprints/components/breadcrumbs.yaml +95 -0
  68. package/skills/applying-slds/metadata/blueprints/components/builder-header.yaml +192 -0
  69. package/skills/applying-slds/metadata/blueprints/components/button-groups.yaml +82 -0
  70. package/skills/applying-slds/metadata/blueprints/components/button-icons.yaml +295 -0
  71. package/skills/applying-slds/metadata/blueprints/components/buttons.yaml +230 -0
  72. package/skills/applying-slds/metadata/blueprints/components/cards.yaml +124 -0
  73. package/skills/applying-slds/metadata/blueprints/components/carousel.yaml +140 -0
  74. package/skills/applying-slds/metadata/blueprints/components/chat.yaml +179 -0
  75. package/skills/applying-slds/metadata/blueprints/components/checkbox-button-group.yaml +192 -0
  76. package/skills/applying-slds/metadata/blueprints/components/checkbox-button.yaml +204 -0
  77. package/skills/applying-slds/metadata/blueprints/components/checkbox-toggle.yaml +177 -0
  78. package/skills/applying-slds/metadata/blueprints/components/checkbox.yaml +108 -0
  79. package/skills/applying-slds/metadata/blueprints/components/color-picker.yaml +172 -0
  80. package/skills/applying-slds/metadata/blueprints/components/combobox.yaml +136 -0
  81. package/skills/applying-slds/metadata/blueprints/components/counter.yaml +147 -0
  82. package/skills/applying-slds/metadata/blueprints/components/data-tables.yaml +157 -0
  83. package/skills/applying-slds/metadata/blueprints/components/datepickers.yaml +130 -0
  84. package/skills/applying-slds/metadata/blueprints/components/datetime-picker.yaml +155 -0
  85. package/skills/applying-slds/metadata/blueprints/components/docked-composer.yaml +201 -0
  86. package/skills/applying-slds/metadata/blueprints/components/docked-form-footer.yaml +161 -0
  87. package/skills/applying-slds/metadata/blueprints/components/docked-utility-bar.yaml +175 -0
  88. package/skills/applying-slds/metadata/blueprints/components/drop-zone.yaml +115 -0
  89. package/skills/applying-slds/metadata/blueprints/components/dueling-picklist.yaml +196 -0
  90. package/skills/applying-slds/metadata/blueprints/components/dynamic-icons.yaml +128 -0
  91. package/skills/applying-slds/metadata/blueprints/components/dynamic-menu.yaml +141 -0
  92. package/skills/applying-slds/metadata/blueprints/components/expandable-section.yaml +115 -0
  93. package/skills/applying-slds/metadata/blueprints/components/expression.yaml +143 -0
  94. package/skills/applying-slds/metadata/blueprints/components/feeds.yaml +125 -0
  95. package/skills/applying-slds/metadata/blueprints/components/file-selector.yaml +154 -0
  96. package/skills/applying-slds/metadata/blueprints/components/files.yaml +119 -0
  97. package/skills/applying-slds/metadata/blueprints/components/form-element.yaml +145 -0
  98. package/skills/applying-slds/metadata/blueprints/components/global-header.yaml +120 -0
  99. package/skills/applying-slds/metadata/blueprints/components/global-navigation.yaml +100 -0
  100. package/skills/applying-slds/metadata/blueprints/components/icons.yaml +138 -0
  101. package/skills/applying-slds/metadata/blueprints/components/illustration.yaml +205 -0
  102. package/skills/applying-slds/metadata/blueprints/components/input.yaml +151 -0
  103. package/skills/applying-slds/metadata/blueprints/components/list-builder.yaml +127 -0
  104. package/skills/applying-slds/metadata/blueprints/components/lookups.yaml +132 -0
  105. package/skills/applying-slds/metadata/blueprints/components/map.yaml +118 -0
  106. package/skills/applying-slds/metadata/blueprints/components/menus.yaml +134 -0
  107. package/skills/applying-slds/metadata/blueprints/components/modals.yaml +152 -0
  108. package/skills/applying-slds/metadata/blueprints/components/notifications.yaml +88 -0
  109. package/skills/applying-slds/metadata/blueprints/components/page-headers.yaml +135 -0
  110. package/skills/applying-slds/metadata/blueprints/components/panels.yaml +149 -0
  111. package/skills/applying-slds/metadata/blueprints/components/path.yaml +154 -0
  112. package/skills/applying-slds/metadata/blueprints/components/picklist.yaml +125 -0
  113. package/skills/applying-slds/metadata/blueprints/components/pills.yaml +154 -0
  114. package/skills/applying-slds/metadata/blueprints/components/popovers.yaml +120 -0
  115. package/skills/applying-slds/metadata/blueprints/components/progress-bar.yaml +110 -0
  116. package/skills/applying-slds/metadata/blueprints/components/progress-indicator.yaml +133 -0
  117. package/skills/applying-slds/metadata/blueprints/components/progress-ring.yaml +102 -0
  118. package/skills/applying-slds/metadata/blueprints/components/prompt.yaml +126 -0
  119. package/skills/applying-slds/metadata/blueprints/components/publishers.yaml +178 -0
  120. package/skills/applying-slds/metadata/blueprints/components/radio-button-group.yaml +172 -0
  121. package/skills/applying-slds/metadata/blueprints/components/radio-group.yaml +112 -0
  122. package/skills/applying-slds/metadata/blueprints/components/rich-text-editor.yaml +135 -0
  123. package/skills/applying-slds/metadata/blueprints/components/scoped-notifications.yaml +188 -0
  124. package/skills/applying-slds/metadata/blueprints/components/scoped-tabs.yaml +97 -0
  125. package/skills/applying-slds/metadata/blueprints/components/select.yaml +127 -0
  126. package/skills/applying-slds/metadata/blueprints/components/setup-assistant.yaml +152 -0
  127. package/skills/applying-slds/metadata/blueprints/components/slider.yaml +111 -0
  128. package/skills/applying-slds/metadata/blueprints/components/spinners.yaml +135 -0
  129. package/skills/applying-slds/metadata/blueprints/components/split-view.yaml +112 -0
  130. package/skills/applying-slds/metadata/blueprints/components/summary-detail.yaml +103 -0
  131. package/skills/applying-slds/metadata/blueprints/components/tabs.yaml +138 -0
  132. package/skills/applying-slds/metadata/blueprints/components/textarea.yaml +116 -0
  133. package/skills/applying-slds/metadata/blueprints/components/tiles.yaml +108 -0
  134. package/skills/applying-slds/metadata/blueprints/components/timepicker.yaml +111 -0
  135. package/skills/applying-slds/metadata/blueprints/components/toast.yaml +154 -0
  136. package/skills/applying-slds/metadata/blueprints/components/tooltips.yaml +107 -0
  137. package/skills/applying-slds/metadata/blueprints/components/tree-grid.yaml +116 -0
  138. package/skills/applying-slds/metadata/blueprints/components/trees.yaml +116 -0
  139. package/skills/applying-slds/metadata/blueprints/components/trial-bar.yaml +112 -0
  140. package/skills/applying-slds/metadata/blueprints/components/vertical-navigation.yaml +130 -0
  141. package/skills/applying-slds/metadata/blueprints/components/vertical-tabs.yaml +140 -0
  142. package/skills/applying-slds/metadata/blueprints/components/visual-picker.yaml +150 -0
  143. package/skills/applying-slds/metadata/blueprints/components/welcome-mat.yaml +136 -0
  144. package/skills/applying-slds/metadata/hooks-index.json +6272 -0
  145. package/skills/applying-slds/metadata/icon-metadata.json +38466 -0
  146. package/skills/applying-slds/metadata/utilities-index.json +21912 -0
  147. package/skills/applying-slds/references/component-selection.md +112 -0
  148. package/skills/applying-slds/references/icons-decision-guide.md +124 -0
  149. package/skills/applying-slds/references/styling-decision-guide.md +228 -0
  150. package/skills/applying-slds/references/utilities-quick-ref.md +125 -0
  151. package/skills/applying-slds/scripts/search-blueprints.cjs +117 -0
  152. package/skills/applying-slds/scripts/search-hooks.cjs +139 -0
  153. package/skills/applying-slds/scripts/search-icons.cjs +174 -0
  154. package/skills/applying-slds/scripts/search-utilities.cjs +161 -0
  155. package/skills/building-mobile-apps/SKILL.md +0 -1
  156. package/skills/building-omnistudio-callable-apex/SKILL.md +0 -1
  157. package/skills/building-omnistudio-datamapper/SKILL.md +0 -1
  158. package/skills/building-omnistudio-flexcard/SKILL.md +0 -1
  159. package/skills/building-omnistudio-integration-procedure/SKILL.md +0 -1
  160. package/skills/building-omnistudio-omniscript/SKILL.md +0 -1
  161. package/skills/building-sf-integrations/SKILL.md +0 -1
  162. package/skills/configuring-connected-apps/SKILL.md +0 -1
  163. package/skills/connecting-datacloud/SKILL.md +0 -1
  164. package/skills/creating-b2b-commerce-store/SKILL.md +0 -1
  165. package/skills/debugging-apex-logs/SKILL.md +0 -1
  166. package/skills/deploying-metadata/SKILL.md +0 -1
  167. package/skills/deploying-omnistudio-datapacks/SKILL.md +0 -1
  168. package/skills/developing-agentforce/SKILL.md +0 -1
  169. package/skills/fetching-salesforce-docs/SKILL.md +0 -1
  170. package/skills/generating-custom-lightning-type/SKILL.md +17 -39
  171. package/skills/generating-custom-lightning-type/assets/primitive-types-and-constraints.md +41 -0
  172. package/skills/generating-custom-lightning-type/references/widget-rendition.md +124 -0
  173. package/skills/generating-lwc-components/SKILL.md +0 -1
  174. package/skills/generating-mermaid-diagrams/SKILL.md +0 -1
  175. package/skills/generating-visual-diagrams/SKILL.md +0 -1
  176. package/skills/handling-sf-data/SKILL.md +0 -1
  177. package/skills/harmonizing-datacloud/SKILL.md +0 -1
  178. package/skills/integrating-b2b-commerce-open-code-components/SKILL.md +0 -1
  179. package/skills/investigating-agentforce-architecture/README.md +156 -0
  180. package/skills/investigating-agentforce-architecture/SKILL.md +230 -0
  181. package/skills/investigating-agentforce-architecture/assets/cli/describe_sobject.yaml +16 -0
  182. package/skills/investigating-agentforce-architecture/assets/cli/describe_tooling_sobject.yaml +17 -0
  183. package/skills/investigating-agentforce-architecture/assets/cli/list_metadata_genaiprompttemplate.yaml +17 -0
  184. package/skills/investigating-agentforce-architecture/assets/cli/org_display.yaml +15 -0
  185. package/skills/investigating-agentforce-architecture/assets/cli/retrieve_genai_plugin.yaml +18 -0
  186. package/skills/investigating-agentforce-architecture/assets/cli/show_access_token.yaml +27 -0
  187. package/skills/investigating-agentforce-architecture/assets/mermaid/action_tree.mmd +20 -0
  188. package/skills/investigating-agentforce-architecture/assets/mermaid/data_flow.mmd +19 -0
  189. package/skills/investigating-agentforce-architecture/assets/mermaid/dependency_graph.mmd +19 -0
  190. package/skills/investigating-agentforce-architecture/assets/mermaid/invocation_sequence.mmd +20 -0
  191. package/skills/investigating-agentforce-architecture/assets/mermaid/planner_state.mmd +18 -0
  192. package/skills/investigating-agentforce-architecture/assets/soql/apex_class_bodies_by_ids.soql +3 -0
  193. package/skills/investigating-agentforce-architecture/assets/soql/apex_class_bodies_by_names.soql +3 -0
  194. package/skills/investigating-agentforce-architecture/assets/soql/bot_definition_details.soql +3 -0
  195. package/skills/investigating-agentforce-architecture/assets/soql/bot_version_lookup.soql +4 -0
  196. package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_by_ids.soql +3 -0
  197. package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_ids_by_names.soql +3 -0
  198. package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_view_by_durable_ids.soql +4 -0
  199. package/skills/investigating-agentforce-architecture/assets/soql/flow_metadata_by_id.soql +3 -0
  200. package/skills/investigating-agentforce-architecture/assets/soql/functions_by_plugins.soql +5 -0
  201. package/skills/investigating-agentforce-architecture/assets/soql/planner_attrs_by_parent_ids.soql +3 -0
  202. package/skills/investigating-agentforce-architecture/assets/soql/planner_bundle_functions.soql +3 -0
  203. package/skills/investigating-agentforce-architecture/assets/soql/planner_definition_by_agent_chain.soql +3 -0
  204. package/skills/investigating-agentforce-architecture/assets/soql/plugin_functions_by_plugin_ids.soql +3 -0
  205. package/skills/investigating-agentforce-architecture/assets/soql/plugin_instructions_by_plugin_ids.soql +3 -0
  206. package/skills/investigating-agentforce-architecture/assets/soql/plugins_by_planner.soql +4 -0
  207. package/skills/investigating-agentforce-architecture/references/architecture_sections.md +243 -0
  208. package/skills/investigating-agentforce-architecture/references/contract.json +244 -0
  209. package/skills/investigating-agentforce-architecture/references/soql_fields.md +512 -0
  210. package/skills/investigating-agentforce-architecture/scripts/_shared/__init__.py +1 -0
  211. package/skills/investigating-agentforce-architecture/scripts/_shared/fs_guard.py +329 -0
  212. package/skills/investigating-agentforce-architecture/scripts/_shared/paths.py +110 -0
  213. package/skills/investigating-agentforce-architecture/scripts/_shared/runtime.py +59 -0
  214. package/skills/investigating-agentforce-architecture/scripts/_shared/sql.py +10 -0
  215. package/skills/investigating-agentforce-architecture/scripts/cache_check.py +234 -0
  216. package/skills/investigating-agentforce-architecture/scripts/config.py +131 -0
  217. package/skills/investigating-agentforce-architecture/scripts/fetch_soql.py +689 -0
  218. package/skills/investigating-agentforce-architecture/scripts/finalize.py +295 -0
  219. package/skills/investigating-agentforce-architecture/scripts/main.py +2835 -0
  220. package/skills/investigating-agentforce-architecture/scripts/metadata_listing.py +265 -0
  221. package/skills/investigating-agentforce-architecture/scripts/parallel_retrieve.py +69 -0
  222. package/skills/investigating-agentforce-architecture/scripts/parse_bundle.py +215 -0
  223. package/skills/investigating-agentforce-architecture/scripts/parse_wave.py +845 -0
  224. package/skills/investigating-agentforce-architecture/scripts/probe_channels.py +302 -0
  225. package/skills/investigating-agentforce-architecture/scripts/render_architecture.py +1043 -0
  226. package/skills/investigating-agentforce-architecture/scripts/resolve_bot.py +255 -0
  227. package/skills/investigating-agentforce-architecture/scripts/resolve_invocation_target.py +130 -0
  228. package/skills/investigating-agentforce-architecture/scripts/rest_client.py +763 -0
  229. package/skills/investigating-agentforce-architecture/scripts/retrieve_planner.py +13 -0
  230. package/skills/investigating-agentforce-architecture/scripts/sf_cli.py +242 -0
  231. package/skills/investigating-agentforce-architecture/scripts/soql_loader.py +253 -0
  232. package/skills/investigating-agentforce-architecture/scripts/summarize_tree.py +143 -0
  233. package/skills/investigating-agentforce-architecture/scripts/tests/__init__.py +0 -0
  234. package/skills/investigating-agentforce-architecture/scripts/tests/_bootstrap.py +23 -0
  235. package/skills/investigating-agentforce-architecture/scripts/tests/fixtures/__init__.py +0 -0
  236. package/skills/investigating-agentforce-architecture/scripts/tests/fixtures/genai_payloads.py +400 -0
  237. package/skills/investigating-agentforce-architecture/scripts/tests/test_cache_check.py +307 -0
  238. package/skills/investigating-agentforce-architecture/scripts/tests/test_cache_check_main.py +283 -0
  239. package/skills/investigating-agentforce-architecture/scripts/tests/test_config.py +115 -0
  240. package/skills/investigating-agentforce-architecture/scripts/tests/test_end_to_end_fixture.py +651 -0
  241. package/skills/investigating-agentforce-architecture/scripts/tests/test_finalize.py +278 -0
  242. package/skills/investigating-agentforce-architecture/scripts/tests/test_flow_children_inflation.py +582 -0
  243. package/skills/investigating-agentforce-architecture/scripts/tests/test_fs_guard.py +113 -0
  244. package/skills/investigating-agentforce-architecture/scripts/tests/test_iterative_wave_b.py +478 -0
  245. package/skills/investigating-agentforce-architecture/scripts/tests/test_main_pipeline.py +3359 -0
  246. package/skills/investigating-agentforce-architecture/scripts/tests/test_parallel_retrieve.py +131 -0
  247. package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_bundle.py +400 -0
  248. package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave.py +644 -0
  249. package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_classifiers.py +224 -0
  250. package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_helpers.py +380 -0
  251. package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_main.py +397 -0
  252. package/skills/investigating-agentforce-architecture/scripts/tests/test_per_branch_visited.py +244 -0
  253. package/skills/investigating-agentforce-architecture/scripts/tests/test_probe_channels.py +359 -0
  254. package/skills/investigating-agentforce-architecture/scripts/tests/test_probe_cli_recipes.py +185 -0
  255. package/skills/investigating-agentforce-architecture/scripts/tests/test_render_architecture.py +810 -0
  256. package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_bot.py +203 -0
  257. package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_creds.py +157 -0
  258. package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_invocation_target.py +145 -0
  259. package/skills/investigating-agentforce-architecture/scripts/tests/test_rest_client.py +1253 -0
  260. package/skills/investigating-agentforce-architecture/scripts/tests/test_runtime_override.py +100 -0
  261. package/skills/investigating-agentforce-architecture/scripts/tests/test_sf_cli.py +261 -0
  262. package/skills/investigating-agentforce-architecture/scripts/tests/test_signature_stamping.py +466 -0
  263. package/skills/investigating-agentforce-architecture/scripts/tests/test_soql_loader.py +501 -0
  264. package/skills/investigating-agentforce-architecture/scripts/tests/test_summarize_tree.py +241 -0
  265. package/skills/investigating-agentforce-architecture/scripts/tests/test_write_emit_ctx.py +480 -0
  266. package/skills/investigating-agentforce-architecture/tools/emit_env.py +157 -0
  267. package/skills/investigating-agentforce-architecture/tools/emit_result.py +262 -0
  268. package/skills/investigating-agentforce-architecture/tools/sanitize.py +33 -0
  269. package/skills/investigating-agentforce-architecture/tools/write_emit_ctx.py +332 -0
  270. package/skills/investigating-agentforce-d360/README.md +123 -0
  271. package/skills/investigating-agentforce-d360/SKILL.md +163 -0
  272. package/skills/investigating-agentforce-d360/assets/dc/app_generation.sql +51 -0
  273. package/skills/investigating-agentforce-d360/assets/dc/content_category.sql +44 -0
  274. package/skills/investigating-agentforce-d360/assets/dc/content_quality.sql +41 -0
  275. package/skills/investigating-agentforce-d360/assets/dc/discover_sessions.sql +36 -0
  276. package/skills/investigating-agentforce-d360/assets/dc/feedback.sql +47 -0
  277. package/skills/investigating-agentforce-d360/assets/dc/feedback_details.sql +38 -0
  278. package/skills/investigating-agentforce-d360/assets/dc/gateway_records.sql +45 -0
  279. package/skills/investigating-agentforce-d360/assets/dc/gateway_request_llm.sql +50 -0
  280. package/skills/investigating-agentforce-d360/assets/dc/gateway_request_metadata.sql +44 -0
  281. package/skills/investigating-agentforce-d360/assets/dc/gateway_request_tags.sql +42 -0
  282. package/skills/investigating-agentforce-d360/assets/dc/gateway_requests.sql +89 -0
  283. package/skills/investigating-agentforce-d360/assets/dc/gateway_responses.sql +43 -0
  284. package/skills/investigating-agentforce-d360/assets/dc/generations.sql +52 -0
  285. package/skills/investigating-agentforce-d360/assets/dc/interactions.sql +53 -0
  286. package/skills/investigating-agentforce-d360/assets/dc/messages.sql +53 -0
  287. package/skills/investigating-agentforce-d360/assets/dc/messaging_session.sql +37 -0
  288. package/skills/investigating-agentforce-d360/assets/dc/moment_interactions.sql +34 -0
  289. package/skills/investigating-agentforce-d360/assets/dc/moments.sql +39 -0
  290. package/skills/investigating-agentforce-d360/assets/dc/participants.sql +48 -0
  291. package/skills/investigating-agentforce-d360/assets/dc/sessions.sql +78 -0
  292. package/skills/investigating-agentforce-d360/assets/dc/steps.sql +64 -0
  293. package/skills/investigating-agentforce-d360/assets/dc/tag_associations.sql +46 -0
  294. package/skills/investigating-agentforce-d360/assets/dc/tag_definition_associations.sql +37 -0
  295. package/skills/investigating-agentforce-d360/assets/dc/tag_definitions.sql +50 -0
  296. package/skills/investigating-agentforce-d360/assets/dc/tags.sql +37 -0
  297. package/skills/investigating-agentforce-d360/assets/dc/telemetry_spans.sql +55 -0
  298. package/skills/investigating-agentforce-d360/references/artifacts.md +50 -0
  299. package/skills/investigating-agentforce-d360/references/dc_dmo_fields.md +823 -0
  300. package/skills/investigating-agentforce-d360/references/dc_pipeline_contract.md +608 -0
  301. package/skills/investigating-agentforce-d360/scripts/_shared/__init__.py +2 -0
  302. package/skills/investigating-agentforce-d360/scripts/_shared/cli_override.py +98 -0
  303. package/skills/investigating-agentforce-d360/scripts/_shared/fs_guard.py +334 -0
  304. package/skills/investigating-agentforce-d360/scripts/_shared/paths.py +155 -0
  305. package/skills/investigating-agentforce-d360/scripts/_shared/runtime.py +59 -0
  306. package/skills/investigating-agentforce-d360/scripts/_shared/sql.py +14 -0
  307. package/skills/investigating-agentforce-d360/scripts/assemble_dc.py +1624 -0
  308. package/skills/investigating-agentforce-d360/scripts/config.py +45 -0
  309. package/skills/investigating-agentforce-d360/scripts/dc.py +188 -0
  310. package/skills/investigating-agentforce-d360/scripts/discover_sessions.py +556 -0
  311. package/skills/investigating-agentforce-d360/scripts/fetch_dc.py +1045 -0
  312. package/skills/investigating-agentforce-d360/scripts/render_dc.py +1750 -0
  313. package/skills/investigating-agentforce-d360/scripts/resolve_session.py +264 -0
  314. package/skills/investigating-agentforce-d360/scripts/storage.py +92 -0
  315. package/skills/investigating-agentforce-d360/scripts/tests/__init__.py +0 -0
  316. package/skills/investigating-agentforce-d360/scripts/tests/_bootstrap.py +15 -0
  317. package/skills/investigating-agentforce-d360/scripts/tests/fixtures/__init__.py +0 -0
  318. package/skills/investigating-agentforce-d360/scripts/tests/fixtures/synthetic_session.py +424 -0
  319. package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_bootstrap_and_mode.py +115 -0
  320. package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_gateway_direct.py +220 -0
  321. package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_gateway_direct_integration.py +158 -0
  322. package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_helpers.py +287 -0
  323. package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_integration.py +247 -0
  324. package/skills/investigating-agentforce-d360/scripts/tests/test_dc_and_resolve_session.py +433 -0
  325. package/skills/investigating-agentforce-d360/scripts/tests/test_discover_sessions.py +458 -0
  326. package/skills/investigating-agentforce-d360/scripts/tests/test_discover_sessions_grep_ci.py +193 -0
  327. package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_helpers.py +266 -0
  328. package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_identity.py +528 -0
  329. package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_main.py +251 -0
  330. package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_waterfall.py +229 -0
  331. package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_waterfall_full.py +283 -0
  332. package/skills/investigating-agentforce-d360/scripts/tests/test_identity_coherence.py +327 -0
  333. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_branches.py +256 -0
  334. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_gateway_direct.py +130 -0
  335. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_helpers.py +291 -0
  336. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_integration.py +220 -0
  337. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_planner_llm_calls.py +284 -0
  338. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_show_prompts_gating.py +215 -0
  339. package/skills/investigating-agentforce-d360/scripts/tests/test_resolve_from_disk.py +100 -0
  340. package/skills/investigating-agentforce-d360/scripts/tests/test_resolve_session_main.py +149 -0
  341. package/skills/investigating-agentforce-d360/scripts/tests/test_runtime_override.py +104 -0
  342. package/skills/investigating-agentforce-d360/scripts/tests/test_session_shape.py +95 -0
  343. package/skills/investigating-agentforce-d360/scripts/tests/test_session_shape_dropped_by_stdm.py +85 -0
  344. package/skills/managing-managed-event-subscription/SKILL.md +152 -0
  345. package/skills/managing-managed-event-subscription/assets/managed-event-subscription-template.xml +20 -0
  346. package/skills/managing-managed-event-subscription/references/delete-guide.md +57 -0
  347. package/skills/managing-managed-event-subscription/references/topic-name-formats.md +26 -0
  348. package/skills/managing-managed-event-subscription/references/update-constraints.md +30 -0
  349. package/skills/modeling-omnistudio-epc-catalog/SKILL.md +0 -1
  350. package/skills/observing-agentforce/SKILL.md +0 -1
  351. package/skills/orchestrating-datacloud/SKILL.md +0 -1
  352. package/skills/preparing-datacloud/SKILL.md +0 -1
  353. package/skills/querying-soql/SKILL.md +0 -1
  354. package/skills/retrieving-datacloud/SKILL.md +0 -1
  355. package/skills/running-apex-tests/SKILL.md +0 -1
  356. package/skills/running-code-analyzer/SKILL.md +0 -1
  357. package/skills/segmenting-datacloud/SKILL.md +0 -1
  358. package/skills/testing-agentforce/SKILL.md +0 -1
  359. package/skills/uplifting-components-to-slds2/SKILL.md +3 -2
  360. package/skills/uplifting-components-to-slds2/references/color-hooks-decision-guide.md +30 -9
  361. package/skills/uplifting-components-to-slds2/references/examples.md +24 -6
  362. package/skills/validating-slds/SKILL.md +262 -0
  363. package/skills/validating-slds/references/quality-checks.md +308 -0
  364. package/skills/validating-slds/references/report-format.md +302 -0
  365. package/skills/validating-slds/scripts/analyze-quality.cjs +521 -0
@@ -0,0 +1,123 @@
1
+ # investigating-agentforce-d360
2
+
3
+ Data Cloud 360° view of a single Agentforce session. Pulls 24 STDM + GenAI DMOs from Salesforce Data Cloud, assembles a hierarchical session tree (Interaction → Step → Generation → GatewayRequest), and renders a human-readable markdown summary.
4
+
5
+ This skill is **DC-only** — it reads runtime audit data that Salesforce Data Cloud has materialized for a session. It does not call into runtime telemetry, performance services, or any Splunk / observability surface.
6
+
7
+ Input: an Agent Session UUID (`019d…`) **or** a MessagingSession id (`0Mw…`, 15/18 chars), and an `sf` CLI org alias.
8
+
9
+ Output: per-DMO JSON artifacts plus three derived files under `~/.vibe/data/investigating-agentforce-d360/<org_id15>/<agent>__<version>/<session_id>/` (default; override per-script with `--data-dir <path>`):
10
+
11
+ - `dc.<name>.json` — 24 raw DMO results (one per query in the waterfall)
12
+ - `dc._session_manifest.json` — per-DMO row counts, classified `session_shape`, and empty-by-design reasons
13
+ - `dc._session_tree.json` — hierarchical join (the primary artifact; the summary is rendered from this)
14
+ - `dc._session_summary.md` — human-readable summary, up to 11 sections
15
+
16
+ ---
17
+
18
+ ## Runtime budget
19
+
20
+ **~10–30s typical** on a 15-turn session. The 5-wave fetch waterfall fans out 24 queries; later waves depend on ids harvested from earlier waves, so wave-to-wave is sequential, but each wave's queries run concurrently within the wave.
21
+
22
+ ---
23
+
24
+ ## Prerequisites
25
+
26
+ | Tool | Why |
27
+ |---|---|
28
+ | `sf` CLI (authenticated against the target org) | Shells `sf org display --target-org <alias> --json` for the Data Cloud Query REST API access token |
29
+ | Data Cloud enabled on the target org | Required — the STDM + GenAI DMOs must have materialized for the session |
30
+ | Python 3.10+ | `pathlib`, dataclasses, `\|` union types |
31
+
32
+ ---
33
+
34
+ ## Usage
35
+
36
+ Invoked conversationally through whatever skill-aware runtime hosts it. Example prompts:
37
+
38
+ | User says | Skill does |
39
+ |---|---|
40
+ | `trace session 019dface-... in my-org` | Run the 3-stage pipeline: fetch → assemble → render |
41
+ | `summarize what happened in 0MwTESTMSG12345AAA` | Resolve the messaging id → UUID, then run the pipeline |
42
+ | `find escalated sessions today on Messaging in my-org` | Run `discover_sessions.py`, print a numbered picker, user picks one, then run the pipeline |
43
+ | `walk me through this session` | Same as trace — the rendered summary reads top-to-bottom |
44
+
45
+ See `SKILL.md` for the full TRIGGER conditions, flag table, and the "DC-only blind spot" guidance.
46
+
47
+ ---
48
+
49
+ ## Pipeline
50
+
51
+ Three stages, each independently runnable:
52
+
53
+ ```
54
+ fetch_dc.py → 24 dc.<name>.json + dc._session_manifest.json (DC Query REST waterfall)
55
+ assemble_dc.py → dc._session_tree.json (in-memory hierarchical join)
56
+ render_dc.py → dc._session_summary.md (markdown rendering)
57
+ ```
58
+
59
+ `fetch_dc.py --session <sid> --org <alias>` chains all three by default. Pass `--no-assemble` / `--no-render` to stop early.
60
+
61
+ ---
62
+
63
+ ## Artifacts read order
64
+
65
+ 1. **`dc._session_summary.md`** — human-readable, top-to-bottom answers "what happened in this session?"
66
+ 2. **`dc._session_tree.json`** — single source of truth, the hierarchical join the summary was rendered from
67
+ 3. **`dc._session_manifest.json`** — open this when something looks missing in the tree (per-DMO row counts, empty-by-design reasons)
68
+ 4. **`dc.<name>.json`** — raw per-DMO rows, only when the manifest reports an unexpected count
69
+
70
+ See `references/artifacts.md` for the full inventory.
71
+
72
+ ---
73
+
74
+ ## What this skill does NOT answer
75
+
76
+ DC alone tells you **what happened** — every step, every LLM call, every gateway request, in order, with timestamps. It does **not** tell you **what could have happened but didn't**:
77
+
78
+ - Which **topics were eligible** for the classifier on a given turn
79
+ - Which **actions survived rule expressions** and were actually offered to the LLM
80
+ - Why the LLM picked one topic/action over another
81
+
82
+ If the user's question is about *why a particular topic or action was or wasn't used*, DC-only is almost never sufficient. See "DC-only blind spot" in `SKILL.md`.
83
+
84
+ For design-time architecture questions (topic/action tree, flow inventory, Apex classes, prompt templates), use the sibling skill `investigating-agentforce-architecture` instead.
85
+
86
+ ---
87
+
88
+ ## Layout
89
+
90
+ ```
91
+ investigating-agentforce-d360/
92
+ ├── SKILL.md ← runtime-parsed entry point (TRIGGER / DO NOT TRIGGER, flags, prompts)
93
+ ├── README.md ← this file
94
+ ├── scripts/
95
+ │ ├── fetch_dc.py ← 5-wave DC fetch + chained pipeline driver
96
+ │ ├── assemble_dc.py ← in-memory hierarchical join → dc._session_tree.json
97
+ │ ├── render_dc.py ← markdown rendering → dc._session_summary.md
98
+ │ ├── discover_sessions.py ← session picker by time / agent / channel / outcome / grep
99
+ │ ├── resolve_session.py ← `0Mw…` MessagingSession id → Agent Session UUID
100
+ │ ├── dc.py ← DC Query REST API client (load_sql, post)
101
+ │ ├── storage.py ← per-session JSON writer (path-validated)
102
+ │ ├── config.py ← shared constants + DATA_ROOT re-export
103
+ │ ├── _shared/ ← path / SQL helpers (paths, fs_guard, sql)
104
+ │ └── tests/ ← pytest suite (372 tests + 18 subtests)
105
+ ├── references/
106
+ │ ├── artifacts.md ← the full per-session artifact inventory
107
+ │ ├── dc_dmo_fields.md ← per-DMO field reference + cross-DMO join map
108
+ │ └── dc_pipeline_contract.md ← pipeline contract: tree shape + render-stage section list
109
+ └── assets/
110
+ └── dc/ ← 26 .sql templates loaded by dc.load_sql
111
+ ```
112
+
113
+ ---
114
+
115
+ ## Authored by
116
+
117
+ Raghul Jayagopal (RJ), Salesforce ANZ FDE.
118
+
119
+ ---
120
+
121
+ ## License
122
+
123
+ Apache-2.0. See repository root `LICENSE`.
@@ -0,0 +1,163 @@
1
+ ---
2
+ name: investigating-agentforce-d360
3
+ description: "Data Cloud 360° view of a single Agentforce session. Pulls 24 STDM + GenAI DMO rows via the DC Query REST API, assembles a hierarchical session tree (Interaction → Step → Generation → GatewayRequest), renders a human-readable summary with transcript + per-turn topic/action invocations + LLM generations + tool calls + audit chain. TRIGGER when user asks to trace, inspect, summarize, or describe a specific Agentforce session by session id (Agent Session UUID `019d…` or MessagingSession id `0Mw…`). Also triggers on session discovery — find/list/search sessions by time, agent, channel, outcome, or conversation text — when the user has no session id yet. DO NOT TRIGGER for design-time architecture questions (use investigating-agentforce-architecture instead) or for runtime perf/latency/SLO questions that require platform telemetry beyond Data Cloud."
4
+ metadata:
5
+ version: "1.0"
6
+ ---
7
+
8
+ # investigating-agentforce-d360 — Data Cloud 360° session view
9
+
10
+ Hierarchical session reconstruction from Data Cloud STDM + GenAI DMOs for one Agentforce session. Three stages — fetch → assemble → render. Typical wall-clock: ~10–30s for a ~15-turn session.
11
+
12
+ The pipeline is **DC-only**: it reads runtime audit rows that Data Cloud has materialized. It is **not** a runtime-availability tool — see "DC-only blind spot" below for what this skill cannot answer.
13
+
14
+ ## If the user hasn't given enough to proceed
15
+
16
+ When invoked with no session id AND no discovery criteria, print this block **verbatim** — do not paraphrase, do not pre-run any script. Trigger condition: the input is empty OR contains no session-id shape (neither a UUID nor a `0Mw…` messaging id) AND no discovery expression (no time phrase / `--agent` / `--channel` / `--outcome` / `--grep` / verbs like "find" / "list").
17
+
18
+ > Which session should I pull from Data Cloud, and in which org?
19
+ >
20
+ > I need:
21
+ > - **Session id** — either an Agent Session UUID (`019db7f6-…`) or a MessagingSession id (`0Mw…`, 15/18 chars).
22
+ > - **No session id?** — Tell me what you remember and I'll find it: how recent (e.g. "last 2 hours", "today", a date), which agent, which channel (Messaging / Builder / Voice), how it ended (escalated, user ended, transferred, timed out), or a phrase from the conversation. I'll show matching sessions as a numbered list — you pick one, I pull it.
23
+ > - **Org alias** — for `sf` CLI auth (the alias you configured with `sf org login`).
24
+ >
25
+ > Artifacts land in `~/.vibe/data/investigating-agentforce-d360/<org_id15>/<agent>__<ver>/<session_id>/` (override per-script with `--data-dir <path>`).
26
+
27
+ ## Session id forms — UUID or MessagingSession id
28
+
29
+ Both forms are accepted on `--session`:
30
+
31
+ | Form | Example | Resolution |
32
+ |---|---|---|
33
+ | Agent Session UUID | `019dface-0000-7000-8000-000000000002` | Pass-through |
34
+ | MessagingSession id (`0Mw` prefix) | `0MwTESTMSG12345AAA` | Resolved via `resolve_session.py` — live DC lookup on first fetch, disk-first thereafter |
35
+
36
+ **Multi-match is real.** One MessagingSession id can map to multiple Agent Session UUIDs. On multi-match the resolver prints every candidate and exits non-zero; the user re-invokes with a specific UUID.
37
+
38
+ Artifacts always land under `~/.vibe/data/investigating-agentforce-d360/<org_id15>/<agent>__<ver>/<session_id>/` (default; overridable per-script with `--data-dir <path>`) — the messaging id is a lookup key only, never a directory name. The dominant agent (first in `sorted(agents_observed)`) names the `<agent>__<ver>/` segment.
39
+
40
+ ## Resolving the script prefix
41
+
42
+ The default install puts the skill under the runtime's plugin root. If the
43
+ skill was cloned somewhere else (e.g. directly from the `forcedotcom/sf-skills`
44
+ repo into a custom path), set `PLUGIN_ROOT` to point at the runtime's skills
45
+ directory.
46
+
47
+ ```bash
48
+ prefix="${SKILL_ROOT:-${PLUGIN_ROOT:-$HOME/.vibe/skills}/investigating-agentforce-d360}/scripts"
49
+ ```
50
+
51
+ Every subsequent invocation in this doc uses `"$prefix/..."`.
52
+
53
+ ## Session discovery (no id yet)
54
+
55
+ When the user doesn't have a session id, run `discover_sessions.py` against the STDM session DMO. Prints a numbered picker; user picks one; proceed with the chosen UUID.
56
+
57
+ ```bash
58
+ python3 "$prefix/discover_sessions.py" --org <alias> [filters...]
59
+ ```
60
+
61
+ **Filters** (all optional except `--org`): `--since <expr>` (default last 24h; accepts "last 2 hours", "today", ISO dates), `--agent <api-name>`, `--channel <Messaging|Builder|Voice>`, `--outcome <USER_ENDED|ESCALATED|TRANSFERRED|TIMEOUT|NOT_SET>`, `--grep <substring>` (conversation text), `--tz <IANA>`, `--limit <N>` (default 20).
62
+
63
+ **Output**: markdown table with `#`, `UUID`, `Start (UTC)`, `Agent`, `Channel`, `Duration`, `Outcome`. User replies with a number; proceed with that UUID.
64
+
65
+ ## Pipeline — three stages
66
+
67
+ ```
68
+ fetch_dc.py → 24 dc.<name>.json + dc._session_manifest.json (DC Query REST waterfall, 5 waves)
69
+ assemble_dc.py → dc._session_tree.json (pure in-memory hierarchical join)
70
+ render_dc.py → dc._session_summary.md (human summary, multi-section)
71
+ ```
72
+
73
+ Each stage is independently runnable. `fetch_dc.py --session <sid> --org <alias>` chains all three by default.
74
+
75
+ ### Invocation
76
+
77
+ ```bash
78
+ python3 "$prefix/fetch_dc.py" --session <session-id-or-messaging-id> --org <alias>
79
+ ```
80
+
81
+ Flags: `--verbose` for per-DMO row counts; `--no-assemble` / `--no-render` to stop early. All entry scripts (`fetch_dc.py`, `assemble_dc.py`, `render_dc.py`, `resolve_session.py`, `discover_sessions.py`) accept `--data-dir <path>` and `--cache-dir <path>` to override the default `~/.vibe/{data,cache}/investigating-agentforce-d360/` roots — pass these when the host runtime needs artifacts under a different distribution layout.
82
+
83
+ ### Output artifacts
84
+
85
+ Everything lands under `~/.vibe/data/investigating-agentforce-d360/<org_id15>/<agent>__<ver>/<session_id>/` (default; override with `--data-dir <path>`):
86
+
87
+ ```
88
+ dc.sessions.json dc.steps.json dc.gateway_requests.json
89
+ dc.interactions.json dc.messages.json dc.gateway_responses.json
90
+ dc.participants.json dc.generations.json dc.gateway_request_llm.json
91
+ dc.content_quality.json dc.content_category.json dc.gateway_request_metadata.json
92
+ dc.tags.json dc.tag_definitions.json dc.gateway_request_tags.json
93
+ dc.tag_associations.json dc.tag_definition_associations.json
94
+ dc.feedback.json dc.feedback_details.json dc.gateway_records.json
95
+ dc.moments.json dc.moment_interactions.json
96
+ dc.telemetry_spans.json dc.app_generation.json
97
+
98
+ dc._session_manifest.json (per-DMO row counts + empties)
99
+ dc._session_tree.json (hierarchical join — session → interactions → steps → messages → generations → gateway)
100
+ dc._session_summary.md (rendered human summary)
101
+ ```
102
+
103
+ Zero-row queries are recorded in the manifest with `status: empty`; no file is written. `assemble_dc` tolerates missing files. See `references/artifacts.md` for the full read order.
104
+
105
+ ## The DC-only blind spot — read before committing to a root cause
106
+
107
+ DC alone answers **what happened** — steps that ran, generations that fired, gateway requests that were logged. It does NOT answer **what could have happened but didn't**:
108
+
109
+ - Which **topics were eligible** for the classifier on a given turn (this lives in runtime planner telemetry, not DC).
110
+ - Which **actions were declared** on a topic vs. which **survived rule expressions** and were actually offered to the LLM.
111
+ - Why the LLM picked one topic/action over another (the full prompt + response text only lives in the planner runtime telemetry).
112
+
113
+ If the user's question is about *why a particular topic or action was or wasn't used*, DC-only is almost never sufficient. **Tell the user**: "Availability questions need the runtime planner trace for that turn — which is outside this skill's Data Cloud surface. Check the platform telemetry that mirrors the planner's logged decisions." Don't fabricate a root cause from runtime-only evidence.
114
+
115
+ ### What DC IS good at
116
+
117
+ - **What ran** — every step, every LLM call, every gateway request + response, in order, with timestamps and durations. Good for "walk me through the session".
118
+ - **What the user saw** — full message transcript (user + agent), ordered.
119
+ - **What the LLM produced** — generations, token counts, trust scores (toxicity, instruction adherence, content-category breakdown from `content_quality` + `content_category`).
120
+ - **Tool invocations** — action calls, inputs, outputs, errors (from `gateway_request_metadata` + `gateway_records`).
121
+ - **Feedback + flags** — user feedback, escalation markers, session-end type.
122
+ - **Audit integrity** — the 1:1 invariant between GatewayRequest and GatewayResponse is checked; drift is flagged in `counts.audit_chain_1to1_ok`.
123
+
124
+ ## Prerequisites
125
+
126
+ | Tool | Required |
127
+ |---|---|
128
+ | `sf` CLI (authenticated against the target org) | yes — `sf org login web --alias <alias>` |
129
+ | Data Cloud enabled on the target org | yes — the STDM + GenAI DMOs must have materialized for the session |
130
+ | Python 3.10+ | yes — pipeline scripts |
131
+
132
+ ## Typical prompts — what they map to
133
+
134
+ | User says | Skill does |
135
+ |---|---|
136
+ | *"Trace session `<uuid>` in my-org"* | `fetch_dc.py --session <uuid> --org my-org` → assemble → render |
137
+ | *"Summarize what happened in `0Mw…`"* | Resolve `0Mw…` → UUID, then full DC pipeline |
138
+ | *"Find escalated sessions today in my-org on Messaging"* | Run `discover_sessions.py --since today --outcome ESCALATED --channel Messaging`, print picker, user picks, then DC pipeline |
139
+ | *"Walk me through this session"* | Same as trace — read the rendered summary top to bottom |
140
+
141
+ ## What comes back to the user
142
+
143
+ After the pipeline completes, the rendered `dc._session_summary.md` carries these top-level sections:
144
+
145
+ 1. **Session identity** — UUID, start/end, duration, agent, channel, end type, participant counts
146
+ 2. **Session bootstrap** — channel mode + bootstrap variables (`identity.mode`, `identity.bootstrap_variables`)
147
+ 3. **ID reference** — full UUIDs for everything truncated in the hierarchical trace
148
+ 4. **Transcript** — USER ↔ AGENT narrative per TURN interaction
149
+ 5. **Complete hierarchical trace** — Interaction → Step → Generation → GatewayRequest, with `+start + duration = +end` math
150
+ 6. **Per-turn summary** — one row per interaction
151
+ 7. **Planner LLM calls (full prompts + responses)** — opt-in via `--show-prompts`; suppressed by default
152
+ 8. **Visual analysis** — gantt + LLM-call overlay
153
+ 9. **Session counts** — engineer-facing table of manifest counts
154
+ 10. **Empties diagnostics** — one row per DMO with `rows == 0` and a populated `_unavailable_reason`
155
+ 11. **Catalog (session-filtered)** — TagDefinitions / TagDefinitionAssociations / Tags filtered to agents observed in the session
156
+
157
+ For deep-dive, open `dc._session_tree.json` — the single source of truth the summary was rendered from. See `references/dc_pipeline_contract.md` for the full pipeline contract and `references/dc_dmo_fields.md` for per-DMO field reference.
158
+
159
+ ## Caveats
160
+
161
+ - **`gateway_requests_dropped_by_stdm`** — when DC reports zero `gateway_requests` rows but runtime telemetry would show LLM calls did fire, this skill cannot definitively distinguish "STDM exporter dropped writes" from "logging genuinely disabled at the source". The session is reported as `planner_ran_no_gateway_logs`; the operator can check platform telemetry to disambiguate. See `references/dc_pipeline_contract.md` §2.8.
162
+ - **Latency** — Generation and GatewayRequest carry single-write timestamps, not start/end pairs. The renderer does not compute "latencies" between them — that delta reflects DC's serialization order, not how long the LLM call took.
163
+ - **Data Cloud materialization lag** — fresh sessions may show `interactions_not_materialized_yet` if STDM hasn't caught up. Re-run after a minute or two.
@@ -0,0 +1,51 @@
1
+ -- App-layer generation records — reusable for any WHERE filter.
2
+ -- DMO: GenAIAppGeneration__dlm
3
+ --
4
+ -- Placeholders (substituted by scripts/dc.py.load_sql):
5
+ -- WHERE_CLAUSE — the filter expression, no "WHERE" keyword
6
+ -- ORDER_BY — full "ORDER BY <col>" or empty string
7
+ --
8
+ -- Sibling of GenAIGeneration__dlm: where GenAIGeneration is the raw
9
+ -- gateway response, GenAIAppGeneration appears to be the app/feature-
10
+ -- layer view of the same generation (separate `id__c` from `generationId__c`).
11
+ --
12
+ -- No `ssot__` prefix — fields end in `__c` directly.
13
+ --
14
+ -- Join to a session: the same Step → Generation bridge used for
15
+ -- GenAIGeneration also works here. Pull session steps, collect
16
+ -- non-empty `ssot__GenerationId__c` values, then query here with
17
+ -- `generationId__c IN (...)`. The App-Generation row points at the
18
+ -- same underlying gateway generation.
19
+ --
20
+ -- The DMO is provisioned by default on orgs with generative AI audit
21
+ -- enabled, but row population depends on whether the org uses app-layer
22
+ -- regeneration / update flows. Verify presence with `sf ssot/metadata`
23
+ -- before relying on it.
24
+
25
+ SELECT
26
+ id__c,
27
+ generationId__c,
28
+ generationUpdate__c,
29
+ generationUpdateId__c,
30
+ feature__c,
31
+ timestamp__c,
32
+ orgId__c,
33
+ cloud__c
34
+ FROM GenAIAppGeneration__dlm
35
+ WHERE {{WHERE_CLAUSE}}
36
+ {{ORDER_BY}};
37
+
38
+
39
+ -- ============================================================================
40
+ -- EXAMPLE WHERE clauses (pass via where_clause=)
41
+ -- ============================================================================
42
+
43
+ -- App-generations for a set of step generation ids
44
+ -- WHERE → generationId__c IN ('<gen_id1>','<gen_id2>',...)
45
+ -- ORDER BY → ORDER BY timestamp__c
46
+
47
+ -- App-generations in a time window for one org
48
+ -- WHERE → orgId__c = '<org_id_18>'
49
+ -- AND timestamp__c >= '<iso_window_start>'
50
+ -- AND timestamp__c < '<iso_window_end>'
51
+ -- ORDER BY → ORDER BY timestamp__c
@@ -0,0 +1,44 @@
1
+ -- GenAI content category (per-detector rows) — reusable WHERE.
2
+ -- DMO: GenAIContentCategory__dlm
3
+ --
4
+ -- Placeholders (substituted by scripts/dc.py.load_sql):
5
+ -- WHERE_CLAUSE — the filter expression, no "WHERE" keyword
6
+ -- ORDER_BY — full "ORDER BY <col>" or empty string
7
+ --
8
+ -- Two shapes of parent FK:
9
+ -- - Direct on a generation: non-TOXICITY detectors (InstructionAdherence,
10
+ -- TaskResolution, PII, PROMPT_DEFENSE) — parent__c = generationId__c
11
+ -- - Via a quality row: TOXICITY sub-categories —
12
+ -- parent__c = GenAIContentQuality.id__c
13
+ --
14
+ -- NOTE: No `ssot__` prefix — fields end in `__c` directly.
15
+
16
+ SELECT
17
+ id__c,
18
+ parent__c,
19
+ detectorType__c,
20
+ category__c,
21
+ value__c,
22
+ timestamp__c,
23
+ orgId__c,
24
+ cloud__c
25
+ FROM GenAIContentCategory__dlm
26
+ WHERE {{WHERE_CLAUSE}}
27
+ {{ORDER_BY}};
28
+
29
+
30
+ -- ============================================================================
31
+ -- EXAMPLE WHERE clauses (pass via where_clause=)
32
+ -- ============================================================================
33
+
34
+ -- Non-TOXICITY detectors for a set of generations (direct join)
35
+ -- WHERE → parent__c IN ('<gen_id1>','<gen_id2>')
36
+ -- AND detectorType__c != 'TOXICITY'
37
+
38
+ -- TOXICITY sub-categories for a set of quality rows
39
+ -- WHERE → parent__c IN ('<quality_id1>','<quality_id2>')
40
+ -- AND detectorType__c = 'TOXICITY'
41
+
42
+ -- InstructionAdherence scores only
43
+ -- WHERE → parent__c IN ('<gen_id1>','<gen_id2>')
44
+ -- AND detectorType__c = 'InstructionAdherence'
@@ -0,0 +1,41 @@
1
+ -- GenAI content quality (per-generation quality rows) — reusable WHERE.
2
+ -- DMO: GenAIContentQuality__dlm
3
+ --
4
+ -- Placeholders (substituted by scripts/dc.py.load_sql):
5
+ -- WHERE_CLAUSE — the filter expression, no "WHERE" keyword
6
+ -- ORDER_BY — full "ORDER BY <col>" or empty string
7
+ --
8
+ -- Joined to a generation via `parent__c = generationId__c`. One row per
9
+ -- INPUT/OUTPUT side. `isToxicityDetected__c` is populated only on OUTPUT rows.
10
+ --
11
+ -- NOTE: No `ssot__` prefix — fields end in `__c` directly.
12
+
13
+ SELECT
14
+ id__c,
15
+ parent__c,
16
+ isToxicityDetected__c,
17
+ contentType__c,
18
+ feature__c,
19
+ timestamp__c,
20
+ orgId__c,
21
+ cloud__c
22
+ FROM GenAIContentQuality__dlm
23
+ WHERE {{WHERE_CLAUSE}}
24
+ {{ORDER_BY}};
25
+
26
+
27
+ -- ============================================================================
28
+ -- EXAMPLE WHERE clauses (pass via where_clause=)
29
+ -- ============================================================================
30
+
31
+ -- Quality rows for a set of generations
32
+ -- WHERE → parent__c IN ('<gen_id1>','<gen_id2>',...)
33
+ -- ORDER BY → ORDER BY timestamp__c
34
+
35
+ -- Only rows where toxicity was detected (OUTPUT rows)
36
+ -- WHERE → parent__c IN ('<gen_id1>','<gen_id2>')
37
+ -- AND isToxicityDetected__c = 'true'
38
+
39
+ -- Only OUTPUT-side rows
40
+ -- WHERE → parent__c IN ('<gen_id1>','<gen_id2>')
41
+ -- AND contentType__c = 'OUTPUT'
@@ -0,0 +1,36 @@
1
+ -- Session discovery — find candidate sessions by time/agent/channel/outcome/grep.
2
+ -- Produces a short row-per-session shape for the picker rendered by
3
+ -- scripts/discover_sessions.py. NOT used by the trace pipeline — once the user
4
+ -- picks a UUID, the full pipeline runs fetch_dc.py against the 24-DMO waterfall.
5
+ --
6
+ -- Placeholders (substituted by scripts/dc.py.load_sql):
7
+ -- SELECT_LIST — either `s.ssot__Id__c, s.ssot__StartTimestamp__c, s.ssot__EndTimestamp__c,
8
+ -- s.ssot__AiAgentChannelType__c, s.ssot__AiAgentSessionEndType__c`
9
+ -- OR `DISTINCT <same columns>` when JOINs are present (DC SQL requires
10
+ -- ORDER BY columns to appear in a DISTINCT projection).
11
+ -- JOINS — zero or more JOIN clauses, newline-separated, or empty string:
12
+ -- * `JOIN ssot__AiAgentSessionParticipant__dlm p ON s.ssot__Id__c = p.ssot__AiAgentSessionId__c`
13
+ -- (required when filtering by --agent)
14
+ -- * `JOIN ssot__AiAgentInteraction__dlm i ON s.ssot__Id__c = i.ssot__AiAgentSessionId__c
15
+ -- JOIN ssot__AiAgentInteractionMessage__dlm m ON i.ssot__Id__c = m.ssot__AiAgentInteractionId__c`
16
+ -- (required when filtering by --grep)
17
+ -- WHERE_CLAUSE — composed by the caller. No "WHERE" keyword. Always non-empty
18
+ -- (at minimum the time-range predicate). All user-supplied string
19
+ -- literals are single-quote-escaped by doubling quotes (O'Brien → O''Brien).
20
+ -- LIMIT — integer, 1..N. Default in caller is 20.
21
+ --
22
+ -- Field reference:
23
+ -- time range → s.ssot__StartTimestamp__c >= '<startISO>' AND s.ssot__StartTimestamp__c < '<endISO>'
24
+ -- outcome → s.ssot__AiAgentSessionEndType__c = '<USER_ENDED|ESCALATED|TRANSFERRED|TIMEOUT|NOT_SET>'
25
+ -- channel → s.ssot__AiAgentChannelType__c = '<Builder|SCRT2 - EmbeddedMessaging|Voice|...>'
26
+ -- agent → p.ssot__AiAgentApiName__c = '<AgentApiName>' (requires participant JOIN)
27
+ -- grep → m.ssot__ContentText__c LIKE '%<escaped-pattern>%' (requires interaction+message JOIN)
28
+ --
29
+ -- All STDM timestamps are UTC.
30
+
31
+ SELECT {{SELECT_LIST}}
32
+ FROM ssot__AIAgentSession__dlm s
33
+ {{JOINS}}
34
+ WHERE {{WHERE_CLAUSE}}
35
+ ORDER BY s.ssot__StartTimestamp__c DESC
36
+ LIMIT {{LIMIT}};
@@ -0,0 +1,47 @@
1
+ -- User feedback on generations — one row per feedback event.
2
+ -- DMO: GenAIFeedback__dlm
3
+ --
4
+ -- Placeholders (substituted by scripts/dc.py.load_sql):
5
+ -- WHERE_CLAUSE — the filter expression, no "WHERE" keyword
6
+ -- ORDER_BY — full "ORDER BY <col>" or empty string
7
+ --
8
+ -- Captures thumbs-up/thumbs-down (and richer `action__c`) that a user gave
9
+ -- a specific generation. Joined via `generationId__c = Generation.generationId__c`.
10
+ -- `feedbackId__c` is the PK that GenAIFeedbackDetail rows point at.
11
+ --
12
+ -- NOTE: No `ssot__` prefix — fields end in `__c` directly.
13
+
14
+ SELECT
15
+ feedbackId__c,
16
+ generationId__c,
17
+ generationUpdateId__c,
18
+ generationGroupId__c,
19
+ userId__c,
20
+ feedback__c,
21
+ action__c,
22
+ source__c,
23
+ feature__c,
24
+ appType__c,
25
+ timestamp__c,
26
+ orgId__c,
27
+ cloud__c
28
+ FROM GenAIFeedback__dlm
29
+ WHERE {{WHERE_CLAUSE}}
30
+ {{ORDER_BY}};
31
+
32
+
33
+ -- ============================================================================
34
+ -- EXAMPLE WHERE clauses (pass via where_clause=)
35
+ -- ============================================================================
36
+
37
+ -- Feedback for a set of generations (typical session trace path)
38
+ -- WHERE → generationId__c IN ('<gen_id1>','<gen_id2>',...)
39
+ -- ORDER BY → ORDER BY timestamp__c
40
+
41
+ -- Feedback by a specific user in a time window
42
+ -- WHERE → userId__c = '<user_id>'
43
+ -- AND timestamp__c >= '<iso_cutoff>'
44
+
45
+ -- Only thumbs-down
46
+ -- WHERE → generationId__c IN ('<gen_id1>','<gen_id2>')
47
+ -- AND feedback__c = 'DOWN'
@@ -0,0 +1,38 @@
1
+ -- Free-text / structured detail attached to a feedback event.
2
+ -- DMO: GenAIFeedbackDetail__dlm
3
+ --
4
+ -- Placeholders (substituted by scripts/dc.py.load_sql):
5
+ -- WHERE_CLAUSE — the filter expression, no "WHERE" keyword
6
+ -- ORDER_BY — full "ORDER BY <col>" or empty string
7
+ --
8
+ -- Zero or more rows per feedback. `feedbackText__c` is what the user typed;
9
+ -- `appFeedback__c` is an app-layer tag (e.g. the reason bucket).
10
+ -- Joined via `parent__c = GenAIFeedback.feedbackId__c`.
11
+ --
12
+ -- NOTE: No `ssot__` prefix — fields end in `__c` directly.
13
+
14
+ SELECT
15
+ feedbackDetailId__c,
16
+ parent__c,
17
+ feedbackText__c,
18
+ appFeedback__c,
19
+ feature__c,
20
+ timestamp__c,
21
+ orgId__c,
22
+ cloud__c
23
+ FROM GenAIFeedbackDetail__dlm
24
+ WHERE {{WHERE_CLAUSE}}
25
+ {{ORDER_BY}};
26
+
27
+
28
+ -- ============================================================================
29
+ -- EXAMPLE WHERE clauses (pass via where_clause=)
30
+ -- ============================================================================
31
+
32
+ -- Details for a set of feedback rows
33
+ -- WHERE → parent__c IN ('<feedback_id1>','<feedback_id2>',...)
34
+ -- ORDER BY → ORDER BY timestamp__c
35
+
36
+ -- Free-text feedback only (DC Query returns "" for unset text, not NULL)
37
+ -- WHERE → parent__c IN ('<feedback_id1>','<feedback_id2>')
38
+ -- AND feedbackText__c IS NOT NULL AND feedbackText__c != ''
@@ -0,0 +1,45 @@
1
+ -- Gateway object records — structured attachments on requests/feedback.
2
+ -- DMO: GenAIGtwyObjRecord__dlm
3
+ --
4
+ -- Placeholders (substituted by scripts/dc.py.load_sql):
5
+ -- WHERE_CLAUSE — the filter expression, no "WHERE" keyword
6
+ -- ORDER_BY — full "ORDER BY <col>" or empty string
7
+ --
8
+ -- Polymorphic attachment table. `parent__c` points at different parents
9
+ -- depending on `type__c`:
10
+ -- - `parent__c = GenAIGatewayRequest.gatewayRequestId__c` (grounded-record
11
+ -- attachments) — the forward-only path used by this skill's waterfall.
12
+ -- - `parent__c = GenAIFeedback.feedbackId__c` (feedback attachments) —
13
+ -- present only when the session has feedback rows.
14
+ -- The waterfall queries the gateway-request case (wave 3); feedback attachments
15
+ -- appear through the session only when feedback is present.
16
+ --
17
+ -- NOTE: No `ssot__` prefix — fields end in `__c` directly.
18
+
19
+ SELECT
20
+ id__c,
21
+ parent__c,
22
+ recordId__c,
23
+ type__c,
24
+ name__c,
25
+ value__c,
26
+ metadata__c,
27
+ feature__c,
28
+ timestamp__c,
29
+ orgId__c,
30
+ cloud__c
31
+ FROM GenAIGtwyObjRecord__dlm
32
+ WHERE {{WHERE_CLAUSE}}
33
+ {{ORDER_BY}};
34
+
35
+
36
+ -- ============================================================================
37
+ -- EXAMPLE WHERE clauses (pass via where_clause=)
38
+ -- ============================================================================
39
+
40
+ -- Records attached to a set of feedback rows
41
+ -- WHERE → parent__c IN ('<feedback_id1>','<feedback_id2>',...)
42
+ -- ORDER BY → ORDER BY timestamp__c
43
+
44
+ -- Records attached to a set of gateway request ids
45
+ -- WHERE → parent__c IN ('<req_id1>','<req_id2>')
@@ -0,0 +1,50 @@
1
+ -- Per-request LLM call diagnostics — reusable for any WHERE filter.
2
+ -- DMO: GenAIGtwyRequestLLM__dlm
3
+ --
4
+ -- Placeholders (substituted by scripts/dc.py.load_sql):
5
+ -- WHERE_CLAUSE — the filter expression, no "WHERE" keyword
6
+ -- ORDER_BY — full "ORDER BY <col>" or empty string
7
+ --
8
+ -- Child of GenAIGatewayRequest__dlm. Captures LLM invocation
9
+ -- diagnostics (latency, status, endpoint, region, model). Populated
10
+ -- only when Trust Layer gateway LLM telemetry is on.
11
+ --
12
+ -- The DMO is provisioned by default but rows only appear when the
13
+ -- gateway LLM telemetry is emitted. Join column pattern mirrors
14
+ -- GenAIGtwyRequestMetadata__dlm (same parent__c shape).
15
+ --
16
+ -- No `ssot__` prefix — fields end in `__c` directly. Note that org id
17
+ -- is `salesforceOrgId__c` on this DMO, not the usual `orgId__c`.
18
+ --
19
+ -- Joined via `parent__c = GatewayRequest.gatewayRequestId__c`.
20
+
21
+ SELECT
22
+ id__c,
23
+ parent__c,
24
+ endpoint__c,
25
+ region__c,
26
+ genAILLM__c,
27
+ llmCallStatus__c,
28
+ llmCallLatency__c,
29
+ llmErrorTrace__c,
30
+ metadata__c,
31
+ feature__c,
32
+ salesforceOrgId__c,
33
+ timestamp__c,
34
+ cloud__c
35
+ FROM GenAIGtwyRequestLLM__dlm
36
+ WHERE {{WHERE_CLAUSE}}
37
+ {{ORDER_BY}};
38
+
39
+
40
+ -- ============================================================================
41
+ -- EXAMPLE WHERE clauses (pass via where_clause=)
42
+ -- ============================================================================
43
+
44
+ -- All LLM diagnostic rows for a set of gateway request ids
45
+ -- WHERE → parent__c IN ('<req_id1>','<req_id2>',...)
46
+ -- ORDER BY → ORDER BY timestamp__c
47
+
48
+ -- Only failed LLM calls
49
+ -- WHERE → parent__c IN ('<req_id1>','<req_id2>')
50
+ -- AND llmCallStatus__c != 'success'