Repository navigation
fix(memory): backport canonical annotation regression timing - #150654
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 3:04 AM ET / 07:04 UTC (Revision 2). ClawSweeper reviewWhat this changesBackports 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 Review scores
Verification
How this fits togetherMemory 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +17. Total +17 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
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]>
5436d0c to
9e066d4
Compare
|
@clawsweeper re-review The maintainer-requested exact canonical backport of #150260 is now at |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
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
b466d221071cd72d48c26aafa1fdb8da94fa597bsupplied the accepted release parent, and its tree exactly matches the validated stack parentee245a6398bffb09efc903faccdc7995abe69a66. The temporary parent branch was deleted externally. Repair commit9e066d46da27e4c5cb07953a89015841e7b218b1places only this canonical memory backport onb466d221071cd72d48c26aafa1fdb8da94fa597b, 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
c0ef8ff5badc8735b85d802f4102c98b1ed45d70. The release branch had independently advanced through fix: live model probes miss loopback requests after a build #150684 to parent58a66d70571f15422b5b7b2b776b4a0bef0cccf1. The squash changes only these two memory test files, and both merged file blobs exactly match tested candidate9e066d46da27e4c5cb07953a89015841e7b218b1. 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.fa53cf67806714f138f63045a936c190b80f0b50; upstream author credit is preserved. Live parser-test history checked on September 17, 2026 contains no later change needing adoption.ee245a6398bffb09efc903faccdc7995abe69a66; committed parent:b466d221071cd72d48c26aafa1fdb8da94fa597b. Both parent trees area044e4a3b168acb43982eaf263310923738da1af. Committed candidate tree:e8643e66b11803eced508d5b29a8b19ca9de7392; only two test files, +22/-5, with canonical patch ID82fe8a174a3323b78fb1f9bacb612592cad0c523. Normal hooks passed and left the reviewed/tested tree unchanged.e55f25b15ea61ab26ef9079b9afa279155689b50into 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.node scripts/check-changed.mjs --base ee245a6398bffb09efc903faccdc7995abe69a66passed, 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 --checkpassed.9e066d46da27e4c5cb07953a89015841e7b218b1completed 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, includingopenclaw/ci-gate. One observer followed that run; no workflow retry was issued.35183128849, job105079764214: 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.