Skip to main content

Module rules

Module rules 

Source
Expand description

Rule definitions more than one write path needs to agree on.

structure::ensure_rules_and_fulltext (CLI, ingest-git/sync) and remember both write nodes whose derived edges depend on an about_<label> rule existing — the first as part of a full refresh, the second one Note at a time, possibly the very first write a store ever sees. Two independent copies of these definitions would eventually drift; this module is the one place they are declared, so both callers create byte-identical RuleDefs under the same names.

Constants§

ABOUT_LABELS
Labels a Note.about entry may point at, in rule-creation order. One about_<label> rule per label, since a rule has a single destination.

Functions§

about_rule
The about_<label> rule for one of ABOUT_LABELS: Note.aboutABOUT edges to label.
concept_sources_rule
Concept.source_filesDESCRIBED_IN edges to File, the rule that backs stale_concepts’s provenance.