Skip to content

fix: include label_kind and parent_id in subsystems JSON output#143

Open
TannerTorrey3 wants to merge 2 commits intomainfrom
fix/subsystems-compact-label-kind
Open

fix: include label_kind and parent_id in subsystems JSON output#143
TannerTorrey3 wants to merge 2 commits intomainfrom
fix/subsystems-compact-label-kind

Conversation

@TannerTorrey3
Copy link
Copy Markdown
Contributor

Summary

  • compactRegion() in subsystems.ts was stripping label_kind and parent_id from the JSON output of ix subsystems --format json
  • The backend returns both fields correctly, but the compact formatter omitted them
  • Without these fields, consumers (e.g. the ix-claude-plugin) cannot distinguish systems/subsystems/modules or reconstruct the region hierarchy

Test plan

  • Verified ix subsystems --format json now includes label_kind (system/subsystem/module) and parent_id on every region
  • Confirmed backend returns 15 systems, 187 subsystems, 324 modules for Kubernetes — all now visible in CLI output

🤖 Generated with Claude Code

TannerTorrey3 and others added 2 commits April 4, 2026 10:34
The compactRegion() function was stripping label_kind and parent_id
when formatting the JSON response for `ix subsystems --format json`.
The backend returns both fields but they were omitted from the compact
output, making it impossible to distinguish systems/subsystems/modules
or reconstruct the hierarchy from JSON.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
GET /v1/subsystems only returns persisted scores, but scoring requires
a separate POST to /v1/subsystems/score. This auto-triggers scoring
on-demand in both the --list and --explain paths when no scores exist.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant