Skip to content

Add optional flag to output node counts per level #173

@carpalsgrabby

Description

@carpalsgrabby

Summary

For some debugging and visualization workflows, it’s helpful to see the number of nodes at each tree level (from root to leaves). The script currently does not expose this information.

Proposal

  • Add a new flag: --levels (boolean)
  • When enabled, output a list such as:
    • level 0 (root): 1 node
    • level 1: arity nodes
    • level h: arity**h nodes (full leaves)
  • Include this in both human-readable and JSON modes.

Benefit

Gives users a more complete understanding of the tree structure and helps debugging state commitment models.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions