Documentation
¶
Overview ¶
Package derive turns present artefacts into capability, by applying cited knowledge. It is where "this package is installed" becomes "this package can perform these algorithms": a statement about the software, from a citation, not something the host was seen to do.
Every derived fact names the observation it rests on and the knowledge that produced it, and is checked by evidence.Graph.Add, which rejects a derived claim stronger than its inputs. This package imports no platform code and no CycloneDX.
Index ¶
Constants ¶
const RelProvidedBy = "provided-by"
RelProvidedBy is the relation kind a derived capability uses to point back at the artefact that provides it.
Variables ¶
This section is empty.
Functions ¶
func Capabilities ¶
Capabilities adds a derived `capable (mapped)` observation to g for every algorithm each recognised artefact provides.
A node qualifies only if its `present` evidence is at least parsed quality: authoritative (a package database row) or parsed (a PE version resource). A name match alone never qualifies (ADR-0002), so a decoy file named like a crypto library is listed as present and never credited with capabilities.
Version-gated capabilities need a readable version; when it cannot be read they are omitted, never assumed.
Types ¶
This section is empty.