Skip to content

fix(ci): restore memory helper routing test - #117295

Merged
vincentkoc merged 1 commit into
mainfrom
fix/test-project-memory-watcher
Aug 1, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/test-project-memory-watcher

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Exact-head CI fails in src/scripts/test-projects.test.ts after #117247 because the memory-core helper now has seven additional transitive test importers that are missing from the routing expectation.

Why This Change Was Made

Update the expected importer set to match the current dependency graph. This changes test metadata only; production routing and runtime behavior are unchanged.

User Impact

Restores the compact test shard and unblocks exact-head validation. No runtime or user-facing behavior changes.

Evidence

Related: #117247

@vincentkoc vincentkoc self-assigned this Aug 1, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 1, 2026
@vincentkoc
vincentkoc force-pushed the fix/test-project-memory-watcher branch from 379b9d4 to c6866ec Compare August 1, 2026 08:09
@vincentkoc
vincentkoc marked this pull request as ready for review August 1, 2026 08:10
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head: c6866ec320daf09342994672c873871f6566b2f1

The repo-native review artifacts are validated with zero findings. Focused routing proof passes 85/85, formatting and diff checks pass, and branch autoreview is clean at 0.99.

@clawsweeper

clawsweeper Bot commented Aug 1, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc
vincentkoc force-pushed the fix/test-project-memory-watcher branch from c6866ec to b9b719b Compare August 1, 2026 08:18
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head: b9b719bd12cee776cffc977d121755349b6d8133

The repo-native review artifacts are validated with zero findings. Focused routing proof passes 85/85, formatting and diff checks pass, and branch autoreview is clean at 0.99.

@clawsweeper

clawsweeper Bot commented Aug 1, 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 repository_dispatch).
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 commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 4:27 AM ET / 08:27 UTC.

ClawSweeper review

What this changes

The PR updates the compact memory test-shard routing expectation with seven tests that now transitively import the memory runtime-mocks helper.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

No blocking correctness or security findings. Current main’s import graph explains all seven added test paths, so the patch is the narrow test-only repair; this member-authored, maintainer-labeled PR should remain open for normal maintainer merge judgment while its exact-head checks finish.

Priority: P2
Reviewed head: b9b719bd12cee776cffc977d121755349b6d8133
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a high-confidence, minimal correction with source-backed importer coverage; remaining exact-head CI completion and protected maintainer review are workflow gates rather than patch defects.
Proof confidence 🌊 off-meta tidepool Not applicable: This repository-member, test-only CI repair is appropriately evaluated by focused routing-test and exact-head CI evidence rather than an external real-setup media gate.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This repository-member, test-only CI repair is appropriately evaluated by focused routing-test and exact-head CI evidence rather than an external real-setup media gate.
Evidence reviewed 7 items Current helper chain: Current main makes the manager test helper lazily import embedding mocks, and those mocks import the runtime-mocks target used by the routing assertion. This establishes the transitive source boundary that the assertion must cover.
Seven missing importers are source-backed: manager.watcher-config.test.ts imports the manager helper directly; the six other added tests import tools.test-helpers.ts, which imports that same manager helper. All seven therefore reach embedding.test-mocks.ts and then test-runtime-mocks.ts.
Routing contract: The current assertion targets test-runtime-mocks.ts but lists only five importer tests. The routing implementation walks reverse imports transitively and returns sorted test targets, so the seven additions match the established contract rather than adding a parallel route.
Findings None None.
Security None None.

How this fits together

The test-project routing suite maps a changed helper file to every test that imports it, then sends those tests to the matching focused Vitest configuration. The memory-core helper chain feeds exact-head CI, so its expected importer list must track the current dependency graph.

flowchart LR
  A[Memory runtime mocks] --> B[Embedding test mocks]
  B --> C[Memory manager helper]
  C --> D[Memory test files]
  D --> E[Routing assertion]
  E --> F[Focused memory CI shard]
Loading

Decision needed

Question Recommendation
Should the normal maintainer review accept this member-authored, test-only correction after the remaining exact-head CI shards complete? Merge after CI completes: Accept the source-backed seven-path routing expectation once the remaining exact-head checks are green.

Why: The source graph and patch are high-confidence, but the PR has the protected maintainer label and is authored by a repository member, so this workflow must not make the final merge decision automatically.

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +7. Total +7 across 1 file.

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

Review metrics

None.

Technical review

Best possible solution:

Keep the reverse-import routing assertion as the single source of truth and merge this seven-entry expectation update once the exact-head CI run is complete and a maintainer accepts the member-authored change.

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

Yes, source-reproducible: current main’s reverse-import traversal reaches seven tests through the manager-helper and embedding-mock chain, while the assertion still lists only five. The contributor also reports the focused routing test passed after adding those entries.

Is this the best way to solve the issue?

Yes: updating the existing assertion is the narrowest maintainable repair because the routing implementation already derives transitive importers and the PR changes only the stale expected result.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0cec56df26c3.

Labels

Label changes:

  • add P2: The missing expectation blocks a focused exact-head validation path, while the proposed change remains limited to CI test routing metadata.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This repository-member, test-only CI repair is appropriately evaluated by focused routing-test and exact-head CI evidence rather than an external real-setup media gate.

Label justifications:

  • P2: The missing expectation blocks a focused exact-head validation path, while the proposed change remains limited to CI test routing metadata.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This repository-member, test-only CI repair is appropriately evaluated by focused routing-test and exact-head CI evidence rather than an external real-setup media gate.

Evidence

What I checked:

  • Current helper chain: Current main makes the manager test helper lazily import embedding mocks, and those mocks import the runtime-mocks target used by the routing assertion. This establishes the transitive source boundary that the assertion must cover. (extensions/memory-core/src/memory/test-manager-helpers.ts:6, 04f9a204fd91)
  • Seven missing importers are source-backed: manager.watcher-config.test.ts imports the manager helper directly; the six other added tests import tools.test-helpers.ts, which imports that same manager helper. All seven therefore reach embedding.test-mocks.ts and then test-runtime-mocks.ts. (extensions/memory-core/src/tools.test-helpers.ts:5, 0cec56df26c3)
  • Routing contract: The current assertion targets test-runtime-mocks.ts but lists only five importer tests. The routing implementation walks reverse imports transitively and returns sorted test targets, so the seven additions match the established contract rather than adding a parallel route. (src/scripts/test-projects.test.ts:656, bf6548bc8e50)
  • Patch scope: The proposed head adds exactly the seven source-backed test paths to the existing expected array and changes no runtime, workflow, configuration, or dependency behavior. (src/scripts/test-projects.test.ts:669, b9b719bd12ce)
  • Feature provenance: The merged memory change is an ancestor of current main and introduced the manager-helper path whose lazy embedding-mock import expands the transitive routing graph. (extensions/memory-core/src/memory/test-manager-helpers.ts:6, 04f9a204fd91)
  • Assertion ownership history: Blame attributes the existing routing assertion and its former five-path expectation to the current-main test-routing work in commit bf6548bc8e50bc8540318709e485b1a813e4670f. (src/scripts/test-projects.test.ts:656, bf6548bc8e50)

Likely related people:

  • steipete: The merged memory change that established the relevant manager-helper import path is commit 04f9a204fd916c2519e78a61a8fb2d327ca48777; its recorded author is Peter Steinberger. (role: merged feature author; confidence: high; commits: 04f9a204fd91; files: extensions/memory-core/src/memory/test-manager-helpers.ts, extensions/memory-core/src/memory/embedding.test-mocks.ts)
  • ljy-1351: git blame attributes the existing memory helper routing expectation to this contributor’s current-main test-routing commit. (role: routing assertion author; confidence: high; commits: bf6548bc8e50; files: src/scripts/test-projects.test.ts)
  • vincentkoc: This person authored the proposed focused correction and also appears in the recent history of the routing-test file. (role: recent test-routing contributor; confidence: medium; commits: b9b719bd12ce, cc62f37d6ec9; files: src/scripts/test-projects.test.ts)

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-08-01T08:22:11.989Z sha b9b719b :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. labels Aug 1, 2026
@vincentkoc
vincentkoc merged commit e1101d1 into main Aug 1, 2026
124 of 127 checks passed
@vincentkoc
vincentkoc deleted the fix/test-project-memory-watcher branch August 1, 2026 08:35
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 1, 2026
* origin/main: (41 commits)
  test(ci): update memory helper routing expectation (#117295)
  fix(canvas): emit successful control results in JSON mode (#117297)
  fix(imessage): settle native inbound reply delivery (#117282)
  fix(agents): reject invalid UTF-8 LSP responses (#117271)
  fix(line): centralize card and template message alt text (#117280)
  fix(release): validate candidates before Docker publication (#117252)
  fix(media): validate provider-owned generated media downloads (#117281)
  fix(feishu): restore custom HTTPS API domains (#117278)
  fix(models): reuse prepared plugin metadata (#117131)
  fix(agents): stop fallback after delivered-but-failed attempts (#114628)
  fix(memory): reuse targeted session corpus snapshot (#117247)
  fix(matrix): reconcile durable sends after response loss
  test(release): repair full validation regressions (#116931)
  fix(linux-canvas): report socket watcher fallback (#109502)
  fix(codex): preserve authoritative turn completion (#117185)
  fix(canvas): preserve widgets across derived-name collisions (#117132)
  fix(channels): config validation rejects documented channels.<id>.configWrites on 13 channels (#117206)
  fix(msteams): prevent duplicate final replies (#116398)
  fix(doctor): session SQLite restore installs an empty session index over the valid archive (#117221)
  fix(plugins): preserve workspace plugins across CLI and control UI (#117265)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main: (41 commits)
  test(ci): update memory helper routing expectation (openclaw#117295)
  fix(canvas): emit successful control results in JSON mode (openclaw#117297)
  fix(imessage): settle native inbound reply delivery (openclaw#117282)
  fix(agents): reject invalid UTF-8 LSP responses (openclaw#117271)
  fix(line): centralize card and template message alt text (openclaw#117280)
  fix(release): validate candidates before Docker publication (openclaw#117252)
  fix(media): validate provider-owned generated media downloads (openclaw#117281)
  fix(feishu): restore custom HTTPS API domains (openclaw#117278)
  fix(models): reuse prepared plugin metadata (openclaw#117131)
  fix(agents): stop fallback after delivered-but-failed attempts (openclaw#114628)
  fix(memory): reuse targeted session corpus snapshot (openclaw#117247)
  fix(matrix): reconcile durable sends after response loss
  test(release): repair full validation regressions (openclaw#116931)
  fix(linux-canvas): report socket watcher fallback (openclaw#109502)
  fix(codex): preserve authoritative turn completion (openclaw#117185)
  fix(canvas): preserve widgets across derived-name collisions (openclaw#117132)
  fix(channels): config validation rejects documented channels.<id>.configWrites on 13 channels (openclaw#117206)
  fix(msteams): prevent duplicate final replies (openclaw#116398)
  fix(doctor): session SQLite restore installs an empty session index over the valid archive (openclaw#117221)
  fix(plugins): preserve workspace plugins across CLI and control UI (openclaw#117265)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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.

1 participant