You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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 and wastar needs. 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, and learned:<model.json> accepted anywhere a heuristic
name is — solve, benchmark, the API. make_heuristic also 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
always was 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 let os.walk visit the
subdirectories in filesystem order, so jupyddl-sources.json came out
byte-different on a CI runner and the staleness check failed on a bundle that
was not stale.
format no longer strands pages. It reformats jupyddl/ and commits to
main; web/dist embeds those sources verbatim and pages refuses 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-examples submodule 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/ alongside jupyddl and tests.
One matrix entry installs the viz extra. tests/test_viz.py and tests/test_cli_viz.pyimportorskip matplotlib, so 26 of their 30 tests —
the entire charting surface — were silently skipped in CI.
build no longer re-runs the lint the tests matrix 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/checkout v4 → v7, actions/setup-python v5 → v7, codecov/codecov-action v4 → v7 (#146, #150, #145); the format job runs on
Python 3.14 (#149); the Mergify config drops the deprecated delete_head_branch block (#143).