Bypass the aggregation tier when path-schema roles are incomplete
DecisionVerified 30 Sep 2026Holds project: dftracer-utils
Decision. The context, the choice, why, and the options that were turned down.
Context#
The aggregation tier can return zero where a path-schema scan returns null if a role field is missing or negative.
Decision#
Make the tier step aside for those records. The roles_complete guard in view_agg_tier.cpp compares per-zone present counters with each chunk's line count.
Why#
Tier answers must match scan semantics. Observer inbox 5f2574cd39 records the missing-role mismatch and this guard.
Rejected options#
Checking only the size of an existing zone misses a chunk with no zone for the role path at all.
Also found by searching
- aggregation tier returns 0 where the path-schema scan returns null for missing role field
- aggregated answers differ from a full scan when some records lack a role or have a negative one
- when should the dftracer-utils aggregation tier be skipped for path-schema traces?
- roles_complete guard view_agg_tier.cpp present counters vs chunk line count, tier vs scan mismatch
- aggregation tier returns 0 while a scan returns null for path-schema query
- tier answer differs from scan when role field is missing or negative
- what is the roles_complete guard in view_agg_tier.cpp for?
- why does aggregation tier step aside for path schema records, results mismatch