Skip to content

CLI/MCP: serialize TemporalPlan schedules (start, duration, end, makespan)#123

Merged
hfoffani merged 1 commit into
mainfrom
serialize-temporal-119
Jul 14, 2026
Merged

CLI/MCP: serialize TemporalPlan schedules (start, duration, end, makespan)#123
hfoffani merged 1 commit into
mainfrom
serialize-temporal-119

Conversation

@hfoffani

Copy link
Copy Markdown
Owner

What

Renders TemporalPlan schedules in the JSON emitted by pddlpy solve --planner temporal and the MCP solve tool: per-step start/duration/end plus a top-level makespan.

Why

Found in the v1.2.0 post-release check (#119): the temporal planner computes a full schedule, but the generic plan_dict rendering dropped it — steps showed only {action, args} and the makespan hid in the generic cost field.

Changes

  • pddlpy/serialize.py: plan_dict detects a TemporalPlan and emits {action, args, start, duration, end} per step and a top-level makespan (cost kept for compatibility). Covers CLI and MCP for free since both go through serialize.py.
  • Tests: temporal-schedule assertions on the weld corpus in tests/test_cli.py and tests/test_mcpserver.py (100% coverage held, 234 tests).
  • Docs: README CLI section shows the richer output (and now lists temporal among the accepted planners); docs/object-model.md temporal section notes the JSON rendering.

Fixes #119

🤖 Generated with Claude Code

plan_dict now detects a TemporalPlan and emits per-step start,
duration and end plus a top-level makespan (cost kept for
compatibility). Covers both the CLI and the MCP solve tool, which
share serialize.py. Documented in the README CLI section and the
object-model temporal section.

Fixes #119

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@hfoffani
hfoffani merged commit c188ee4 into main Jul 14, 2026
1 check passed
@hfoffani
hfoffani deleted the serialize-temporal-119 branch July 14, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI/MCP: serialize TemporalPlan schedules (start times, durations, makespan)

1 participant