fix(autonomy): correct child ID linkage in _build_hierarchy() #1227

Closed
brent.edwards wants to merge 1 commits from bugfix/m6-build-hierarchy-child-ids into master

1 Commits

Author SHA1 Message Date
brent.edwards 6e3cfcca58 fix(autonomy): correct child ID linkage in _build_hierarchy()
CI / build (pull_request) Successful in 30s
CI / helm (pull_request) Successful in 31s
CI / lint (pull_request) Successful in 3m54s
CI / quality (pull_request) Successful in 4m28s
CI / typecheck (pull_request) Successful in 4m33s
CI / security (pull_request) Successful in 4m44s
CI / integration_tests (pull_request) Successful in 9m53s
CI / unit_tests (pull_request) Successful in 10m12s
CI / docker (pull_request) Successful in 1m34s
CI / coverage (pull_request) Successful in 12m18s
CI / e2e_tests (pull_request) Successful in 20m37s
CI / status-check (pull_request) Successful in 1s
CI / benchmark-publish (pull_request) Has been skipped
CI / benchmark-regression (pull_request) Successful in 55m2s
Fixed child ID linkage in DecompositionService._build_hierarchy() where
children_ids.append(nodes[-1].node_id) used the last node in the list
instead of the actual child node ID from the recursive call. Changed
return type to tuple[int, str] to propagate both max_depth and node_id.
Updated decompose() caller to unpack the new return type.

Split from PR #1201 per reviewer request for atomic commits.

ISSUES CLOSED: #1225
2026-03-31 11:05:59 +00:00