Repository navigation
fix: restore strict lint for state and maintenance owners - #156809
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Codex review: needs maintainer review before merge. Reviewed September 23, 2026, 7:16 PM ET / 23:16 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch moves deferred maintenance task construction into its work module and reuses shared SQLite worker write options for native hook relay mutations. Merge readiness✅ Ready for maintainer review Current main still retains the oversized maintenance owner, so this focused lint cleanup remains useful. The linked session-read PR addresses a different runtime problem, and the introduced patch shows no definite defect. Priority: P3 Review scores
Verification
How this fits togetherAfter an agent turn, the context maintenance scheduler registers background work that may update a session transcript. Separately, the shared state worker receives native hook relay commands and persists their records in SQLite. flowchart LR
A[Agent turn] --> B[Maintenance scheduler]
B --> C[Task descriptor]
C --> D[Task registry]
E[Native hook relay command] --> F[Shared state worker]
F --> G[Relay mutation]
G --> H[SQLite state]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -2. Total -2 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Strict validation accepts both owners while task settlement and relay persistence retain their current runtime contracts. Do we have a high-confidence way to reproduce the issue? Yes at source level: current main retains the oversized maintenance owner under a 700-counted-line lint rule. This read-only review did not run strict lint. Is this the best way to solve the issue? Yes: the builder keeps its task fields, and relay commands reach the same mutation handler with equivalent write options. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against eda01dca8ab7. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
4c8bb44 to
136f42c
Compare
|
Merged via squash.
|
) * fix: keep completion binding lookups off the Gateway event loop Await private shared-state enumeration for completion routing and ACP notices. Reuse the existing list/prune owner and preserve the synchronous plugin SDK contract, original manager lifetime and registry admission checks. Join the actual admitted Gateway turn in completion fixtures before terminal assertions and teardown; preserve replay deadlines and transcript assertions. Validated with 792 focused cases, seven physical-alias/lifetime cases, production and fixture types, scoped checks, normal full build, and independent P2 review. The pinned baseline lint cap is separately fixed by #156809. * chore: reconcile async binding listing with current main Preserve the focused async binding enumeration change while carrying main 3fb84b0 and its worker routing. * test: route async binding callers through database-worker forks Register ACP ownership, announcement-origin, and ACPX cancellation tests with the existing forked database-worker projects so asynchronous binding lookups use the host broker. * chore: merge repaired main for binding lookup CI Co-authored-by: Peter Steinberger <[email protected]>
…claw#157033) * fix: keep completion binding lookups off the Gateway event loop Await private shared-state enumeration for completion routing and ACP notices. Reuse the existing list/prune owner and preserve the synchronous plugin SDK contract, original manager lifetime and registry admission checks. Join the actual admitted Gateway turn in completion fixtures before terminal assertions and teardown; preserve replay deadlines and transcript assertions. Validated with 792 focused cases, seven physical-alias/lifetime cases, production and fixture types, scoped checks, normal full build, and independent P2 review. The pinned baseline lint cap is separately fixed by openclaw#156809. * chore: reconcile async binding listing with current main Preserve the focused async binding enumeration change while carrying main bba8fa4 and its worker routing. * test: route async binding callers through database-worker forks Register ACP ownership, announcement-origin, and ACPX cancellation tests with the existing forked database-worker projects so asynchronous binding lookups use the host broker. * chore: merge repaired main for binding lookup CI Co-authored-by: Peter Steinberger <[email protected]>
Include the mainline maintenance-owner line-cap repair from openclaw#156809. The reviewed nine-file TLS delta and all reviewed owner modules are unchanged.
Related: #156121
What Problem This Solves
Strict local validation rejects the oversized deferred-maintenance owner, blocking preparation of otherwise unrelated changes.
User Impact
Developers can complete strict validation again. This is an internal cleanup with no user-visible behavior change.
Why This Change Was Made
The existing maintenance task builder moves into the maintenance work module that its caller already loads, reducing the scheduling owner from 710 to 685 code lines. Native hook relay mutations also reuse the shared worker's existing write options. Transaction admission, task metadata, settlement, cleanup, and lint policy are preserved.
Evidence
git diff --checkpass for all three changed files on the updated base.136f42c7d68f6c9e1f830c4e6de5c4972de94822, including all required CI gates.The first CI run failed in a deferred-maintenance disposal deadline, a session-delivery clock-jump integration timeout, and a Watch invocation round trip. The updated base includes the disposal-fixture fix, which waits for durable task publication before starting the unchanged disposal checks. A bounded source audit found no changed dispatch, scheduling, settlement, or mock boundary explaining the two Gateway failures; a failing base replay has not been run, so their causes remain unresolved. No assertion or deadline changes are included in this PR.
The successful fresh run also includes an existing watchdog retry in extension bundle 18. Its first Codex group attempt reported seven 180-second hook timeouts in
run-attempt.settlement.test.ts, then stalled; the retry passed all 107 cases in 127.77 seconds. A bounded log/source audit found unchanged settlement fixtures and cleanup owners, and no changed native-hook request or transaction-admission behavior explaining the timeout. The log does not identify the stalled hook await, and no failing base replay or independent reproduction was run. This remains unresolved; the passing retry is not evidence of a fix.No tests, dependency versions, schemas, or lint policies change in the PR diff.