Repository navigation
refactor(execution): typed action contract + Planner (Phase 2C+2D) - #133
Merged
Merged
Conversation
…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).
This was referenced Feb 16, 2026
6 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
slots map[string]anyinstead of*Node.Node.Actionis an interface field with custom JSON/YAML marshal. Executor resolves promise slots beforeDo/Undo. Content pipeline deleted — content flows via promise slots and Result.Node.Modedeleted (mode is a slot).ActionRegistry.MustGetadded; all builders thread registry. Delegate concept and manifest.Resolve action deleted. Flow package added (flow.Choose,flow.Gather,flow.Elevate).lore.Plannerstruct withPlanPackages/PlanByNamemethods.BuildTreereturns manifest paths;DeployGraphBuildercalls Planner for each. Writ deploy wires Planner at construction time.manifest.resolveremoved from execution runtime (kept as tree detection sentinel).Test plan
go build ./...passesgo vet ./...passesgo test ./... -count=1— all packages passlegacy|backward|compat|deprecatedcode in changed files