Repository navigation
nav_stats: formation-holding base fields (Track 1a) + intrinsic-stats roadmap - #421
Merged
Merged
Conversation
… roadmap
Promote formation holding into the RF-free cvc::nav base, off-by-default:
- nav_stats_params.formation_tol_m (0 = OFF)
- nav_samplers.formation_slot: per-vehicle slot target (null = OFF)
- veh_nav_stats.{formation_parent, slot_error_mean_m, slot_error_max_m,
formation_arrived}
- set_identity(..., formation_parent) carries the linkage edge
- collector accumulates |pos - slot| per step, latches formation_arrived
when the final slot error < formation_tol_m
- nav_scorecard.{form_arrival_rate, form_mission_rate, mean_slot_error_m}
+ aggregate_nav (follower arrivals; per-episode form-mission = every
convoy's anchor arrived AND all its followers in-slot)
- JSON emit for all of the above (episode + scorecard)
Formation is a navigation concept (the grl-snam swarm holds formations too),
so it belongs in the base; cvc::dbg layers only RF on top, joined by
(veh_index, convoy_id). Every field is additive: with formation_tol_m=0 and a
null formation_slot sampler the new fields keep their defaults and touch no
existing accumulator, so the pinned corpus is byte-identical (5 pre-existing
cases unchanged). New FormationSlotAndScorecard case exercises the path ON
against hand-computed values.
Adds docs/roadmap/NAV-STATS-INTRINSIC-ROADMAP.md — the cross-repo execution
plan (libcvc base -> grl-snam parity -> cvcdbg RF+state-bridge -> training).
This was referenced Sep 25, 2026
Merged
transfix
added a commit
that referenced
this pull request
Sep 26, 2026
…b-3 PRs open (#427) Reflect actual state: Track 1 (a-d) MERGED (#421-#424), Track 2 MERGED (GRL-SNAM#96), Track 3a MERGED (cvcdbg#128/#129), Track 3b-1 MERGED (#425). Track 3b-2 (raster bridge, #426) + Track 3b-3 (RF publisher + demo3 wiring, cvcdbg#130) PRs open in CI. Document the 3b split (3b-1 base/formation, 3b-2 version-gated volume rasters, 3b-3 RF+demo) and the Track-4 reserved RF fields (composite_score / cvar_jam_loss / worst_jam_loss).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Track 1a of the nav_stats intrinsic-stats + formation cross-repo build (roadmap doc added here:
docs/roadmap/NAV-STATS-INTRINSIC-ROADMAP.md). Promotes formation holding into the application-neutralcvc::navbase, additive / off-by-default.What lands
nav_stats_params.formation_tol_m(0 = OFF)nav_samplers.formation_slot— per-vehicle slot target(i, &sx, &sy) -> bool(null = OFF)veh_nav_stats.{formation_parent, slot_error_mean_m, slot_error_max_m, formation_arrived}set_identity(..., formation_parent)carries the linkage edge (-1 = objective/anchor)|pos − slot|per step; latchesformation_arrivedwhen the final slot error< formation_tol_mnav_scorecard.{form_arrival_rate, form_mission_rate, mean_slot_error_m}+aggregate_navform_arrival_rate= fraction of follower runs that ended in-slotform_mission_rate= fraction of episodes where every convoy's anchor arrived AND all its followers ended in-slot (the honest "formation arrived" for a spatially-extended formation)Why the base
Formation is a navigation concept — the grl-snam swarm holds formations too — so it belongs in the base, below any application layer. An extension layer on nav_stats adds only its own domain fields on top, joined by
(veh_index, convoy_id). See the roadmap doc for the full track breakdown.Parity
With
formation_tol_m=0and a nullformation_slotsampler the new fields keep their defaults and touch no existing accumulator, so the pinned corpus is byte-identical. The 5 pre-existingnav_stats_testcases are unchanged; a newFormationSlotAndScorecardcase exercises the path ON against hand-computed values (slot errors 3/1/0.5 → mean 1.5, max 3, in-slot; corpus rates 0.5 / 0.5, mean slot error 10.75).Test