fix(dx): hardening assertions for data correctness and add DESC pagination fixture
What does this MR do and why?
Addresses the four issues raised by Duo's review on !2494 (merged), and adds a missing DESC pagination fixture.
Related Issues
Relates to #1265 (closed)
Testing
All 262 YAML fixtures parse locally. Both null_sort_keys variants (ASC + DESC) pass against Docker testcontainers.
Performance Analysis
- This merge request does not introduce any performance regression. If a performance regression is expected, explain why.
Test-only changes. No runtime impact.
Agent context — long-form analysis, file-by-file walkthroughs, profiler output, alternatives considered
Duo review fixes
-
Stale comment:
aggregation_user_disconnected_scoped_node_rejects.yamlclaimed a negative compile-error check was "not expressible" despitecompile_error_not_containsbeing added in !2494 (merged). Replaced the comment with the actual assertion. -
Vacuous assertion guard:
PathEdgeExpectwith all-optional fields allowed{}to silently assert nothing. Addedhas_assertions()check that panics if every field isNone. -
Ordering assumption:
path_edgespaired actual and expected paths by positional zip, which is fragile ifpath_ids()order is non-deterministic. Both sides are now sorted by destination ID before comparison. -
Step index: Added
stepfield toPathEdgeExpectand used it instep_indices_sequential.yamlso the fixture actually verifies sequential step indices, matching the Rust test's core assertion.
Also rewrote all 6 path_edges fixtures from - - {} nested-dash syntax to - [{}] flow-sequence syntax for readability.
DESC pagination fixture
The Rust test cursor_pages_across_null_sort_keys loops over both mr.merged_at (ASC) and -mr.merged_at (DESC). The existing YAML only covered ASC. Added null_sort_keys_desc.yaml for the DESC variant.
%{all_commits}