documentation-index-section-ambiguous
Reports an Index Document that contains the configured Index Section heading more than once.
What it does
Reports the second occurrence when the configured semantic heading identifies multiple sections in one Index Document.
Why it matters
Presswork needs exactly one section to own the directory’s inventory.
Examples
Non-passing
# Source Of Truth Map
- [Guide](docs/guide.md) — Load for contributor guidance.
# Source Of Truth Map
Passing
# Source Of Truth Map
- [Guide](docs/guide.md) — Load for contributor guidance.
When it applies
This Rule belongs to the configurable documentation-indexes group and runs for enabled Index Policies. The configured heading text is matched semantically, independent of heading depth.
References
See Presswork Configuration for the configured heading and src/check/evaluate-index.ts for section selection.