Files

Two-view verification of redundant road-marking vectors
======================================================

Scope
-----
Offline Gaussian-only increment over transitions-pass-20261012. One immutable
source and one policy across Maroseyka, Pokrovka and Smolensk. The code never
branches on scene names, world coordinates, manually chosen regions or IDs.
Worker006 performs all computation, tests and rendering. Mac operations are
limited to orchestration, source/document editing, hashes, copies and viewing.

Reusable components and policy
------------------------------
OpenCV minAreaRect/remap/morphology measure metric image strips; SciPy filtering
and find_peaks/peak_widths resolve paint ridges; Shapely handles overlap. The new
wrapper expresses acceptance and preservation rules, not a map-specific model.
POLICY is saved in each scene report. Parameters have metric or photometric
meaning and are identical for all maps; none are selected from street identity.

Candidate pairs are thin linear-marking polygons with compatible directions
(<=4 degrees), lateral distance <=0.65 m and >=75% longitudinal overlap of the
source. Each candidate is evaluated in two nearest render tiles that fully
cover both polygons with an image margin. Render views share the same Gaussian
reconstruction: agreement is not independent ground-truth evidence.

Valid samples require actual image coverage, top-view alpha >=0.65, road surface,
vehicle score <0.20 and exclusion of protected symbols/crosswalks. Both objects
need >=95% valid samples in both views. The retained stroke needs >=85% bright
support and median local contrast >=22. Unknown or masked pixels cannot justify
removal. Neighboring rows are not duplicates merely because they are close.

Deletion can be justified by:
* >=90% geometric containment in an image-supported keeper;
* <=15% bright support and source contrast q75 <8, beside a supported keeper;
* one common physical paint ridge represented by two vectors. The keeper must
  be <=8 cm from the ridge, the rejected vector >=10 cm away and at least 6 cm
  farther from it. Both views must agree on the ridge within 5 cm.

For every reason, an observed second ridge vetoes deletion. Transverse profiles
are inspected both as a median and along individual stations. A second ridge
present at >10% of stations or continuously for >=0.25 m protects intermittent
parallel paint, even if it disappears from the median profile. The transverse
corridor also needs >=95% valid evidence. All these are reconstruction rules,
not GOST application tolerances. Earlier normative dimensional checks remain.

The deterministic selection keeps each named keeper and prevents deletion cycles.
No vector coordinates are moved or newly drawn by this pass; all surviving
features are byte-for-byte identical JSON objects. Each removal records source,
keeper, views, profiles and acceptance metrics. Old anchor/source IDs remain
historical provenance; consumers needing current IDs can resolve the explicit
source_id -> target_id records in consensus-rows.json.

Verification and limits
-----------------------
The controlled suite reuses all preceding 57 checks and adds tests for visible
parallel lines, faint paint, occlusion, missing/disagreeing views, overlap,
perpendicular/distant neighbors, rotation/translation, one blurred ridge,
real double ridges, intermittent short paint and invalid transverse coverage.
Each accepted edit has an exhaustive source/before/after frame. Existing short
punctuation reference frames and whole-map overviews support visual regression
review; unchanged-feature audits cover all unmodified objects.

This pass removes only evidence-confirmed whole-object duplicates. It does not
repair false solid continuations lacking a suitable neighboring keeper, perform
partial duplicate trimming, resolve single-view cases, redraw curved rows or
find missing symbols. Some pairs that look duplicated at overview scale are
actual double paint ridges and intentionally remain. Whole-map recall/precision,
geodetic accuracy and legal marking compliance are not established. Unchanged
scenes are regression controls, not proof of universal performance on all scans.

Replay
------
Pinned image sha256:925b093545e15c270d95d4076139ad8ed48e790eccd9434a58495d58c97671d0.
4 CPU, 20 GiB RAM, 1 GiB tmpfs, read-only root, no network, 1800s per stage.
Stages: test_consensus, refine_consensus, audit_consensus, render_consensus,
render_plan. Private scene caches, canonical queue and SSH configuration are
required external inputs. Qualified hashes and execution receipts accompany
outputs. bundle.json resolves unchanged canonical modules; review-font.ttf is
separately pinned and omitted from source ZIP. No live deployment, Ops post or
commit. Technical artifacts and intermediate attempts stay in qualification.