feat(research): preserve urban geometry pipelines and qualification suites

Preserve offline geometry, marking, replay and evaluation pipelines with source manifests and synthetic tests. Research qualification does not activate these methods as production navigation.
This commit is contained in:
DCCONSTRUCTIONS
2026-10-29 09:10:00 +03:00
parent 5d56237124
commit 69dc566665
611 changed files with 52016 additions and 28 deletions
@@ -0,0 +1,83 @@
# Whole-symbol component pass
Offline Gaussian-only refinement of bicycles, arrow symbols and yellow zigzags.
This module adds evidence-supported presets to an accepted full-map artifact.
It does not replace the road, pedestrian, façade, crosswalk or linear-marking
passes. Input review decisions remain part of the baseline provenance.
## Method
1. Reuse the hashed, whole-scene SAM3 symbol masks and registered Gaussian
orthophoto patches from `symbol_pass`. Model masks supply a class and search
region; they are not the final outline.
2. Extract white-paint components at two metric scales with OpenCV morphology.
Fit the existing licensed SVG presets with SciPy multistart optimization;
evaluate straight, turning and compound arrows and bicycle symbols.
3. Check the complete preset against two mosaics whose source tiles are selected
geometrically, never by favorable paint score. Test positive paint, negative
space, head/tail/branch support and continuation beyond both ends. Every
completely observed view must explain the connected paint object: a head
detached by weak contrast in one view cannot pass if another view shows the
remaining curved arrow. Missing coverage is explicitly unknown.
4. For bicycle paint only, a vehicle segmentation label can be overridden when
the original context render agrees with its matching ground render in
expected depth (0.12 m tolerance), with strong alpha in both. This is Gaussian
surface evidence; no point cloud supplies observations or geometry.
5. Fit zigzags from the cached whole-scene chromatic proposals. Verify yellow
paint separately from white arrows. A finite three-leg pattern requires
strong support on every leg, low background paint and consistent available
views. Extend a pattern only where additional legs have image support.
6. Lift accepted clean presets onto the Gaussian-derived height field. Replay
every transaction, retain input hashes, and verify all unreplaced features
byte-for-byte as JSON records. A fully verified arrow can replace old linear
fragments contained in its outline (98% within a 0.12 m tolerance, at least
50% actual overlap). A crossing line, neighboring stripe or other symbol
vetoes replacement; every removed fragment is recorded and replayed. Preserve prior observation-review provenance.
`component_rules.py` and `component_zigzag_rules.py` hold shared thresholds.
The refinement code accepts no scene-specific polygon, coordinate exemption,
manual ROI or geographic identity. Scene identity in reports is descriptive.
Parameters were developed and regression-tested on three available scenes;
performance on an unseen scan is not yet established.
## Execution and dependencies
`bundle.json` maps the complete flat execution directory back to canonical
source files and pins their SHA-256 values, inherited wheels and the reference
execution snapshot. Existing runtime libraries include NumPy, OpenCV, SciPy,
Shapely, Pillow and scikit-image. Existing SAM3 outputs and model provenance
come from `symbol_pass`; no additional model weights are introduced here.
`bicycle_artwork.py` and `road_glyph_presets.py` retain their original artwork
attribution and licence metadata (MajorAlexey, CC BY-SA 4.0).
Execute on Worker 006, using the existing simulation resource reservation and
bounded container runner. This is an offline refinement package; the default
interactive recalculation button does not yet reproduce this entire research
chain. The qualified resulting maps are imported through the canonical
`publish_qualified_urban_maps.py` plan/apply/readback path.
Required mounts follow the preceding research passes: `/candidate`, `/out`,
`/fullplan` (current accepted baseline), `/symbolplan`, `/assemblyplan`,
`/catalogplan`, `/searchplan`, `/coverage_base`, `/evidence_plan`, `/ortho`,
`/survey`, `/input` and `/multiview`. Read the qualification runner for exact
input paths and receipts. Do not substitute a historical baseline when a later
review has rejected a feature.
Order: `test_components.py`, `refine_components.py`, `refine_zigzags.py`,
`audit_components.py`, `render_components.py`, `render_plan.py`. Freeze the
entire bundle once before processing all scenes. Human visual review is an
acceptance gate, not a coordinate-dependent processing input. Review every
addition before publication, including rejected intermediate versions.
Private receipts, raw inputs and visual evidence are under
`.runtime/simulation-qualifications/component-pass-20261014/operator`.
The final `verification.json` and publication receipts define delivered counts;
intermediate hypotheses must not be presented as accepted results.
## Limits
The class catalogue and cached semantic proposals still limit recall. Strongly
worn paint, occlusion and incomplete Gaussian coverage can leave symbols
unresolved. Presets regularize shape; neither this fit nor its support scores
establish survey accuracy or GOST compliance. Published objects remain
`observation-only`, with route permission unassigned and confidence unassessed.