# Canonical manifest template for /bugfix command.
# Source of truth for manifest schema — do not duplicate elsewhere.
# Placeholders: {name}, {description}, {date}
# Written to: .forge/work/bugfix/{name}/manifest.yaml
#
# v6 adds phase_plan: the planned status of each workflow step. The preflight
# step MUST replace `active` defaults below with the actual plan agreed with
# the user. See templates/manifests/v6/SCHEMA.md §3.

schema_version: "6"
name: {name}
type: bugfix
description: "{description}"
status: in-progress  # in-progress | paused | completed | escalated
created: "{date}"
command: bugfix
escalated_from: null
successor_path: null

# Plan-status per workflow milestone. Bugfix workflow is compressed compared
# to /feature — no concept/wireframe/prototype/codify by default. Allowed
# values: active | active-light | active-commit-only | skipped | as-discovered
# | complete-inline.
phase_plan:
  debug-root-cause: active
  production-build: active
  code-review: active
  deliver: active
  gotchas: as-discovered

# Gate state per phase. slice_graph is added at production-build if the fix
# is non-trivial; small fixes ship without one.
phases:
  debug:
    root-cause: { status: pending, gate-passed: false }
  quality:
    code-review: { status: pending, gate-passed: false }
  deliver:
    pr-created: false
  support:
    gotchas-recorded: false
