Skip to content

Commit ee12615

Browse files
committed
feat(pipeline): add Ensemble production topology routing pass
Parses XData ProductionDefinition blocks to extract production topology and emits Route/ASYNC_CALLS/HANDLES graph edges for Ensemble interoperability routing. Key design points: - Emit Route nodes (qn: __route__ensemble__<prod>.<item>) with props {broker, class, enabled, production} — visible in get_architecture and search_graph at the same priority as HTTP routes - Emit ASYNC_CALLS edges from source method/item to target Route node via SendRequestSync literal scan and TargetConfigName(s) settings - Emit HANDLES edges from each item's entry-point method to its Route node, completing the code-to-topology link - Fix scan_source_for_send_targets: scope search to calling method body using brace-depth tracking to eliminate cross-method contamination - Handle TargetConfigNames (plural, comma-separated) by emitting one ASYNC_CALLS edge per token - Segment-anchored class_name_matches() prevents prefix collisions ("Ens" not matching "Ens.BusinessService") - Language-gate: skip entirely when no ObjectScript nodes present Tests: pipeline_ensemble_routing_edges (Route nodes + ASYNC_CALLS + HANDLES); pipeline_ensemble_routing_method_scoping (two methods, two targets, no cross-contamination). Fixes DeusData#467 Signed-off-by: Thomas Dyar <tdyar@intersystems.com>
1 parent 010569f commit ee12615

5 files changed

Lines changed: 857 additions & 4 deletions

File tree

‎Makefile.cbm‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ PIPELINE_SRCS = \
356356
src/pipeline/pass_complexity.c \
357357
src/pipeline/pass_cross_repo.c \
358358
src/pipeline/artifact.c \
359+
src/pipeline/pass_ensemble_routing.c \
359360
src/pipeline/pass_pkgmap.c
360361

361362
# SimHash / MinHash module

0 commit comments

Comments
 (0)