Skip to content

Remove full NetsukeManifest AST from graph-generation DEBUG logs #657

Description

@coderabbitai

Summary

Remove the DEBUG log in src/runner/graph_generation.rs that serialises and writes the complete user-supplied NetsukeManifest AST.

Rationale

A manifest can contain variables, macro bodies, and other user-supplied content. Writing the complete manifest to DEBUG logs can expose sensitive data and create unbounded log records.

Required changes

  • Remove the complete AST DEBUG log and its serialisation.
  • Keep the existing bounded graph-generation counter, duration histogram, trace span, and fixed error categories.
  • If diagnostic context is required, log only fixed or bounded metadata. Do not log user-supplied manifest content.

Affected area

  • src/runner/graph_generation.rs, Lines 55-59

Acceptance criteria

  • The graph-generation path does not serialise or log the complete NetsukeManifest.
  • Observability retains bounded metrics, tracing, and fixed error categories.
  • No replacement log includes variables, macro bodies, or other unbounded user-supplied manifest content.

Backlinks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestrefactorBehaviour-preserving restructuring that improves code health.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions