/goal edit leaves the checklist unchanged when numbered steps are updated
Description
Editing a goal updates its condition but does not update the checklist derived from its numbered steps. Adding, removing, or replacing steps leaves the condition and checklist inconsistent.
This occurs through ordinary REPL commands without modifying any stored files.
Steps to reproduce
Start OpenSRE’s interactive shell.
Set a goal:
/goal set 1. Inspect API latency 2. Inspect database latencyPause it before it finishes:
/goal pauseAdd a third step:
/goal edit 1. Inspect API latency 2. Inspect database latency 3. Inspect queue latencyDisplay the goal:
/goal show
Actual behavior
The condition contains three steps, but the checklist still contains only the original two:
condition: 1. Inspect API latency 2. Inspect database latency 3. Inspect queue latency
Checklist:
→ [ ] 1. Inspect API latency
[ ] 2. Inspect database latencyRunning /goal resume retains this stale checklist. The mismatch also survives saving and restoring the session.
Expected behavior
The checklist should reflect the updated numbered steps. Progress should be preserved for unchanged items, while added or changed items should remain unfinished.
Impact
Added steps are missing from checklist progress.
Removed or replaced steps remain in continuation instructions.
The completion tool rejects the added third step’s zero-based index with:
index 2 is not on the checklistGenerated continuation prompts instruct the agent to continue obsolete checklist items.
Actual execution of obsolete work by a live model was not verified.
Suspected cause
In surfaces/interactive_shell/command_registry/session_cmds/goal.py, _edit() updates only the condition:
edited = replace(goal, condition=condition)Unlike /goal set, it does not derive or reconcile the checklist, its step count, or completion indexes.
Source: Tracer-Cloud/opensre