Planning Code Goal Error Handling

Sub-skill of planning-code-goal: Error Handling.

vamseeachanta 3b7e3bb 993 B Updated

File contents

Error Handling

Error Handling

Goal Infeasibility

// Goal cannot be achieved with available resources
if (!canAchieveGoal(currentState, goalState, constraints)) {
  // Suggest achievable subset
  const achievableGoal = findMaximalAchievableSubset(goalState);
  console.log(`Full goal not achievable. Suggested: ${achievableGoal}`);

  // Identify blocking constraints
  const blockers = identifyBlockers(goalState);
  console.log(`Blocked by: ${blockers}`);
}

Phase Failures

// SPARC phase did not complete successfully
if (phaseResult.failed) {
  // Identify specific failures
  const failures = phaseResult.failedCriteria;

  // Attempt retry with adjusted parameters
  if (canRetry(failures)) {
    await retryPhase(phase, adjustedConfig);
  } else {
    // Replan from current state
    await replanFromPhase(phase);
  }
}

vamseeachanta/workspace-hub/tree/main/.agents/skills/_archive/development/planning/planning-code-goal/error-handling commit 3b7e3bb567

Frequently asked questions

npx skillmds@latest add vamseeachanta/planning-code-goal-error-handling