Ancora.AppendOnly (ancora v1.0.0-rc.1)

Copy Markdown View Source

Diff-time append-only detectors. Exactly two guards:

  • append/requirement_deleted — a requirement id present at base is absent on HEAD
  • append/must_downgraded — a requirement's priority moves from must to should

Either finding is suppressed only by an ADR with status: accepted whose affects: names the requirement id or its subject id. There is no weakening-class enum and no change_type requirement.

analyze/2 is a total function over (prior_index, current_index). Both arguments are index-shaped maps ("subjects", "decisions"). The module has no Git I/O.

Summary

Functions

Diffs prior against current and returns the two append-only findings that are not authorized by a HEAD-side accepted ADR.

Functions

analyze(prior, current)

@spec analyze(map(), map()) :: [Ancora.Finding.t()]

Diffs prior against current and returns the two append-only findings that are not authorized by a HEAD-side accepted ADR.