pub fn known_rule_ids(root: &Path) -> Result<HashSet<String>, String>Expand description
Every rule id (R2.3, …) enumerated in the greenfield reference
(design/bynk-greenfield-compiler.md) — the existence check for a pending
file’s closes_rule entries, separate from is_rule_id’s pure syntax
check because it needs the repo root. Root-parameterised like
stamp::next_adr_number, so a fixture tree can supply its own reference doc.
Rules are written inline as **R2.3 — <title>.**; this scans every **R
occurrence for the dotted id immediately following, rather than requiring a
line-start anchor — the doc’s own precedent (grep -oE '\*\*R[0-9]+\.[0-9]+ —') confirmed this finds exactly the 130 rules the reference claims.