Admin maintenance
Discovered rule library
This screen shows the code-backed rules discovered at application startup and synchronized into the metadata store before the admin UX loads.
Rules
13 discovered rules
Each rule is discovered through the shared rule interface and written into SQL at startup.
Templates using rules
2 templates
Templates compose from this library; instances only inherit, disable, and override.
Variables
23 surfaced variables
Variable definitions become available automatically when the discovered rule exposes them.
Rule
Body
Identifies the cover letter body and closing content after the salutation.
Rule id: coverletter.body
- Cover Letter coverletter
- Paragraph Spacing After
Controls the spacing after rendered body paragraphs in the final document layout.
- Separator Handling
Controls whether markdown separator lines such as --- are removed or rendered as horizontal rules.
Rule
Date
Identifies the primary business-letter date line.
Rule id: coverletter.date
- Cover Letter coverletter
- Date Justification
Controls whether the rendered date is aligned left or right in the final business-letter layout.
- Missing Date Behavior
Controls whether rendering fails or inserts a date when no date line is found.
Rule
Em Dash
Handles em-dashes according to the selected template preference.
Rule id: common.emdash
- Cover Letter coverletter
- Report report
- Em Dash Mode
Controls how em-dashes are handled in polished output.
Rule
Heading Depth Limit
Caps excessive heading depth according to the selected template preference.
Rule id: common.heading-depth-limit
- Report report
- Heading Depth Maximum
Sets the highest heading level that may remain after capping.
- Heading Depth Limit Mode
Controls whether heading levels deeper than the selected maximum are capped or preserved.
Rule
Page Number Footer
Controls the placement, format, and visibility of page numbers in the Word document footer.
Rule id: common.page-number-footer
- Report report
- Enable Footer
Controls whether the page number footer is included in the rendered Word document.
- Footer Font Size
Controls the font size of the page number text in the footer.
- Page Number Format
Controls the display format of the page number in the footer.
- Page Number Position
Controls whether the page number appears on the left, center, or right side of the footer.
- Show on First Page
Controls whether the page number footer appears on the first page of the document.
Rule
Recipient Address
Identifies the recipient address block that appears between the date and salutation.
Rule id: coverletter.recipient-address
- Cover Letter coverletter
This rule does not currently expose configurable variables.
Rule
Report Layout
Defines report rendering preferences such as TOC threshold and footer page numbers.
Rule id: report.layout
- Report report
- Estimated Words Per Page
Used to estimate whether the report is long enough to include a table of contents.
- Footer Page Number Alignment
Controls whether the page number appears on the left, center, or right side of the footer.
- TOC Minimum Estimated Pages
Adds a table of contents only when the report is estimated to exceed this page count.
- TOC Page Break Placement
Controls whether the renderer inserts a page break before the TOC, after the TOC, both, or neither.
Rule
Report Sections
Builds report sections from markdown headings, paragraphs, and bullet lists.
Rule id: report.sections
- Report report
This rule does not currently expose configurable variables.
Rule
Report Subtitle
Identifies a subtitle immediately below the report title when one is present.
Rule id: report.subtitle
- Report report
- Subtitle Justification
Controls whether the report subtitle is aligned left, center, or right.
Rule
Report Title
Identifies the opening report title when one is present.
Rule id: report.title
- Report report
- Title Justification
Controls whether the report title is aligned left, center, or right.
Rule
Salutation
Identifies the greeting line that opens the letter body.
Rule id: coverletter.salutation
- Cover Letter coverletter
This rule does not currently expose configurable variables.
Rule
Semantic Spacing Normalizer
Reviews the document after structural formatting and converts Markdown line behavior into appropriate Word paragraph breaks or manual line breaks, preserving author intent while preventing unwanted whitespace and layout drift.
Rule id: common.semantic-spacing
- Cover Letter coverletter
- Report report
- Blank Line Preservation Mode
Controls how blank lines in Markdown are interpreted during spacing normalization.
- Break Mode for Stacked Lines
Controls whether compact stacked metadata lines become separate Word paragraphs or manual line breaks within a single paragraph.
- List Spacing Mode
Controls whether bullet and numbered lists use compact or loose vertical spacing.
- Metadata Stack Detection
Controls how aggressively the normalizer identifies sequences of short adjacent lines as compact stacked metadata blocks.
Rule
Uppercase Title
Normalizes fully uppercase titles according to the selected template preference.
Rule id: common.uppercase-title
- Report report
- Uppercase Title Mode
Controls how fully uppercase titles are normalized.