Skip to content

F031: Self-Healing Auto Mode #108

@sefaertunc

Description

@sefaertunc

Description

Auto self-healing mode for cosmetic fixes only. Auto-applies without human approval.

Module

src/cognova/healing/auto_healer.py

Auto-apply criteria (ALL must be true)

  • config.self_healing.mode == "auto"
  • Failure is STRUCTURAL (not assertion)
  • Fix is COSMETIC: renames, import path changes, type annotation updates
  • Fix does NOT change test assertions or expected values

Always requires human approval

  • Changed expected values
  • Added/removed assertions
  • Modified test logic
  • Changed mock behavior

Class: AutoHealer

  • is_cosmetic(original, fixed) -> bool
  • auto_heal(test_path, failure_output) -> AutoHealResult

Dependencies

  • F030 (Self-Healing Suggest — base mode)
  • F028 (Failure Classification)

Status

Placeholder (28 lines, class docstring + pass)

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions