[P1] Add verified execution, repair, and next-slice continuation workflow #71
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#71
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?
Goal
Implement the runtime child slice of #68 after normalized TaskIR and resolved context exist: execute a standalone task through existing Prolog-RLM primitives, treat observable verification as the completion boundary, repair from structured failures, and generate the next coherent slice from the resulting canonical state.
Required workflow
Model the loop semantically as:
The worker may revise its plan as observations change. It may not silently weaken host/operator hard invariants or the frozen acceptance gates for the current run.
Build on existing runtime
Use
rlm_graphas the workflow state machine rather than adding a new scheduler. Userlm_artifactfor immutable TaskIR/context/evidence/prompt/continuation artifacts and fresh-root handoff. Userlm_agentfor supervised child execution. Use existing completion/tool/MCP/authority/trace/future contracts.Compose with:
Public APIs
Add host-facing APIs equivalent in semantics to:
workflow_run/3must await the same canonical async execution path asworkflow_run_async/3.Exact naming may be refined to match repository conventions.
Verification semantics
Observable gates may include tests, CI/CD status, static validators, repository state assertions, review-thread state, formal/symbolic verifiers, or other host-configured evidence.
Requirements:
Continuation semantics
After acceptance:
The next slice must not blindly inherit stale SHAs, PR states, TODOs, or implementation assumptions from the prior prompt.
Steering and fresh roots
A host/operator may steer a running workflow by adding/versioning preference or requirement input according to authority policy. Fresh model roots should receive bounded current artifacts rather than the full prior conversation transcript.
Acceptance
workflow_next_slice/...produces a versioned standalone continuation task/prompt grounded in the new canonical state.Refs #68 #69 #70 #54 #56 #57
Draft PR #92 demonstrates the verified-loop invariant on the existing
rlm_graph: Plan -> Execute -> Observe -> Verify can repair/replan without mutating the Frozen Spec, and the compiled workflow graph identity includes the Spec fingerprint so a durable checkpoint cannot be resumed under a different Spec.#71 remains open. Full TaskIR/context/continuation integration and downstream verified workflow semantics are still broader than this substrate slice.