Aligned listing rather than a markdown table: the result is heterogeneous sections, not a grid,
and terminal output (ls -l, git status) is enormously represented in training data while
costing no pipe characters.
Header carries scope, footer carries what is next — the footer is last because that is where the next-action decision happens. Both are one line and phrased identically every time, so a stable footer is skimmed in a couple of tokens once it has been seen twice.
With context on, matches are grouped under the block they sit in — rg --heading groups
hits under their file; the enclosing region is the grid's file. Twelve hits in one table
cost one block line plus twelve short rows, not twelve fully-qualified addresses.
Renders a GrepResult as an aligned listing.