docs: propose persistent Agent runtime lifecycle - #71
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 11, 2026, 3:30 PM ET / 19:30 UTC (Revision 7). ClawSweeper reviewWhat this changesAdds an illustrated RFC specifying safe Agent replacement, persistent lifecycle intent, and later stop/start, recovery, and completed-result delivery contracts. Merge readiness⛔ Blocked before merge - 3 items remain The proposal remains distinct from the accepted Enterprise RFC and merits continued discussion. No actionable patch defect was found; acceptance remains a substantive maintainer decision under this repository’s RFC process. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw Enterprise’s controller coordinates Agent deployment and delegates execution to compute and sandbox drivers. This proposal defines how authorized work, retained files, and observed termination constrain replacement and later lifecycle controls. flowchart TD
A[Authorized work and lifecycle requests] --> B[Enterprise controller]
B --> C[Durable intent and current authority]
C --> D[Compute and sandbox drivers]
D --> E{Predecessor writers stopped?}
E -->|Unknown| F[Hold replacement and retain cleanup]
E -->|Confirmed| G[Activate successor and enable routing]
Decision needed
Why: The repository requires explicit RFC acceptance, and the proposal makes architectural commitments beyond the already accepted deployment contract. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt a clearly staged lifecycle contract that preserves mandatory replacement safety while leaving optional public controls and recovery profiles subject to separate qualification. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes a lifecycle contract rather than implementing a bug fix; document rendering was inspected directly. Is this the best way to solve the issue? Yes as a design proposal: extending the accepted Enterprise contract and separating initial safety from later capabilities is coherent, subject to maintainer acceptance. AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning medium; reviewed against 967d9aac7472. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
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