pddl-validate
Independent PDDL plan validator: classical, numeric and temporal plans with precise diagnostics
cargo add pddl-validate About
An independent plan validator for PDDL: a second opinion next to VAL, with precise, machine-readable diagnostics.
It is part of the pddl-rs workspace and depends only on the pddl syntax tree. It implements the validation semantics itself and shares no grounding or search code with any planner, so it does not share their bugs either.
let domain = Domain::from_str( "(define (domain switch) (:predicates (on)) (:action flip :parameters () :precondition (not (on)) :effect (on)))", ).unwrap(); let problem = Problem::from_str( "(define (problem light) (:domain switch) (:init) (:goal (on)))", ).unwrap(); let validator = Validator::new(&domain, &problem).unwrap();
let report = validator.validate_text("(flip)\n(flip)"); assert_eq!(report.status(), ValidationStatus::Invalid); assert_eq!( report.violation().unwrap().advice(), "(flip) has an unsatisfied precondition at step 2: (Set (on) to false)" ); `
Algorithms 3
- PDDL Plan Validation Classical plan validation · Numeric plan validation
Independent plan validator for classical and numeric PDDL plans (STRIPS, typing, ADL conditions, conditional effects, derived predicates, numeric fluents, action costs, metrics) that explains the first failing step in the style of VAL's plan repair advice.
- PDDL+ Plan Validation PDDL+
Validates plans with PDDL+ processes and events under linear dynamics, finding process switches and event triggers exactly at the roots of linear conditions, with event cascades.
- Temporal Plan Validation PDDL 2.1 temporal plan validation
Validates timestamped plans with durative actions, duration constraints, linear continuous effects, timed initial literals and epsilon separation of interfering events, following PDDL 2.1 and VAL.
From the same workspace
pddl-codegenGenerates typed Rust planning code from PDDL domains, for pddl's #[task] attribute and build scriptspddl-coreThe types and the parser behind the pddl crate; depend on pddl insteadpddl-lspA language server for PDDL: diagnostics, navigation, completion and formattingpddl-macrosCompile-time checked PDDL: domain!, problem! and pddl! macros for the pddl cratepddl-runtimeThe planning-task trait, fact storage and reference searches that code generated from PDDL builds on