Skip to content

F030: Self-Healing Suggest Mode #107

@sefaertunc

Description

@sefaertunc

Description

Default self-healing mode. When approved tests break after code changes, suggests fixes for human approval.

Module

src/cognova/healing/healer.py

Flow

  1. Classify failure (structural vs assertion)
  2. Diff code-under-test (what changed since test was approved)
  3. Generate fix suggestion with explanation
  4. Present to user for approval
  5. If approved: update test, keep in LanceDB
  6. If rejected: user fixes manually

Healed test metadata

  • Tagged { healed: true, healed_at: timestamp }
  • Excluded from LanceDB few-shot retrieval until re-approved

Class: TestHealer

  • diagnose(test_path, failure_output) -> HealingDiagnosis
  • suggest_fix(diagnosis) -> HealingSuggestion
  • apply_fix(suggestion) -> HealingResult

MCP Tool

heal_test

Status

Placeholder (32 lines, class docstring + pass)

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions