vibrante-node-runtime 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.
- src/__init__.py +1 -0
- src/runtime/__init__.py +187 -0
- src/runtime/agent_runtime.py +315 -0
- src/runtime/ai_planner.py +371 -0
- src/runtime/approval_pipeline.py +237 -0
- src/runtime/architectural_features/__init__.py +68 -0
- src/runtime/architectural_features/architectural_feature_realizer.py +279 -0
- src/runtime/architectural_features/architectural_plan.py +421 -0
- src/runtime/architectural_features/architectural_plan_builder.py +428 -0
- src/runtime/architectural_features/environment_architecture_review.py +398 -0
- src/runtime/asset_identity/__init__.py +103 -0
- src/runtime/asset_identity/asset_identity_auditor.py +532 -0
- src/runtime/asset_identity/identity_review.py +248 -0
- src/runtime/asset_identity/identity_serializer.py +76 -0
- src/runtime/asset_identity/identity_statistics.py +132 -0
- src/runtime/asset_identity/opaque_id_detector.py +167 -0
- src/runtime/asset_identity/role_engine_validator.py +134 -0
- src/runtime/asset_identity/role_geometry_validator.py +161 -0
- src/runtime/asset_knowledge_graph.py +505 -0
- src/runtime/asset_staging_manager.py +350 -0
- src/runtime/assets/__init__.py +310 -0
- src/runtime/assets/acquisition/__init__.py +109 -0
- src/runtime/assets/acquisition/acquisition_manager.py +431 -0
- src/runtime/assets/acquisition/download_registry.py +324 -0
- src/runtime/assets/acquisition/fab_library_scanner.py +384 -0
- src/runtime/assets/acquisition/library_index.py +379 -0
- src/runtime/assets/acquisition/library_watcher.py +362 -0
- src/runtime/assets/acquisition/megascans_scanner.py +551 -0
- src/runtime/assets/acquisition_online/__init__.py +211 -0
- src/runtime/assets/acquisition_online/acquisition_pipeline.py +279 -0
- src/runtime/assets/acquisition_online/asset_cache_manager.py +265 -0
- src/runtime/assets/acquisition_online/asset_fetcher.py +361 -0
- src/runtime/assets/acquisition_online/asset_provenance_tracker.py +231 -0
- src/runtime/assets/acquisition_online/download_queue.py +297 -0
- src/runtime/assets/acquisition_online/download_review.py +253 -0
- src/runtime/assets/acquisition_online/download_scheduler.py +188 -0
- src/runtime/assets/acquisition_online/download_serializer.py +116 -0
- src/runtime/assets/acquisition_online/download_statistics.py +145 -0
- src/runtime/assets/acquisition_online/fab_socket_receiver.py +449 -0
- src/runtime/assets/acquisition_online/megascans_auth.py +408 -0
- src/runtime/assets/acquisition_online/megascans_download.py +391 -0
- src/runtime/assets/acquisition_online/megascans_search.py +313 -0
- src/runtime/assets/acquisition_online/project_asset_staging.py +221 -0
- src/runtime/assets/acquisition_online/provider_session_manager.py +182 -0
- src/runtime/assets/acquisition_online/quixel_bridge_client.py +380 -0
- src/runtime/assets/assembly/__init__.py +288 -0
- src/runtime/assets/assembly/anchor_asset_engine.py +387 -0
- src/runtime/assets/assembly/architectural_templates.py +493 -0
- src/runtime/assets/assembly/asset_clustering_engine.py +343 -0
- src/runtime/assets/assembly/asset_placement_engine.py +553 -0
- src/runtime/assets/assembly/asset_scale_analyzer.py +278 -0
- src/runtime/assets/assembly/bounding_box_extractor.py +227 -0
- src/runtime/assets/assembly/clearance_validator.py +204 -0
- src/runtime/assets/assembly/collision_detector.py +208 -0
- src/runtime/assets/assembly/composition_constraints.py +291 -0
- src/runtime/assets/assembly/decorative_population_engine.py +419 -0
- src/runtime/assets/assembly/environment_blueprint.py +92 -0
- src/runtime/assets/assembly/environment_builder.py +401 -0
- src/runtime/assets/assembly/environment_completeness_review.py +500 -0
- src/runtime/assets/assembly/environment_review.py +454 -0
- src/runtime/assets/assembly/environment_scale_review.py +490 -0
- src/runtime/assets/assembly/environment_structure_builder.py +344 -0
- src/runtime/assets/assembly/environment_zones.py +332 -0
- src/runtime/assets/assembly/footprint_calculator.py +181 -0
- src/runtime/assets/assembly/layout_spacing_engine.py +350 -0
- src/runtime/assets/assembly/placement_optimizer.py +272 -0
- src/runtime/assets/assembly/placement_relationships.py +380 -0
- src/runtime/assets/assembly/placement_templates.py +1024 -0
- src/runtime/assets/assembly/scene_population_engine.py +351 -0
- src/runtime/assets/assembly/semantic_placement_rules.py +323 -0
- src/runtime/assets/assembly/spatial_metadata.py +118 -0
- src/runtime/assets/assembly/spatial_review.py +304 -0
- src/runtime/assets/assembly/storytelling_layout_engine.py +768 -0
- src/runtime/assets/assembly/unit_normalizer.py +192 -0
- src/runtime/assets/cache/__init__.py +39 -0
- src/runtime/assets/cache/asset_cache.py +330 -0
- src/runtime/assets/cache/asset_storage.py +234 -0
- src/runtime/assets/cache/asset_sync.py +280 -0
- src/runtime/assets/discovery/__init__.py +17 -0
- src/runtime/assets/discovery/asset_discovery_engine.py +223 -0
- src/runtime/assets/download/__init__.py +24 -0
- src/runtime/assets/download/asset_download_manager.py +275 -0
- src/runtime/assets/geometry/__init__.py +149 -0
- src/runtime/assets/geometry/asset_metrics.py +476 -0
- src/runtime/assets/geometry/bounding_box_extractor.py +478 -0
- src/runtime/assets/geometry/geometry_analyzer.py +251 -0
- src/runtime/assets/geometry/geometry_review.py +463 -0
- src/runtime/assets/geometry/geometry_serializer.py +121 -0
- src/runtime/assets/geometry/geometry_statistics.py +206 -0
- src/runtime/assets/geometry/ground_contact_detector.py +277 -0
- src/runtime/assets/geometry/pivot_detector.py +248 -0
- src/runtime/assets/geometry/support_surface_detector.py +299 -0
- src/runtime/assets/logging/__init__.py +17 -0
- src/runtime/assets/logging/asset_logger.py +153 -0
- src/runtime/assets/metadata/__init__.py +65 -0
- src/runtime/assets/metadata/asset_metadata_enricher.py +215 -0
- src/runtime/assets/metadata/asset_provenance.py +273 -0
- src/runtime/assets/metadata/asset_semantic_mapper.py +265 -0
- src/runtime/assets/metadata/provider_normalizer.py +364 -0
- src/runtime/assets/providers/__init__.py +38 -0
- src/runtime/assets/providers/base.py +218 -0
- src/runtime/assets/providers/local_library_provider.py +209 -0
- src/runtime/assets/providers/polyhaven_provider.py +268 -0
- src/runtime/assets/providers/provider_manager.py +229 -0
- src/runtime/assets/providers/quixel_provider.py +277 -0
- src/runtime/assets/providers/sketchfab_live_provider.py +515 -0
- src/runtime/assets/providers/sketchfab_provider.py +327 -0
- src/runtime/assets/providers/studio_library_provider.py +323 -0
- src/runtime/assets/providers/usd_library_provider.py +310 -0
- src/runtime/assets/ranking/__init__.py +17 -0
- src/runtime/assets/ranking/asset_ranking_engine.py +365 -0
- src/runtime/assets/real_world_scale.py +189 -0
- src/runtime/assets/realization/__init__.py +162 -0
- src/runtime/assets/realization/asset_converter.py +282 -0
- src/runtime/assets/realization/asset_dependency_resolver.py +285 -0
- src/runtime/assets/realization/asset_importer.py +298 -0
- src/runtime/assets/realization/asset_instancer.py +269 -0
- src/runtime/assets/realization/asset_material_mapper.py +337 -0
- src/runtime/assets/realization/asset_normalizer.py +319 -0
- src/runtime/assets/realization/asset_realization_review.py +416 -0
- src/runtime/assets/realization/asset_validation_pipeline.py +316 -0
- src/runtime/assets/realization/realization_serializer.py +172 -0
- src/runtime/assets/realization/realization_statistics.py +265 -0
- src/runtime/assets/realization/scene_asset_realizer.py +405 -0
- src/runtime/assets/realization/usd_builder.py +272 -0
- src/runtime/assets/recommendations/__init__.py +17 -0
- src/runtime/assets/recommendations/asset_recommendation_engine.py +260 -0
- src/runtime/assets/schema/__init__.py +38 -0
- src/runtime/assets/schema/asset_descriptor.py +484 -0
- src/runtime/assets/semantic/__init__.py +234 -0
- src/runtime/assets/semantic/asset_catalog.py +368 -0
- src/runtime/assets/semantic/asset_catalog_review.py +266 -0
- src/runtime/assets/semantic/asset_catalog_serializer.py +103 -0
- src/runtime/assets/semantic/asset_catalog_statistics.py +130 -0
- src/runtime/assets/semantic/asset_catalog_sync.py +248 -0
- src/runtime/assets/semantic/asset_cinematic_mapper.py +156 -0
- src/runtime/assets/semantic/asset_environment_mapper.py +459 -0
- src/runtime/assets/semantic/asset_knowledge_graph.py +257 -0
- src/runtime/assets/semantic/asset_lookdev_mapper.py +180 -0
- src/runtime/assets/semantic/asset_manifest_reader.py +236 -0
- src/runtime/assets/semantic/asset_metadata_extractor.py +167 -0
- src/runtime/assets/semantic/asset_metadata_provider.py +231 -0
- src/runtime/assets/semantic/asset_query_engine.py +240 -0
- src/runtime/assets/semantic/asset_role_classifier.py +193 -0
- src/runtime/assets/semantic/asset_storytelling_mapper.py +163 -0
- src/runtime/assets/semantic/megascans_metadata_client.py +345 -0
- src/runtime/assets/semantic/semantic_asset_enricher.py +232 -0
- src/runtime/assets/serialization/__init__.py +15 -0
- src/runtime/assets/serialization/asset_serializer.py +201 -0
- src/runtime/assets/suitability/__init__.py +115 -0
- src/runtime/assets/suitability/asset_suitability_engine.py +345 -0
- src/runtime/assets/suitability/asset_suitability_review.py +193 -0
- src/runtime/assets/suitability/asset_suitability_serializer.py +67 -0
- src/runtime/assets/suitability/asset_suitability_statistics.py +141 -0
- src/runtime/assets/suitability/environment_affinity.py +290 -0
- src/runtime/assets/suitability/material_affinity.py +247 -0
- src/runtime/assets/suitability/placement_affinity.py +153 -0
- src/runtime/assets/suitability/role_affinity.py +205 -0
- src/runtime/assets/suitability/scale_affinity.py +150 -0
- src/runtime/assets/suitability/story_affinity.py +235 -0
- src/runtime/assets/suitability/style_affinity.py +252 -0
- src/runtime/assets/validation/__init__.py +17 -0
- src/runtime/assets/validation/asset_validation_engine.py +281 -0
- src/runtime/assets/vector_search/__init__.py +193 -0
- src/runtime/assets/vector_search/asset_embedding_builder.py +132 -0
- src/runtime/assets/vector_search/asset_vector_store.py +264 -0
- src/runtime/assets/vector_search/catalog_vector_index_builder.py +155 -0
- src/runtime/assets/vector_search/embedding_provider.py +294 -0
- src/runtime/assets/vector_search/hybrid_ranking_engine.py +241 -0
- src/runtime/assets/vector_search/intent_embedding_engine.py +99 -0
- src/runtime/assets/vector_search/intent_parser.py +462 -0
- src/runtime/assets/vector_search/retrieval_pipeline.py +275 -0
- src/runtime/assets/vector_search/retrieval_review.py +281 -0
- src/runtime/assets/vector_search/retrieval_serializer.py +91 -0
- src/runtime/assets/vector_search/retrieval_statistics.py +133 -0
- src/runtime/assets/vector_search/semantic_similarity.py +116 -0
- src/runtime/assets/vector_search/vector_search_engine.py +246 -0
- src/runtime/atmosphere_orchestrator.py +412 -0
- src/runtime/audit_store.py +230 -0
- src/runtime/capability_catalog.py +2324 -0
- src/runtime/capability_registry.py +225 -0
- src/runtime/cinematic_camera_engine.py +497 -0
- src/runtime/cinematic_composition.py +399 -0
- src/runtime/cinematic_scene_review.py +539 -0
- src/runtime/contextual_reasoning.py +286 -0
- src/runtime/dependency_graph.py +205 -0
- src/runtime/distributed_runtime.py +348 -0
- src/runtime/environment/__init__.py +189 -0
- src/runtime/environment/anchor_asset_builder.py +389 -0
- src/runtime/environment/atmosphere_builder.py +307 -0
- src/runtime/environment/decorative_population.py +320 -0
- src/runtime/environment/environment_blueprint.py +107 -0
- src/runtime/environment/environment_completeness.py +234 -0
- src/runtime/environment/environment_requirements.py +224 -0
- src/runtime/environment/environment_review.py +320 -0
- src/runtime/environment/environment_serializer.py +100 -0
- src/runtime/environment/environment_statistics.py +149 -0
- src/runtime/environment/environment_structure_builder.py +391 -0
- src/runtime/environment/environment_template_library.py +388 -0
- src/runtime/environment/environment_zone_builder.py +334 -0
- src/runtime/environment/support_asset_builder.py +243 -0
- src/runtime/environment_realization/__init__.py +177 -0
- src/runtime/environment_realization/architectural_constraint_solver.py +230 -0
- src/runtime/environment_realization/beam_builder.py +221 -0
- src/runtime/environment_realization/ceiling_builder.py +186 -0
- src/runtime/environment_realization/environment_execution_engine.py +228 -0
- src/runtime/environment_realization/environment_realization_engine.py +119 -0
- src/runtime/environment_realization/environment_review.py +250 -0
- src/runtime/environment_realization/environment_serializer.py +77 -0
- src/runtime/environment_realization/environment_statistics.py +134 -0
- src/runtime/environment_realization/floor_builder.py +198 -0
- src/runtime/environment_realization/opening_builder.py +224 -0
- src/runtime/environment_realization/room_shell_builder.py +215 -0
- src/runtime/environment_realization/room_shell_completeness_validator.py +303 -0
- src/runtime/environment_realization/structural_attachment_enforcer.py +386 -0
- src/runtime/environment_realization/structural_builder.py +314 -0
- src/runtime/environment_realization/structural_elements.py +258 -0
- src/runtime/environment_realization/structural_routing_engine.py +390 -0
- src/runtime/environment_realization/wall_builder.py +199 -0
- src/runtime/environment_rules.py +239 -0
- src/runtime/environment_shell/__init__.py +187 -0
- src/runtime/environment_shell/environment_readiness_gate.py +187 -0
- src/runtime/environment_shell/environment_shell_audit.py +184 -0
- src/runtime/environment_shell/environment_shell_blueprint.py +267 -0
- src/runtime/environment_shell/environment_shell_builder.py +265 -0
- src/runtime/environment_shell/environment_shell_state.py +133 -0
- src/runtime/environment_shell/shell_ceiling_builder.py +114 -0
- src/runtime/environment_shell/shell_floor_builder.py +96 -0
- src/runtime/environment_shell/shell_phase_result.py +66 -0
- src/runtime/environment_shell/shell_review.py +241 -0
- src/runtime/environment_shell/shell_serializer.py +67 -0
- src/runtime/environment_shell/shell_statistics.py +141 -0
- src/runtime/environment_shell/shell_validator.py +138 -0
- src/runtime/environment_shell/shell_wall_builder.py +156 -0
- src/runtime/environment_shell/structural_anchor_generator.py +200 -0
- src/runtime/environment_shell/structural_element_placer.py +193 -0
- src/runtime/environments/__init__.py +67 -0
- src/runtime/environments/environment_registry.py +1139 -0
- src/runtime/environments/environment_statistics.py +219 -0
- src/runtime/execution_explainer.py +399 -0
- src/runtime/execution_quality.py +258 -0
- src/runtime/execution_review.py +221 -0
- src/runtime/execution_scheduler.py +263 -0
- src/runtime/failure_intelligence.py +341 -0
- src/runtime/goal_decomposer.py +532 -0
- src/runtime/houdini_asset_realizer.py +329 -0
- src/runtime/houdini_runtime.py +992 -0
- src/runtime/intent_parser.py +275 -0
- src/runtime/knowledge_graph.py +310 -0
- src/runtime/layout/__init__.py +172 -0
- src/runtime/layout/affordance_engine.py +384 -0
- src/runtime/layout/anchor_layout_engine.py +244 -0
- src/runtime/layout/decoration_layout_engine.py +325 -0
- src/runtime/layout/furniture_cluster_builder.py +381 -0
- src/runtime/layout/layout_review.py +265 -0
- src/runtime/layout/layout_serializer.py +77 -0
- src/runtime/layout/layout_statistics.py +123 -0
- src/runtime/layout/relationship_graph.py +165 -0
- src/runtime/layout/relationship_graph_builder.py +699 -0
- src/runtime/layout/relationship_layout_engine.py +1101 -0
- src/runtime/layout/relationship_realization_auditor.py +849 -0
- src/runtime/layout/semantic_layout_engine.py +327 -0
- src/runtime/layout/surface_placement_engine.py +270 -0
- src/runtime/layout/wall_attachment_engine.py +243 -0
- src/runtime/layout_realization/__init__.py +183 -0
- src/runtime/layout_realization/cluster_realizer.py +212 -0
- src/runtime/layout_realization/collision_solver.py +359 -0
- src/runtime/layout_realization/identity_metadata_writer.py +257 -0
- src/runtime/layout_realization/layout_application_engine.py +242 -0
- src/runtime/layout_realization/layout_realization_engine.py +293 -0
- src/runtime/layout_realization/layout_validator.py +315 -0
- src/runtime/layout_realization/metadata_application_engine.py +187 -0
- src/runtime/layout_realization/realization_review.py +268 -0
- src/runtime/layout_realization/realization_serializer.py +77 -0
- src/runtime/layout_realization/realization_statistics.py +151 -0
- src/runtime/layout_realization/relationship_metadata_writer.py +305 -0
- src/runtime/layout_realization/relationship_persistence_auditor.py +426 -0
- src/runtime/layout_realization/relationship_realizer.py +294 -0
- src/runtime/layout_realization/scene_constraint_solver.py +317 -0
- src/runtime/layout_realization/surface_realizer.py +195 -0
- src/runtime/layout_realization/transform_resolver.py +268 -0
- src/runtime/layout_realization/wall_attachment_realizer.py +182 -0
- src/runtime/layout_transform_engine.py +341 -0
- src/runtime/lighting/__init__.py +215 -0
- src/runtime/lighting/lighting_color_engine.py +252 -0
- src/runtime/lighting/lighting_environment_mapper.py +792 -0
- src/runtime/lighting/lighting_exposure_engine.py +213 -0
- src/runtime/lighting/lighting_hierarchy_engine.py +248 -0
- src/runtime/lighting/lighting_knowledge.py +342 -0
- src/runtime/lighting/lighting_language.py +239 -0
- src/runtime/lighting/lighting_mood_engine.py +230 -0
- src/runtime/lighting/lighting_patterns.py +522 -0
- src/runtime/lighting/lighting_plan_builder.py +320 -0
- src/runtime/lighting/lighting_readability_engine.py +273 -0
- src/runtime/lighting/lighting_recommendation_engine.py +205 -0
- src/runtime/lighting/lighting_review.py +370 -0
- src/runtime/lighting/lighting_serializer.py +71 -0
- src/runtime/lighting/lighting_statistics.py +142 -0
- src/runtime/lighting/lighting_strategy_engine.py +239 -0
- src/runtime/lighting/lighting_validation.py +183 -0
- src/runtime/llm_provider.py +340 -0
- src/runtime/lookdev/__init__.py +137 -0
- src/runtime/lookdev/lookdev_patterns.py +216 -0
- src/runtime/lookdev/lookdev_review.py +389 -0
- src/runtime/lookdev/lookdev_serializer.py +71 -0
- src/runtime/lookdev/lookdev_statistics.py +133 -0
- src/runtime/lookdev/lookdev_validation.py +203 -0
- src/runtime/lookdev/material_assignment_engine.py +331 -0
- src/runtime/lookdev/material_knowledge.py +244 -0
- src/runtime/lookdev/material_library.py +311 -0
- src/runtime/lookdev/material_recommendation.py +394 -0
- src/runtime/lookdev/renderer_profiles.py +281 -0
- src/runtime/mcp_runtime.py +357 -0
- src/runtime/mcp_server_runtime.py +386 -0
- src/runtime/mcp_session.py +261 -0
- src/runtime/mcp_tool_registry.py +2169 -0
- src/runtime/mcp_transport.py +206 -0
- src/runtime/multi_dcc_runtime.py +316 -0
- src/runtime/orchestration_heuristics.py +360 -0
- src/runtime/pattern_library.py +344 -0
- src/runtime/plan_validator.py +314 -0
- src/runtime/planning/__init__.py +103 -0
- src/runtime/planning/camera/__init__.py +1 -0
- src/runtime/planning/camera/camera_planner.py +179 -0
- src/runtime/planning/composition/__init__.py +1 -0
- src/runtime/planning/composition/composition_planner.py +223 -0
- src/runtime/planning/logging/__init__.py +1 -0
- src/runtime/planning/logging/planning_logger.py +109 -0
- src/runtime/planning/planners/__init__.py +1 -0
- src/runtime/planning/planners/asset_query_generator.py +265 -0
- src/runtime/planning/planners/scene_planner.py +199 -0
- src/runtime/planning/planners/zone_planner.py +271 -0
- src/runtime/planning/recommendations/__init__.py +1 -0
- src/runtime/planning/recommendations/scene_plan_recommendation_engine.py +228 -0
- src/runtime/planning/schema/__init__.py +23 -0
- src/runtime/planning/schema/scene_plan.py +569 -0
- src/runtime/planning/serialization/__init__.py +1 -0
- src/runtime/planning/serialization/plan_serializer.py +147 -0
- src/runtime/planning/validators/__init__.py +1 -0
- src/runtime/planning/validators/scene_plan_validator.py +210 -0
- src/runtime/planning_memory.py +242 -0
- src/runtime/predictive_execution.py +393 -0
- src/runtime/procedural_scene_assembler.py +415 -0
- src/runtime/production_memory.py +309 -0
- src/runtime/production_scoring.py +422 -0
- src/runtime/reality/__init__.py +197 -0
- src/runtime/reality/architectural_integrity_validator.py +220 -0
- src/runtime/reality/beam_connection_validator.py +205 -0
- src/runtime/reality/composition_engine.py +206 -0
- src/runtime/reality/correction_applier.py +159 -0
- src/runtime/reality/correction_pass_engine.py +253 -0
- src/runtime/reality/density_engine.py +145 -0
- src/runtime/reality/floating_object_detector.py +206 -0
- src/runtime/reality/functional_zone_builder.py +260 -0
- src/runtime/reality/geometry_inspector.py +229 -0
- src/runtime/reality/human_reasoning_engine.py +284 -0
- src/runtime/reality/reality_intelligence_engine.py +182 -0
- src/runtime/reality/reality_scene_model.py +351 -0
- src/runtime/reality/reality_serializer.py +75 -0
- src/runtime/reality/reality_statistics.py +145 -0
- src/runtime/reality/support_rule_engine.py +248 -0
- src/runtime/reality/visual_review_engine.py +217 -0
- src/runtime/recommendation_engine.py +358 -0
- src/runtime/render_preparation_engine.py +463 -0
- src/runtime/resource_estimator.py +256 -0
- src/runtime/resource_optimizer.py +343 -0
- src/runtime/review_engine.py +768 -0
- src/runtime/review_feedback.py +325 -0
- src/runtime/runtime_analytics.py +330 -0
- src/runtime/runtime_bootstrap.py +137 -0
- src/runtime/runtime_constraints.py +317 -0
- src/runtime/runtime_federation_api.py +297 -0
- src/runtime/runtime_identity.py +70 -0
- src/runtime/runtime_narration.py +493 -0
- src/runtime/runtime_prompt_context.py +682 -0
- src/runtime/scene_awareness.py +559 -0
- src/runtime/scene_cache.py +277 -0
- src/runtime/scene_hierarchy_builder.py +258 -0
- src/runtime/scene_layout_planner.py +292 -0
- src/runtime/scene_realization_review.py +452 -0
- src/runtime/scene_recommendation_engine.py +398 -0
- src/runtime/scene_validation/__init__.py +118 -0
- src/runtime/scene_validation/occupancy_validator.py +176 -0
- src/runtime/scene_validation/orphan_detector.py +205 -0
- src/runtime/scene_validation/plausibility_engine.py +236 -0
- src/runtime/scene_validation/relationship_validator.py +238 -0
- src/runtime/scene_validation/routing_audit.py +556 -0
- src/runtime/scene_validation/scene_reality_validator.py +229 -0
- src/runtime/scene_validation/support_surface_validator.py +155 -0
- src/runtime/scene_validation/validation_review.py +207 -0
- src/runtime/scene_validation/validation_serializer.py +74 -0
- src/runtime/scene_validation/validation_statistics.py +142 -0
- src/runtime/semantic/__init__.py +113 -0
- src/runtime/semantic/enrichers/__init__.py +12 -0
- src/runtime/semantic/enrichers/scene_intent_enricher.py +305 -0
- src/runtime/semantic/logging/__init__.py +18 -0
- src/runtime/semantic/logging/semantic_logger.py +298 -0
- src/runtime/semantic/prompts/__init__.py +12 -0
- src/runtime/semantic/prompts/intent_prompt_builder.py +317 -0
- src/runtime/semantic/recommendations/__init__.py +17 -0
- src/runtime/semantic/recommendations/intent_recommendation_engine.py +434 -0
- src/runtime/semantic/scene_intent_extractor.py +455 -0
- src/runtime/semantic/schema/__init__.py +40 -0
- src/runtime/semantic/schema/scene_intent_schema.py +349 -0
- src/runtime/semantic/serialization/__init__.py +16 -0
- src/runtime/semantic/serialization/intent_serializer.py +248 -0
- src/runtime/semantic/validators/__init__.py +14 -0
- src/runtime/semantic/validators/scene_intent_validator.py +284 -0
- src/runtime/semantic_execution.py +348 -0
- src/runtime/semantic_import_controller.py +408 -0
- src/runtime/semantic_lighting_engine.py +566 -0
- src/runtime/semantic_memory.py +257 -0
- src/runtime/semantic_registry.py +386 -0
- src/runtime/semantic_scene_templates.py +387 -0
- src/runtime/storage/__init__.py +18 -0
- src/runtime/storage/memory_backend.py +294 -0
- src/runtime/storage/serialization.py +211 -0
- src/runtime/storage/sqlite_backend.py +365 -0
- src/runtime/structure/__init__.py +135 -0
- src/runtime/structure/environment_structural_affinity.py +254 -0
- src/runtime/structure/geometry_role_detector.py +182 -0
- src/runtime/structure/metadata_role_classifier.py +279 -0
- src/runtime/structure/structural_asset_classifier.py +331 -0
- src/runtime/structure/structural_placement_rules.py +326 -0
- src/runtime/structure/structural_review.py +682 -0
- src/runtime/structure/structural_serializer.py +113 -0
- src/runtime/structure/structural_statistics.py +209 -0
- src/runtime/studio/__init__.py +71 -0
- src/runtime/studio/cross_project_learning.py +263 -0
- src/runtime/studio/knowledge_recommendation.py +324 -0
- src/runtime/studio/knowledge_serializer.py +154 -0
- src/runtime/studio/knowledge_statistics.py +107 -0
- src/runtime/studio/production_benchmark.py +240 -0
- src/runtime/studio/project_memory.py +250 -0
- src/runtime/studio/review_analytics.py +166 -0
- src/runtime/studio/studio_knowledge.py +284 -0
- src/runtime/studio/studio_metrics.py +155 -0
- src/runtime/studio/studio_standards.py +262 -0
- src/runtime/studio_knowledge.py +328 -0
- src/runtime/transaction_manager.py +367 -0
- src/runtime/validation_engine.py +234 -0
- src/runtime/visual_hierarchy_engine.py +452 -0
- src/runtime/worker_runtime.py +236 -0
- src/runtime/workflow_federation.py +316 -0
- src/runtime/workflow_optimizer.py +407 -0
- src/runtime/workflow_templates.py +421 -0
- src/runtime/workflows/__init__.py +129 -0
- src/runtime/workflows/workflow_blueprint.py +394 -0
- src/runtime/workflows/workflow_executor.py +344 -0
- src/runtime/workflows/workflow_pack.py +403 -0
- src/runtime/workflows/workflow_recommendation.py +353 -0
- src/runtime/workflows/workflow_registry.py +165 -0
- src/runtime/workflows/workflow_review.py +336 -0
- src/runtime/workflows/workflow_serializer.py +149 -0
- src/runtime/workflows/workflow_statistics.py +205 -0
- src/runtime/workflows/workflow_validator.py +272 -0
- src/utils/__init__.py +0 -0
- src/utils/hou_bridge.py +262 -0
- src/utils/vibrante_config.py +272 -0
- vibrante_node_runtime-2.5.1.dist-info/METADATA +47 -0
- vibrante_node_runtime-2.5.1.dist-info/RECORD +472 -0
- vibrante_node_runtime-2.5.1.dist-info/WHEEL +5 -0
- vibrante_node_runtime-2.5.1.dist-info/licenses/CLA.md +96 -0
- vibrante_node_runtime-2.5.1.dist-info/licenses/COMMERCIAL_LICENSE.md +170 -0
- vibrante_node_runtime-2.5.1.dist-info/licenses/LICENSE +178 -0
- vibrante_node_runtime-2.5.1.dist-info/licenses/LICENSES/AGPL-3.0.txt +661 -0
- vibrante_node_runtime-2.5.1.dist-info/licenses/LICENSES/CC-BY-4.0-SCOPE.md +53 -0
- vibrante_node_runtime-2.5.1.dist-info/licenses/LICENSES/CC-BY-4.0.txt +396 -0
- vibrante_node_runtime-2.5.1.dist-info/licenses/LICENSES/GPL-3.0.txt +674 -0
- vibrante_node_runtime-2.5.1.dist-info/licenses/LICENSES/LGPL-3.0.txt +165 -0
- vibrante_node_runtime-2.5.1.dist-info/licenses/LICENSES/README.md +65 -0
- vibrante_node_runtime-2.5.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,682 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Runtime Prompt Context
|
|
3
|
+
======================
|
|
4
|
+
Generates operational runtime context strings for LLMs.
|
|
5
|
+
|
|
6
|
+
This is NOT creative prompting.
|
|
7
|
+
This is runtime operational specification injected at session start so that
|
|
8
|
+
Claude, Codex, and GPT agents understand the Vibrante environment before
|
|
9
|
+
issuing any commands.
|
|
10
|
+
|
|
11
|
+
Public API:
|
|
12
|
+
get_system_prompt() -> str
|
|
13
|
+
Full operational system prompt - inject into LLM system message on connect.
|
|
14
|
+
|
|
15
|
+
get_execution_rules_block() -> str
|
|
16
|
+
Execution rules section only (for refreshes / brief summaries).
|
|
17
|
+
|
|
18
|
+
get_recommended_flow_block() -> str
|
|
19
|
+
Recommended 8-step execution flow section.
|
|
20
|
+
|
|
21
|
+
get_tool_guide() -> str
|
|
22
|
+
One-line-per-tool reference of available MCP tools.
|
|
23
|
+
|
|
24
|
+
get_scene_context_block(scene_context) -> str
|
|
25
|
+
Formats a scene_context dict into a human-readable block for mid-session
|
|
26
|
+
context injection.
|
|
27
|
+
|
|
28
|
+
get_contextual_prompt(scene_context=None) -> str
|
|
29
|
+
Shorter mid-session refresh prompt (rules + optional scene context).
|
|
30
|
+
|
|
31
|
+
get_scene_planning_block() -> str
|
|
32
|
+
Semantic scene assembly guidance rules (Tier 2 - for LLM context injection).
|
|
33
|
+
|
|
34
|
+
get_scene_realization_block() -> str
|
|
35
|
+
Scene realization guidance rules (Tier 3 - for LLM context injection).
|
|
36
|
+
|
|
37
|
+
get_cinematic_scene_layer_block() -> str
|
|
38
|
+
Cinematic scene layer guidance rules (Tier 4 - lighting, camera, atmosphere, review).
|
|
39
|
+
|
|
40
|
+
get_production_knowledge_block() -> str
|
|
41
|
+
Production Knowledge System rules (Tier 5 - memory, patterns, recommendations).
|
|
42
|
+
|
|
43
|
+
get_environment_construction_block() -> str
|
|
44
|
+
Environment construction rules (Tier 9 - §29 Semantic Asset Assembly).
|
|
45
|
+
|
|
46
|
+
get_workflow_pack_block() -> str
|
|
47
|
+
Workflow Pack rules (Tier 10 - §30 Workflow Packs & Production Blueprints).
|
|
48
|
+
|
|
49
|
+
get_asset_ecosystem_block() -> str
|
|
50
|
+
Asset Ecosystem rules (Tier 12 - §32 Asset Ecosystem Expansion).
|
|
51
|
+
|
|
52
|
+
get_asset_realization_block() -> str
|
|
53
|
+
Asset Realization & DCC Integration rules (Tier 13 - §33).
|
|
54
|
+
|
|
55
|
+
get_lookdev_intelligence_block() -> str
|
|
56
|
+
Lookdev & Material Intelligence rules (Tier 14 - §34).
|
|
57
|
+
|
|
58
|
+
get_semantic_catalog_block() -> str
|
|
59
|
+
Semantic Asset Catalog rules (Tier 12.7 - §35).
|
|
60
|
+
|
|
61
|
+
get_semantic_retrieval_block() -> str
|
|
62
|
+
Semantic Vector Search & Asset Retrieval rules (Tier 12.8 - §36).
|
|
63
|
+
|
|
64
|
+
get_online_acquisition_block() -> str
|
|
65
|
+
Online Asset Acquisition & Intelligent Asset Fetching rules (Tier 12.9 - §37).
|
|
66
|
+
"""
|
|
67
|
+
|
|
68
|
+
from __future__ import annotations
|
|
69
|
+
|
|
70
|
+
from typing import Any, Dict, List, Optional
|
|
71
|
+
|
|
72
|
+
from src.runtime.runtime_identity import (
|
|
73
|
+
EXECUTION_RULES,
|
|
74
|
+
RECOMMENDED_EXECUTION_FLOW,
|
|
75
|
+
RUNTIME_NAME,
|
|
76
|
+
RUNTIME_TYPE,
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
# ---------------------------------------------------------------------------
|
|
80
|
+
# Cinematic orchestration guidance
|
|
81
|
+
# ---------------------------------------------------------------------------
|
|
82
|
+
|
|
83
|
+
_CINEMATIC_RULES = [
|
|
84
|
+
"Decompose large cinematic goals into ordered stage sequences before executing.",
|
|
85
|
+
"Never execute a cinematic workflow as a single operation - always use staged execution.",
|
|
86
|
+
"Use plan_scene to decompose 'create explosion scene' into specific ordered workflow stages.",
|
|
87
|
+
"Stage dependencies are real - terrain_prep MUST precede pyro_source; lighting MUST precede render.",
|
|
88
|
+
"Artistic constraints are non-negotiable - motion blur, EXR output, emission AOV are required for cinematic work.",
|
|
89
|
+
"After cinematic execution, always call review_execution - 'Execution successful' is NOT an acceptable review.",
|
|
90
|
+
"Production-ready means: specific stages passed, specific criteria met - not just 'no errors'.",
|
|
91
|
+
]
|
|
92
|
+
|
|
93
|
+
_CINEMATIC_GOOD_PATTERNS = """\
|
|
94
|
+
GOOD - Decomposed cinematic execution:
|
|
95
|
+
plan_scene("create cinematic explosion")
|
|
96
|
+
→ matched: cinematic_explosion, dust_wave, debris_field, arnold_cinematic_lighting,
|
|
97
|
+
cinematic_push_in, arnold_render_ready
|
|
98
|
+
→ 34 ordered stages queued
|
|
99
|
+
→ review: "9/9 stages passed. Emission AOV confirmed. Cryptomatte configured."
|
|
100
|
+
|
|
101
|
+
GOOD - Specific review feedback:
|
|
102
|
+
review_execution(result)
|
|
103
|
+
→ [Review] Stage [smoke_evolution] ⚠ - smoke breakup lacks variation.
|
|
104
|
+
→ [Review] Stage [camera_framing] ✓ - 24-frame anticipation hold present.
|
|
105
|
+
→ Production-ready: advisory notes only.
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
_CINEMATIC_BAD_PATTERNS = """\
|
|
109
|
+
BAD - Single-shot execution (produces random non-cinematic output):
|
|
110
|
+
execute_workflow_transaction(intent="create explosion scene")
|
|
111
|
+
→ ✗ Missing stage ordering
|
|
112
|
+
→ ✗ No terrain interaction setup
|
|
113
|
+
→ ✗ No lighting before render
|
|
114
|
+
→ ✗ No camera setup
|
|
115
|
+
|
|
116
|
+
BAD - Lights only, no geometry (incomplete scene - the most common failure):
|
|
117
|
+
intent="build western old room"
|
|
118
|
+
→ Creates 3 lights in /stage
|
|
119
|
+
→ Says "Next step: add your saloon assets manually"
|
|
120
|
+
→ ✗ WRONG - the agent must import the geometry, not delegate it back to the user
|
|
121
|
+
→ ✗ A scene with lights but no geometry is NOT a scene - it is an empty lit void
|
|
122
|
+
→ Correct: call hou_mcp_build_scene_from_intent FIRST, then add lighting
|
|
123
|
+
|
|
124
|
+
BAD - Primitive geometry fallback (never acceptable for real-world objects):
|
|
125
|
+
bridge.create_node("/obj", "box", "barrel") ← a barrel is NOT a box
|
|
126
|
+
bridge.create_node("/obj", "tube", "column") ← a column is NOT a tube
|
|
127
|
+
bridge.create_node("/obj", "grid", "floor") ← a floor is NOT a grid
|
|
128
|
+
→ These are placeholder shapes, not production assets
|
|
129
|
+
→ Always import real Megascans assets via hou_mcp_import_asset or hou_mcp_build_scene_from_intent
|
|
130
|
+
|
|
131
|
+
BAD - Generic success response (no artistic critique):
|
|
132
|
+
review_execution(result)
|
|
133
|
+
→ "Execution completed successfully." ← WRONG - this tells nothing
|
|
134
|
+
→ Should say: "Smoke breakup lacks variation - add turbulence layers."
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
# ---------------------------------------------------------------------------
|
|
138
|
+
# Semantic scene planning guidance (Tier 2)
|
|
139
|
+
# ---------------------------------------------------------------------------
|
|
140
|
+
|
|
141
|
+
_SCENE_PLANNING_RULES = [
|
|
142
|
+
# Asset-first - NEVER primitives for real-world objects
|
|
143
|
+
"CRITICAL: NEVER use Houdini primitive nodes (box, tube, sphere, grid, line, circle) to represent real-world scene objects. A barrel is a Megascans asset, not a tube SOP. A wooden floor is a Megascans surface, not a grid SOP. A wall is a surface asset, not a box SOP. Primitives are ONLY for abstract math geometry.",
|
|
144
|
+
"CRITICAL: Always query the asset library BEFORE building any scene. The mandatory sequence is: (1) hou_mcp_build_scene_from_intent → geometry + assets, (2) atmosphere, (3) camera, (4) lights. Never skip straight to lighting - lights on empty geometry = failure.",
|
|
145
|
+
"CRITICAL: Geometry ALWAYS comes before lighting. A scene description like 'western old room' means: floor, walls, furniture, barrels, and props FIRST. Then lights. Reporting a scene as done after only creating lights is incorrect and incomplete.",
|
|
146
|
+
"If the semantic catalog is empty or returns no results, call hou_mcp_catalog_sync first to import available local Megascans assets. Never fall back to primitives when the catalog is empty - sync first.",
|
|
147
|
+
"If hou_mcp_build_scene_from_intent returns 0 assets, report the reason clearly (catalog empty / Megascans credentials missing) and guide the user to fix it. Do NOT proceed to lights.",
|
|
148
|
+
"Unknown environments (western, medieval, jungle, desert, etc.) are handled by keyword extraction - pass the full intent text to hou_mcp_asset_retrieval and let the hybrid ranking engine find matching assets by tags and description.",
|
|
149
|
+
# Layout and composition
|
|
150
|
+
"Always construct scenes through semantic layout planning - never place assets at random positions.",
|
|
151
|
+
"Prefer cinematic composition over dense asset placement; a clear hero focus beats a crowded scene.",
|
|
152
|
+
"Maintain clear hero focus: hero_area should hold 1-3 primary assets; more dilutes narrative clarity.",
|
|
153
|
+
"Preserve scene readability: populate at least midground AND background to create depth.",
|
|
154
|
+
"Avoid random environment assembly - use environment rules and scene templates to guide asset placement.",
|
|
155
|
+
"Use SceneLayoutPlanner to generate zone assignments before staging; zones drive import order.",
|
|
156
|
+
"Validate asset compatibility before staging: conflicting style pairs (vegetation+tech_panel, creature+robot) must be resolved.",
|
|
157
|
+
"Prefer AssetStagingManager.build_staging_plan for import orchestration - it validates coherence automatically.",
|
|
158
|
+
"Use SemanticSceneTemplates to select a production blueprint before assembling a scene from scratch.",
|
|
159
|
+
]
|
|
160
|
+
|
|
161
|
+
# ---------------------------------------------------------------------------
|
|
162
|
+
# Scene realization guidance (Tier 3)
|
|
163
|
+
# ---------------------------------------------------------------------------
|
|
164
|
+
|
|
165
|
+
_SCENE_REALIZATION_RULES = [
|
|
166
|
+
"Always realize scenes through deterministic semantic assembly - never place assets at arbitrary positions.",
|
|
167
|
+
"Use hou_mcp_layout_preview to inspect the full operation list and complexity before committing to execution.",
|
|
168
|
+
"All scene mutations go through the transaction system - hou_mcp_scene_realize handles this automatically.",
|
|
169
|
+
"Rollback is automatic on failure - a partially-realized scene is always recoverable.",
|
|
170
|
+
"After realization, always call hou_mcp_scene_review - a score and specific findings are required for production sign-off.",
|
|
171
|
+
"Scene hierarchy is canonical: /obj/hero_assets, /obj/background, /obj/lighting, /obj/camera must be present.",
|
|
172
|
+
"Transforms are deterministic: same layout_plan + staging_plan always produce the same scene layout.",
|
|
173
|
+
"Import order is back-to-front (background first, hero last) - this is enforced by the staging plan.",
|
|
174
|
+
"Prefer cinematic composition over dense placement - a clear hero focus beats a crowded scene.",
|
|
175
|
+
"Avoid uncontrolled importing - always validate asset compatibility before staging.",
|
|
176
|
+
]
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
# ---------------------------------------------------------------------------
|
|
180
|
+
# Cinematic Scene Layer guidance (Tier 4 - §23)
|
|
181
|
+
# ---------------------------------------------------------------------------
|
|
182
|
+
|
|
183
|
+
_CINEMATIC_SCENE_LAYER_RULES = [
|
|
184
|
+
"Use hou_mcp_cinematic_lighting before any render pass - cinematic scenes require planned key/rim/fill/volumetric setups.",
|
|
185
|
+
"Use hou_mcp_camera_orchestrator to select a camera mode (cinematic_push_in, orbital_reveal, hero_focus, atmospheric_tracking, handheld_subtle) before staging cameras.",
|
|
186
|
+
"Use hou_mcp_atmosphere_builder to establish depth-supporting fog and particles - flat scenes lack cinematic depth.",
|
|
187
|
+
"Run hou_mcp_cinematic_review after assembly - 'Execution successful' is NEVER acceptable; every review must return specific per-dimension findings.",
|
|
188
|
+
"Canonical cinematic pipeline order: lighting plan → camera plan → atmosphere plan → hierarchy review → cinematic review.",
|
|
189
|
+
"Lighting must target hero_area - a rim light without a key on the hero fails the 'hero_locked' focus criterion.",
|
|
190
|
+
"Camera readability score must reach 0.5+ - high shake intensity (>0.5) is a blocking readability issue.",
|
|
191
|
+
"Atmosphere density above 0.06 is cinema-invalid - background assets become obscured and fail depth criteria.",
|
|
192
|
+
"A production-ready cinematic review requires overall_score ≥ 0.7 with no critical findings (absent hero, flat lighting, undefined camera).",
|
|
193
|
+
"Visual hierarchy must have at minimum hero_area + midground populated - an empty background zone is an advisory warning, an empty midground is a depth failure.",
|
|
194
|
+
]
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
# ---------------------------------------------------------------------------
|
|
198
|
+
# Production Knowledge System rules (Tier 5 - §24)
|
|
199
|
+
# ---------------------------------------------------------------------------
|
|
200
|
+
|
|
201
|
+
_PRODUCTION_KNOWLEDGE_RULES = [
|
|
202
|
+
"Prefer production-proven patterns - always check hou_mcp_scene_recommendation before choosing lighting, camera, or atmosphere styles.",
|
|
203
|
+
"Reuse successful scene structures - if production_memory has successful scenes of the same type, use their configuration.",
|
|
204
|
+
"Avoid previously failed configurations - check hou_mcp_production_memory for failure patterns before assembling a scene.",
|
|
205
|
+
"Favor high-scoring recommendations - recommendations with confidence >= 0.8 (from production_memory) should take priority over pattern or default recommendations.",
|
|
206
|
+
"Preserve cinematic consistency - do not mix lighting/camera/atmosphere styles from different environments without a deliberate reason.",
|
|
207
|
+
"After scene execution, record the result in production memory - call hou_mcp_production_memory with action='record_scene' to accumulate knowledge.",
|
|
208
|
+
"Use hou_mcp_production_score to evaluate quality before deciding whether to record a scene as 'success' or 'failure'.",
|
|
209
|
+
"Patterns with _success_count > 0 are empirically proven - prefer them over built-in defaults when available.",
|
|
210
|
+
]
|
|
211
|
+
|
|
212
|
+
# ---------------------------------------------------------------------------
|
|
213
|
+
# Environment construction guidance (Tier 9 - §29)
|
|
214
|
+
# ---------------------------------------------------------------------------
|
|
215
|
+
|
|
216
|
+
_ENVIRONMENT_CONSTRUCTION_RULES = [
|
|
217
|
+
"Build environments through semantic zones - never place assets at random or arbitrary positions.",
|
|
218
|
+
"Preserve hero readability: hero_zone must hold 1-3 primary assets; more dilutes the narrative focal point.",
|
|
219
|
+
"Maintain visual hierarchy: hero (primary) → support → detail → atmosphere, in that priority order.",
|
|
220
|
+
"Prefer deterministic placement - use hou_mcp_asset_placement which derives positions from PlacementTemplates.",
|
|
221
|
+
"Avoid procedural clutter - detail and atmosphere assets should never dominate the population balance.",
|
|
222
|
+
"Preserve cinematic composition - run hou_mcp_environment_review before realizing a scene.",
|
|
223
|
+
"Respect production patterns - hou_mcp_scene_recommendation provides environment-specific proven configurations.",
|
|
224
|
+
"Use hou_mcp_storytelling_layout to define the visual flow and viewer path before executing placement.",
|
|
225
|
+
"Scene population must be balanced: hero_assets populated, detail_assets below 60% of total.",
|
|
226
|
+
"Environment review must return specific findings - 'Execution successful' is never acceptable output.",
|
|
227
|
+
]
|
|
228
|
+
|
|
229
|
+
# ---------------------------------------------------------------------------
|
|
230
|
+
# Workflow Pack rules (Tier 10 - §30)
|
|
231
|
+
# ---------------------------------------------------------------------------
|
|
232
|
+
|
|
233
|
+
_WORKFLOW_PACK_RULES = [
|
|
234
|
+
"Prefer workflow packs over ad-hoc orchestration - packs encapsulate proven production strategies.",
|
|
235
|
+
"Use hou_mcp_workflow_recommend to select the best pack from a semantic intent before executing.",
|
|
236
|
+
"Always validate a pack before execution - hou_mcp_workflow_pack retrieves the full strategy configuration.",
|
|
237
|
+
"Reuse proven production blueprints - packs encode lighting, camera, atmosphere, and review thresholds.",
|
|
238
|
+
"Use dry_run=True in hou_mcp_workflow_execute to preview operations before committing to scene mutation.",
|
|
239
|
+
"All workflow mutations go through the transaction system - rollback is automatic on failure.",
|
|
240
|
+
"After execution, always call hou_mcp_workflow_review - 'Execution successful' is never an acceptable review.",
|
|
241
|
+
"Respect review thresholds - production_ready requires meeting the pack's stated production_threshold.",
|
|
242
|
+
"Favor high-scoring workflow packs - check hou_mcp_workflow_statistics for success_rate before reusing a pack.",
|
|
243
|
+
"Preserve production consistency - do not mix strategies from different packs without a deliberate reason.",
|
|
244
|
+
]
|
|
245
|
+
|
|
246
|
+
# ---------------------------------------------------------------------------
|
|
247
|
+
# Studio Knowledge rules (Tier 11 - §31)
|
|
248
|
+
# ---------------------------------------------------------------------------
|
|
249
|
+
|
|
250
|
+
_STUDIO_KNOWLEDGE_RULES = [
|
|
251
|
+
"Prefer studio-approved standards - use hou_mcp_studio_standards to verify that lighting, camera, atmosphere, and workflow choices are approved before executing.",
|
|
252
|
+
"Reuse successful cross-project patterns - call hou_mcp_cross_project_learning to identify the best_workflow and best_lighting before starting a new scene.",
|
|
253
|
+
"Avoid historically poor-performing configurations - check hou_mcp_studio_knowledge for failure records before assembling a scene.",
|
|
254
|
+
"Follow benchmark-proven production strategies - use hou_mcp_knowledge_recommendation which applies the priority chain: Standards → Cross-Project → Memory → Patterns → Defaults.",
|
|
255
|
+
"Favour long-term production consistency - do not deviate from studio-approved styles without a documented reason.",
|
|
256
|
+
"Use studio knowledge before generic reasoning - hou_mcp_knowledge_recommendation outranks any heuristic default when studio knowledge is available.",
|
|
257
|
+
"After execution, record outcomes in studio knowledge - call hou_mcp_studio_knowledge with action='record_success' or 'record_failure' to accumulate cross-project intelligence.",
|
|
258
|
+
"Benchmark new projects against historical performance - call hou_mcp_production_benchmark to classify performance and receive specific improvement recommendations.",
|
|
259
|
+
"Analyse review trends with hou_mcp_review_analytics - identify recurring failures before they become studio-wide patterns.",
|
|
260
|
+
"Studio standards are the highest-priority constraint - a workflow not in approved_workflows or a lighting style not in approved_lighting_styles must be justified explicitly.",
|
|
261
|
+
]
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
# ---------------------------------------------------------------------------
|
|
265
|
+
# Asset Ecosystem rules (Tier 12 - §32)
|
|
266
|
+
# ---------------------------------------------------------------------------
|
|
267
|
+
|
|
268
|
+
_ASSET_ECOSYSTEM_RULES = [
|
|
269
|
+
"Prefer local assets before remote downloads - check AssetStorage before queuing downloads.",
|
|
270
|
+
"Cache acquired assets - register downloaded assets in AssetStorage for reuse.",
|
|
271
|
+
"Preserve asset provenance - always record_source when discovering assets from providers.",
|
|
272
|
+
"Normalize all provider metadata - use ProviderNormalizer before passing assets downstream.",
|
|
273
|
+
"Maintain deterministic asset selection - same query always produces the same ranked result.",
|
|
274
|
+
"Avoid duplicate asset acquisition - check asset_exists() before queuing a download.",
|
|
275
|
+
"Use semantic asset profiles for recommendations - enrich assets before ranking.",
|
|
276
|
+
"Respect provider availability - check is_available() before querying a provider.",
|
|
277
|
+
"Route all downloads through AssetDownloadManager - never bypass download tracking.",
|
|
278
|
+
"Sync libraries periodically - use AssetSync to keep local storage up to date.",
|
|
279
|
+
]
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
# ---------------------------------------------------------------------------
|
|
283
|
+
# Asset Realization rules (Tier 13 - §33)
|
|
284
|
+
# ---------------------------------------------------------------------------
|
|
285
|
+
|
|
286
|
+
_ASSET_REALIZATION_RULES = [
|
|
287
|
+
"Preserve provenance - always record asset source, provider, and download chain.",
|
|
288
|
+
"Preserve metadata - normalization must never discard original asset metadata.",
|
|
289
|
+
"Normalize assets before realization - scale, orientation, and units must be consistent.",
|
|
290
|
+
"Resolve dependencies before instancing - missing textures and materials must be identified first.",
|
|
291
|
+
"Use USD-friendly representations - prefer USD-compatible formats for all realizations.",
|
|
292
|
+
"Generate transaction-safe realization plans - never mutate Houdini state directly.",
|
|
293
|
+
"Avoid direct DCC mutations - all scene changes must go through the transaction system.",
|
|
294
|
+
"Validate the full pipeline before committing - use AssetValidationPipeline before execution.",
|
|
295
|
+
"Review realization quality after completion - use AssetRealizationReview for production sign-off.",
|
|
296
|
+
"Prefer AssetMaterialMapper for renderer-specific material descriptions - never hardcode shader parameters.",
|
|
297
|
+
]
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
# ---------------------------------------------------------------------------
|
|
301
|
+
# Lookdev & Material Intelligence rules (Tier 14 - §34)
|
|
302
|
+
# ---------------------------------------------------------------------------
|
|
303
|
+
|
|
304
|
+
_LOOKDEV_INTELLIGENCE_RULES = [
|
|
305
|
+
"Prefer production-proven lookdev patterns - always call hou_mcp_lookdev_patterns before selecting materials.",
|
|
306
|
+
"Match materials to environment - industrial_hangar uses weathered_concrete + industrial_metal, not polished_steel.",
|
|
307
|
+
"Use renderer-aware profiles - call hou_mcp_renderer_profile to get correct material class before building any shader plan.",
|
|
308
|
+
"Maintain environment consistency - all assets in a scene should share a lookdev pattern, not mix arbitrary materials.",
|
|
309
|
+
"Preserve visual coherence - avoid conflicting material categories (e.g., polished_steel with weathered_concrete in the same hero zone).",
|
|
310
|
+
"Generate assignment plans only - hou_mcp_material_assign produces transaction ops, never direct Houdini mutations.",
|
|
311
|
+
"Use material recommendations before defaults - hou_mcp_material_recommend outranks any hardcoded material guess.",
|
|
312
|
+
"Favor studio-approved lookdev standards - a lookdev pattern not in LookdevPatterns must be explicitly justified.",
|
|
313
|
+
"Run lookdev review before scene realization - call hou_mcp_lookdev_review after planning materials, not after rendering.",
|
|
314
|
+
"Review must be specific - 'material assigned' is NOT acceptable; review must state which materials were chosen and why.",
|
|
315
|
+
]
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
# ---------------------------------------------------------------------------
|
|
319
|
+
# Semantic Asset Catalog rules (Tier 12.7 - §35)
|
|
320
|
+
# ---------------------------------------------------------------------------
|
|
321
|
+
|
|
322
|
+
_SEMANTIC_CATALOG_RULES = [
|
|
323
|
+
"Prefer semantic reasoning over raw tags - query by environment intent, not filename.",
|
|
324
|
+
"Prefer local metadata before API calls - check manifest files and catalog before querying Megascans.",
|
|
325
|
+
"Understand environment suitability - industrial_hangar assets are not interchangeable with sci_fi_corridor assets.",
|
|
326
|
+
"Understand storytelling purpose - hero_object assets need cinematic placement; atmosphere_builder assets fill depth layers.",
|
|
327
|
+
"Understand cinematic usage - depth_layer assets support visual depth; hero_focus assets must occupy the primary focal zone.",
|
|
328
|
+
"Maintain deterministic ranking - same environment intent always returns the same ranked asset list.",
|
|
329
|
+
"Preserve semantic relationships - use the knowledge graph to discover commonly_used_with and same_environment assets.",
|
|
330
|
+
"Cache Megascans metadata aggressively - never re-fetch if catalog entry exists.",
|
|
331
|
+
"Use query_intent() for natural language queries - 'Industrial Hangar Hero Machinery' resolves to environment + role + category filters.",
|
|
332
|
+
"Review catalog quality before production - call hou_mcp_catalog_review after sync; production_ready requires score >= 0.7.",
|
|
333
|
+
]
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
# ---------------------------------------------------------------------------
|
|
337
|
+
# Semantic Vector Search & Asset Retrieval rules (Tier 12.8 - §36)
|
|
338
|
+
# ---------------------------------------------------------------------------
|
|
339
|
+
|
|
340
|
+
_SEMANTIC_RETRIEVAL_RULES = [
|
|
341
|
+
"Prefer semantic meaning over keyword matching - use hou_mcp_asset_retrieval with intent text, not raw filenames.",
|
|
342
|
+
"Prefer environment fit over raw similarity - an asset scoring 0.9 in wrong environment beats a 0.7 in the right one.",
|
|
343
|
+
"Consider storytelling purpose - hero_object assets need cinematic placement; atmosphere_builder assets fill depth layers.",
|
|
344
|
+
"Consider cinematic usage - depth_layer assets need background zones; hero_focus assets must be in the primary focal zone.",
|
|
345
|
+
"Consider production memory - importance=primary assets rank higher than ambient; factor this into placement decisions.",
|
|
346
|
+
"Preserve deterministic ranking - same intent text always returns same ranked asset list given same catalog state.",
|
|
347
|
+
"Build the vector index before retrieval - call hou_mcp_vector_index (build_full) after catalog sync.",
|
|
348
|
+
"Use hybrid ranking, not pure vector search - hou_mcp_hybrid_ranking combines 6 signals for production-aware results.",
|
|
349
|
+
"Review retrieval quality - call hou_mcp_retrieval_review after building the index; production_ready requires score >= 0.7.",
|
|
350
|
+
"Fall back gracefully - retrieval_pipeline falls back to catalog search when vector store is empty; never fails silently.",
|
|
351
|
+
]
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
# ---------------------------------------------------------------------------
|
|
355
|
+
# Online Asset Acquisition rules (Tier 12.9 - §37)
|
|
356
|
+
# ---------------------------------------------------------------------------
|
|
357
|
+
|
|
358
|
+
_ONLINE_ACQUISITION_RULES = [
|
|
359
|
+
"Download only assets selected by semantic intelligence layers - never download blindly or in bulk.",
|
|
360
|
+
"Prefer cache before acquisition - call hou_mcp_asset_fetch (ensure_available) to check cache before triggering any download.",
|
|
361
|
+
"Prefer highest-ranked assets - acquisition pipeline calls vector retrieval first; only top-k results are fetched.",
|
|
362
|
+
"Preserve provenance - every acquired asset must have a ProvenanceRecord with provider, checksum, local_path, and download_time.",
|
|
363
|
+
"Validate integrity - always verify SHA-256 checksum after download; reject assets with mismatched checksums.",
|
|
364
|
+
"Never duplicate assets - the cache manager deduplicates by (provider, asset_id); re-acquiring the same asset returns the cached path.",
|
|
365
|
+
"Build project-local caches - use hou_mcp_asset_staging to copy acquired assets into the project staging directory.",
|
|
366
|
+
"Use the download queue for bulk operations - enqueue via hou_mcp_download_queue, process via DownloadScheduler.",
|
|
367
|
+
"Review acquisition quality - call hou_mcp_download_review after pipeline runs; production_ready requires score >= 0.70.",
|
|
368
|
+
"Handle offline mode gracefully - all acquisition modules return safe defaults when VIBRANTE_MEGASCANS_TOKEN is unset.",
|
|
369
|
+
"Canonical acquisition workflow: hou_mcp_asset_retrieval → hou_mcp_asset_fetch → hou_mcp_asset_staging → hou_mcp_download_review.",
|
|
370
|
+
"CREDENTIAL CONFIGURATION — MANDATORY: When any acquisition tool returns configuration_required=True or how_to_fix, "
|
|
371
|
+
"relay the how_to_fix text verbatim. NEVER substitute shell $env: commands. "
|
|
372
|
+
"Credentials live in the 'env' array of ~/Documents/houdiniXX.Y/packages/vibrante_node.json — "
|
|
373
|
+
"that is the ONLY correct location to tell the user to edit. "
|
|
374
|
+
"The runtime reads this file automatically from the live Houdini session on every acquisition call.",
|
|
375
|
+
]
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
# ---------------------------------------------------------------------------
|
|
379
|
+
# Lighting Intelligence rules (Tier 15 - §38)
|
|
380
|
+
# ---------------------------------------------------------------------------
|
|
381
|
+
|
|
382
|
+
_LIGHTING_INTELLIGENCE_RULES = [
|
|
383
|
+
"Lighting exists to support story - every light must have a narrative justification.",
|
|
384
|
+
"Readability is more important than complexity - a readable scene beats a technically impressive one.",
|
|
385
|
+
"Mood drives illumination decisions - infer mood from intent before building any lighting plan.",
|
|
386
|
+
"Visual hierarchy must be preserved - hero subjects receive maximum rim and dedicated key targeting.",
|
|
387
|
+
"Use production memory when available - pattern library captures proven setups; prefer it over generic defaults.",
|
|
388
|
+
"Prefer deterministic planning - same intent always produces the same lighting plan.",
|
|
389
|
+
"Generate plans, not renderer nodes - all lighting outputs are renderer-agnostic plan dicts.",
|
|
390
|
+
"Never create Houdini lights directly - lighting nodes produce plans for downstream realization.",
|
|
391
|
+
"Always review lighting quality - call hou_mcp_lighting_review after plan generation; production_ready requires score >= 0.70.",
|
|
392
|
+
"Color temperature tells a story - warm keys suggest safety; cool keys suggest threat or technology.",
|
|
393
|
+
"Contrast ratio controls emotional weight - high contrast for drama/danger; low contrast for clinical/hopeful.",
|
|
394
|
+
"Volumetrics add narrative depth - use only when environment warrants it (hangar, corridor, abandoned, night exterior).",
|
|
395
|
+
"Canonical lighting workflow: hou_mcp_lighting_strategy → hou_mcp_lighting_plan → hou_mcp_lighting_review.",
|
|
396
|
+
]
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
# ---------------------------------------------------------------------------
|
|
400
|
+
# Block generators
|
|
401
|
+
# ---------------------------------------------------------------------------
|
|
402
|
+
|
|
403
|
+
def get_execution_rules_block() -> str:
|
|
404
|
+
rules = "\n".join(f"- {r}" for r in EXECUTION_RULES)
|
|
405
|
+
return f"Execution Rules:\n{rules}"
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
def get_recommended_flow_block() -> str:
|
|
409
|
+
steps = "\n".join(RECOMMENDED_EXECUTION_FLOW)
|
|
410
|
+
return f"Preferred Execution Flow:\n{steps}"
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
def get_cinematic_orchestration_block() -> str:
|
|
414
|
+
"""Cinematic-specific orchestration guidance block."""
|
|
415
|
+
rules = "\n".join(f"- {r}" for r in _CINEMATIC_RULES)
|
|
416
|
+
return f"""\
|
|
417
|
+
Cinematic Orchestration Rules:
|
|
418
|
+
{rules}
|
|
419
|
+
|
|
420
|
+
{_CINEMATIC_GOOD_PATTERNS}
|
|
421
|
+
{_CINEMATIC_BAD_PATTERNS}"""
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
def get_scene_planning_block() -> str:
|
|
425
|
+
"""Semantic scene assembly guidance block (Tier 2)."""
|
|
426
|
+
rules = "\n".join(f"- {r}" for r in _SCENE_PLANNING_RULES)
|
|
427
|
+
return f"Semantic Scene Planning Rules:\n{rules}"
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
def get_scene_realization_block() -> str:
|
|
431
|
+
"""Deterministic scene realization guidance block (Tier 3)."""
|
|
432
|
+
rules = "\n".join(f"- {r}" for r in _SCENE_REALIZATION_RULES)
|
|
433
|
+
return f"Scene Realization Rules:\n{rules}"
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
def get_cinematic_scene_layer_block() -> str:
|
|
437
|
+
"""Cinematic Scene Layer guidance block (Tier 4 - §23)."""
|
|
438
|
+
rules = "\n".join(f"- {r}" for r in _CINEMATIC_SCENE_LAYER_RULES)
|
|
439
|
+
return f"Cinematic Scene Layer Rules (lighting, camera, atmosphere, review):\n{rules}"
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
def get_production_knowledge_block() -> str:
|
|
443
|
+
"""Production Knowledge System guidance block (Tier 5 - §24)."""
|
|
444
|
+
rules = "\n".join(f"- {r}" for r in _PRODUCTION_KNOWLEDGE_RULES)
|
|
445
|
+
return f"Production Knowledge Rules:\n{rules}"
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
def get_environment_construction_block() -> str:
|
|
449
|
+
"""Environment construction guidance block (Tier 9 - §29)."""
|
|
450
|
+
rules = "\n".join(f"- {r}" for r in _ENVIRONMENT_CONSTRUCTION_RULES)
|
|
451
|
+
return f"Environment Construction Rules:\n{rules}"
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
def get_workflow_pack_block() -> str:
|
|
455
|
+
"""Workflow Pack guidance block (Tier 10 - §30)."""
|
|
456
|
+
rules = "\n".join(f"- {r}" for r in _WORKFLOW_PACK_RULES)
|
|
457
|
+
return f"Workflow Pack Rules:\n{rules}"
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
def get_studio_knowledge_block() -> str:
|
|
461
|
+
"""Studio Knowledge guidance block (Tier 11 - §31)."""
|
|
462
|
+
rules = "\n".join(f"- {r}" for r in _STUDIO_KNOWLEDGE_RULES)
|
|
463
|
+
return f"Studio Knowledge Rules:\n{rules}"
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
def get_asset_ecosystem_block() -> str:
|
|
467
|
+
"""Asset Ecosystem Rules injected into LLM system prompt (Tier 12 - §32)."""
|
|
468
|
+
rules = "\n".join(f"{i}. {r}" for i, r in enumerate(_ASSET_ECOSYSTEM_RULES, 1))
|
|
469
|
+
return f"## Asset Ecosystem Rules\n{rules}"
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
def get_asset_realization_block() -> str:
|
|
473
|
+
"""Asset Realization & DCC Integration rules (Tier 13 - §33)."""
|
|
474
|
+
rules = "\n".join(f"{i}. {r}" for i, r in enumerate(_ASSET_REALIZATION_RULES, 1))
|
|
475
|
+
return f"## Asset Realization Rules\n{rules}"
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
def get_lookdev_intelligence_block() -> str:
|
|
479
|
+
"""Lookdev & Material Intelligence rules (Tier 14 - §34)."""
|
|
480
|
+
rules = "\n".join(f"{i}. {r}" for i, r in enumerate(_LOOKDEV_INTELLIGENCE_RULES, 1))
|
|
481
|
+
return f"## Lookdev Intelligence Rules\n{rules}"
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
def get_semantic_catalog_block() -> str:
|
|
485
|
+
"""Semantic Asset Catalog rules (Tier 12.7 - §35)."""
|
|
486
|
+
rules = "\n".join(f"{i}. {r}" for i, r in enumerate(_SEMANTIC_CATALOG_RULES, 1))
|
|
487
|
+
return f"## Semantic Asset Catalog Rules\n{rules}"
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
def get_semantic_retrieval_block() -> str:
|
|
491
|
+
"""Semantic Vector Search & Asset Retrieval rules (Tier 12.8 - §36)."""
|
|
492
|
+
rules = "\n".join(f"{i}. {r}" for i, r in enumerate(_SEMANTIC_RETRIEVAL_RULES, 1))
|
|
493
|
+
return f"## Semantic Retrieval Rules\n{rules}"
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
def get_online_acquisition_block() -> str:
|
|
497
|
+
"""Online Asset Acquisition & Intelligent Asset Fetching rules (Tier 12.9 - §37)."""
|
|
498
|
+
rules = "\n".join(f"{i}. {r}" for i, r in enumerate(_ONLINE_ACQUISITION_RULES, 1))
|
|
499
|
+
return f"## Online Acquisition Rules\n{rules}"
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
def get_lighting_intelligence_block() -> str:
|
|
503
|
+
"""Lighting Intelligence & Cinematic Illumination rules (Tier 15 - §38)."""
|
|
504
|
+
rules = "\n".join(f"{i}. {r}" for i, r in enumerate(_LIGHTING_INTELLIGENCE_RULES, 1))
|
|
505
|
+
return f"## Lighting Intelligence Rules\n{rules}"
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
def get_tool_guide() -> str:
|
|
509
|
+
return """\
|
|
510
|
+
Available MCP Tools:
|
|
511
|
+
|
|
512
|
+
RUNTIME:
|
|
513
|
+
initialize_runtime_context - read current scene + runtime state (call first)
|
|
514
|
+
query_runtime_state - live runtime metrics and status
|
|
515
|
+
query_scene_context - structured Houdini scene snapshot
|
|
516
|
+
|
|
517
|
+
KNOWLEDGE:
|
|
518
|
+
query_capabilities - enumerate what the runtime can do
|
|
519
|
+
query_workflow_templates - browse available workflow templates
|
|
520
|
+
query_examples - get execution examples for an intent
|
|
521
|
+
query_node_parameters - list parameter names + values for a Houdini node
|
|
522
|
+
|
|
523
|
+
PLANNING:
|
|
524
|
+
plan_scene - parse a natural-language intent → execution plan
|
|
525
|
+
preview_execution - inspect operations + risk without executing
|
|
526
|
+
validate_execution_plan - structural + constraint validation pass
|
|
527
|
+
|
|
528
|
+
EXECUTION:
|
|
529
|
+
execute_workflow_transaction - run a validated plan via the transaction system
|
|
530
|
+
review_execution - post-execution intent-match review
|
|
531
|
+
|
|
532
|
+
CONFIGURATION:
|
|
533
|
+
check_vibrante_config - CALL THIS when credentials or paths may be missing.
|
|
534
|
+
Returns the exact file path to edit and how_to_fix text.
|
|
535
|
+
Relay how_to_fix verbatim - NEVER substitute $env: commands.
|
|
536
|
+
|
|
537
|
+
SCENE BUILDING - USE THIS MCP TOOL FOR ANY "BUILD / CREATE / MAKE A ROOM / SCENE" INTENT:
|
|
538
|
+
build_scene_from_assets - REQUIRED FIRST STEP. This is an MCP tool, call it directly.
|
|
539
|
+
Chains: intent → keywords → catalog → Megascans API download
|
|
540
|
+
→ extract ZIP → find mesh → import into Houdini.
|
|
541
|
+
NEVER creates box/tube/sphere/grid primitives.
|
|
542
|
+
Works for ANY environment: western, sci-fi, medieval, desert…
|
|
543
|
+
Call this BEFORE plan_scene, BEFORE lights, BEFORE camera.
|
|
544
|
+
|
|
545
|
+
MANDATORY SCENE-BUILDING ORDER:
|
|
546
|
+
1. build_scene_from_assets(intent=...) ← geometry + real Megascans assets
|
|
547
|
+
└─ Phase 0 (internal): EnvironmentShellBuilder — floor + walls + ceiling + anchors
|
|
548
|
+
SHELL_RUNTIME_STATUS = PASS required before furniture placement proceeds.
|
|
549
|
+
If SHELL_RUNTIME_STATUS = FAIL → ENVIRONMENT_NOT_READY → pipeline aborts layout.
|
|
550
|
+
2. execute_workflow_transaction ← atmosphere, VFX (if any)
|
|
551
|
+
3. Lighting via execute_workflow_transaction (key, fill, rim)
|
|
552
|
+
4. review_execution ← verify geometry + lighting achieved
|
|
553
|
+
|
|
554
|
+
Lighting without geometry = INCOMPLETE. Never skip step 1.
|
|
555
|
+
Do NOT use plan_scene for scene-building intents - it generates primitives.
|
|
556
|
+
Do NOT use execute_workflow_transaction alone for geometry - it generates primitives.
|
|
557
|
+
build_scene_from_assets is the ONLY path for environment construction.
|
|
558
|
+
SHELL_RUNTIME_STATUS and END_TO_END_LAYOUT_STATUS are both returned by build_scene_from_assets.
|
|
559
|
+
"""
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
# ---------------------------------------------------------------------------
|
|
563
|
+
# System prompt
|
|
564
|
+
# ---------------------------------------------------------------------------
|
|
565
|
+
|
|
566
|
+
def get_system_prompt() -> str:
|
|
567
|
+
"""Full operational system prompt.
|
|
568
|
+
|
|
569
|
+
Inject this into the LLM system message on session start to establish
|
|
570
|
+
Vibrante Runtime awareness. Idempotent - safe to call multiple times.
|
|
571
|
+
"""
|
|
572
|
+
return f"""\
|
|
573
|
+
You are operating inside {RUNTIME_NAME}.
|
|
574
|
+
|
|
575
|
+
{RUNTIME_NAME} is an {RUNTIME_TYPE}.
|
|
576
|
+
|
|
577
|
+
{get_execution_rules_block()}
|
|
578
|
+
|
|
579
|
+
{get_recommended_flow_block()}
|
|
580
|
+
|
|
581
|
+
{get_scene_planning_block()}
|
|
582
|
+
|
|
583
|
+
{get_scene_realization_block()}
|
|
584
|
+
|
|
585
|
+
{get_cinematic_scene_layer_block()}
|
|
586
|
+
|
|
587
|
+
{get_production_knowledge_block()}
|
|
588
|
+
|
|
589
|
+
{get_environment_construction_block()}
|
|
590
|
+
|
|
591
|
+
{get_cinematic_orchestration_block()}
|
|
592
|
+
|
|
593
|
+
{get_workflow_pack_block()}
|
|
594
|
+
|
|
595
|
+
{get_studio_knowledge_block()}
|
|
596
|
+
|
|
597
|
+
{get_asset_ecosystem_block()}
|
|
598
|
+
|
|
599
|
+
{get_asset_realization_block()}
|
|
600
|
+
|
|
601
|
+
{get_lookdev_intelligence_block()}
|
|
602
|
+
|
|
603
|
+
{get_semantic_catalog_block()}
|
|
604
|
+
|
|
605
|
+
{get_semantic_retrieval_block()}
|
|
606
|
+
|
|
607
|
+
{get_online_acquisition_block()}
|
|
608
|
+
|
|
609
|
+
{get_lighting_intelligence_block()}
|
|
610
|
+
|
|
611
|
+
{get_tool_guide()}
|
|
612
|
+
|
|
613
|
+
IMPORTANT:
|
|
614
|
+
- Always call initialize_runtime_context before issuing any execution commands.
|
|
615
|
+
- Always call plan_scene to decompose large cinematic goals before executing.
|
|
616
|
+
- Always call preview_execution before execute_workflow_transaction.
|
|
617
|
+
- Never attempt raw Houdini API calls - they are not exposed.
|
|
618
|
+
- Never skip validation - the runtime enforces it automatically.
|
|
619
|
+
- After execution, always call review_execution to verify the intent was achieved.
|
|
620
|
+
- review_execution must return specific artistic critique, not generic success messages.
|
|
621
|
+
- Use hou_mcp_knowledge_recommendation before any scene setup - studio knowledge outranks generic defaults.
|
|
622
|
+
"""
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
# ---------------------------------------------------------------------------
|
|
626
|
+
# Scene context formatter
|
|
627
|
+
# ---------------------------------------------------------------------------
|
|
628
|
+
|
|
629
|
+
def get_scene_context_block(scene_context: Optional[Dict[str, Any]]) -> str:
|
|
630
|
+
"""Format a scene_context dict into a concise human-readable block."""
|
|
631
|
+
if not scene_context:
|
|
632
|
+
return "Scene Context: not available"
|
|
633
|
+
|
|
634
|
+
lines: List[str] = ["Current Scene Context:"]
|
|
635
|
+
|
|
636
|
+
scene = scene_context.get("scene", {})
|
|
637
|
+
if scene:
|
|
638
|
+
lines.append(f" hip_file: {scene.get('hip_file', 'untitled')}")
|
|
639
|
+
lines.append(f" houdini_version: {scene.get('houdini_version', 'unknown')}")
|
|
640
|
+
fr = scene.get("frame_range", [1, 240])
|
|
641
|
+
lines.append(f" frame: {scene.get('frame', 1)} range {fr[0]}-{fr[1]}")
|
|
642
|
+
|
|
643
|
+
networks = scene_context.get("networks", {})
|
|
644
|
+
for net_name, nodes in networks.items():
|
|
645
|
+
if nodes:
|
|
646
|
+
names = [n.get("name", "?") for n in nodes[:5]]
|
|
647
|
+
suffix = f" (+{len(nodes) - 5} more)" if len(nodes) > 5 else ""
|
|
648
|
+
lines.append(f" {net_name}: {', '.join(names)}{suffix}")
|
|
649
|
+
|
|
650
|
+
selection = scene_context.get("selection", [])
|
|
651
|
+
if selection:
|
|
652
|
+
paths = [n.get("path", "?") for n in selection[:3]]
|
|
653
|
+
lines.append(f" selection: {', '.join(paths)}")
|
|
654
|
+
|
|
655
|
+
assets = scene_context.get("assets", {})
|
|
656
|
+
hdas = assets.get("hda_files", [])
|
|
657
|
+
if hdas:
|
|
658
|
+
lines.append(f" hda_files: {len(hdas)} loaded")
|
|
659
|
+
|
|
660
|
+
return "\n".join(lines)
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
# ---------------------------------------------------------------------------
|
|
664
|
+
# Contextual / mid-session prompt
|
|
665
|
+
# ---------------------------------------------------------------------------
|
|
666
|
+
|
|
667
|
+
def get_contextual_prompt(
|
|
668
|
+
scene_context: Optional[Dict[str, Any]] = None,
|
|
669
|
+
include_cinematic: bool = False,
|
|
670
|
+
) -> str:
|
|
671
|
+
"""Shorter mid-session context refresh - rules + optional current scene.
|
|
672
|
+
|
|
673
|
+
Args:
|
|
674
|
+
scene_context: Optional structured scene dict.
|
|
675
|
+
include_cinematic: If True, include cinematic orchestration rules block.
|
|
676
|
+
"""
|
|
677
|
+
blocks = [get_execution_rules_block()]
|
|
678
|
+
if include_cinematic:
|
|
679
|
+
blocks.append(get_cinematic_orchestration_block())
|
|
680
|
+
if scene_context:
|
|
681
|
+
blocks.append(get_scene_context_block(scene_context))
|
|
682
|
+
return "\n\n".join(blocks)
|