Skip to content

[self-audit D-M10] Valid YAML nesting indents are rejected as 'Invalid YAML indentation' #246

Description

@TheAmericanMaker

Source: 2026-09-11 self-audit of v0.19.5 (commit f6f8484), finding D-M10 in the reconciled review; raw finding mech 2.7.
Severity: medium · Disposition: port differently · Evidence: observed fact, probe-confirmed (C2)

Location

core/yaml.ts:246-247,333-337.

Defect

The parser accepts only its own emitter's indent for keys nested under a sequence item; a handoff with keys four columns past the dash (valid YAML) fails with a message that names indentation rather than the construct (probe C2).

Proposed fix

Accept any consistent nesting indent; make the error name the construct and line.

The reimplementation spec carries this as a normative rule with a named acceptance scenario.

Activity

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

    bugSomething isn't workingself-auditFiled from a CodeCartographer self-audit run

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions