Skip to content

fix: restore strict lint for state and maintenance owners - #156809

Merged
steipete merged 1 commit into
mainfrom
codex/bun-lint-prerequisite-20260923
Sep 24, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/bun-lint-prerequisite-20260923

Conversation

@steipete

@steipete steipete commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Strict oxlint, formatting, and git diff --check pass for all three changed files on the updated base.
  • Reused focused proof: 39 tests passed across native hook relay storage, context maintenance, and synchronous preparation (197.30 seconds wall, including transforms). This run predates the base update; it is not a fresh full-suite or exact-head execution.
  • Independent Codex review found no actionable P0–P2 findings. The three-file patch is identical across the mechanical base update.
  • Fresh exact-head CI passed for 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.

@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S labels Sep 23, 2026
@steipete
steipete marked this pull request as ready for review September 23, 2026 22:18
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 23, 2026, 7:16 PM ET / 23:16 UTC (Revision 3).

ClawSweeper review

What this changes

The 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
Reviewed head: 136f42c7d68f6c9e1f830c4e6de5c4972de94822

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, coherent cleanup preserves the reviewed runtime inputs and reports relevant validation.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored internal cleanup has no external-contributor behavior-proof gate; reported focused validation supports the unchanged task and worker paths. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored internal cleanup has no external-contributor behavior-proof gate; reported focused validation supports the unchanged task and worker paths. No stored-data contract changes.
Evidence reviewed 8 items Introduced maintenance change: The task builder moves with its run ID, owner, notification, and delivery fields intact; its scheduler still calls that builder.
SQLite dispatch boundary: Relay mutations still use the same handler with the same database, path, and environment options; the handler retains the transaction owner.
Current-main necessity: Fetched main still has the builder in the larger scheduling file, while the PR removes it. The configured production TypeScript cap is 700 counted lines.
Findings None None.
Security None None.

How this fits together

After 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -2. Total -2 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 3 39 41 -2
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 39 41 -2

Review metrics

Metric Value Why it matters
Maintenance line budget Reported 710 → 685 counted lines; cap 700 The focused extraction targets the strict lint failure without changing its rule.

Technical review

Best 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.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is an internal lint and owner-size cleanup with no reported user-visible behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored internal cleanup has no external-contributor behavior-proof gate; reported focused validation supports the unchanged task and worker paths. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Shakker: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-23T22:29:24.630Z sha 4c8bb44 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-23T22:53:25.266Z sha 4c8bb44 :: needs maintainer review before merge. :: none

@steipete
steipete enabled auto-merge (squash) September 23, 2026 22:46
@steipete
steipete disabled auto-merge September 23, 2026 23:02
@steipete
steipete force-pushed the codex/bun-lint-prerequisite-20260923 branch from 4c8bb44 to 136f42c Compare September 23, 2026 23:07
@steipete
steipete merged commit fe59732 into main Sep 24, 2026
231 of 233 checks passed
@steipete
steipete deleted the codex/bun-lint-prerequisite-20260923 branch September 24, 2026 00:07
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 24, 2026
steipete added a commit that referenced this pull request Sep 24, 2026
)

* 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]>
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
…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]>
steipete added a commit to wahaha1223/openclaw that referenced this pull request Sep 25, 2026
Include the mainline maintenance-owner line-cap repair from openclaw#156809.
The reviewed nine-file TLS delta and all reviewed owner modules are unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant