Skip to content

Plan 3 W13 WP 13.2: auto-resume stops retrying for targets that have set, and waits after an unsafe stop (#1308) - #1356

Merged
epim merged 2 commits into
mainfrom
wave13/wp-13-2
Nov 30, 2026
Merged

epim merged 2 commits into
mainfrom
wave13/wp-13-2

Conversation

@epim

@epim epim commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Closes #1308.

What was wrong

On 2026-11-10 the start-floor refusal said "retrying in 10 min" fourteen times for a mosaic whose panels had set below their floors and could not rise again that night. Separately, the arm unparked, slewed and solved 44 s after the engine had parked the mount at the end of a 45 minute cloud hold.

What changes

  • A target has set for tonight when it is below its plan's floor, falling, and not back at that floor before the night or its own window ends. When every target the resume could still run has set, the ladder refuses before it touches a device, says so once, and makes no further attempt for that session that night. The hold stands with no retry time.
  • One target that can still run keeps the ladder going. A floor refusal over several targets says how many were below their floors.
  • A rising target keeps the ten minute retry, also when it will not reach its floor before dawn, and a falling target that comes back before dawn is not called set.
  • The first attempt after a run the arm saw end unsafe waits one retry interval: no solve, no slew, no start before then. The engine marks no cloud-limit cause of its own, so every unsafe stop waits (An unsafe stop has no typed cause, so auto-resume waits after every one #1354).
  • The new lines carry no altitude, azimuth, hour angle or time.

Tests

server/tests/test_w13_2_resume_set_target.py (18 tests), each through ResumeArm.tick on a clocked rig with a made-up site, and three existing resume-arm files updated where they pinned the old words.

Mutants, each run from a byte backup and restored byte-identical:

Mutant Result
the falling condition dropped (ahead >= alt no longer required) 1 failed: a rising target that misses its floor before dawn is called set
the return before dawn ignored 1 failed: a falling target that comes back is called set
the target's own stop ignored 1 failed: a target whose own stop comes before its return is not called set
the set check removed the fourteen-retries test fails
the unsafe-stop wait removed the 44 s test fails

On the tree merged with main: the 69 test files that build the resume arm, plus the ratchets and the set-aside promises: 1877 passed.

Found, filed separately

🤖 Generated with Claude Code

https://claude.ai/code/session_01K7CHb44VFtZLGUDLF4us2p

epim and others added 2 commits November 30, 2026 01:54
…ve set below their floors, says what it checked, and waits one interval after an unsafe stop (#1308)

On 2026-11-10 the start-floor refusal said "retrying in 10 min" fourteen
times for a mosaic whose panels had set and could not rise again that
night, and the arm unparked, slewed and solved 44 s after the engine had
parked at the end of a 45 minute cloud hold.

A target has set for tonight when it is below its plan's floor, falling,
and not back at that floor before the night or its own window ends
(_has_set_for_tonight). When every target the resume could still run has
set, _recover refuses before it touches a device, tick says so once and
makes no further attempt for that session that night; the hold stands
with no retry time and the window's close is an info line. One target
that can still run keeps the ladder going, and a floor refusal over
several targets says how many were below their floors. A rising target
keeps the ten minute retry, also when it will not reach its floor before
dawn.

The first attempt after a run the arm saw end unsafe (the engine's
end_reason) waits RETRY_INTERVAL_S: no solve, no slew, no start before
then. The engine marks no cloud-limit cause of its own, so every unsafe
stop waits.

New lines carry no altitude, azimuth, hour angle or time.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K7CHb44VFtZLGUDLF4us2p
@epim
epim merged commit 48be1e2 into main Nov 30, 2026
17 checks passed
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.

Auto-resume retries a target that has set for the night, and slews into the cloud that just stopped the run

1 participant