Repository navigation
Added
- Every merge is a release, decided by what was merged. Pull request
titles are Conventional Commits (apr-titlecheck enforces it), and on
each mergerelease.ymltakes the largest bump the PR's title and commits
ask for —fix→ patch,feat→ minor,feat!→ major — bumps the version
everywhere, dates this changelog, commits and tagsmain, and publishes to
PyPI. No release PR and nothing to approve. Arelease:*label overrides
the bump. See.docs/RELEASING.md. - The intent to publish, written down.
.docs/PUBLISHING.mdsays why and
where we mean to publish jupyddl as citable research software — a Zenodo DOI
per release, a JOSS paper, ICAPS workshops for the research results — with a
readiness checklist, the paper outline, the AI-usage disclosure JOSS requires
and how contributors can be considered for authorship. The README states the
project's aim (a framework to build on and to explain algorithms with) and
its Cite section says which version the 2021 preprint describes. - Plugins. A package can now add planners, heuristics and generators by
declaringjupyddl.planners,jupyddl.heuristicsorjupyddl.generators
entry points; once it is installed,jupyddl solve -s <its planner>works
without anyone importing it. Discovery is lazy (the CLI runs it before
building its parser, the library only when asked for a name it does not
know), a built-in name always wins, a plugin that fails to import is skipped
with a warning, andJUPYDDL_NO_PLUGINS=1turns it off.jupyddl plugins
lists what was found. .docs/EXTENDING.md, a guide to building on the framework: a heuristic,
a planner from a priority function, a planner from scratch with the full
budget/observer contract, a generator, how to test the guarantees you claim,
and how to ship it all as a plugin. Every example runs in the test suite, so
the guide cannot drift from the API.best_firstaccepts a tuple priority for tie-breaking
(lambda g, h: (g + h, h)); observers are given its first element asf.- Community files for outside contributors: a security policy, a
pull-request template, a Propose an algorithm issue template, and an
"Adding an algorithm" section inCONTRIBUTING.md.
Changed
-
CI now runs on pull requests, including from forks.
testsandbuild
wereon: [push], which never fires for a fork, so an outside contributor's
PR showed no checks at all. They now run on every pull request and on pushes
tomain. -
Documentation lives in one place:
.docs/. It was spread over three
directories —docs/for the contributor files and the README charts,
promo/for the videos and screenshots,.docs/for the research notes —
with no rule saying which took what, so every new file was a guess. The
research notes, the release runbook and every image, video and measurement
cache are now under.docs/, with binaries in.docs/assets/. This also
matchespymapf, the sibling project.Paths quoted in the released sections below are the ones that were correct
at the time.promo/rl-data.jsonis now.docs/assets/rl-data.json, and
docs/images/is now.docs/assets/.CONTRIBUTING.mdandCODE_OF_CONDUCT.mdmoved to.github/rather than
.docs/: GitHub only recognises those two files in the repository root,
.github/ordocs/, so filing them under.docs/would have silently
dropped the contributing link on the issue and pull-request forms.
Fixed
Wrong answers from the task model and the heuristics. Each of these returned a
plan, a cost or a value without complaint, and validate_plan accepted the
plans because it replays them through the same model. They are now pinned by
tests/test_semantics.py on tiny tasks whose right answer is obvious.
- Derived facts were never retracted. An action that deleted the support of
a derived fact left it true, and(not <derived>)held from the initial state
on. Axioms are now recomputed from scratch after every step, and a negated
derived fact is maintained with them. Negating a derived predicate inside
another rule needs stratification and is now refused by name. - An atom both added and deleted left its complement true as well, so
(not (at a))and(at a)could hold together, and awhenthat re-added a
deleted atom did the same. For complement facts the delete now wins. - Action costs. Under a
(total-cost)metric an action with no cost effect
now costs 0, as in IPC planners, rather than 1 — on pegsol and sokoban the
"optimal" planners were optimising the wrong objective. A cost insidewhen
was charged whether or not the condition held; it is now refused, as is a
negative cost. - A numeric fluent that is never defined read as 0, so
(distance a c)for
a road that does not exist cost nothing. Conditions and effects reading one
now fail, as PDDL 2.1 specifies. blindwas not admissible when any action is free, which every PDDL 3
compilation introduces, soastar+blindcould return a costlier plan.h1/h2/hmcrashed on every numeric or timed task, and LM-cut
crashed on an empty goal, which made the defaultsolve()crash too.lmcutandh2claimed admissibility on tasks with conditional effects,
where they can overestimate. The instance flag now says so.solve_task(task, "astar")usedhff, which is not admissible, so the
default A* was not optimal. Optimal planners now default tolmcut.-H none
also fell through tohff; it now meansblind.make_heuristic(LMCutHeuristic, task)returned the class unbuilt, and the
planner then crashed calling it on a state. Classes and partials are now built.- Results depended on
PYTHONHASHSEED. Fact ids followed string hashing,
so LM-cut broke ties differently in every process: gripper withastar/lmcut
expanded 1725, 1758 or 1760 nodes and returned different plans. Ids are now
assigned in sorted order, so a benchmark reproduces. iddfs,idastarandehcignored their budget, so--time-limit 0.5
on blocksworld12 ran for minutes.beampolled once per layer andbnbkept
evaluating LM-cut on every sibling after the budget fired; both now stop at
once. A new contract test runs every planner where the budget is the only
thing that stops it.- A depth cap was reported as "no plan exists" (
iddfs,bnb), and a
bnbplan found under one as optimal. Hitting the cap now setstruncated,
as does a search deeper than Python's recursion limit. bfsandiddfswere listed as optimal. They minimise plan length;
on errands they return cost 16 where 10 is optimal. They are no longer in
OPTIMAL_PLANNERS, and the workbench no longer badges them.- The live dashboard said "no plan found" when the budget stopped the
search, smeared every repaint on a narrow terminal (lines were never clipped
to its width), and logged ten times too often when not on a terminal. idastar,ehc,hcandbeamwithout a heuristic raise a clear
ValueErrorinstead of aTypeErrorfrom deep inside the search;
MultiObserveraccepts positional arguments like the base class; the
SearchObserverdocstring no longer claims hooks are called defensively.- The command line's exit codes say what happened: 0 solved, 1 no plan, 2
bad input, 3 stopped by a budget, 4 a plan that failed validation. Before,
unsolvable, out-of-budget and a crash all exited 1. Bad input — a missing
file, a parse error, an unknown planner — is one line on stderr instead of a
traceback (JUPYDDL_DEBUG=1brings the traceback back).--versionexists. jupyddl demoandjupyddl benchmark demosnever finished: neither took
a budget, anddemo's blind runs on blocksworld12 do not end. Both now stop
each search after 10 s by default;animateanddemoaccept
--max-expansionsand--time-limitlikesolve.benchmarkchecks--planners,--heuristicand--metricbefore running
rather than reportingnosuch 0/13, and every chart option checks for the
vizextra before searching instead of failing (or silently writing
nothing) afterwards.- A dead end crashed the charts (
Axis limits cannot be NaN or Inf) and
coloured the wavefront NaN; in the workbench, an infinitehorfmade the
progress message invalid JSON and aborted the run. - A trace's plan showed compiler bookkeeping (
__observe-1#1) and
disjunct tags; it now records the plan the user reads. - The sdist's own test suite failed: it dropped
.github/entirely while a
test checksCONTRIBUTING.mdis there. Only.github/workflows/is left
out now.buildrunstwine check --strict, likereleasedoes. blackis pinned to one major version in both the dev extra and the
formatworkflow, which installed whatever was newest; Renovate now pins
third-party actions to commit digests.- Learned-heuristic top-1 was neither held out nor tie-safe. A sibling
scoring level with the successor the plan took counted as a correct ranking,
so a model that outputs a constant scored 1.000 — and checkpoint selection,
which reads top-1, could prefer a collapsed epoch.Corpus.splitalso gave
the held-out side no ranking groups, so the "held out" top-1jupyddl learn
printed was measured over training instances. A tie withksiblings now
earns1/(k+1), a sibling identical to the chosen successor in features and
step cost is not recorded at all, and selection and the reported top-1 use
the held-out groups. The published figures came from the old rule; see the
dated corrections in.docs/learned-heuristics.mdand
.docs/rl-for-search.md. - A DAgger or bootstrap state could validate against its own instance.
splittreatedX#dagger1as an instance apart fromX; it now groups on
the name before the#. summarise_transferaveraged each heuristic over the runs it solved, so
one that solved only the easy instance looked many times better than one that
solved both. An unsolved run is now charged twice the budget, as
search_costcharges it, and plan cost compares only instances every
configuration with any coverage solved. The imitation-only blocksworld mean
the docs quote as 366 is 6 329 under that rule.- A malformed learned heuristic loaded, then gave one answer with NumPy and
another without. A network whose input width is not the feature vector's,
a ragged row, asizesfield that does not describe the weights, a
non-finite value or a non-positive scale is now aValueErroron load.
MLP.set_flatchecks the length before writing anything, instead of leaving
a wrong-length vector half-applied. - Every negated fact shared one feature,
not. Complement facts now key on
the predicate they negate (not-sampled), so rovers and workshop get a slot
per negated predicate. A model trained on a domain with negative
preconditions before this sees different features now; retrain it. train()with a pure ranking objective and no ranking groups returned its
random initialisation as a trained model; it now raises.learn_heuristic
spent a generator passed assizeson its first read, recording[]and
raising undercem_iterations; size arguments are now read once, on entry.gripperandworkshopignored their seed. Twenty seeds gave one
instance, so a split by seed held out copies of training instances, and the
RL stage's tuning and validation sets were the same problems. The seed now
decides which room each ball and the robot start in (every ball still has to
change rooms), and how far along the pipeline each part starts. Every
generated gripper and workshop instance changes;demos/workshopis the one
in which every part starts raw, andgenerateno longer reproduces it.- Generators could emit an instance solved before it starts.
blocksworld
compared tower lists in order and skipped the check for two blocks, where 75
of the first 200 seeds came out trivial;random-stripscould draw a goal
that already held. Both now re-draw only in that case, so every instance that
was not trivial is byte-identical to before. - The benchmark harness merged configurations that differed in planner
arguments —wastarat weights 1 and 5 summarised as one entry with twice
the instances — and recorded("gbfs", None)as heuristic""although it
ranhff. Rows carry aconfiglabel with the arguments
(wastar/hff(weight=5.0), also a new CSV column), whichsummarizeand the
dashboard group on; a repeated config is suffixed#2; andheuristicis
whatsolve_taskactually ran, worked out by the new
jupyddl.api.resolve_heuristic.
Wrong answers from the PDDL front end. The parser and the PDDL 3 compilations
handed the grounder a different problem from the one written, so plans
validated — against the wrong problem. Each case is now pinned by
tests/test_frontend_semantics.py.
- Durative actions merged their at-start and at-end effects, and an add
beat a delete, so(at start (busy)) (at end (not (busy)))ended with
(busy)true. The at-end effects now apply after the at-start ones and win a
conflict, and over-all and at-end conditions are checked in the state after
the at-start effects rather than before them.alwaysis checked in that
state too; the other trajectory constraints are refused when a durative
action has at-start effects, because their monitors cannot see it. sometime-aftercould not be met by the final state. An obligation
recorded by the last action's monitor could never be discharged, so the
plan[t, r]was reported unsolvable; the goal now accepts the response
holding at the end.forallaround a trajectory constraint moved inside it:
(forall (?x) (sometime (lit ?x)))meant one moment with every?xlit at
once. It is now one constraint per object. A soft constraint underforall
crashed with anAttributeError; it is refused by name like the others.- A goal preference under
forallkept its free variable and could never
be satisfied; it is now one preference per object. Undernot,or,imply
orexistsa preference silently made the goal false; it is now an error. - Timed initial literals slipped past the PDDL 3 machinery. The
at-most-onceandsometime-aftermonitors ignored the states literals
fired in, a literal could fire after the preferences had been paid out, and
a plan could end before a literal that was already due had fired. - Object fluents in trajectory constraints were read as numeric
comparisons; they are now compiled as everywhere else. Assigning one object
fluent's value to another took the function's name for an object; it is
refused. - The metric. A preference the metric does not mention cost 1 to violate
rather than nothing, a metric without(total-cost)still charged for
actions,maximizewas silently minimised, and(total-time)charged an
instantaneous action 1.maximize, any metric other than(total-cost)or
(total-time)plus weighted(is-violated p)terms, and a metric pricing a
preference the goal does not declare are now refused. ground()edited the domain it was given, so a second problem grounded
against the same parsed domain inherited the first one's synthetic actions
and lost the domain's own constraints.- Misspelt PDDL was accepted.
:preconditongave an action with no
precondition and(:goals ...)a problem with an empty goal; unknown keys
and sections and a missing:goalare now errors that name them. Malformed
input —(?x -),(when (q)),(:goal)— raised a bareIndexError; it is
aPDDLError, and an unbalanced parenthesis names its line. - Objects called
nan,inforinfinitywere read as numbers. (increase (total-cost) (road-length ?a ?b))was refused although
:action-costsis listed as native. A cost over static functions is now
evaluated when grounding, so the IPCtransportdomains load.:fluents
now implies:object-fluents, and:ucpop,:domain-axiomsand
:safety-constraintsare refused by name rather than as unknown flags.