Repository navigation
Releases
jupyddl 2.5.0
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#. - **...
jupyddl 2.4.0
Added
- A Research view in the workbench.
jupyddl.learnshipped in 2.3.0 with
its results only in.docs/and a video, which meant the published site said
nothing about the biggest addition in the release. The view carries the
measured run: imitation againsthffandgoalcount, the per-instance
spread behind the mean, the logistics loss and why the feature space causes
it, and the three claims that turned out to be wrong. Its numbers are built
frompromo/rl-data.json— the same cache the RL video renders from — so the
page and the video cannot drift apart, and a test pins them together.
Fixed
- Reading the workbench no longer costs a 10 MB download.
<main>was
hidden until Pyodide reported ready, so every page of prose, the requirement
matrix and the new Research view sat behind a full-screen spinner waiting for
a runtime none of them use. The shell now renders immediately from the
committed bundle, the boot notice is a status bar rather than a splash
screen, and only the controls that actually run a planner stay disabled until
the interpreter arrives.
Changed
- Python 3.10 is the new floor, and the matrix runs 3.10 through 3.14.
3.9 reached end of life in October 2025;requires-pythonmoved to match
what is actually tested. - The
pddl-examplessubmodule advances to a corpus that now grows on its own:
it imports fresh domains from planning.domains daily. - All URLs follow the organisation's rename to
openplan-labs.
Removed
- Mergify. Its auto-merge rule waited on an approving review that a
single-maintainer project does not produce, and its reviewer-assign rule
pinged an inactive account; every recent pull request was merged by hand.
jupyddl 2.3.0
Added
jupyddl.learn: heuristics trained from your own solved plans. Every
solved instance is a labelled trajectory — the cost of a plan's suffix from a
state on it is that state's cost-to-go — so a corpus of plans is supervision
that already exists. Stdlib-only like the rest of the core;pip install jupyddl[learn]adds NumPy purely for speed, and the two code paths are pinned
together by a test.- A ranking objective, by default. Greedy best-first search never reads a
heuristic value, only the order it imposes, so the loss optimises the order:
at each state on a plan, the successor the plan took should sort ahead of the
siblings it passed over. A small regression term is kept to anchor a scale,
which pure ranking leaves undefined andwastarneeds. Checkpoints are
selected on top-1 ranking accuracy rather than validation error. - A reinforcement stage that optimises search cost directly, since "nodes
expanded" is not a differentiable function of the weights: DAgger for the
distribution shift, bootstrapping for the instances too hard to label, and
the cross-entropy method over the weight vector with the planner as a black
box. On blocksworld this took a held-out set from 366 expansions and 0.90
coverage to 137 and 1.00 — though see.docs/rl-for-search.md: that mean is
dominated by one hard instance, and the durable claim is the coverage one. jupyddl learn, andlearned:<model.json>accepted anywhere a heuristic
name is —solve,benchmark, the API.make_heuristicalso passes through
an already-built heuristic, so callers holding a trained model need not
round-trip it to disk..docs/— research notes: the prior work, the measured results including the
domain where this loses badly and exactly why, the MDP the RL stage
corresponds to, and a roadmap.
Fixed
alwayswas not enforced across the actions timed initial literals compile
to. The invariant went onto the domain's own actions and the goal, on the
argument that every state is either taken from by an action or is the final
one — but the firing and waiting actions a timed literal compiles to also
change facts, and they were exempt. A literal clearing(safe)at t=3 and one
restoring it at t=4 fire back-to-back, so the unsafe state in between was
never checked and the plan was reported valid. Invariants now go onto every
action.- The browser bundle is byte-reproducible again.
tools/build_web.py
sorted the files inside each directory but letos.walkvisit the
subdirectories in filesystem order, sojupyddl-sources.jsoncame out
byte-different on a CI runner and the staleness check failed on a bundle that
was not stale. formatno longer strandspages. It reformatsjupyddl/and commits to
main;web/distembeds those sources verbatim andpagesrefuses to deploy a
bundle that has drifted, so the reformat could leave main undeployable. The
rebuild now rides along in the same commit.- The sdist shipped 6.6 MB of marketing. Hatchling's defaults packed the
promo video, every screenshot and every documentation chart alongside a 105 KB
wheel. Now 235 KB, and it still builds, installs and passes its own suite —
which two parser tests previously broke, hard-failing without the
pddl-examplessubmodule instead of skipping like the other 156. - Mergify's auto-merge rule matched no check. It required
check-success=tests, which is the workflow name — the checks are the
matrix jobs (test (ubuntu-latest, 3.12, dev)), so the rule never fired.
Changed
- CI runs the suite on Python 3.13 and 3.14 as well as 3.9–3.12, and lints
tools/alongsidejupyddlandtests. - One matrix entry installs the
vizextra.tests/test_viz.pyand
tests/test_cli_viz.pyimportorskipmatplotlib, so 26 of their 30 tests —
the entire charting surface — were silently skipped in CI. buildno longer re-runs the lint thetestsmatrix already ran. It builds
the sdist and wheel,twine checks them, installs the wheel into a clean
environment and plans with it from outside the repository — packaging
breakage an editable install cannot show.actions/checkoutv4 → v7,actions/setup-pythonv5 → v7,
codecov/codecov-actionv4 → v7 (#146, #150, #145); theformatjob runs on
Python 3.14 (#149); the Mergify config drops the deprecated
delete_head_branchblock (#143).
v0.4.1
v0.4.0
- Add
DataAnalystdocumentation - Add
DataAnalystheuristics performance comparer - Improve
DataAnalystplots - Add Delete Relaxation Heuristics
- Add a git submodule for
PDDLdomains and problems - Overload of str for cleaner string formatting
- Improve coverage
v0.3.0
Changelogs
- Add the DataAnalyst tool
- Pair of problem/domain subfolders in
data/are now retrievable in a private method - Run searches on all problem/domain in those subfolders and plot their complexity metrics
- Run searches on a specific problem/domain and plot its complexity metrics
- Exclude some planners when computing the data for complexity metrics