Skip to main content

Module diff

Module diff 

Source
Expand description

Bundle-level diff: an OKF-semantics diff between two Bundles.

bundle_diff reports concepts added, removed, renamed (detected by content hash), same-id body changes, frontmatter key changes, trust-tier/status changes, and cross-link changes between two snapshots. It is a semantic diff, not a raw file diff: frontmatter values are compared as parsed values, while body content is compared as text.

The rename heuristic hashes a concept’s body together with its type, title, and description (the identifying frontmatter fields that do not depend on the concept’s id). A removed and an added concept sharing that hash are reported as a rename rather than as separate add and remove. The heuristic is best-effort: a move that also edits the body, or one whose body contains self-referential links, will not be detected.

Structs§

BundleDiff
A bundle-level diff.
FrontmatterChange
Frontmatter key changes for a concept present in both bundles.
Rename
A rename detected by matching content hash between a removed and an added concept.
TrustChange
A trust tier or status change for a concept present in both bundles.

Functions§

bundle_diff
Computes the OKF-semantics diff between two bundles.