PtcRunner.Kernel.AnalysisProfile (PtcRunner v0.14.0)

Copy Markdown View Source

Shared assembler and attestation recipe for code-owned analysis profiles.

Profiles remain a closed set selected through PtcRunner.Kernel.AnalysisProfileRegistry. Callers may provide only the declared directory resources and trace destination; they cannot supply a profile module, component, capability, mission datum, limit, label, or sink policy.

Summary

Functions

Refuses a capture that admitted no artifact from its resource directory.

Types

recipe()

@type recipe() :: module()

Functions

refuse_empty_capture(arg1, empty_error)

@spec refuse_empty_capture(term(), atom()) :: :ok | {:error, atom()}

Refuses a capture that admitted no artifact from its resource directory.

Directory capture is one level deep by design, so a directory whose artifacts sit in subdirectories admits nothing and then answers every query with an empty page — indistinguishable from a capture that genuinely holds no runs. Takes the snapshot's own info/1 result so both snapshot kinds are checked the same way, and fails closed on any info the owner cannot report.