Package org.egothor.methodatlas.attest
Class AttestFacade
java.lang.Object
org.egothor.methodatlas.attest.AttestFacade
Single public entry point used by
MethodAtlasApp to drive
-attest.
The package's data records, collector, and writer are all package-private so they remain implementation details. The facade exposes only the operations the CLI needs:
- prepare a collector (returning a handle that must be threaded through the orchestrator as an extra sink);
- after the scan, ask the same handle to write the attestation manifest.
The manifest is a compact JSON file listing every AI-classified
security-relevant test method, the commit SHA (resolved from CI environment
variables), and optional content hashes. It is designed to be signed
externally with cosign sign-blob or GPG and attached to a release as
a tamper-evident record of which security tests existed at that point.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOpaque handle returned byprepare(double, List). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault filename used when-attest-fileis not supplied. -
Method Summary
-
Field Details
-
DEFAULT_ATTEST_FILENAME
Default filename used when-attest-fileis not supplied.- See Also:
-
-
Method Details
-
prepare
Prepares an attestation collector.- Parameters:
minConfidence- AI minimum-confidence threshold; AI-only evidence below this value is excluded from the manifestscanRoots- scan root paths written to the manifest header- Returns:
- handle ready for use by the orchestrator and writer
-