vibrante-node 2.5.1__py3-none-any.whl

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 (487) hide show
  1. src/core/__init__.py +0 -0
  2. src/core/engine.py +484 -0
  3. src/core/events.py +32 -0
  4. src/core/graph.py +74 -0
  5. src/core/integrity.py +925 -0
  6. src/core/loader.py +56 -0
  7. src/core/manifest.py +910 -0
  8. src/core/models.py +59 -0
  9. src/core/persistence.py +27 -0
  10. src/core/python_to_workflow.py +182 -0
  11. src/core/registry.py +314 -0
  12. src/core/workflow_to_python.py +801 -0
  13. src/main.py +188 -0
  14. src/models/__init__.py +0 -0
  15. src/nodes/__init__.py +0 -0
  16. src/nodes/ai/__init__.py +1 -0
  17. src/nodes/base.py +174 -0
  18. src/nodes/builtins/__init__.py +0 -0
  19. src/nodes/builtins/group_node.py +210 -0
  20. src/nodes/builtins/nodes.py +452 -0
  21. src/nodes/print.py +19 -0
  22. src/nodes/test.py +19 -0
  23. src/ui/__init__.py +0 -0
  24. src/ui/canvas/__init__.py +0 -0
  25. src/ui/canvas/backdrop.py +223 -0
  26. src/ui/canvas/canvas_search_bar.py +222 -0
  27. src/ui/canvas/edge.py +98 -0
  28. src/ui/canvas/mini_map.py +138 -0
  29. src/ui/canvas/node_search_popup.py +270 -0
  30. src/ui/canvas/scene.py +1149 -0
  31. src/ui/canvas/sticky_note.py +123 -0
  32. src/ui/canvas/view.py +285 -0
  33. src/ui/code_editor.py +435 -0
  34. src/ui/export_python_dialog.py +490 -0
  35. src/ui/gemini_api_dialog.py +41 -0
  36. src/ui/gemini_chat.py +370 -0
  37. src/ui/import_python_dialog.py +122 -0
  38. src/ui/library_panel.py +246 -0
  39. src/ui/log_panel.py +315 -0
  40. src/ui/node_builder.py +841 -0
  41. src/ui/node_widget.py +1009 -0
  42. src/ui/port_widget.py +116 -0
  43. src/ui/script_editor.py +53 -0
  44. src/ui/scripting_console.py +270 -0
  45. src/ui/settings_window.py +575 -0
  46. src/ui/window.py +2012 -0
  47. src/utils/color_manager.py +50 -0
  48. src/utils/config_manager.py +71 -0
  49. src/utils/env_manager.py +232 -0
  50. src/utils/highlighter.py +110 -0
  51. src/utils/paths.py +30 -0
  52. src/utils/prism_config.py +300 -0
  53. src/utils/prism_core.py +80 -0
  54. src/utils/qt_compat.py +159 -0
  55. src/utils/runtime.py +80 -0
  56. vibrante_node/CLA.md +96 -0
  57. vibrante_node/COMMERCIAL_LICENSE.md +170 -0
  58. vibrante_node/LICENSE +178 -0
  59. vibrante_node/LICENSES/AGPL-3.0.txt +661 -0
  60. vibrante_node/LICENSES/CC-BY-4.0-SCOPE.md +53 -0
  61. vibrante_node/LICENSES/CC-BY-4.0.txt +396 -0
  62. vibrante_node/LICENSES/GPL-3.0.txt +674 -0
  63. vibrante_node/LICENSES/LGPL-3.0.txt +165 -0
  64. vibrante_node/LICENSES/README.md +65 -0
  65. vibrante_node/THIRD_PARTY_NOTICES.txt +3277 -0
  66. vibrante_node/__init__.py +2 -0
  67. vibrante_node/app.py +60 -0
  68. vibrante_node/docs/AUTOMATION_API.html +785 -0
  69. vibrante_node/docs/DEVELOPER.html +891 -0
  70. vibrante_node/docs/DOCUMENTATION.html +2761 -0
  71. vibrante_node/docs/LICENSE.txt +35 -0
  72. vibrante_node/docs/NODE_BUILDER_API.html +1155 -0
  73. vibrante_node/docs/RELEASE_v1.0.5.html +140 -0
  74. vibrante_node/docs/RELEASE_v1.1.0.html +163 -0
  75. vibrante_node/docs/RELEASE_v1.1.5.html +286 -0
  76. vibrante_node/docs/RELEASE_v1.2.0.html +175 -0
  77. vibrante_node/docs/RELEASE_v1.3.0.html +168 -0
  78. vibrante_node/docs/RELEASE_v1.4.0.html +160 -0
  79. vibrante_node/docs/RELEASE_v1.5.0.html +432 -0
  80. vibrante_node/docs/RELEASE_v1.6.0.html +293 -0
  81. vibrante_node/docs/RELEASE_v1.6.1.html +171 -0
  82. vibrante_node/docs/RELEASE_v1.7.0.html +270 -0
  83. vibrante_node/docs/RELEASE_v1.8.0.html +201 -0
  84. vibrante_node/docs/RELEASE_v1.8.1.html +124 -0
  85. vibrante_node/docs/RELEASE_v1.8.2.html +119 -0
  86. vibrante_node/docs/RELEASE_v1.8.3.html +125 -0
  87. vibrante_node/docs/RELEASE_v1.8.4.html +210 -0
  88. vibrante_node/docs/RELEASE_v1.8.5.html +223 -0
  89. vibrante_node/docs/RELEASE_v2.0.0.html +284 -0
  90. vibrante_node/docs/RELEASE_v2.1.0.html +259 -0
  91. vibrante_node/docs/RELEASE_v2.1.1.html +156 -0
  92. vibrante_node/docs/RELEASE_v2.2.0.html +369 -0
  93. vibrante_node/docs/RELEASE_v2.2.1.html +168 -0
  94. vibrante_node/docs/RELEASE_v2.3.0.html +185 -0
  95. vibrante_node/docs/RELEASE_v2.4.0.html +446 -0
  96. vibrante_node/docs/RELEASE_v2.5.0.html +478 -0
  97. vibrante_node/docs/RELEASE_v2.5.1.html +190 -0
  98. vibrante_node/docs/USER_GUIDE.html +1407 -0
  99. vibrante_node/docs/index.html +103 -0
  100. vibrante_node/docs/portal/01_introduction.html +1177 -0
  101. vibrante_node/docs/portal/02_getting_started.html +1267 -0
  102. vibrante_node/docs/portal/03_user_guide.html +1736 -0
  103. vibrante_node/docs/portal/04_workflow_tutorials.html +1473 -0
  104. vibrante_node/docs/portal/05_node_development.html +1562 -0
  105. vibrante_node/docs/portal/06_backend_architecture.html +1373 -0
  106. vibrante_node/docs/portal/07_frontend_architecture.html +1588 -0
  107. vibrante_node/docs/portal/08_api_reference.html +2336 -0
  108. vibrante_node/docs/portal/09_advanced_topics.html +1664 -0
  109. vibrante_node/docs/portal/10_contribution_guide.html +1263 -0
  110. vibrante_node/docs/portal/11_troubleshooting.html +1108 -0
  111. vibrante_node/docs/portal/12_examples_library.html +1498 -0
  112. vibrante_node/docs/portal/13_general_purpose_automation.html +1472 -0
  113. vibrante_node/docs/portal/14_custom_nodes_api.html +1960 -0
  114. vibrante_node/docs/portal/index.html +605 -0
  115. vibrante_node/docs/portal/integrations_blender.html +605 -0
  116. vibrante_node/docs/portal/integrations_deadline.html +536 -0
  117. vibrante_node/docs/portal/integrations_houdini.html +787 -0
  118. vibrante_node/docs/portal/integrations_maya.html +675 -0
  119. vibrante_node/docs/portal/integrations_prism.html +628 -0
  120. vibrante_node/docs/portal/search.json +1 -0
  121. vibrante_node/docs/validation.json +333 -0
  122. vibrante_node/examples/arnold_lighting/orchestration_notes.md +45 -0
  123. vibrante_node/examples/arnold_lighting/prompt.md +47 -0
  124. vibrante_node/examples/automation/01_linear_chain.py +10 -0
  125. vibrante_node/examples/automation/02_batch_update_prefix.py +8 -0
  126. vibrante_node/examples/automation/03_reset_scene.py +5 -0
  127. vibrante_node/examples/automation/04_batch_execution.py +9 -0
  128. vibrante_node/examples/automation/05_git_backup.py +6 -0
  129. vibrante_node/examples/automation/06_reset_math_nodes.py +12 -0
  130. vibrante_node/examples/automation/07_stress_test_grid.py +8 -0
  131. vibrante_node/examples/automation/08_scene_summary.py +8 -0
  132. vibrante_node/examples/automation/09_toggle_bools.py +8 -0
  133. vibrante_node/examples/automation/10_session_report.py +7 -0
  134. vibrante_node/examples/automation/11_simple_math_node.py +7 -0
  135. vibrante_node/examples/cinematic_camera/orchestration_notes.md +56 -0
  136. vibrante_node/examples/cinematic_camera/prompt.md +50 -0
  137. vibrante_node/examples/cinematic_explosion/orchestration_notes.md +76 -0
  138. vibrante_node/examples/cinematic_explosion/prompt.md +47 -0
  139. vibrante_node/examples/cinematic_explosion/review.md +75 -0
  140. vibrante_node/examples/dust_wave/orchestration_notes.md +43 -0
  141. vibrante_node/examples/dust_wave/prompt.md +40 -0
  142. vibrante_node/examples/nodes/async_delay.py +21 -0
  143. vibrante_node/examples/nodes/connection_logger.py +25 -0
  144. vibrante_node/examples/nodes/data_filter.py +19 -0
  145. vibrante_node/examples/nodes/dict_merge.py +20 -0
  146. vibrante_node/examples/nodes/dict_summary.py +21 -0
  147. vibrante_node/examples/nodes/dropdown_selector.py +29 -0
  148. vibrante_node/examples/nodes/env_reader.py +18 -0
  149. vibrante_node/examples/nodes/list_item_picker.py +85 -0
  150. vibrante_node/examples/nodes/list_stats.py +27 -0
  151. vibrante_node/examples/nodes/logic_threshold.py +23 -0
  152. vibrante_node/examples/nodes/math_square.py +30 -0
  153. vibrante_node/examples/nodes/random_list.py +18 -0
  154. vibrante_node/examples/nodes/reactive_config.py +24 -0
  155. vibrante_node/examples/nodes/safety_reset.py +31 -0
  156. vibrante_node/examples/nodes/string_reverse.py +16 -0
  157. vibrante_node/icons/210429_DeadlineFreeOn10RenderMachines.jpg +0 -0
  158. vibrante_node/icons/README.md +39 -0
  159. vibrante_node/icons/blender_icon.png +0 -0
  160. vibrante_node/icons/braces.png +0 -0
  161. vibrante_node/icons/braces.svg +1 -0
  162. vibrante_node/icons/builder.png +0 -0
  163. vibrante_node/icons/check.png +0 -0
  164. vibrante_node/icons/check.svg +1 -0
  165. vibrante_node/icons/chevron-right.svg +3 -0
  166. vibrante_node/icons/code.png +0 -0
  167. vibrante_node/icons/code.svg +4 -0
  168. vibrante_node/icons/computer-window.png +0 -0
  169. vibrante_node/icons/data.png +0 -0
  170. vibrante_node/icons/data.svg +5 -0
  171. vibrante_node/icons/database-search.png +0 -0
  172. vibrante_node/icons/database-search.svg +5 -0
  173. vibrante_node/icons/database-zap.png +0 -0
  174. vibrante_node/icons/database-zap.svg +5 -0
  175. vibrante_node/icons/database.png +0 -0
  176. vibrante_node/icons/database.svg +5 -0
  177. vibrante_node/icons/dice.png +0 -0
  178. vibrante_node/icons/dice.svg +1 -0
  179. vibrante_node/icons/divide.svg +5 -0
  180. vibrante_node/icons/file-input.svg +6 -0
  181. vibrante_node/icons/file-plus.png +0 -0
  182. vibrante_node/icons/file-plus.svg +6 -0
  183. vibrante_node/icons/file-text.png +0 -0
  184. vibrante_node/icons/file-text.svg +7 -0
  185. vibrante_node/icons/folder-plus.png +0 -0
  186. vibrante_node/icons/folder-plus.svg +5 -0
  187. vibrante_node/icons/folder.png +0 -0
  188. vibrante_node/icons/folder.svg +3 -0
  189. vibrante_node/icons/gear.png +0 -0
  190. vibrante_node/icons/gear.svg +1 -0
  191. vibrante_node/icons/git-branch.svg +6 -0
  192. vibrante_node/icons/hash.png +0 -0
  193. vibrante_node/icons/hash.svg +1 -0
  194. vibrante_node/icons/houdini.svg +4 -0
  195. vibrante_node/icons/houdini_icon.png +0 -0
  196. vibrante_node/icons/http.png +0 -0
  197. vibrante_node/icons/list-check.png +0 -0
  198. vibrante_node/icons/list-check.svg +7 -0
  199. vibrante_node/icons/list-plus.svg +10 -0
  200. vibrante_node/icons/list.png +0 -0
  201. vibrante_node/icons/list.svg +8 -0
  202. vibrante_node/icons/logic.png +0 -0
  203. vibrante_node/icons/logic.svg +7 -0
  204. vibrante_node/icons/math.png +0 -0
  205. vibrante_node/icons/math.svg +4 -0
  206. vibrante_node/icons/maya_icon.jpg +0 -0
  207. vibrante_node/icons/message.png +0 -0
  208. vibrante_node/icons/message.svg +3 -0
  209. vibrante_node/icons/minus.svg +3 -0
  210. vibrante_node/icons/multiply.png +0 -0
  211. vibrante_node/icons/multiply.svg +1 -0
  212. vibrante_node/icons/online-library.png +0 -0
  213. vibrante_node/icons/percentage.svg +5 -0
  214. vibrante_node/icons/plus.png +0 -0
  215. vibrante_node/icons/plus.svg +1 -0
  216. vibrante_node/icons/print.png +0 -0
  217. vibrante_node/icons/print.svg +5 -0
  218. vibrante_node/icons/prism_icon.png +0 -0
  219. vibrante_node/icons/refresh.svg +6 -0
  220. vibrante_node/icons/repeat.svg +6 -0
  221. vibrante_node/icons/scales.png +0 -0
  222. vibrante_node/icons/scales.svg +1 -0
  223. vibrante_node/icons/shuffle.svg +7 -0
  224. vibrante_node/icons/string.png +0 -0
  225. vibrante_node/icons/string.svg +5 -0
  226. vibrante_node/icons/terminal.png +0 -0
  227. vibrante_node/icons/terminal.svg +1 -0
  228. vibrante_node/icons/timer.png +0 -0
  229. vibrante_node/icons/timer.svg +4 -0
  230. vibrante_node/icons/toggle-switch.svg +5 -0
  231. vibrante_node/icons/uppercase.png +0 -0
  232. vibrante_node/icons/uppercase.svg +1 -0
  233. vibrante_node/icons/variable-get.svg +4 -0
  234. vibrante_node/icons/variable-set.svg +6 -0
  235. vibrante_node/icons/variable.png +0 -0
  236. vibrante_node/icons/variable.svg +5 -0
  237. vibrante_node/icons/vibrante-node-icon.png +0 -0
  238. vibrante_node/icons/vibrante-node-logo.png +0 -0
  239. vibrante_node/icons/vibrante-node-main_logo.png +0 -0
  240. vibrante_node/icons/vibrante-node-resize_main_logo.png +0 -0
  241. vibrante_node/logo.png +0 -0
  242. vibrante_node/mcp_cli.py +36 -0
  243. vibrante_node/node_examples/Split_String.json +35 -0
  244. vibrante_node/node_examples/async_delay.json +32 -0
  245. vibrante_node/node_examples/delay_timer.json +29 -0
  246. vibrante_node/node_examples/file_reader.json +29 -0
  247. vibrante_node/node_examples/fruit_selector.json +37 -0
  248. vibrante_node/node_examples/json_parser.json +29 -0
  249. vibrante_node/node_examples/line_counter.json +29 -0
  250. vibrante_node/node_examples/list_append.json +32 -0
  251. vibrante_node/node_examples/list_images_recursive.json +55 -0
  252. vibrante_node/node_examples/logic_and.json +34 -0
  253. vibrante_node/node_examples/logic_compare.json +36 -0
  254. vibrante_node/node_examples/math_abs.json +29 -0
  255. vibrante_node/node_examples/math_add.json +32 -0
  256. vibrante_node/node_examples/reactive_config.json +28 -0
  257. vibrante_node/node_examples/string_uppercase.json +29 -0
  258. vibrante_node/nodes/Dropdown_Selector.json +27 -0
  259. vibrante_node/nodes/add_integers.json +34 -0
  260. vibrante_node/nodes/blender_action_bake_animation.json +23 -0
  261. vibrante_node/nodes/blender_action_custom.json +21 -0
  262. vibrante_node/nodes/blender_action_export_alembic.json +22 -0
  263. vibrante_node/nodes/blender_action_export_fbx.json +23 -0
  264. vibrante_node/nodes/blender_action_export_gltf.json +21 -0
  265. vibrante_node/nodes/blender_action_export_obj.json +19 -0
  266. vibrante_node/nodes/blender_action_export_usd.json +23 -0
  267. vibrante_node/nodes/blender_action_import_alembic.json +18 -0
  268. vibrante_node/nodes/blender_action_import_fbx.json +18 -0
  269. vibrante_node/nodes/blender_action_import_gltf.json +18 -0
  270. vibrante_node/nodes/blender_action_import_obj.json +18 -0
  271. vibrante_node/nodes/blender_action_new_blend.json +18 -0
  272. vibrante_node/nodes/blender_action_open_blend.json +18 -0
  273. vibrante_node/nodes/blender_action_render.json +23 -0
  274. vibrante_node/nodes/blender_action_save_blend.json +18 -0
  275. vibrante_node/nodes/blender_action_scene_info.json +17 -0
  276. vibrante_node/nodes/blender_action_set_frame_range.json +20 -0
  277. vibrante_node/nodes/blender_action_set_render_settings.json +27 -0
  278. vibrante_node/nodes/blender_get_action_result.json +22 -0
  279. vibrante_node/nodes/blender_headless.json +86 -0
  280. vibrante_node/nodes/compare.json +48 -0
  281. vibrante_node/nodes/console_print.json +29 -0
  282. vibrante_node/nodes/create_dictionary.json +18 -0
  283. vibrante_node/nodes/create_folder.json +17 -0
  284. vibrante_node/nodes/create_list.json +18 -0
  285. vibrante_node/nodes/deadline_blender_submit.json +38 -0
  286. vibrante_node/nodes/deadline_houdini_submit.json +38 -0
  287. vibrante_node/nodes/deadline_job_status.json +28 -0
  288. vibrante_node/nodes/deadline_maya_submit.json +40 -0
  289. vibrante_node/nodes/delay_timer.json +26 -0
  290. vibrante_node/nodes/example_random_float.json +35 -0
  291. vibrante_node/nodes/file_append.json +18 -0
  292. vibrante_node/nodes/file_write.json +18 -0
  293. vibrante_node/nodes/for_loop.json +46 -0
  294. vibrante_node/nodes/get_dict_value.json +19 -0
  295. vibrante_node/nodes/get_list_item.json +19 -0
  296. vibrante_node/nodes/houdini_action_bake_animation.json +20 -0
  297. vibrante_node/nodes/houdini_action_custom.json +20 -0
  298. vibrante_node/nodes/houdini_action_export_alembic.json +20 -0
  299. vibrante_node/nodes/houdini_action_export_camera_alembic.json +20 -0
  300. vibrante_node/nodes/houdini_action_export_fbx.json +18 -0
  301. vibrante_node/nodes/houdini_action_import_alembic.json +18 -0
  302. vibrante_node/nodes/houdini_action_import_camera.json +17 -0
  303. vibrante_node/nodes/houdini_action_import_fbx.json +18 -0
  304. vibrante_node/nodes/houdini_action_import_obj.json +18 -0
  305. vibrante_node/nodes/houdini_action_new_hip.json +16 -0
  306. vibrante_node/nodes/houdini_action_open_hip.json +17 -0
  307. vibrante_node/nodes/houdini_action_save_hip.json +17 -0
  308. vibrante_node/nodes/houdini_action_scene_info.json +16 -0
  309. vibrante_node/nodes/houdini_action_set_frame_range.json +18 -0
  310. vibrante_node/nodes/houdini_get_action_result.json +21 -0
  311. vibrante_node/nodes/houdini_headless.json +85 -0
  312. vibrante_node/nodes/houdini_scene_snapshot.json +41 -0
  313. vibrante_node/nodes/http_request.json +76 -0
  314. vibrante_node/nodes/if_condition.json +45 -0
  315. vibrante_node/nodes/list_directory.json +17 -0
  316. vibrante_node/nodes/list_images_recursive.json +41 -0
  317. vibrante_node/nodes/list_item_picker.json +41 -0
  318. vibrante_node/nodes/list_length.json +17 -0
  319. vibrante_node/nodes/logical_gate.json +45 -0
  320. vibrante_node/nodes/loop_body.json +62 -0
  321. vibrante_node/nodes/math_add.json +17 -0
  322. vibrante_node/nodes/math_divide.json +17 -0
  323. vibrante_node/nodes/math_modulo.json +17 -0
  324. vibrante_node/nodes/math_multiply.json +36 -0
  325. vibrante_node/nodes/math_subtract.json +17 -0
  326. vibrante_node/nodes/maya_action_assign_material.json +18 -0
  327. vibrante_node/nodes/maya_action_bake_animation.json +21 -0
  328. vibrante_node/nodes/maya_action_create_render_layer.json +19 -0
  329. vibrante_node/nodes/maya_action_custom.json +20 -0
  330. vibrante_node/nodes/maya_action_export_alembic.json +22 -0
  331. vibrante_node/nodes/maya_action_export_camera_alembic.json +20 -0
  332. vibrante_node/nodes/maya_action_export_fbx.json +18 -0
  333. vibrante_node/nodes/maya_action_import_alembic.json +17 -0
  334. vibrante_node/nodes/maya_action_import_camera.json +17 -0
  335. vibrante_node/nodes/maya_action_import_fbx.json +17 -0
  336. vibrante_node/nodes/maya_action_import_obj.json +17 -0
  337. vibrante_node/nodes/maya_action_list_references.json +16 -0
  338. vibrante_node/nodes/maya_action_new_scene.json +16 -0
  339. vibrante_node/nodes/maya_action_open_scene.json +18 -0
  340. vibrante_node/nodes/maya_action_playblast.json +22 -0
  341. vibrante_node/nodes/maya_action_reference_alembic.json +18 -0
  342. vibrante_node/nodes/maya_action_reference_scene.json +18 -0
  343. vibrante_node/nodes/maya_action_save_scene.json +18 -0
  344. vibrante_node/nodes/maya_action_scene_info.json +16 -0
  345. vibrante_node/nodes/maya_action_set_aovs.json +18 -0
  346. vibrante_node/nodes/maya_action_set_frame_range.json +18 -0
  347. vibrante_node/nodes/maya_action_set_render_settings.json +23 -0
  348. vibrante_node/nodes/maya_get_action_result.json +21 -0
  349. vibrante_node/nodes/maya_headless.json +27 -0
  350. vibrante_node/nodes/mcp_call_tool.json +19 -0
  351. vibrante_node/nodes/mcp_list_tools.json +18 -0
  352. vibrante_node/nodes/mcp_server_init.json +23 -0
  353. vibrante_node/nodes/message_node.json +32 -0
  354. vibrante_node/nodes/prism_add_integration.json +49 -0
  355. vibrante_node/nodes/prism_build_entity.json +45 -0
  356. vibrante_node/nodes/prism_change_project.json +37 -0
  357. vibrante_node/nodes/prism_core_info.json +37 -0
  358. vibrante_node/nodes/prism_core_init.json +46 -0
  359. vibrante_node/nodes/prism_create_category.json +44 -0
  360. vibrante_node/nodes/prism_create_entity.json +60 -0
  361. vibrante_node/nodes/prism_create_playblast.json +56 -0
  362. vibrante_node/nodes/prism_create_product_version.json +64 -0
  363. vibrante_node/nodes/prism_create_project.json +50 -0
  364. vibrante_node/nodes/prism_create_scene_from_preset.json +59 -0
  365. vibrante_node/nodes/prism_eval.json +42 -0
  366. vibrante_node/nodes/prism_get_aovs.json +29 -0
  367. vibrante_node/nodes/prism_get_asset_by_name.json +69 -0
  368. vibrante_node/nodes/prism_get_asset_type_by_name.json +62 -0
  369. vibrante_node/nodes/prism_get_asset_types_by_project.json +55 -0
  370. vibrante_node/nodes/prism_get_assets_by_project.json +41 -0
  371. vibrante_node/nodes/prism_get_assets_by_type.json +69 -0
  372. vibrante_node/nodes/prism_get_config.json +48 -0
  373. vibrante_node/nodes/prism_get_current_scene.json +37 -0
  374. vibrante_node/nodes/prism_get_departments.json +37 -0
  375. vibrante_node/nodes/prism_get_entity_info.json +69 -0
  376. vibrante_node/nodes/prism_get_entity_path.json +69 -0
  377. vibrante_node/nodes/prism_get_export_path.json +26 -0
  378. vibrante_node/nodes/prism_get_latest_product_path.json +34 -0
  379. vibrante_node/nodes/prism_get_media.json +29 -0
  380. vibrante_node/nodes/prism_get_media_versions.json +33 -0
  381. vibrante_node/nodes/prism_get_plugin.json +35 -0
  382. vibrante_node/nodes/prism_get_preset_scenes.json +35 -0
  383. vibrante_node/nodes/prism_get_product_versions.json +33 -0
  384. vibrante_node/nodes/prism_get_products.json +29 -0
  385. vibrante_node/nodes/prism_get_project_by_name.json +55 -0
  386. vibrante_node/nodes/prism_get_project_config_path.json +26 -0
  387. vibrante_node/nodes/prism_get_scene_files.json +45 -0
  388. vibrante_node/nodes/prism_get_scene_path.json +23 -0
  389. vibrante_node/nodes/prism_get_sequence_by_project.json +48 -0
  390. vibrante_node/nodes/prism_get_sequences_by_project.json +41 -0
  391. vibrante_node/nodes/prism_get_shot_by_name.json +62 -0
  392. vibrante_node/nodes/prism_get_shot_by_sequence.json +55 -0
  393. vibrante_node/nodes/prism_get_shot_info.json +69 -0
  394. vibrante_node/nodes/prism_get_shots.json +29 -0
  395. vibrante_node/nodes/prism_get_shots_by_project_sequence.json +48 -0
  396. vibrante_node/nodes/prism_get_shots_by_sequence.json +48 -0
  397. vibrante_node/nodes/prism_get_tasks.json +39 -0
  398. vibrante_node/nodes/prism_import_product.json +37 -0
  399. vibrante_node/nodes/prism_list_plugins.json +25 -0
  400. vibrante_node/nodes/prism_list_projects.json +25 -0
  401. vibrante_node/nodes/prism_login_token.json +33 -0
  402. vibrante_node/nodes/prism_monkey_patch.json +46 -0
  403. vibrante_node/nodes/prism_open_scene.json +33 -0
  404. vibrante_node/nodes/prism_popup.json +40 -0
  405. vibrante_node/nodes/prism_register_callback.json +58 -0
  406. vibrante_node/nodes/prism_save_scene_version.json +90 -0
  407. vibrante_node/nodes/prism_send_cmd.json +54 -0
  408. vibrante_node/nodes/prism_set_config.json +55 -0
  409. vibrante_node/nodes/prism_studio_assign_project.json +43 -0
  410. vibrante_node/nodes/prism_trigger_callback.json +42 -0
  411. vibrante_node/nodes/prism_usd_department_layer_path.json +35 -0
  412. vibrante_node/nodes/prism_usd_entity_path.json +29 -0
  413. vibrante_node/nodes/prism_usd_sublayer_path.json +41 -0
  414. vibrante_node/nodes/prism_usd_update_department_layer.json +33 -0
  415. vibrante_node/nodes/prism_usd_update_sublayer.json +33 -0
  416. vibrante_node/nodes/python_script.json +17 -0
  417. vibrante_node/nodes/scene_intent_extractor.json +25 -0
  418. vibrante_node/nodes/set_dict_value.json +20 -0
  419. vibrante_node/nodes/string_concat.json +47 -0
  420. vibrante_node/nodes/string_length.json +16 -0
  421. vibrante_node/nodes/string_lowercase.json +16 -0
  422. vibrante_node/nodes/string_replace.json +18 -0
  423. vibrante_node/nodes/string_split.json +17 -0
  424. vibrante_node/nodes/string_uppercase.json +16 -0
  425. vibrante_node/nodes/variable_node.json +42 -0
  426. vibrante_node/nodes/while_loop.json +18 -0
  427. vibrante_node/splash.png +0 -0
  428. vibrante_node/vfx_workflows/01_prism_project_overview.json +492 -0
  429. vibrante_node/vfx_workflows/02_maya_asset_publish.json +776 -0
  430. vibrante_node/vfx_workflows/03_multi_shot_alembic_export.json +856 -0
  431. vibrante_node/vfx_workflows/04_deadline_render_pipeline.json +994 -0
  432. vibrante_node/vfx_workflows/05_houdini_fx_pipeline.json +1056 -0
  433. vibrante_node/vfx_workflows/06_blender_multi_format_export.json +1206 -0
  434. vibrante_node/website_examples/database_query.json +69 -0
  435. vibrante_node/website_examples/email_notification.json +104 -0
  436. vibrante_node/website_examples/file_batch_processor.json +62 -0
  437. vibrante_node/website_examples/folder_monitor.json +55 -0
  438. vibrante_node/website_examples/hou_sop_chain.json +69 -0
  439. vibrante_node/website_examples/http_request.json +90 -0
  440. vibrante_node/website_examples/image_resizer.json +90 -0
  441. vibrante_node/website_examples/llm_text_generation.json +90 -0
  442. vibrante_node/website_examples/prism_multi_asset_publisher.json +76 -0
  443. vibrante_node/website_examples/regex_replace.json +69 -0
  444. vibrante_node/workflows/If_condition.json +134 -0
  445. vibrante_node/workflows/Maya_WorkFlow.json +464 -0
  446. vibrante_node/workflows/asset_intelligence_pipeline.json +259 -0
  447. vibrante_node/workflows/concat_string_with_loop.json +262 -0
  448. vibrante_node/workflows/delay_time.json +74 -0
  449. vibrante_node/workflows/example_workflow_maya_prism_demo.json +503 -0
  450. vibrante_node/workflows/example_workflow_prism_demo.json +276 -0
  451. vibrante_node/workflows/example_workflow_prism_demo_02.json +221 -0
  452. vibrante_node/workflows/extract_FPS_from_maya_scene.json +265 -0
  453. vibrante_node/workflows/for_each.json +260 -0
  454. vibrante_node/workflows/get_list_item.json +151 -0
  455. vibrante_node/workflows/hou_mcp_scene_context_demo.json +67 -0
  456. vibrante_node/workflows/list_recursive_images.json +103 -0
  457. vibrante_node/workflows/logic_if_example.json +262 -0
  458. vibrante_node/workflows/logic_if_with_variables.json +210 -0
  459. vibrante_node/workflows/loop_break_example.json +197 -0
  460. vibrante_node/workflows/loop_operation_example.json +382 -0
  461. vibrante_node/workflows/mcp_list_tools_demo.json +90 -0
  462. vibrante_node/workflows/prism_assets_workflow.json +131 -0
  463. vibrante_node/workflows/python_script_node.json +89 -0
  464. vibrante_node/workflows/run_in_sequence.json +158 -0
  465. vibrante_node/workflows/scene_intent_pipeline.json +134 -0
  466. vibrante_node/workflows/scene_planning_pipeline.json +258 -0
  467. vibrante_node/workflows/semantic_scene_intent.json +96 -0
  468. vibrante_node/workflows/setup_maya_scene.json +352 -0
  469. vibrante_node/workflows/tutorial_maya_headless_prism_pipeline.json +593 -0
  470. vibrante_node/workflows/two_way_switch.json +341 -0
  471. vibrante_node/workflows/while_loop_class_example.json +192 -0
  472. vibrante_node/workflows/while_loop_example.json +184 -0
  473. vibrante_node/workflows/while_loop_retry_example.json +276 -0
  474. vibrante_node-2.5.1.dist-info/METADATA +715 -0
  475. vibrante_node-2.5.1.dist-info/RECORD +487 -0
  476. vibrante_node-2.5.1.dist-info/WHEEL +5 -0
  477. vibrante_node-2.5.1.dist-info/entry_points.txt +3 -0
  478. vibrante_node-2.5.1.dist-info/licenses/CLA.md +96 -0
  479. vibrante_node-2.5.1.dist-info/licenses/COMMERCIAL_LICENSE.md +170 -0
  480. vibrante_node-2.5.1.dist-info/licenses/LICENSE +178 -0
  481. vibrante_node-2.5.1.dist-info/licenses/LICENSES/AGPL-3.0.txt +661 -0
  482. vibrante_node-2.5.1.dist-info/licenses/LICENSES/CC-BY-4.0-SCOPE.md +53 -0
  483. vibrante_node-2.5.1.dist-info/licenses/LICENSES/CC-BY-4.0.txt +396 -0
  484. vibrante_node-2.5.1.dist-info/licenses/LICENSES/GPL-3.0.txt +674 -0
  485. vibrante_node-2.5.1.dist-info/licenses/LICENSES/LGPL-3.0.txt +165 -0
  486. vibrante_node-2.5.1.dist-info/licenses/LICENSES/README.md +65 -0
  487. vibrante_node-2.5.1.dist-info/top_level.txt +2 -0
@@ -0,0 +1,891 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <title>Developer Documentation — Vibrante-Node v2.5.1</title>
7
+ <style>
8
+ * { box-sizing: border-box; margin: 0; padding: 0; }
9
+ body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
10
+ background: #1e1e2e; color: #cdd6f4; line-height: 1.7; }
11
+ .sidebar { position: fixed; top: 0; left: 0; width: 220px; height: 100vh;
12
+ background: #181825; overflow-y: auto; padding: 20px 0; z-index: 100; }
13
+ .sidebar h2 { font-size: 13px; color: #6c7086; text-transform: uppercase;
14
+ letter-spacing: .08em; padding: 0 18px 10px; }
15
+ .sidebar a { display: block; padding: 6px 18px; color: #a6adc8; text-decoration: none;
16
+ font-size: 13px; border-left: 3px solid transparent; transition: all .15s; }
17
+ .sidebar a:hover, .sidebar a.active { color: #cba6f7; border-left-color: #cba6f7;
18
+ background: #1e1e2e; }
19
+ .sidebar .nav-release { font-size: 12px; padding: 4px 18px; }
20
+ .content { margin-left: 220px; max-width: 920px; padding: 40px 48px; }
21
+ h1 { font-size: 2em; color: #cba6f7; border-bottom: 2px solid #313244; padding-bottom: 10px; margin: 28px 0 16px; }
22
+ h2 { font-size: 1.45em; color: #89b4fa; margin: 32px 0 12px; }
23
+ h3 { font-size: 1.15em; color: #94e2d5; margin: 22px 0 8px; }
24
+ h4 { font-size: 1em; color: #f5c2e7; margin: 16px 0 6px; }
25
+ p { margin-bottom: 14px; color: #cdd6f4; }
26
+ a { color: #89b4fa; }
27
+ ul, ol { margin: 10px 0 14px 22px; }
28
+ li { margin-bottom: 5px; }
29
+ code { background: #313244; color: #f38ba8; padding: 2px 6px; border-radius: 4px; font-size: .88em; font-family: 'Consolas','Courier New',monospace; }
30
+ pre { background: #181825; border: 1px solid #313244; border-radius: 8px;
31
+ padding: 18px 20px; overflow-x: auto; margin: 14px 0 20px; }
32
+ pre code { background: none; color: #a6e3a1; padding: 0; font-size: .9em; }
33
+ table { border-collapse: collapse; width: 100%; margin: 14px 0 20px; font-size: .92em; }
34
+ th { background: #313244; color: #cba6f7; padding: 9px 14px; text-align: left; }
35
+ td { border-top: 1px solid #313244; padding: 8px 14px; }
36
+ tr:nth-child(even) td { background: #1e1e2e; }
37
+ hr { border: none; border-top: 1px solid #313244; margin: 28px 0; }
38
+ blockquote { border-left: 4px solid #6c7086; padding-left: 16px; color: #a6adc8; margin: 14px 0; }
39
+ @media (max-width: 700px) { .sidebar { display: none; } .content { margin-left: 0; padding: 24px 18px; } }
40
+ </style>
41
+ </head>
42
+ <body>
43
+ <nav class="sidebar">
44
+ <h2>Vibrante-Node</h2>
45
+ <a href="USER_GUIDE.html">User Guide</a>
46
+ <a href="NODE_BUILDER_API.html">Node Builder API</a>
47
+ <a href="AUTOMATION_API.html">Automation API</a>
48
+ <a href="DEVELOPER.html">Developer Documentation</a>
49
+ <a href="DOCUMENTATION.html">Technical Feature List</a>
50
+ <hr style="border-color:#313244;margin:10px 18px">
51
+ <h2 style="margin-top:8px">Release Notes</h2>
52
+ <a class="nav-release" href="RELEASE_v2.5.0.html">Release Notes v2.5.0</a>
53
+ <a class="nav-release" href="RELEASE_v2.5.0.html">Release Notes v2.5.0</a>
54
+ <a class="nav-release" href="RELEASE_v2.3.0.html">Release Notes v2.3.0</a>
55
+ <a class="nav-release" href="RELEASE_v2.2.1.html">Release Notes v2.2.1</a>
56
+ <a class="nav-release" href="RELEASE_v2.2.0.html">Release Notes v2.2.0</a>
57
+ <a class="nav-release" href="RELEASE_v2.1.1.html">Release Notes v2.1.1</a>
58
+ <a class="nav-release" href="RELEASE_v2.1.0.html">Release Notes v2.1.0</a>
59
+ <a class="nav-release" href="RELEASE_v2.0.0.html">Release Notes v2.0.0</a>
60
+ <a class="nav-release" href="RELEASE_v1.8.5.html">Release Notes v1.8.5</a>
61
+ <a class="nav-release" href="RELEASE_v1.8.4.html">Release Notes v1.8.4</a>
62
+ <a class="nav-release" href="RELEASE_v1.8.3.html">Release Notes v1.8.3</a>
63
+ <a class="nav-release" href="RELEASE_v1.8.2.html">Release Notes v1.8.2</a>
64
+ <a class="nav-release" href="RELEASE_v1.8.1.html">Release Notes v1.8.1</a>
65
+ <a class="nav-release" href="RELEASE_v1.8.0.html">Release Notes v1.8.0</a>
66
+ <a class="nav-release" href="RELEASE_v1.7.0.html">Release Notes v1.7.0</a>
67
+ <a class="nav-release" href="RELEASE_v1.6.1.html">Release Notes v1.6.1</a>
68
+ <a class="nav-release" href="RELEASE_v1.6.0.html">Release Notes v1.6.0</a>
69
+ <a class="nav-release" href="RELEASE_v1.5.0.html">Release Notes v1.5.0</a>
70
+ <a class="nav-release" href="RELEASE_v1.4.0.html">Release Notes v1.4.0</a>
71
+ <a class="nav-release" href="RELEASE_v1.3.0.html">Release Notes v1.3.0</a>
72
+ <a class="nav-release" href="RELEASE_v1.2.0.html">Release Notes v1.2.0</a>
73
+ <a class="nav-release" href="RELEASE_v1.1.5.html">Release Notes v1.1.5</a>
74
+ <a class="nav-release" href="RELEASE_v1.1.0.html">Release Notes v1.1.0</a>
75
+ <a class="nav-release" href="RELEASE_v1.0.5.html">Release Notes v1.0.5</a>
76
+ <hr style="border-color:#313244;margin:10px 18px">
77
+ <h2 style="margin-top:8px">On this page</h2>
78
+ <a href="#vibrante-node-developer-guide" style="padding-left:18px">Vibrante-Node — Developer Guide</a>
79
+ <a href="#contents" style="padding-left:18px">Contents</a>
80
+ <a href="#1-architecture-layers" style="padding-left:18px">1. Architecture Layers</a>
81
+ <a href="#key-files" style="padding-left:32px">Key Files</a>
82
+ <a href="#2-runtime-layer-ai-orchestration-tiers-16" style="padding-left:18px">2. Runtime Layer — AI Orchestration (Tiers 1–6)</a>
83
+ <a href="#design-rules-non-negotiable" style="padding-left:32px">Design Rules (Non-Negotiable)</a>
84
+ <a href="#tier-summary" style="padding-left:32px">Tier Summary</a>
85
+ <a href="#mcp-transport-architecture-tier-6" style="padding-left:32px">MCP Transport Architecture (Tier 6)</a>
86
+ <a href="#forbidden-tool-surface" style="padding-left:32px">Forbidden Tool Surface</a>
87
+ <a href="#execution-safety-invariants" style="padding-left:32px">Execution Safety Invariants</a>
88
+ <a href="#adding-a-new-mcp-tool" style="padding-left:32px">Adding a New MCP Tool</a>
89
+ <a href="#scene-cache-invalidation-rule" style="padding-left:32px">Scene Cache Invalidation Rule</a>
90
+ <a href="#3-execution-engine-networkexecutor" style="padding-left:18px">3. Execution Engine — NetworkExecutor</a>
91
+ <a href="#startup-sequence" style="padding-left:32px">Startup Sequence</a>
92
+ <a href="#node-instantiation" style="padding-left:32px">Node Instantiation</a>
93
+ <a href="#signals-emitted-by-the-engine" style="padding-left:32px">Signals Emitted by the Engine</a>
94
+ <a href="#4-event-loop-integration" style="padding-left:18px">4. Event Loop Integration</a>
95
+ <a href="#5-data-flow-and-propagation" style="padding-left:18px">5. Data Flow and Propagation</a>
96
+ <a href="#wire-model" style="padding-left:32px">Wire Model</a>
97
+ <a href="#output-propagation" style="padding-left:32px">Output Propagation</a>
98
+ <a href="#reactive-propagation-outside-execution" style="padding-left:32px">Reactive Propagation (Outside Execution)</a>
99
+ <a href="#6-execution-ordering" style="padding-left:18px">6. Execution Ordering</a>
100
+ <a href="#entry-node-detection" style="padding-left:32px">Entry Node Detection</a>
101
+ <a href="#data-pull-recursion" style="padding-left:32px">Data-Pull Recursion</a>
102
+ <a href="#topological-sort-data-flow-only" style="padding-left:32px">Topological Sort (Data-Flow Only)</a>
103
+ <a href="#7-loop-execution" style="padding-left:18px">7. Loop Execution</a>
104
+ <a href="#for-loop" style="padding-left:32px">For Loop</a>
105
+ <a href="#while-loop" style="padding-left:32px">While Loop</a>
106
+ <a href="#break" style="padding-left:32px">Break</a>
107
+ <a href="#8-groupnode-sub-executor" style="padding-left:18px">8. GroupNode Sub-Executor</a>
108
+ <a href="#subgraph-tab-editing" style="padding-left:32px">Subgraph Tab Editing</a>
109
+ <a href="#9-bypass-and-init-first-handling" style="padding-left:18px">9. Bypass and Init-First Handling</a>
110
+ <a href="#bypass" style="padding-left:32px">Bypass</a>
111
+ <a href="#init-first-init_priority" style="padding-left:32px">Init-First (init_priority)</a>
112
+ <a href="#10-error-propagation-and-cancellation" style="padding-left:18px">10. Error Propagation and Cancellation</a>
113
+ <a href="#unhandled-exceptions" style="padding-left:32px">Unhandled Exceptions</a>
114
+ <a href="#cancellation" style="padding-left:32px">Cancellation</a>
115
+ <a href="#11-node-registry-system" style="padding-left:18px">11. Node Registry System</a>
116
+ <a href="#loading" style="padding-left:32px">Loading</a>
117
+ <a href="#compilation" style="padding-left:32px">Compilation</a>
118
+ <a href="#hot-reload" style="padding-left:32px">Hot Reload</a>
119
+ <a href="#12-serialization-system" style="padding-left:18px">12. Serialization System</a>
120
+ <a href="#workflowmodel" style="padding-left:32px">WorkflowModel</a>
121
+ <a href="#nodeinstancemodel" style="padding-left:32px">NodeInstanceModel</a>
122
+ <a href="#connectionmodel" style="padding-left:32px">ConnectionModel</a>
123
+ <a href="#save-and-load" style="padding-left:32px">Save and Load</a>
124
+ <a href="#13-qt-frontend-architecture" style="padding-left:18px">13. Qt Frontend Architecture</a>
125
+ <a href="#qgraphicsscene-nodescene" style="padding-left:32px">QGraphicsScene — NodeScene</a>
126
+ <a href="#nodeview-qgraphicsview" style="padding-left:32px">NodeView — QGraphicsView</a>
127
+ <a href="#history-and-undoredo" style="padding-left:32px">History and Undo/Redo</a>
128
+ <a href="#14-thread-safety-mainthreaddispatcher" style="padding-left:18px">14. Thread Safety — MainThreadDispatcher</a>
129
+ <a href="#15-environment-system-envmanager" style="padding-left:18px">15. Environment System — EnvManager</a>
130
+ <a href="#configuration-keys-persisted-in-vibrante_node_configjson" style="padding-left:32px">Configuration Keys (persisted in ~/.vibrante_node_config.json)</a>
131
+ <a href="#merge-semantics" style="padding-left:32px">Merge Semantics</a>
132
+ <a href="#thread-safety" style="padding-left:32px">Thread Safety</a>
133
+ <a href="#subprocess-helper" style="padding-left:32px">Subprocess Helper</a>
134
+ <a href="#reinitialize" style="padding-left:32px">Reinitialize</a>
135
+ <a href="#import-export" style="padding-left:32px">Import / Export</a>
136
+ <a href="#16-plugin-architecture-houdini" style="padding-left:18px">16. Plugin Architecture — Houdini</a>
137
+ <a href="#plugin-layout" style="padding-left:32px">Plugin Layout</a>
138
+ <a href="#launch-sequence" style="padding-left:32px">Launch Sequence</a>
139
+ <a href="#json-rpc-server-vibrante_hou_serverpy" style="padding-left:32px">JSON-RPC Server (vibrante_hou_server.py)</a>
140
+ <a href="#houbridge-client-srcutilshou_bridgepy" style="padding-left:32px">HouBridge Client (src/utils/hou_bridge.py)</a>
141
+ <a href="#17-performance-considerations" style="padding-left:18px">17. Performance Considerations</a>
142
+ <a href="#cpu-bound-work" style="padding-left:32px">CPU-Bound Work</a>
143
+ <a href="#io-bound-work" style="padding-left:32px">I/O-Bound Work</a>
144
+ <a href="#large-graphs" style="padding-left:32px">Large Graphs</a>
145
+ <a href="#wire-value-inspector" style="padding-left:32px">Wire Value Inspector</a>
146
+ <a href="#reactive-propagation-frequency" style="padding-left:32px">Reactive Propagation Frequency</a>
147
+ </nav>
148
+ <main class="content">
149
+ <h1 id="vibrante-node-developer-guide">Vibrante-Node — Developer Guide</h1>
150
+ <div style="border-left:4px solid #f9e2af;background:#2a2a1f;padding:10px 14px;margin:16px 0"><strong>Distribution note (2.5.0):</strong> <code>plugins/houdini/</code> is not shipped in the PyPI wheels or source distributions. Install it from the source repository before following this page.</div>
151
+ <p><strong>Version:</strong> v2.5.0 | <a href="USER_GUIDE.md">User Guide</a> | <a href="NODE_BUILDER_API.md">Node Builder API</a> | <a href="AUTOMATION_API.md">Automation API</a> | <a href="DOCUMENTATION.md">Technical Reference</a></p>
152
+ <p>This guide describes the internal architecture of Vibrante-Node: the execution engine, node registry, serialization system, Qt threading model, runtime layer, environment management, and plugin architecture. It is written for contributors, pipeline TDs, and developers who need to understand what happens between a user pressing Run (or an automation script triggering execution) and the last node completing.</p>
153
+ <hr />
154
+ <h2 id="contents">Contents</h2>
155
+ <ol>
156
+ <li><a href="#1-architecture-layers">Architecture Layers</a></li>
157
+ <li><a href="#2-runtime-layer">Runtime Layer — AI Orchestration (Tiers 1–6)</a></li>
158
+ <li><a href="#3-execution-engine">Execution Engine — NetworkExecutor</a></li>
159
+ <li><a href="#4-event-loop-integration">Event Loop Integration</a></li>
160
+ <li><a href="#5-data-flow-and-propagation">Data Flow and Propagation</a></li>
161
+ <li><a href="#6-execution-ordering">Execution Ordering</a></li>
162
+ <li><a href="#7-loop-execution">Loop Execution</a></li>
163
+ <li><a href="#8-groupnode-sub-executor">GroupNode Sub-Executor</a></li>
164
+ <li><a href="#9-bypass-and-init-first-handling">Bypass and Init-First Handling</a></li>
165
+ <li><a href="#10-error-propagation-and-cancellation">Error Propagation and Cancellation</a></li>
166
+ <li><a href="#11-node-registry-system">Node Registry System</a></li>
167
+ <li><a href="#12-serialization-system">Serialization System</a></li>
168
+ <li><a href="#13-qt-frontend-architecture">Qt Frontend Architecture</a></li>
169
+ <li><a href="#14-thread-safety">Thread Safety — MainThreadDispatcher</a></li>
170
+ <li><a href="#15-environment-system">Environment System — EnvManager</a></li>
171
+ <li><a href="#16-plugin-architecture">Plugin Architecture — Houdini</a></li>
172
+ <li><a href="#17-performance-considerations">Performance Considerations</a></li>
173
+ </ol>
174
+ <hr />
175
+ <h2 id="1-architecture-layers">1. Architecture Layers</h2>
176
+ <p>Vibrante-Node is organized into four required layers plus one optional extension. Dependencies flow top-to-bottom — no lower layer imports from a higher one. The Runtime Extensions are optional and additive: they call into Core and Utils but are not imported by them.</p>
177
+ <pre><code>┌─────────────────────────────────────────────────────────┐
178
+ │ UI Layer (src/ui/) │
179
+ │ Qt canvas, panels, dialogs, node widgets, toolbars │
180
+ │ — not imported in headless/MCP server mode │
181
+ ├─────────────────────────────────────────────────────────┤
182
+ │ Core Layer (src/core/) │
183
+ │ Execution engine, graph manager, node registry │
184
+ ├─────────────────────────────────────────────────────────┤
185
+ │ Nodes Layer (src/nodes/) │
186
+ │ BaseNode, builtins, JSON-compiled dynamic nodes │
187
+ ├─────────────────────────────────────────────────────────┤
188
+ │ Utils Layer (src/utils/) │
189
+ │ HouBridge, EnvManager, PrismCore, qt_compat, │
190
+ │ async runtime, config manager │
191
+ ├ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─┤
192
+ │ Runtime Extensions (src/runtime/) ← optional │
193
+ │ MCP server, AI planning, transaction system, │
194
+ │ validation, analytics (Tiers 1–6, 40+ modules) │
195
+ └─────────────────────────────────────────────────────────┘
196
+ </code></pre>
197
+ <p>The Runtime Extensions are an optional addition in v2.4.0 — <code>scripts/run_vibrante_mcp.py</code> starts the full runtime without importing Qt.</p>
198
+ <h3 id="key-files">Key Files</h3>
199
+ <table>
200
+ <thead>
201
+ <tr>
202
+ <th>File</th>
203
+ <th>Responsibility</th>
204
+ </tr>
205
+ </thead>
206
+ <tbody>
207
+ <tr>
208
+ <td><code>scripts/run_vibrante_mcp.py</code></td>
209
+ <td>MCP server entry point (headless mode)</td>
210
+ </tr>
211
+ <tr>
212
+ <td><code>src/runtime/mcp_transport.py</code></td>
213
+ <td>MCP stdio server — list/call tool handlers</td>
214
+ </tr>
215
+ <tr>
216
+ <td><code>src/runtime/mcp_tool_registry.py</code></td>
217
+ <td>14 semantic MCP tools, <code>register_all_tools()</code></td>
218
+ </tr>
219
+ <tr>
220
+ <td><code>src/runtime/semantic_execution.py</code></td>
221
+ <td><code>SemanticExecutor</code> — intent → ops → transaction</td>
222
+ </tr>
223
+ <tr>
224
+ <td><code>src/runtime/ai_planner.py</code></td>
225
+ <td><code>AIPlanner</code> — NL → structured execution plan</td>
226
+ </tr>
227
+ <tr>
228
+ <td><code>src/runtime/intent_parser.py</code></td>
229
+ <td><code>IntentParser</code> — keyword → intent with LLM enhancement</td>
230
+ </tr>
231
+ <tr>
232
+ <td><code>src/runtime/transaction_manager.py</code></td>
233
+ <td><code>TransactionManager</code> — begin/record/commit/rollback</td>
234
+ </tr>
235
+ <tr>
236
+ <td><code>src/runtime/houdini_runtime.py</code></td>
237
+ <td><code>scene_context()</code>, <code>build_node_chain()</code>, rollback handlers</td>
238
+ </tr>
239
+ <tr>
240
+ <td><code>src/runtime/validation_engine.py</code></td>
241
+ <td><code>ValidationEngine</code> — pre-execution structural validation</td>
242
+ </tr>
243
+ <tr>
244
+ <td><code>src/runtime/runtime_constraints.py</code></td>
245
+ <td><code>RuntimeConstraints</code> — protected paths, forbidden ops</td>
246
+ </tr>
247
+ <tr>
248
+ <td><code>src/runtime/scene_cache.py</code></td>
249
+ <td><code>SceneCache</code> — TTL cache + dirty tracking</td>
250
+ </tr>
251
+ <tr>
252
+ <td><code>src/runtime/runtime_identity.py</code></td>
253
+ <td>Constants: tool names, execution rules, identity</td>
254
+ </tr>
255
+ <tr>
256
+ <td><code>src/runtime/runtime_bootstrap.py</code></td>
257
+ <td>Singleton warm-up; structured bootstrap data</td>
258
+ </tr>
259
+ <tr>
260
+ <td><code>src/runtime/mcp_session.py</code></td>
261
+ <td><code>SessionManager</code> — per-connection session lifecycle</td>
262
+ </tr>
263
+ <tr>
264
+ <td><code>src/core/engine.py</code></td>
265
+ <td><code>NetworkExecutor</code> — the async execution engine</td>
266
+ </tr>
267
+ <tr>
268
+ <td><code>src/core/graph.py</code></td>
269
+ <td><code>GraphManager</code> — topological sort, entry-node detection</td>
270
+ </tr>
271
+ <tr>
272
+ <td><code>src/core/registry.py</code></td>
273
+ <td><code>NodeRegistry</code> — node type registration, hot-reload</td>
274
+ </tr>
275
+ <tr>
276
+ <td><code>src/core/models.py</code></td>
277
+ <td>Pydantic data models — workflow serialization</td>
278
+ </tr>
279
+ <tr>
280
+ <td><code>src/ui/window.py</code></td>
281
+ <td><code>MainWindow</code> — menus, tabs, toolbar, dock layout</td>
282
+ </tr>
283
+ <tr>
284
+ <td><code>src/ui/canvas/scene.py</code></td>
285
+ <td><code>NodeScene</code> — QGraphicsScene, wiring, group/ungroup</td>
286
+ </tr>
287
+ <tr>
288
+ <td><code>src/ui/canvas/view.py</code></td>
289
+ <td><code>NodeView</code> — QGraphicsView, zoom, pan, minimap host</td>
290
+ </tr>
291
+ <tr>
292
+ <td><code>src/ui/node_widget.py</code></td>
293
+ <td><code>NodeWidget</code> — per-node Qt rendering, reactive propagation</td>
294
+ </tr>
295
+ <tr>
296
+ <td><code>src/ui/node_builder.py</code></td>
297
+ <td><code>NodeBuilderDialog</code> — GUI node authoring tool</td>
298
+ </tr>
299
+ <tr>
300
+ <td><code>src/nodes/base.py</code></td>
301
+ <td><code>BaseNode</code>, <code>Port</code> — base class for all nodes</td>
302
+ </tr>
303
+ <tr>
304
+ <td><code>src/utils/hou_bridge.py</code></td>
305
+ <td><code>HouBridge</code> — TCP JSON-RPC client for Houdini</td>
306
+ </tr>
307
+ <tr>
308
+ <td><code>src/utils/prism_core.py</code></td>
309
+ <td><code>PrismCore</code> resolution, bootstrap, shared memory</td>
310
+ </tr>
311
+ <tr>
312
+ <td><code>src/utils/env_manager.py</code></td>
313
+ <td><code>EnvManager</code> — environment variables, path management</td>
314
+ </tr>
315
+ <tr>
316
+ <td><code>src/utils/qt_compat.py</code></td>
317
+ <td>Qt5/Qt6 compatibility layer</td>
318
+ </tr>
319
+ </tbody>
320
+ </table>
321
+ <hr />
322
+ <h2 id="2-runtime-layer-ai-orchestration-tiers-16">2. Runtime Layer — AI Orchestration (Tiers 1–6)</h2>
323
+ <p>The <code>src/runtime/</code> module is the orchestration seam between AI/graph nodes and the Houdini bridge. It operates fully independently of the Qt UI and can be started headlessly via <code>scripts/run_vibrante_mcp.py</code>.</p>
324
+ <h3 id="design-rules-non-negotiable">Design Rules (Non-Negotiable)</h3>
325
+ <ol>
326
+ <li><strong>MCP is transport only.</strong> The MCP server receives tool calls and routes them through the runtime; it never delegates scene understanding or planning to an LLM directly.</li>
327
+ <li><strong>No arbitrary Python execution.</strong> AI-facing nodes and tools never accept a <code>code</code>/<code>python</code>/<code>script</code> argument. All execution is structured, validated, deterministic.</li>
328
+ <li><strong>Validation before mutation.</strong> Every op list is shape-checked by <code>ValidationEngine</code> and policy-gated by <code>RuntimeConstraints</code> before any bridge interaction.</li>
329
+ <li><strong>Transaction boundary.</strong> All mutations route through <code>TransactionManager.begin_transaction</code> → <code>execute_operation</code> → <code>commit_transaction</code> / <code>rollback_transaction</code>.</li>
330
+ <li><strong>Context first.</strong> <code>scene_context()</code> provides the structured snapshot that AI agents read before acting.</li>
331
+ </ol>
332
+ <h3 id="tier-summary">Tier Summary</h3>
333
+ <table>
334
+ <thead>
335
+ <tr>
336
+ <th>Tier</th>
337
+ <th>Modules</th>
338
+ <th>What it adds</th>
339
+ </tr>
340
+ </thead>
341
+ <tbody>
342
+ <tr>
343
+ <td>1</td>
344
+ <td><code>mcp_runtime</code>, <code>houdini_runtime</code>, <code>scene_cache</code></td>
345
+ <td>MCP client sessions, scene context, node chain builder</td>
346
+ </tr>
347
+ <tr>
348
+ <td>2</td>
349
+ <td><code>transaction_manager</code>, <code>scene_cache</code> (dirty)</td>
350
+ <td>Transaction lifecycle, rollback, dirty tracking, graph diff</td>
351
+ </tr>
352
+ <tr>
353
+ <td>2.5</td>
354
+ <td><code>dependency_graph</code>, <code>validation_engine</code>, <code>audit_store</code>, <code>execution_scheduler</code></td>
355
+ <td>Dependency tracking, pre-execution validation, audit log, serialized execution queue</td>
356
+ </tr>
357
+ <tr>
358
+ <td>2.75</td>
359
+ <td><code>capability_registry</code>, <code>resource_estimator</code>, <code>runtime_constraints</code>, <code>workflow_templates</code>, <code>semantic_registry</code>, <code>semantic_execution</code></td>
360
+ <td>Semantic op registry, constraint policies, deterministic workflow templates, full semantic executor</td>
361
+ </tr>
362
+ <tr>
363
+ <td>3</td>
364
+ <td><code>llm_provider</code>, <code>intent_parser</code>, <code>contextual_reasoning</code>, <code>ai_planner</code>, <code>plan_validator</code>, <code>approval_pipeline</code>, <code>planning_memory</code></td>
365
+ <td>Controlled AI planning pipeline with approval gate</td>
366
+ </tr>
367
+ <tr>
368
+ <td>4</td>
369
+ <td><code>agent_runtime</code>, <code>distributed_runtime</code>, <code>multi_dcc_runtime</code>, <code>knowledge_graph</code>, <code>workflow_federation</code>, <code>runtime_federation_api</code></td>
370
+ <td>Supervised agents, distributed workers, multi-DCC routing, federated workflows</td>
371
+ </tr>
372
+ <tr>
373
+ <td>5</td>
374
+ <td><code>workflow_optimizer</code>, <code>runtime_analytics</code>, <code>predictive_execution</code>, <code>recommendation_engine</code>, <code>execution_quality</code>, <code>studio_knowledge</code></td>
375
+ <td>Advisory analytics — no execution authority</td>
376
+ </tr>
377
+ <tr>
378
+ <td>6</td>
379
+ <td><code>runtime_identity</code>, <code>runtime_bootstrap</code>, <code>runtime_prompt_context</code>, <code>mcp_session</code>, <code>mcp_tool_registry</code>, <code>mcp_transport</code></td>
380
+ <td>Full MCP server: 14 semantic tools, stdio transport, session management</td>
381
+ </tr>
382
+ </tbody>
383
+ </table>
384
+ <h3 id="mcp-transport-architecture-tier-6">MCP Transport Architecture (Tier 6)</h3>
385
+ <pre><code>External AI client (Claude Desktop / Codex CLI / Cursor)
386
+ ↓ stdin/stdout (MCP stdio protocol)
387
+ MCPTransport._run_async()
388
+ ├── app.list_tools() → MCPToolRegistry.list_tools()
389
+ └── app.call_tool() → MCPToolRegistry.dispatch_tool(name, args)
390
+ ↓
391
+ tool handler function
392
+ ↓
393
+ SemanticExecutor / TransactionManager / houdini_runtime
394
+ ↓
395
+ returns TextContent(type=&quot;text&quot;, text=json.dumps(result))
396
+ </code></pre>
397
+ <p>The MCP SDK is imported lazily on first <code>run_stdio()</code> call (<code>_require_mcp_server()</code>). Importing <code>mcp_transport</code> at startup costs nothing.</p>
398
+ <p><code>dispatch_tool</code> never raises — all exceptions are caught and returned as <code>{"ok": False, "error": str(exc)}</code>. The transport process never crashes due to a tool failure.</p>
399
+ <h3 id="forbidden-tool-surface">Forbidden Tool Surface</h3>
400
+ <p>The <code>mcp_tool_registry</code> must never register these names (test-enforced in <code>test_mcp_tool_registry.py</code>):</p>
401
+ <pre><code class="language-python">FORBIDDEN_TOOLS = {
402
+ &quot;create_node&quot;, &quot;set_parm&quot;, &quot;set_parms&quot;, &quot;run_python&quot;,
403
+ &quot;run_code&quot;, &quot;delete_node&quot;, &quot;raw_houdini_execute&quot;,
404
+ &quot;connect_nodes&quot;, &quot;cook_node&quot;,
405
+ }
406
+ </code></pre>
407
+ <h3 id="execution-safety-invariants">Execution Safety Invariants</h3>
408
+ <p>All PRs touching <code>src/runtime/</code> must verify:</p>
409
+ <ol>
410
+ <li><code>AgentRuntime.submit_proposal()</code> returns a plan; it never calls <code>execute_operation</code> directly.</li>
411
+ <li><code>DistributedRuntime._execute_local()</code> calls <code>RuntimeConstraints.validate_transaction()</code> and <code>ValidationEngine.validate_operations()</code> before any bridge interaction.</li>
412
+ <li><code>execute_workflow_transaction</code> tool handler: plans with <code>ok=False</code> are rejected; plans with <code>requires_approval=True</code> return <code>pending_approval</code> unless <code>approver</code> is supplied.</li>
413
+ <li>No Tier 5 module calls <code>get_bridge()</code>, <code>houdini_runtime</code>, <code>TransactionManager</code>, or <code>ExecutionScheduler.enqueue()</code>.</li>
414
+ <li>Built-in MCP server tools cannot be deregistered (<code>deregister_tool()</code> raises <code>ValueError</code> for built-ins).</li>
415
+ </ol>
416
+ <h3 id="adding-a-new-mcp-tool">Adding a New MCP Tool</h3>
417
+ <ol>
418
+ <li>Write an <code>async</code> handler function. It must return a <code>dict</code> (or any JSON-serializable value); exceptions are caught by <code>dispatch_tool</code>.</li>
419
+ <li>Create a <code>ToolDefinition(name, description, inputSchema, handler, category)</code>.</li>
420
+ <li>Call <code>registry.register_tool(defn)</code> inside <code>register_all_tools()</code> in <code>mcp_tool_registry.py</code>.</li>
421
+ <li>Add the name to <code>MCP_TOOL_NAMES</code> in <code>runtime_identity.py</code>.</li>
422
+ <li>Add the name to <code>EXPECTED_TOOLS</code> in <code>tests/unit/test_mcp_tool_registry.py</code>.</li>
423
+ <li>Check that the name is not in <code>FORBIDDEN_TOOLS</code>.</li>
424
+ </ol>
425
+ <h3 id="scene-cache-invalidation-rule">Scene Cache Invalidation Rule</h3>
426
+ <p>Any function in <code>houdini_runtime.py</code> or a rollback handler that mutates Houdini state <strong>must</strong> call:</p>
427
+ <pre><code class="language-python">from src.runtime.scene_cache import get_scene_cache
428
+ get_scene_cache().invalidate(&quot;scene_context::&quot;)
429
+ </code></pre>
430
+ <p>before returning. <code>build_node_chain</code> and all rollback handlers in <code>_ROLLBACK_HANDLERS</code> already follow this pattern — copy it when adding new mutating operations.</p>
431
+ <hr />
432
+ <h2 id="3-execution-engine-networkexecutor">3. Execution Engine — NetworkExecutor</h2>
433
+ <p><code>NetworkExecutor</code> (<code>src/core/engine.py</code>) is the central execution engine. It is a <code>QObject</code> (not a <code>QThread</code>) and runs entirely on the Qt main thread.</p>
434
+ <h3 id="startup-sequence">Startup Sequence</h3>
435
+ <p>When the user presses F5 (or calls <code>app.execute_pipeline()</code>):</p>
436
+ <pre><code>MainWindow._on_execute_clicked()
437
+ │
438
+ ├── scene.get_workflow_model() → WorkflowModel
439
+ │
440
+ ├── GraphManager(workflow_model) → graph
441
+ │
442
+ ├── NetworkExecutor(graph, signals)
443
+ │
444
+ ├── [Prism bootstrap if prism_core_init detected]
445
+ │
446
+ └── executor.run()
447
+ │
448
+ ├── Instantiate all nodes (restore_from_parameters + clear_outputs)
449
+ ├── Detect entry nodes
450
+ ├── Start each entry node as an asyncio.Task
451
+ └── Drive asyncio loop via _EventLoopRunner
452
+ </code></pre>
453
+ <h3 id="node-instantiation">Node Instantiation</h3>
454
+ <p>For each <code>NodeInstanceModel</code> in the workflow:</p>
455
+ <ol>
456
+ <li>Look up the class in <code>NodeRegistry._classes[node_id]</code>.</li>
457
+ <li>Instantiate: <code>node = NodeClass()</code>.</li>
458
+ <li>Call <code>node.restore_from_parameters(saved_params)</code> — rebuilds dynamic ports.</li>
459
+ <li>Apply all saved parameters to the instance: <code>node.set_parameter(name, value)</code> for each saved key-value pair. This step ensures embedded scripts (<code>python_code</code>), dynamic state, and widget values from the saved workflow are available when <code>execute()</code> runs.</li>
460
+ <li>Call <code>node.clear_outputs()</code> — reset all output port values.</li>
461
+ </ol>
462
+ <h3 id="signals-emitted-by-the-engine">Signals Emitted by the Engine</h3>
463
+ <table>
464
+ <thead>
465
+ <tr>
466
+ <th>Signal</th>
467
+ <th>Payload</th>
468
+ <th>When</th>
469
+ </tr>
470
+ </thead>
471
+ <tbody>
472
+ <tr>
473
+ <td><code>node_started</code></td>
474
+ <td><code>node_instance_id: str</code></td>
475
+ <td>Before <code>execute()</code> is called</td>
476
+ </tr>
477
+ <tr>
478
+ <td><code>node_finished</code></td>
479
+ <td><code>node_instance_id: str, results: dict</code></td>
480
+ <td>After <code>execute()</code> returns</td>
481
+ </tr>
482
+ <tr>
483
+ <td><code>node_error</code></td>
484
+ <td><code>node_instance_id: str, error: str</code></td>
485
+ <td>Unhandled exception in <code>execute()</code></td>
486
+ </tr>
487
+ <tr>
488
+ <td><code>node_output</code></td>
489
+ <td><code>node_instance_id: str, results: dict</code></td>
490
+ <td>Alias for <code>node_finished</code>; used by UI</td>
491
+ </tr>
492
+ <tr>
493
+ <td><code>execution_started</code></td>
494
+ <td>—</td>
495
+ <td>When the run begins</td>
496
+ </tr>
497
+ <tr>
498
+ <td><code>execution_finished</code></td>
499
+ <td>—</td>
500
+ <td>When all entry tasks complete</td>
501
+ </tr>
502
+ </tbody>
503
+ </table>
504
+ <p><code>MainWindow</code> connects to these signals to update the Log Panel, update node border colors, and invoke <code>scene.update_edge_value()</code> for the Live Wire Inspector.</p>
505
+ <hr />
506
+ <h2 id="4-event-loop-integration">4. Event Loop Integration</h2>
507
+ <p>Qt and asyncio each require ownership of the thread's event loop. Vibrante-Node bridges them with <code>_EventLoopRunner</code>, a zero-delay <code>QTimer</code> that drives the asyncio loop from inside Qt's event loop.</p>
508
+ <pre><code>QTimer(interval=0) ──► _EventLoopRunner._step()
509
+ │
510
+ ├─ loop.call_soon(loop.stop) ← queue stop at end of ready callbacks
511
+ └─ loop.run_forever() ← drains ready callbacks, then stops
512
+ </code></pre>
513
+ <p>Each call to <code>_step()</code>:<br />
514
+ 1. Queues <code>loop.stop</code> at the back of the asyncio ready queue.<br />
515
+ 2. Calls <code>loop.run_forever()</code>. Since <code>loop.stop</code> was queued last, <code>run_forever</code> returns after processing all currently-ready callbacks (typically in microseconds).<br />
516
+ 3. Returns control to Qt's event loop, keeping the UI responsive.</p>
517
+ <p>This scheme interleaves Qt events and asyncio tasks with zero blocking. The practical consequence: every <code>await</code> in a node's <code>execute()</code> yields control to both Qt and other asyncio tasks.</p>
518
+ <hr />
519
+ <h2 id="5-data-flow-and-propagation">5. Data Flow and Propagation</h2>
520
+ <h3 id="wire-model">Wire Model</h3>
521
+ <p>Each connection in the workflow maps an output port on one node to an input port on another. The engine maintains a <code>node_results</code> dict (<code>dict[instance_id, dict[port_name, value]]</code>) that accumulates outputs as each node completes.</p>
522
+ <h3 id="output-propagation">Output Propagation</h3>
523
+ <p>After a node's <code>execute()</code> returns:</p>
524
+ <ol>
525
+ <li>The engine stores the result dict in <code>node_results[instance_id]</code>.</li>
526
+ <li>For each output port in the result dict, the engine walks all outgoing wires.</li>
527
+ <li>For each wire's destination node, the corresponding input parameter is updated: <code>dest_node.set_parameter(port_name, value)</code>.</li>
528
+ <li>If the destination node has <code>on_parameter_changed</code> defined, it is called.</li>
529
+ <li>If the source port was <code>exec_out</code>, the destination node's execution is scheduled as the next asyncio task.</li>
530
+ </ol>
531
+ <h3 id="reactive-propagation-outside-execution">Reactive Propagation (Outside Execution)</h3>
532
+ <p>During parameter changes (user typing in a widget), <code>NodeWidget._update_param()</code> calls <code>_propagate_all_outputs()</code>. This scans all outgoing wires on every output port and pushes the current values downstream — updating widget displays in real time without a full execution run.</p>
533
+ <p><strong>Critical:</strong> <code>_propagate_all_outputs()</code> must run on the Qt main thread because it calls <code>widget.setText()</code> and similar methods. It is dispatched via <code>_MainThreadDispatcher</code> (see <a href="#13-thread-safety">Section 13</a>).</p>
534
+ <hr />
535
+ <h2 id="6-execution-ordering">6. Execution Ordering</h2>
536
+ <h3 id="entry-node-detection">Entry Node Detection</h3>
537
+ <p>Entry nodes are nodes with no incoming <code>exec_in</code> wire. The engine starts execution from all entry nodes as concurrent asyncio tasks. For a simple single-chain workflow, this is one node; for a forked workflow, it may be several.</p>
538
+ <p>Data-only nodes (no exec pins) are never entry nodes in exec-flow mode. They are reached only by the data-pull mechanism.</p>
539
+ <h3 id="data-pull-recursion">Data-Pull Recursion</h3>
540
+ <p>Before any exec-flow node's <code>execute()</code> is called, the engine recursively "pulls" data from all upstream data-only nodes:</p>
541
+ <pre><code>_run_single_node(exec_node)
542
+ │
543
+ └── for each input port of exec_node:
544
+ find connected upstream node
545
+ if upstream is data-only (use_exec=False):
546
+ _run_single_node(upstream) ← recursive pull
547
+ copy upstream output → exec_node input
548
+ </code></pre>
549
+ <p>This guarantees that data-only nodes (math, string, config) always provide fresh values to exec-flow nodes, even without explicit exec wiring.</p>
550
+ <h3 id="topological-sort-data-flow-only">Topological Sort (Data-Flow Only)</h3>
551
+ <p>When a workflow contains only data-only nodes (no exec pins anywhere), <code>GraphManager.topological_sort()</code> determines execution order using <code>toposort</code>. The engine executes nodes in dependency order, layer by layer.</p>
552
+ <hr />
553
+ <h2 id="7-loop-execution">7. Loop Execution</h2>
554
+ <h3 id="for-loop">For Loop</h3>
555
+ <p><code>for_loop</code> builds the complete index list <code>[0, 1, ..., N-1]</code> inside a single <code>execute()</code> call, returns it via the <code>indices</code> output port, and fires <code>exec_out</code> once. <code>loop_body</code> then drives per-item iteration.</p>
556
+ <p>The <code>loop_body</code> node iterates the list in its own <code>execute()</code>, calling <code>_run_from_node()</code> on its downstream chain once per item. The removal of <code>_exec_lock</code> (done in v1.0.5) makes this re-entrant execution safe — the engine can enter <code>_run_from_node()</code> recursively from within an active <code>execute()</code> coroutine.</p>
557
+ <h3 id="while-loop">While Loop</h3>
558
+ <p><code>while_loop</code> checks its <code>condition</code> input, and if <code>True</code>, fires <code>exec_out</code> and then re-evaluates. Because re-entrant execution is lock-free, the while loop's recursive <code>_run_from_node()</code> calls do not deadlock. The downstream chain is responsible for eventually setting the condition to <code>False</code> (or the user presses Stop).</p>
559
+ <h3 id="break">Break</h3>
560
+ <p>The <code>loop_break</code> node checks a boolean condition and, if <code>True</code>, sets an internal flag that causes <code>loop_body</code> to stop iteration after the current item.</p>
561
+ <hr />
562
+ <h2 id="8-groupnode-sub-executor">8. GroupNode Sub-Executor</h2>
563
+ <p><code>GroupNode</code> (defined in <code>src/nodes/builtins/group_node.py</code>) stores a full <code>WorkflowModel</code> in its <code>parameters["__workflow__"]</code>. When the engine executes a GroupNode:</p>
564
+ <ol>
565
+ <li>A nested <code>NetworkExecutor</code> is created for the inner <code>WorkflowModel</code>.</li>
566
+ <li>Boundary input values from the outer graph are injected into <code>GroupInNode</code> instances via <code>parameters["_injected_value"]</code>.</li>
567
+ <li>The inner graph executes fully.</li>
568
+ <li><code>GroupOutNode</code> values are read from <code>node_results</code> of the inner executor.</li>
569
+ <li>These values are written to the GroupNode's output ports and returned.</li>
570
+ <li>If the inner graph completes without exception: <code>exec_out</code> fires.</li>
571
+ <li>If any inner node raises an unhandled exception: <code>exec_fail</code> fires.</li>
572
+ </ol>
573
+ <p>Inner-graph log messages are forwarded to the outer <code>MainWindow</code> log panel.</p>
574
+ <h3 id="subgraph-tab-editing">Subgraph Tab Editing</h3>
575
+ <p><code>MainWindow._open_subgraph_tab()</code> creates a new tab for the inner workflow. A <code>_sync_callback</code> closure is attached to the inner <code>NodeScene</code> via <code>scene._sync_callback</code>. This closure is called by <code>push_history()</code>, <code>undo()</code>, and <code>redo()</code> on the inner scene — it serializes the inner scene state and writes it back to <code>group_widget.node_definition.parameters["__workflow__"]</code>, and pushes a history entry on the parent scene.</p>
576
+ <hr />
577
+ <h2 id="9-bypass-and-init-first-handling">9. Bypass and Init-First Handling</h2>
578
+ <h3 id="bypass">Bypass</h3>
579
+ <p><code>NetworkExecutor._run_single_node_impl()</code> checks <code>node.bypassed</code> before calling <code>execute()</code>:</p>
580
+ <ul>
581
+ <li>If <code>True</code>: copy the primary input value to the primary output, fire <code>exec_out</code>, skip <code>execute()</code>.</li>
582
+ <li>The downstream chain is unbroken.</li>
583
+ <li>Bypassed nodes appear faded on the canvas (set by <code>NodeWidget</code>).</li>
584
+ </ul>
585
+ <h3 id="init-first-init_priority">Init-First (init_priority)</h3>
586
+ <p><code>NodeScene.from_workflow_model()</code> performs a two-pass load:</p>
587
+ <p><strong>Pass 1:</strong> Create and connect all nodes with <code>init_priority &gt; 0</code>. Their <code>on_plug_sync</code> callbacks fire as wires are connected, so they can read connected values immediately.</p>
588
+ <p><strong>Pass 2:</strong> Create and connect all remaining nodes.</p>
589
+ <p>This guarantees that authentication nodes and server-connect nodes are fully instantiated and wired before any downstream node that depends on them via <code>on_plug_sync</code> is created.</p>
590
+ <hr />
591
+ <h2 id="10-error-propagation-and-cancellation">10. Error Propagation and Cancellation</h2>
592
+ <h3 id="unhandled-exceptions">Unhandled Exceptions</h3>
593
+ <p>If <code>execute()</code> raises any unhandled exception:</p>
594
+ <ol>
595
+ <li>The engine catches it.</li>
596
+ <li><code>node_error</code> signal is emitted with the exception string.</li>
597
+ <li>The node's visual state is set to error (red border).</li>
598
+ <li>The error is logged to the Log Panel.</li>
599
+ <li>The downstream exec chain from that node does <strong>not</strong> continue.</li>
600
+ <li>Other independent branches continue executing.</li>
601
+ </ol>
602
+ <p>For GroupNode inner exceptions, <code>exec_fail</code> fires on the GroupNode instead.</p>
603
+ <h3 id="cancellation">Cancellation</h3>
604
+ <p>The user pressing Stop (<code>Shift+F5</code>) sets a cancellation flag accessible via <code>node.is_stopped()</code>. Long-running nodes should check this in loops:</p>
605
+ <pre><code class="language-python">for item in large_list:
606
+ if self.is_stopped():
607
+ return {&quot;exec_out&quot;: True}
608
+ # ... process item ...
609
+ </code></pre>
610
+ <p>The <code>asyncio.Task.cancel()</code> API is also used for immediate cancellation of nodes that are <code>await</code>-ing I/O.</p>
611
+ <hr />
612
+ <h2 id="11-node-registry-system">11. Node Registry System</h2>
613
+ <h3 id="loading">Loading</h3>
614
+ <p><code>NodeRegistry.load_all_with_extras(bundled_nodes_dir)</code> is the primary load path. It:</p>
615
+ <ol>
616
+ <li>Loads built-in Python nodes from <code>src/nodes/builtins/</code>.</li>
617
+ <li>Loads JSON nodes from <code>bundled_nodes_dir</code> (the <code>nodes/</code> directory).</li>
618
+ <li>Loads JSON nodes from all paths in <code>os.environ.get("v_nodes_dir", "")</code> (colon-separated).</li>
619
+ </ol>
620
+ <p><code>_load_directory(path)</code> scans a directory for <code>.json</code> files and calls <code>load_node(path)</code> for each.</p>
621
+ <h3 id="compilation">Compilation</h3>
622
+ <p><code>load_node(json_path)</code> reads the JSON, validates it as <code>NodeDefinitionJSON</code>, then calls <code>_compile_node_class(definition)</code>:</p>
623
+ <ol>
624
+ <li>Prepend standard imports to <code>python_code</code>.</li>
625
+ <li>For <code>prism_*</code> nodes: inject <code>resolve_prism_core</code> import and rewrite the core access line.</li>
626
+ <li><code>exec(python_code, module_globals)</code> in an isolated namespace.</li>
627
+ <li>Retrieve the class returned by <code>register_node()</code>.</li>
628
+ <li>Inject <code>node_id</code> and <code>display_name</code> as class attributes.</li>
629
+ <li>Store in <code>_classes[node_id]</code> and <code>_definitions[node_id]</code>.</li>
630
+ <li>Store the source path in <code>_source_paths[node_id]</code>.</li>
631
+ </ol>
632
+ <h3 id="hot-reload">Hot Reload</h3>
633
+ <p><code>reload_node_definition(node_id)</code>:</p>
634
+ <ol>
635
+ <li>Reads the file at <code>_source_paths[node_id]</code>.</li>
636
+ <li>Recompiles the class (same steps as above).</li>
637
+ <li>Replaces <code>_classes[node_id]</code> and <code>_definitions[node_id]</code>.</li>
638
+ <li>Returns <code>True</code> on success.</li>
639
+ </ol>
640
+ <p><code>NodeScene.reload_node_type(node_id)</code> calls <code>reload_node_definition()</code> then iterates all <code>NodeWidget</code> instances in the scene, calling <code>widget.reload_definition(new_definition)</code> on matching ones.</p>
641
+ <p><code>NodeWidget.reload_definition(new_definition)</code>:<br />
642
+ 1. Replaces internal definition reference.<br />
643
+ 2. Removes existing port items from the QGraphicsScene.<br />
644
+ 3. Calls <code>_build_ports(new_definition)</code>.<br />
645
+ 4. Re-applies parameters where the port still exists and type is compatible.<br />
646
+ 5. Removes wires to deleted ports.</p>
647
+ <hr />
648
+ <h2 id="12-serialization-system">12. Serialization System</h2>
649
+ <h3 id="workflowmodel">WorkflowModel</h3>
650
+ <pre><code class="language-python">class WorkflowModel(BaseModel):
651
+ nodes: list[NodeInstanceModel] = []
652
+ connections: list[ConnectionModel] = []
653
+ sticky_notes: list[StickyNoteModel] = []
654
+ backdrops: list[BackdropModel] = []
655
+ </code></pre>
656
+ <p>All fields are optional/defaulted. Any valid JSON that parses to this shape is a valid workflow (missing fields default). This is why the <code>_looks_like_node_json()</code> guard is needed in <code>load_workflow()</code>.</p>
657
+ <h3 id="nodeinstancemodel">NodeInstanceModel</h3>
658
+ <pre><code class="language-python">class NodeInstanceModel(BaseModel):
659
+ node_id: str
660
+ instance_id: str # UUID as string
661
+ display_name: str # canvas label
662
+ position: dict # {&quot;x&quot;: float, &quot;y&quot;: float}
663
+ parameters: dict # all widget values, output cache, embedded scripts
664
+ </code></pre>
665
+ <h3 id="connectionmodel">ConnectionModel</h3>
666
+ <pre><code class="language-python">class ConnectionModel(BaseModel):
667
+ from_node: str # source instance_id
668
+ from_port: str # output port name
669
+ to_node: str # destination instance_id
670
+ to_port: str # input port name
671
+ </code></pre>
672
+ <h3 id="save-and-load">Save and Load</h3>
673
+ <p><strong>Save:</strong> <code>NodeScene.save_workflow_model()</code>:<br />
674
+ 1. Iterates all <code>NodeWidget</code> instances → <code>NodeInstanceModel</code>.<br />
675
+ 2. Iterates all <code>Edge</code> items → <code>ConnectionModel</code>.<br />
676
+ 3. Iterates sticky notes and backdrops.<br />
677
+ 4. Strips non-serializable runtime values (Qt objects, live references) from <code>parameters</code>.<br />
678
+ 5. Returns <code>WorkflowModel</code>, serialized to JSON with <code>model.model_dump_json(indent=2)</code>.</p>
679
+ <p><strong>Load:</strong> <code>NodeScene.from_workflow_model(workflow_model)</code>:<br />
680
+ 1. Sets <code>_undoing = True</code> to suppress <code>push_history()</code> calls during load.<br />
681
+ 2. Creates all Init First nodes (Pass 1).<br />
682
+ 3. Creates all remaining nodes (Pass 2).<br />
683
+ 4. Creates all connections.<br />
684
+ 5. Places sticky notes and backdrops.<br />
685
+ 6. Restores <code>_undoing</code> to original value.<br />
686
+ 7. If a <code>_sync_callback</code> is attached (subgraph tab), calls it.</p>
687
+ <hr />
688
+ <h2 id="13-qt-frontend-architecture">13. Qt Frontend Architecture</h2>
689
+ <h3 id="qgraphicsscene-nodescene">QGraphicsScene — NodeScene</h3>
690
+ <p><code>NodeScene</code> manages all canvas items:</p>
691
+ <ul>
692
+ <li><strong><code>NodeWidget</code></strong> (<code>QGraphicsItem</code>) — the visual box, port items, widgets.</li>
693
+ <li><strong><code>Edge</code></strong> (<code>QGraphicsPathItem</code>) — a wire between two ports.</li>
694
+ <li><strong><code>PortItem</code></strong> (<code>QGraphicsEllipseItem</code>) — a single port connection point.</li>
695
+ <li><strong><code>StickyNote</code></strong> (<code>QGraphicsRectItem</code>) — an annotation box.</li>
696
+ <li><strong><code>Backdrop</code></strong> (<code>QGraphicsRectItem</code>) — a grouping region.</li>
697
+ <li><strong><code>MiniMap</code></strong> (<code>QGraphicsView</code>) — a second view sharing the same scene; child widget of <code>NodeView</code>.</li>
698
+ </ul>
699
+ <h3 id="nodeview-qgraphicsview">NodeView — QGraphicsView</h3>
700
+ <p><code>NodeView</code> hosts the canvas. Key responsibilities:</p>
701
+ <ul>
702
+ <li>Mouse wheel → <code>scale()</code> for zoom.</li>
703
+ <li>Middle-mouse drag → <code>translate()</code> for pan.</li>
704
+ <li><code>resizeEvent</code> → repositions <code>CanvasSearchBar</code> and <code>MiniMap</code>.</li>
705
+ <li>Delegates <code>keyPressEvent</code> to <code>NodeScene</code> after checking <code>QApplication.focusWidget()</code> (prevents hotkeys firing inside text inputs).</li>
706
+ </ul>
707
+ <h3 id="history-and-undoredo">History and Undo/Redo</h3>
708
+ <p><code>NodeScene</code> maintains a <code>_history</code> list of serialized <code>WorkflowModel</code> snapshots. <code>push_history()</code> appends a snapshot (unless <code>_undoing</code> is True). <code>undo()</code> / <code>redo()</code> index into <code>_history</code>, call <code>from_workflow_model()</code> with <code>_undoing = True</code> to suppress recursive history pushes.</p>
709
+ <p>Dirty state: <code>push_history()</code> sets <code>_dirty = True</code> and emits <code>dirty_changed(True)</code> on the first change after a save (clean → dirty transition). <code>mark_clean()</code> resets to clean.</p>
710
+ <hr />
711
+ <h2 id="14-thread-safety-mainthreaddispatcher">14. Thread Safety — MainThreadDispatcher</h2>
712
+ <p>The asyncio execution engine and Qt UI both run on the same OS thread (the Qt main thread). However, <code>asyncio</code> coroutines can be interleaved with each other and with Qt slots. This creates one specific hazard:</p>
713
+ <p><strong><code>_propagate_all_outputs()</code> in <code>NodeWidget</code></strong> accesses <code>scene().edges</code> and calls widget methods (<code>w.setText()</code>, <code>w.setValue()</code>). If called from inside the asyncio execution path (e.g., from <code>on_parameter_changed</code> triggered by engine output propagation), it runs "inside" an asyncio coroutine on the main thread. Qt widget method calls are safe on the main thread, but they must not preempt other Qt operations mid-frame.</p>
714
+ <p><strong>Solution:</strong> <code>_MainThreadDispatcher</code> is a module-level <code>QObject</code> with a <code>pyqtSignal(object)</code> connected with <code>Qt.QueuedConnection</code>. Emitting this signal from any context queues a deferred call to the slot, which runs at the next Qt event loop iteration — after the current asyncio step completes.</p>
715
+ <pre><code class="language-python"># _MainThreadDispatcher usage (src/ui/node_widget.py)
716
+ _main_dispatcher.dispatch_signal.connect(
717
+ _main_dispatcher._on_dispatch, Qt.QueuedConnection
718
+ )
719
+
720
+ # From inside a coroutine or background context:
721
+ _main_dispatcher.post(self._propagate_all_outputs)
722
+ # This queues the call for the next Qt event loop iteration
723
+ </code></pre>
724
+ <hr />
725
+ <h2 id="15-environment-system-envmanager">15. Environment System — EnvManager</h2>
726
+ <p><code>EnvManager</code> (<code>src/utils/env_manager.py</code>) is a singleton that manages all environment configuration. It is initialized once at startup via <code>env_manager.initialize()</code> in <code>src/main.py</code>.</p>
727
+ <h3 id="configuration-keys-persisted-in-vibrante_node_configjson">Configuration Keys (persisted in <code>~/.vibrante_node_config.json</code>)</h3>
728
+ <table>
729
+ <thead>
730
+ <tr>
731
+ <th>Key</th>
732
+ <th>Type</th>
733
+ <th>Purpose</th>
734
+ </tr>
735
+ </thead>
736
+ <tbody>
737
+ <tr>
738
+ <td><code>env.vibrante_pythonpath</code></td>
739
+ <td><code>list[str]</code></td>
740
+ <td>Injected into <code>sys.path</code> at startup</td>
741
+ </tr>
742
+ <tr>
743
+ <td><code>env.v_nodes_dir</code></td>
744
+ <td><code>list[str]</code></td>
745
+ <td>Merged into <code>os.environ["v_nodes_dir"]</code></td>
746
+ </tr>
747
+ <tr>
748
+ <td><code>env.v_scripts_path</code></td>
749
+ <td><code>list[str]</code></td>
750
+ <td>Merged into <code>os.environ["v_scripts_path"]</code></td>
751
+ </tr>
752
+ <tr>
753
+ <td><code>env.custom_variables</code></td>
754
+ <td><code>dict[str, str]</code></td>
755
+ <td>Injected into <code>os.environ</code></td>
756
+ </tr>
757
+ </tbody>
758
+ </table>
759
+ <h3 id="merge-semantics">Merge Semantics</h3>
760
+ <p><code>v_nodes_dir</code> and <code>v_scripts_path</code> are <strong>merged</strong> — paths already in <code>os.environ</code> (e.g. set by Houdini's <code>setup_env()</code>) are preserved; config paths are appended. No paths are dropped.</p>
761
+ <p><code>VIBRANTE_PYTHONPATH</code> injects into <code>sys.path</code> only — it does not overwrite the <code>PYTHONPATH</code> env var.</p>
762
+ <p>Custom variables are injected directly into <code>os.environ</code> (process-scoped; not permanent).</p>
763
+ <h3 id="thread-safety">Thread Safety</h3>
764
+ <p>All reads and writes go through a <code>threading.Lock</code>. Safe to call from any thread.</p>
765
+ <h3 id="subprocess-helper">Subprocess Helper</h3>
766
+ <pre><code class="language-python">env = env_manager.apply_to_subprocess_env(base_env=None)
767
+ </code></pre>
768
+ <p>Returns a new <code>dict</code> (copy of <code>os.environ</code> with all managed variables applied) for use as <code>subprocess.Popen(env=...)</code>. Never mutates <code>os.environ</code> directly.</p>
769
+ <h3 id="reinitialize">Reinitialize</h3>
770
+ <p>After saving settings changes (Settings dialog OK), <code>env_manager.reinitialize()</code> re-reads all config values and re-applies them. This is safe to call at runtime.</p>
771
+ <h3 id="import-export">Import / Export</h3>
772
+ <pre><code class="language-python">data = env_manager.export_settings()
773
+ # Returns: {&quot;vibrante_pythonpath&quot;: [...], &quot;v_nodes_dir&quot;: [...], &quot;v_scripts_path&quot;: [...], &quot;custom_variables&quot;: {...}}
774
+
775
+ env_manager.import_settings(data)
776
+ # Persists all four groups. Unknown keys are silently ignored.
777
+ </code></pre>
778
+ <hr />
779
+ <h2 id="16-plugin-architecture-houdini">16. Plugin Architecture — Houdini</h2>
780
+ <p>The Houdini integration consists of two sides: code running inside Houdini and the Vibrante-Node subprocess.</p>
781
+ <h3 id="plugin-layout">Plugin Layout</h3>
782
+ <pre><code>plugins/houdini/
783
+ ├── vibrante_node.json ← Houdini package file (user installs this)
784
+ ├── v_nodes_houdini/ ← Houdini-specific node JSON definitions
785
+ │ ├── hou_create_geo.json
786
+ │ └── ...
787
+ ├── v_scripts_houdini/ ← Houdini-specific .py scripts (Scripts menu)
788
+ │ └── hou_create_box_demo.py
789
+ └── houdini/ ← Added to HOUDINI_PATH by package JSON
790
+ ├── MainMenuCommon.xml ← Adds &quot;Vibrante-Node&quot; menu to Houdini
791
+ ├── toolbar/vibrante_node.shelf
792
+ └── scripts/python/
793
+ ├── pythonrc.py ← Startup diagnostics (printed to Python console)
794
+ ├── vibrante_node_houdini.py ← launch(), setup_env()
795
+ └── vibrante_hou_server.py ← JSON-RPC server
796
+ </code></pre>
797
+ <h3 id="launch-sequence">Launch Sequence</h3>
798
+ <p>When the user clicks <strong>Vibrante-Node → Launch</strong> in Houdini:</p>
799
+ <ol>
800
+ <li><code>vibrante_node_houdini.launch()</code> calls <code>setup_env()</code> once.</li>
801
+ <li><code>setup_env()</code> starts <code>vibrante_hou_server.start()</code> (binds TCP port 18811).</li>
802
+ <li>Sets <code>VIBRANTE_HOU_PORT</code>, <code>VIBRANTE_HOUDINI_MODE=subprocess</code>, <code>VIBRANTE_HIP_FILE</code>, <code>v_nodes_dir</code> (pointing to <code>v_nodes_houdini/</code>), <code>v_scripts_path</code>.</li>
803
+ <li>Spawns <code>python src/main.py</code> as a subprocess with this environment.</li>
804
+ </ol>
805
+ <h3 id="json-rpc-server-vibrante_hou_serverpy">JSON-RPC Server (<code>vibrante_hou_server.py</code>)</h3>
806
+ <ul>
807
+ <li>Listens on <code>localhost:18811</code> (configurable via <code>VIBRANTE_HOU_PORT</code>).</li>
808
+ <li>Accepts JSON-encoded RPC calls: <code>{"method": "create_node", "params": {...}}</code>.</li>
809
+ <li>Returns JSON-encoded results.</li>
810
+ <li>Thread-safe: <code>threading.Lock</code> around start/stop; each request is handled in the accept loop (single-threaded).</li>
811
+ <li>Gracefully handles headless Houdini: <code>hou.playbar.frameRange()</code> is wrapped in <code>try/except AttributeError</code> with fallback <code>[1, 240]</code>.</li>
812
+ <li>Guards <code>setDisplayFlag</code>/<code>setRenderFlag</code> with capability checks and <code>try/except hou.OperationFailed</code>.</li>
813
+ </ul>
814
+ <h3 id="houbridge-client-srcutilshou_bridgepy">HouBridge Client (<code>src/utils/hou_bridge.py</code>)</h3>
815
+ <ul>
816
+ <li>Singleton per process, accessed via <code>get_bridge()</code>.</li>
817
+ <li><code>socket.TCP_NODELAY</code> set on connect (eliminates ~40 ms Nagle delay on Windows).</li>
818
+ <li><code>socket.timeout(30)</code> — raises <code>ConnectionError</code> if the server doesn't respond.</li>
819
+ <li><code>threading.Lock</code> per instance — <code>_send()</code> is thread-safe.</li>
820
+ <li>Auto-reconnect on <code>BrokenPipeError</code> / <code>ConnectionResetError</code>.</li>
821
+ </ul>
822
+ <hr />
823
+ <h2 id="17-performance-considerations">17. Performance Considerations</h2>
824
+ <h3 id="cpu-bound-work">CPU-Bound Work</h3>
825
+ <p>The asyncio engine runs on the main thread. CPU-bound operations in <code>execute()</code> will block the event loop and freeze the UI. Offload them to a thread pool:</p>
826
+ <pre><code class="language-python">import asyncio
827
+
828
+ async def execute(self, inputs):
829
+ data = inputs.get(&quot;data&quot;)
830
+ result = await asyncio.to_thread(heavy_cpu_computation, data)
831
+ return {&quot;result&quot;: result, &quot;exec_out&quot;: True}
832
+ </code></pre>
833
+ <h3 id="io-bound-work">I/O-Bound Work</h3>
834
+ <p>Use async I/O libraries where possible:</p>
835
+ <pre><code class="language-python">import aiohttp, aiofiles
836
+
837
+ async def execute(self, inputs):
838
+ async with aiohttp.ClientSession() as session:
839
+ async with session.get(inputs[&quot;url&quot;]) as resp:
840
+ data = await resp.text()
841
+ return {&quot;result&quot;: data, &quot;exec_out&quot;: True}
842
+ </code></pre>
843
+ <p>If only synchronous I/O is available, use <code>asyncio.to_thread()</code>.</p>
844
+ <h3 id="large-graphs">Large Graphs</h3>
845
+ <ul>
846
+ <li><code>NodeRegistry.load_all_with_extras()</code> compiles all node classes on startup. 166 nodes adds ~200–400 ms to launch time; this is acceptable.</li>
847
+ <li><code>WorkflowModel</code> serialization is O(N nodes + M wires). Large graphs (&gt;500 nodes) may have noticeable save/load times.</li>
848
+ <li>The <code>_history</code> list stores serialized snapshots per undo step. Limit undo history depth if memory is a concern (configurable in <code>NodeScene</code>).</li>
849
+ </ul>
850
+ <h3 id="wire-value-inspector">Wire Value Inspector</h3>
851
+ <p><code>Edge.shape()</code> overrides the default 2 px path with a 12 px stroked hit-area to make hover detection reliable. On very dense graphs with hundreds of edges, this has negligible rendering cost but do not further inflate the hit area.</p>
852
+ <h3 id="reactive-propagation-frequency">Reactive Propagation Frequency</h3>
853
+ <p>Every keystroke in a widget triggers <code>_propagate_all_outputs()</code>. For deeply connected graphs this can traverse many nodes. Keep <code>on_parameter_changed</code> implementations fast and avoid I/O there.</p>
854
+ <hr />
855
+ <p><strong>See also:</strong></p>
856
+ <ul>
857
+ <li><a href="NODE_BUILDER_API.md">Node Builder API</a> — <code>BaseNode</code> contract, port system, lifecycle hooks</li>
858
+ <li><a href="AUTOMATION_API.md">Automation API</a> — <code>NodeRegistry</code> hot-reload, scene manipulation from scripts, MCP runtime API</li>
859
+ <li><a href="DOCUMENTATION.md">Technical Reference</a> — complete signal catalogue, model schemas, MCP tool reference</li>
860
+ <li><code>src/runtime/</code> — Runtime Layer source (40+ modules, Tiers 1–6)</li>
861
+ <li><code>scripts/run_vibrante_mcp.py</code> — MCP server entry point</li>
862
+ <li><code>src/core/engine.py</code> — <code>NetworkExecutor</code> source</li>
863
+ <li><code>src/core/registry.py</code> — <code>NodeRegistry</code> source</li>
864
+ <li><code>src/core/models.py</code> — Pydantic models source</li>
865
+ <li><code>docs_src/06_backend_architecture.md</code> — deeper execution flow detail with ASCII diagrams</li>
866
+ <li><code>docs_src/07_frontend_architecture.md</code> — Qt canvas architecture in full depth</li>
867
+ </ul>
868
+ <section class="licence-attribution" style="margin-top:40px;padding-top:14px;border-top:1px solid #313244;font-size:.82em;color:#a6adc8">
869
+ <p>Documentation &amp;copy; 2024&amp;ndash;2026 Mahmoud Kamal (KamalTD), licensed under
870
+ <a href="https://creativecommons.org/licenses/by/4.0/" rel="license">CC BY 4.0</a>.
871
+ <a href="LICENSE.txt">Full licence notice</a>.</p>
872
+ <p>Search and syntax highlighting load <a href="https://lunrjs.com/">lunr.js</a> 2.3.9 (MIT)
873
+ and <a href="https://highlightjs.org/">highlight.js</a> 11.9.0 (BSD-3-Clause) from
874
+ cdn.jsdelivr.net at view time; neither library is redistributed with these files.</p>
875
+ </section>
876
+ </main>
877
+ <script>
878
+ document.addEventListener('DOMContentLoaded', function() {
879
+ var links = document.querySelectorAll('.sidebar a');
880
+ var headings = document.querySelectorAll('h1,h2,h3');
881
+ window.addEventListener('scroll', function() {
882
+ var cur = '';
883
+ headings.forEach(function(h) { if (h.offsetTop <= window.scrollY + 80) cur = h.id; });
884
+ links.forEach(function(a) {
885
+ a.classList.toggle('active', a.getAttribute('href') === '#' + cur);
886
+ });
887
+ });
888
+ });
889
+ </script>
890
+ </body>
891
+ </html>