Skip to content

docs: propose persistent Agent runtime lifecycle - #71

Open
freeqaz-openai wants to merge 8 commits into
mainfrom
docs/agent-runtime-lifecycle-rfc
Open

freeqaz-openai wants to merge 8 commits into
mainfrom
docs/agent-runtime-lifecycle-rfc

Conversation

@freeqaz-openai

@freeqaz-openai freeqaz-openai commented Sep 8, 2026 •

Copy link
Copy Markdown

What Problem This Solves

A restart or accepted stop request does not establish safe continuation or physical termination. Operators need clear outcomes when retained files, helper processes or remote effects remain unresolved.

Why This Change Was Made

The current ordinary Kubernetes controller selects and requests activation of the successor before requesting predecessor retirement. That path does not yet establish observed predecessor termination and writer exclusion before successor writes. This proposal requires that contract and accepts the resulting availability gap. Managed reads, then approved publication, need this replacement discipline, root work and complete ownership of any supported helpers. Public Stop task / Stop Agent / Start Agent controls, completed-state recovery and broader durable Work and child coordination are later delivery stages.

User Impact

The proposed controls distinguish accepted intent, authority withdrawal, physical termination and credential cleanup. Recovery begins with compatible same-build, same-cluster retained storage; unknown creates or termination block writable replacement. Fresh execution rechecks current authority and preserves effect receipts without replaying uncertain operations. Execution may be uncapped; leases, operation deadlines and any selected drain or delivery remain finite. Public Stop defaults remain open.

This is a documentation proposal extending RFC 0027. It remains draft with a blank implementation issue pending acceptance.

Reading Guide

Evidence

  • Checked draft metadata, required sections, Markdown structure, links, anchors and whitespace; reran desktop/mobile rendering and independent cross-RFC review.
  • Desktop preview uses a local Markdown render with GitHub-style CSS.
  • Document checks only; provider, native runtime and deployment qualification require separate evidence.

@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Codex review: blocked before merge.

What this changes

Adds an illustrated RFC for persistent Agent replacement, durable stop intent, compatible recovery, and separately authorized result delivery.

Example: An Agent replacement is requested while predecessor termination remains unknown.

  • Before: The referenced controller requests successor activation before predecessor retirement.
  • After: The proposed contract blocks successor writes until predecessor termination and writer exclusion are established.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The documentation is coherent and visually demonstrated, with no actionable patch defect found; product acceptance remains unresolved.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): The tracked screenshot directly demonstrates the changed RFC's rendered text and lifecycle diagram; runtime termination, recovery, and authorization are explicitly future qualification requirements rather than behavior implemented by this PR.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Docs · Worth it: Needs a maintainer decision
User problem: Operators cannot treat an accepted stop or process restart as proof that old writers have terminated or unfinished work can safely continue.
Reason: The proposal addresses a meaningful operational boundary, but adopting its lifecycle requirements is an unaccepted product commitment.

Merge readiness

⛔ Blocked before merge - 1 item remains

This PR adds a coherent lifecycle proposal that current main does not contain; adopting its staged requirements needs a maintainer product decision.

Priority: P3
Reviewed head: 1b729a515b51be2619a3b7464462b71d47fd6160
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should this staged Enterprise lifecycle contract be accepted, including blocking writable replacement until predecessor termination is observed and accepting the resulting availability gap?
  • Recommendation: Accept the staged contract: Adopt the mandatory runtime baseline while retaining public Stop defaults, recovery, and completed delivery as later qualified profiles; then follow the repository's accepted-RFC lifecycle.
  • Why: RFC 0027 supports the replacement order, but no recorded owner decision accepts this proposal's broader lifecycle requirements and delivery sequence.

Before merge

  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

None.

Agent review details

How this fits together

The proposed OpenClaw control plane admits lifecycle intent, delegates execution to compute and sandbox drivers, and reports authority withdrawal, physical termination, and cleanup separately.

flowchart TD
  A[Authorized lifecycle request] --> B[Control plane admission]
  B --> C[Durable intent and current authority]
  C --> D[Compute and sandbox drivers]
  D --> E[Observe predecessor termination]
  E --> F{Writers stopped}
  F -->|Yes| G[Activate successor]
  F -->|Unknown| H[Retain data and block replacement]
Loading

Technical review

Best possible solution:

Accept a staged lifecycle contract that preserves observed writer termination while leaving public Stop defaults and optional recovery profiles for later decisions.

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

Runtime reproduction is not applicable to this documentation proposal; source inspection verifies its narrowly stated activation-before-retirement claim without establishing concurrent writers.

Is this the best way to solve the issue?

The staged proposal preserves the accepted deployment order and separates initial safety obligations from later controls, making it a reasonable design direction subject to owner acceptance.

AGENTS.md: not found in the target repository.

Codex review notes: model internal, reasoning medium; reviewed against 967d9aac7472.

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • kevinlin-openai: Raw commit af708f0 adds rfcs/0027-openclaw-enterprise.md:417 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: af708f0ddb6f; files: rfcs/0027-openclaw-enterprise.md)

Review metrics

Metric Value Why it matters
Proposal size 518 Markdown lines, 51 diagram-source lines, and 2 images added The compact RFC delegates detailed lifecycle requirements to a supporting specification that also needs design acceptance.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a design-document proposal with no executable change or demonstrated release incident.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-09T21:11:33.745Z sha 8a468b9 :: blocked before merge. :: none
  • reviewed 2026-09-09T21:43:13.907Z sha 93b6115 :: blocked before merge. :: none
  • reviewed 2026-09-11T07:48:37.665Z sha fe4ba21 :: blocked before merge. :: none
  • reviewed 2026-09-11T19:09:23.070Z sha 144f276 :: blocked before merge. :: none
  • reviewed 2026-09-11T19:30:52.898Z sha 1b729a5 :: blocked before merge. :: none
  • reviewed 2026-09-14T21:59:27.801Z sha 1b729a5 :: blocked before merge. :: none
  • reviewed 2026-10-03T20:25:43.195Z sha 1b729a5 :: blocked before merge. :: none
  • reviewed 2026-10-09T23:45:52.929Z sha 1b729a5 :: blocked before merge. :: none

Reviewed October 13, 2026, 10:52 PM ET / October 14, 2026, 02:52 UTC (Revision 11).

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 9, 2026
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 11, 2026
@freeqaz-openai
freeqaz-openai marked this pull request as ready for review September 14, 2026 21:55
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant