NAME
PAX::ArtifactCache - artifact metadata store for compiled native outputs
SYNOPSIS
use PAX::ArtifactCache;
my $obj = PAX::ArtifactCache->new(...);
my $result = $obj->write_artifact(...);
DESCRIPTION
Writes, reads, and validates cache metadata for compiled artifacts so PAX can tell whether a native output still matches the current manifest and runtime ABI.
METHODS
new, write_artifact, metadata_for, read_artifact, validate_metadata
These are the public entrypoints exposed by this module's current interface.
PURPOSE
This module exists to keep the artifact metadata store for compiled native outputs logic in one place so the CLI, build pipeline, and runtime can reuse the same behavior instead of duplicating it.
WHY IT EXISTS
PAX uses this module when it needs artifact metadata store for compiled native outputs. Keeping that behavior isolated here makes the surrounding compiler and packaging stages easier to reason about and safer to evolve.
WHEN TO USE
Edit this file when a change affects artifact metadata store for compiled native outputs, the data contract this module returns, or the conditions under which callers choose this path.
HOW TO USE
Load the module through the normal PAX call path, pass explicit arguments rather than ambient global state, and keep project-specific behavior out of this file so the implementation stays neutral across arbitrary Perl applications.
WHAT USES IT
This module is used by the PAX CLI, the build pipeline, standalone packaging, and the test suite paths that cover artifact metadata store for compiled native outputs.
EXAMPLES
Example 1:
perl -Ilib -MPAX::ArtifactCache -e 1
Confirm that the module loads from a source checkout.
Example 2:
prove -lr t
Run the repository test suite after changing the behavior this module owns.