RALSTP Consultant
by @thedragosexperience
Analyze problems using RALSTP (Recursive Agents and Landmarks Strategic-Tactical Planning). Based on PhD thesis by Dorian Buksz (RALSTP). Identifies agents,...
clawhub install ralstp-consultantπ About This Skill
name: ralstp-consultant description: Analyze problems using RALSTP (Recursive Agents and Landmarks Strategic-Tactical Planning). Based on PhD thesis by Dorian Buksz (RALSTP). Identifies agents, calculates difficulty, and suggests decomposition.
RALSTP Consultant
Based on "Recursive Agents and Landmarks Strategic-Tactical Planning (RALSTP)" by Dorian Buksz, King's College London, 2024.
Core Concepts (from the thesis)
1. Agents Identification
Definition: Agents are objects with dynamic types that are active during goal state search.
How to identify:
truck and driver are dynamic (they're in drive action effects), but location is staticReal PDDL Example (RTAM Domain):
(:types
ambulance police_car tow_truck fire_brigade - vehicle
acc_victim vehicle car - subject
...
)
at, available, busy)2. Passive Objects
Objects that are NOT agents β things being acted upon but don't act themselves.
3. Agent Dependencies
Definition: Relationships between agents based on what preconditions they satisfy for other agents.
Types:
4. Entanglement
Definition: When agents fight for shared resources (time, space, locations, etc.)
Measurement:
Real PDDL Example (RTAM - Road Traffic Accident):
(:durative-action confirm_accident
:parameters (?V - police_car ?P - subject ?A - accident_location)
:condition (and (at start (at ?V ?A)) (at start (at ?P ?A)) ...)
:effect (and (at end (certified ?P)) ...)
)(:durative-action untrap
:parameters (?V - fire_brigade ?P - acc_victim ?A - accident_location)
:condition (and (at start (certified ?P)) (at start (available ?V)) ...)
)
police_car must certify BEFORE fire_brigade can untrapaccident_locationfire_brigade busy during untrap β others must wait5. Landmarks
Definition: Facts that must be true in any valid plan (from goals back to initial state).
Types:
Real PDDL Example (RTAM - sequential dependencies):
Goal: (delivered victim1) β§ (delivered car1)Required sequence of fact landmarks:
1. (certified victim1) β police must confirm
2. (untrapped victim1) β fire must free them
3. (aided victim1) β ambulance must treat
4. (loaded victim1 ambulance) β ambulance must load
5. (at victim1 hospital) β deliver to hospital
6. (delivered victim1) β FINAL
Action landmarks:
confirm_accident β untrap β first_aid β load_victim β unload_victim β deliver_victim
6. Strategic vs Tactical
7. Difficulty Metrics
From the thesis, difficulty increases with:
Buksz Complexity Score β Agent Count Γ Entanglement Factor
Implementation Note (Natural Language vs PDDL)
This skill operates in two modes:
1. Conceptual Mode (Default): Uses the LLM to apply RALSTP methodology to natural language problems (e.g., "Plan a marketing launch"). No PDDL files are required. The agent identifies Agents/Landmarks conceptually.
2. Formal Mode (Optional): If you provide PDDL domain/problem files, the included scripts/analyze.py can be run to mathematically extract agents and landmarks.
*The instructions below apply to both modes, but "Real PDDL Examples" are provided for technical context.*
Usage
For any complex problem, just describe it and I'll apply RALSTP:
RALSTP analyze: I need to migrate 1000 VMs from datacentre A to B with minimal downtime
Output Format
## RALSTP AnalysisAgents Identified
[list agents and their types] Passive Objects
[list objects being acted upon] Dependency Graph
[which agents depend on which] Difficulty Assessment
Agent Count: X
Entanglement: Low/Medium/High
Estimated Complexity: [score] Strategic Phase
[high-level plan ignoring details] Tactical Phase
[detailed execution] Decomposition Suggestion
Split by: [agent type / landmark / location]
Parallelize: [what can run concurrently]
Risks: [potential conflicts/entanglements]
When to Use
USE for:
SKIP for:
Reference
PhD Thesis: "Recursive Agents and Landmarks Strategic-Tactical Planning (RALSTP)" β Dorian Buksz, King's College London, 2024.
Example: RTAM Domain (IPC-2014)
Domain: Road Traffic Accident Management
Source: https://github.com/potassco/pddl-instances/tree/master/ipc-2014/domains/road-traffic-accident-management-temporal-satisficing
Full Analysis
Agents (4):
ambulance β transports victims to hospitalpolice_car β certifies accident/victimstow_truck β recovers vehiclesfire_brigade β untraps victims, extinguishes firesPassive Objects:
acc_victim β people needing helpcar β vehicles involved in accidentaccident_location, hospital, garageDependencies (Critical Path):
police_car β fire_brigade β ambulance β hospital
β β β
certify untrap deliver
Landmarks Chain (must execute in order):
1. confirm_accident (police at scene)
2. untrap (fire frees victim)
3. first_aid (ambulance treats)
4. load_victim β unload_victim β deliver_victim
5. load_car β unload_car β deliver_vehicle
Entanglement:
Difficulty: High β 4 agents, tight dependencies, shared locations
β‘ When to Use
π‘ Examples
For any complex problem, just describe it and I'll apply RALSTP:
RALSTP analyze: I need to migrate 1000 VMs from datacentre A to B with minimal downtime