Inferensys

Prompt

User Correction Impact Analysis Prompt on Pending Tasks

A practical prompt playbook for using User Correction Impact Analysis Prompt on Pending Tasks in production AI workflows. When a user corrects a fact or preference mid-session, this prompt analyzes the current pending task list to identify which items are affected by the correction, producing a diff of tasks that need re-evaluation or cancellation.
Product manager reviewing autonomous task execution dashboard on laptop, completed tasks visible, casual work session.
PROMPT PLAYBOOK

When to Use This Prompt

Define the job, reader, and constraints for the User Correction Impact Analysis Prompt on Pending Tasks.

This prompt is designed for copilot and assistant systems where a user's mid-session correction—such as changing a fact, preference, or constraint—invalidates previously planned work. Its job is to analyze the current list of pending tasks against the user's correction and produce a structured diff: which tasks are unaffected, which need re-evaluation, and which should be cancelled outright. The ideal user is an AI engineer or product developer building a task-oriented assistant that maintains an explicit pending action queue, such as a coding copilot with a task list, a travel booking assistant with an itinerary, or a support agent with a multi-step resolution plan.

Use this prompt when your application already maintains a structured list of pending tasks and you have detected a user correction that changes a foundational assumption. The prompt requires three concrete inputs: the user's correction statement, the current pending task list with descriptions and dependencies, and the specific fact or preference that was corrected. It is not a general-purpose clarification handler or a task generation prompt. Do not use it when the correction is ambiguous and requires clarification first, when the task list is implicit or unstructured, or when the correction is purely stylistic and does not affect task validity. The prompt assumes the correction has already been parsed and confirmed; it does not handle the disambiguation dialogue itself.

The output is a machine-readable diff, not a conversational response. This prompt is a middleware component that should sit between your correction detection layer and your task execution engine. After running this prompt, your application should programmatically update the task queue, notify the user of changes, and re-prioritize affected items. For high-stakes domains where incorrect task cancellation could cause data loss, financial impact, or safety issues, always route the diff through a human review step before applying changes to the live task queue. The prompt includes a confidence scoring field to help automate triage decisions for low-risk items while escalating uncertain cases.

PRACTICAL GUARDRAILS

Use Case Fit

Where the User Correction Impact Analysis Prompt delivers value and where it introduces risk. Use these cards to decide if this prompt fits your copilot architecture.

01

Good Fit: Stateful Copilots with Explicit Task Lists

Use when: your copilot maintains a structured, machine-readable list of pending tasks, and user corrections (e.g., 'Actually, my budget is $500, not $1000') can invalidate prior planning assumptions. Guardrail: The prompt requires a structured task list as input; do not use it on free-text summaries where task boundaries are ambiguous.

02

Bad Fit: Single-Turn or Stateless Assistants

Avoid when: the assistant does not track pending tasks across turns or the correction applies only to the immediate response. Running impact analysis with no task list produces false positives and hallucinated dependencies. Guardrail: Gate execution behind a check that a pending task list with at least one item exists.

03

Required Inputs: Correction, Task List, and Context Window

What to watch: the prompt needs three explicit inputs: the user's correction statement, the current pending task list with descriptions and dependencies, and the conversation segment where the correction occurred. Missing any input causes the model to guess. Guardrail: Validate all three inputs are present and non-empty before invoking the prompt.

04

Operational Risk: Cascading Task Invalidation

Risk: a single correction can mark many tasks as affected, triggering a large re-planning event that disrupts the user's workflow. Guardrail: The prompt output must include an 'impact severity' field per task (none, minor, major, invalidated) so the application layer can decide whether to auto-replan or ask the user before proceeding.

05

Operational Risk: Correction Ambiguity

Risk: user corrections like 'that's wrong' without specifying what 'that' refers to produce unreliable impact analysis. Guardrail: Pre-process the correction with a reference resolution step before impact analysis. If the correction target is ambiguous, flag it for clarification rather than guessing.

06

Architecture Fit: Pre-Replanning Gate

Use when: this prompt sits as a gate between correction detection and task re-planning. It should run before any task modification to produce a diff that the planner consumes. Guardrail: Never allow the impact analysis prompt to modify tasks directly; it should only produce an analysis payload that a separate, deterministic planning step acts on.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt template for analyzing how a user correction impacts the current pending task list, producing a structured diff of affected items.

This prompt is designed to be the core reasoning step in a copilot system where a user's mid-session correction can invalidate prior context. When a user corrects a fact, preference, or constraint, the system must not only update its understanding but also re-evaluate all pending tasks that were derived from the now-invalidated information. The template below accepts the user's correction, the current pending task list, and the relevant conversation context, then outputs a structured analysis of which tasks are affected and how.

text
You are an AI copilot analyzing the impact of a user correction on a list of pending tasks. Your goal is to identify which tasks are invalidated, need re-evaluation, or can remain unchanged.

## INPUTS

### User Correction
[USER_CORRECTION]

### Pending Task List
[PENDING_TASK_LIST]

### Conversation Context (last N turns)
[CONVERSATION_CONTEXT]

### Output Schema
[OUTPUT_SCHEMA]

## INSTRUCTIONS

1. Parse the user correction to identify the specific fact, preference, or constraint being changed.
2. For each task in the Pending Task List, determine if the task's assumptions, inputs, or validity depend on the corrected information.
3. Classify each affected task into one of these categories:
   - **INVALIDATED**: The task's foundation is directly contradicted by the correction and must be cancelled.
   - **NEEDS_RE-EVALUATION**: The task may still be valid but its parameters, priority, or output need adjustment.
   - **UNCHANGED**: The task is independent of the corrected information.
4. For each INVALIDATED or NEEDS_RE-EVALUATION task, provide:
   - The original task description
   - The specific dependency on the corrected information
   - A brief explanation of why the correction affects this task
   - A recommended action (cancel, re-plan, adjust parameters)
5. Produce a summary of the overall impact, including the count of tasks in each category.
6. If the correction creates a cascading effect where re-evaluating one task may affect others, flag this as a **CASCADE RISK**.

## CONSTRAINTS

- Do not modify the Pending Task List directly; only produce the analysis.
- If the user correction is ambiguous, flag it as **NEEDS CLARIFICATION** before proceeding.
- If no tasks are affected, explicitly state this with confidence.
- Preserve the original task IDs or references in your output for traceability.
- If [RISK_LEVEL] is HIGH, include a recommendation for human review before any automated task cancellation.

To adapt this template, replace the square-bracket placeholders with your application's actual data structures. The [PENDING_TASK_LIST] should be a serialized list of task objects with unique IDs, descriptions, and any metadata your system tracks. The [OUTPUT_SCHEMA] placeholder should be replaced with your desired JSON schema or structured format specification. For high-stakes workflows where incorrect task cancellation could cause data loss or user harm, set [RISK_LEVEL] to HIGH and ensure your implementation harness enforces human approval before acting on INVALIDATED classifications. Test this prompt against edge cases where the correction is partially overlapping with task dependencies, where multiple tasks form a dependency chain, and where the correction itself is later corrected.

IMPLEMENTATION TABLE

Prompt Variables

Required and optional inputs for the User Correction Impact Analysis Prompt. Each placeholder must be populated before the prompt is assembled and sent to the model.

PlaceholderPurposeExampleValidation Notes

[CORRECTION_STATEMENT]

The user's exact correction text, including the fact or preference they are changing.

The Q3 budget is actually $450k, not $500k.

Must be a non-empty string. If the user's turn contains multiple corrections, split into separate prompt calls or use a list structure.

[PENDING_TASK_LIST]

A structured list of all currently tracked pending tasks, each with an ID, description, status, and dependencies.

[{"id":"T1","desc":"Draft Q3 budget memo","status":"in-progress","depends_on":["Q3_BUDGET"]}]

Must be valid JSON array. Each task object requires an 'id' and 'desc' field at minimum. Empty list is allowed but will produce a null diff.

[CONVERSATION_CONTEXT]

The last N turns of conversation leading up to the correction, providing context for how tasks were originally framed.

User: Can you draft the Q3 budget memo? Assistant: Sure, I'll use the $500k figure we discussed.

Must be a string or structured transcript. Include enough turns to capture the original task assignment context. Truncate to fit context budget.

[TASK_DEPENDENCY_GRAPH]

Optional explicit mapping of which tasks depend on which facts, entities, or other tasks. If absent, the model infers dependencies from task descriptions.

{"T1": ["Q3_BUDGET"], "T2": ["T1", "HEADCOUNT"]}

If provided, must be valid JSON object mapping task IDs to arrays of dependency labels. Null allowed; model will infer dependencies from [PENDING_TASK_LIST] and [CONVERSATION_CONTEXT].

[OUTPUT_SCHEMA]

The exact JSON schema the model must follow for the impact analysis output.

{"affected_tasks":[],"unaffected_tasks":[],"uncertain_tasks":[],"correction_summary":""}

Must be a valid JSON Schema or example structure. Include required fields: affected_tasks, unaffected_tasks, uncertain_tasks. Each task entry must reference the original task ID.

[CONFIDENCE_THRESHOLD]

The minimum confidence score (0.0-1.0) for classifying a task as affected. Tasks below this threshold go to uncertain_tasks.

0.7

Must be a float between 0.0 and 1.0. Default to 0.7 if not specified. Lower values increase false positives; higher values increase missed impacts.

[MAX_TASKS]

Maximum number of pending tasks to analyze in a single prompt call. Used to prevent context overflow in long-running sessions.

50

Must be a positive integer. If the pending task list exceeds this value, paginate or summarize older tasks before analysis. Null means no limit.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the User Correction Impact Analysis prompt into a production copilot or task-management application.

This prompt is designed to be called as a post-correction hook within a stateful AI copilot. After a user explicitly corrects a fact, preference, or constraint (e.g., 'Actually, the budget is $5k, not $10k'), the application should capture the correction, the corrected value, and the current pending task list. The prompt then performs a dependency analysis, returning a structured diff of tasks that are now invalid, need re-evaluation, or can be cancelled. This is not a real-time, per-turn prompt; it is a discrete analysis step triggered by a high-signal user correction event.

To wire this into an application, implement a state management layer that maintains a canonical list of pending tasks, each with a unique ID, description, and the key facts or constraints they depend on. When a user correction is detected—either by a separate classification prompt or a simple UI flag—the application should call this prompt with the [CORRECTED_FACT], the [PREVIOUS_VALUE], and the full [PENDING_TASK_LIST] in a structured JSON format. The model's response, a JSON array of affected task IDs with impact rationales and recommended actions, must be validated against the actual task IDs in your state to prevent hallucinated identifiers. For high-stakes workflows, such as financial or legal copilots, the system should not automatically cancel or modify tasks based on the model's output. Instead, present the diff to the user for explicit confirmation, treating the model's output as a recommendation engine.

For logging and observability, record the full input payload, the model's raw output, and the validated diff. This trace is critical for debugging cases where the model missed an impacted task (a false negative) or flagged a task that was not actually dependent on the corrected fact (a false positive). Implement a retry strategy with a maximum of two attempts if the initial output fails JSON schema validation or contains task IDs not present in the input. If validation fails after retries, escalate to a human operator and log the failure for prompt refinement. Avoid using this prompt on every user message; it is a targeted, event-driven analysis tool, and overuse will introduce latency and unnecessary processing costs.

IMPLEMENTATION TABLE

Expected Output Contract

Defines the structure, types, and validation rules for the correction impact analysis output. Use this contract to parse and validate the model response before applying task state changes.

Field or ElementType or FormatRequiredValidation Rule

correction_summary

object

Must contain original_value, corrected_value, and correction_type fields. correction_type must be one of: fact, preference, constraint, priority, or negation.

impacted_tasks

array[object]

Each object must have task_id, task_description, impact_type, and recommended_action. Array must not be empty if any tasks are affected.

impacted_tasks[].task_id

string

Must match an existing task ID from the [PENDING_TASKS] input. Non-matching IDs fail validation.

impacted_tasks[].impact_type

enum

Must be one of: invalidated, requires_revision, priority_changed, dependency_broken, or unaffected. Use unaffected only when explicitly confirming no impact.

impacted_tasks[].recommended_action

enum

Must be one of: cancel, re-evaluate, update_parameters, confirm_still_valid, or escalate. cancel requires human approval flag set to true.

impacted_tasks[].affected_fields

array[string]

List of task fields affected by the correction. Null allowed when impact_type is unaffected. Each string must reference a field from the task schema.

impacted_tasks[].confidence

number

Float between 0.0 and 1.0. Values below [CONFIDENCE_THRESHOLD] must set recommended_action to escalate and requires_human_approval to true.

unaffected_tasks

array[string]

List of task IDs explicitly confirmed as unaffected. Null allowed. Each ID must exist in [PENDING_TASKS] and must not appear in impacted_tasks.

PRACTICAL GUARDRAILS

Common Failure Modes

User corrections can cascade through a pending task list, silently invalidating work. These are the most common failure modes when analyzing correction impact and how to prevent them.

01

Over-Correction Cascade

What to watch: A single factual correction causes the prompt to flag nearly every pending task as affected, even tasks with only tangential relationship to the corrected fact. This produces an unactionable diff that overwhelms the user. Guardrail: Require the prompt to classify impact as direct (task depends on the corrected fact), indirect (task may need review), or none. Only flag direct items for mandatory re-evaluation.

02

Silent Dependency Miss

What to watch: The prompt fails to identify a task that depends on the corrected fact because the dependency is implicit or spread across multiple turns. The task remains in the active queue with now-invalid assumptions. Guardrail: Include explicit dependency tracking in the task schema. Before impact analysis, run a separate extraction step that maps each task's factual dependencies, then diff against the correction.

03

Correction Scope Confusion

What to watch: The user corrects a preference ("I actually want the report by region, not by product") but the prompt treats it as a factual correction and re-evaluates completed tasks. Or the reverse: a factual correction is treated as a preference shift and ignored. Guardrail: Add a correction_type classification step before impact analysis: factual, preference, constraint, or goal. Each type has different re-evaluation rules. Preferences don't invalidate completed factual work.

04

Stale Task Resurrection

What to watch: The correction makes a previously completed or abandoned task relevant again, but the impact analysis only looks at currently pending tasks. The user never learns that old work needs revisiting. Guardrail: Extend the analysis scope to include recently completed tasks (within a configurable lookback window). Flag resurrected tasks with a reactivated status and the original completion context.

05

Ambiguous Correction Anchoring

What to watch: The user's correction is ambiguous ("That's not right" without specifying what "that" refers to) and the prompt anchors to the wrong entity or fact, producing an impact analysis on the wrong set of tasks. Guardrail: Before running impact analysis, resolve the correction's anchor by extracting the specific entity, value, or claim being corrected. If ambiguity remains above a threshold, ask a targeted clarification question instead of guessing.

06

Impact Explanation Gap

What to watch: The prompt correctly identifies affected tasks but provides no explanation of why each task is affected, forcing the user to manually verify every item in the diff. This erodes trust and slows recovery. Guardrail: Require each affected task in the output to include an impact_rationale field that cites the specific dependency chain: "Task #4 depends on [corrected fact] because its acceptance criteria reference [value]."

IMPLEMENTATION TABLE

Evaluation Rubric

Criteria for evaluating the quality of a User Correction Impact Analysis output before integrating it into a production task management pipeline. Each row defines a specific dimension of correctness, a pass standard, a failure signal, and a practical test method.

CriterionPass StandardFailure SignalTest Method

Affected Task Recall

All tasks in [PENDING_TASK_LIST] whose completion depends on the corrected fact [CORRECTED_FACT] are present in the output.

A task known to depend on the corrected fact is missing from the 'affected' list.

Maintain a golden set of tasks with labeled dependencies. Assert that the output's affected task IDs are a superset of the expected IDs.

Unaffected Task Exclusion

No task in the output is flagged as affected if its completion logic is fully independent of [CORRECTED_FACT].

A task with no semantic or logical link to the correction is incorrectly included in the 'requires_reevaluation' list.

For each task in the output, use an LLM judge to verify a logical dependency on [CORRECTED_FACT] exists. Flag any task where the judge's confidence is below 0.9.

Impact Rationale Quality

Every affected task includes a 'rationale' string that cites the specific dependency on [CORRECTED_FACT] and explains why the task is now invalid or suspect.

A rationale is missing, is a generic restatement of the task, or fails to mention [CORRECTED_FACT].

Parse the 'rationale' field. Assert it is non-empty, contains a substring match for a key term from [CORRECTED_FACT], and has a minimum length of 20 characters.

Output Schema Validity

The output is valid JSON that strictly conforms to the [OUTPUT_SCHEMA], including all required fields and correct enum values for 'impact_type'.

The output is not valid JSON, is missing a required field like 'task_id', or contains an invalid 'impact_type' enum value.

Validate the raw output string against the [OUTPUT_SCHEMA] using a JSON schema validator. Reject on any validation errors.

Impact Type Classification

Each affected task is assigned a correct 'impact_type' from the allowed enum: 'cancelled', 'reevaluate', or 'unchanged'.

A task that is now impossible to complete is classified as 'reevaluate' instead of 'cancelled', or vice-versa.

For a sample of outputs, have a human reviewer label the correct 'impact_type'. Measure the F1 score of the model's classification against the human labels. Target F1 > 0.95.

Hallucination Avoidance

The output does not invent new tasks, modify original task descriptions, or fabricate dependencies not present in the input context.

The output contains a 'task_id' not present in [PENDING_TASK_LIST] or alters the 'description' field of an existing task.

Assert that the set of 'task_id's in the output is a subset of the 'task_id's in [PENDING_TASK_LIST]. Perform an exact string match on the 'description' field for any included tasks.

Handling of Ambiguity

If the impact of [CORRECTED_FACT] on a task is unclear, the task is flagged as 'reevaluate' with a rationale that explicitly notes the uncertainty.

An ambiguous task is confidently misclassified as 'cancelled' or 'unchanged', or the uncertainty is not communicated in the rationale.

Include a specific ambiguous test case in your eval set. Assert that the output's 'impact_type' is 'reevaluate' and that the 'rationale' field contains an uncertainty keyword like 'unclear', 'may', or 'possibly'.

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base prompt and a simple JSON schema for the diff output. Use a single-turn test transcript with one correction and a small pending task list. Skip validation and logging infrastructure.

code
[SYSTEM]
You are a task impact analyzer. Given a user correction and a list of pending tasks, identify which tasks are affected.

[USER CORRECTION]: [CORRECTION_TEXT]
[PENDING TASKS]: [TASK_LIST_JSON]

Return JSON with "affected_tasks" and "unaffected_tasks" arrays.

Watch for

  • Missing edge cases: corrections that partially invalidate a task
  • Overly broad impact classification when the correction is tangential
  • No handling of tasks that need re-evaluation vs. outright cancellation
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.