Skip to content

Long-term mapping: update a stored map while driving (2026-11)

Goal: a robot that drives through a place it has mapped before updates the stored map as it goes. Where the place changed (furniture moved, a partition taken down, a wall added), the map shows the place as it is now: new structure appears, and structure the robot sees is gone is removed automatically. Nothing the robot did not see changes. The old map is kept, so an update can be undone.

Decisions (maintainer, 2026-11-18): the update runs live, while the robot drives (not as a step after the run); stale points are removed automatically (no human review step); the method is developed and evaluated on public data only (this is open-source work with no robot of its own).

Where the project is today

Part What exists What is missing for this goal
Map of one run lidarslam-map run/start (ROS 2 or --engine core): an Autoware bundle (pointcloud_map/, metadata, trajectories) plus the recorded backend input the bundle is the end product; nothing loads it back as a map to extend
Several runs lidarslam-map merge [--place-recognition] and start --join-map (scripts/map_merge.py, scripts/map_join.py) runs after the fact, never live. Each run's map.pcd is stacked with one rigid x, y, z, yaw transform, and in a voxel shared by two runs the first run's point is kept (_deduplicate_records, scripts/map_merge.py): a moved desk stays where it was, and new things only fill empty space
Place recognition between runs graph_slam_multisession_join / python -m lidarslam join (multisession_join.hpp, docs/architecture/multisession-join.md): Scan Context candidates, small_gicp, max-clique, refusals (ambiguous sets, self-similar sessions, whole-map check), a joined pose graph offline only, over finished runs. The re-optimized joined trajectories are not used for the merged points
Removing stale points none. The 2026-11-08 trial (bench_report/data/map_update_2026-11-08/plan.txt, rays of a later run clear an earlier run's points) failed its preregistered rule its test counted removed people as errors, and it cast rays from one frame in five
Live mapping the ROS 2 nodes (rko_lio, graph_based_slam) no ROS-free streaming API (task: ROS-free live mapping); no way to start from a stored map
Engine boundary GraphSlamApplication: "the ordered, ROS-free workflow boundary shared by live and replay adapters" a live adapter outside ROS 2

The product scripts reach each other through subprocesses (lidarslam-map dispatches to a dozen scripts; start is sensor_setup_wizard.py, 3,935 lines, and also drives the join), and every multi-session step exists twice (ROS 2 executables and python -m lidarslam). This design adds the long-term mode to the package and the C++ core, not to that layer, and moves the join out of it (see "Architecture cleanup").

Design

1. The map store is the source of truth

A long-term map is a directory, store/, not an Autoware bundle. The bundle becomes an export.

store/
  store.json          format version, frame, the list of sessions (id, time, sensor setup, state)
  sessions/<id>/      keyframes: pose in the store frame, compressed deskewed scan (the backend's
                      cloud_compression format), Scan Context descriptor; the session's
                      self-similarity record (the join's fingerprint cache)
  graph/              the pose graph over all sessions: per-session odometry/loop edges and the
                      inter-session edges, with each edge's source
  evidence/           per-submap voxel evidence (below)
  export/             the Autoware bundle written from the store after each session

Sessions are append-only. A session is written to sessions/<id>/ while it runs and becomes part of the map only when store.json lists it as committed (one atomic rename). Rolling back an update removes that entry; the older sessions' data was never changed.

2. A live session

  1. Load the store: keyframes and submaps of the committed sessions (compressed in memory, as the backend keeps submaps today), their descriptors, the graph.
  2. Relocalize. The first keyframes of the new session are matched against the stored keyframes with the join's place recognition and its refusals. Until a match is accepted the session maps in its own frame and its keyframes wait; when it is accepted, the session is anchored and the waiting keyframes are processed with the anchor. A start pose given by the caller (as Autoware's initial pose) narrows the search but is checked the same way. If no match is accepted the session is mapped and stored as a new, separate map island; it is never forced onto the old map.
  3. Track and close loops. RKO-LIO odometry as today. The backend (GraphSlamApplication) holds the stored keyframes as nodes with their stored poses as priors and searches loops between new and stored submaps with the existing loop search. The graph is optimized incrementally; stored poses move only as far as their priors allow.
  4. Update the map (change detection). For each new keyframe, the scan's rays are traced (3D DDA, C++) through the stored submaps near it. Evidence is kept per submap, in the submap's own frame (as SEAM, arXiv:2609.18819, anchors it), so a later pose correction moves a submap with its evidence and never invalidates it. Per voxel:
  5. hits and misses of the current session, counted per frame;
  6. the stored points' state: present, or removed by session <id> (a tombstone, so it can be undone).

Rules: - Removed (stale): a stored voxel that rays of the current session crossed, short of their end point by a margin, in at least k frames from at least two viewpoints, with no hit of the session in it or its neighbours. Rays at grazing angles to a stored surface do not count. - Added: a voxel the current session hit in at least m frames. - Not static (people, carts): a voxel the current session both hit and saw through in different frames. It is left out of the map whichever session it came from, so people in the old map are removed as well. - Not seen: no change.

The decision for a voxel is the latest session's: "the last session that looked wins". 5. Publish. After each keyframe the map change (voxels added and removed, in the store frame) is available to the caller: a Python callback, and later a ROS 2 topic. 6. Commit. At the end the session, its graph edges and its evidence are written and listed in store.json; the Autoware bundle is exported from the store.

3. Engine and API

  • C++ (ROS-free, in graph_based_slam): the store, the live long-term adapter around GraphSlamApplication, the evidence map and ray tracing.
  • Python (lidarslam package): lidarslam.live.Session(store, params) with add_imu, add_scan, changes(), commit(); lidarslam-map live <store> <log> [--realtime] replays a log at sensor rate through it (this is also the ROS-free live mapping task, simulated by real-time playback). A ROS 2 node over the same C++ adapter comes after the evaluation.
  • The offline path (run, start --engine core) stays as it is and keeps its bytes.

Architecture cleanup (in scope)

  • Multi-session code moves into the package: one Python implementation of joining and merging over the C++ core, used by merge, start --join-map and the store. The ROS 2 executables stay as adapters; the duplicate subprocess paths in map_join.py go.
  • merge is rebuilt on the store: merge A B = a store with session A, updated offline with session B (the same code as a live update, fed from a finished run). Its "first session wins" stacking goes.
  • sensor_setup_wizard.py stops driving the join (--join-map becomes "update this store").
  • Each step keeps the single-run outputs byte-identical (checked as in the ROS-free milestones).

Evaluation (preregistered; fixed before any run of the method)

Data

LUH long-term indoor localization dataset (data.uni-hannover.de, CC BY 4.0; paper doi:10.5194/isprs-archives-XLVIII-1-W6-2025-155-2025). A 40 x 10 m entrance hall, recorded from a push cart (Ouster OS1, its IMU on /ouster/imu, Hesai Pandar64; ROS 1 bags) in three layouts:

Layout Sequences Contents
A, extreme occluded S0 (5.3 min), S1 (2.7 min) eight poster walls forming a corridor
B, semi occluded S2 (1.4), S3 (2.0), S4 (2.6) L-shaped poster walls, tables, chairs
C, free space S5 (2.2), S6 (2.0), S7 (2.0) the empty hall, 10-15 pedestrians

Reference: total-station positions of every sequence (prism tracked, offset to the LiDAR solved, in the TLS frame) and a terrestrial laser scan of the empty hall (no poster walls, furniture or people). Only the Ouster and its IMU are used (one sensor, as the product runs). The bags are stream-converted to ROS 2 keeping those two topics, and handled as untrusted downloads.

Split

Development uses S1, S3 and S6 only (their trajectories and the TLS scan may be looked at while developing). Holdout: S0, S2, S4, S5, S7; their total-station trajectories stay unopened until the method and its parameters are frozen and recorded in this file.

Update chains (base session first, each later session a live update of the store):

  • development: S1 → S3 → S6, and S6 → S3 → S1
  • holdout: S0 → S4 → S7, S7 → S4 → S0, S2 → S5, S5 → S2

Measures

The store frame is aligned to the TLS frame once per chain, by the base session's estimated positions against its total-station positions (Umeyama, rigid). Points are compared inside the hall's floor area, between 0.1 m above the floor and 2.5 m (the poster walls' height band), and only where the update session's own scans reach (within 10 m of its path).

  • G, ghosts after an update to layout C. The share of map points farther than 0.10 m from the TLS scan. Everything that is not the empty hall is a ghost here: poster walls, furniture and people.
  • S, static structure kept. The share of TLS points (same region) that have a map point within 0.10 m, after the update, divided by the same share before it.
  • N, new structure after an update from layout C to A or B. Reference: the map of the other sequence of the same layout, mapped alone, keeping its points farther than 0.20 m from the TLS scan (the poster walls and furniture). N is the share of those reference points with a map point within 0.10 m after the update. Uses S0/S1 and S2/S3/S4 as each other's reference; in development only S1 ↔ S3 cross references are used (no holdout map is built before the holdout run).
  • R, relocalization. The update session anchors to the store within the first 10 s of data, with no wrong anchor (a wrong anchor: the anchored pose more than 0.5 m or 5 degrees from the total-station position and the TLS-registered heading).
  • L, localization. Position RMSE of the update session's live (causal) poses against the total station, compared with the same sequence mapped alone.
  • T, run time. Live mode at sensor rate on the development machine: no input dropped, processing time per scan below the scan period on average; peak memory reported.

Baseline for G, S and N: today's lidarslam-map merge --place-recognition on the same sessions.

Decision rule (holdout)

The long-term mode becomes the product's update path (and merge is rebuilt on it) if, on every holdout chain:

  • G ≤ 0.02 after every update to layout C, and below the baseline's G;
  • S ≥ 0.97 for every update;
  • N ≥ 0.90 for every update from layout C to A or B;
  • R holds for every update session;
  • L: RMSE no more than 1.2 x the same sequence mapped alone, and ≤ 0.10 m;
  • T holds.

If a criterion fails, the method stays an opt-in mode, the failure is recorded here with its cause, and the next design is written as a new preregistration. Thresholds and measures in this section do not change after the first holdout run.

Data and machine notes

  • The bags are 5-19 GB each (both LiDARs, bz2 chunks); the machine has about 11 GB free. scripts/convert_luh_longterm_bag.py reads a bag front to back over HTTP (resuming with Range requests, checking the dataset's md5) and writes a ROS 2 bag, so the original is never stored.
  • What the bags hold (checked on the first 200 MB of S3): /ouster/points from an OS1-128 at 2048 columns and 10 Hz (frame ouster_lidar; 262,144 points per scan, 22 % of them zero-range returns; fields x, y, z, intensity, t (uint32, ns after the header stamp, 0-100 ms), reflectivity, ring, ambient, range), /ouster/imu at about 100 Hz (frame ouster/ouster_imu), /hesai/pandar. The converter keeps x, y, z, intensity and t, drops zero-range returns and keeps every second column (the OS1's 1024-column mode): about 1.4 MB per scan with zstd instead of 12.6 MB.
  • The bags have no /tf_static. The LiDAR-IMU extrinsic comes from the Ouster's documented sensor frames: the LiDAR frame turned 180 degrees about z, at (-0.006253, 0.011775, 0.028535) m in the IMU frame. On S3 (development) RKO-LIO odometry with it is closer to the total station than with no rotation (position RMSE 0.033 vs 0.041 m), so it is kept.
  • The ground-truth files write each stamp with its tenth of a second fused on (17410941326 is 1741094132.6 s); 10 Hz, one row per scan.

L0 status (2026-11-18)

S3 converted (7.70 GB read, md5 as published, 1,189 scans and 11,886 IMU messages, 1.7 GB, 48 min at about 2.7 MB/s). RKO-LIO odometry alone (lidarslam 0.12.0 from PyPI, no ROS 2, voxel 0.25 m, the walking preset's registration settings): position RMSE 0.033 m, median 0.033 m, max 0.103 m against the total station over 1,183 matched scans and 44.5 m of path; 38 s for 119 s of data on the development machine, 183 MB peak memory.

L1 status (2026-11-18)

lidarslam.live.Session takes IMU and LiDAR messages one at a time and hands out every scan's live pose as it is processed: the backend's causal pose (OfflinePipeline::setLivePoseListener, the odometry corrected by the latest optimization the background worker had finished by the scan's stamp). python -m lidarslam live <log> ... --realtime plays a log into a session at the sensor's rate and writes trajectory_live.tum and live_timing.json. The CI test (lidarslam_core/test/test_python_live.py) checks that the live poses are the causal trajectory and that the session's files are byte-identical to lidarslam map with the causal output on.

S3 at sensor rate (development machine, 4 cores, walking backend preset): 118.7 s of data streamed in 118.9 s with no message held back; a scan's live pose came 0.028 s after the scan's data time (median; p95 0.26 s, max 0.67 s); the backend's remaining stages took 2.5 s after the last message; peak memory 310 MB. Live poses against the total station: 0.033 m RMSE over 44.5 m (no loop edges in this sequence, so the live poses equal the odometry). The playback started 77 s after the command (opening the log and the session); to be looked at with the store (L2).

L2 status (2026-11-18)

The store exists (lidarslam.store.Store, format version 1). A live session given a store (live.Session(..., store=), python -m lidarslam live <log> ... --store STORE) writes itself to sessions/<id>/ when it finishes and is then listed in store.json (one rename): the backend's submaps in submaps.bin (stamp, odometry pose, optimized pose, the scan compressed as the backend keeps it), pose_graph.g2o, and the parameters it was mapped with. export/ is the Autoware bundle written from the stored sessions (python -m lidarslam store export STORE); store rollback takes the latest session off the list and leaves its files. graph/ and evidence/ of the layout above come with L3 and L4. The C++ side is graph_based_slam/map_store.hpp (session files, export) and map_export::writeBundle, now the one map-bundle writer of both the backend and the store.

Check: the store's export of one session is byte-identical to the bundle the backend wrote. CI (lidarslam_core/test/test_python_store.py, streamed and assembled map paths) and S3 (29 submaps; map.pcd, map_bundle.yaml, map_projector_info.yaml, pose_graph.g2o and the 15 pointcloud_map/ files all identical). The S3 session takes 22 MB in the store; the export 4.8 MB. A store of two sessions is refused for export until they share a frame (L3), unless asked to stack them.

The 77 s before playback in the L1 run did not come back: S3 at sensor rate with the store took 122.7 s from the command for 118.7 s of data (0.4 s before the first message, 3.4 s for the backend's last stages and the store), with live poses 0.026 s after their scan's data time (median; p95 0.033 s, max 0.045 s). The L1 run had shared the machine with the S6 conversion.

L3 development status (2026-11-19)

lidarslam.live.Session(..., store=..., initial_pose=...) and python -m lidarslam live --store ... --initial-pose X Y Z QX QY QZ QW verify a prior for the new odometry frame in the store frame. Each scan window uses only messages received up to the decision. The initial estimate must satisfy the 2 m and 20 degree bounds. A second distinct reference submap has to support the same estimate. The confirmation search is centered on the estimate when the first search returns one supporting submap. Stores written by the live path keep thinned reference windows with their session files. Stores from L2 can be read using their individual submap scans. An accepted session records store_from_session and exposes causal poses in trajectory_store.tum.

With the compiled matcher and recorded S3/S6 startup clouds, 76 of 91 perturbed nearby priors joined for S3 → S6 and 60 of 91 for S6 → S3. All 278 wrong-site or wrong-heading priors and the additional prior centered on the 4.75 m false match were refused.

Sensor-rate development chains with priors generated from the development ground truth:

Chain Update Anchor wall time Causal RMSE Standalone RMSE
S1 → S3 → S6 S3 1.58 s 5.42 cm 3.75 cm
S1 → S3 → S6 S6 1.61 s 3.42 cm 1.55 cm
S6 → S3 → S1 S3 1.68 s 4.74 cm 3.75 cm
S6 → S3 → S1 S1 1.69 s 8.40 cm 3.71 cm

All four first store poses met the position and heading tolerances. The standalone columns use the same matched timestamps, with a rigid fit of each session's standalone causal path. The fixed anchor exceeds the 1.2× localization ratio in all four updates. A causal replay of candidate loop factors through g2o reduced RMSE in three of the four updates. The S6 and S1 updates in the first and second chains still exceeded the ratio. The causal factor replay used recorded keyframe windows and is a development experiment.

live --track-store (Python live.Session(..., track_store=True)) enables experimental live tracking after startup. It verifies later windows against the store and adds the accepted matches as robust inter-session factors. Observed reference submaps are fixed and active session submaps are connected by odometry edges. The live pose stream uses the most recent causal solution. Each accepted session saves its graph and absolute submap poses. Export and later relocalization use those poses. This path still requires --initial-pose. Automatic place recognition and a shared graph with movable stored poses and priors remain open in L3.

Sensor-rate replay through live --track-store on both development chains:

Chain Update Accepted factors Anchor wall time Causal RMSE Standalone RMSE Ratio
S1 → S3 → S6 S3 9 1.74 s 4.11 cm 3.75 cm 1.10×
S1 → S3 → S6 S6 22 1.64 s 3.49 cm 1.56 cm 2.24×
S6 → S3 → S1 S3 25 1.73 s 4.27 cm 3.75 cm 1.14×
S6 → S3 → S1 S1 30 1.67 s 4.62 cm 3.75 cm 1.23×

Each first store pose was within 0.025 m and 0.21 degrees. The driver reported zero trailing frames, and median scan-to-pose lag was 0.02–0.03 s with p95 0.54–0.81 s. The two S3 updates met the localization ratio. S6 had the tightest standalone comparator and slightly higher RMSE than with the fixed anchor. Causally fitting one rigid transform to the accumulated, already accepted factors in an offline diagnostic yielded 3.66 cm and 2.74 cm on the forward chain, and 4.16 cm and 3.65 cm on the reverse chain. The diagnostic reused the live graph's accepted factors. A live version would need a new replay because different corrections change later matching priors. S6 still exceeds the ratio in the diagnostic.

live --start-near-first-submap is an experimental startup mode for a recording whose operator independently knows it begins within 5 m of the first stored submap. It ranks Scan Context matches in that area, then applies the existing geometric checks to the top eight initializations. Conflicting verified poses cause a refusal. It derives the initializer from the incoming LiDAR and the stored keyframes. A development replay of archived windows without the area restriction found wrong-site aliases 8.68 m and 11.77 m away. Restricting the search gave a correct, consistent result for all four archived development updates. The restriction is an input assumption for the mode.

With incoming windows thinned to the density of the stored archive, both full development chains ran at sensor rate using the launch-area search and the L4 persistence filter. No ground-truth pose was supplied to the live runs. Scoring paired the live and standalone estimates at common total-station timestamps:

Update Anchor data time Causal RMSE Standalone ratio Active time / scan Peak RSS
S1 → S3 1.20 s 4.07 cm 1.09× 70.8 ms 813 MiB
S1 → S3 → S6 1.20 s 1.99 cm 1.28× 77.4 ms 950 MiB
S6 → S3 1.20 s 4.32 cm 1.16× 68.6 ms 881 MiB
S6 → S3 → S1 1.30 s 4.20 cm 1.12× 63.6 ms 996 MiB

First-pose error stayed below 0.03 m and 0.20 degrees. There were zero trailing frames, with one initializing scan per run. The earlier, unthinned startup probe refused S6 → S3. The S6 update still exceeds the 1.2× L criterion.

Replaying the recorded factors at several uniform gains only reduced S6 to 1.97 cm. A candidate that applied 10% of the position correction and 55% of the rotation correction looked promising with recorded factors. On full unpaced sensor replay it gave 1.88 cm (1.208×) on S6 and 4.50 cm (1.202×) on the reverse S1 update. The sensor-rate runs above use the existing 35% correction for both, which remains the live setting.

On the S6 update, 11 of the 21 corrections after startup increased the error through the next correction compared with keeping the preceding transform for that same interval. The correction at 61.8 s raised interval RMSE from 2.52 to 3.41 cm and stayed in effect for 10.7 s. The one at 8.0 s raised it from 1.48 to 3.69 cm over 3.0 s. These comparisons use development ground truth after playback and left the subsequent matching decisions fixed.

A shared-surface prototype builds a target from stored keyframe windows. It keeps points within 0.10 m of a point in another aligned session, estimates local normals, and registers each new window against the resulting near-horizontal and near-vertical surfaces. It uses the existing verified startup anchor. The target is built without TLS or ground truth. On recorded windows, using all stored planar surfaces without the agreement filter gave 2.27 cm for S6 and 4.30 cm for S1 on the reverse chain. Shared surfaces gave 1.98 cm and 4.27 cm. Using 35% of each correction at its keyframe gave 1.93 cm and 3.94 cm. These trials used the same two committed reference sessions as the original live tracking runs.

Sensor-rate replay used the final update in each chain, with the committed output of each S3 run as store input:

Final update Live graph RMSE Shared surfaces Shared surfaces, 35% correction Standalone ratio with 35%
S1 → S3 → S6 3.49 cm 1.99 cm 1.93 cm 1.24×
S6 → S3 → S1 4.62 cm 4.32 cm 3.98 cm 1.06×

The trials anchored within 1.73 s of playback start and reported zero trailing frames. The 35% variant had p95 scan-to-pose lag of 0.67 s on S6 and 0.53 s on S1. Building the shared target took about 3.0–3.2 s in a separate timing probe. S6 remains above the 1.2× ratio. The trial applied each correction directly to live poses.

python -m lidarslam live --track-shared-surfaces (Python track_shared_surfaces=True) now includes shared-surface measurements in the tracking graph. It starts with the existing verified anchor and builds the target from windows in aligned, committed sessions. When there are fewer than two usable sessions it uses submap tracking. A match to the shared target is a robust SE(3) edge from a fixed store-frame vertex (vertex 0 in store_tracking_graph.g2o). The optimizer retains the full measurement and uses odometry edges between active submaps. Live output applies 35% of the graph's correction about the matched keyframe. Committing saves the graph's absolute submap poses in store_submap_poses.npy, which both export and later relocalization read. The session metadata records shared_surface_observations.

Full-rate tests appended a fourth session in a fresh process using the three-session store. Both used a repeat of the S3 development recording as a revisit:

Store and update Shared factors Anchor wall time Causal RMSE Standalone ratio
S1 → S3 → S6 43 1.70 s 1.98 cm 1.27×
S1 → S3 → S6 → S3 28 1.56 s 3.56 cm 0.95×
S6 → S3 → S1 51 1.70 s 4.16 cm 1.11×
S6 → S3 → S1 → S3 28 1.61 s 4.04 cm 1.08×

There were no trailing frames in the full runs. The new process read the exact absolute poses from the third session, built a different shared target, and left its graph and submap files byte-identical after committing the fourth. The S6 ratio is still above 1.2×.

A second test split the S6 development recording into disjoint intervals (0–43 s and 47–85 s). The early interval contributed 14 shared factors, then the later interval reopened that store in a separate process and appended 12 shared factors. With a prior derived from standalone S6 odometry and the development alignment, the later interval anchored 6.2 s after the first live pose timestamp (7.26 s wall time after playback began). It had 2.24 cm causal RMSE over 314 matched poses and two pending LiDAR frames at the clip end. Both intervals come from one development recording. The holdout remains unopened.

L4 development status (2026-11-19)

An offline S3 → S6 ray-update probe used a fixed store frame, sampled TLS points and approximate hall bounds. Requiring repeated free-space observations from separated viewpoints for clearing old points retained more TLS coverage than treating every cross-frame hit and miss as dynamic. The conservative variant retained 1.02× the base TLS coverage, with a ghost fraction of 0.479 in that probe. Tightening the approximate area to the TLS walls yielded 1.00× coverage and a ghost fraction of 0.382. Of the 6,990 retained old ghost voxels in that area, 4,070 had enough free-space observations from separated viewpoints but were protected by neighbouring hits, and 2,846 received a hit themselves. The same neighbour rule protected 537 old voxels within 0.10 m of the TLS reference after repeated free-space observations. Requiring persistent neighbour hits reduced G to 0.285. Excluding neighbours with repeated free-space observations lowered it to 0.229. Also allowing deletion after a single hit when repeated free-space evidence was available yielded G = 0.146 and S = 0.998. These development variants used one scan per keyframe in the same approximate area. With one scan in five, the same comparison was G = 0.429 and S = 1.009 for the conservative rule, and G = 0.268 and S = 1.005 for the last variant. The planned per-submap evidence and live change callbacks were outside that probe.

A second probe counted a ray crossing as free-space evidence only in a frame with no hit in that voxel, then compared hit and free-space counts once the minimum number of separated free-space observations was met. At one scan per keyframe, the best tested setting with S ≥ 0.97 gave G = 0.102 and S = 0.975. At one scan in five, the best such setting gave G = 0.091 and S = 0.971. The two settings differ. In the keyframe run, 1,039 of the 1,166 remaining ghosts came from the old map, at a median distance of 0.192 m from the sampled TLS. Both runs use the same approximate area and fixed store frame. No L4 parameters have been frozen.

Of those 1,039 retained old ghosts, 706 were within 0.25 m of the sampled TLS and 856 were below 1 m above the floor. Only 24–27 passed a conservative test for a nearby parallel TLS wall when the TLS neighbourhood used for the normal estimate was varied. This test leaves the other points unclassified. For the same keyframe run, counting hits on an old voxel only within 0.09 m of its representative point yielded G = 0.100 and S = 0.983 at the best tested setting with S ≥ 0.97. The same setting with one scan in five gave G = 0.088 and S = 0.988. A different setting at that sampling rate gave G = 0.075 and S = 0.973. These are offline results in the same approximate area. The ghost fraction remains above the 0.02 target.

python -m lidarslam live --detect-changes (Python detect_changes=True) is an experimental old-map removal path. Once the prior is verified, it traces one deskewed scan per accepted backend keyframe, including queued keyframes from startup. The C++ traversal uses a 0.15 m world-grid index of old local-voxel centroids, a 0.30 m ray endpoint margin and a 40 m range cap. Hits within 0.09 m of a centroid take precedence over free space in the same scan. A voxel is suppressed when free-space votes outnumber hits by at least 8:1, with at least eight free-space votes and viewpoints at least 0.50 m apart. Two or more hits with at least as many hits as misses can restore an earlier suppression. Unobserved voxels keep their previous state.

map_change_evidence.npz belongs to the updating session. It records reference session IDs, local submap voxel indices, per-scan vote counts, separated viewpoints and the resulting decision. Session.changes() exposes the accumulating evidence. Export folds committed decisions in session order. Rollback drops the latest decisions and regenerates the map from the earlier sessions without rewriting their scans. This version applies masks to export; tracking still uses the archived submaps. It uses the same world grid for candidate lookup and ray traversal. Local ray intersection, grazing-angle rejection and change callbacks remain open.

Both development chains completed with the removal path enabled. The tables use the exported 0.10 m maps, the approximate wall bounds above, and a subsample of the TLS points. The control exports use the same session poses with removal masks disabled.

Chain update Local voxels marked removed S G after update to C
S1 → S3 41,724 1.171 —
S1 → S3 → S6 84,457 1.018 0.451
S6 → S3 21,491 1.013 —
S6 → S3 → S1 48,889 1.005 —

At the S6 update, G was 0.653 for the unmasked control and 0.493 when S6 was mapped alone. Old-map removal leaves substantial ghost returns in the new scans. For S6 → S3, the development cross-layout N proxy was 0.198, versus 0.368 in the unmasked control. That proxy uses the S1 reference, so it is not a same-layout holdout measurement. The prescribed merge --place-recognition baseline declined to join the S3 update in both directions and produced no baseline maps. Both development stores were rolled back two steps in copies of their indexes. At each step the exported bundle matched its saved predecessor byte for byte, and the committed session files remained identical. All four runs reported zero trailing frames. The concurrent replays and baseline jobs shared the machine, and the last updates ran slower than sensor time. These results do not establish the runtime gate.

python -m lidarslam live --filter-new-points (Python filter_new_points=True) adds an experimental persistence filter on top of old-map removal. It collects one localized scan about every 0.5 s. Each 0.15 m store-frame cell can receive one hit or one free-space vote per sampled scan, with hits taking precedence. Free-space votes begin after the first hit. A new voxel is retained when a representative within 0.15 m has at least three hits and at least as many hits as misses. Filtering covers new submap voxels within 40 m of the sensor and requires at least three sampled scans. The sampled scans and keyframe poses are causal. At commit, the capture-time pose maps each decision to an immutable submap-local voxel, so it still masks the same points when export uses the optimized pose.

The updating session stores its suppression mask as the optional new_rows array in map_change_evidence.npz. Older evidence files can still be read. Later observations can restore a suppressed voxel, and rolling back the update discards its mask. A stationary transient that receives repeated consistent hits can still pass this filter.

Both sensor-rate development chains completed with no trailing frames. An export of the same sessions and poses that ignored only the new_rows arrays served as the old-removal-only control. Scoring used the same sampled TLS and approximate wall bounds as above.

Chain update New local voxels suppressed S Absolute TLS coverage Control coverage
S1 → S3 24,205 1.132 85.48% 88.44%
S1 → S3 → S6 47,656 1.025 91.76% 92.35%
S6 → S3 20,763 1.010 92.54% 92.78%
S6 → S3 → S1 30,542 1.002 92.99% 93.51%

S6 ghost fraction fell from 0.451 to 0.188. Of the 7,338 remaining ghost points, 1,963 had a neighbour within 0.06 m only in the old submap export, 2,836 only in the new submap export, and 2,538 in both. One had no neighbour in either component export. This is a proximity diagnostic because the combined export downsamples the joint point cloud. The S6 → S3 cross-layout N proxy fell from 0.198 to 0.121. Of the 1,948 reference points that lost coverage, 1,174 were then more than 0.30 m from the map. Both stores again rolled back to the two prior exports byte for byte with their session files intact. The runtime and quality gates for holdout have not been established.

A sequential timing comparison replayed the same 43 s S6 development clip into copies of the same two-session store. With old removal only and with the persistence filter, streaming wall time was 43.00 s in both runs. Whole-process CPU time was 49.8 s and 53.3 s, and peak RSS was 706 MiB and 735 MiB, respectively. Scan-to-pose p95 was 0.49 s and 0.45 s. The clip ended with two pending LiDAR frames in each run. In the full-chain runs with the persistence filter, scan-to-pose p95 ranged from 0.40 to 0.64 s.

live --refine-visibility is a separate L4 experiment for new submaps. It caches the 0.5 s scan samples used by the persistence filter. The DDA first locates candidate voxels. The voxel centroid must then lie within 0.085 m of the ray and before its endpoint margin for a free-space vote. A hit within 0.10 m takes precedence in the same scan.

The new submap candidate index is complete before replaying the cached rays at commit. This counts free space even when observed before a candidate's first hit. New voxels within 40 m remain when they have at least two hit votes and at least as many hits as misses. The updating session stores submap-local masks and records map_change_refined_visibility in the index.

In a same-recording diagnostic for S3, the first 58 s supplied candidate submaps and the reference came from submaps captured after 64 s. With the same old-voxel rule and sampled TLS, counting all misses reduced G from 0.192 to 0.181 and reduced reference coverage from 0.404 to 0.374. This time split uses archived poses and is a geometry diagnostic.

The initial prototype also used the same scan samples to score old voxels, with a four-to-one free-space to hit threshold. The S1 → S3 → S6 and S6 → S3 updates were replayed at sensor rate from the same pre-update stores and with the same launch-area startup as the persistence-filter control. Their saved submap pose arrays matched the control exactly. With the same development polygon and all TLS points, G after S6 fell from 0.1533 to 0.1350. Absolute static coverage was 0.9180 and 0.9152, respectively. The S6 → S3 cross-layout N proxy fell from 0.109 to 0.091. Both replays had zero trailing frames and averaged 73–87 ms per scan. S6's post-replay processing and export took 55.5 s, compared with 19.4 s in the control run. Each rollback restored the pre-update export byte for byte.

Recomposing the masks at the same poses isolated the two changes. Updating only the old-voxel rule gave S6 G = 0.1544. Updating only the new-voxel rule gave G = 0.1337 and raised the S3 cross-layout N proxy from 0.0910 with both changes to 0.0982. This was the basis for keeping the old removal policy and applying the refinement to new submaps.

The resulting implementation was replayed again at sensor rate on both updates. Its map exports matched the full-TLS new-only reassembly byte for byte. S6 G fell from 15.33% to 13.37% and absolute TLS coverage fell from 91.80% to 91.45%. On S6 → S3 the cross-layout N proxy was 9.82%, down from 10.89% with the persistence filter. Of 5,052 remaining S6 ghosts, 1,745 had a point within 0.06 m only in the old-map export, 1,612 only in the new-map export, and 1,694 in both. One had no such neighbour. Both runs reported zero trailing frames and 56–64 ms of active wall time per scan. Post-replay processing and export took 31.6 s on S3 and 56.9 s on S6. The map quality and commit cost remain open.

One offline plane-voting trial grouped neighbouring new points with aligned normals and used multi-view hit and miss evidence to confirm or suppress each group. At the same poses and with the same old-map points, it produced S6 G of 9.50% versus 9.42% for point voting. The S3 cross-layout new-structure proxy was 9.41% for both. These maps were reconstructed from saved vote geometry and scored with the full TLS cloud. The trial left the live filter unchanged.

Recovering omitted points that agreed with a locally planar retained neighbourhood improved the sampled development N proxy only from 0.121 to 0.125 at the widest tested radius. It also increased G from 0.188 to 0.189. A separate filter that kept only well-supported planar neighbourhoods lowered G to 0.120 at S = 0.973 with the sampled TLS. Stricter variants lost more static structure. Both are offline probes and did not change the live filter.

L5 evaluation tooling (2026-11-19)

  • scripts/evaluate_luh_trajectory.py scores R and L against total-station poses and T from the live summary. It estimates the base-to-TLS transform once from the standalone base trajectory, matches the two localization paths at shared truth timestamps and records the transform in its report. Replay summaries include the first input stamp, active wall time per scan and process peak RSS. The T report lists the scan-to-pose count gap and the trailing-frame count. The initial LiDAR scan may initialize odometry without a pose. Published total-station timestamps sometimes repeat at 0.1 s resolution. Scoring uses the first sample for each repeated timestamp.
  • scripts/evaluate_luh_map_update.py scores map exports with the full TLS cloud streamed in chunks. It takes the floor elevation, an explicit hall polygon, an update path in TLS coordinates and the fixed transform. N requires a separately supplied reference map and transform. A refusal log records an unavailable place-recognition baseline.
  • scripts/evaluate_luh_holdout.py consumes a JSON manifest mapping each of the six preregistered update keys (such as S0-S4-S7/S4) to relative map and motion report paths. It applies the declared thresholds and reports the product or opt-in decision. A missing G comparison cannot demonstrate improvement over the baseline.

With the same approximate development polygon but the full TLS cloud, G after S6 was 0.153 with new-point filtering and 0.421 with old removal alone. Static coverage was 0.918 and 0.924, respectively. For S6 → S3, the S1 cross-layout N proxy was 0.109 versus 0.187. These measurements exercise the evaluation path. The holdout measurement setup was subsequently frozen below.

The full launch-area replays gave G = 0.153 after S6 and the same S6 → S3 development N proxy of 0.109. This uses the same development polygon and full TLS cloud. No holdout log or holdout ground truth was used in these trials.

L5 holdout freeze (2026-11-19)

An S6 development replay with the two existing sessions profiled 55.77 s in commit, including 39.75 s of new-voxel visibility replay and 7.23 s of export. One trial used direct grid lookups for the same indexed voxels. It produced byte-identical stored poses, evidence and map PCD, and took 53.47 s in the matching replay (4.1% less). The original sparse lookup is used for holdout.

Use the existing live store path at sensor rate with --start-near-first-submap, --track-shared-surfaces and --refine-visibility on every update. Start the base session in an empty store. Use the known launch area within 5 m of the first stored submap for the startup prior. Supply no pose from ground truth and do not retry relocalization with a different prior. A refused update fails R. A successor that requires an unaligned predecessor is recorded as blocked.

For every sequence, use bench_report/data/long_term_2026-11/rko_lio_luh_os1.yaml, lidarslam/param/lidarslam_mid360_rko_graph_walking.yaml and converter column step 2 with the published MD5. Use the full published empty-hall TLS cloud. Use the same approximate hall polygon as development, with TLS XY vertices (11, 7.7), (51.5, 7.7), (51.5, 14.4), (11, 14.4) and floor elevation −1.39 m. Apply the height band and the 10 m window around the update's total-station path from the preregistration.

Fit the store-to-TLS transform once from the base session's causal odometry. Use standalone offline maps for the new-structure reference, with S1 for S0 and S3 for S2 and S4. Compare each update with the existing lidarslam-map merge --place-recognition --engine core on the same prefix of the chain. Record a baseline refusal as a missing comparison. Keep the preregistered thresholds. The holdout total-station trajectories had yet to be opened at freeze.

L5 holdout results (2026-11-19)

Chain Update G (%) S (%) N (%) R (s) L (cm, ratio) T (ms/scan) Offline merge
S0 → S4 → S7 S4 — 117.80 — 1.30 10.54, 7.541 58.0 Refused
S0 → S4 → S7 S7 37.56 102.22 — 1.30 10.06, 6.898 58.4 Refused
S7 → S4 → S0 S4 — 100.32 21.80 1.30 1.52, 1.091 59.6 Refused
S7 → S4 → S0 S0 — 75.98 — 1.30 15.05, 1.334 49.6 Refused
S2 → S5 S5 11.56 100.44 — 1.20 1.84, 1.151 63.6 Refused
S5 → S2 S2 — 100.97 34.28 1.20 5.58, 1.040 64.0 Refused

All six updates passed R and T, with zero trailing frames dropped. The two three-session stores each exported a map with three aligned sessions. Commit and export took 23.9–80.1 s after replay.

Five updates passed S. In S7 → S4 → S0, absolute TLS coverage fell from 91.17% to 69.27% after S0. The three updates involving S0 as base or update exceeded both L limits. S0's standalone RMSE was 11.28 cm.

G exceeded 2% in both updates to layout C. N was below 90% in both updates directly from layout C to B. Offline place recognition refused all six comparisons. In each case the accepted matches provided too little support for one transform across three places spaced at least 5 m apart.

The six-report evaluator returned opt-in. L5 evaluation is complete. The preregistered product-adoption rule keeps the mode experimental.

S0 trajectory follow-up

The causal odometry used to create the S0 base store had 11.28 cm RMSE against the total station after a rigid fit over 3,147 poses. The table compares each update on the same matched timestamps with the frozen L5 store-to-TLS transform and with an independent rigid fit of the saved update trajectory to TLS.

Update Matched poses L5 RMSE (cm) Independently fitted update (cm) Independently fitted standalone (cm)
S0 → S4 1,554 10.54 1.53 1.40
S0 → S4 → S7 1,171 10.06 1.50 1.46
S7 → S4 → S0 3,136 15.05 11.03 11.28

S4 and S7 retained close to standalone trajectory accuracy after a per-session rigid fit. Most of their measured error is associated with placement in the fixed frame established by the S0 base. For S0 as the update, about 11 cm of error was still present after the independent fit, consistent with its standalone result. The independent fits use ground truth for diagnosis. The L5 scores use the original fixed transform.

Review and roll back an experimental update

Copy the last accepted store while it is idle. Use fresh paths for the copy, the reference export and the run output. The example assumes a known launch area within 5 m of the first stored submap and uses the replay's sensor parameters.

accepted=/path/to/accepted-store
candidate=/path/to/candidate-store
before=/path/to/pre-update-export
bag=/path/to/update-bag
run=/path/to/update-run
odometry_params=/path/to/odometry.yaml
backend_params=/path/to/backend.yaml
python -m lidarslam store export "$accepted" --out "$before"
cp -a "$accepted" "$candidate"
python -m lidarslam live "$bag" --store "$candidate" --out "$run" \
  --odometry-params "$odometry_params" --backend-params "$backend_params" \
  --realtime --start-near-first-submap --track-shared-surfaces --refine-visibility
python -m lidarslam store info "$candidate"

Before using the candidate for the next session, check that its latest session matches the replay's store_session, that store_anchor_stamp_sec is set, and that dropped_trailing_frames is zero. Compare $candidate/export/map.pcd with $before/map.pcd in a point-cloud viewer. Check alignment and inspect permanent surfaces and expected changes in the area just surveyed. A session without an anchor can appear in the store index while the export still shows the previous map.

When the latest update should be undone, confirm its ID with store info and run the rollback once on the candidate. Run the export explicitly to cover the case where the remaining sessions have no change evidence.

python -m lidarslam store rollback "$candidate"
python -m lidarslam store info "$candidate"
python -m lidarslam store export "$candidate"
cmp "$before/map.pcd" "$candidate/export/map.pcd"

Confirm that the committed session list and map match the pre-update state before using the candidate again. Rollback removes the latest entry from the index and keeps its session files. The three-session S7 → S4 → S0 store was tested on a copy. Rolling back S0 and then S4 reproduced both earlier map PCDs byte for byte, with all session file checksums intact.

Milestones

Each milestone is one reviewable change with its own checks.

  1. L0, this document, the data converter for LUH (Ouster + IMU, ROS 2 bag), and a first look at S1/S3/S6 with the existing single-run mapping (does each map alone; ATE against the total station).
  2. L1, ROS-free live mapping. lidarslam.live.Session over GraphSlamApplication and the RKO-LIO driver, fed scan by scan; lidarslam-map live <log> --realtime. Check: with no store, the live run's trajectory equals the causal output of the offline backend on the same input, and real time holds on the development sequences.
  3. L2, the store. Write a store from a live session; load it; export the Autoware bundle from it (byte-identical to the single-run bundle when the store has one session).
  4. L3, relocalization and the live multi-session graph. Anchor a new session to the store, loops between new and stored submaps, priors on stored poses. Check: R and L on the development chains.
  5. L4, change detection. Per-submap evidence, ray tracing, the four rules, tombstones, rollback. Check: G, S and N on the development chains; parameters frozen and recorded here.
  6. L5, holdout evaluation. Holdout chains once, under the decision rule above; then the product decision.
  7. L6, product. lidarslam-map update and merge on the store, the wizard's --join-map, docs; a ROS 2 node over the same adapter.

Risks

  • Relocalization in a changed layout. Layout A hides most of the hall; Scan Context may find no confident match against a layout C map (the join then refuses, by design). A caller-given start pose (the cart starts at the same spot in most sequences) is the fallback that is checked, not trusted.
  • Removing what is only out of view. Thin structures (table legs, chair backs) are hit by few rays and crossed by many; the neighbour and grazing-angle rules exist for this, and S measures it.
  • One dataset. All public data with a known changed layout and a reference scan found so far is this one hall. Static-structure checks on other multi-session data (no change expected) are added when it is downloaded again; they can only lower confidence, not replace the holdout.

Agent review, development trial (preregistered 2026-11-19, before any measurement)

Question: does reviewing an update's candidates with the map review tools (docs/map-review.md, python -m lidarslam mcp) improve the map over the automatic change detection alone? Development data only (S1, S3, S6); no holdout data is used.

  • Stores. Two chains, each a base session in an empty store and one update, both with live --start-near-first-submap --detect-changes --filter-new-points (walking backend preset, rko_lio_luh_os1.yaml, column step 2): S3 → S6 (update to layout C) and S6 → S3 (update to layout B).
  • Arms. A: the store's export after the update, no edits. B: the same store after one agent review, committed as one agent:claude edit.
  • Reviewer. Claude, through lidarslam.map_review.Review only (the MCP tools' implementation: info, list_candidates, describe, view_region, decide, decide_box, commit). It sees no TLS, total-station or other reference data and no score until its edit is committed. Budget: the 20 largest candidates of each kind (60 per chain), in list order; it may leave any undecided. It decides from the tool's numbers and pictures with the instructions of the MCP server (lidarslam/mcp_server.py, INSTRUCTIONS) as written at this commit.
  • Measures. scripts/evaluate_luh_map_update.py with the full TLS cloud (Reference_Map_TLS.pcd, md5 231eb6939447570e407ebad56029e151), the L5 hall polygon and floor (−1.39 m), the update's path, and the store-to-TLS transform fitted once per chain from the base session's odometry against its total-station positions (Umeyama, rigid). G and S on both chains; N on S6 → S3 against S1 mapped alone (the development N proxy).
  • Rule. Review helps on a chain if, against A, G falls by at least 0.02 (absolute) while S stays at least 0.97 and, on S6 → S3, N falls by no more than 0.02. Both chains are reported whatever the outcome, with the decisions and the time the review took.

Agent review, development results (2026-11-19)

Both reviews were committed before any TLS or total-station data was read. The store-to-TLS fits used 1,183 (S3) and 1,218 (S6) matched poses, with 3.7 cm and 1.6 cm RMSE; the S1 reference fit 1,626 poses at 3.8 cm. The TLS md5 matched. "Before" is the base session exported alone.

Chain Arm G (%) S (%) N (%) Map points in region
S3 → S6 A, no edits 14.45 100.71 — 34,463
S3 → S6 B, agent edit 13.91 100.66 — 34,085
S6 → S3 A, no edits 29.55 100.79 11.04 41,205
S6 → S3 B, agent edit 27.52 100.81 9.55 39,851

Decisions (60 candidates per chain): S3 → S6 kept 13, removed 34, left 13 undecided (16,801 voxels in the edit); S6 → S3 kept 19, removed 31, left 10 undecided (13,701 voxels). Removing a removed_old or suppressed_new candidate only confirms the evidence; the map changes come from keeps on those kinds and removes on added. The review time was not recorded.

Under the rule:

  • S3 → S6: does not help. G fell by 0.0054, below 0.02. S held.
  • S6 → S3: helps, at the margin. G fell by 0.0203. S held at 100.81%. N fell by 0.0149, within 0.02.

Both arms leave G far above the 2% L5 target, and N on S6 → S3 is about 10% in both: the automatic update misses most new structure, and review, which only sees what the update produced, cannot add it back. The review removed some points that the S1 reference counts as new structure. One chain at the margin on development data is not enough to change the product. A further check would need a fresh public holdout, since the LUH holdout ground truth is open.

New structure after an update: what the development N proxy measures (2026-11-21)

The development N proxy (S6 → S3 against S1 mapped alone) is about 10% for every variant, so it looked as if the update loses most new structure. It does not measure that. S1 is layout A (the poster corridor) and S3 layout B (L-shaped walls, tables); S1's non-TLS points are mostly structure that layout B does not have. Two references built from S3 itself, in the store frame of the S6 → S3 store, show what the update keeps:

  • S3 alone: S3's points farther than 0.20 m from the TLS, people included.
  • S3, both halves: of those, the points within 0.10 m of a point from the other half of S3 (submaps split at the middle), thinned to 0.10 m, so most passing people drop out.
S6 → S3 export G (%) N, S1 proxy (%) N, S3 alone (%) N, S3 both halves (%)
no change masks 55.91 — 99.86 99.86
old-map removal only 41.47 — 99.86 99.86
--filter-new-points (arm A above) 29.55 11.04 55.79 91.28
--refine-visibility 26.96 — — 85.61
arm A + agent review (arm B above) 27.52 9.55 49.62 83.14

On S3 → S6, --refine-visibility gave G = 11.92% against 14.45% for --filter-new-points, with S = 100.57%.

  • Old-map removal never touches the update's own points. The persistence filter keeps 91% of the new structure S3 saw in both halves, and drops much of what it saw only once.
  • The agent review removed new structure: 91% → 83% on the both-halves reference. Its development result above was scored on the S1 proxy and should be read with this.
  • The L5 N measure (another session of the same layout mapped alone, everything farther than 0.20 m from the TLS) counts that session's people and its briefly seen points as new structure. Against S3 itself, a perfect update could reach only what S3's own points support, about 56% with this filter; N ≥ 0.90 against such a reference cannot be met by any update that removes people. A holdout N needs a reference that keeps only structure confirmed across time.
  • In S6 most cells farther than 0.20 m from the TLS form a diffuse cloud over the open hall (10–15 pedestrians), and their per-cell hit, miss and hit-span counts overlap those of S3's furniture: no threshold on per-cell votes separated the two in an offline table over the recorded votes (NewPointEvidence.cells()). The remaining gap is G in layout C, not N.

Replays used the same pre-update stores (store rollback of the scored stores) and reproduced the scored exports byte for byte.

Ghosts after an update to layout C: what G counts (2026-11-21)

G counts every map point farther than 0.10 m from the empty-hall TLS. On S3 → S6 the map points were split by the store's own points: static, not in the TLS when the S3 session and both halves of S6 (submaps split at the middle) have points within 0.10 m. Layout B structure cannot be seen by S6, and a person rarely stands at one spot in both halves. The remainder is removable: what a correct update could drop.

S3 → S6 export G (%) static, not in the TLS (%) removable (%)
no change masks 55.56 5.97 49.59
old-map removal only 44.10 7.16 36.94
--filter-new-points (arm A) 14.45 8.11 6.33
--refine-visibility 11.92 7.45 4.47
arm A + agent review (arm B) 13.91 8.40 5.51

With --refine-visibility, the removable part was about one third old (S3) points and two thirds S6 points, per store point thinned to 0.10 m per session. Half of those S6 points lie in one area beside the start of the S6 path. Their filter cells were hit over a median span of 114 s of the 122 s session (median 64 hits): objects present for all of S6, missing from S3 and from the TLS, below 1.1 m for 90% of them. An update has to keep them. Only about a tenth of the removable S6 points had a hit span under 10 s, the signature of a passer-by.

What an update could still remove is therefore about 2% of the map: the old S3 points that the S6 scans never saw through (about 2.1% of thinned store points) and the few passers-by (about 0.4%). G ≤ 2%, the L5 target, can only be checked if the reference counts structure that is static but absent from the TLS as correct. The next evaluation should therefore not use the empty-hall scan alone.

  • G: a ghost is a point farther than 0.10 m from the TLS and from every other session of the same layout mapped alone; LUH has three sessions per layout C (S5, S6, S7).
  • N: the reference is the new structure that two other sessions of the same layout show (both within 0.10 m), not one session's points farther than 0.20 m from the TLS.

Both need data that is not yet open for a blind run; the LUH holdout ground truth is open since L5, so the next formal measurement needs another public dataset with repeated layouts.

NCLT map-update evaluation (preregistered 2026-11-22, before the holdout run)

LUH's holdout ground truth is open since L5, and its empty-hall TLS cannot tell a ghost from static structure missing from the scan (above). The next measurement uses the University of Michigan North Campus Long-Term dataset (NCLT, ODbL 1.0, Carlevaris-Bianco et al., IJRR 2016): 27 sessions of one campus over 15 months, a Velodyne HDL-32E and a Microstrain IMU, and SLAM ground-truth poses. References are other sessions, not a scan of the true scene.

Data and preparation

  • scripts/convert_nclt_session.py streams each session's Velodyne archive and writes a ROS 2 bag with every 6th return (disk); bench_report/data/long_term_2026-11/rko_lio_nclt.yaml holds the extrinsics. Odometry parameters were not tuned.
  • Area: the 150 m square at x −180…−30 m, y −585…−435 m (NCLT local frame), the window with the most 10 m cells visited by all eight chain sessions. Each session keeps its longest pass through it, ±10 s (bench_report/data/long_term_2026-11/nclt/windows.json). Only 1 Hz ground-truth positions were used to pick the area and the windows.
  • The update bag starts at the first ground-truth position within 1.5 m of the base pass (trim.py), because startup registration searches stored keyframes within 3 m for 10 s.
  • Known start: the update's --initial-pose comes from ground truth: the base session's odometry and the update mapped alone are each fitted to their ground truth (rigid), and the update's pose at its first scan is carried into the store frame (prior.py). R (finding the start) is not measured here.

Chains

Chain Base Update References
development 2012-01-15 2012-05-26 2012-05-11, 2012-06-15
holdout 2012-02-18 2012-11-16 2012-11-04, 2012-11-17

Arms

  • C: live --store --initial-pose (no change detection: the update is appended).
  • A: C plus --detect-changes --filter-new-points.
  • B: C plus --detect-changes --refine-visibility.

Each arm starts from a copy of the same base store.

Measures (scripts/evaluate_nclt_map_update.py, d = 0.5 m)

Each reference session is mapped alone, placed in the store frame by its ground-truth fit and refined by point-to-plane ICP against the arm's export. Points are scored within 10 m (XY) of the update path and of both reference paths, 0.3–3.0 m above the local ground (lowest point per 2 m cell).

  • Ghost points: export points with no point of either reference within d. G is their share.
  • S: coverage of persistent structure (reference 1 within d of reference 2 and of the map before the update), after divided by before.
  • N: share of new structure (reference 1 within d of reference 2, farther than 2d from the map before) that the export covers within d.

d = 0.5 m was chosen on the development chain, where ICP left a median residual of 0.13–0.18 m and d = 0.3 m counted 14% of the base map as ghost.

Development (d = 0.5 m):

Arm Ghost points vs C G (%) S N (%)
C 20,813 1.00 3.52 1.000 94.93
A 12,513 0.60 2.88 0.998 83.62
B 12,554 0.60 2.82 0.999 89.43

Decision rule (holdout)

An arm (A or B) helps on NCLT when, on the holdout chain, its ghost points are at most 0.75 of arm C's, S ≥ 0.97 and N ≥ 0.85. If both help, the one with the higher N is preferred. The result is reported whatever it is, with G for every arm. It decides between the two change modes; it does not by itself make the long-term mode the default.

NCLT holdout results (2026-11-22)

All three arms anchored with the known start; the update bag started 11 s into its window. ICP moved the references by 1.3–2.3 m from their ground-truth placement (median residual 0.15–0.18 m).

Arm Ghost points vs C G (%) S N (%) Rule
C, append 38,556 1.00 9.96 1.000 99.12 —
A, --filter-new-points 17,052 0.44 5.73 0.994 71.16 fails N
B, --refine-visibility 24,898 0.65 8.04 0.999 93.48 helps

Under the preregistered rule, B helps on NCLT and A does not (N below 0.85). B is the preferred change mode.

The preregistered measure aligns the references to each arm's export separately. Reference 1 moved 1.98–2.28 m depending on the arm, so the scored region and the new-structure reference differ between arms: A had 2,569 new-structure points against 20,490 for B and 25,679 for C, and its map before the update counted 2.4% ghost against 12.8% and 15.9%. A post-hoc check (not preregistered) aligned both references once to the map before the update and scored every arm against that same placement:

Chain Arm Ghost points vs C S N (%)
holdout C 80,645 1.00 1.000 35.53
holdout A 37,875 0.47 0.993 32.32
holdout B 41,168 0.51 0.993 33.14
development C 122,107 1.00 1.000 86.51
development A 56,608 0.46 0.994 77.43
development B 65,029 0.53 0.994 80.15

With the shared placement the references sit on the old map rather than on the update, so even append keeps only 36% of the holdout's new structure: N is then limited by how well the update is placed, not by the change mode. What holds in every analysis: both change modes cut ghost points to about half of append (0.44–0.65) with S ≥ 0.99, and B keeps more new structure than A (by 2.7–22 points of N). The absolute N depends on the reference placement; a placement that uses the update's own map and the old map together is the next fix to the measure.

Start an update anywhere in the store (development, 2026-11-22)

Startup registration only searched stored keyframes within 3 m of a given pose, or within 5 m of the first stored submap, for the first 10 s of data; on NCLT the update had to be trimmed and given a ground-truth start. live --relocalize-anywhere (experimental) instead:

  • ranks every stored keyframe by Scan Context distance and registers only candidates closer than 0.18 (NCLT development: correct top candidates had median distance 0.13 and 90% below 0.19; wrong ones median 0.23, mostly places the store does not hold), with the existing corroboration by a neighbouring keyframe and refusal when two verified candidates disagree;
  • tries one keyframe every 2 s of data for as long as the session runs, and anchors only when two such searches give session transforms within 0.5 m and 2°;
  • keeps at most 600 queued scans for change detection while it searches.

Development, store = 2012-01-15 (NCLT), each session from its first scan, no initial pose:

Session Anchored after Path offset from the ground-truth placement (RMS, max) Processing
2012-05-11 87.1 s 1.48 m, 3.79 m 196 s for 504 s of data
2012-06-15 135.5 s 1.33 m, 3.58 m 132 s for 520 s
2012-05-26 (from +83 s) 3.4 s 0.52 m, 0.74 m 81 s for 457 s

The ground-truth placement itself is only good to 1–2 m here (reference sessions needed 1.3–2.3 m of ICP correction above), so the offsets show the anchors are in the right place, not how accurate they are. A holdout run with a preregistered rule (anchor rate, wrong anchors checked by ICP against the stored map) is still to come.

Holdout check of --relocalize-anywhere (preregistered 2026-11-22, before the run)

The method is frozen as committed in 75c20ee4 (Scan Context gate 0.18, one search per 2 s, two agreeing searches within 0.5 m and 2°). Its thresholds were chosen on the development store only; the holdout sessions below have not been run with it.

  • Store: the NCLT holdout base store (2012-02-18 pass, h_store).
  • Sessions: 2012-11-04, 2012-11-16 (from its first scan, not trimmed) and 2012-11-17, each live --store COPY --relocalize-anywhere with no initial pose, odometry and backend parameters as in the NCLT evaluation.
  • Correct anchor: both (a) the session path placed by the anchor lies within 3.0 m RMS of the same path placed by ground truth (each session's and the base's odometry fitted rigidly to their NCLT ground truth; that placement is itself good to 1–2 m), and (b) point-to-plane ICP of the session's map, placed by the anchor, against the stored base map moves it by at most 1.0 m with a median residual of at most 0.3 m.
  • Rule: the mode works on the holdout if every session anchors correctly within 180 s of data and no session anchors wrongly. A session that never anchors is a miss, not a wrong anchor; a wrong anchor fails the rule outright. Anchor time and processing time are reported.

Holdout results (2026-11-22)

Session Anchored after Offset from the ground-truth placement (RMS) ICP correction (median residual) Preregistered verdict
2012-11-04 6.1 s 0.80 m 1.29 m (0.16 m) wrong (ICP > 1.0 m)
2012-11-16 15.1 s 1.07 m 1.48 m (0.18 m) wrong (ICP > 1.0 m)
2012-11-17 25.0 s 0.83 m 0.28 m (0.15 m) correct

All three sessions anchored from their first scan without a start pose, in 6–25 s of data; processing took 74–92 s for 440–570 s of data. Under the preregistered rule the mode fails: two sessions exceed the 1.0 m ICP bound, which the rule counts as wrong anchors.

A post-hoc check (not preregistered) ran the same ICP from the ground-truth placement as well. In all three sessions the two ICP runs converged to the same pose (0.00 m apart), and ICP moved the ground-truth placement by 2.12, 1.35 and 1.28 m. So the 1.0 m bound fails the ground-truth placement too: ICP of a whole 400–570 s session map against the base map finds a best fit about 1–2 m away from any single anchor, and the bound did not separate right from wrong anchors. No anchor was shown to be wrong. The bound was not checked on the development store before it was written, which is the mistake.

The mode stays experimental. A next check would preregister a criterion calibrated on the development store, for example that ICP from the anchor and ICP from the ground-truth placement converge to the same pose, on sessions not used here, and would add sessions that never enter the stored area (no anchor expected).

Calibrating the anchor check on the development store (2026-11-22)

scripts/evaluate_relocalize_anywhere.py compares an anchor (store_from_session) with two things: the ground-truth placement T_g (base and session odometry each fitted rigidly to NCLT ground truth) and point-to-plane ICP of the session's map against the base map, run once from the anchor (M_a) and once from T_g (M_g). converged_apart is the RMS distance between the session's odometry positions placed by M_a and by M_g, and the angle of M_a·M_g⁻¹.

Development store 2012-01-15, the three development sessions of the table above re-run with the frozen method (anchored after 87.1 s, 135.5 s and 3.4 s; offsets 1.45, 1.27 and 0.36 m RMS from the ground-truth placement). Each anchor was also replaced by perturbed copies (anywhere_perturb_grid.txt: XY shifts of 0.5–5 m in four directions, yaw turns of 2–10° about the path's centroid, and shift-and-turn combinations; 38 per session, bench_report/data/long_term_2026-11/nclt/anywhere_calibration_dev.jsonl):

Start (3 sessions) n converged_apart (m) Offset from T_g (m RMS) ICP median residual (m)
the anchor 3 0.000 0.36–1.45 0.136–0.192
shift 0.5–2 m 48 0.000 0.31–2.84 0.136–0.192
turn 2° 6 0.000 1.83–3.03 0.136–0.192
shift 3 m 12 0.000–1.155 2.72–3.75 0.136–0.230
shift 5 m 12 3.34–4.70 4.71–5.66 0.220–0.267
turn 5° (with 0–2 m shift) 30 1.64–5.06 4.77–6.68 0.196–0.268
turn 10° 6 8.58–10.70 9.68–11.98 0.228–0.261

ICP from any start within 2 m and 2° of the anchor reaches exactly the pose ICP reaches from the ground-truth placement; from 5 m or 5° it never does (at least 1.6 m apart, with a higher residual); 3 m is the edge of the basin. So "ICP from the anchor and from the ground truth converge to the same pose" is a check that the anchor lies within about 2–3 m and 2° of the best fit to the stored map. It cannot tell anchors closer than that apart, which the 1–2 m ground truth cannot either. The old 1.0 m bound on the ICP correction would have called 39 of the 57 starts within 2 m and 2° wrong.

Second holdout check of --relocalize-anywhere (preregistered 2026-11-22, before the run)

Method frozen as in 75c20ee4 (unchanged since). Store: the NCLT holdout base store (2012-02-18 pass, h_store), odometry and backend parameters as in the NCLT evaluation. No session below has been run with the method; their ground truth has been used only at 1 Hz, as positions, to choose the windows.

  • Sessions (select_anywhere_holdout.py, anywhere_holdout2_windows.json): for each of four periods (2012-01–02, 03–05, 06–09, 2012-10–2013-04), the NCLT session not used so far with the longest pass through the evaluation square: 2012-02-02, 2012-03-17, 2012-09-28, 2012-10-28.
  • In-area run: that pass ±10 s (510–1,109 s), from its first scan, no start pose.
  • Out-of-area run: in the same session, the first 480 s of its longest stretch that stays at least 100 m (XY) from every ground-truth position of the stored base pass (closest approach 100.0–238.1 m). The store holds nothing of these places, so no anchor is expected.
  • Each run: live --store COPY --relocalize-anywhere (run_anywhere.sh), then evaluate_relocalize_anywhere.py against the base map (holdout_anywhere2.sh).
  • Correct anchor: converged_apart ≤ 0.25 m and ≤ 0.5°, and the anchor's offset from the ground-truth placement ≤ 4.0 m RMS (on the development store every start within 2 m and 2° was ≤ 3.03 m and every start 5 m or 5° off was ≥ 4.71 m). Any other anchor is wrong, in an in-area or an out-of-area run.
  • Rule: the mode works on this holdout if every in-area run anchors correctly within 180 s of data and no run (in-area or out-of-area) anchors wrongly. A run that never anchors is a miss, not a wrong anchor; one wrong anchor fails the rule outright. Anchor time, processing time and every measure above are reported for all eight runs, whatever the outcome.

Not part of the rule: under this check the three sessions of the first holdout would all count as correct (ICP from the anchor and from the ground truth converged 0.00 m apart; offsets 0.80–1.07 m). That observation shaped the check, which is why it is tested on new sessions.

Second holdout results (2026-11-22)

All eight runs as preregistered (holdout_anywhere2.jsonl):

Run Anchored after Offset from T_g (m RMS) ICP correction (median residual) converged_apart Verdict Processing / data
2012-02-02 in-area 4.0 s 0.62 0.24 m (0.16 m) 0.000 m, 0.00° correct 129 s / 1,109 s
2012-03-17 in-area 3.4 s 0.76 0.81 m (0.17 m) 0.000 m, 0.00° correct 75 s / 510 s
2012-09-28 in-area 5.7 s 1.01 0.54 m (0.17 m) 0.000 m, 0.00° correct 78 s / 531 s
2012-10-28 in-area 6.6 s 1.04 0.73 m (0.19 m) 0.010 m, 0.01° correct 77 s / 616 s
2012-02-02 out-of-area — — — — no anchor 53 s / 480 s
2012-03-17 out-of-area — — — — no anchor 345 s / 480 s
2012-09-28 out-of-area — — — — no anchor 660 s / 480 s
2012-10-28 out-of-area — — — — no anchor 498 s / 480 s

Under the preregistered rule the mode works on this holdout: every in-area run anchored correctly within 7 s of data, and no run anchored wrongly; none of the four runs outside the stored area anchored.

Outside the stored area the search never stops, and two of the four runs took longer than their data (660 s and 498 s for 480 s): a session that drives away from the store would fall behind real time. Bounding the search cost (fewer candidates per search, or a pause after repeated failures) is the next change before the mode can leave experimental; it needs its own check that the in-area anchors above still hold.

Bounding the search outside the stored area (development, 2026-11-22)

A profile of the 2012-09-28 run outside the stored area: 157 of 176 searches had no candidate under the Scan Context gate and took 0.06 s; the other 19 registered 1–8 candidates at 6–10 s each and found nothing, 700 s in all. Since b837593, a search that registers candidates and finds nothing doubles the wait before the next search (data time, from 2 s), and a found candidate resets it. The cap was chosen on the development store only, with two new runs outside it (anywhere_dev_out_windows.json: the first 480 s of the longest stretch of 2012-05-11 and of 2012-06-15 at least 100 m from the 2012-01-15 pass):

Cap Anchored after (05-11 / 06-15 / 05-26) Processing outside the store (05-11 / 06-15, 480 s each)
2 s (no back-off) 87.1 / 135.5 / 3.4 s 83 / 283 s
8 s (b4d097e) 92.8 / 141.0 / 3.4 s 82 / 133 s
16 s 149.2 / 141.0 / 3.4 s 81 / 69 s
32 s 233.5 / 141.0 / 3.4 s 82 / 72 s

All development anchors stayed correct under the calibrated check. With the 8 s cap the eight runs of the second holdout were repeated (anywhere_backoff_holdout2_recheck.jsonl; a regression check on data already used, not a new holdout): the four in-area runs gave the same anchors as before (3.4–6.6 s, converged_apart ≤ 0.01 m), and the four runs outside the store did not anchor and took 62, 146, 306 and 182 s for 480 s of data (before: 53, 345, 660 and 498 s). The mode stays experimental: it now keeps up with real time on these runs, on this machine, but a search that registers candidates still blocks the session for up to a minute.

Searching off the tracking path (development, 2026-11-22)

With the back-off a search that registers candidates still blocked tracking for up to a minute. Since this change, live --relocalize-anywhere --realtime runs each search on a worker thread (the matcher releases the GIL) and uses its result at the first keyframe after it finishes. Without --realtime searches stay in line, so replays, and every number above, stay deterministic; with it the anchor depends on wall-clock timing, as real-time playback already does. Two runs played in real time on this machine, in line (as before) and on the worker (anywhere_realtime_background.jsonl; 2012-09-28 outside the stored area is a run of the second holdout, used here only for timing):

Run Search Anchored after Pose lag p50 / p95 / max
2012-09-28 outside the store (480 s) in line — 56.9 / 185.5 / 196.6 s
worker — 0.017 / 0.042 / 0.174 s
2012-05-11 on the development store (504 s) in line 92.8 s 0.017 / 5.4 / 12.9 s
worker 97.4 s 0.017 / 0.25 / 1.2 s

The worker run's anchor on the development store is correct under the calibrated check (ICP from the anchor and from the ground truth 0.00 m apart; 1.43 m RMS from the ground-truth placement). Searches no longer hold up tracking; the mode stays experimental until a live run on a store not used for its development has been checked.

NCLT map update with one reference placement for every arm (2026-11-22)

The NCLT measure placed the references by ICP against each arm's own export, so the scored region and the new-structure reference differed between arms. evaluate_nclt_map_update.py --align-target takes one map as the ICP target for every arm; here it is the append arm C's export, which holds both the old and the new structure. chain_shared.sh re-runs one chain (base store, update mapped alone, known start, arms A, B and C, both references) and scores it both ways (rerun_{d,h}_{own,shared}_{A,B,C}.json). Both chains were re-run from scratch in this environment.

Chain Arm Ghost points (own / shared) vs C (shared) S (shared) N (own / shared)
development A, --filter-new-points 13,074 / 11,753 0.58 0.998 87.7 / 86.3 %
development B, --refine-visibility 12,950 / 11,893 0.59 0.999 91.3 / 91.6 %
development C, append 20,104 / 20,104 1.00 1.000 95.2 / 95.2 %
holdout (re-run, post hoc) A 45,474 / 43,834 0.72 0.994 91.0 / 54.4 %
holdout (re-run, post hoc) B 42,151 / 42,542 0.70 0.994 57.1 / 58.5 %
holdout (re-run, post hoc) C 60,613 / 60,613 1.00 1.000 67.2 / 67.2 %

The development chain reproduces the committed one closely (arm C: 20,104 ghost points and N 95.2 % against 20,813 and 94.9 %; the update was trimmed 81 s instead of 83 s). The holdout chain does not reproduce the committed holdout result: the base map already differs (195,113 scored points against 194,009, and 9.3 % of it counted as ghost against 15.9 %), and arm C now has G 14.7 % and N 67.2 % against 9.96 % and 99.1 %. The committed holdout was run in another environment with an earlier build, and its runs are gone, so the cause is not known. With its own placement, arm A's N on the holdout re-run jumps to 91.0 % because its references are placed differently (2.07 m vs 1.86 m correction), the artefact the shared placement removes.

What holds under the shared placement on both chains: both change modes cut ghost points to 0.58–0.72 of append with S ≥ 0.99, and B keeps at least as much new structure as A (91.6 vs 86.3 %, 58.5 vs 54.4 %). The absolute N of the holdout chain is not stable across environments (99 % then, 67 % now, for append), so the holdout decision recorded above (B helps, N ≥ 0.85) rests on a number that this re-run does not reproduce; that decision stands as recorded, with this caveat. Any further change to the change modes needs a new holdout chain, preregistered, and run and scored in one environment.

Live check of --relocalize-anywhere on a new store (preregistered 2026-11-23, before the run)

Method as merged in #635 (bceac32): the search of #633 with the back-off of #634, run on a worker thread under --realtime. Nothing below has been run with it. Ground truth has been used only at 1 Hz, as positions, to choose the windows (select_anywhere_live.py, anywhere_live_windows.json); every session used so far in this document is excluded.

  • Store: the unused NCLT session with the longest pass through the evaluation square, 2012-02-05 (that pass ±10 s, 709 s), mapped offline into a new store with the NCLT odometry and backend parameters.
  • Sessions: for each later period (2012-03–05, 06–09, 2012-10–2013-04) the unused session with the longest pass: 2012-03-25, 2012-08-20, 2012-12-01. Each gives an in-area run (its pass ±10 s, 421–495 s) and an out-of-area run (the first 480 s of its longest stretch at least 100 m from every position of the stored pass; closest approach 197.7–326.9 m).
  • Each run: live --store COPY --relocalize-anywhere --realtime, the in-area and out-of-area runs of one session played at the same time (two at a time on this 4-core machine, as for the development timing above), once each, then evaluate_relocalize_anywhere.py against the base map (holdout_anywhere_live.sh).
  • Correct anchor: as calibrated above: converged_apart ≤ 0.25 m and ≤ 0.5°, and offset from the ground-truth placement ≤ 4.0 m RMS. Any other anchor is wrong.
  • Rule: the mode works live on this store if (a) every in-area run anchors correctly within 180 s of data, (b) no run anchors wrongly, and (c) every run keeps the pose lag at p95 ≤ 1.0 s and max ≤ 5.0 s (development, on the worker: p95 0.04–0.25 s, max 0.17–1.2 s). A run that never anchors is a miss for (a), not a wrong anchor. All six runs are reported whatever the outcome.
  • If the rule holds, --relocalize-anywhere is proposed to leave experimental status (a separate change, for the maintainer to decide).

Live check results (2026-11-23)

All six runs as preregistered (holdout_anywhere_live.jsonl):

Run Anchored after Offset from T_g (m RMS) converged_apart Verdict Pose lag p95 / max
2012-03-25 in-area (495 s) 48.0 s 0.55 0.000 m correct 0.52 / 1.57 s
2012-08-20 in-area (464 s) 40.2 s 1.02 0.000 m correct 18.9 / 31.8 s
2012-12-01 in-area (421 s) 37.8 s 0.67 0.002 m correct 11.3 / 23.2 s
2012-03-25 out-of-area (480 s) — — — no anchor 0.05 / 1.54 s
2012-08-20 out-of-area (480 s) — — — no anchor 0.05 / 0.15 s
2012-12-01 out-of-area (480 s) — — — no anchor 0.04 / 0.07 s

(a) holds (every in-area run anchored correctly, in 38–48 s of data) and (b) holds (no wrong anchor, none of the out-of-area runs anchored), but (c) fails: two in-area runs fell behind real time by up to 32 s. Under the preregistered rule the mode does not work live on this store, and it stays experimental.

Post-hoc diagnosis (not preregistered): 2012-08-20 in-area was played in real time again, alone, once with --relocalize-anywhere and once with no store at all (anywhere_live_lag_probe.jsonl). Both fell behind the same way (p95 19.9 s and 18.0 s, max 30.9 s and 26.0 s), and the per-pose lag was below 0.13 s for the first 300 s in both, so the search is not the cause. The lag builds up from about 420 s of data, where the path returns near its start: the backend registers a distance-based loop candidate on every new submap (most are then skipped as redundant), and each of those keyframes held tracking for 3.1–3.6 s. The failure of (c) is therefore a property of the live backend's loop closure, present without a store; --relocalize-anywhere itself met (a) and (b). Bounding the backend's loop-candidate work in live sessions (fewer candidates per submap, or loop closure off the tracking path like the search) is the next change, and it needs a new preregistered live check, on sessions not used here, before the mode can leave experimental.

Where the time goes (post hoc, py-spy --native on 2012-08-20 in-area played offline with no store): 66 % of all samples are in BackendCore::searchLoopForSubmap, almost all of it small_gicp GICP verification of loop candidates (knn_search alone 49 %); the RKO-LIO frontend is 19 %. The existing loop_search_query_stride (search every N-th submap; 1 in the walking preset) bounds it without a code change. On the same run in real time, with the store (anywhere_live_stride_probe.jsonl; a session of the live check, so this is not a selection of the stride):

loop_search_query_stride Anchored after Pose lag p95 / max Loop edges
1 (live check) 40.2 s 18.9 / 31.8 s 2
4 40.2 s 0.38 / 3.56 s 2
8 39.0 s 0.06 / 3.48 s 2

Its cost on the development sessions, each mapped offline alone (ATE against NCLT ground truth, rigid fit; optimized / causal trajectory):

Session Stride 1 Stride 4 Loop edges (1 → 4)
2012-01-15 0.376 / 0.391 m 0.376 / 0.391 m 0 → 0
2012-05-11 0.605 / 0.675 m 0.652 / 0.750 m 6 → 5
2012-06-15 0.447 / 0.500 m 0.449 / 0.506 m 4 → 4
2012-05-26 0.478 / 0.499 m 0.471 / 0.497 m 5 → 5

A stride of 4 keeps three sessions within 1.5 % and loses one loop on 2012-05-11 (+8 % ATE). The development sessions do not fall behind real time even with stride 1 (max lag 1.2 s above), so they cannot choose the stride by lag. Two ways on: a live setting with a coarser loop-search stride (simple; costs some loops), or loop verification off the tracking path as for the search (keeps every loop; a larger change to the shared offline pipeline, which must stay deterministic when not in real time). Either needs a new preregistered live check on unused sessions.

Backend loop search off the tracking path (development, 2026-11-23)

Since this change, background_loop_search (set by live.Session for background_search, that is replay/live --realtime) runs the backend's loop search and its causal graph optimizations on a worker thread over a snapshot of the submaps. Every query still runs, in order, and the remaining ones run at finish(), so the loop edges and every output after the pass are the in-line ones; only the causal (live) corrections depend on timing. Without --realtime nothing changes.

  • 2012-08-20 in-area mapped offline with the worker and in line: loop_edges.csv, trajectory_optimized.tum, trajectory_raw.tum, odometry_tum.txt and map.pcd byte-identical; trajectory_causal.tum differs, as designed.
  • The same run in real time with the store (anywhere_live_background_loop_probe.jsonl; a session of the live check, so post hoc): anchored after 40.2 s as before, both loop edges kept, pose lag p95 0.045 s and max 0.14 s (18.9 s and 31.8 s with the search in line). The worker ran at most 19.8 s behind a submap's stamp, so live corrections arrive late instead of tracking stopping.

Second live check of --relocalize-anywhere (preregistered 2026-11-23, before the run)

As the live check above, with the backend loop search on the worker (the change above) and new sessions. Windows from 1 Hz ground-truth positions only (select_anywhere_live.py with the four sessions of the first live check also excluded; anywhere_live2_windows.json):

  • Store: 2012-01-22 (its pass ±10 s, 518 s).
  • Sessions: 2012-03-31, 2012-08-04, 2013-02-23; in-area runs 466, 425 and 369 s; out-of-area runs 480 s each, closest approach 186.8, 249.7 and 101.0 m.
  • Runs, correct-anchor check and rule (a), (b), (c) exactly as in the first live check (holdout_anywhere_live2.sh): every in-area run anchors correctly within 180 s of data; no run anchors wrongly; every run keeps pose lag at p95 ≤ 1.0 s and max ≤ 5.0 s. Reported whatever the outcome.

Second live check results (2026-11-23)

All six runs as preregistered (holdout_anywhere_live2.jsonl):

Run Anchored after Offset from T_g (m RMS) converged_apart Verdict Pose lag p95 / max
2012-03-31 in-area (466 s) 175.4 s 2.20 3.169 m, 3.00° wrong 0.026 / 0.072 s
2012-08-04 in-area (425 s) 222.7 s 1.11 0.000 m correct, late 0.038 / 0.109 s
2013-02-23 in-area (369 s) 7.0 s 0.55 0.000 m correct 0.044 / 0.101 s
2012-03-31 out-of-area (480 s) — — — no anchor 0.030 / 0.079 s
2012-08-04 out-of-area (480 s) — — — no anchor 0.032 / 0.074 s
2013-02-23 out-of-area (480 s) — — — no anchor 0.041 / 0.112 s

(c) now holds on every run (max pose lag 0.11 s), so the backend worker does what it was for. But (a) fails (2012-08-04 anchored after 222.7 s, beyond 180 s; 2012-03-31 anchored wrongly) and (b) fails (the 2012-03-31 anchor). Under the preregistered rule the mode does not work live on this store, and it stays experimental.

Post hoc, about the 2012-03-31 anchor (not a change of verdict): ICP from the anchor moved it by 0.13 m to a median residual of 0.131 m, while ICP from the ground-truth placement moved that by 1.67 m to a higher residual, 0.169 m, 3.2 m and 3.0° away. The anchor is the better fit to the stored map by this measure, so the calibrated check, which takes the ground-truth start as the reference basin, may have called a good anchor wrong; it may equally be a wrong place that fits well. The check cannot tell these apart, which is its limit: the ground-truth placement is only good to 1–2 m and a few degrees. The late anchors (175 s and 223 s, against 7–48 s on the other five in-area runs of both live checks) are the other open point.

Post-hoc diagnosis of the second live check (not preregistered). The two in-area runs that failed (a) were run again offline (in line, deterministic) with every search logged:

  • Late anchors are the gate, not real time. Offline, 2012-08-04 anchored after 126.4 s and 2012-03-31 after 252.0 s, also late. On the 2012-01-22 store the best Scan Context distance of a search stayed above the 0.18 gate for most searches: median 0.201 (2012-08-04) and 0.262 (2012-03-31), with 8 of 35 and 3 of 43 searches under the gate, against median 0.225 and 9 of 60 for a development session (2012-06-15 on the 2012-01-15 store). The gate was chosen on one development store; this winter store and spring/summer sessions sit further apart.
  • The 2012-03-31 anchor is reproducible. The offline run anchored at a different time from a different keyframe and landed on the same placement: ICP from the anchor moved it 0.12 m to a median residual of 0.131 m, again 3.17 m and 3.0° from where ICP from the ground-truth placement converges (residual 0.169 m). Two independent anchors agreeing, with the better fit, point to the check's reference basin (ICP from the 1–2 m ground-truth placement) rather than to the anchor. This does not change the verdict.

Next: a check that does not take the ground-truth start as the reference basin (for example ICP from several starts, the anchor's solution counting as correct when it is the best-residual one within the ground-truth tolerance), calibrated on development data and preregistered, and a look at the Scan Context gate across seasons on development stores.

Anchor check v2: the best fit near the ground truth (development, 2026-11-23)

evaluate_relocalize_anywhere.py --gt-starts also runs ICP from eight perturbed copies of the ground-truth placement (anywhere_gt_starts.txt: 2 m in four directions, ±2° yaw, two shift-and-turn combinations). Among the solutions from the ground truth, those starts and the anchor that lie within 4.0 m RMS of the ground-truth placement, the one with the lowest median residual is the best fit; v2 counts an anchor correct when ICP from it reaches that best fit (within 0.25 m and 0.5°) and the anchor lies within 4.0 m RMS of the ground-truth placement. It no longer takes the ground-truth start, good only to 1–2 m and a few degrees, as the reference.

On the development calibration (anywhere_calibration_dev_v2.jsonl: the same 3 sessions and 38 perturbations per anchor) v2 gives the same verdict as v1 on all 117 perturbed starts and the 3 anchors: every start within 2 m and 2° correct, every start 5 m or 5° off wrong, 7 of 12 at 3 m.

Post hoc (not a check of anything: these runs were all scored before, and v2 was written after seeing the 2012-03-31 run), v2 on every in-area anchor of the second holdout and both live checks (anywhere_rescore_v2_posthoc.jsonl): all ten correct. The only change is 2012-03-31 (live check 2), whose anchor is itself the best fit (median residual 0.131 m against 0.145–0.169 m from the ground-truth starts). v2 must be preregistered before it decides anything; with it, the open point of --relocalize-anywhere is the late anchors on the 2012-01-22 store (the Scan Context gate), not wrong anchors.

The Scan Context gate across seasons (development, 2026-11-23)

Post hoc on sessions already used (the development store and every run of the second holdout and both live checks are development data now), not a check of anything. Each of 25 sessions (anywhere_gate_jobs.txt) was run once with every keyframe's search input saved and no search (record_anywhere_queries.py); until a session anchors these inputs do not depend on the search. gate_study.py then replays --relocalize-anywhere in line at gates 0.18–0.26: the same candidates, registration, consensus, back-off and two-search agreement, each candidate registered once for all gates. At 0.18 the replay gives the current code's anchor time exactly (2012-05-11: 92.79 s replayed and run; 2012-06-15: 140.98 s against 141.0 s). gate_analysis.py places every verified candidate and anchor against the ground-truth placement and marks a search in the store when the ground truth puts its keyframe within 5 m of the base session's path (anywhere_gate_study.jsonl).

No gate up to 0.26 gave a wrong candidate. Of the 271 verified candidates of the replayed searches (counted once per gate), none was more than 4 m RMS from the ground-truth placement and none was found outside the store; none of the 12 out-of-area runs anchored at any gate. Registration, not the gate, keeps wrong places out on these data.

Anchor time counts time outside the store. Several "in-area" windows start outside the stored area: 2012-08-04 (second live check) enters it after 75.2 s, 2012-05-11 and 2012-06-15 after about 80 s. Seconds from entering the store to the anchor, 13 in-area runs:

Run Enters store 0.18 0.20 0.22 0.24 0.26
2012-03-31 (live 2, winter store) 9.7 s 242.3 96.1 161.8 88.7 10.2
2012-08-04 (live 2, winter store) 75.2 s 51.2 136.5 24.0 24.0 49.0
2012-06-15 (development) 79.6 s 61.4 61.4 58.1 58.1 55.9
2012-05-26 (development) 0.1 s 53.0 10.3 10.3 15.9 15.9
9 other runs 0.1–21.1 s 3.3–12.6 3.3–11.0 3.3–13.8 3.3–11.6 3.3–13.1
median / max 7.1 / 242.3 7.1 / 136.5 7.4 / 161.8 8.6 / 88.7 8.0 / 55.9

All anchors are within 2.32 m RMS of the ground-truth placement (the 2.3 m one is the 2012-03-31 placement that v2 found to be the best fit). The time is not monotonic in the gate: a higher gate also lets more searches that find nothing double the wait (up to 8 s), so the searches that fall in the store change. Only 0.26 keeps every run within 60 s of entering the store, and that rests mostly on one run (2012-03-31).

Cost. Candidates under the gate that a search registers (an upper bound: a disagreement stops early), all runs:

Gate In-area searches / candidates Out-of-area searches / candidates
0.18 193 / 113 1311 / 100
0.22 137 / 266 621 / 1127
0.26 94 / 522 604 / 2567

A registration takes seconds, so out of the store 0.26 costs about 25 times the registration work of 0.18 (with the background worker this delays searches, not tracking).

Next: a preregistered check of gate 0.26 with v2 as the anchor check and the anchor time counted from entering the store (ground truth, decided before the run), on sessions not used so far; the remaining unused NCLT sessions are few, so a new part of the campus is likely needed.

Check of the Scan Context gate at 0.26 in a new part of the campus (preregistered 2026-11-23, before the run)

The development replay above raised the gate of matchAnywhere from 0.18 to 0.26 (startup_relocalization.hpp, ANYWHERE_DESCRIPTOR_GATE). This check decides whether that holds on data not used for it. Everything below is fixed before any of these runs.

  • Data. Only NCLT sessions never used so far, in a new 150 m square that does not overlap the old one, chosen from 1 Hz ground-truth positions only (select_anywhere_gate.py, anywhere_gate_windows.json): x −60…90 m, y −260…−110 m.
  • Store: 2012-01-08 (its pass ±10 s, 468 s).
  • Sessions: 2012-02-04, 2012-02-12, 2012-02-19, 2012-04-29, 2013-01-10, 2013-04-05.
  • Each gives an in-area run (its pass ±10 s; 412, 370, 431, 228, 227 and 250 s) and an out-of-area run (480 s, 2013-01-10 255 s; at least 100 m from the store's path).
  • Runs (holdout_anywhere_gate.sh), as in the live checks: live --relocalize-anywhere --realtime on a copy of the store, in-area and out-of-area runs of a session in parallel.
  • Entering the store. The first ground-truth position of the run within 5 m (XY) of a ground-truth position of the store's window. A run that never comes that close is reported and left out of (a).
  • Anchor check v2, as defined above (--gt-starts with anywhere_gt_starts.txt): an anchor is correct when ICP from it reaches the best fit near the ground truth (within 0.25 m and 0.5°) and it lies within 4.0 m RMS of the ground-truth placement.
  • Rule.
  • (a) Every in-area run that enters the store anchors, correctly by v2, within 60 s of data after entering it.
  • (b) No run anchors wrongly: no anchor that v2 finds wrong, and no anchor in an out-of-area run.
  • (c) Every run keeps pose lag at p95 ≤ 1.0 s and max ≤ 5.0 s.

The gate stays at 0.26 only if (a), (b) and (c) all hold; otherwise it goes back to 0.18. The result is reported whatever the outcome, with the anchor time from the start of each run as well.

Results of the gate-0.26 check (2026-11-23)

All twelve runs as preregistered (holdout_anywhere_gate.jsonl):

Session In-area run Enters store Anchored after After entering v2 Offset from T_g Out-of-area run
2012-02-04 412 s 0.1 s 83.0 s 82.9 s correct 0.25 m no anchor
2012-02-12 370 s 70.4 s — — — — no anchor
2012-02-19 431 s 98.3 s 141.0 s 42.7 s correct 1.17 m no anchor
2012-04-29 228 s 70.4 s — — — — no anchor
2013-01-10 227 s 0.1 s 6.8 s 6.7 s correct 0.34 m no anchor
2013-04-05 250 s 0.1 s 13.8 s 13.7 s correct 1.16 m no anchor (480 s)

(b) holds: every anchor is correct by v2 and no out-of-area run anchored. (c) holds: pose lag p95 ≤ 0.061 s and max ≤ 0.304 s in every run. (a) fails: 2012-02-04 anchored 82.9 s after entering the store, and 2012-02-12 and 2012-04-29 (299 s and 157 s of data after entering) did not anchor at all. Under the preregistered rule the gate goes back to 0.18, and --relocalize-anywhere stays experimental.

What this says: on a new store and new sessions, a wider gate did not bring wrong anchors, but it did not make anchoring prompt either. The development replay credited 0.26 mostly to one run (2012-03-31); here three of six in-area runs were slow or never anchored with it. Why they did not anchor (no candidate under the gate, or candidates that registration rejected) is not known from this run and would be a post-hoc question on data that is now used.

Why the gate-0.26 check failed (post hoc, 2026-11-23)

Not preregistered; these sessions are used now. Three in-area runs were recorded again with every keyframe's search input (record_anywhere_queries.py) and diagnosed (registration_diagnosis.py: the session placed in the store by ICP from the ground truth; anywhere_gate_posthoc.jsonl):

  • Registration is not what fails. From its true pose, match_with_reference verifies 33 of 36, 9 of 12 and 118 of 120 sampled in-store keyframes (2012-02-12, 2012-04-29, 2012-02-04), and most in-store keyframes with a candidate under 0.18 have a correct one (within 3 m and 20°).
  • The real-time search with the wide gate is. The same inputs replayed in line anchor early, and the shipped gate in real time does too:
Session Check (0.26, real time) In line, 0.26 In line, 0.18 Real time, 0.18
2012-02-04 83.0 s 3.4 s 3.4 s 6.8 s
2012-02-12 none 77.1 s 86.1 s 89.4 s
2012-04-29 none 219.2 s 226.0 s —

At 0.26 a search registers several times as many candidates (development: 4–25×), each taking seconds; with the search on the worker the next search waits for it, so in real time far fewer keyframes are searched. 2012-02-12 is in the store only briefly (about 73–90 s, then from about 298 s), and two agreeing searches did not fit. The wider gate made the real-time mode worse, not better; the development replay, in line, could not show this. - "Entering the store" overstated the time in it. 2012-04-29 first comes within 5 m of the store's path at 70.4 s but is in the store for only a few seconds then and again from about 207 s to its end (228 s); its in-line anchor at 226 s is late by the rule, but there was little to anchor on. A future rule should count seconds of data in the store, not seconds since first entering it.

The gate stays at 0.18. What limits --relocalize-anywhere live is search cost per keyframe in real time, which a later change could bound (for example, register only the closest few candidates per search), checked in real time.

Replaying the real-time search (post hoc, 2026-11-23)

gate_study.py --realtime replays the background search of live --realtime: a search started at a keyframe ends its measured seconds later in data time (--slowdown scales that), keyframes before then are not searched, and its result is taken at the first keyframe after it ends. --caps registers at most that many candidates per search. On the three recorded runs it gives the real-time runs' anchor times (anywhere_realtime_cap_replay.jsonl, slowdown 1):

Session Real time, 0.18 (run / replay) Real time, 0.26 (check / replay) 0.26, at most 3 / 2 candidates
2012-02-04 6.8 s / 5.8 s 83.0 s / 83.0 s 12.5 s / 11.2 s
2012-02-12 89.4 s / 89.4 s none / none 313.0 s / 307.5 s
2012-04-29 — / none none / none none / none
  • At 0.18 the cap changes nothing: few candidates pass the gate, a search takes 0.05 s (median), and the real-time search behaves like the in-line one.
  • At 0.26 a search took 8–28 s (median) and up to 90 s with eight candidates. Capping at two or three shortens it but does not bring back what the in-line search found (2012-02-12: 77 s in line, 307 s or more capped).
  • A single registration takes 4–7 s here, on repeated calls too (it is not a one-time preparation of the stored keyframe; preparing the query takes 0.04 s). This, not the number of candidates, is what makes a wider gate unaffordable in real time.

So capping candidates is not worth a product change. The lever is the cost of one registration (GICP against the stored keyframe windows, up to three neighbours, three stages, then confirmation), which can be measured directly and compared with identical verification outcomes on development data before any gate is widened again.

Cheaper registration for startup relocalization (development, 2026-11-24)

A profile of match_with_reference put about 94% of the time in GICP. registration_bench.py writes matchPrepared again with the small_gicp Python bindings (same thinning, preparation, neighbours, stages, overlap and confirmation; on the first keyframes it gives the C++ verdicts and poses exactly) and runs variants from the same starts: every sixth recorded keyframe of nine sessions on five stores, its two or three closest Scan Context candidates (anywhere_registration_iterations.jsonl). A verified registration took 0.46 s, a rejected one 6.5 s: candidates from wrong places do not converge and run all 30 iterations of each stage.

Variant Faster Verified ones lost Rejected ones verified Pose > 0.1 m from C++
10 iterations per stage 2.5× 0 of 374 0 of 1042 0
5 iterations per stage 4.3× 1 of 364 0 0
10 iterations, 2 neighbours 3.7× 9 of 364 0 0
coarse first stage (1.0 m voxels) 1.4× 1 of 95 0 0
4 threads 1.4–1.6× 0 of 95 0 0

StartupRelocalizer now runs 10 iterations per stage (the offline multi-session join keeps 30): the same verdicts on all 1416 registrations, 2.5 times faster.

Real-time replays with the new core (gate_study.py --realtime, slowdown 1): at the shipped gate (0.18) searches are short already (median 0.05–2.3 s) and the anchor times of the three runs with earlier real-time numbers did not change (2012-02-04 5.8 s, 2012-02-12 89.4 s, 2012-04-29 none). At 0.26 searches got shorter (2012-02-04 anchors after 28.9 s instead of 83.0 s; 2012-02-12 after 305.2 s instead of never), but 0.26 is still slower than 0.18 in real time on seven of the nine sessions, so the gate stays at 0.18. The change cuts the cost of every relocalization registration without changing its outcome; it does not by itself make anchoring earlier.

Memory of a long-lived store (development, 2026-11-26)

The lifelong NCLT chain (bench_report/data/long_term_2026-11/lifelong/) ran out of memory (about 14 GB, killed) on its twentieth session, 2013-02-23, while committing it. Measured on that store (19 sessions, 7191 stored keyframes):

  • Exporting the merged map on its own peaks at 3.4 GB (20 sessions, 50.3 M points streamed in 18 passes to 15.2 M), mostly the change-evidence removal masks.
  • The live session held 10.8 GB when it began the export: the relocalizer's stored keyframes (4.7 GB), the change evidence over every stored submap (4.1 GB) and the backend, all still alive. The export on top of that was the kill.

Two changes, neither of which changes an output:

  1. live commits the session, then releases the relocalizer's stored keyframes, the change evidence and the backend, and only then exports the store (Store.export_if_aligned).
  2. Change evidence loads the stored sessions when the session is anchored (its first traced scan), after the relocalizer has released its copy; a session that does not track the store (no --track-store or shared surfaces) has no use for it once anchored.

2013-02-23 again on a hard-linked copy of the store, in line:

Peak during the session Held at the export Finished
Before — 10.8 GB + export killed (about 14 GB)
Change 1 12.5 GB 6.0 GB yes
Changes 1 and 2 9.7 GB 4.9 GB yes

Changes 1 and 2 give byte-identical outputs to change 1 alone: the session's change evidence, submaps, keyframe windows, pose graph, store entry and the exported map.pcd. The session anchors after 101.6 s of data with no initial pose. Both copies of the store (relocalizer and change evidence) still grow with every session, about 0.23 GB each per session here, so a store of a few dozen sessions needs them smaller (for example thinned keyframe windows, or one shared copy of the stored points).

Stored keyframes read on demand (development, 2026-11-26)

The relocalizer held every stored keyframe window in memory: 7191 keyframes of about 40,000 points each (already thinned to 0.2 m), 4.7 GB for this store. It now keeps only their frames and reads a window from keyframe_windows.npz when the keyframe is described or registered, without keeping it (StoreRelocalizer(..., on_demand, loader)); with --relocalize-anywhere every keyframe is described once at startup (describe_all), before playback, so the first search does not spend about two minutes reading them. Shared-surface tracking still loads the windows, as it needs them all.

2013-02-23 again Peak during the session Held at the export
Release before export, change evidence once anchored 9.7 GB 4.9 GB
and stored keyframes on demand 6.5 GB 1.6 GB

The relocalizer takes 0.18 GB after construction (was 4.72 GB). The session's outputs (change evidence, submaps, keyframe windows, pose graph, store entry) and the exported map.pcd are again byte-identical, and it anchors at the same data time (101.6 s). What grows with every session now is the change evidence (4.1 GB here, built once the session is anchored).

Compact change evidence (development, 2026-11-26)

The change evidence keeps one state per stored 0.15 m voxel centroid (about 4 GB for this store with 20 sessions). A state now takes 88 bytes instead of 120 (32-bit session, submap and counters), and the states sit in a deque sorted by world cell in place, so a cell is one range of it instead of its own vector of indices. Building it frees many small temporary blocks between the ones it keeps; glibc kept those pages, so the heap's free pages are returned to the system after it is built and again after the session releases it (_core.release_free_memory, nothing to do off glibc). Two first attempts that moved the states into one array of the exact size raised the peak instead (two copies at once: 7.3 and 7.4 GB).

2013-02-23 again Peak during the session Held at the export Process peak
Stored keyframes on demand 6.5 GB 1.6 GB 9.0 GB
and compact change evidence 5.1 GB 0.24 GB 7.6 GB

The outputs are byte-identical again (the rows are sorted when they are written, so the new order of the states does not show). The process peak is now the export of the merged map.

Evidence rows sorted in C++ (development, 2026-11-26)

The memory figures above sampled the resident size every 0.2 s from a Python thread, which misses short peaks while native code holds the interpreter. Read from the kernel's high-water mark (VmHWM, reset with /proc/self/clear_refs between phases) instead, the 2013-02-23 session peaked at 7.9 GB, at its end: MapChanges.rows() turned each of the 14.7 million evidence rows into a Python list of nine ints, sorted the lists, then made an array of them. The rows now come sorted from C++ as one int64 array (MapChangeEvidence.rows(), the same order as Python sorts the lists).

2013-02-23 again (high-water mark) Session Store entry Export
Compact change evidence 7.9 GB 5.1 GB 5.1 GB
and rows sorted in C++ 5.1 GB 5.1 GB 5.0 GB

The outputs are byte-identical again. The peak is now the change evidence held during the session (about 4 GB of it) and, about as high, the export.

Vertical drift in the lifelong store (development, 2026-11-26)

An audit of the lifelong NCLT store (lifelong/transient_audit.py, descriptive) found 4.1% of the exported points, in cells that at least five sessions passed within 15 m, seen by one session alone; at 0.3–2.2 m above the ground, where people and cars are, 2.1%. Most of it came from five sessions whose map sits above or below the others'. Their committed submap positions, compared with those of the other sessions within 1.5 m (XY), drift in height along the session: 2012-03-31 goes from −0.8 m in its first quarter to +3.8 m in its last, 2012-11-16 from −0.1 m to −1.3 m, while the steadiest sessions stay within ±0.2 m. A session is placed by one rigid transform from its anchor, so drift inside it reaches the map. --track-store and --track-shared-surfaces add store factors along the session but were only tried on LUH.

Check of store tracking against vertical drift (preregistered 2026-11-26, before the runs)

  • Update: 2012-03-31 (bags/2012-03-31_live2in, development), appended to the lifelong store as it was before it (its first seven sessions, 2012-01-15 to 2012-03-25).
  • Arms: baseline, the lifelong chain's own run (--relocalize-anywhere --detect-changes, session 0007 of the store); T, the same plus --track-store; S, the same plus --track-shared-surfaces.
  • Measure, no ground truth: for each committed submap of the update with at least three submap positions of the first seven sessions within 1.5 m (XY), dz is its height minus their median height. Reported: the number of such submaps, the median dz, the 95th percentile of |dz| and the median dz of the last quarter of them in session order.
  • Rule: an arm reduces the drift when it anchors and commits, keeps at least 80% of the baseline's number of compared submaps, and its 95th percentile of |dz| is at most half the baseline's. If both do, the one with the lower 95th percentile is preferred. The result is reported whatever it is; it does not by itself change the chain's defaults.

Results of the store-tracking check (2026-11-26)

Arm Store factors Compared submaps Median dz 95th pct. of |dz| Last quarter Rule
baseline (lifelong session 0007) — 185 −0.41 m 3.44 m +2.57 m —
T, --track-store 10 213 −0.09 m 5.12 m +4.25 m fails
S, --track-shared-surfaces 73 220 −0.02 m 9.16 m +7.70 m fails

Neither arm reduces the drift; both raise it at the end of the session. S also peaked at 13.9 GB during the session: the shared-surface target still loads every stored keyframe window.

The drift is already in the odometry. The update's odometry, placed by its store transform, stays about 0.7 m below the earlier sessions' submaps until about 320 s, then climbs to +5 m over the last 100 s, where only three or four earlier submap positions lie within 1.5 m; the committed submaps follow it (first and last heights −1.05 and 7.55 m against −1.05 and 7.53 m in the odometry). Store factors along the path have little to hold on to there.

Keeping a drifting session out of the store (development, 2026-11-26)

Until the drift itself is corrected, live now checks an anchored session before it joins the store (lidarslam.height_check, --max-height-drift M, default 1.5 m, 0 turns it off). Its written submaps, placed as the export would place them, are compared with the stored sessions' submap positions: for each submap with at least three stored positions within 1.5 m (XY), the height difference to their median. When at least 20 submaps overlap and the 95th percentile of |difference| exceeds the limit, the session is not committed (Store.add_session(..., before_commit=...) raising SessionRefused): its directory stays uncommitted, its outputs stay in --out, the export is unchanged and the summary gives store_refused and store_height_check.

The limit was set on the lifelong chain itself, by the 95th percentile of each session against the sessions before it (development):

Sessions 95th percentile of |dz|
2012-01-22 … 02-18, 06-15 … 08-20, 10-28, 11-04, 12-01, 2013-02-23 0.04–0.66 m
2012-03-17, 03-25, 05-26, 09-28, 11-17 0.82–1.18 m
2012-05-11 1.44 m
2012-11-16 1.62 m (refused)
2012-03-31 3.44 m (refused)

The check takes 1–2.5 s on this store. It keeps a drifted session from spoiling the map; it does not repair the session.

Odometry settings against the 2012-03-31 climb (exploratory, development, 2026-11-26)

python -m lidarslam odometry on bags/2012-03-31_live2in with one RKO-LIO setting changed at a time, placed by the lifelong store transform of session 0007, against the first seven sessions' submaps within 1.5 m (every 5th pose; no ground truth):

Setting 95th pct. |dz| Median dz after 320 s End minus start height
rko_lio_nclt.yaml 3.44 m +1.98 m +8.58 m
inertial_window: true 5.91 m −4.19 m −6.88 m
degeneracy_aware_solve: true 2.77 m +1.38 m +5.31 m
icp_levenberg_marquardt: true 3.06 m +2.42 m +5.81 m
voxel_size: 0.3 5.07 m +3.57 m +9.93 m
max_range: 120 2.19 m +1.24 m +6.96 m

Every setting drifts by metres in the same stretch, with signs and sizes that change with the setting: height is barely observed there, so no single setting fixes it. One session only; no setting was changed.

What the stretch looks like (every 10th scan in the base frame): until 200 s the scans reach 15–22 m and 14–43% of their points lie within 0.3 m of the ground; from 200 to 320 s the median range drops to 3.3 m, with 6% near the ground and 2% above 3 m (a confined passage); after 320 s the view opens again. The odometry pitch changes by about 16 degrees across the passage (median −1.0 degree before 320 s, −17.1 degrees from 320 to 370 s) and the path climbs from there: an attitude error picked up in the passage, not a slow drift in height.

The bag starts while moving (RKO-LIO: "Moving start ... IMU biases left at zero"), and its world frame comes from 5 IMU samples. Re-estimating gravity from the first seconds of motion (moving_start_gravity_window_sec, used on GrandTour) finds it 15.3–15.4 degrees from that initial world z. With the window set to 5 s the drift is unchanged (95th percentile 3.40 m); with 10 s it falls to 2.20 m (last part +1.40 m against +1.98 m). One session; no setting was changed.

Check of moving-start gravity on every lifelong update (preregistered 2026-11-26, before the runs)

  • Sessions: the 19 updates of the lifelong chain (lifelong_chain.sh, 2012-01-22 to 2013-02-23), each from the bag the chain used.
  • Arms: python -m lidarslam odometry with rko_lio_nclt.yaml (A) and with moving_start_gravity_window_sec: 10.0 added (G).
  • Measure, no ground truth: each arm's odometry is placed by the store transform the session committed in the lifelong store, and every 5th pose with at least three submap positions of the other 19 sessions within 1.5 m (XY) gives dz, its height minus their median height. Per session: the 95th percentile of |dz|.
  • Rule: G reduces the height drift when, over the 19 sessions, the median of the per-session 95th percentile falls by at least 20% from A, no more sessions are above 1.5 m than with A, and no session rises by more than 0.5 m. Then rko_lio_nclt.yaml takes the window; otherwise it stays. The result is reported whatever it is.

Results of the moving-start gravity check (2026-11-26)

All 19 updates start while moving; with the 10 s window RKO-LIO re-estimated gravity 1.1–15.3 degrees from the initial world z (median 4.8). Per-session 95th percentile of |dz| (m):

Update A G Update A G
2012-01-22 1.10 1.38 2012-08-04 0.60 0.61
2012-02-02 0.76 0.79 2012-08-20 2.34 1.25
2012-02-05 2.79 1.63 2012-09-28 0.96 0.94
2012-02-18 0.78 1.09 2012-10-28 0.45 0.46
2012-03-17 0.91 1.11 2012-11-04 0.80 0.86
2012-03-25 1.66 1.61 2012-11-16 1.65 0.48
2012-03-31 4.24 2.72 2012-11-17 3.29 3.52
2012-05-11 3.18 2.55 2012-12-01 2.16 1.03
2012-05-26 0.64 0.68 2013-02-23 0.66 0.63
2012-06-15 3.08 0.78
Over 19 updates A G Rule
median of the 95th percentiles 1.10 m 1.03 m (−6.6%) needs −20%: fails
sessions above 1.5 m 9 5 met
largest rise — +0.31 m met (≤ 0.5 m)

Under the preregistered rule G does not reduce the height drift, and rko_lio_nclt.yaml stays as it is. What the rule did not capture: the window mostly acts on the worst sessions (2012-06-15 3.08 → 0.78 m, 2012-11-16 1.65 → 0.48 m, 2012-02-05, 08-20 and 12-01 by about 1.1 m each) while the well-behaved ones move by a few tenths either way, so the median barely changes. A rule on the tail would have to be set before another run on other sessions.

Second check of moving-start gravity, on the gate area (preregistered 2026-11-26, before the runs)

The first check's rule looked at the median and missed the tail. Sessions not used there: the gate area of the Scan Context check (base bags/gate_base, store stores/gate_store) and its four updates that anchored (2012-02-04_gatein, 2012-02-19_gatein, 2013-01-10_gatein, 2013-04-05_gatein, each with the store transform it committed in stores/any_gate_DAY_in).

  • Arms: as before, A (rko_lio_nclt.yaml) and G (moving_start_gravity_window_sec: 10.0).
  • Measure: as before (odometry_height.py), against the base session's submaps only.
  • Rule: G reduces the height drift when its 95th percentile of |dz| is lower than A's in at least three of the four updates and no update rises by more than 0.5 m. Then rko_lio_nclt.yaml takes the window. Four sessions against one reference make this a small check; the result is reported whatever it is.

Results of the second check (2026-11-26)

Update Gravity re-estimated Compared poses (A / G) A G
2012-02-04 1.4 deg 41 / 38 0.28 m 0.96 m
2012-02-19 6.0 deg 26 / 27 0.37 m 0.42 m
2013-01-10 5.4 deg 0 / 0 — —
2013-04-05 5.3 deg 0 / 0 — —

The two 2013 updates place no odometry pose within 1.5 m of three base submaps, so only two updates are measured; G is higher on both, by 0.68 m on 2012-02-04. G fails the rule, and rko_lio_nclt.yaml keeps no gravity window. Together with the first check: the window helps sessions that start far from level but can cost several tenths of a metre on sessions that start near it, so it is not a setting to turn on for every session.

Transient objects in the lifelong store (development, 2026-11-27)

Without the six sessions whose height drifted, the cells that one session alone saw hold about 82,000 points at 0.3–2.2 m above the ground (0.3% of the store's points). Grouped into connected 0.25 m columns of at least 30 points: 98 person-sized groups along the paths, 6 car-sized ones, and 116 larger ones, most of them parallel strips in one parking area (x 15–95 m, y 45–135 m) seen by 2012-12-01, 2013-02-23 and 2012-02-05. The chain ran with --detect-changes only, which removes old points a later session sees through; nothing removes a session's own briefly seen points. --refine-visibility masks those (the change mode the NCLT holdout check preferred, above).

Check of --refine-visibility on the lifelong store (preregistered 2026-11-27, before the runs)

  • Updates: 2012-12-01 and 2013-02-23 (the two sessions with the most parking-area points), each appended again with --relocalize-anywhere --refine-visibility to the lifelong store as it was before it (its first 18 and 19 sessions), against the chain's own commit of the same session (--detect-changes).
  • Cells: the lifelong store's exported points in 0.75 m cells, each with the number of sessions that have points in it; heights above the lowest exported point of the 2 m column.
  • T (transients removed): of the update's points at 0.3–2.2 m in cells only the update has points in, the share the rerun's export leaves out.
  • S (structure kept): of the update's points in cells at least three sessions have points in, the share the rerun's export keeps.
  • Rule: --refine-visibility cleans the lifelong map when, for both updates, T ≥ 50% and S ≥ 95%. Then the lifelong chain takes it. The result is reported whatever it is.

Results of the refine-visibility check (2026-11-27)

Update Points Masked new voxels T (transients removed) S (structure kept) Rule
chain's commit of 2012-12-01 (--detect-changes) 2,077,962 — 0.0% 100.0% —
2012-12-01, --refine-visibility 2,077,962 606,568 47.1% 64.6% fails
2013-02-23, --refine-visibility 2,172,025 497,305 40.2% 74.3% fails

--refine-visibility does not clean the lifelong map under the preregistered rule: it removes less than half of the single-session points at people and car height, and it drops a quarter to a third of the update's points in cells that three or more sessions confirm. The lifelong chain keeps --detect-changes.

Post hoc (not preregistered): most of what S counts as lost is redundant. Of the 0.75 m cells the update has points in, 96.2% and 96.1% still hold a kept point of some session after the rerun (98.9% and 100% with the chain's commit), and the store's exported cells fall by 0.2% and 1.2%. The filter judges a voxel only by the update's own scans, so it masks structure the store already confirms and keeps transients the update saw from several scans (a parked car seen while walking past). A filter for a long-term store would have to weigh the stored sessions' support as well. Peak memory stayed at 5.5–5.8 GB (high-water mark).

Most of the height drift is the anchor's tilt (development, 2026-11-27)

Re-read of the 2012-03-31 attitude: the base z axis stays 15.6–17.6 degrees from the odometry world z over the whole session (the moving start's world frame is tilted); the "pitch" change reported above was the Euler decomposition mixing in the heading, not an attitude jump.

One rigid correction per session, a tilt (roll, pitch, on a 0.25 degree grid within ±4 degrees, about its first submap) and a height offset, fitted to minimise the 95th percentile of |dz| of its committed submaps against the sessions before it (descriptive, in-sample):

Update 95th pct. |dz| after the fit Tilt (roll, pitch)
2012-02-02 0.44 m 0.15 m 0, 0
2012-03-17 1.11 m 0.25 m −0.25, +0.50
2012-03-25 1.18 m 0.44 m 0, +0.50
2012-03-31 3.44 m 1.13 m +0.50, +1.75
2012-05-11 1.44 m 0.91 m +0.75, +0.25
2012-05-26 1.18 m 0.63 m +0.25, −0.50
2012-09-28 0.82 m 0.36 m +0.25, +0.25
2012-11-16 1.62 m 0.57 m 0, −0.75
2012-11-17 1.18 m 0.48 m −0.50, −0.25
the other nine 0.32–0.66 m 0.23–0.55 m within 0.25

A tilt of 0.25–1.75 degrees with a height offset accounts for most of the drift: the anchor is registered over the first few keyframes, where tilt is weakly constrained, and 1.75 degrees amount to 3 m over 100 m. Correcting the store transform's roll, pitch and height from the overlap of the whole session before it is committed is the candidate fix; an in-sample fit flatters it, so its check has to score the correction on data the fit did not use.

Out-of-sample check of a tilt and height correction (preregistered 2026-11-27, before the run)

  • Correction (C): for update k of the lifelong store with at least 20 committed submaps within reach of sessions 0..k−1 (the height_check comparison), a rotation about its first submap position (roll and pitch on a 0.25 degree grid within ±4 degrees, keeping at least 80% of the compared submaps) followed by a height offset, chosen to minimise the 95th percentile of |dz − median dz| against sessions 0..k−1, the offset being that median. Sessions 0..k−1 only.
  • Score, data the fit did not use: the update's submap positions, before (A) and after (C) the correction, against the later sessions k+1..19 (height_differences, 1.5 m, three neighbours): the 95th percentile of |dz| per update, for updates with at least 20 compared submaps.
  • Rule: the correction reduces the drift when the median of these per-update values falls by at least 20% from A to C, no more updates are above 1.5 m with C than with A, and no update rises by more than 0.3 m. Then a pre-commit correction is implemented in live. Reported whatever it is. The later sessions carry their own drift, which both arms share.

Results of the out-of-sample check (2026-11-27)

Sixteen updates have at least 20 submaps within reach of later sessions (the last two have none, 2012-01-22 too little overlap to fit). Per-update 95th percentile of |dz| against the later sessions (tilt_check.jsonl):

Over 16 updates A (as committed) C (corrected) Rule
median 0.78 m 0.74 m (−4.9%) needs −20%: fails
updates above 1.5 m 3 1 met
largest rise — +0.28 m (2012-03-17) met (≤ 0.3 m)

The correction does not pass, and nothing is implemented. As with moving-start gravity, it acts on the worst sessions (2012-03-31 3.99 → 1.80 m, 2012-11-16 1.78 → 0.75 m, 2012-11-17 1.41 → 0.75 m, 2012-09-28 1.08 → 0.39 m) while the median sits on sessions whose later comparison is bounded by the later sessions' own drift (0.6–0.8 m). Two preregistered rules on the median have now failed for corrections that mostly act on the tail; a rule on the tail has to be set before a run on sessions this chain has not used.

Check of the tilt and height correction on sessions the chain has not used (preregistered 2026-11-27, before any data of these sessions is read)

  • Updates: the seven NCLT sessions outside the lifelong chain (2012-01-08, 02-04, 02-12, 02-19, 04-29, 2013-01-10, 2013-04-05). For each, its 1 Hz ground-truth positions are read only to pick its longest pass through the lifelong square (x −180…−30 m, y −585…−435 m, ±10 s, as for windows.json); the pass is converted (convert_nclt_session.py --point-step 6) and appended to its own copy of the 20-session lifelong store with --relocalize-anywhere --detect-changes --max-height-drift 0. Ground truth is not used to score.
  • Correction (C): as in the out-of-sample check above, fitted against the store's even sessions (0, 2, …, 18) only.
  • Score: the update's committed submap positions, as committed (A) and corrected (C), against the odd sessions (1, 3, …, 19): the 95th percentile of |dz| (1.5 m, three neighbours), for updates with at least 20 compared submaps.
  • Rule (on the tail): C reduces the drift when fewer scored updates are above 1.0 m with C than with A and no scored update rises by more than 0.3 m. With fewer than four scored updates the check is inconclusive. If C passes, a pre-commit correction is implemented in live. Reported whatever it is.

Results of the check on sessions the chain has not used (2026-11-27)

Six of the seven sessions pass through the square (2013-01-10 does not); all six were appended (live exit 0). 2012-04-29 passes for 23 s and has 14 submaps within reach of the even sessions, too few to fit, so five updates are scored (lifelong/fresh_tilt_score.jsonl). The 95th percentile of |dz| against the odd sessions:

Update Compared A (as committed) C (corrected) Tilt (roll, pitch), offset
2012-01-08 246 2.51 m 2.12 m +0.25, 0; +0.24 m
2012-02-04 283 0.59 m 0.70 m 0, 0; +0.11 m
2012-02-12 225 2.36 m 0.84 m +0.25, +0.50; +0.92 m
2012-02-19 238 1.43 m 0.79 m −0.50, −0.25; −0.37 m
2013-04-05 199 0.52 m 0.56 m +0.25, 0; +0.19 m
Rule A C
scored updates above 1.0 m 3 1 fewer: met
largest rise — +0.11 m (2012-02-04) ≤ 0.3 m: met
scored updates 5 ≥ 4: conclusive

The correction reduces the drift on sessions the chain has not used, and by the preregistered rule a pre-commit correction is implemented in live. 2012-01-08 stays above 1.0 m: its drift is not a rigid tilt of the whole session. The two sessions that were already flat rise by 0.04 and 0.11 m, the cost of fitting against half the store.

Tilt correction before the commit (live, on by default)

live now fits the correction before an anchored session is committed (lidarslam.height_check.correct): the same grid fit as in the check, against every stored session, applied to store_from_session (the anchor transform is kept as store_from_session_uncorrected, the fit as store_tilt_correction). The height check then runs on the corrected transform. Sessions with fewer than 20 overlapping submaps, and store tracking (whose submap poses are stored as tracked), keep the anchor transform; --no-tilt-correction turns it off. The fit takes 14–16 s on a 20-session NCLT store. On the fresh stores it brings 2012-02-12 from 2.48 to 0.58 m and 2012-02-04 from 0.41 to 0.30 m (in-sample, against all twenty sessions). The change evidence is still traced with the anchor transform and is not traced again after the correction, which moves a session by up to about a metre at its far end (2012-02-12).

Re-running the two refused sessions with the tilt correction (preregistered 2026-11-27, before the run)

  • Updates: 2012-03-31 (bags/2012-03-31_live2in) and 2012-11-16 (bags/2012-11-16), the two sessions the height check refuses, each appended with live --relocalize-anywhere --detect-changes (tilt correction and the 1.5 m height check on, the defaults) to a copy of the lifelong store holding only the sessions before it (0–6 and 0–15).
  • Rule: the correction admits a session when it is committed (not refused) with a 95th percentile of |dz| against the sessions before it of at most 1.5 m after the correction. Its 95th percentile against the later lifelong sessions (k+1..19), anchor transform (A) and corrected (C), is reported alongside; C should not be above A there. Reported whatever it is.

Results of the re-run of the refused sessions (2026-11-27)

Both runs exit 0, and both anchor where the chain anchored them: before the correction their 95th percentiles (3.44 and 1.62 m) are the chain's. lifelong/refused_rerun_score.jsonl:

Update Before the correction After (height check) Tilt (roll, pitch), offset Later sessions, A → C Committed
2012-03-31 3.44 m 1.13 m +0.50, +1.75; −0.28 m 3.99 → 1.80 m yes
2012-11-16 1.62 m 0.57 m 0, −0.75; −0.87 m 1.78 → 0.75 m yes

The correction admits both sessions, and against the later sessions, which the fit did not use, C is below A for both. 2012-03-31 remains the worst session in the store (1.80 m against the later sessions): its climb is not all tilt.

Rebuilding the lifelong chain with the tilt correction (preregistered 2026-11-27, before the run)

  • Chains: A is the lifelong store as built (no correction). C is built again from the same base session (stores/d_store) with the same 19 updates, bags, order and options (lifelong_chain.sh), with the live defaults now in place: tilt correction and the 1.5 m height check. No ground truth is read.
  • Score (map consistency, not an out-of-sample test): for every session of a store, the 95th percentile of |dz| of its submap positions against those of all the other sessions of the same store (1.5 m, three neighbours), for sessions with at least 20 compared submaps.
  • Rule: C makes the store more consistent when, over the sessions committed in both stores, fewer are above 1.0 m in C than in A, the median does not rise, and no session rises by more than 0.3 m. A session C refuses is reported and does not count for C. Reported whatever it is.

Results of the rebuilt chain (2026-11-27)

PASS: C is more consistent. All 19 updates ran (exit 0) and were committed; the height check refused none. Total wall time was 5618 s, against 5622 s for A, so the 14-16 s fit per session does not show in the total. Eighteen updates were corrected. 2012-01-22 overlapped the base in only 4 submaps, so it was committed as registered. The fits stayed within ±1° roll and ±1.75° pitch, with offsets of -1.14 to +0.95 m.

A (as built) C (corrected)
sessions committed 20 20
sessions above 1.0 m 4 1
median p95 |dz| 0.657 m 0.219 m
largest rise per session -0.124 m (every session fell)

Per session (p95 |dz| against all the other sessions of the same store, A → C):

  • 2012-03-31 5.23 → 2.53
  • 2012-11-16 1.65 → 0.50
  • 2012-05-11 1.59 → 0.95
  • 2012-11-17 1.15 → 0.23
  • every other session was below 1.0 m in both stores and fell by 0.12-0.72 m

2012-03-31 is the one session still above 1.0 m. Its fit took it from 5.17 to 0.89 m against the store at the time of its commit. Against the whole store it is still 2.53 m, because a rigid correction cannot remove the climb inside the session (the 5 m in its last 100 s).

Files (bench_report/data/long_term_2026-11/lifelong/):

  • tilt_chain.jsonl: per update, its exit code, wall time, the fit and the height check.
  • consistency_A.jsonl and consistency_C.jsonl: the scores, from consistency_score.py.

Day names follow the chain, so the 2012-05-26 update appears as 2012-05-27 (UTC) in the scores.

Height profile along the session (live, on by default after the rebuild below)

A rigid correction leaves drift that grows inside a session. In the rebuilt chain, 2012-03-31 stayed at 2.53 m against the whole store. lidarslam.height_check.profile runs after the tilt correction and lowers each submap by a height offset that is piecewise linear in submap order:

  • Knots are placed every 30 submaps, kept within the compared stretch. A knot needs at least 10 compared submaps within 30 submaps of it.
  • The knot values are fitted to the compared height differences by least squares, with Huber weights beyond 0.3 m.
  • Beyond the outer knots the offset is held constant.

The lowered poses are written to the session's store_submap_poses.npy, which export, relocalization and later height checks already read in place of the rigid transform. The session's store_from_session is unchanged, and the fit is recorded as store_height_profile. Only the position changes: a submap's rotation, and so the local slope of its scans, is not corrected. The height check then runs on the lowered poses.

Applied, without writing, to the stored sessions of the rebuilt store against the sessions before them, the fit ran as follows. This was a smoke test of the code, and the parameters above were fixed before it ran:

session before after largest offset
2012-03-31 0.89 m 0.28 m 2.70 m
2012-05-11 0.97 m 0.18 m 1.22 m
2012-11-16 0.49 m 0.13 m 0.56 m

Rebuilding the lifelong chain with the height profile (preregistered 2026-11-27, before the run)

  • Chains: C is the store rebuilt with the tilt correction (above). D is built again from the same base session with the same 19 updates, bags, order and options, adding --height-profile (profile_chain.sh). No ground truth is read.
  • Score: as for C: per session, the p95 |dz| of its submap positions against all the other sessions of the same store (consistency_score.py). This score is partly circular: the profile fits each update to the sessions before it, and the score compares it with those sessions as well as with the later ones.
  • Rule: D makes the store more consistent than C when, over the sessions committed in both stores, all of the following hold:
  • fewer sessions are above 1.0 m in D than in C;
  • the median does not rise;
  • no session rises by more than 0.1 m. A session D refuses is reported and does not count for D. The result is reported whatever it is, together with the wall time and whether the store exports.
  • Default: --height-profile becomes the live default only if D passes.

Results of the chain rebuilt with the height profile (2026-11-27)

PASS: D is more consistent than C. All 19 updates ran (exit 0) and were committed; the height check refused none.

  • Profiles: 18 updates were profiled with 8-15 knots. 2012-01-22 overlapped the base in only 4 submaps, so it got neither the tilt correction nor the profile.
  • Largest offsets:
  • 2012-03-31: 2.05 m. Against the store at its commit, it went from 1.23 to 0.37 m.
  • 2012-05-11: 1.22 m.
  • Every other session: at most 0.58 m.
  • Wall time: 4641 s, against 5618 s for C. No component of the profile is that fast; the difference is in the replay itself, and the machine's load varied between the runs.
  • Export: the store exported (lidarslam store export, 154 s, 316 MB).
C (tilt) D (tilt + profile)
sessions committed 20 20
sessions above 1.0 m 1 0
median p95 |dz| 0.219 m 0.111 m
largest rise per session +0.020 m (2012-08-04)

Largest changes per session (C → D):

  • 2012-03-31: 2.53 → 0.39 m
  • 2012-05-11: 0.95 → 0.16 m
  • 2012-11-16: 0.50 → 0.12 m
  • 2013-02-23: 0.40 → 0.07 m

Two sessions rose:

  • the base session 2012-01-15: 0.178 → 0.185 m
  • 2012-08-04: 0.141 → 0.161 m

As preregistered, --height-profile is now the live default. --no-height-profile turns it off. Tests whose subject is the rigid placement (startup registration, the tilt-correction switch, map-edit export) now turn it off explicitly.

The score is partly circular (see the preregistration), so the improvement over C is an upper bound on what the profile does for the map. It is not an accuracy result: no ground truth was read.

Files (bench_report/data/long_term_2026-11/lifelong/):

  • profile_chain.jsonl: per update, its exit code, wall time, the tilt fit, the profile and the height check.
  • consistency_D.jsonl: the scores.

Check of the height profile on sessions the chain has not used (preregistered 2026-11-27, before the run)

  • Updates: the sessions and windows of the earlier check (nclt/fresh_windows.json). The windows were chosen with ground truth (only for choosing them). Each pass is converted again and appended to its own copy of the store rebuilt with the profile (D), at its anchor transform: --no-tilt-correction --no-height-profile --max-height-drift 0 (lifelong/fresh_profile_run.sh). Ground truth is not used to score.
  • Variants (lifelong/fresh_profile_score.py): both fitted with the live code against the store's even sessions (0, 2, …, 18) only:
  • T: the tilt correction alone;
  • P: the tilt correction, then the profile;
  • A, the update as committed, is reported as well.
  • Score: against the odd sessions (1, 3, …, 19), the 95th percentile of |dz| (1.5 m, three neighbours), for updates with at least 20 compared submaps in every variant. The fit never sees the sessions it is scored against.
  • Rule: P adds to the tilt correction when, over the scored updates, all of the following hold:
  • no more of them are above 1.0 m with P than with T;
  • the median falls;
  • no update rises by more than 0.1 m. With fewer than four scored updates the check is inconclusive. If P fails, the profile is turned back off by default. Reported whatever it is.

Results of the height-profile check on sessions the chain has not used (2026-11-27)

PASS: P adds to the tilt correction. All six passes were appended (live exit 0). As in the earlier check, 2012-04-29 has too little overlap with the even sessions to fit, so five updates are scored (lifelong/fresh_profile_score.jsonl). The 95th percentile of |dz| against the odd sessions:

Update Compared A (as committed) T (tilt) P (tilt + profile) Profile knots, largest offset
2012-01-08 233 1.15 m 0.15 m 0.11 m 11; 0.25 m
2012-02-04 285 0.47 m 0.10 m 0.09 m 12; 0.12 m
2012-02-12 223 2.28 m 0.36 m 0.12 m 9; 0.49 m
2012-02-19 237 0.85 m 0.51 m 0.13 m 9; 0.96 m
2013-04-05 206 0.53 m 0.21 m 0.10 m 9; 0.35 m
Rule T P
scored updates above 1.0 m 0 0 no more: met
median 0.214 m 0.111 m falls: met
largest rise −0.009 m (every update fell) ≤ 0.1 m: met
scored updates 5 ≥ 4: conclusive

The profile stays the live default. The figures are not comparable with the earlier check: the store is now D, whose odd sessions were themselves corrected, so A and T are lower here (2012-01-08 against the odd sessions of the uncorrected store was 2.51 m as committed). The largest gain is on 2012-02-19 (0.51 → 0.13 m), whose drift grows along the pass. No ground truth was read to score.

The change evidence of a corrected session (development, 2026-11-28)

--detect-changes traced each keyframe scan into the stored sessions while the session ran, where its anchor transform placed it. The height corrections then move the session before it is committed, so its removals were decided from rays that the map no longer contains. In the store rebuilt with the profile (D), the corrections move 17 of the 19 updates by more than the 0.3 m ray margin of the evidence (0.15 m voxels) somewhere along the session. 2012-03-31 is moved by up to 6.9 m, and 2012-05-11, 2012-06-15 and 2012-11-04 by 1.5-3.1 m. Placed too low, a session sees through the stored ground and walls, which the evidence can take for a removal.

With the tilt correction or the height profile on, live now keeps the anchored scans and traces them only before the commit (MapChanges.trace). The scans taken while submap k is the newest are moved by the correction of submap k (its committed pose times the inverse of its anchored pose), so the evidence is traced where the session is committed. Without a correction to apply, the evidence is that of the trace during the run, byte for byte (test). The scans are held until the commit, about 50 MB for an NCLT session.

Tracing the change evidence where the session is committed (preregistered 2026-11-28, before the run)

  • Chains: D is the store rebuilt with the profile (stores/lifelong_profile), with the evidence traced at the anchor. E is built again from the same base session with the same 19 updates, bags, order and options (lifelong/trace_chain.sh), with the evidence traced after the corrections. No ground truth is read.
  • Audit (lifelong/trace_audit_run.sh, lifelong/trace_audit_score.py): the sessions outside the chain (nclt/fresh_windows.json, the passes of the earlier checks) never decide a removal of D or E. Each is appended with the live defaults (--relocalize-anywhere --detect-changes --max-height-drift 0) to its own copy of D and of E. Its evidence then decides each stored voxel it saw: kept (hit at least twice, and at least as often as seen through), removed, or undecided. A voxel the store has removed (the removal masks of its 20 sessions) that the audit session keeps is contradicted.
  • Score: per audit session and store, the contradicted share: contradicted removed voxels over removed voxels the audit session decided. An audit session is scored when it is committed to both copies and has decided at least 1000 removed voxels in each.
  • Rule: tracing after the corrections removes fewer standing voxels when all of the following hold:
  • the pooled contradicted share is lower for E than for D;
  • the share is lower for E in more than half of the scored audit sessions;
  • all 19 updates of E are committed;
  • the median height consistency of E (consistency_score.py) is at most 0.01 m above D's;
  • E exports. With fewer than three scored audit sessions the check is inconclusive. If the rule fails, the change is not merged. The number of removals of each store, and the kept voxels the audit session removes, are reported alongside. The result is reported whatever it is.

Results of tracing the change evidence where the session is committed (2026-11-28)

E was built with all 19 updates committed (lifelong/trace_chain.jsonl; the record of 2012-03-17 was rebuilt from the store after the container restarted during its export, and the export of the whole store succeeded). The first update has no correction, and E removed the same 21,527 voxels as D there. The height consistency of E is that of D (median 0.1105 m for both, lifelong/consistency_E.jsonl), as the evidence does not move any pose. After the removal masks of the 20 sessions, D has removed 11.06 M voxels and E 9.26 M.

All six audit sessions were committed to both copies and scored (lifelong/trace_audit_score.jsonl):

Audit session D decided / contradicted D share E decided / contradicted E share
2012-01-08 1,847,034 / 470,192 0.255 1,661,378 / 295,711 0.178
2012-02-04 1,727,310 / 414,684 0.240 1,659,211 / 375,173 0.226
2012-02-12 1,936,119 / 393,059 0.203 1,820,659 / 288,380 0.158
2012-02-19 1,221,654 / 323,818 0.265 1,113,289 / 241,303 0.217
2012-04-29 29,032 / 24,860 0.856 29,776 / 25,207 0.847
2013-04-05 2,253,132 / 374,612 0.166 2,187,335 / 187,539 0.086
pooled 9,014,281 / 2,001,225 0.222 8,471,648 / 1,413,313 0.167
Rule
pooled share lower for E 0.222 → 0.167 met
lower for E in more than half of the scored sessions 6 of 6 met
all 19 updates of E committed 19 met
median consistency at most 0.01 m above D's 0.1105 m for both met
E exports yes met
scored audit sessions 6 ≥ 3: conclusive

PASS: tracing after the corrections removes fewer standing voxels. E has 29% fewer removed voxels that a later session sees standing (1.41 M against 2.00 M), while the audit sessions decided 8.47 M of its removed voxels against 9.01 M for D. The kept voxels that the audit sessions would remove are reported alongside: from 2,951 to 778,928 per session for both stores, slightly more for E in four sessions (by 2-8%) and fewer in the other two (2012-04-29 by 13%, 2013-04-05 by 17%). 2012-04-29 overlaps the store little, and most of what it decides is contradicted in both. The deferred trace stays on whenever a correction is on. No ground truth was read.

Where the removals of store E are contradicted (development, 2026-11-28)

Four of the audit sessions (2012-01-08, 2012-02-04, 2012-02-12 and 2012-02-19) were appended again to copies of E, keeping their evidence (lifelong/removal_breakdown_run.sh). 2012-04-29 and 2013-04-05 were not used, so they stay out of this development. The removed voxels the four sessions decided are split by lifelong/removal_breakdown.py (lifelong/removal_breakdown.json). The totals are those of the audit (6.25 M decided, 1.20 M contradicted, share 0.192):

Last removing decision: misses / max(1, hits) Decided Contradicted share
8-9 2,878,713 0.237
10-11 1,855,118 0.184
12-15 1,309,835 0.125
16-31 210,845 0.058
Height above the store's submap positions within 10 m Decided Contradicted share
-0.8 to 0.5 m 1,932,199 0.114
0.5 to 3 m 3,425,173 0.229
above 3 m 739,567 0.216
Days between mapping and removal Decided Contradicted share
under 30 397,731 0.162
30-120 1,620,907 0.173
120-365 3,523,924 0.179
over 365 711,975 0.315

The contradictions are the removals decided closest to the rule (misses at least 8 times the hits, which are zero for 93% of them): the share falls steadily as the misses grow. Removals of voxels above the sensor height are contradicted twice as often as those near it, and removals of voxels mapped more than a year earlier more often still. The range from the store's submap positions makes less difference (removal_breakdown.json). No ground truth was read.

The map quality of the corrected lifelong store (preregistered 2026-11-28, before the run)

The height corrections (tilt and profile) and the change evidence traced where the session is committed were each judged by their own checks. This compares the maps a user gets.

  • Maps: the Autoware map exported from stores/lifelong (A: the 20-session chain as first committed, without the height corrections, evidence traced at the anchor) and from stores/lifelong_trace (E: the same base session, 19 updates, bags and order, with the corrections on and the evidence traced after them). Both exports exist; neither is scored before this is committed. The differences combine the corrections and the removals; the store in between (D) is no longer kept, so they are not separated.
  • Metrics (lifelong/map_quality_run.sh): map_quality_report with its frozen metric profile and a 0.1 m downsample, as scripts/run_map_quality_check.sh: the mean map entropy (MME, nats; lower is sharper), the mean RMS thickness of the planar patches (m) and the planar coverage. Each map is scored three times.
  • Rule: E is the better map when all of the following hold:
  • the three reports of each map are byte-identical;
  • E's MME is lower than A's;
  • E's mean plane thickness is lower than A's;
  • E's planar coverage is at most 0.02 below A's. If the MME and the thickness disagree, the result is mixed. The p95 thickness, the patch count and the point counts are reported alongside. No ground truth is read. The result is reported whatever it is.

Results of the map-quality comparison (2026-11-28)

The three reports of each map are byte-identical (lifelong/map_quality.jsonl):

A (as first committed) E (corrected, evidence after)
points (after the 0.1 m downsample) 14,907,965 14,245,842
MME −0.7356 nats −0.7448 nats
mean plane thickness 0.0646 m 0.0776 m
p95 plane thickness 0.1111 m 0.1195 m
planar patches 136,386 95,474
planar coverage 0.263 0.318
occupied root voxels 226,438 201,978
Rule
byte-identical reports both met
MME lower for E −0.7356 → −0.7448 met
mean plane thickness lower for E 0.0646 → 0.0776 m not met
planar coverage at most 0.02 below A's 0.263 → 0.318 met

Mixed: the MME and the plane thickness disagree, so E is not shown to be the better map by these metrics. E is slightly sharper by the entropy, fills 11% fewer root voxels with 4% fewer points, and more of it is planar (0.318 against 0.263), but in fewer, thicker patches. The frozen extractor accepts a patch up to 0.15 m thick, so the thickness is the mean over different sets of patches: where A's sessions sit at different heights, the extractor can split a surface into thin patches per layer, or leave it unaccepted, while E's merged surface becomes one wider patch. These metrics cannot separate that from a thicker surface; the height consistency (0.1105 m in E) and the audits remain the evidence for the corrections. No ground truth was read.

Why 2012-04-29 contradicts the removals (development, 2026-11-28)

In both audits, 2012-04-29 kept about 85% of the removed voxels it decided, against 9-23% for the other sessions. It was appended once more to a copy of E and kept (lifelong/probe_session_run.sh, lifelong/probe_session.py, lifelong/probe_2012-04-29.json). It anchored 3.3 s into its 15.6 s window and committed 14 submaps.

  • It is not misplaced. Its 14 submaps are compared with the store's: the median height difference is −0.014 m and none is beyond ±0.06 m. With fewer than 20 compared submaps neither height correction is fitted, but none is needed here.
  • The removals it contradicts are recent. 23,133 of its 25,207 contradicted voxels were removed last by the two latest sessions of the chain, 2012-12-01 (8,644) and 2013-02-23 (14,489), seven and ten months after it. The contradiction holds at every height (0.89 near the sensor height, 0.82 at 0.5-3 m, 0.93 above 3 m) and every range.
  • Its keeps are weak. 15,043 of the contradicted voxels (60%) are kept with exactly two hits, the least the rule allows; a 16 s pass sees each surface only a few times.

So 2012-04-29 describes the place as it was before the winter sessions that removed these voxels, from a brief pass. Some of what it keeps may well have gone by 2013 (the leaves of spring, for one), and without ground truth or images this cannot be separated from wrong removals. The same holds, less strongly, for every audit session older than the removing session: the audits' paired comparison of D and E is unaffected, but a contradicted share also counts real changes after the audit session. 2013-04-05, the only audit session after every session of the chain, has the lowest share (0.086 in E).

Rule for later audits of removals (2026-11-28)

The probe of 2012-04-29 showed that a session older than the session that removed a voxel can contradict a removal that was right: the place changed in between. From here on, a check that scores removals against sessions outside the store follows these rules, fixed before its data:

  • Primary score: only the removals decided by store sessions older than the audit session are scored. A removal by a later session is not evidence against the audit session's view, nor the other way round.
  • Reported alongside: the share over all removals, as before, and the share split by whether the removing session is older or newer than the audit session.
  • Audit sessions: sessions recorded after the store's latest session are preferred; an audit session older than every removing session scores nothing and is reported as such.

Earlier results are not rescored: the comparison of D and E is paired (the same audit sessions, removals by the same sessions in both), and its rule was fixed before its data.

The long-term store at a second site (preregistered 2026-11-28, before the run)

Every check of the long-term store so far is on NCLT (one campus, one Segway, one Velodyne). This one asks whether the pipeline, with its defaults as they are now, also holds on another site, rig and kind of motion: Oxford Spires (handheld Hesai QT64 and Alphasense IMU, CC BY-NC-SA 4.0). Nothing is tuned on it; no ground truth is read.

  • Data (converted without ROS 2 by scripts/convert_oxford_spires_sequence.py, every second point; the odometry settings are those of the earlier Oxford Spires runs, oxford/rko_lio_oxford.yaml):
  • Bodleian Library: 2024-03-15-bodleian-library-01 starts the store, and 2024-05-20-bodleian-library-02, recorded 66 days later, is added. Neither has been used by this project.
  • Christ Church: 2024-03-18-christ-church-01 starts the store, then 02, 03 and 04 (the same day) and 2024-03-20-christ-church-05 and 06 (two days later) are added in this order. 01-04 and 06 were used before, in the offline multi-session join (not by the live store).
  • Runs (oxford/oxford_chain.sh): live with its defaults (tilt correction, height profile, height check at 1.5 m), each update with --relocalize-anywhere --detect-changes, offline (not --realtime). Then lifelong/consistency_score.py and store export per store. A smoke run of the converter and live on 2024-03-13-observatory-quarter-02, which is in neither store, came first.
  • Rule: the long-term store holds at the second site when all of the following hold:
  • (a) every update anchors and is committed;
  • (b) both stores export;
  • (c) in each store, every session with at least 20 compared submaps has a height consistency (95th percentile of |dz| against the other sessions) of at most 0.30 m. Anything else fails, and each failure is reported with its cause as far as the logs show it. Reported alongside: anchor times, the corrections applied, removed voxels, wall time and peak memory. The result is reported whatever it is.

Result (2026-11-28): fails. The run stopped at the two-hour limit of the session's background jobs with Christ Church 04, 05 and 06 not run, and was not resumed: Christ Church 03 had already failed (a). The Christ Church store, as committed (01 and 02), was then scored and exported by hand with the same two commands. Results: oxford/bodleian/, oxford/christ_church/ (chain.jsonl, consistency.jsonl, the tail of the export log).

Update Anchor (s after start) Compared submaps Corrections Height check (p95 |dz|) Outcome Removed voxels Wall / data Peak memory
Bodleian 02 472 (of 499) 15 none (below 20) 0.60 m, not checked committed 460,360 673 s / 499 s 1.9 GiB
Christ Church 02 113 11 none (below 20) 0.11 m, not checked committed 429,141 1519 s / 592 s 1.8 GiB
Christ Church 03 3 44 tilt (roll -4.0°, -0.28 m), profile (3 knots, up to 0.95 m) 3.48 m refused - 223 s / 312 s 1.0 GiB
  • (a) fails: Christ Church 03 anchored 3 s after its start but was refused by the height check. Its median height difference is -0.04 m and its 95th percentile 3.8 m before the corrections, 3.3 m after the tilt and 3.5 m after the profile, so most of its submaps agree with the store and a part of them is metres off, which a tilt and a smooth offset cannot fit. The logs do not show which part or why (a wrong anchor of that part, odometry drift, or a different floor of the building were not examined).
  • (b) holds: both stores export (Christ Church with its two committed sessions).
  • (c) holds vacuously: no session in either store has 20 compared submaps (Bodleian 0 and 15, Christ Church 11 and 11), so none is scored and none of the height fits ran on a committed session. Bodleian 02 went in at its anchor transform with a median height difference of 0.43 m (p95 0.60 m), well above the 0.11 m of NCLT.

So the long-term store does not hold at the second site as it is: the refusal kept a session that disagreed in height out of the map, as it is meant to, but an update was lost, and both committed updates overlap their store too briefly for the height corrections, so Bodleian 02 is 0.4 m off. Bodleian 02 also anchored only 27 s before its end. Nothing was tuned after the run.

Why Christ Church 03 was refused (2026-11-29, after the result). It was on two levels the height check cannot tell apart, not off in height. The check compares each submap with the median height of the stored submap positions within 1.5 m (XY). Where Christ Church 02 had passed both under a place and over it, about 3.9 m higher, that median falls on the level the session was not on. oxford/height_levels.py (oxford/christ_church/height_levels_03.json, the session's poses as corrected before the refusal; the animation is oxford/render_height_levels_3d.py, Oxford Spires data, CC BY-NC-SA 4.0):

Christ Church 03 on the upper level

  • 4 of the 44 compared submaps differ by more than 1.5 m from the median (3.95, 3.99, 3.76 and 1.85 m). Each is about 3.5 m up, where the stored heights within 1.5 m are two groups, -0.45 to -0.31 m and 3.33 to 3.68 m, and each is within 0.09 m of the upper group.
  • Measured to the nearest stored height instead of the median, no submap differs by more than 1.5 m and the 95th percentile is 0.40 m, not 3.48 m. The session would have passed the check.
  • 11 of the 584 neighbourhoods of the stored submaps themselves span more than 2 m in height.

The tilt and height-profile fits use the same median, so they were also fitted partly to the wrong level; the -4.0° roll is at the edge of the tilt search (±4°). The anchor itself places most of the session on the store (median difference 0.00 m before the fits). No NCLT session was refused, and whether its overlaps have stacked places was not checked. A comparison that keeps levels apart (the nearest stored height, or a 3D neighbourhood) is the candidate fix; it is not made here, and it would be checked on data this diagnosis has not used.

Does the kept map localize later drives better than the first map? (preregistered 2026-11-29, before the run)

The long-term store has been checked for whether sessions anchor, agree in height and remove what has gone. Its purpose is that a later drive can localize in the map. This asks, on NCLT, whether a later drive localizes better in the map the store had kept up to then than in the first map. No ground truth is read.

  • Maps (store E, stores/lifelong_trace, 20 sessions): for each session k = 2..19, A is session 0000 (2012-01-15) alone, and B is sessions 0000..k-1 as the store exported them before session k was added: their points less the removals their own change evidence decided. Session k is in neither. Both are downsampled to 0.2 m voxels.
  • Scans: session k's submaps within 5 m (XY) of a submap position of 0000, so that A covers them, at their store poses, downsampled to 0.5 m voxels.
  • Registration (lifelong/localization/, PCL NDT built from ndt_eval.cpp): resolution 2.0 m, step 0.1, 30 iterations as Autoware's defaults, transformation epsilon 0.001 (at Autoware's 0.01 PCL's NDT stops after one iteration; chosen on k = 1, where B is A, which is not scored). Each scan starts from its store pose perturbed by a fixed draw (x and y uniform in ±1 m, yaw in ±5°, seed k), the same for A and B.
  • Per scan: the inlier fraction, the share of scan points within 0.3 m of a map point at the NDT result. Per session: the median over its scans. Sessions with fewer than 20 scans are left out.
  • Rule: the kept map localizes later drives better when both of the following hold:
  • (a) B's median inlier fraction is higher than A's in at least 75% of the scored sessions;
  • (b) the median over the scored sessions of B's minus A's median is at least 0.05. Anything else does not hold, and the result is reported whatever it is.
  • Reported alongside: the share of scans with an inlier fraction below 0.5 for A and B; the NDT transformation probability; B minus A against the days since 2012-01-15; the distance of the NDT result from the store pose. That distance is not ruled on: the store poses were fitted to the stored sessions, with height corrections.
  • What it cannot tell apart: B holds more sessions than A, so it covers more and is denser as well as newer. A gain says the kept map serves later drives better, not why.

Height comparison that keeps stacked levels apart (preregistered 2026-11-29, before the run)

Christ Church 03 was refused because the height check compared it with the median of two levels. lidarslam.height_check.HeightReference now splits the stored heights near a position where they are more than 2.0 m apart (LEVEL_GAP_M), keeps the levels with at least three positions, and compares with the median of the level nearest the position. Where there is one level, nothing changes. The tilt fit, the height profile and the height check all use it. A session that drifts by about a floor height onto another level would now be taken as on it.

The installed release does not have the change, so the runs use the installed package with the repository's height_check.py (oxford/with_module.py).

  • No harm on NCLT: lifelong/consistency_score.py on store E (20 sessions, poses unchanged), with the median as before and with the levels.
  • Christ Church (oxford/levels_chain.sh): a copy of the Christ Church store (01 and 02, without the refused 03) gets 03, 04, 05 and 06 in order, with the live defaults and --relocalize-anywhere --detect-changes, as in the second-site check. 04, 05 and 06 have never been run into this store. 03 is the session the change was made for, so it is reported and not scored.
  • Rule: the change holds when all of the following hold:
  • (a) on NCLT, every session with at least 20 compared submaps changes its height consistency (95th percentile of |dz| against the other sessions) by at most 0.02 m;
  • (b) Christ Church 04, 05 and 06 each anchor and are committed;
  • (c) in the new Christ Church store, every session with at least 20 compared submaps has a height consistency of at most 0.30 m;
  • (d) the new Christ Church store exports. Anything else does not hold, and the result is reported whatever it is, with 03, the corrections, wall time and peak memory.

Result of the localization check (2026-11-29): holds. In all 18 scored sessions (2012-02-02 to 2013-02-23) the kept map B gives a higher median inlier fraction than the first map A (rule: at least 75%), and the median difference is +0.105 (rule: at least 0.05). lifelong/localization/localization.jsonl has every scan.

Session Scans Inlier fraction A → B Scans below 0.5, A → B NDT probability A → B
2012-02-02 335 0.902 → 0.952 2.4% → 0.9% 5.86 → 6.63
2012-03-31 137 0.851 → 0.979 22.6% → 5.8% 5.56 → 6.95
2012-06-15 175 0.832 → 0.981 3.4% → 0.0% 5.62 → 7.63
2012-08-04 192 0.765 → 0.983 4.7% → 0.0% 5.58 → 7.61
2012-09-28 222 0.758 → 0.984 5.4% → 0.0% 5.46 → 7.61
2012-12-01 170 0.905 → 0.995 1.2% → 0.0% 5.96 → 7.92
2013-02-23 104 0.897 → 0.983 2.9% → 0.0% 5.65 → 7.65

(Seven of the 18 rows; the others lie between them.)

  • The first map ages with the seasons. A's median falls from 0.90 in winter 2012 to 0.76 in August and September and comes back to about 0.90 by December and February: the first map was made in January. B stays between 0.95 and 0.996 all year.
  • Scans below 0.5 with A, a rough share of failed localizations: 1.2-6.1% in most sessions, 22.6% in 2012-03-31. With B: 0.9% for 2012-02-02, 5.8% for 2012-03-31, and none in the other 16.
  • The distance of the NDT result from the store pose is not lower with B in every session (median 0.12-0.68 m with B, 0.19-0.86 m with A). It was not ruled on.
  • As preregistered, B has more sessions than A, so it covers more and is denser. A denser map has more points within 0.3 m of a scan. The seasonal fall and recovery of A's fraction point to the map getting old, not only to density, but the check does not separate the two.

The freshness of the kept map (lifelong/freshness/, from the same store; the share of the map's 0.5 m cells last observed more than N days before the date). On 2013-02-23, after the last session, 54% of the map's 37,000 m² had been observed in the last 30 days and 7.1% not in the last 180 days. The first map alone would have been 405 days old everywhere.

Freshness of the kept NCLT map

Result of the level-aware comparison (2026-11-29): holds. lifelong/consistency_median.jsonl, lifelong/consistency_levels.jsonl, oxford/christ_church_levels/.

  • (a) On NCLT store E, no session's height consistency changed (0.000 m in all 20): its overlaps have no stacked levels 2 m apart.
  • (b) Christ Church 04, 05 and 06 anchored and were committed, and so was 03.
  • (c) Every session of the new Christ Church store has at least 20 compared submaps and a height consistency of 0.108-0.159 m (scored with the levels).
  • (d) The store exports.
Update Anchor (s after start) Tilt (roll, pitch, offset) Profile (max offset) Height check (compared, p95) Removed voxels Wall / data Peak memory
03 (not scored) 3 0.5°, 0.5°, -0.01 m 0.05 m 42, 0.15 m 87,588 335 s / 312 s 1.7 GiB
04 47 -0.5°, -0.25°, -0.32 m 0.06 m 102, 0.15 m 559,942 1761 s / 599 s 2.8 GiB
05 (two days later) 16 0.5°, 0.25°, -0.09 m 0.98 m 272, 0.13 m 363,861 2027 s / 800 s 3.4 GiB
06 (two days later) 59 -0.5°, -0.5°, -0.07 m 0.32 m 402, 0.14 m 1,447,240 2397 s / 1044 s 4.1 GiB

03, refused before at 3.48 m, now goes in with a 0.5° tilt where the median had pulled it to -4.0° (the edge of the search), and its p95 is 0.15 m. The first run stopped at the two-hour limit of the session's background jobs during 06's conversion; 06 was run again from the start, with 03-05 kept. The level-aware comparison is in the repository, not yet in a release.

Several robots updating one store at the same time (preregistered 2026-11-29, before the run)

Until now sessions were added to a store one after another. Two at once lost one: Store.commit wrote the list it had read when it opened the store, plus its own session, over store.json. Every change of store.json (commit, rollback, edits) now holds a lock (store.lock) and reads the list again first. A session committed while another ran is recorded in the later one's entry (concurrent_with). An export is installed only if the list has not changed while it was built, and new session directories are claimed atomically. Each robot still localizes in, fits its heights to and traces its changes through the sessions committed when it started; it does not see the robots running beside it.

  • Run (lifelong/multi_robot/multi_robot_run.sh): store E cut after its first 15 sessions (2012-01-15 to 2012-10-28), twice. Into one copy, the three robots 2012-11-04, 2012-11-16 and 2012-11-17 run at the same time; into the other, the same three run one after another. Same bags and options as the chain, --relocalize-anywhere --detect-changes, with the installed package and the repository's store.py and height_check.py. Then lifelong/consistency_score.py and store export on both. If the 15 GB machine runs out of memory with three at once, the check is repeated with the first two robots and reported so.
  • Rule: robots can share a store when all of the following hold:
  • (a) in the concurrent store, all three robots anchor and are committed (18 sessions listed);
  • (b) the concurrent store exports;
  • (c) in the concurrent store, each robot's height consistency (95th percentile of |dz| against all other sessions) is at most 0.30 m;
  • (d) each robot's height consistency in the concurrent store is within 0.10 m of the same robot's in the sequential store. Anything else does not hold, and the result is reported whatever it is.
  • Reported alongside: anchor times, concurrent_with, the removed voxels of each robot in both stores (a concurrent robot does not see the others, so their changes are not traced against each other), wall time of the three at once against one after another, and peak memory.

Result (2026-11-29): holds. lifelong/multi_robot/ (robots.jsonl, both consistency files, the concurrent store's store.json).

  • (a) All three robots anchored and were committed: 18 sessions listed. They finished in the order 2012-11-17, 2012-11-04, 2012-11-16, so 2012-11-04 records concurrent_with: [2012-11-17] and 2012-11-16 records both.
  • (b) Both stores export.
  • (c) Height consistency in the concurrent store: 0.047, 0.116 and 0.104 m (2012-11-04, -16, -17).
  • (d) Against the sequential store: within 0.002 m for each robot. No session of the 15 below them moved by more than 0.001 m.
Robot Anchor (s after start) Removed voxels, at once / in order Wall at once / in order Peak memory
2012-11-04 3.6 2,263,515 / 2,263,515 479 s / 319 s 4.2 GiB
2012-11-16 25.4 2,831,833 / 3,047,474 520 s / 359 s 4.3 GiB / 4.6 GiB
2012-11-17 3.5 1,187,830 / 1,316,451 426 s / 306 s 3.8 GiB / 4.2 GiB

The three at once took 520 s, one after another 984 s, on 4 cores. In order, 2012-11-16 and 2012-11-17 also traced their scans through the robots before them and removed 8% and 11% more; at once they did not see each other, so what one robot saw gone in another's fresh points is left for a later session.

A map server for several robots (preregistered 2026-11-29, before the run)

A store's lock needs one file system. Robots on their own computers share a store through python -m lidarslam serve STORE instead (lidarslam/map_server.py): each robot keeps a mirror of the store, pulls the committed sessions it lacks, maps a live session into the mirror as before (relocalizing, fitting heights and tracing changes against what it pulled), and pushes the new session (live --map-server URL --store MIRROR). The server is the only writer: it commits the pushed session under the lock with the sessions committed since the robot pulled as concurrent_with, and rebuilds the Autoware bundle, whose 20 m cells robots fetch around a position (GET /map/cells?x=&y=&r=).

  • Run (lifelong/map_server/map_server_run.sh): the server serves store E cut after its first 15 sessions; robots 2012-11-04, 2012-11-16 and 2012-11-17, each with its own mirror, start at the same time on the same machine. Same bags and options as the previous check.
  • Rule: the map server serves several robots when all of the following hold:
  • (a) all three robots anchor and their sessions are committed on the server (18 listed), each with concurrent_with naming exactly the robots committed before it;
  • (b) the server rebuilds the bundle with all 18 sessions, and serves cells around a position;
  • (c) each robot's height consistency on the served store is within 0.01 m of the same robot's in the concurrent store of the previous check (lifelong/multi_robot/). Anything else does not hold, and the result is reported whatever it is.
  • Reported alongside: whether each robot's submaps.bin is byte-identical to the previous check's, the data each robot pulled, anchor times, wall time and peak memory.

Result (2026-11-29): holds. lifelong/map_server/ (robots.jsonl, served_store.json, server_events.log, map.json, cells_origin.json, consistency_served.jsonl).

  • (a) All three robots anchored (3.5, 3.6 and 25.4 s after their start) and were committed on the server, in the order they finished: 2012-11-17 as 0015, 2012-11-04 as 0016 (concurrent_with: [0015]) and 2012-11-16 as 0017 ([0015, 0016]). Each robot had committed its session as 0015 in its own mirror; the server gave the ids.
  • (b) The server rebuilt the bundle after the pushes and ended with all 18 sessions (171 cells of 20 m). The bundle with 17 sessions was dropped: the list had changed while it was built. 30 cells lie within 50 m of the origin.
  • (c) Each robot's height consistency on the served store equals the concurrent store's (0.047, 0.116 and 0.104 m; difference 0.000 m), and each robot's submaps.bin is byte-identical to the previous check's.

Each robot pulled the 15 sessions (3.7-4.2 GB with its own session) over HTTP on the same machine, mapped and pushed in 344-448 s, at a peak of 3.7-4.3 GiB. A robot's mirror holds whole sessions; pulling only what the robot needs near its path is not done.

Surface displacement between sessions (preregistered 2026-11-30, before the run)

A store holds the same place mapped again and again; python -m lidarslam store displacement STORE --from A --to B --out DIR measures how far its surfaces moved between two sessions (lidarslam/displacement.py, M3C2): core points every 0.5 m on the surfaces of A (curvature at most 0.02 within 1 m, which leaves out foliage), the normal there, and the difference of the two sessions' mean positions along it in a 0.5 m cylinder. The sessions are re-aligned by one robust translation per 30 m tile first. Each displacement has a 95% level of detection (the points' spread in the cylinder plus 1.96 times the robust spread of all displacements, taken as the registration error); larger ones are significant, and on up-facing surfaces they add up to fill and cut volumes per 5 m cell. Written: displacement.pcd, displacement.npz, summary.json, cells.csv. The method's settings were chosen on 0001 -> 0002, which is not scored.

  • Run (lifelong/displacement/displacement_check.py, on store E's points):
  • 0016 (2012-11-16) -> 0017 (2012-11-17), one day apart, as recorded;
  • the same pair with 12 patches of 0017 moved: centres drawn (seed 0) among the surface cores of run 1, at least 20 m apart, and every point of 0017 within 3 m of a centre moved along the centre's normal by ±0.10, ±0.20 and ±0.50 m (two patches each). A patch's recovered displacement is the median, over the cores within 1.5 m of its centre, of run 2's displacement minus run 1's.
  • 0000 (2012-01-15) -> 0019 (2013-02-23), reported only.
  • Rule: displacement is measured usefully when all of the following hold:
  • (a) in run 1, at most 10% of the core points are significant;
  • (b) at least 10 of the 12 patches are recovered within 0.03 m of their shift;
  • (c) in every patch moved by 0.20 m or more, at least 80% of the cores are significant. Anything else does not hold, and the result is reported whatever it is.
  • Reported alongside: the median level of detection, the registration term, the share of significant up-facing cores, run time, and run 3's volumes.

Result (2026-11-30): does not hold. lifelong/displacement/check.json.

  • (a) holds: in 0016 -> 0017, 8.6% of the 46,519 core points are significant (8.0% of the up-facing ones).
  • (b) fails: 9 of the 12 patches are recovered within 0.03 m. The other three are moved inwards and come out short: -0.20 m as -0.143 m, -0.50 m as -0.388 m (10 cores, level of detection 0.67 m) and -0.50 m as -0.452 m. The nine others are within 0.001-0.023 m.
  • (c) fails: of the six patches moved by 0.20 m or more, three are mostly significant (the +0.50 m two and one -0.50 m). The 0.20 m patches are not: the median level of detection on this pair is 0.255 m, of which the registration term is 0.224 m.

So the displacement itself is measured to a few centimetres where it is larger than the noise, but the noise of this pair is a quarter of a metre: what this store can tell as moved, between these two sessions, is about 0.3 m and more. On the development pair 0001 -> 0002 the registration term was 0.098 m. 2012-11-16 was one of the sessions that drifted most in height before its correction (a 0.76 m offset and a profile of up to 0.58 m), and the registration term takes in all of it.

Run 3 (0000 -> 0019, fourteen months): 19,609 core points, median level of detection 0.193 m, 13% significant (14% of the up-facing), 91 m³ of fill and 70 m³ of cut in significant up-facing surface. Nothing was tuned after the run.

Surface displacement with tile-wise ICP (preregistered 2026-11-30, before the run)

The first check failed on its registration term. lidarslam.displacement.realign now re-aligns the later session onto the earlier before M3C2: one rigid transform per 30 m tile (point-to-plane ICP on both sessions' surface points within 5 m of the tile, 0.2 m voxels, Huber weights at 0.1 m, 20 iterations), then the per-tile translation as before. On the development pairs the registration term fell from 0.098 to 0.081 m (0001 -> 0002) and from 0.224 to 0.080 m (0016 -> 0017, the first check's pair, now development). A movement that covers a whole tile is still taken as misalignment.

  • Run: lifelong/displacement/displacement_check.py POINTS OUT 0002 0003: the same three runs as the first check on a pair neither check has used, 0002 (2012-02-02) -> 0003 (2012-02-05), three days apart, and 0000 -> 0019 reported.
  • Rule: the same as the first check: (a) at most 10% of the core points significant in the unaltered pair; (b) at least 10 of the 12 patches recovered within 0.03 m of their shift; (c) in every patch moved by 0.20 m or more, at least 80% of the cores significant. Anything else does not hold, and the result is reported whatever it is.

Result (2026-11-30): does not hold, narrowly. lifelong/displacement/check2.json.

  • (a) holds: 8.0% of the 67,936 core points of 0002 -> 0003 are significant (2.9% of the up-facing ones).
  • (b) fails: 9 of 12 patches within 0.03 m. The three others are two wall patches moved by +0.10 m, recovered as +0.061 and +0.050 m, and a +0.50 m patch with three cores, recovered as +0.456 m. The other nine are within 0.003-0.026 m.
  • (c) fails: 7 of the 8 patches moved by 0.20 m or more are significant in at least 80% of their cores; the three-core patch is at 67%.

With the ICP the median level of detection is 0.073 m (registration term 0.054 m), a third of the first check's. Moves of 0.10 m are significant on the ground (100% and 97% of the cores of the two -0.10 m patches) but only partly on walls (31% and 37%), where the re-alignment takes in about half of a 0.10 m move: its Huber scale is 0.10 m, so a move that small is not down-weighted. Run 3 (0000 -> 0019): median level of detection 0.106 m, 13% significant, 87 m³ of fill and 60 m³ of cut. Nothing was tuned after the run.

Surface displacement, third check (preregistered 2026-11-30, before the run)

Two changes after the second check, made on the development pairs (0001 -> 0002, 0002 -> 0003 and 0016 -> 0017):

  • The re-alignment's Huber scale is 0.03 m (HUBER_M, was 0.10 m), so that a 0.10 m move is down-weighted rather than taken in.
  • A wall's normals are oriented one way (_orient: up for surfaces facing up or down, else towards +x): before, a near-vertical normal took its sign from a tiny z, so neighbouring cores of one wall could disagree and a move came out with the wrong sign.

On 0002 -> 0003 and 0016 -> 0017 the patches were then recovered within 0.03 m in 12 of 12.

  • Run: displacement_check.py POINTS OUT 0006 0007: 0006 (2012-03-25) -> 0007 (2012-03-31), six days apart, sessions no displacement check has used (0007 is the session of the chain whose height consistency is worst, 0.39 m), and 0000 -> 0019 reported.
  • Rule: the same as the first two checks: (a) at most 10% of the core points significant in the unaltered pair; (b) at least 10 of the 12 patches recovered within 0.03 m; (c) in every patch moved by 0.20 m or more, at least 80% of the cores significant. Anything else does not hold, and the result is reported whatever it is.

Result (2026-11-30): does not hold. lifelong/displacement/check3.json.

  • (a) holds: 6.5% of the 27,081 core points of 0006 -> 0007 are significant.
  • (b) holds: 10 of 12 patches within 0.03 m. The two others: a +0.20 m patch with 8 cores came out as +0.124 m, and a +0.50 m patch as +0.102 m.
  • (c) fails: only 2 of the 8 patches moved by 0.20 m or more are significant in at least 80% of their cores. The median level of detection of this pair is 0.230 m (registration term 0.176 m), so a 0.20 m move is below it.

0007 (2012-03-31) is the chain's worst session for height (0.39 m); the tile-wise ICP brings its registration term to 0.176 m, against 0.05-0.08 m for the development pairs. The three checks recovered 9, 9 and 10 of their 12 patches within 0.03 m (the method changing between them), but what counts as significant depends on how well the two sessions were mapped: a level of detection of 0.07-0.11 m for most pairs, about 0.23-0.26 m with a session that drifted. Run 3 (0000 -> 0019): median level of detection 0.098 m, 13.5% significant, 88 m³ of fill and 61 m³ of cut. Nothing was tuned after the run, and the method is left as it is: summary.json reports each run's level of detection, which is what a user needs to read its result.

Volumes from surface displacement (preregistered 2026-11-30, before the run)

store displacement reports fill and cut volumes: on up-facing surfaces, per 0.5 m plan square, the mean significant displacement times the square's area. They were checked only on a synthetic plane (within 30%). This checks them on real data.

  • Run (lifelong/displacement/volume_check.py POINTS OUT 0014 0015): 0014 (2012-10-28) -> 0015 (2012-11-04), a pair no displacement check has used, as recorded and with 8 ground patches of 0015 raised or lowered by ±0.15, ±0.30, ±0.50 and ±1.00 m: 6 m x 6 m squares centred on up-facing cores (seed 0, at least 30 m apart, each with up-facing cores in at least 80% of its 0.5 m plan squares); the points of 0015 in the square within 0.5 m of the centre's height move vertically. A patch's estimated volume is the method's volume inside the square with the patch moved minus without; its true volume is 36 m² times the height.
  • Rule: the volumes hold when at least 5 of the 6 patches moved by 0.30 m or more are estimated within 15% of their true volume. Anything else does not hold, and the result is reported whatever it is.
  • Reported alongside: the ±0.15 m patches, each patch's coverage, and the volumes with every displacement counted (significant or not), as an alternative.

Result (2026-11-30): does not hold. lifelong/displacement/volume.json. 3 of the 6 patches moved by 0.30 m or more are within 15%; every patch is estimated short.

Height True Estimated Error Coverage
+0.15 m 5.4 m³ 4.37 m³ -19% 92%
-0.15 m -5.4 m³ -4.35 m³ -19% 83%
+0.30 m 10.8 m³ 9.50 m³ -12% 97%
-0.30 m -10.8 m³ -9.62 m³ -11% 98%
+0.50 m 18.0 m³ 13.72 m³ -24% 86%
-0.50 m -18.0 m³ -15.67 m³ -13% 98%
+1.00 m 36.0 m³ 26.55 m³ -26% 88%
-1.00 m -36.0 m³ -18.76 m³ -48% 82%

The shortfall follows the coverage, the share of the square's 0.5 m plan squares that have an up-facing core: 11-13% short at 97-98%, 24-48% short at 82-88%. The method counts only squares with a core, so a square it does not see adds nothing. Even fully covered, about a tenth is missing, probably at the edges of the square and where its ground lies more than 0.5 m from the centre's height (the injection did not move it); this was not examined. Counting every displacement, significant or not, changes the estimates by 0.02-1.03 m³. This pair's median level of detection is 0.054 m. Nothing was tuned after the run.

Volumes from surface displacement, second check (preregistered 2026-11-30, before the run)

Changes after the first volume check, made on its pair (0014 -> 0015, now development):

  • Method (displacement.volume_squares): a plan square without an up-facing core takes the mean of the covered squares within 2 squares, when they lie on opposite sides of it (a hole, not the margin of a surface); a covered square with no significant core counts 0.
  • Check (volume_check.py): the first check's truth was wrong in two ways. A patch must be bare ground in both sessions (at least 90% of each session's points in the square within 0.5 m of the centre's height): the -1.00 m patch had something standing on it in 0015 that the injection left in place, so the square did not lose 36 m³. And the volume is summed within 1 m of the square, since the cylinders blur its edges outwards. Patches are at least 20 m apart (30 m found too few bare ones).

On 0014 -> 0015 all 8 patches were then within 8% (-7.8% to +5.5%).

  • Run: volume_check.py POINTS OUT 0008 0009: 0008 (2012-05-11) -> 0009 (2012-05-27), a pair no displacement check has used.
  • Rule: as in the first check, the volumes hold when at least 5 of the 6 patches moved by 0.30 m or more are estimated within 15% of their true volume. Anything else does not hold, and the result is reported whatever it is.

Result (2026-11-30): does not hold. lifelong/displacement/volume2.json. 3 of the 6 patches moved by 0.30 m or more are within 15%.

Height True Estimated Error Every displacement counted Coverage
+0.15 m 5.4 m³ 3.71 m³ -31% 4.37 m³ 86%
-0.15 m -5.4 m³ -2.74 m³ -49% -3.34 m³ 81%
+0.30 m 10.8 m³ 6.65 m³ -38% 8.68 m³ 84%
-0.30 m -10.8 m³ -8.84 m³ -18% -9.26 m³ 87%
+0.50 m 18.0 m³ 17.14 m³ -5% 16.11 m³ 83%
-0.50 m -18.0 m³ -15.07 m³ -16% -14.38 m³ 81%
+1.00 m 36.0 m³ 30.67 m³ -15% 29.87 m³ 83%
-1.00 m -36.0 m³ -31.85 m³ -12% -32.75 m³ 81%

This pair's median level of detection is 0.115 m, twice the development pair's (0.054 m), and its patches are less covered (81-87%, against 97% or more). Moves of 0.15 and 0.30 m, one to three times the level of detection, come out 18-49% short, since part of their cores are not significant and count 0 (counting every displacement recovers some of it). Moves of 0.50 m and 1.00 m, four to nine times it, are 5-16% short. So the volumes can be read, to about 15%, for changes several times the run's level of detection, and they are low for changes near it. The method is left as it is.

Does the store's accuracy hold as sessions are added? (preregistered 2026-11-30, before the run)

The store's height consistency (0.11 m) has been measured, not how far the sessions are apart horizontally, nor whether that grows as sessions are added. lifelong/accuracy/misalignment.py measures it without ground truth: for each session k of store E (1 .. 19), the tile-wise ICP of lidarslam.displacement.realign (30 m tiles) fitted from k onto (i) session 0000, the first map, and (ii) sessions 0000 .. k-1, the store k was committed to. The translation each tile needs, at its centre, is k's misalignment there, horizontal and vertical.

  • Rule: the store's accuracy degrades as sessions are added when, against the first map, the median horizontal misalignment of the last five sessions (0015-0019) is more than 1.5 times that of the first five (0001-0005) and more than 0.05 m above it. Otherwise it holds. Either way, the per-session numbers against both references are reported, and they set the baseline for any correction.

Result (2026-11-30): holds by the rule, but the measure is in doubt. lifelong/accuracy/misalignment.jsonl.

  • By the rule it does not degrade: against the first map, the median horizontal misalignment is 0.303 m for 0001-0005 and 0.379 m for 0015-0019 (1.25 times, 0.08 m more).
  • The numbers are large and do not behave like misalignment. Against the first map, the sessions' median horizontal misalignment is 0.17-1.00 m (median 0.37 m), vertical 0.06-0.52 m (median 0.11 m), rotation 0.2-2.4°. Against the store each session was committed to, they are not smaller but larger (horizontal median 0.43 m, rotation 0.68°), although that is what the session was aligned to. The 30 m tiles' surfaces may not fix the transform in every direction (a street of parallel walls leaves the translation along it free), and the ICP's translation then wanders; this was not examined. The vertical numbers (median 0.08-0.11 m) agree with the height consistency (0.11 m).

So the check cannot tell how accurate the store is horizontally. A measure that only counts directions the surfaces fix (displacements along the normals, as in M3C2), or the ground truth, is needed before any correction is judged.

Store accuracy against ground truth (preregistered 2026-11-30, before the ground truth is read)

With the user's go-ahead, the NCLT ground truth is read for this check (until now it was used only to choose stretches of data). lifelong/accuracy/store_ape.py: every session's committed submaps in the store frame, as the export places them after the height corrections, stamped from the session's own optimized trajectory; the ground truth of that date interpolated at the stamps; one rigid transform (no scale) from the store frame to the ground truth fitted to all twenty sessions together, since the store is one map; each session's error after it (RMSE 3D, horizontal, vertical), and, as context, after fitting the session on its own.

  • Rule: the store's accuracy degrades as sessions are added when the median horizontal RMSE of 0015-0019 is more than 1.5 times that of 0001-0005 and more than 0.10 m above it. Otherwise it holds. The per-session numbers are reported whatever the result, and set the baseline for any correction.

Result (2026-11-30): holds, narrowly. lifelong/accuracy/store_ape.json. All 7,191 committed submaps of the twenty sessions were stamped and had ground truth.

  • The median horizontal RMSE is 0.491 m for 0001-0005 and 0.706 m for 0015-0019: 1.44 times and 0.21 m more. The rule needed more than 1.5 times, so it holds, but the later sessions are worse.
  • Over all twenty sessions, after the one store-to-truth transform: RMSE 3D median 0.61 m, horizontal median 0.54 m (0.37-1.49 m), vertical median 0.30 m (0.22-0.46 m). The worst are 2012-03-31 (1.49 m horizontal, the session whose height drifted most), 2012-12-01 (1.03 m) and 2012-11-16 (0.95 m).
  • Fitting each session on its own leaves a median of 0.50 m (0.33-0.95 m): most of the error is inside each session, the shape of its own trajectory, not where the store placed it. Where the two differ most, the placement adds to it: 2012-03-31 0.85 -> 1.49 m, 2012-05-26 0.33 -> 0.57 m, 2012-11-16 0.71 -> 0.95 m.

How much of the shape error is the ground truth's own (NCLT's is built from RTK GPS and LiDAR scan matching) was not examined. So the store does not lose accuracy quickly, but the map is good to about half a metre horizontally and a third of a metre vertically against the ground truth, and the error is mostly each session's own trajectory; aligning a session better to the store at commit could only remove the part between the per-session and the store fit.

A 3D translation profile at commit, against ground truth (preregistered 2026-11-30, before the run)

Most of the error is inside each session. The height profile already bends a session in height along its path; lifelong/accuracy/profile3d_eval.py tries the same in 3D: a translation every 30 submaps along the session, fitted from the session's surface points to the surfaces of the sessions committed before it (point-to-plane, translation only, Huber 0.03 m, minimum norm along directions the surfaces do not fix), linear between knots. It is applied offline to store E's committed placement in the chain's order (each session against the corrected ones before it), without running the sessions again, and scored with store_ape.py against the same ground truth. The store's first session is not moved, so the store can only become as accurate as its shape.

  • Rule: the 3D profile improves the store when both hold: (a) the median horizontal RMSE of sessions 0001-0019 falls by at least 15% from store_ape.json (0.5364 m over all twenty; the baseline is recomputed over 0001-0019); (b) no session's horizontal RMSE rises by more than 0.10 m. Anything else does not hold, and the result is reported whatever it is, with the vertical and 3D RMSE and each session's shifts.

Result (2026-11-30): does not hold, on (b). lifelong/accuracy/profile3d.json, profile3d_ape.json.

  • (a) holds: the median horizontal RMSE of 0001-0019 falls from 0.573 m to 0.449 m (-21.5%). The 3D median falls from 0.616 to 0.540 m; the vertical is unchanged (0.299 -> 0.300 m).
  • (b) fails: 2012-11-04 rises by 0.131 m (0.493 -> 0.625 m). Four more rise by less than 0.10 m (2012-02-18, 2012-08-20, 2012-09-28, 2012-10-28; 0.02-0.04 m), and 2012-03-31 is still the worst (1.49 -> 1.30 m).
  • The largest gains are the sessions the store had placed worst: 2012-02-02 0.65 -> 0.39 m, 2012-05-26 0.57 -> 0.37 m, 2012-11-16 0.95 -> 0.75 m, 2012-12-01 1.03 -> 0.78 m. The shifts' median per session is 0.19-0.74 m.

So bending a session onto the store pays off where the store placed it badly, and costs a few centimetres to a decimetre where it was already placed well, since the store's own error is then copied into it. Nothing was tuned after the run.

Shrunk 3D profile on hold-out sessions (preregistered 2026-11-30, before the run)

The full 3D profile copies the store's own error into sessions it had placed well. Moving a session only halfway onto the store (a factor of 0.5) is the choice that minimizes the error if the store's and the session's errors are independent and alike, and was fixed on that ground, not on the results above. Since store E's ground truth has now been used, the check runs on NCLT sessions outside its chain whose ground truth has not been read: 2012-02-04, 2012-02-12, 2012-02-19, 2012-04-29, 2013-01-10 and 2013-04-05 (their _gatein logs).

  • Run: lifelong/accuracy/holdout_run.sh appends each, live with the shipped defaults and --relocalize-anywhere --detect-changes, to its own copy of store E; lifelong/accuracy/holdout_profile_eval.py fits its 3D profile against E's twenty sessions and scores its committed submaps moved by 0, 0.5 and 1 times the profile, after the store-to-truth transform fitted on E as committed (the same for every factor).
  • Rule: the halfway profile improves the hold-out sessions when all hold: (a) at least 4 of the 6 are committed; (b) their median horizontal RMSE with the factor 0.5 is at least 10% below that with 0; (c) no session's horizontal RMSE rises by more than 0.10 m from 0 to 0.5. Anything else does not hold, and the result is reported whatever it is, with the factor 1.

Result (2026-11-30): void. lifelong/accuracy/holdout_profile_void.json. None of the six hold-out sessions anchored: all six were committed in their own frames, without a store transform, so their errors came out at about 400 m and say nothing about the profile. The _gatein logs record the gate area of the earlier Scan Context check, which store E does not cover; this was not checked before the run. The rule meant anchored sessions (the scoring did not check it). The ground truth of those six dates was read for this run, over those logs' stretches. A hold-out check needs sessions that overlap store E, such as the stretches the removal audit converted from NCLT's archives (fresh_windows.json), which have to be downloaded again.

Shrunk 3D profile on hold-out sessions, second run (preregistered 2026-11-30, before the run)

The same check on sessions that overlap store E: the stretches the removal audit used (fresh_windows.json: 2012-01-08, 2012-02-04, 2012-02-12, 2012-02-19 and 2013-04-05, 5-9 minutes each), converted again from NCLT's archives (lifelong/accuracy/holdout_run2.sh). The ground truth of four of those dates was read in the void run, over other stretches (the gate area). A session committed without a store transform (never anchored) is now not scored.

  • Rule: as before, the halfway profile improves the hold-out sessions when all hold: (a) at least 4 of the 5 are anchored and committed; (b) their median horizontal RMSE with the factor 0.5 is at least 10% below that with 0; (c) no session's horizontal RMSE rises by more than 0.10 m from 0 to 0.5. Anything else does not hold, and the result is reported whatever it is, with the factor 1.

Result (2026-11-30): does not hold, on (b). lifelong/accuracy/holdout_profile2.json. All five were anchored and committed ((a) holds) and no session got worse by more than 0.10 m ((c) holds: the largest rise is 0.021 m, 2012-02-12). The median horizontal RMSE fell from 0.838 m with no profile to 0.764 m with the halfway one, an 8.8% drop, short of the 10% asked for.

session none (m) halfway (m) full (m)
2012-01-08 0.838 0.764 0.807
2012-02-04 0.586 0.544 0.701
2012-02-12 3.307 3.328 3.369
2012-02-19 2.339 2.205 2.101
2013-04-05 0.610 0.576 0.610

The halfway profile lowered the error of four sessions of five and was never worse than the full one by more than 0.10 m; the full profile raised 2012-02-04 by 0.116 m, as it raised 2012-11-04 in the store. Two sessions (2012-02-12, 2012-02-19) stay at 2-3 m whatever the factor: they anchored, but at least part of them was placed metres off, which a profile fitted by small point-to-plane steps cannot pull back. The halfway profile is a consistent small gain, not the 10% the rule asked for; it is not adopted on this result.

Finding distorted stretches without ground truth (preregistered 2026-12-01, before the run)

The two hold-out sessions that stayed 2-3 m off (2012-02-12, 2012-02-19) were anchored correctly: fitted to the ground truth on their own, their error barely falls (3.00 m and 1.97 m), and the rotation left over after E's transform is about 0.5°. Their own trajectories bend within the run, by up to 8.5 m in the middle of 2012-02-12 and 5.3 m at the end of 2012-02-19, while the store is matched only once, at the anchor (exploratory, from the second hold-out run). A robot has no ground truth, so before correcting such stretches it has to find them. The question: does how well a stretch of a session overlaps the store's points tell where it is distorted?

  • Run: lifelong/accuracy/drift_detect.py on the five hold-out sessions of the second run, as committed. Each is cut into windows of 30 submaps; a window's score is the fraction of its points (0.2 m voxels) within 0.3 m of store E's twenty sessions' points, with no ground truth. A window is distorted when the mean horizontal error of its submaps after E's store-to-truth transform exceeds 1.0 m. Windows with fewer than 10 submaps with truth or 500 points are left out.
  • Rule: the overlap finds distorted stretches when (a) at least 5 windows are distorted and (b) the AUC of (1 - score) for distorted against the rest is at least 0.80. Anything else does not hold. Reported too, as context: recall and false alarms when flagging below 0.5. The ground truth of these stretches was read in the second run; their window scores were not.

Result (2026-12-01): holds. lifelong/accuracy/drift_detect.json. Of 52 windows, 10 are distorted ((a) holds) and the AUC is 0.895 ((b) holds). Flagging below 0.5 finds only 2 of the 10 (no false alarms): the threshold set before the run was too low, as fine windows scored 0.81 to 1.00. The overlap follows 2012-02-19's drift closely (0.89, 0.74, 0.58, 0.21, 0.24 as the error grows from 1.6 to 5.7 m) and the end of 2012-01-08 (0.90, 0.86 at 1.8 m). It misses most of the bulge in the middle of 2012-02-12: the window 8.5 m off still overlaps at 0.97. A shift along a street keeps the points on the store's surfaces, so the overlap cannot see it; and a fine window can score as low as 0.81 where the place has changed. The overlap is a usable ground-truth-free signal for drift across structure, not along it, and its threshold has to be set on other sessions before it is used.

Store tracking against drift on hold-out sessions (preregistered 2026-12-02, before the run)

The overlap check found the drift of 2012-02-19 and the end of 2012-01-08, but nothing corrects it: a session is matched to the store once, at its anchor. live --track-store (experimental) keeps matching each keyframe against the store near its predicted place after the anchor and adds the accepted matches as factors to a pose graph of the session, whose poses the store then uses. It was tried on NCLT once, against vertical drift (2012-03-31, "Check of store tracking against vertical drift"), and failed there with 10 accepted factors where few stored submaps lay near the path. The hold-out stretches lie inside store E, so there it has the store to hold on to.

  • Run: lifelong/accuracy/holdout_track_run.sh OVERLAY holdout_track --track-store: the five stretches of the second hold-out run, converted again from NCLT's archives, each appended live as there plus --track-store to its own copy of store E. lifelong/accuracy/holdout_compare.py scores each against the second run's session as committed (the baseline), with the same store-to-truth transform fitted on E. With tracking the tilt and height-profile corrections are off (as the shipped option does); the rule is on horizontal error.
  • Rule: store tracking reduces the error of the hold-out sessions when all hold: (a) at least 4 of the 5 are anchored and committed in both; (b) their median horizontal RMSE is at least 10% below the baseline's; (c) no session's horizontal RMSE rises by more than 0.10 m. Anything else does not hold. Reported as context: accepted tracking factors per session. The result is reported whatever it is; it does not by itself change any default.

Result (2026-12-02): does not hold, on (b) and (c). lifelong/accuracy/holdout_track.json. All five were anchored and committed ((a) holds; 2012-02-12 was run again after its download was cut off by the server, a failure before the session started). The median horizontal RMSE rose from 0.838 m to 1.068 m (+27%), and 2012-01-08 and 2012-02-04 rose by 0.230 m and 0.180 m.

session baseline (m) --track-store (m) tracking factors accepted at submaps
2012-01-08 0.838 1.068 57 4–154, then 216, 220, 230 (of 283)
2012-02-04 0.586 0.765 67 2–263 (of 388)
2012-02-12 3.307 3.354 8
2012-02-19 2.339 2.309 30 2–49 (of 312)
2013-04-05 0.610 0.580 73 6–188 (of 240)

Tracking holds on only while the session is still close to the store: 2012-02-19's factors stop at submap 49, before its drift begins, and its last tenth stays 5.3 m off. Each match must lie within 0.20 m and 2° of where the current transform predicts it; once drift outgrows that between two accepted matches, every later match is refused and the graph has nothing to pull with (exploratory; that it is the gate and not the registration that refuses them is not yet measured). The tracked poses also lose the tilt and height-profile corrections, and the vertical RMSE rose in four of the five sessions.

Why store tracking lets go (diagnostic, 2026-12-02)

Every tracking match after the anchor, logged by outcome on the five hold-out sessions (lifelong/accuracy/track_diag/; same runs, the accepted counts equal the result above less the anchor):

session accepted refused by the 0.20 m / 2° gate registration failed gate offsets p10 / p50 / p90
2012-01-08 56 97 125 0.24 / 0.39 / 0.98 m
2012-02-04 66 200 118 0.30 / 0.62 / 1.55 m
2012-02-12 7 155 133 0.35 / 0.55 / 1.79 m
2012-02-19 29 101 178 0.35 / 0.55 / 1.81 m
2013-04-05 72 83 78 0.22 / 0.35 / 0.53 m

Both refuse, in turn. On 2012-02-19 the last match is accepted at submap 50; from submap 60 to about 210 the registration still succeeds but lands a median 0.55 m from the prediction and the gate refuses it, while the drift grows; from submap 240 on, with the drift at 3-5 m, every registration fails. The gate lets go first, while the store could still have pulled the session back. Most refused offsets lie between 0.3 and 2 m. Whether those refused matches are right (closer to the truth than the prediction) is not measured here.

Store tracking with a gate that widens with distance (preregistered 2026-12-02, before the run)

live --track-gate-growth G (with --track-store; experimental, default 0, which is the tracking above unchanged) widens the distance within which a tracking match is accepted from 0.20 m by G metres per metre of odometry (straight line) since the last accepted match, up to 2 m (relocalization.tracking_gate). The 2° yaw gate stays: it refused almost none of the matches in the diagnostic. G = 0.02 is fixed here, as the order of a LiDAR odometry's drift per distance; it was chosen after the diagnostic's refused offsets were seen, but not on their distances, which were not logged.

  • Run: lifelong/accuracy/holdout_track_run.sh OVERLAY holdout_gate --track-store --track-gate-growth 0.02 on the five hold-out stretches (the kept conversions), scored by lifelong/accuracy/holdout_compare.py against the second hold-out run as committed (no tracking), as before.
  • Rule: the same as for store tracking: the widened gate reduces the error when (a) at least 4 of the 5 are anchored and committed in both; (b) their median horizontal RMSE is at least 10% below the baseline's; (c) no session's horizontal RMSE rises by more than 0.10 m. Anything else does not hold. Reported as context: accepted tracking factors, and the same comparison against --track-store alone.

Result (2026-12-02): does not hold, on (b) and (c). lifelong/accuracy/holdout_gate.json (against no tracking) and holdout_gate_vs_track.json (against --track-store alone). All five were anchored and committed; the median horizontal RMSE rose from 0.838 m to 2.848 m and 2013-04-05 rose by 2.92 m.

session no tracking (m) --track-store (m, factors) widened gate (m, factors)
2012-01-08 0.838 1.068 (57) 1.526 (86)
2012-02-04 0.586 0.765 (67) 0.488 (150)
2012-02-12 3.307 3.354 (8) 3.506 (168)
2012-02-19 2.339 2.309 (30) 2.848 (81)
2013-04-05 0.610 0.580 (73) 3.533 (7)

The wider gate lets wrong matches in as well as right ones. 2013-04-05 kept only 7 factors: an early one turned the whole session by about 1.6° (its own shape still fits the truth to 0.71 m), after which nothing matched and its error grew to 4.5 m. On 2012-02-19 the middle of the session held closer (0.37 m instead of 0.83 m in its fifth tenth), but the end drifted further, to 6.6 m. Only 2012-02-04 improved. A match far from the prediction needs evidence that it is right before the graph takes it, not just a wider gate.

Store tracking that confirms far corrections (preregistered 2026-12-02, before the run)

The widened gate failed because a single wrong match was taken. live --track-confirm-far (with --track-store; experimental, off by default) keeps the 0.20 m / 2° gate, and a match between 0.20 m and 2 m from its prediction (yaw still within 2°) is held, not taken: it is accepted only when the next registered match asks for the same correction, within 0.20 m and 1° (relocalization.CONFIRM_M, CONFIRM_DEG); a different correction replaces the held one. The anchor already waits for two agreeing keyframes in the same way. The limits are fixed here, on that analogy, before the run; no gate growth.

  • Run: lifelong/accuracy/holdout_track_run.sh OVERLAY holdout_confirm --track-store --track-confirm-far on the five hold-out stretches (the kept conversions), scored by lifelong/accuracy/holdout_compare.py against the second hold-out run as committed.
  • Rule: as for the two arms before: (a) at least 4 of the 5 anchored and committed in both; (b) median horizontal RMSE at least 10% below the baseline's; (c) no session's horizontal RMSE rises by more than 0.10 m. Anything else does not hold. Context: accepted factors, and the comparison against --track-store alone.

Result (2026-12-02): does not hold, on (a), (b) and (c). lifelong/accuracy/holdout_confirm.json and holdout_confirm_vs_track.json. Only two of the five were committed: the height check (--max-height-drift, 1.5 m) refused 2012-01-08, 2012-02-04 and 2012-02-12, whose tracked submaps differed in height from the store by 1.86 m, 2.28 m and 1.78 m at the 95th percentile (the tilt and height-profile corrections are off with tracking). The two committed got worse: 2012-02-19 from 2.339 m to 3.623 m (82 factors) and 2013-04-05 from 0.610 m to 2.250 m (51). Two agreeing corrections in a row are not enough evidence here: consecutive keyframes of one place register to the same stored keyframes and can repeat the same wrong correction.

Four ways of correcting a session's drift against the store have now failed on these hold-out sessions: a 3D profile fitted at the commit (halfway: −8.8%, short of −10%), store tracking as shipped (+27%), with a widened gate (+240%) and with confirmed far corrections (two of five committed). None is adopted; all stay off by default.

Keeping distorted stretches out of the store (preregistered 2026-12-02, before the run)

Correcting a session's drift against the store has failed four ways; the overlap with the store found distorted stretches (AUC 0.895). Instead of correcting them, a session's distorted stretches could be kept out of the store. The threshold set before that check (0.5) was too low; here it is set on other sessions first.

  • Run: lifelong/accuracy/exclusion_check.py. (1) Threshold, on store E: each of its twenty sessions in windows of 30 submaps, scored by the fraction of a window's points (0.2 m voxels) within 0.3 m of the other nineteen sessions' points; distorted when the window's mean horizontal error after E's store-to-truth transform exceeds 1.0 m. The threshold maximizes recall minus false alarms (Youden's J) over E's windows. (2) Test, on the five hold-out sessions of the second run as committed, scored against all twenty sessions as in the overlap check: the submaps of windows scoring below the threshold are left out.
  • Rule: leaving the flagged stretches out keeps the map more accurate when (a) store E has at least 5 distorted windows; (b) the pooled horizontal RMSE of the hold-out submaps kept is at least 20% below that of all of them; (c) at least 80% of the hold-out submaps are kept. Anything else does not hold. Reported as context: recall and false alarms on the hold-out windows. The hold-out windows' scores were seen in the overlap check (their threshold was not set on them); E's leave-one-out scores have not been computed.

Result (2026-12-02): does not hold, on (c). lifelong/accuracy/exclusion_check.json. Store E has 25 distorted windows of 244 ((a) holds) and the threshold came out at a score of 0.976 (Youden's J 0.75). On the hold-out sessions, leaving out the windows below it lowered the pooled horizontal RMSE from 1.886 m to 0.793 m (−58%, (b) holds) but kept only 59% of the submaps ((c) fails): it found 9 of the 10 distorted windows and also flagged 13 of the 42 fine ones (31%). Most false alarms score 0.81-0.97, where the place differs from the stored sessions (the start and end of 2012-02-12, 2012-02-04 and 2012-02-19) rather than the session drifting, and E's own sessions, compared with nineteen others that cover the same places, score higher than a new session does. The overlap separates drift from change only where the drift is large (2012-02-19 from submap 210: 0.74 to 0.21).

The two experimental tracking options tried above, --track-gate-growth and --track-confirm-far, were removed again before merging, as neither is adopted; their code is in commits 778ee71e and 8d88c22d of the claude/lifelong-reanchor branch. The runs above can be repeated by restoring them into an overlay.

Where the hold-out sessions' drift comes from (diagnostic, 2026-12-02)

lifelong/accuracy/session_drift.py (exploratory): each hold-out stretch's frontend odometry and backend trajectory, each fitted to the ground truth on its own.

session odometry RMSE backend RMSE end drift, odometry / backend path loop edges self-revisits
2012-01-08 1.26 m 0.81 m 3.14 / 2.10 m 396 m 2 none
2012-02-04 0.52 m 0.38 m 0.95 / 0.15 m 577 m 3 none
2012-02-12 2.76 m 3.01 m 0.56 / 0.64 m 446 m 0 none
2012-02-19 1.78 m 1.98 m 6.01 / 5.95 m 456 m 0 none
2013-04-05 0.53 m 0.51 m 1.12 / 1.08 m 348 m 0 none

(End drift: the error at the end after a fit to the first fifth. Self-revisits: ground-truth positions within 3 m of the path more than 60 s earlier.)

None of the five stretches passes the same place twice, so the backend has no loop to close and the session's shape is its odometry's. The odometry's scale is right (10 s chords within 2% of the truth, median 0.98-1.00); its heading is not: against the ground-truth yaw it wanders by 1-3°, and on 2012-02-19 it grows to 3.3-3.6° over the last third, which over the last 150 m accounts for the 6 m. On 2012-02-12 the heading error stays within 3° and the end returns to 0.56 m, so the 8.5 m in the middle is not explained by the odometry's heading; the ground truth there moves faster than the vehicle can (544 samples above 2.5 m/s between 285 and 341 s), so part of that error may be in the ground truth. Without revisits only the store can correct the heading, which is what store tracking does; whether the matches it refused (0.3-2 m from its prediction) were right is the open question that decides whether a better acceptance test can make it work.

Were the refused tracking matches right? (preregistered 2026-12-02, before the run)

  • Run: the five hold-out bags with --relocalize-anywhere --detect-changes --track-store as in "Store tracking against drift on hold-out sessions", with a diagnostic copy of relocalization.py that logs, for every registered tracking match, the keyframe's odometry position and the predicted and registered store-frame positions and yaws. Each match is timed by the nearest odometry pose and its ground truth is taken into the store frame by the inverse of store E's store-to-truth transform (fitted on its twenty sessions as committed).
  • Measure: for matches refused by the gate (registered more than 0.20 m from the prediction), the horizontal distance of the prediction and of the registration to the ground truth.
  • Rule: the refused matches are mostly right when, pooled over the five sessions, the registration is closer to the truth than the prediction in at least 70% of them and the median of (prediction error − registration error) is at least 0.20 m. If so, a better acceptance test is worth building; if not, correcting a session against the store by its keyframe matches is set aside. The store's own error (median 0.5 m against the truth) limits what a right match can show.

Result (2026-12-02): holds, narrowly. lifelong/accuracy/match_truth.json. Of 866 registered tracking matches, 636 were refused by the gate (corrected 2026-12-02 from 556, a miscount; the per-session table was right). The registration was closer to the truth than the prediction in 73.6% of those (rule: 70%), by a median of 0.216 m (rule: 0.20 m); their median error fell from 0.688 m (prediction) to 0.405 m (registration). The accepted matches change nothing (47.8% closer, median gain 0.000 m): within 0.20 m the prediction and the store are equally good.

session refused closer median gain
2012-01-08 97 78% 0.16 m
2012-02-04 200 85% 0.38 m
2012-02-12 155 52% 0.04 m
2012-02-19 101 95% 0.31 m
2013-04-05 83 57% 0.16 m

By offset from the prediction (exploratory): 0.2-0.4 m, 62% closer; 0.4-0.7 m, 78%; 0.7-1.0 m, 82%; 1.0-1.5 m, 70%, with 28% of them more than 0.5 m worse; beyond 1.5 m, 89%. So the gate threw away mostly right corrections, above all on 2012-02-19, where 95% were right while its drift grew. The widened gate still failed because a few wrong ones, among them one that turned 2013-04-05 by 1.6°, did more harm than the right ones did good: a better acceptance test has to reject those few, by something other than the offset. Yaw against the truth was not checked here.

What tells a wrong tracking match (exploratory, 2026-12-02)

lifelong/accuracy/match_features.py on a third run of the same five hold-out bags with --track-store, whose diagnostic copy of relocalization.py saves each registered match's thinned window points and poses (match_features.json; the 866 matches and their offsets are the same as in the run above). Per refused match: the correction's offset and yaw, and the fraction of the window's points within 0.3 m of store E's points placed at the prediction and at the registration. AUC for telling the matches that moved the session more than 0.5 m away from the truth (27 of 636) from the rest:

quantity all five without 2012-02-12 (8 of 481)
offset 0.815 0.795
yaw of the correction 0.508
overlap at the registration (low = wrong) 0.916 0.879
gain in overlap from prediction to registration 0.472 0.971

Nineteen of the 27 harmful matches are on 2012-02-12, whose ground truth is in doubt there, so the second column is the safer read; it rests on 8 cases. Wrong corrections overlap the store less at their registered pose (median 0.948 against 0.994). Without 2012-02-12, accepting a refused match only when at least 98% of its points lie within 0.3 m of the store at the registration would keep 431 of 481, 83% of them closer to the truth (median gain 0.26 m), with 2 harmful. These numbers were found on the same sessions; a test of such an acceptance needs sessions not used here. In the live session the overlap would be against the stored keyframes it registers to, not store E's exported points, which has not been checked.

Against the stored keyframe windows, which a live session holds (match_features.py ... windows, match_features_windows.json), the overlap at the registration still ranks the harmful matches (AUC 0.872 over all five, 0.864 without 2012-02-12), but every value is close to 1: the harmful ones have a median of 0.995 against 0.999 for the rest, as the windows are dense where the registration was fitted. Without 2012-02-12, accepting refused matches at 0.997 or above would keep 411 of 481, 82% closer to the truth (median gain 0.26 m), with 3 harmful; at 0.998, 370 with 2. A threshold that close to 1 depends on the windows' density and the 0.3 m radius, so it needs fixing before, and testing on, sessions not used here.

Store tracking with an overlap gate, on new stretches (preregistered 2026-12-02, before the runs)

live --track-overlap-gate F (with --track-store; experimental, off by default; removed after the result below) keeps the 0.20 m / 2° gate and also accepts a match up to 2 m from its prediction (yaw still within 2°) when at least the fraction F of its window's points (0.2 m voxels), at the registered pose, lie within 0.3 m of the stored keyframe windows whose submaps are within 30 m (relocalization.StartupRelocalization.overlap). F = 0.997 is fixed here from the exploratory analysis above (without 2012-02-12: 411 of 481 refused matches kept, 3 harmful).

That analysis used the five hold-out stretches, so the check runs on new ones: for each NCLT session outside store E's chain, its longest pass through the lifelong square other than the one already used (lifelong/accuracy/second_passes.py, from 1 Hz ground-truth positions only, as for fresh_windows.json; second_passes.json). Four sessions have one of at least 120 s: 2012-01-08 (349 s), 2012-02-04 (219 s), 2012-02-12 (262 s) and 2012-02-19 (199 s).

  • Run: lifelong/accuracy/second_run.sh OVERLAY NAME [options] appends each to its own copy of store E with --relocalize-anywhere --detect-changes and: B, nothing more (the baseline); T, --track-store; O, --track-store --track-overlap-gate 0.997. holdout_compare.py scores O against B (and T against B as context) with E's store-to-truth transform.
  • Rule: the overlap gate reduces the error when (a) at least 3 of the 4 are anchored and committed in both B and O; (b) their median horizontal RMSE in O is at least 10% below B's; (c) no session's horizontal RMSE rises by more than 0.10 m from B to O. Anything else does not hold; the result is reported whatever it is and changes no default.

Result (2026-12-02): does not hold — the overlap gate makes the error about five times larger. All four sessions are anchored and committed in B, T and O, so (a) is met. Horizontal RMSE (second_O_vs_B.json, second_T_vs_B.json):

Session B T (--track-store) O (+ --track-overlap-gate 0.997) O tracking observations
2012-01-08 0.432 m 0.714 m 2.212 m 97
2012-02-04 0.528 m 1.075 m 2.366 m 51
2012-02-12 0.424 m 0.338 m 4.294 m 71
2012-02-19 0.449 m 0.434 m 1.609 m 99
median 0.441 m 0.574 m (+30%) 2.289 m (+419%)

(b) fails (+419%, not −10%) and (c) fails in every session (largest rise 3.87 m). Plain --track-store also does not help on these stretches (+30%, largest rise 0.55 m), as on the hold-out ones. The exploratory finding — far matches that lie on the stored windows are mostly closer to the truth — does not carry over to accepting them as observations: on new stretches the accepted far matches pull the session far off. Why is not diagnosed here. The --track-overlap-gate option is removed again (its code stays in commit 69870d7d); no default changes. Baseline anchoring alone (B) stays at 0.42–0.53 m on these stretches.

Does the store's error build up across sessions, or is it each session's own? (diagnostic, 2026-12-03)

Not preregistered: a split of numbers already measured in store_ape.json (2026-11-30), made after it. lifelong/accuracy/placement_split.py takes each session's 3D RMSE after the one store-to-truth transform, subtracts the RMSE after fitting the session on its own (its shape), and calls the rest the placement — the part the store's placement of the session adds (placement_split.json).

Sessions after store fit own shape placement
0001-0005 (median) 0.555 m 0.490 m 0.126 m
0015-0019 (median) 0.779 m 0.673 m 0.146 m

The placement hardly grows (+0.02 m over 15 sessions); the later sessions are worse because their own trajectories are (+0.18 m), most of all 2012-12-01 (own fit 0.95 m) and 2012-11-16 (0.71 m). So the store does not build up error as sessions are added; the accuracy left to gain is in each session's own trajectory (or the ground truth's), which store tracking at run time did not improve (the checks above).

How much could re-optimizing the sessions together gain? (preregistered 2026-12-03, before the run)

Re-optimizing a finished session together with the store (its own pose graph plus edges to the other sessions' submaps) can only pull it toward where the other sessions put the same place. If the sessions' errors at a place are shared (a common distortion, or the ground truth's own), it cannot help; if they are independent, it can, up to their average. Before building it, its ceiling is measured from numbers already collected (store_ape.collect, E's one store-to-truth transform). lifelong/accuracy/consensus_ceiling.py: for each committed submap, its horizontal error vector (store, aligned, minus ground truth); its place is every submap of the other sessions whose ground-truth position is within 3 m. Where at least 3 other sessions are there, the submap's error is replaced by the mean error over itself and one submap per other session (the nearest); elsewhere it is kept. Each session's horizontal RMSE after that is its ceiling. Also reported: the correlation of the error vectors between sessions at a place.

  • Rule: re-optimizing the sessions together is worth building when the median horizontal RMSE of the twenty sessions at their ceiling is at least 25% below the current one (0.54 m), and at least 60% of the submaps have a place with 3 other sessions. Otherwise it is not built: the error a joint optimization could remove is too small to be worth it.

Result (2026-12-03): worth building, narrowly. lifelong/accuracy/consensus_ceiling.json. 97% of the submaps have a place with at least 3 other sessions. The median horizontal RMSE of the twenty sessions is 0.536 m now and 0.396 m at the ceiling (−26%, the rule needed −25%).

  • The worst sessions gain most: 2012-03-31 1.49 -> 0.66 m, 2012-12-01 1.03 -> 0.50 m, 2012-11-16 0.95 -> 0.43 m, 2012-03-25 0.76 -> 0.36 m. Sessions already near 0.4 m hardly move (2012-02-18 0.39 -> 0.39 m, 2012-09-28 0.37 -> 0.37 m).
  • The error vectors of different sessions at a place are partly shared (correlation 0.32 in x, 0.42 in y), and the ceiling bottoms out at 0.33-0.44 m: that part is common to all sessions (a distortion every session has, or the ground truth's own) and no joint optimization removes it.
  • It is a ceiling: a joint optimization sees the other sessions through registration, not through their ground truth, and moves a session as a whole pose graph, not submap by submap.

Re-optimizing each session against the others, after the fact (preregistered 2026-12-03, before the run)

lifelong/accuracy/reopt_loo.py, offline, on store E as committed. For each session s, leave one out: every third of its submaps (the stored keyframe window, the session's body frame) is registered from its placed store pose against each of the other 19 sessions on its own (one _core.StoreRelocalizer per session; the same registration as startup relocalization and tracking). A registration is kept when it lands within 1.0 m and 3° of the placed pose. Each kept one is an absolute pose observation of that submap (Huber, information 2000, the tracking graph's); optimize_tracking then re-optimizes all of s's submap poses (its placed poses as the chain, 3 adjacent constraints each) with the other sessions held where they are. Every session is re-optimized against the original placements of the others (no iteration). The re-optimized submaps are scored as in store_ape.py, with E's one store-to-truth transform fitted before (unchanged).

  • Rule: re-optimizing improves the store when (a) every session gets at least 30 kept observations; (b) the median horizontal RMSE of the twenty sessions is at least 10% below the current 0.536 m; (c) no session's horizontal RMSE rises by more than 0.10 m. Anything else does not hold; the result is reported whatever it is and changes no default. As context: the ceiling above (0.396 m) and the error after refitting the store-to-truth transform.

Result (2026-12-03): holds. lifelong/accuracy/reopt_loo.json. Every session got at least 534 kept observations (2012-03-31; 712-1694 for the others), (a) is met. The median horizontal RMSE of the twenty sessions goes from 0.536 m to 0.437 m (−18.5%, (b) needed −10%); the largest rise is 0.066 m (2012-09-28, 0.374 -> 0.440 m; also 2012-02-18 0.395 -> 0.456 m), within (c)'s 0.10 m. With the store-to-truth transform refitted after, the median is 0.417 m; the ceiling was 0.396 m.

Session before after Session before after
2012-01-15 0.475 0.416 2012-05-26 0.573 0.311
2012-01-22 0.426 0.351 2012-06-15 0.457 0.377
2012-02-02 0.646 0.458 2012-08-04 0.594 0.436
2012-02-05 0.491 0.361 2012-08-20 0.500 0.466
2012-02-18 0.395 0.456 2012-09-28 0.374 0.440
2012-03-17 0.617 0.438 2012-10-28 0.385 0.378
2012-03-25 0.761 0.458 2012-11-04 0.493 0.415
2012-03-31 1.492 1.362 2012-11-16 0.946 0.640
2012-05-11 0.459 0.393 2012-11-17 0.600 0.381
2012-12-01 1.026 0.865
2013-02-23 0.706 0.510

Seventeen of twenty improve. The two worst sessions improve least (2012-03-31 and 2012-12-01, the fewest kept observations: their errors exceed the 1.0 m acceptance in places). Limits: it was measured on store E, the store its ceiling was measured on (nothing was tuned after the ceiling); each session was re-optimized against the others' original placements, so the twenty results are not one consistent store; and the run is offline (about 70 min on 4 cores for twenty sessions).

Re-optimizing a new session against the store, on new stretches (preregistered 2026-12-03, before the run)

The check above re-optimized store E's own sessions. Here the same method (reopt_loo.py's per-session step, unchanged: every third submap, each stored session on its own, kept within 1.0 m and 3°, optimize_tracking) re-optimizes a new session against E's twenty: the four second stretches (2012-01-08, 2012-02-04, 2012-02-12, 2012-02-19) as committed by the baseline arm B of "Store tracking with an overlap gate, on new stretches" (accuracy/second_B/<day>/E, session 0020). lifelong/accuracy/reopt_new.py scores them as holdout_compare.py does (E's one store-to-truth transform), before and after.

  • Rule: re-optimizing a new session improves it when (a) at least 3 of the 4 get at least 30 kept observations; (b) their median horizontal RMSE after is at least 10% below before (B: 0.441 m); (c) no session's horizontal RMSE rises by more than 0.10 m. Anything else does not hold; the result is reported whatever it is.

Result (2026-12-03): does not hold — no harm, but too little gain. reopt_new.json. All four get enough observations (411-823). Horizontal RMSE: 2012-01-08 0.432 -> 0.392 m, 2012-02-04 0.528 -> 0.529 m, 2012-02-12 0.424 -> 0.332 m, 2012-02-19 0.449 -> 0.447 m; median 0.441 -> 0.419 m (−4.8%, (b) needed −10%); largest rise 0.001 m. These four were already near the floor the sessions share (0.33-0.44 m at the ceiling above), where E's own sessions also hardly moved (2012-02-18, 2012-09-28, 2012-10-28); E's gains came from sessions at 0.57-0.95 m. So it is not confirmed on new data: on sessions that start near half a metre it neither helps nor harms, and whether it helps a new session that starts far off has not been tested on data not seen before.

Re-optimizing sessions at the second site, against ground truth (preregistered 2026-12-03, before the ground truth is read)

On NCLT, re-optimizing a session against the others (reopt_loo.py) lowered store E's median horizontal RMSE by 18.5%, its gains all from sessions far off (0.57-0.95 m), and on four new NCLT sessions that started near 0.44 m it neither helped nor harmed. Sessions far off on data not seen before are needed. The Christ Church store of "Height comparison that keeps stacked levels apart" (spires/christ_church_levels/store, six sessions: 2024-03-18-christ-church-01 to 04, 2024-03-20-christ-church-05 and 06, Oxford Spires, CC BY-NC-SA 4.0) was built with no ground truth read, and the method has not seen it. Oxford Spires gives each sequence a ground-truth trajectory (processed/trajectory/gt-tum.txt, from the site's terrestrial laser scan, one frame per site).

  • Scoring (oxford/spires_ape.py): each committed submap's stamp from the session's submaps.bin, its store-frame position as export places it (height_check.submap_poses), the ground truth interpolated at the stamp (submaps outside it are left out); one rigid transform from the store frame to the ground truth fitted to all six sessions; each session's horizontal RMSE after it.
  • Method (oxford/spires_reopt.py): reopt_loo.py's per-session step, unchanged (every third submap against each other session on its own, kept within 1.0 m and 3°, optimize_tracking), for each of the six against the other five; scored before and after with the transform fitted before.
  • Rule: a session is far off when its horizontal RMSE before is at least 0.50 m. Re-optimizing helps sessions far off on new data when (a) at least one session is far off and every far-off session gets at least 30 kept observations; (b) the far-off sessions' median horizontal RMSE after is at least 10% below before; (c) no session (far off or not) rises by more than 0.10 m. If no session is far off, the check cannot be made and is reported as such. Anything else does not hold; the result is reported whatever it is.

Amendment (2026-12-03, before any session is scored). Oxford Spires publishes gt-tum.txt for only three of the six: christ-church-02, 03 and 05 (01, 04 and 06 have none; only each file's first line was seen, to check the download). So: all six are still re-optimized as above (each against the other five), but only 02, 03 and 05 are scored, with the store-to-truth transform fitted on those three; (a)-(c) apply to them. Nothing else changes.

Result (2026-12-03): cannot be made — no session is far off. oxford/christ_church/spires_reopt.json. The three scored sessions are already within 0.08 m of the ground truth horizontally:

Session kept observations before after
christ-church-02 372 0.077 m 0.075 m
christ-church-03 167 0.025 m 0.055 m
christ-church-05 391 0.072 m 0.075 m

No session reaches 0.50 m, so (a) fails for want of a far-off session and the rule cannot decide. On these accurate sessions the re-optimization changes little (largest rise 0.03 m, 03; the median registration offset to the other sessions is 0.08-0.13 m). Two things follow, neither measured beyond this: at this site the store is an order of magnitude more accurate than store E on NCLT (0.03-0.08 m against 0.37-1.49 m), with the same pipeline and defaults; and NCLT's floor of 0.33-0.44 m that no session goes below may be as much the NCLT ground truth's (RTK GPS and LiDAR scan matching) or the Segway rig's as the store's. Whether re-optimizing helps a far-off new session is still not confirmed on data not seen before.

Re-optimizing far-off new sessions (preregistered 2026-12-03, before the run)

Re-optimizing against the other sessions has helped only store E's own far-off sessions; new sessions far off have not been available. The tracking arms of "Store tracking with an overlap gate, on new stretches" left eight: the four second stretches as committed with --track-store (arm T, accuracy/second_T/<day>/E, session 0020: 0.714, 1.075, 0.338, 0.434 m horizontal RMSE) and with --track-store --track-overlap-gate 0.997 (arm O, second_O: 2.212, 2.366, 4.294, 1.609 m). They are far off because a tracking option pulled them off, not by their own drift, so they test recovery from a wrong placement, not from odometry drift. The method is unchanged (reopt_new.py, the per-session step of reopt_loo.py: every third submap against each of E's twenty sessions on its own, kept within 1.0 m and 3° of the placed pose, optimize_tracking), as is the scoring (E's one store-to-truth transform). lifelong/accuracy/reopt_far.py runs both arms and applies the rule.

  • Rule (as at the second site): a session is far off when its horizontal RMSE before is at least 0.50 m (here: T 2012-01-08 and 2012-02-04, all four of O; six). Re-optimizing recovers far-off new sessions when (a) every far-off session gets at least 30 kept observations; (b) their median horizontal RMSE after is at least 10% below before; (c) no session of the eight rises by more than 0.10 m. Anything else does not hold; the result is reported whatever it is. Expected limit, stated before the run: the 1.0 m acceptance may keep few registrations where a session is metres off (arm O).

Result (2026-12-04): does not hold — four far-off sessions recover, two get worse. reopt_far.json (and reopt_far_second_T.json, reopt_far_second_O.json). (a) is met (at least 247 kept observations each). Horizontal RMSE before -> after:

Arm Session kept before after
T 2012-01-08 683 0.714 m 0.715 m
T 2012-02-04 295 1.075 m 0.582 m
T 2012-02-12 747 0.338 m 0.342 m
T 2012-02-19 586 0.434 m 0.412 m
O 2012-01-08 425 2.212 m 0.603 m
O 2012-02-04 247 2.366 m 0.735 m
O 2012-02-12 292 4.294 m 4.996 m
O 2012-02-19 430 1.609 m 1.957 m

The six far-off sessions' median goes from 1.910 to 0.725 m (−62%, (b) is met), but (c) fails: O 2012-02-12 rises by 0.70 m and O 2012-02-19 by 0.35 m. Where a session is metres off, the registrations kept within 1.0 m of its wrong placement agree with that placement (median offset 0.12-0.15 m) and can hold it there or pull it further off; where it is off by a smooth amount, they pull it back (O 2012-01-08 and 2012-02-04 to 0.60-0.74 m, near the NCLT floor). Not examined further; nothing was tuned. So re-optimizing can recover a far-off new session, but not safely: it also made two worse, and it stays an analysis script.