git:20260307.388baa3 to git:20260316.e08426e

58 added, 22 removed. Audit A to A.

---
name: alfworld-task-verifier
- description: This skill checks the current state against the task goal to determine if the objective has been met or if further actions are needed. It is triggered after completing a key sub-action, such as placing an object, to assess progress. The skill evaluates the observation feedback and the remaining requirements, outputting a decision to either continue searching for missing items or conclude the task.
+ description: Use when the agent needs to check whether an ALFWorld task objective has been met after completing a sub-action (e.g., placing an object). This skill parses the task goal, evaluates the latest environment observation, and outputs a verification decision โ€” task complete, task incomplete, or action ineffective โ€” to guide the next step.
---
- # Instructions
+ # Skill: Task Verifier for ALFWorld
- Use this skill to verify task progress in an ALFWorld household environment. The skill is triggered after a key sub-action (e.g., `put {obj} in/on {recep}`) is performed.
+ ## When to Use
+ Trigger this skill when:
+ 1. The agent has just completed a key sub-action (e.g., `put {obj} in/on {recep}`)
+ 2. The agent needs to determine whether the overall task goal is satisfied
+ 3. The agent must decide whether to continue searching or conclude the task
- ## 1. Input Analysis
- - **Input:** The most recent `Observation:` from the environment following an action.
- - **Task Goal:** The original, full task description (e.g., "find two pen and put them in garbagecan").
+ ## Core Workflow
- ## 2. Verification Logic
- Analyze the observation to determine if the task's goal conditions are satisfied.
- 1. **Parse the Goal:** Identify the target object(s) and the target receptacle from the task description.
- 2. **Check the Observation:** Scrutinize the observation text for evidence that the required objects are present in the target receptacle.
- - Positive evidence: Phrases like `"you see a pen 3"` located `"in/on the garbagecan 1"`.
- - The presence of other items in the receptacle does not invalidate success.
- 3. **Make a Decision:**
- - **Task Complete:** If the observation confirms all required objects are in the target receptacle. Output: `"Verification: Task complete. No further action needed."`
- - **Continue Task:** If the observation shows some, but not all, required objects are in the target receptacle, or if the target object was just placed elsewhere. Output: `"Verification: Task incomplete. Continue searching for [missing object(s)]."`
- - **Action Invalid/No Change:** If the observation is `"Nothing happened"` or does not reflect the intended outcome of the last action. Output: `"Verification: Last action was ineffective. Re-assess and try a different approach."`
+ ### 1. Parse the Task Goal
+ Extract from the original task description:
+ - **Target object(s)**: What needs to be found/placed (including quantity)
+ - **Target receptacle**: Where objects must end up
+ - **Required transformations**: Any cleaning, heating, or cooling steps
- ## 3. Output
- Output only the verification decision in the specified format. Do not output the next action. This skill informs the planning for the *next* action.
+ ### 2. Analyze the Observation
+ Evaluate the most recent `Observation:` text from the environment:
+ - Look for evidence that required objects are present in the target receptacle
+ - Count how many target objects have been successfully placed
+ - Note: Other items in the receptacle do not invalidate success
- **Example Outputs:**
- - `Verification: Task complete. No further action needed.`
- - `Verification: Task incomplete. Continue searching for pen 2.`
- - `Verification: Last action was ineffective. Re-assess and try a different approach.`
+ ### 3. Make a Verification Decision
+
+ | Condition | Decision | Output |
+ |-----------|----------|--------|
+ | All required objects confirmed in target receptacle | Complete | `Verification: Task complete. No further action needed.` |
+ | Some but not all objects placed | Incomplete | `Verification: Task incomplete. Continue searching for {missing object(s)}.` |
+ | Observation says "Nothing happened" | Ineffective | `Verification: Last action was ineffective. Re-assess and try a different approach.` |
+ | Object placed in wrong receptacle | Incorrect | `Verification: Object placed in wrong location. Retrieve and redirect to {correct receptacle}.` |
+
+ ### 4. Output Format
+ Output **only** the verification decision. Do not output the next action. This skill informs the planning for the next step, not the execution.
+
+ ## Example
+
+ **Task:** "Find two pen and put them in garbagecan."
+
+ ```
+ Action: put pen 3 in/on garbagecan 1
+ Observation: You put the pen 3 in/on the garbagecan 1.
+
+ > Verification: Task incomplete. Continue searching for pen (1 of 2 placed).
+
+ Action: put pen 1 in/on garbagecan 1
+ Observation: You put the pen 1 in/on the garbagecan 1.
+
+ > Verification: Task complete. No further action needed.
+ ```
+
+ **Example โ€” Failed action:**
+
+ ```
+ Action: put pen 3 in/on garbagecan 1
+ Observation: Nothing happened.
+
+ > Verification: Last action was ineffective. Re-assess and try a different approach.
+ ```
+
+ ## Error Handling
+ - **Ambiguous observation**: If the observation does not clearly confirm or deny placement, navigate to the target receptacle and re-examine it to get an updated state.
+ - **Quantity tracking**: For multi-object tasks, maintain a running count. Re-examine the target receptacle if the count is uncertain.