Resource bounded planning

From curiositech/windags-skills · View interactive version

Resource bounded planning is an AI agent skill from the GitHub repository curiositech/windags-skills. Frameworks for designing agents that must reason and act under time pressure, limited computational resources, and changing environments — based on Bratman, Israel, and Pollack's foundational BDI architecture

How to use this skill

Skill file

SKILL: Resource-Bounded Planning and Reasoning

Core Purpose

Design and implement agents that balance deliberation depth against execution urgency — making "good enough" decisions under time pressure while maintaining adaptability to change.

DECISION POINTS

1. Commitment Formation Threshold

IF: Domain has recurring decisions + Time pressure exists + Information is incomplete
├─ High uncertainty about environment changes
│  └─ Commit to high-level structure only (defer implementation details)
├─ Moderate uncertainty with recurring patterns  
│  └─ Commit to partial plan with 2-3 refinement checkpoints
└─ Low uncertainty with established patterns
   └─ Commit to detailed plan with monitoring triggers

Cost-Benefit Formula: Commit when (Expected_Deliberation_Savings × Recurrence_Rate) > (Revision_Cost × Uncertainty_Factor)

2. Filter Override Calibration

IF: New incompatible option detected
├─ Expected value > Current plan value + (Override_threshold × Deliberation_cost)
│  └─ TRIGGER: Begin costly reconsideration
├─ Expected value > Current plan value but < Override threshold
│  └─ FILTER: Log opportunity but maintain current commitment  
└─ Expected value ≤ Current plan value
   └─ FILTER: Ignore option completely

Target Override Frequency: 10-20% of detected options (adjust threshold accordingly)

3. Structural Partiality Levels

IF: Planning horizon analysis needed
├─ Execution time < 24 hours
│  └─ Specify to action level (full detail required)
├─ Execution time 1-30 days  
│  └─ Specify to task level (keep method flexibility)
├─ Execution time > 30 days
│  └─ Specify to goal level only (maximum adaptability)

Refinement Trigger: When means-end coherence gap blocks next action OR dependency requires specification

4. Multi-Agent Consistency Checking

IF: Agent coordination required
├─ Shared resource conflicts detected
│  └─ Negotiate commitment revision (cost = deliberation + coordination overhead)
├─ Goal conflicts detected but no resource overlap
│  └─ Maintain separate commitments with monitoring
└─ Complementary goals detected
   └─ Establish consistency constraints (shared assumptions + checkpoint synchronization)

Consistency Check Frequency: Every N actions where N = 1/(Coordination_criticality × Change_rate)

FAILURE MODES

1. Perpetual Deliberation (Situation 2b/3)

Detection Rule: If deliberation time > 2× action time OR override frequency > 30% of options

Symptoms: Constantly reconsidering plans, thrashing between options, missing deadlines

Diagnosis: Override threshold too low, filter mechanism too weak

Fix: Increase override threshold by 20-30%, strengthen filter criteria, set hard deliberation deadlines

2. Brittle Automation (Situation 4a)

Detection Rule: If plan execution fails due to assumption violations > 2× per planning cycle

Symptoms: Missing significant opportunities, executing invalid plans, inflexible to change

Diagnosis: Override threshold too high, monitoring inadequate

Fix: Decrease override threshold by 15-25%, add assumption monitoring, implement adaptation triggers

3. Premature Specification

Detection Rule: If plan details change > 40% before execution OR refinement cost > initial planning cost

Symptoms: Wasted computation on obsolete details, reduced flexibility, high revision overhead

Diagnosis: Committing to unnecessary detail too early

Fix: Defer specification until means-end coherence requires OR execution approaches

4. Consistency Cascade Failures

Detection Rule: If coordination overhead > 25% of productive work time

Symptoms: Agents constantly negotiating, inconsistent assumptions across agents, deadlock states

Diagnosis: Consistency requirements too strict OR communication protocols inefficient

Fix: Relax non-critical consistency constraints, implement local consistency checking, batch coordination updates

5. Analysis Paralysis Spiral

Detection Rule: If deliberation cost exceeds action value for same decision type > 3 consecutive times

Symptoms: Over-analyzing low-stakes decisions, missing action windows, computational resource waste

Diagnosis: Treating all decisions as equally important

Fix: Implement decision importance classification, set deliberation budgets per decision class, use satisficing for low-stakes choices

WORKED EXAMPLES

Example 1: Multi-Agent Resource Allocation Under Time Pressure

Scenario: Three AI agents managing a data center during peak load. Agent A (scheduler), Agent B (resource allocator), Agent C (performance monitor). Sudden 300% traffic spike detected.

Novice Approach: Each agent recomputes optimal strategy independently

Expert Application:

  1. Commitment Formation (T+2 seconds):
  1. Consistency Check (T+3 seconds):
  1. Execution with Refinement (T+4 to T+600):
  1. Override Decision (T+300):

Measurable Outcomes:

Example 2: Hierarchical Task Decomposition in Software Development

Scenario: AI coding assistant planning implementation of new feature. Requirements partially specified, 2-week deadline, dependencies uncertain.

Trade-off Analysis:

Option 1: Fully specify all implementation details upfront

Option 2: Commit only to architecture, defer all implementation

Expert Choice - Option 3: Structural partiality with refinement triggers

Execution:

  1. T+0: Form partial plan (4 hours)
  1. T+3 days: First refinement trigger
  1. T+8 days: Performance monitoring trigger

Quality Results:

QUALITY GATES

Planning Quality Checklist:

Execution Quality Checklist:

Calibration Quality Indicators:

NOT-FOR BOUNDARIES

This skill is NOT for:

Delegate to other skills when:

Warning signs you're misapplying this skill:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.