Skip to content

fix(memory): backport canonical annotation regression timing - #150654

Merged
RomneyDa merged 1 commit into
release/2026.9.5from
fix/release95-perf-20260917T0533
Sep 17, 2026
Merged

RomneyDa merged 1 commit into
release/2026.9.5from
fix/release95-perf-20260917T0533

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Collaborator

Backport of #150260 (Peter Steinberger / @steipete), merged as fa53cf67806714f138f63045a936c190b80f0b50. Related: #138994, #138995.

Parent fix: #150653 merged on September 17, 2026 at 06:29:40 UTC. Its squash commit b466d221071cd72d48c26aafa1fdb8da94fa597b supplied the accepted release parent, and its tree exactly matches the validated stack parent ee245a6398bffb09efc903faccdc7995abe69a66. The temporary parent branch was deleted externally. Repair commit 9e066d46da27e4c5cb07953a89015841e7b218b1 places only this canonical memory backport on b466d221071cd72d48c26aafa1fdb8da94fa597b, keeping the release PR base and avoiding any duplicate gateway diff. Root independently accepted this exact candidate and base reconciliation; this repair did not merge #150653 or move the release branch.

What Problem This Solves

Separates the historical annotation-parser backtracking budget from worker startup, SQLite publication, and filesystem scheduling in 2026.9.5 release validation.

User Impact

No runtime behavior change. Both keyword-only and semantic indexing cases retain every metadata, project-isolation, search, and embedding assertion. Release validation checks the original pathological witness at the shared parser owner.

Why This Change Was Made

At the maintainer's request, replace the initial preparation-level repair with the exact, simpler canonical backport of #150260. Both changed files match upstream byte-for-byte; the bespoke preparation test is not retained. The original 26-carrier malformed witness now has upstream's two-second parser guard. Upstream also removes the one-second stopwatch from the long-unfinished-carrier test while retaining its semantic assertions.

The original three CI failures on this PR shared the inherited private gateway import; #150653 owns that fix. Validation used only this canonical memory backport on the exact parent head. The parent merged independently during that validation. Its tree-identical squash parent was independently verified and accepted, so no temporary stack or retarget is needed.

Production code, schemas, dependencies, worker behavior, Kova thresholds, and project isolation are unchanged by this memory backport. The original implementation and proof are preserved locally for rollback.

Evidence

  • External merge: RomneyDa merged this PR on September 17, 2026 at 07:26:49 UTC as c0ef8ff5badc8735b85d802f4102c98b1ed45d70. The release branch had independently advanced through fix: live model probes miss loopback requests after a build #150684 to parent 58a66d70571f15422b5b7b2b776b4a0bef0cccf1. The squash changes only these two memory test files, and both merged file blobs exactly match tested candidate 9e066d46da27e4c5cb07953a89015841e7b218b1. The combined release tree differs from that candidate; the CI evidence below does not claim qualification of the combined release tree. This worker did not perform either merge.
  • Canonical source: fix(memory): avoid false annotation indexing failures under load #150260 / fa53cf67806714f138f63045a936c190b80f0b50; upstream author credit is preserved. Live parser-test history checked on September 17, 2026 contains no later change needing adoption.
  • Validated stack parent: ee245a6398bffb09efc903faccdc7995abe69a66; committed parent: b466d221071cd72d48c26aafa1fdb8da94fa597b. Both parent trees are a044e4a3b168acb43982eaf263310923738da1af. Committed candidate tree: e8643e66b11803eced508d5b29a8b19ca9de7392; only two test files, +22/-5, with canonical patch ID 82fe8a174a3323b78fb1f9bacb612592cad0c523. Normal hooks passed and left the reviewed/tested tree unchanged.
  • Historical-matcher sensitivity: temporarily substituted the exact matcher from the parent of e55f25b15ea61ab26ef9079b9afa279155689b50 into the shared owner. The canonical witness failed specifically at 3,279.071 ms against 2,000 ms; the other 16 parser tests passed. Production source was restored byte-for-byte before final proof.
  • Full affected files passed: 87 tests (17 shared-parser + all 70 index integration cases), in 188.11 seconds across two routed Vitest shards. The canonical parser witness body rounded to 0 ms; keyword-only/OpenAI manager cases took 1,638/1,624 ms.
  • node scripts/check-changed.mjs --base ee245a6398bffb09efc903faccdc7995abe69a66 passed, including both complete test-typecheck lanes, formatter, core and extension type-aware lint (zero warnings/errors), boundary/ratchet guards, and all three dead-export scans. git diff --check passed.
  • Fresh root review accepted the exact canonical replacement and tree-identical parent before commit/push. Refreshed ClawSweeper review of 9e066d46da27e4c5cb07953a89015841e7b218b1 completed on September 17, 2026 at 07:04:55 UTC: no actionable defects, ready for maintainer review (review). Exact-head CI run 35192330907, attempt 1 passed on September 17, 2026 at 07:25:18 UTC, including openclaw/ci-gate. One observer followed that run; no workflow retry was issued.
  • Original hosted run 35183128849, job 105079764214: four full-sync timing failures at 3.868–4.487 seconds against three seconds. The original unmodified local two-case witness passed on Node 26.8.2 / pnpm 12.4.0; hosted Node 24.19 differs. No exact hosted reproduction, blanket flake classification, or product-speedup claim is made.

No local full core build, workflow retry, new release qualification, source refreeze, merge, or release publication was performed. The replacement head's CI and refreshed review are complete. This is PR merge-readiness evidence, not a release qualification or publication claim.

@clawsweeper

clawsweeper Bot commented Sep 17, 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.

@openclaw-barnacle openclaw-barnacle Bot added extensions: memory-core Extension: memory-core size: S maintainer Maintainer-authored PR labels Sep 17, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 3:04 AM ET / 07:04 UTC (Revision 2).

ClawSweeper review

What this changes

Backports annotation-parser regression timing to the release branch while retaining memory-indexing metadata, search, and provider assertions.

Merge readiness

✅ Ready for maintainer review

No actionable defects found. This remains a useful, maintainer-requested release backport: main already contains the canonical change, but the pinned release base does not.

Likely related people: steipete and lzhan011 are routing candidates from related merged work; source-line introduction attribution remains unverified.

Priority: P3
Reviewed head: 9e066d46da27e4c5cb07953a89015841e7b218b1

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused canonical backport with preserved semantic coverage, reported regression sensitivity, and no actionable review findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer/bot-authored backport changes only tests, so the external-contributor runtime-proof gate does not apply; reported parser mutation sensitivity and complete indexing-suite results address the changed testing boundary.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer/bot-authored backport changes only tests, so the external-contributor runtime-proof gate does not apply; reported parser mutation sensitivity and complete indexing-suite results address the changed testing boundary.
Evidence reviewed 8 items Canonical backport identity: Both changed files are byte-identical to the merged canonical change at #150260; this comparison returned no differences.
Introduced scope and release base: The pinned base-to-head comparison changes only the two test files. Supplied GitHub evidence identifies release/2026.9.5 as the target and confirms that #150653 merged as the exact parent. The verified test merge has that parent followed by the pinned PR head.
Retained integration contract: The complete affected parameterized test still indexes malformed and mixed annotations for both none and openai, verifies all four metadata rows including invalid-project isolation, checks lexical search, and checks embedding activity. Only the whole-sync stopwatch is removed.
Findings None None.
Security None None.

How this fits together

Memory Core turns workspace memory files into searchable chunks and recall metadata. Its shared annotation parser extracts triggers, importance, and project scope; these tests distinguish parser performance from indexing and storage overhead.

flowchart LR
  A[Workspace memory files] --> B[Memory indexing preparation]
  B --> C[Shared annotation parser]
  C --> D[Recall metadata and project scope]
  D --> E[Searchable memory index]
  F[Malformed annotation witness] --> C
  C --> G[Parser timing and metadata checks]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +17. Total +17 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 22 5 +17
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 22 5 +17

Review metrics

Metric Value Why it matters
Timing boundary 3-second full-sync check replaced by a 2-second parser check The regression budget now measures the historical backtracking operation while both provider-mode integration cases retain their semantic assertions.

Root-cause cluster

Relationship: same_root_cause
Canonical: #150260
Summary: This is the release-branch backport of the merged canonical timing repair, so the upstream merge does not supersede its release-specific purpose.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep the release branch aligned with the canonical parser-level performance guard and retain full indexing semantics without coupling them to host scheduling.

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

Not applicable to a new runtime defect: this backport changes test timing boundaries. The supplied evidence documents hosted whole-sync overruns and historical-matcher sensitivity; this review did not rerun them.

Is this the best way to solve the issue?

Yes. Timing the existing shared parser isolates the historical defect while preserving end-to-end indexing assertions, and the branch exactly adopts the already-merged canonical solution.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is focused test maintenance for release validation with no runtime behavior change.
  • remove P2: Current review triage priority is P3, so this older priority label is no longer current.

Label justifications:

  • P3: This is focused test maintenance for release validation with no runtime 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: The maintainer/bot-authored backport changes only tests, so the external-contributor runtime-proof gate does not apply; reported parser mutation sensitivity and complete indexing-suite results address the changed testing boundary.

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)
  • lzhan011: 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 (1 earlier review cycle)
  • reviewed 2026-09-17T06:06:49.628Z sha 5436d0c :: needs maintainer review before merge. :: none

Backport the exact test-only parser timing repair from #150260. Preserve the original malformed-annotation witness and both complete manager integration cases without maintaining a separate preparation test.

(cherry picked from commit fa53cf6)

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the fix/release95-perf-20260917T0533 branch from 5436d0c to 9e066d4 Compare September 17, 2026 06:59
@roboclaw-bot roboclaw-bot changed the title fix(memory): isolate annotation regression timing from indexing workers fix(memory): backport canonical annotation regression timing Sep 17, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

The maintainer-requested exact canonical backport of #150260 is now at 9e066d46da27e4c5cb07953a89015841e7b218b1, replacing the bespoke preparation test. It is based directly on the merged #150653 squash commit, keeps the release base, and has fresh root acceptance plus 87 passing tests, scoped checks, and historical-matcher sensitivity evidence. The PR body contains the current scope and proof.

@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. and removed P2 Normal backlog priority with limited blast radius. labels Sep 17, 2026
@RomneyDa
RomneyDa merged commit c0ef8ff into release/2026.9.5 Sep 17, 2026
159 checks passed
@RomneyDa
RomneyDa deleted the fix/release95-perf-20260917T0533 branch September 17, 2026 07:26
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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.

3 participants