Skip to content

fix(planning): let interview revise update a question's commitments #5452

Closed

Description

@kyle-sexton

No related issue: split out of #5191 after a repro pass on planning 0.46.0 (origin/main at 4d1d9d8).

Summary

Finding 6 of #5191, reported against planning 0.42.0: revise cannot change a question's commits, so a revised recommendation keeps a commitment written for the old one.

Fix

Accept commits on revise, or flag commitments written for a prior recommendation revision.

Verification

Repro pass on origin/main, playwright-cli driving Chromium against a copy of plugins/planning/surface/, plus round.sh, watch.sh and curl. Verdict: reproduces.

Live: add --id Z3 --commit "Split-mode commitment" ... then revise Z3 --rec "Two hook guards" --affects none; /api/state afterwards has the new recommendation and commits still ["Split-mode commitment"]. revise takes no commits option (round.py:1452-1454); op_revise (round.py:441-498) never writes commits; only cmd_add does (round.py:772).

Findings 9 and 17 of #5191 (stale or unticked commitments reaching the export) are tracked on #4653; this is the write-path gap they depend on.

Related

Refs #5191. #4653 tracks the commitment and export gaps behind findings 9, 17 and part of 18.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions