Skip to main content

Module generator

Module generator 

Source
Expand description

Entity → Markdown generator. Deterministic output for roundtrip stability.

Output order:

  1. YAML frontmatter (metadata keys in schema metadata_fields order)
  2. # {title}
  3. Required sections (schema order)
  4. Relationships section (if any explicit relations)
  5. Optional sections (schema order)

Constants§

MISSING_DATE_SENTINEL
Sentinel value emitted into the frontmatter for required date fields the caller did not supply and the schema does not auto-fill. Reads cleanly as “obviously a placeholder” to humans and agents (epoch zero in ISO 8601) and never gets mistaken for a real claim.

Functions§

generate_markdown
Generate markdown from a structured entity.