A dependency-free, pure-Python PDDL planning framework: parser, grounder, classical-to-SOTA planners, heuristics and a benchmarking harness
Repo openplan-labs/PythonPDDL, read from GitHub 14 h ago. openplan-labs has not joined Take My Repo.
pr-title check enforces it), and onrelease.yml takes the largest bump the PR's title and commitsfix → patch, feat → minor, feat! → major — bumps the versionmain, and publishes torelease:* label overrides.docs/RELEASING.md..docs/PUBLISHING.md says why andjupyddl.planners, jupyddl.heuristics or jupyddl.generatorsjupyddl solve -s <its planner> worksJUPYDDL_NO_PLUGINS=1 turns it off. jupyddl plugins.docs/EXTENDING.md, a guide to building on the framework: a heuristic,best_first accepts a tuple priority for tie-breakinglambda g, h: (g + h, h)); observers are given its first element as f.CONTRIBUTING.md.CI now runs on pull requests, including from forks. tests and build
were on: [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
to main.
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
matches pymapf, the sibling project.
Paths quoted in the released sections below are the ones that were correct
at the time. promo/rl-data.json is now .docs/assets/rl-data.json, and
docs/images/ is now .docs/assets/.
CONTRIBUTING.md and CODE_OF_CONDUCT.md moved to .github/ rather than
.docs/: GitHub only recognises those two files in the repository root,
.github/ or docs/, so filing them under .docs/ would have silently
dropped the contributing link on the issue and pull-request forms.
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.
(not <derived>) held from the initial state(not (at a)) and (at a) could hold together, and a when that re-added a(total-cost) metric an action with no cost effectwhen(distance a c) forblind was not admissible when any action is free, which every PDDL 3astar+blind could return a costlier plan.h1/h2/hm crashed on every numeric or timed task, and LM-cutsolve() crash too.lmcut and h2 claimed admissibility on tasks with conditional effects,solve_task(task, "astar") used hff, which is not admissible, so thelmcut. -H nonehff; it now means blind.make_heuristic(LMCutHeuristic, task) returned the class unbuilt, and thePYTHONHASHSEED. Fact ids followed string hashing,astar/lmcutiddfs, idastar and ehc ignored their budget, so --time-limit 0.5beam polled once per layer and bnb keptiddfs, bnb), and abnb plan found under one as optimal. Hitting the cap now sets truncated,bfs and iddfs were listed as optimal. They minimise plan length;OPTIMAL_PLANNERS, and the workbench no longer badges them.idastar, ehc, hc and beam without a heuristic raise a clearValueError instead of a TypeError from deep inside the search;MultiObserver accepts positional arguments like the base class; theSearchObserver docstring no longer claims hooks are called defensively.JUPYDDL_DEBUG=1 brings the traceback back). --version exists.jupyddl demo and jupyddl benchmark demos never finished: neither tookdemo's blind runs on blocksworld12 do not end. Both now stopanimate and demo accept--max-expansions and --time-limit like solve.benchmark checks --planners, --heuristic and --metric before runningnosuch 0/13, and every chart option checks for theviz extra before searching instead of failing (or silently writingAxis limits cannot be NaN or Inf) andh or f made the__observe-1#1) and.github/ entirely while aCONTRIBUTING.md is there. Only .github/workflows/ is leftbuild runs twine check --strict, like release does.black is pinned to one major version in both the dev extra and theformat workflow, which installed whatever was newest; Renovate now pinsCorpus.split also gavejupyddl learnk siblings now1/(k+1), a sibling identical to the chosen successor in features and.docs/learned-heuristics.md and.docs/rl-for-search.md.split treated X#dagger1 as an instance apart from X; it now groups on#.summarise_transfer averaged each heuristic over the runs it solved, sosearch_cost charges it, and plan cost compares only instances everysizes field that does not describe the weights, aValueError on load.MLP.set_flat checks the length before writing anything, instead of leavingnot. Complement facts now key onnot-sampled), so rovers and workshop get a slottrain() with a pure ranking objective and no ranking groups returned itslearn_heuristicsizes on its first read, recording [] andcem_iterations; size arguments are now read once, on entry.gripper and workshop ignored their seed. Twenty seeds gave onedemos/workshop is the onegenerate no longer reproduces it.blocksworldrandom-strips could draw a goalwastar at weights 1 and 5 summarised as one entry with twice("gbfs", None) as heuristic "" although ithff. Rows carry a config label with the argumentswastar/hff(weight=5.0), also a new CSV column), which summarize and the#2; and heuristic issolve_task actually ran, worked out by the newjupyddl.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.
(at start (busy)) (at end (not (busy))) ended with(busy) true. The at-end effects now apply after the at-start ones and win aalways is checked in thatsometime-after could not be met by the final state. An obligation[t, r] was reported unsolvable; the goal now accepts the responseforall around a trajectory constraint moved inside it:(forall (?x) (sometime (lit ?x))) meant one moment with every ?x lit atforallAttributeError; it is refused by name like the others.forall kept its free variable and could nevernot, or, implyexists a preference silently made the goal false; it is now an error.at-most-once and sometime-after monitors ignored the states literals(total-cost) still charged formaximize was silently minimised, and (total-time) charged anmaximize, any metric other than (total-cost) or(total-time) plus weighted (is-violated p) terms, and a metric pricing aground() edited the domain it was given, so a second problem grounded:preconditon gave an action with no(:goals ...) a problem with an empty goal; unknown keys:goal are now errors that name them. Malformed(?x -), (when (q)), (:goal) — raised a bare IndexError; it isPDDLError, and an unbalanced parenthesis names its line.nan, inf or infinity were read as numbers.(increase (total-cost) (road-length ?a ?b)) was refused although:action-costs is listed as native. A cost over static functions is nowtransport domains load. :fluents:object-fluents, and :ucpop, :domain-axioms and:safety-constraints are refused by name rather than as unknown flags.jupyddl.learn shipped in 2.3.0 with.docs/ and a video, which meant the published site saidhff and goalcount, the per-instancepromo/rl-data.json — the same cache the RL video renders from — so the<main> wasrequires-python moved to matchpddl-examples submodule advances to a corpus that now grows on its own:openplan-labs.jupyddl.learn: heuristics trained from your own solved plans. Everypip install jupyddl[learn] adds NumPy purely for speed, and the two code paths are pinnedwastar needs. Checkpoints are.docs/rl-for-search.md: that mean isjupyddl learn, and learned:<model.json> accepted anywhere a heuristicsolve, benchmark, the API. make_heuristic also passes through.docs/ — research notes: the prior work, the measured results including thealways was not enforced across the actions timed initial literals compile(safe) at t=3 and onetools/build_web.pyos.walk visit thejupyddl-sources.json came outformat no longer strands pages. It reformats jupyddl/ and commits toweb/dist embeds those sources verbatim and pages refuses to deploy apddl-examples submodule instead of skipping like the other 156.check-success=tests, which is the workflow name — the checks are thetest (ubuntu-latest, 3.12, dev)), so the rule never fired.tools/ alongside jupyddl and tests.viz extra. tests/test_viz.py andtests/test_cli_viz.py importorskip matplotlib, so 26 of their 30 tests —build no longer re-runs the lint the tests matrix already ran. It buildstwine checks them, installs the wheel into a cleanactions/checkout v4 → v7, actions/setup-python v5 → v7,codecov/codecov-action v4 → v7 (#146, #150, #145); the format job runs ondelete_head_branch block (#143).DataAnalyst documentationDataAnalyst heuristics performance comparerDataAnalyst plotsPDDL domains and problemsdata/ are now retrievable in a private method