AppSurface Search
API Reference

Planner

Type

EvidencePlanner

Source

Resolves a checked-in policy and normalized diff into one closed evidence plan.

Method

Resolve

EvidencePlan Resolve(EvidencePolicy policy, IReadOnlyList<NormalizedDiffPath> changedPaths) Source

Resolves one deterministic plan without starting resources or producers.

Parameters

  • policyVersioned consumer policy.
  • changedPathsExplicit normalized changed paths.

Returns

A hash-bound evidence plan.

Method

ValidatePolicy

void ValidatePolicy(EvidencePolicy policy) Source

Validates that a policy can yield a conservative and truthful v1 plan.

Parameters

  • policyPolicy to validate.
Type

EvidenceUnifiedDiffReader

Source

Reads explicit changed paths from a unified diff without depending on a local Git checkout.

Method

Read

IReadOnlyList<NormalizedDiffPath> Read(string diff) Source

Parses changed paths from unified diff text.

Parameters

  • diffUnified diff text.

Returns

Normalized added, modified, deleted, and renamed paths.

Type

PathPattern

Source

Matches exact paths and segment globs without content-sensitive policy evaluation.

Type

EvidencePlanningException

Source

Represents a stable, user-facing evidence planning failure.

Property

Code

string Code { get; } Source

Gets the stable diagnostic code.

Property

Fix

string Fix { get; } Source

Gets the concrete remediation.