Skip to content

Track Rule Violation Lifecycle and Fix Dynamics #29

@akhundMurad

Description

@akhundMurad

Pacta currently reports the presence of rule violations at a given snapshot but does not track how violations evolve over time.

This issue introduces violation lifecycle tracking to better understand rule effectiveness and architectural debt behavior.

Proposed metrics

  • Mean Time To Fix (MTTF) for violations
  • Percentage of violations older than N days
  • Detection of re-introduced (regressed) violations

A violation should be identifiable across snapshots to allow age and lifecycle tracking.

Example insight

35% of rule violations are older than 90 days, suggesting that architectural rules are being consistently ignored or deferred.

Acceptance Criteria

  • Violations are uniquely identifiable across snapshots
  • Violation age and lifecycle state (new, existing, resolved, regressed) are tracked
  • MTTF can be computed for resolved violations
  • Age-based violation statistics can be queried
  • Metrics are exposed via existing reporting outputs
  • Lifecycle behavior is documented

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions