Skip to content

nav_stats: formation-holding base fields (Track 1a) + intrinsic-stats roadmap - #421

Merged
transfix merged 1 commit into
masterfrom
feat/nav-stats-intrinsic-base
Sep 25, 2026
Merged

transfix merged 1 commit into
masterfrom
feat/nav-stats-intrinsic-base

Conversation

@transfix

@transfix transfix commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

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-neutral cvc::nav base, 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)
  • 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
    • form_arrival_rate = fraction of follower runs that ended in-slot
    • form_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)
  • JSON emit for all of the above (episode + scorecard)

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=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. The 5 pre-existing nav_stats_test cases are unchanged; a new FormationSlotAndScorecard case 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

6/6 nav_stats_test pass (5 pinned + 1 new formation case)

… 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).
@transfix
transfix merged commit 8ea7a24 into master Sep 25, 2026
13 checks passed
@transfix
transfix deleted the feat/nav-stats-intrinsic-base branch September 25, 2026 22:28
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant