Ancora (ancora v1.0.0)

Copy Markdown View Source

Spec-anchored traceability and drift detection for Elixir.

Summary

Functions

Runs the assembled diff gate.

Builds the in-memory corpus index for root.

Validates the current corpus without diff analysis or target compilation.

Functions

check(root \\ File.cwd!(), opts \\ [])

@spec check(
  String.t(),
  keyword()
) :: {:ok, map()} | {:env, String.t()}

Runs the assembled diff gate.

index(root \\ File.cwd!(), opts \\ [])

@spec index(
  String.t(),
  keyword()
) :: map()

Builds the in-memory corpus index for root.

Delegates to Ancora.Index.build/2. The semver-stable parse API is Ancora.Parser.parse_file/2 and Ancora.DecisionParser.parse_file/2.

validate(root \\ File.cwd!(), opts \\ [])

@spec validate(
  String.t(),
  keyword()
) :: {:ok, map()}

Validates the current corpus without diff analysis or target compilation.