Repository navigation
refactor: finish commitments retirement bookkeeping - #122143
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 12:51 PM ET / 16:51 UTC. ClawSweeper reviewWhat this changesThis PR removes stale commitments references and adds a tested ledger that records the shared commitments table for a future state-schema v7 retirement. Merge readinessNo blocking correctness or security finding: the PR removes references to a deleted feature and records, without performing, the separately approved future schema retirement. It remains open because it is maintainer-authored and labeled Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s shared and per-agent SQLite schemas define persistent runtime state and upgrade rules. The new ledger reads those canonical schemas in a contract test and records which retired objects still exist versus which are already gone. flowchart LR
A[Removed commitments feature] --> B[Stale references removed]
A --> C[Shared state schema v6]
C --> D[Retirement ledger]
D --> E[Contract test]
E --> F[Future approved v7 migration]
Decision needed
Why: The source proves the change is intentionally bookkeeping rather than an approved schema migration, but the protected maintainer workflow requires a human merge judgment. Before merge
Agent review detailsSecurityNone. PR surfaceSource +26, Tests +133, Docs 0, Other -4. Total +155 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the v6 schema unchanged now, merge the ledger if reviewers accept its v7 plan, and perform physical commitments retirement only in a separately approved migration that updates all remaining schema compatibility paths. Do we have a high-confidence way to reproduce the issue? Not applicable: this is an internal cleanup and contract-record PR, not a report of a user-visible failure. Is this the best way to solve the issue? Yes. Recording the deferred deletion while preserving v6 is safer than prematurely dropping persisted schema objects or conflating them with live shared lease state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fe4cff7a6b24. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready evidence for exact head
ClawSweeper reported no findings. Its only optional Rank-up move applies if a rebase or merge-ref refresh is needed; neither is needed here, the PR is mergeable, and exact-head CI is green. Behind-main drift is advisory under the native landing policy. Known proof gap: no live runtime scenario was run because this PR introduces no runtime loader or behavior. Direct import inspection shows only the contract test loads the manifest; the focused schema contract and exact-head CI cover the changed boundary. |
|
Merged via squash.
|
* refactor(commitments): remove remaining retired references * refactor(state): track schema retirements
What Problem This Solves
The commitments feature was removed in #121479, but two stale references remained and the intentionally deferred physical schema cleanup had no durable, machine-checked record.
This follow-up is deliberately separate from #118488, which landed independently. It contains no heartbeat behavior changes.
Why This Change Was Made
This removes the stale commitments entry from the completeness rubric and the obsolete focused-test routing entry, then adds a declarative schema-retirement ledger with a contract test.
The ledger records shared-state
commitmentsas planned for schema v7, including its five named indexes. The table remains physically present but inert in the current v6 shared schema: this PR does not approve, implement, or perform a schema bump or migration.Only the per-agent
state_leasesretirement is recorded as completed at agent schema v17. Sharedstate_leases,agent_database_leases, Teams Get Poll plugin state, and ACPX process-lease records are distinct live surfaces and remain unchanged.User Impact
No runtime behavior, CLI, configuration, dependency, public API, protocol, generated database type, or product documentation changes. This is internal retirement bookkeeping that prevents the deferred schema cleanup from being forgotten or applied to unrelated live lease and poll state.
Runtime production LOC: +0/-0. Declarative schema metadata: +26/-0. Tests: +133/-0. Internal support/reference cleanup: +1/-5. Aggregate: +160/-5 across four files.
No changelog entry is included because this is internal retirement bookkeeping.
Evidence
Validated on exact head
eaf0a638aa6cce728c73984a1a69427f8560e9b6after rebasing ontoorigin/mainata496fd148ede83a0927d8c58c556f96fbc3d3365:git diff --check origin/main...HEADpassed.core,coreTests,scripts,docs, andtooling.Related completed removal: #121479