Documentation
¶
Overview ¶
Package memorycite answers one question about a piece of text: does it cite a specific working-memory file (ADR-0158)? The working-memory convention allows a decision record to name the directory or a placeholder, and bans naming an actual file, so the discrimination is entirely about what follows the prefix.
The prefix lives in a constant rather than inline in each literal because this file is itself scanned material: a source line writing a concrete name right after the prefix would be the very shape the detector flags, and the convention is to keep the shipped surfaces free of it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Categories ¶
func Categories(findings []Finding) ([]presentation.ReportCategory, error)
Categories maps memory-citation scan results into their check-report vocabulary.
func CommitGateDocument ¶
func CommitGateDocument(findings []Reference) (presentation.Document, error)
CommitGateDocument maps commit-message memory citations into the gate's complete ordinary presentation. Scan ownership and finding wording remain here.
Types ¶
type Finding ¶
Finding is one path's citations; the count is len(Lines). Pinned is non-nil when an exemption pinned a count that did not match, carrying the pin (which may legitimately be zero); nil when the path was not exempt at all.