Skip to content

refactor(execution): typed action contract + Planner (Phase 2C+2D) - #133

Merged
David-Noble-at-work merged 1 commit into
developfrom
feat/flow-dotted-names
Feb 16, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
feat/flow-dotted-names

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Summary

  • Phase 2C: Action contract takes slots map[string]any instead of *Node. Node.Action is an interface field with custom JSON/YAML marshal. Executor resolves promise slots before Do/Undo. Content pipeline deleted — content flows via promise slots and Result. Node.Mode deleted (mode is a slot). ActionRegistry.MustGet added; all builders thread registry. Delegate concept and manifest.Resolve action deleted. Flow package added (flow.Choose, flow.Gather, flow.Elevate).
  • Phase 2D: lore.Planner struct with PlanPackages/PlanByName methods. BuildTree returns manifest paths; DeployGraphBuilder calls Planner for each. Writ deploy wires Planner at construction time. manifest.resolve removed from execution runtime (kept as tree detection sentinel).

Test plan

  • go build ./... passes
  • go vet ./... passes
  • go test ./... -count=1 — all packages pass
  • No legacy|backward|compat|deprecated code in changed files
  • Phase 2C, 2D, and 3 plan documents saved

…nner (Phase 2C+2D)

Phase 2C: Action contract takes slots map instead of Node pointer.
Node.Action is an interface field (not string) with custom JSON/YAML marshal.
RecoveryEntry stores Node+UndoState; executor resolves slots before Do/Undo.
Content pipeline deleted (ContentFor/StoreContent) — content flows via
promise slots and Result. Node.Mode deleted — mode is a slot.
ActionRegistry.MustGet added; all builders thread registry.
Delegate concept deleted (SubgraphBuilder, ExpandDelegates, isDelegateNode).
manifest.Resolve action deleted. Flow package added (Choose/Gather/Elevate).

Phase 2D: lore.Planner struct with PlanPackages/PlanByName methods.
BuildTree returns manifest paths; DeployGraphBuilder calls Planner for each.
Writ deploy wires Planner at construction time. manifest.resolve removed
from execution runtime (kept as tree detection sentinel).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant