Skip to content

Track implementation: formula-as-EDGE (field formulas) #29

Description

@chouswei

Summary

Track implementation of the formula-as-EDGE design: derived numerics modelled as durable EDGE relations (e.g. rel=derives / formula), with field locators on the edge payload, not inline expression syntax on NODE fields. Write = display; pin map shows absolute field values plus the relation line.

Design SSOT: docs/grammar/memnet-field-formulas.md

Design landed in docs: 959f124Document field formulas as EDGE relations (derives/feeds).

Scope (implementation, not yet in engine)

  • Same-node self-loop formula edges as the first dialect candidate
  • Bare-present EDGE lines on pin map; target values remain absolute numbers
  • Materialise target on write when an expression engine exists (evaluation policy); no expression engine in 0.3.6+ per design
  • Keep locked +=/-= literal-only; do not overload LAW or add CALC as a third kind

Out of scope for this tracker (unless design changes)

  • Primary authoring via cashflow:=rent-expenses node sugar (may compile to EDGE later)
  • Full cross-node expression language

Acceptance (draft)

  • Wire/mutate accepts documented formula EDGE shape(s)
  • Pin map renders formula edges in shared dialect
  • Optional: re-materialise derived fields after source +=/-= updates (when engine exists)
  • Tests and grammar doc cross-links stay aligned with memnet-grammar-design.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions