Skip to content

Return a temporal policy even when the optimal search does not finish - #63

Merged
HanielUlises merged 1 commit into
rollingfrom
temporal/fallback
Nov 23, 2026
Merged

HanielUlises merged 1 commit into
rollingfrom
temporal/fallback

Conversation

@HanielUlises

Copy link
Copy Markdown
Collaborator

The optimal temporal search can run out of time (two-site under unequal durations: no policy in 600 s, 42M expansions). The solver then returned nothing, though an untimed policy existed.

  • The optimal search now gets three quarters of the solver timeout. If it does not finish (and has not proved that no policy exists), the solver plans untimed in the rest and schedules the result with temporal::schedule_untimed (del-planner 0.5.0, Prune by remaining times, and schedule an untimed policy soundly (0.5.0) HanielUlises/del-planner#13): each action starts as early as StartCheck allows, after the sensing action selecting it ends. Admissible by construction, no longer than the untimed policy in sequence; on two-site's random-duration seeds 25-40% shorter than sequential and 14-24% shorter than post-hoc dispatch, 0/1200 noisy failures. It is not necessarily the shortest, and the solver logs that.
  • EPISTEMIC.temporal_max_expansions (0 = none) bounds the optimal search, which makes the fallback testable.
  • del-planner pinned at 17cd874 (0.5.0: the fallback scheduler and dominance pruning on remaining times); the planner asks for find_package(aletheia 0.5).
  • Docs and the bringup params file.

Testing on Humble: temporal_plan_test 5/5 (new: the scheduled untimed depot policy serialises, under 72 s); test_8 4/4 (new: one expansion forces the fallback, the planner returns the scheduled policy, the corridor mission succeeds). Rolling uncrustify and cpplint clean.

The optimal temporal search can run out of time: the two-site survey
under unequal durations finds no policy in 600 s. The solver then
returned nothing, though an untimed policy existed.

It now gives the optimal search three quarters of the timeout. If that
does not finish, it plans untimed in the rest and schedules the result
with del-planner's schedule_untimed (0.5.0, pinned at 17cd874): each
action starts as early as StartCheck allows after the sensing action
that selects it has ended. That is an admissible temporal policy, no
longer than the untimed one run in sequence, and on two-site's
random-duration seeds 14-24% shorter than post-hoc dispatch; it is not
necessarily the shortest, and the solver says so.

temporal_max_expansions bounds the optimal search, which makes the
fallback testable: test_8 forces it with a limit of one expansion, and
the corridor mission still succeeds on the scheduled untimed policy.
@HanielUlises
HanielUlises merged commit a085e17 into rolling Nov 23, 2026
4 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.

1 participant