Living Document Notice
Staged 2026-09-28. Living revisions and interconnected notes live in the Bosun PKM Garden.

Byte-Exact Ingredient Scaling via Rowan CST Primitives

Adjusting recipe serving sizes dynamically often scrambles handwritten technique notes or miscalculates fractional unit scaling. Linking against Marlinspike Rowan Concrete Syntax Tree (CST) primitives enables byte-exact, lossless quantity adjustments.

Scaler Invariants

  • Lossless Prose Preservation: Syntax tree parsing targets exclusively ingredient numerical quantities and unit tokens, leaving author comments and methodology prose untouched.
  • Mixed-Fraction Arithmetic: Quantities calculate precisely across mixed fractions (e.g., 1 1/2 cups) without floating-point rounding errors.
  • Instant Yield Multiplying: Servings adjustments update ingredient tables in memory or via surgical CST frontmatter updates instantly.

Byte-exact scaling bridges the gap between fixed-yield cookbooks and adaptable kitchen workflows.


  • Directus Target: galley-blog
  • Garden Source Reference: MOC - Galley Culinary Engine, MOC - Syntax Engines & Parsers, TRC-1001 - 5-State Checkbox AST Spec