Skip to content

Add lock schema compatibility gate for compiled .lock.yml files #16360

Description

@davidahmann

Problem

Compiled .lock.yml files are consumed by multiple commands, but there is no explicit schema compatibility gate. If lock metadata evolves, older/newer files can be partially interpreted without a hard failure.

Expected behavior

  • Every generated lock file carries an explicit lock schema version marker.
  • Lock consumers validate schema compatibility before parsing lock content.
  • Incompatible lock files fail closed with deterministic remediation guidance.

Acceptance / validation

  • Add a compatibility matrix (supported schema versions).
  • Add unit tests covering:
    • compatible lock version passes
    • unsupported future version fails with actionable error
    • malformed or missing version behavior is deterministic
  • Validate affected commands that read lock files still pass existing tests.

Metadata

Metadata

Type

No type
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