Skip to content

docs(nav): spec belief (observed) material maps - #740

Merged
transfix merged 1 commit into
masterfrom
docs/belief-material-maps
Oct 20, 2026
Merged

transfix merged 1 commit into
masterfrom
docs/belief-material-maps

Conversation

@transfix

Copy link
Copy Markdown
Owner

This is the spec for belief (observed) material maps in cvc::nav: material planes, the witness gate and the material trainer that read only what a belief plane's sensor has seen, not the whole map. It is a spec only; there is no code here. The kernels, the sim_world wiring and the goldens follow it, and the torch side in GRL-SNAM is built against the same goldens.

New: docs/roadmap/NAV-BELIEF-MATERIAL-ROADMAP.md. docs/NAV_MATERIAL.md gains one line linking to it.

What it pins

  1. The seen mask is the field of view of the existing sense_batch ray-cast, which is already bit-identical with BeliefGrid.sense.
    • Range: the sense range by default, or a shorter material range folded from the same march.
    • Rays: the sense's own n_rays and FoV, plus a sizing rule for a fan without gaps.
    • Hit cell: the first occluding cell is seen, and nothing beyond it on that ray is.
    • Occluders: only the sense truth.
    • Option: a range disc, kept to reproduce a controller trained on one.
  2. Belief inputs to material_build.
    • Unseen cells get pinned values: unknown_risk 0 and unknown_hard 0 by default.
    • material_build itself runs unchanged, so the planes stay BIT.
    • Standalone kernels and the sim_world::set_material_belief rebuild rule.
  3. The witness gate and the trainer on belief planes.
    • The gate kernel is unchanged; its surface is hard_b | belief_occ | unseen.
    • The model's risk patch gains a seen channel, [r~, hard, seen], masked to the pinned values.
    • The rollout patch is the 6 belief planes, unmasked.
    • An optional stop-gradient gate_active in material_batch.
  4. .cvcnm.
    • A 3-channel net is written as format version 2, with a belief header block, so readers from before this change refuse it instead of mis-striding it.
    • 2-channel files stay version 1, byte-identical.
    • The loader gains tensor-shape checks, and serialize() keeps the meta trailer.

It also lists the goldens and a libcvc/torch work breakdown.

Open decisions (§9)

These are for the library maintainer and the sensor-controller owner:

  • D1: the default seen rule;
  • D2: the ray count;
  • D3: the unseen values;
  • D4: the rebuild cadence;
  • D5: the gate's occupancy source;
  • D6: masking after derivation;
  • D7: whether training cost is scored on belief or on truth;
  • D8: the gate in training;
  • D9: .cvcnm version 2;
  • D10: the model patch size and extent.

Each has a recommendation. The rest of the spec assumes them.

…sing

The seen-mask ray-cast (range, rays, the hit-cell rule), the pinned unseen
values into material_build, the witness gate and the material trainer on
belief planes, and the .cvcnm input changes (a 3-channel risk patch as
format version 2). Spec only; open decisions listed in section 9.
@transfix
transfix merged commit 11b2031 into master Oct 20, 2026
23 of 24 checks passed
@transfix
transfix deleted the docs/belief-material-maps branch October 29, 2026 20:51
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