Skip to content

A re-aim must not step over the sample that covers its boundary (#423) - #426

Merged
superuser404notfound merged 1 commit into
mainfrom
fix/ae423-nearest-covering-sync
Aug 25, 2026
Merged

superuser404notfound merged 1 commit into
mainfrom
fix/ae423-nearest-covering-sync

Conversation

@superuser404notfound

Copy link
Copy Markdown
Owner

A spacing change, not a trade: the same reach and the same number of attempts, with the landing error cut where the accuracy actually comes from.

The mechanism

Each re-aim attempt opens on the first sync sample at or above where it aimed, and everything above the previous aim is already proven empty. So the DISTANCE between two attempts is the worst case by which the gate can overshoot the last sample that would have covered the boundary. The list doubled (4, 8, 16, 32), which spends that error exactly where it is largest.

On the AE#408 fixture (sync samples at 38.417 and 43.0, drought to 55.0, boundary 52.0), resuming at 53 s:

aims gate opens published shift
before 48.0, 44.0, 36.0 38.417 -13.583
after 48.0, 44.0, 40.0 43.000 -9.000

Three attempts either way. The 8 → 16 jump flew over the 43.0 sitting between it and the boundary. 43.0 is the last sync sample below 52.0, so the remaining 9 s is the drought itself and not a choice.

seektest settles the same improvement from the seek side: settleError 3.80 s against 8.38 s before, same burst and same throttle.

Why even steps are free

gateProvenEmptyFromPts stops each scan at the PREVIOUS aim rather than at the boundary (AE#408 built that), so an attempt reads its own window and not the whole drought. Walking 4, 8, 12, … costs the same as 4, 8, 16, …; a doubling list buys reach the last entry already provides, and pays for it in the one place the accuracy comes from. Reach is unchanged at 32 s, so no source that used to be recoverable stops being one.

Note

Only visible because AE#418 made the axis honest. Until then the landing claimed the target either way, which is why this sat under a fix that was measured and shipped without anyone seeing it.

Control fixture (Cues ARE its sync samples): zero re-aims and axisErr=+0.000 on both arms. 2082 tests green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RbWZLwBVLGM1xUVXa9NeJ1

…undary (#423)

Each re-aim attempt opens on the first sync sample at or above where it aimed,
and everything above the previous aim is already proven empty, so the DISTANCE
between two attempts is the worst case by which the gate can overshoot the last
sample that would have covered the boundary. The backoff doubled, which spends
that error exactly where it is largest.

On the AE#408 fixture (sync samples at 38.417 and 43.0, drought to 55.0, boundary
52.0), resuming at 53 s:

  before   aims 48.0, 44.0, 36.0   opens 38.417   presentedShift=-13583
  after    aims 48.0, 44.0, 40.0   opens 43.000   presentedShift=-9000

Three attempts either way. The 8 -> 16 jump simply flew over the 43.0 between it
and the boundary. seektest settles the same improvement from the seek side:
settleError 3.80 s against 8.38 s before, same burst, same throttle.

Even steps cost no more to walk, which is why this is a spacing change and not a
trade. gateProvenEmptyFromPts stops each scan at the PREVIOUS aim rather than at
the boundary (AE#408 built that), so an attempt reads its own window and not the
drought; a doubling list buys reach the last entry already provides and pays for
it in the one place the accuracy comes from. Reach is unchanged at 32 s.

Only visible because AE#418 made the axis honest: until then the landing claimed
the target either way.

Control fixture (Cues ARE its sync samples): zero re-aims and axisErr +0.000 on
both arms. 2082 tests green.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01RbWZLwBVLGM1xUVXa9NeJ1
@superuser404notfound
superuser404notfound merged commit 8ded338 into main Aug 25, 2026
4 checks passed
@superuser404notfound
superuser404notfound deleted the fix/ae423-nearest-covering-sync branch September 4, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant