feat(syntax)!: action-model syntax — map … onto … verb + @ fold modifier #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "v0.6-action-syntax"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Plan A of the action-model pivot (Slice 1). Beloch shifts from a crease-pattern construction language to an action model: a program is an imperative sequence of folding actions on a stateful sheet, with the flat crease pattern and mountain/valley becoming derived outputs. See ADR
decisions/0011-action-model.mdand the full design indocs/superpowers/specs/2026-06-29-action-model-folding-design.md.This PR is the syntax layer only — no fold execution yet:
map … onto …, type-dispatched on the operands:map .a onto .b(axiom 2, wasfold .a to .b) andmap --l1 onto --l2 toward .p(axiom 5, wasbisect …).throughandperpkeep their own verbs.@fold modifier —@axiom [moving .p] [mountain]— into an ASTfold_spec(default direction valley). A bare axiom stays a precrease (flat line, identical behaviour to today).@statement withfolding (@) is not yet implemented. The folded-state runtime (foldedFormoutput, derived mountain/valley, layer model) lands in a separate later plan (Plan B), which needs its own algorithm-design pass.Breaking:
fold/bisect/toare gone from the surface. All examples and the spec are migrated; ADR 0011 added. 56/56 tests green.