name: Performance Improvement
about: Report a performance problem or request an optimization
title: "[Performance] "
labels:
  - performance
body:
  - type: textarea
    id: summary
    attributes:
      label: Summary
      description: Short summary of the performance problem or optimization.
    validations:
      required: true

  - type: textarea
    id: observed
    attributes:
      label: Observed Behavior
      description: What is currently happening? Include metrics, traces, screenshots.
    validations:
      required: true

  - type: textarea
    id: target
    attributes:
      label: Expected Behavior / Target
      description: "What improvement do we expect? e.g. latency < 200ms, memory < X MB."
    validations:
      required: true

  - type: textarea
    id: reproduction
    attributes:
      label: Reproduction / Benchmark
      description: How to reproduce or reference a benchmark (commands, dataset, environment).

  - type: textarea
    id: optimization
    attributes:
      label: Proposed Optimization
      description: High-level plan or hypothesis for fix/optimization.

  - type: textarea
    id: measurement
    attributes:
      label: Measurement Plan
      description: "How to measure before/after: specific metrics, dashboards."

  - type: textarea
    id: risks
    attributes:
      label: Risks & Rollback
      description: Potential risks and fallback plan.

  - type: checkboxes
    id: checklist
    attributes:
      label: Checklist
      options:
        - label: Baseline metrics captured
        - label: Benchmark scripts included or linked
