[EPIC][expert] Planner / coordinator expert: symbolic decomposition, expert assignment, and bounded replanning #419
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/prolog-rlm#419
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Parent: #376
Depends on: #377, #378
Integrates with: #288, #68–#71, #355
Research input: #397 #401A
Goal
Add a reusable Planner / Coordinator Expert that turns a Frozen Spec plus current evidence and admitted procedural knowledge into a validated dependency graph of typed goals/operations and assigns expert-owned work to appropriate registered experts.
The coordinator is symbolic first. It is not a second scheduler: #288 / the existing graph runtime remains authoritative for execution ordering, readiness, cancellation and aggregate bounds.
MACHINE-SPIRIT #401A refinement — procedure selection/decomposition before expert assignment
Depth 4A found that the previous planner contract compressed several distinct procedural roles into one generic decomposition oracle. Refine the normal path to:
Hard distinction:
An expert is a solver/knowledge source for a typed task. The procedural method says how an abstract task is decomposed and should remain reusable when expert implementations/versions change.
Known-method-first policy
For ordinary known work, prefer in order:
Do not make free-form decomposition the default when reusable procedural knowledge already exists.
Procedural network semantics
Support task networks that preserve:
Predicted effects are planning semantics, not fresh observations and cannot satisfy #384 VERIFY by themselves.
Responsibilities
Required routing semantics
The mapping is resolved through the expert registry and applicability rules, not hard-coded trusted closures in model-authored plan data.
Symbolic planning
Use ordinary Prolog graph/search/constraint techniques where useful:
All decomposition/search needs explicit limits on method alternatives, network size, recursion/decomposition depth and work. Resource exhaustion returns a structured undecided/resource-limited outcome rather than arbitrary first-found success.
An LLM may optionally propose a decomposition for genuinely unmodeled tasks, but such output is inert candidate procedural/plan data and must pass the same closed vocabulary, dependency, SPEC, procedure, capability and authority validation.
Logical coordination-board integration
#401A adopts blackboard ideas only as typed shared coordination state, not a scheduler. The coordinator may consume/propose board entries such as:
A board/proposal record is never automatically scheduled. The coordinator admits valid procedural/network changes into the #288 graph. #288 remains the only scheduler.
Replanning contract
A replan may:
A replan may not:
Acceptance
Non-goals
Refs #376 #377 #378 #288 #355 #68 #69 #70 #71 #397 #401.
Machine Spirit #401B canonical handoff — monitored epistemic procedural policies
Depth 4B materially refines this coordinator contract. Treat this as required design input for the next body reconciliation/implementation slice.
Required additions
satisfied/refuted/unknown/conflicted/blocked/unsupported; raw failure-to-prove is not universal false.hard_guard,observation_gate,branch_guard, explicitassumption,monitor_invariant, andsuccess_condition.method_applicable != method_admissible != plan_instance_valid != action_authorized != action_ready.deterministic/weak/strong/strong_cyclic/best_effort) plus versioned fairness/environment assumptions. Strong-cyclic retry is not unconditional progress.All admitted work still compiles to #288. This does not authorize a second scheduler or executor.
Full research/sources and B1-B28 adversarial fixtures: #401 Depth-4B comment.
Machine Spirit #401C handoff — planner consumes admitted procedural projections
Depth 4C's PIFF result tightens the planner boundary:
#288 remains the sole scheduler. Full research and C1-C28 interoperability fixtures are on #401; #401D owns incremental/scaling/runtime realization.
Machine Spirit #401D canonical handoff — DPEC execution semantics
Depth 4 is now design-complete. #401D selects DPEC — Demand-Driven Procedural Execution & Conformance Graph as the computational realization of PIF/MEPP/PIFF.
Planner/Coordinator implications:
resource_limited/ incomplete-search status rather than arbitrary first-method success;rlm_plan; no second procedural interpreter/scheduler.Fresh HTN research materially strengthens the cycle/verification requirements: Yousefi et al. ICAPS 2025 show A* can be incomplete even for totally ordered HTN problems due hierarchy-induced cycles (https://ojs.aaai.org/index.php/ICAPS/article/view/36107), while Lauer/Lin/Bercher ICAPS 2025 show lifted HTN verification/bounded existence complexity depends sharply on fragment restrictions (https://ojs.aaai.org/index.php/ICAPS/article/view/36102).
Full design + D1-D34 fixtures are preserved on #401.
MACHINE-SPIRIT #404A handoff — learned procedural/control candidates
EPOCH makes the #401/#379 case boundary explicit for learning:
A successful case never auto-registers a method. Learned strategy statistics may influence method-choice preference only as versioned operational evidence. Candidate/admitted learned methods must preserve exact origin experiences, assumptions, learner/profile, counterexamples, promotion policy/version and supersession state. Predicted learned postconditions remain non-observational and final success still belongs to #384 VERIFY.
Ref #404A EPOCH.
Machine Spirit #404B / CITADEL-EPOCH handoff
When learned method/control/strategy profiles affect planning, preserve the decision population and selection context so later promotion cannot mistake self-selected easy work for general improvement.
Required lineage should include applicable method alternatives, selection/control policy version, task/context signature, evidence generation, baseline/admitted method, chosen strategy and resulting VERIFY/diagnosis outcome.
Learned routing statistics remain operational evidence only. They cannot mutate Frozen Spec, drop difficult obligations, suppress evidence-acquisition branches, alter epistemic truth, or grant authority. If the candidate changes which tasks it sees, raw success-rate comparison is selection-biased until #404's evaluation profile resolves that bias. Refs #404B CITADEL B15-B20.
Machine Spirit #404C handoff — target-local procedural admission
A procedure/method learned and admitted elsewhere is not automatically an admitted local method. #379 should consume foreign PACT-EPOCH artifacts only after target semantic/profile compatibility, #401 PSC/PIFF mapping and target promotion/admission checks.
Lossy ontology/action/guard mappings must weaken or invalidate transferred guarantees. External expert compositions remain declarative candidate task/goal contracts, never handlers. Full design: #404C.
#405B AEGIS-MS planner handoff: evidence may influence method/plan/expert choices only through trusted closed selection policies whose identity/generation is in the run receipt. Model/source/learned plan data cannot choose authority policy, verifier policy, capability ceilings or trusted host bindings merely by supplying a valid identifier. Effectful plan nodes should carry expected target-binding/preimage dependencies for dispatch-time revalidation, but plan-time checks do not become durable authority. This preserves method selection != expert selection != effect authorization and #288 as sole scheduler.