A-IForgeEngineDocsShapes1. Shapes Overview

Shapes describe the expected body structure for notes.

Schemas validate frontmatter and metadata.

Shapes validate headings, section organization, and structural consistency inside the note body.

Together they help keep vaults predictable as templates evolve over time.

Enable the Shape Engine in:

Settings → Shapes

Shape Validation

What Shapes Are For

Shapes help standardize reusable note structures.

They are especially useful for:

  • project notes
  • meeting notes
  • research workflows
  • client records
  • operational runbooks
  • recurring templates
  • dashboard source notes

Without Shapes, note structures gradually drift apart over time.

Examples:

  • missing sections
  • inconsistent heading order
  • duplicated sections
  • renamed headings
  • partial templates
  • abandoned structure patterns

Shapes help detect and repair those inconsistencies.


Shape Pieces

PieceMeaning
Shape noteA note in A-I/Forge/Shapes describing a reusable structure
Template noteA generated or refined structural template
Type target fieldFrontmatter field used to match notes to shapes
Shape lintValidates headings against the matching template
Shape repairInserts or reorders headings to match the template

Typical Shape Workflow

A common workflow looks like this:

  1. Create shape notes in A-I/Forge/Shapes
  2. Enable template refinement
  3. Run Forge: Refine Shape Templates
  4. Enable shape heading validation
  5. Run Forge: Run Vault Lint
  6. Run Forge: Run Shape Repair (Dry Run)
  7. Review the preview carefully
  8. Run shape repair only after validation

Most users should begin with dry runs until they understand how their templates behave.


Matching Rules

A heading matches the template only when all three conditions match:

  • heading text
  • heading level
  • parent heading chain

This prevents a heading like:

## Notes

under one section from satisfying:

## Notes

under a completely different section.

Forge validates the actual heading tree, not just isolated headings.

Tiny tree goblin defeated.


Recursive Tree Matching

Shape validation uses recursive tree matching.

That means Forge evaluates heading structure in context instead of flattening everything into one giant heading list.

This allows Shapes to detect:

  • misplaced sections
  • incorrect nesting
  • duplicated branches
  • structural drift
  • broken template hierarchy

This becomes especially useful in larger operational or research notes with deep section trees.


Shape Lint

When enabled, Vault Lint can include shape validation findings.

Common findings include:

FindingMeaning
shape_heading_missingRequired heading is absent
shape_heading_orderHeadings exist but appear in the wrong order
shape_heading_extraHeading exists outside the expected structure
shape_section_emptyRequired section exists but contains no direct content

Shape lint helps identify gradual structural drift before templates become inconsistent across the vault.


Shape Repair

Shape Repair can automatically:

  • insert missing headings
  • restore heading order
  • repair template structure
  • standardize repeated note formats

Forge always recommends running:

Forge: Run Shape Repair (Dry Run)

before actual repair operations.


Shape Repair

Template Refinement

Forge can generate or refine templates from shape notes.

This allows templates and validation rules to evolve together over time.

Template refinement is useful when:

  • workflows mature
  • note structures stabilize
  • teams standardize formats
  • recurring systems become consistent

Most users should treat refinement as gradual iteration instead of permanent rigid structure.


Shapes and Dataview

Consistent note structure improves more than readability.

It also improves:

  • Dataview dashboards
  • Bases
  • exports
  • automation workflows
  • AI-assisted retrieval
  • operational reviews

When notes share predictable sections, downstream tooling becomes dramatically more reliable.


Shapes and Ontology Indexes

Shapes work especially well alongside relationship indexes.

Shapes keep note structure predictable.

Relationship indexes help map how those structured notes connect across the vault.

Together they help larger vaults remain:

  • navigable
  • queryable
  • understandable
  • maintainable

Suggested Starting Point

Start small.

Do not attempt to shape every note type immediately.

Good first candidates include:

  • project notes
  • meeting notes
  • research summaries
  • operational runbooks

Simple templates usually age better than giant deeply nested structures.


Related Notes

30 Notes link here
Built with LogoFlowershow