Crosswake.Planning.FirstAdopterContext (crosswake v0.2.3)

View Source

Routes first-adopter planning context to its permitted destination and provides deterministic, browser-free privacy checks for repository-facing material.

Host-private values, secret inputs, and forbidden discovery sources are recorded as non-scanned boundaries so they cannot accidentally become repository content.

Summary

Functions

Returns repository paths that are eligible for the generic public scan.

Returns destination-tagged globs for repository artifacts that must be scanned.

Discovers approved regular files below a repository root in deterministic path order.

Returns the complete, stable path-to-destination routing matrix.

Checks generic public/durable privacy boundaries without reading the filesystem.

Scans approved repository files without returning private terms or file contents.

Checks caller-supplied private terms without returning a term or matching content.

Functions

active_paths()

@spec active_paths() :: [String.t()]

Returns repository paths that are eligible for the generic public scan.

artifact_globs()

@spec artifact_globs() :: [map()]

Returns destination-tagged globs for repository artifacts that must be scanned.

discover_paths(root)

@spec discover_paths(Path.t()) :: [String.t()]

Discovers approved regular files below a repository root in deterministic path order.

routing_matrix()

@spec routing_matrix() :: [map()]

Returns the complete, stable path-to-destination routing matrix.

scan(contents_by_path)

@spec scan(%{required(String.t()) => String.t()}) :: [map()]

Checks generic public/durable privacy boundaries without reading the filesystem.

scan_filesystem(root, terms)

@spec scan_filesystem(Path.t(), [String.t()]) :: [map()]

Scans approved repository files without returning private terms or file contents.

scan_private_terms(contents_by_path, terms)

@spec scan_private_terms(%{required(String.t()) => String.t()}, [String.t()]) :: [
  map()
]

Checks caller-supplied private terms without returning a term or matching content.