Skip to content

feat: make structural spec editor default - #452

Draft
Thien Trung Vuong (trungams) wants to merge 9 commits into
microsoft:mainfrom
trungams:tvuong/deprecate-legacy-editor
Draft

Thien Trung Vuong (trungams) wants to merge 9 commits into
microsoft:mainfrom
trungams:tvuong/deprecate-legacy-editor

Conversation

@trungams

@trungams Thien Trung Vuong (trungams) commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Switch to using structural spec editor by default and update docs/agent skills to deprecate the legacy editor logic

We'd just need to update gdb overlays in Azure Linux after the switch, as demonstrated here: microsoft/azurelinux#20120. The rest of the components render unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 22:43

Copilot AI 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.

🟡 Changes recommended

The lock-file-free template omits the new default and migration guidance, leaving --without-lockfile skill output without documentation for behavior that also changes in that mode.

1 open issue
What changed in this PR

This PR makes the structural RPM spec editor the default across spec loading, source preparation, and component commands, while retaining the legacy editor as a deprecated option.

Changes:

  • Default to structural, warn when legacy is selected, and reject the former experimental CLI value.
  • Update tests for default selection, editor routing, and deprecation warnings.
  • Refresh user documentation, agent guidance, and MCP snapshots.
File Description
scenario/​__snapshots__/​TestMCPServerMode_1.snap.json Updates MCP editor-option descriptions.
internal/​rpm/​spec/​spec_test.go Tests default structural loading.
internal/​rpm/​spec/​editor.go Changes the default and documents legacy deprecation.
internal/​rpm/​spec/​edit_test.go Adjusts editor-selection and mutation tests.
internal/​app/​azldev/​core/​sources/​sourceprep.go Defaults source preparation to structural editing.
internal/​app/​azldev/​cmds/​component/​speceditor.go Updates CLI selection, defaults, and warnings.
internal/​app/​azldev/​cmds/​component/​speceditor_internal_test.go Tests CLI defaults, warnings, and accepted values.
internal/​app/​azldev/​agentskill/​content/​overlays.md.tmpl Adds editor-selection and migration guidance.
internal/​app/​azldev/​agentskill/​agentskill_test.go Checks emitted editor guidance.
docs/​user/​reference/​config/​overlays.md Documents the default and legacy migration.
docs/​user/​reference/​cli/​azldev_component.md Updates editor-option help.
docs/​user/​reference/​cli/​azldev_component_update.md Updates inherited editor-option help.
docs/​user/​reference/​cli/​azldev_component_test.md Updates inherited editor-option help.
docs/​user/​reference/​cli/​azldev_component_render.md Updates inherited editor-option help.
docs/​user/​reference/​cli/​azldev_component_query.md Updates inherited editor-option help.
docs/​user/​reference/​cli/​azldev_component_prepare-sources.md Updates inherited editor-option help.
docs/​user/​reference/​cli/​azldev_component_metadata.md Updates inherited editor-option help.
docs/​user/​reference/​cli/​azldev_component_list.md Updates inherited editor-option help.
docs/​user/​reference/​cli/​azldev_component_history.md Updates inherited editor-option help.
docs/​user/​reference/​cli/​azldev_component_diff-sources.md Updates inherited editor-option help.
docs/​user/​reference/​cli/​azldev_component_changed.md Updates inherited editor-option help.
docs/​user/​reference/​cli/​azldev_component_build.md Updates inherited editor-option help.
docs/​user/​reference/​cli/​azldev_component_add.md Updates inherited editor-option help.

Review effort: Balanced

Comment on lines +38 to +41
The structural editor is the default. It preserves conditional and section structure
more reliably than the line-oriented editor. The `legacy` editor is deprecated and
emits a warning when selected with `--spec-editor legacy`; it will be removed in a
future release. The former `experimental` value is no longer accepted.
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.

2 participants