#6446·opensre

/goal edit leaves the checklist unchanged when numbered steps are updated

Author: Devesh36Created Sep 29, 2026Updated Sep 29, 2026

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

  1. Start OpenSRE’s interactive shell.

  2. Set a goal:

    /goal set 1. Inspect API latency 2. Inspect database latency
  3. Pause it before it finishes:

    /goal pause
  4. Add a third step:

    /goal edit 1. Inspect API latency 2. Inspect database latency 3. Inspect queue latency
  5. Display 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 latency

Running /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 checklist
  • Generated 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:

python
edited = replace(goal, condition=condition)

Unlike /goal set, it does not derive or reconcile the checklist, its step count, or completion indexes.