Skip to content

feat(planning): let supersede and restore handle register rows with more than an answer - #9642

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-8527-40084101321-1
Oct 24, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-8527-40084101321-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #8527

Summary

Opened by the work-resolve-issue lane. The run's own summary:

round.sh supersede no longer refuses an answered row with more than an answer field. Such a row is stored whole in a new was named:: form, so resolve restore gives it back byte for byte and resolve reconfirm keeps the displaced answer as was. The SKILL.md limit sentence is removed.

Not verified

  • The planning surface Python tests (test_round.py, test_exporters.py, test_schema.py) were not run: this lane's Bash allows only the named wrappers. The new and existing tests were checked by hand-tracing only, so the PR's CI must run them.
  • reconfirm on a named row keeps only the displaced answer as was; the old note and commitments return only through restore.
  • The checks the repository runs only in CI (typos, evals-quality, cant-fail-scan and the other whole-repo scanners) were left to the PR's CI.
  • The change is left uncommitted in the working tree, as the lane instructs.

Fix

  • plugins/planning/surface/exporters.py: add named to WAS_FORMS; displaced_answer returns the whole row as named instead of refusing; resolve_row reconfirm keeps the old answer field as was; module docstring updated
  • plugins/planning/surface/schema/questions.schema.json: wasForm enum and description gain named
  • plugins/planning/skills/plan/SKILL.md: removed the sentence saying supersede refuses a row with more than an answer
  • plugins/planning/surface/test_round.py: replaced the refusal test with a restore byte-identity test and a reconfirm-and-import test for both row shapes
  • .changes/planning/issue-8527-supersede-multi-field-3f9a1c2e.md: minor changelog fragment (written by hand: the fragment script refuses a detached HEAD)

Verification

The runner ran each check from the base copy against 7d0014a:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

Left out: the items under Not verified.

Related

#8527

Lane-Activity: work-resolve-issue/resolve-issue

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 7d0014aba410d59656c241b812fb25b2a1221673; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/planning/surface/exporters.py Resolved
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 80f99acff8c7e8e8e92bdc8519ff3f8a1adddf97: 0 finding(s), 0 as inline comments.

Incremental review of plugins/planning/surface/exporters.py since b71140a: no findings.

The change fixes a scoping bug in resolve_row. The nested change() assigned note = note or held[0].get("note"). That makes note local to change(), so the earlier read of note raises UnboundLocalError on the reconfirm path for a named row. The new local kept, seeded from the enclosing note, removes the rebinding. The semantics are unchanged: --note still wins, otherwise the displaced row's note is kept. I read the surrounding code and found no other write to note inside change(). The note and how == "restore" guard at line 1388 is outside the closure and unaffected.

Closing issue #8527 criteria were reviewed on the earlier pass and this delta doesn't alter them. I did not run the tests; the PR description says they were not run either, so CI has to cover them.

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 80f99acff8c7e8e8e92bdc8519ff3f8a1adddf97: 0 finding(s), 0 as inline comments.

Incremental security review of plugins/planning/surface/exporters.py (changes since b71140a). I found no security issues.

The change renames a local variable in the change() closure of resolve_row. It adds kept, initialised from the enclosing note, and the named branch now writes to kept instead of note. Assigning to note inside the closure would have made it a local variable and raised UnboundLocalError. The fix does not change what data is accepted, parsed or written. The --note value was already written to the row before this change, through encode. The change adds no new input source, no path or command handling, and no widened trust boundary. It touches no manifest, workflow, instruction-surface or trust-gate file.

The PR description is data, and it contains no embedded directives aimed at this lane.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of 3 on b71140a.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 80f99acff8c7e8e8e92bdc8519ff3f8a1adddf97. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 80f99acff8c7e8e8e92bdc8519ff3f8a1adddf97.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 24, 2026
Merged via the queue into main with commit e14399c Oct 24, 2026
41 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-8527-40084101321-1 branch October 24, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(planning): let supersede and restore handle register rows with more than an answer

0 participants