Skip to content

fix(ci): measure memory search responsiveness independently - #150098

Merged
steipete merged 1 commit into
mainfrom
codex/memory-maintenance-responsiveness-20260916
Sep 16, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/memory-maintenance-responsiveness-20260916

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #149158

What Problem This Solves

The contended memory-maintenance test can fail its responsiveness check after a search and timer have completed because it also times the entire asynchronous maintenance operation.

User Impact

No user-visible behavior changes. This corrects the CI test's measurement while retaining its search results, timer deadline, maintenance error propagation, and eventual database assertions.

Why This Change Was Made

Wait for the search and the existing 100 ms writer-release timer before checking the unchanged 1000 ms responsiveness limit. Then await maintenance before checking the resulting index and cleanup state. The existing five scenarios and their order remain unchanged.

Evidence

  • The original CI run for fix(nodes): prevent orphaned work and incompatible launches #149158 failed this combined interval at 1027.55 ms: failed job. The log does not establish what caused that overrun.
  • A separate Linux Node 24.19.0 Testbox run passed all 21 cases in the full file, including all five contended-maintenance scenarios: run.
  • The selected changed-file checks passed, including test types, lint, formatting, boundaries, and ratchets. Independent review found no actionable findings.

The remote test's whole-case durations do not establish an isolated response latency or a speedup. Normal PR CI will validate the published head.

Keep the existing 1000 ms search and writer-release timer guard independent of asynchronous maintenance completion. Await the original sync before all eventual state assertions and preserve error propagation and cleanup.
@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
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.

@steipete steipete self-assigned this Sep 16, 2026
@steipete
steipete marked this pull request as ready for review September 16, 2026 14:00
@openclaw-barnacle openclaw-barnacle Bot added extensions: memory-core Extension: memory-core size: XS maintainer Maintainer-authored PR labels Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 10:07 AM ET / 14:07 UTC.

ClawSweeper review

What this changes

The PR measures memory-search and timer responsiveness separately from maintenance completion while retaining maintenance errors and final database assertions.

Merge readiness

✅ Ready for maintainer review

Keep open: this is a focused, still-useful correction to the test’s measurement boundary, with no actionable correctness findings.

Priority: P3
Reviewed head: 8cdd02da6bb06c3227f6d9fea8d10e916a34b8d8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable test correction with preserved assertions and no blocking findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The contributor runtime-proof gate does not apply to this maintainer-authored test-only PR; its supplemental file-level pass claim remains distinct from a measured runtime speedup.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The contributor runtime-proof gate does not apply to this maintainer-authored test-only PR; its supplemental file-level pass claim remains distinct from a measured runtime speedup.
Evidence reviewed 8 items Introduced change and preserved assertions: The complete test retains all five scenarios, the 100 ms release timer, the 1000 ms responsiveness bound, final database assertions, and cleanup. The early catch observes rejection without replacing the original sync promise; the later await still propagates maintenance failure.
Verified merge scope: Raw test-merge parents match the pinned main followed by the exact PR head. Comparing that merge result with its main parent shows only the submitted timing adjustment.
Current-main necessity: Pinned main still awaits both search and full maintenance before checking elapsed time, so it does not contain this measurement correction.
Findings None None.
Security None None.

How this fits together

Memory Core indexes workspace files and session content for agent searches. This regression test checks that SQLite write contention leaves searches and timers responsive while maintenance eventually updates the index.

flowchart TD
  A[Indexed memory] --> B[Concurrent search]
  C[SQLite writer lock] --> D[Memory maintenance]
  E[Writer release timer] --> C
  B --> F[Responsiveness assertion]
  E --> F
  D --> G[Final database assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +4. Total +4 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 5 1 +4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 5 1 +4

Review metrics

Metric Value Why it matters
Responsiveness contract 1000 ms bound retained across 5 scenarios The patch changes what the interval measures without increasing the deadline or removing eventual-state checks.

Technical review

Best possible solution:

Keep responsiveness bounded independently while requiring maintenance to finish successfully before asserting its database effects.

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

Yes, source establishes that current main includes complete maintenance in the responsiveness interval. The reported timing overrun was not independently reproduced, and its runtime cause remains unknown.

Is this the best way to solve the issue?

Yes, separating completion checks matches the test’s stated contract while preserving rejection propagation, cleanup, scenario order, and database assertions.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a bounded test-measurement correction with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Label justifications:

  • P3: This is a bounded test-measurement correction with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

Likely related people:

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

@steipete
steipete merged commit 1482bf1 into main Sep 16, 2026
153 checks passed
@steipete
steipete deleted the codex/memory-maintenance-responsiveness-20260916 branch September 16, 2026 14:25
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: memory-core Extension: memory-core maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant