Skip to content

docs: plan native durable workflow core - #97467

Closed
mjnkao wants to merge 1 commit into
openclaw:mainfrom
mjnkao:codex/openclaw-x-durable-pr1-docs
Closed

mjnkao wants to merge 1 commit into
openclaw:mainfrom
mjnkao:codex/openclaw-x-durable-pr1-docs

Conversation

@mjnkao

@mjnkao mjnkao commented Jun 28, 2026

Copy link
Copy Markdown

Summary

This PR documents the proposed native durable workflow core direction for OpenClaw.

It defines the target architecture, scope boundaries, upstream PR stack, anti-goals, and the line between a durable coordination slice and a full durable workflow engine.

Why

OpenClaw has recurring long-running coordination failure modes: silent runs, gateway restart uncertainty, subagent fan-in gaps, and insufficient operator visibility. This document proposes a small local-first durable core rather than a Temporal/Restate clone.

Notes

This is PR 1 in a stacked durable core series.

Stack order:

  1. Docs and architecture plan
  2. Durable workflow kernel primitives
  3. Gateway and CLI lifecycle integration

Validation

Docs-only PR.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS triage: low-signal-docs Candidate: docs-only change looks low signal; maintainer review needed. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jun 28, 2026
@clawsweeper

clawsweeper Bot commented Jun 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed June 28, 2026, 6:21 AM ET / 10:21 UTC.

Summary
The PR adds five docs/specs planning pages for a proposed native durable workflow core, including prototype, upstream stack, full-engine, and coordination bridge plans.

PR surface: Docs +2378. Total +2378 across 5 files.

Reproducibility: not applicable. this is a docs/planning PR, not a runtime bug report. The reviewable check is source accuracy against current main and the open companion stack.

Review metrics: 1 noteworthy metric.

  • Current-main durable-core API matches: 0 claimed surfaces found. The docs describe new durable workflow APIs and flags as current behavior, but current main does not contain those surfaces.

Merge readiness
Overall: 🦪 silver shellfish
Proof: 🌊 off-meta tidepool
Patch quality: 🦪 silver shellfish
Result: blocked by patch quality or review findings.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Rewrite present-tense implemented-capability sections as proposal/future-stack text or wait for the companion implementation PRs to land.
  • Convert internal docs links to Mintlify root-relative routes without .md suffixes.

Risk before merge

  • [P1] Publishing these docs as-is would tell readers that durable workflow env flags, CLI commands, Gateway methods, Workboard projection APIs, and validation already exist on current main when they are still only in open draft companion PRs.
  • [P1] The proposed native durable core is broad core architecture that overlaps current Task Flow/background task infrastructure and VISION.md's guardrail against heavy orchestration layers, so maintainers need to sponsor the direction before public docs land.

Maintainer options:

  1. Decide the mitigation before merge
    Keep the docs as an explicitly proposed architecture, or land them only after the implementation stack provides the named core, CLI, Gateway, Task Flow, and Workboard surfaces and maintainers sponsor the core direction.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P2] Maintainer product review is needed before a repair lane because the required rewrite depends on whether durable core belongs in core and how to sequence the companion draft PRs.

Security
Cleared: The PR adds Markdown docs only and does not change code execution, dependencies, workflows, secrets handling, or package metadata.

Review findings

  • [P2] Reframe branch-only durable features as proposed — docs/specs/durable-workflow-core-next-plan.md:64-68
  • [P3] Use root-relative Mintlify doc links — docs/specs/durable-workflow-core-next-plan.md:11-18
Review details

Best possible solution:

Keep the docs as an explicitly proposed architecture, or land them only after the implementation stack provides the named core, CLI, Gateway, Task Flow, and Workboard surfaces and maintainers sponsor the core direction.

Do we have a high-confidence way to reproduce the issue?

Not applicable; this is a docs/planning PR, not a runtime bug report. The reviewable check is source accuracy against current main and the open companion stack.

Is this the best way to solve the issue?

No; this is not the best merge shape yet because it publishes future-stack and companion-branch behavior as present-tense current capability. A concise proposal or post-implementation docs update would be safer.

Full review comments:

  • [P2] Reframe branch-only durable features as proposed — docs/specs/durable-workflow-core-next-plan.md:64-68
    These lines say the branch already adds durable workflow runtime pieces, gateway APIs, CLI commands, TaskFlow projection, and Workboard metadata, but the base branch for this docs-only PR does not contain those surfaces. Please make this section explicitly future/proposed or land the docs only with the implementation that provides the named APIs.
    Confidence: 0.91
  • [P3] Use root-relative Mintlify doc links — docs/specs/durable-workflow-core-next-plan.md:11-18
    The docs guide requires internal docs links under docs/**/*.md to be root-relative routes without .md suffixes. These relative .md links can drift from the published Mintlify URL map, so convert them before publishing.
    Confidence: 0.86

Overall correctness: patch is incorrect
Overall confidence: 0.88

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8d168c836af3.

Label changes

Label justifications:

  • P2: This is a normal-priority docs/product-direction PR with blocking accuracy issues but no urgent runtime impact because it is draft and docs-only.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Evidence reviewed

PR surface:

Docs +2378. Total +2378 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 5 2378 0 +2378
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 2378 0 +2378

What I checked:

  • Repository policy read and applied: Root AGENTS.md and docs/AGENTS.md were read; the scoped docs guide requires internal docs links to be root-relative without .md/.mdx suffixes. Public docs: docs/AGENTS.md. (docs/AGENTS.md:8, 8d168c836af3)
  • PR docs present branch-only durable core work as current: The new next-plan page says this branch already adds agent turn state, subagent links, fan-in policy, recovery state, TaskFlow projection, Workboard projection metadata, gateway read APIs, claims, registry, and executor pieces. Public docs: docs/specs/durable-workflow-core-next-plan.md. (docs/specs/durable-workflow-core-next-plan.md:64, 8ef8e939e1fb)
  • Current main lacks the claimed durable workflow core API surface: A focused current-main search found no src/durable workflow core, DurableWorkflowStore, durable.coordination, OPENCLAW_DURABLE_WORKFLOWS, durable_workflow tables, or openclaw durable CLI surface; the only hit was unrelated channel durable-delivery test path text. (8d168c836af3)
  • Current supported adjacent orchestration surface: Current docs describe Task Flow as the durable multi-step orchestration layer above background tasks, with persisted state and gateway-restart survival. Public docs: docs/automation/taskflow.md. (docs/automation/taskflow.md:10, 8d168c836af3)
  • Product direction guardrail: VISION.md prioritizes stability and setup reliability, says core should stay lean, and lists heavy orchestration layers duplicating agent/tool infrastructure as not-for-now without strong rationale. (VISION.md:21, 8d168c836af3)
  • Open companion implementation stack: Live PR inspection found open draft companion PRs for the kernel primitives and gateway/CLI lifecycle pieces, so this docs PR is part of an active stack rather than superseded by merged work.

Likely related people:

  • giodl73-repo: Current-main blame shows the Task Flow docs and registry file in this shallow checkout passing through commit 4010b81, and live PR metadata for Refactor external plugin catalog toward feeds #95846 names this handle as author/merger. (role: recent area contributor; confidence: medium; commits: 4010b81a77f4; files: docs/automation/taskflow.md, src/tasks/task-flow-registry.ts)
  • vincentkoc: GitHub commit search shows multiple Task Flow docs, CLI, and stabilization commits, including the TaskFlow-to-Task Flow prose migration and task-flow CLI work. (role: feature-history contributor; confidence: medium; commits: 5c0b99ae2b2e, 33eb0b9eee16, 4aeb0255f325; files: docs/automation/taskflow.md, docs/automation/tasks.md, src/tasks/task-flow-registry.ts)
  • steipete: GitHub commit search shows adjacent Task Flow runtime and test refactors, including managed task flow runtime work and shared task flow create params. (role: adjacent owner; confidence: medium; commits: b60eb1711a73, 2f84c47b8bc2, eda94a434dc5; files: src/plugins/runtime/runtime-taskflow.ts, src/tasks/task-flow-registry.ts, src/tasks/task-flow-registry.test.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. labels Jun 28, 2026

mjnkao commented Jun 28, 2026

Copy link
Copy Markdown
Author

Superseded by #97507. The replacement RFC is proposal-only, uses future/proposed language, and avoids claiming implementation is already present on main.

@mjnkao mjnkao closed this Jun 28, 2026
@mjnkao
mjnkao deleted the codex/openclaw-x-durable-pr1-docs branch June 30, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XS status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. triage: low-signal-docs Candidate: docs-only change looks low signal; maintainer review needed. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant