Skip to content

AST support for YAML, Dockerfiles and Helm templates #539

Description

@dan-petty

Found by the first run of devops review samples validate (#505).

Kubernetes manifests (41 YAML files), Helm templates (.tpl) and Dockerfiles yield no symbols, so repository maps are empty for the Docker samples and show only incidental code for the Helm and Kubernetes samples. #506 covers C#, C/C++, shell and Markdown only.

Deliverables

  • Symbols for Kubernetes manifests (each resource's kind and name), Helm templates (named templates, define blocks) and Dockerfiles (stages, FROM images).
  • The sample validation shows them for the Kubernetes/Helm and Dockerfile categories.

Proposed design

Problem statement

The devops-cli tool currently lacks support for parsing and extracting symbols from YAML files (Kubernetes manifests), Dockerfiles, and Helm template files (.tpl). This results in empty repository maps for these file types during sample validation, preventing accurate analysis of code structure and dependencies.

Acceptance criteria

  • Criterion 1: Kubernetes manifest files should provide symbols for each resource's kind and name
    Verification: Running devops review samples validate on a repository with Kubernetes manifests shows symbol information for each resource in the YAML files
  • Criterion 2: Helm template files should provide symbols for named templates and define blocks
    Verification: Running devops review samples validate on a repository with Helm template files shows symbol information for each named template and define block in the .tpl files
  • Criterion 3: Dockerfiles should provide symbols for stages and FROM images
    Verification: Running devops review samples validate on a repository with Dockerfiles shows symbol information for each stage and FROM instruction in the Dockerfiles

Key questions

None.

Open questions

  • What specific AST parsing approach will be used to extract symbols from YAML files? (missing verified source)
  • What specific AST parsing approach will be used to extract symbols from Dockerfiles? (missing verified source)
  • What specific AST parsing approach will be used to extract symbols from Helm template files? (missing verified source)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added this to the v0.2.24 milestone on Sep 24, 2026
  2. added
    type/feature
    scope/ai
    priority/p2-medium
    on Sep 24, 2026
  3. modified the milestones: v0.2.24, v0.2.25 on Sep 30, 2026
  4. dan-petty commented on Sep 30, 2026

    @dan-petty
    OwnerAuthor

    Moved from v0.2.25 to the backlog. v0.2.25 is capped at 12 items (#740), and only the next two planned releases keep a milestone (#739), so P2 items wait in the backlog until reprioritization pulls them in.

  5. added
    scope/review
    on Oct 2, 2026
  6. dan-petty commented on Oct 3, 2026

    @dan-petty
    OwnerAuthor

    Review redesign (#1137, 2026-10-03): this item is a phase P5 child: AST support for YAML, Dockerfiles and Helm templates feeds the structural matching of reference exploits.

  7. dan-petty commented on Oct 8, 2026

    @dan-petty
    OwnerAuthor

    Linked: #540. Both come from #505's sample validation; #540 builds the one language classifier symbol extraction reads, and #1137 orders it before this item. Found by the 2026-10-08 backlog review.

  8. modified the milestones: v0.2.38, on Oct 17, 2026
  9. added 2 commits that reference this issue on Oct 24, 2026
    1154470
    d4d6816
  10. added a commit that references this issue on Oct 24, 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

    priority/p2-mediumscope/aiscope/reviewtype/feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions