Skip to content

charly migrate reformats untouched YAML (indentation, folded scalars, blank lines) in every file a step rewrites #31

Open

Description

@aitrawog

Finding (R1)

charly migrate rewrites every file it touches through a yaml.v3 round-trip. So a one-key step reformats unrelated content in that file: list indentation, folded scalars, block-scalar indentation, and blank lines. The values survive, but the diff is mostly noise a reviewer cannot check, and an author has to hand-revert it.

Evidence

Running charly migrate (dev build carrying the new aur-not-a-build-format step, opencharly/sdk#608) on opencharly/pod-kde-vnc main (2a2f526). The step's own change is one line (- aur removed from kde-vnc's build:). The same run also:

  • re-indented every stdout: matcher list by two spaces (- matches:, - equals: RUNNING, - contains: …, - not_contains: llvmpipe);
  • reflowed a five-line folded description: into one line;
  • shifted the indentation of command: block scalars.

On opencharly/distro-cachyos the same step also dropped a blank line between candy entries in four box files.

Expected

A migration step changes only what it migrates. The engine should edit the node in place and write back only the changed region (or preserve the source formatting of untouched nodes), so a step's diff is exactly its op.

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)

Activity

  1. added
    category:runtime
    type:fix
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:runtimetype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions