[EPIC][experts] Closed-loop integration: Requirement→Knowledge→Plan→Experts→VERIFY→Repair→Review→completion #411
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#411
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, #379, #380, #381, #382, #383, #384, #385, #386
Integrates with: #288, #355, #68–#71, #56, #93
Goal
Wire the complete expert family into one canonical reusable closed-loop expert workflow and prove that the components compose under real runtime invariants rather than existing as isolated APIs.
This epic owns integration and conformance, not another scheduler or another specialist implementation.
Canonical flow
Zero-model reference path
The primary conformance fixture MUST complete a non-trivial two-pass repair loop with model providers disabled and
model_calls = 0.Experts are ordinary local computation and are not charged model usage merely for invocation or nesting.
Required deterministic fixture
Build a fixture representing a small project and requirement where:
This fixture must exercise expert→expert lineage, not directly call every specialist from the test harness in an artificial order.
Alternate fallback fixture
Add a second fixture where deterministic Write reasoning deliberately reaches an unsupported generative case and explicit model fallback is enabled with a deterministic fake provider.
Prove:
State and identity
Preserve stable identities across the loop:
A final result should be replayable/explainable from structured records without reconstructing truth from conversation prose.
Progress / termination
Define one bounded loop policy using existing runtime machinery:
Do not invent an independent scheduler. The existing graph/workflow runtime remains authoritative.
Failure semantics
Integration tests must prove:
Public workflow surface
Expose a reusable host-facing call equivalent to:
with async/cancellation variant as appropriate using existing runtime conventions.
Outcome should include bounded references/summaries for:
Exact API naming follows repo conventions.
Acceptance
model_calls = 0.edit/createroute through Write Expert.Non-goals
Refs #376 #377 #378 #379 #380 #381 #382 #383 #384 #385 #386 #288 #355 #68 #69 #70 #71 #56 #93
Machine Spirit #401D integration/conformance handoff
Depth 4 is design-complete with DPEC — Demand-Driven Procedural Execution & Conformance Graph. Add these integration requirements when #387 is implemented:
model_calls = 0.rlm_plan; no adapter/native engine may start an ambient second scheduler.resource_limited; they never trigger implicit LLM fallback.The current
rlm_plan_graph.plalready provides the key architectural anchor: inert validated graph data,rlm_planas sole step executor, explicit cancellation, aggregate budget, and no alternate effect path. Preserve that boundary.Machine Spirit #405A closed-loop handoff
Depth 8A keeps #387 as the canonical executable expert-loop gate inside COVENANT-MS. The synthesis adds no second loop; it adds exact cross-layer run/receipt identity around the existing one.
The north-star run must bind the same Frozen Spec, evidence/world cut, procedure projection, expert-registry generation, capability/authority policy and verifier generation from planning through final VERIFY. Fresh post-effect observation is mandatory; predicted effects and worker/model self-report remain inadmissible substitutes.
#387's provider-disabled two-pass repair fixture is therefore a required component of the final known-symbolic Machine Spirit demonstration, but it is not sufficient alone: #405D must also connect semantic ingestion/durable world model/epistemics/bounded attention/learning/replay.
Refs #397 #405 #376 #384 and symbolic-memory#45.
#405B AEGIS-MS integration handoff: add cross-component race/composition fixtures to the closed loop. Required cases include authority revoked after plan but before dispatch; semantic/host target binding or preimage changes before effect; cancellation racing dispatch; two concurrent effects with similar result payloads where observations must remain attempt/object-bound; and a stack of locally valid receipts that omits one mandatory influence dependency and therefore fails end-to-end capsule validation. Preserve #288 as the sole scheduler and #384 as acceptance boundary. The effect path should use a current dispatch-time seal over principal/action/stable host object/policy/preimage rather than treating plan-time authority as durable.
#405C CONCORDAT-MS expert-loop handoff
Expert cooperation stays target-local across federation.
Foreign procedure/expert metadata may establish semantic compatibility or provide evidence, but it cannot import a handler, principal, capability or authority. Required path remains:
Likewise, a foreign VERIFY/pass receipt is evidence about that verifier/profile/version, not local #384 satisfaction. Domain-qualified control/influence labels must be explicitly mapped by target-owned policy before becoming control-eligible.
Canonical research: #405C.
Machine Spirit #405D executable-conformance handoff: the #376-#387 closed-loop design is still a required gate, not executable Machine Spirit evidence on current
main; the canonicalexpert_registerfamily was not found in the current code search. The implementation/conformance target is nowMSD-PROC-*plusMSD-ZERO-*: one deterministic Requirement→Knowledge→Plan→Experts→effect fixture→fresh observation→VERIFY→Repair→success path, unchanged Frozen Spec, one scheduler, cancellation/no-progress/fault behavior, exact evidence lineage, providers disabled andmodel_calls = 0. This comment does not reopen architecture research; it records #405D's failed executable gate.