AppWorld: complete the task immediately after verified success
A successful AppWorld API action does not finish the task by itself; the run still requires an explicit supervisor completion call.
When to apply
- The terminal API action returned success.
- A verification read-back (for example
show_current_song) already matches the task goal. - The harness still shows the task as incomplete.
Procedure
- Keep the verified result value from the read-back in the current execution context.
- Call the supervisor completion endpoint with that verified result, for example:
apis.supervisor.complete_task(answer=verified_result)
- Do not re-authenticate or run additional verification calls before
completing when the target state is already confirmed. Extra calls such as
spotify.loginafter the successful action can delay or obscure the required completion step. - If completion fails, re-check the expected answer format and retry once with the same verified result.
Verification
Before ending the episode, confirm supervisor.complete_task was actually
called after the last successful action. If only API actions and read-backs
are visible, add the completion call with the confirmed result.