Documentation
¶
Overview ¶
Package findingkey derives the stable key of a consistency finding (G1 of itd-2609291923559186, spc-2610021456200324): `cfk-` and sixteen hex digits, the same for the same contradiction on every run.
It is the ONE derivation. The consistency pass keys every finding and report row with it and capture writes it into the issue a finding files (`finding_ref:`), so a contradiction found again is joined to the record that already holds it; record-lint keys its cross-document findings with it too. It sits under core/record beside match because both core/intent and core/lint call it, and lint cannot import intent. It is a leaf: it reads nothing, writes nothing and never prints.
Index ¶
Constants ¶
const Prefix = "cfk-"
Prefix opens every key.
Variables ¶
This section is empty.
Functions ¶
func Derive ¶
Derive is the key of a finding of class between a and b. Each end's path becomes its identity path and each quote is collapsed; the two ends are ordered by identity path, then by quote; and the key is the prefix and the first sixteen hex digits of the SHA-256 of the domain, the class and the two ordered (path, quote) pairs, with NUL between every field.
The key is over the reviewers' quotes, so it is exactly as stable as they are, and that has two limits a caller must not read past:
- the same contradiction quoted differently (another sentence of the same passage, a longer or shorter excerpt, a reworded document) gets another key, so a resolved or won't-fix record carrying the old key does not mark it addressed, and it is filed again unless the prose match links it to an open record;
- a contradiction fixed and later reintroduced with the same text gets the same key, so a resolved record carrying it marks the new occurrence addressed and files nothing.
Quotes are compared with whitespace collapsed and nothing else: no stemming, no fuzzy match, so neither limit narrows with wording that only looks alike.
func StatusFoldersForTest ¶
StatusFoldersForTest returns the status folders this package drops from a path under root, or nil when root is no status-foldered store. It exists for the tests that pin each list to its owner's.