Skip to content

test(tooling): refresh memory helper routing - #117301

Closed
steipete wants to merge 1 commit into
mainfrom
codex/fix-test-projects-memory-routing
Closed

steipete wants to merge 1 commit into
mainfrom
codex/fix-test-projects-memory-routing

Conversation

@steipete

@steipete steipete commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes a deterministic CI failure where the tooling router test expected only the older memory-core importers of test-runtime-mocks.ts, while the router correctly discovered seven newer memory-core tests.

Why This Change Was Made

Refreshes the exact expected routing list to match the current import graph. Production routing is unchanged; the stale assertion was the only defect.

User Impact

No user-visible behavior changes. The core tooling shard no longer fails on current main because its expectation is synchronized with the tests it routes.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 1, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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
@clawsweeper

clawsweeper Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

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

ClawSweeper review

What this changes

Updates the tooling-router test so a shared memory runtime-mocks helper is expected to route all currently importing memory-core tests.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

No blocking correctness or security finding. The router already follows the complete transitive import graph; this test-only PR updates its stale expected result, but the protected maintainer label requires explicit maintainer handling after exact-head CI completes.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-aligned regression correction with relevant CI and terminal evidence; only normal exact-head CI refresh remains.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The PR body provides a focused after-fix terminal result for the affected tooling test and links the original failing CI shard; that directly covers this non-visual routing assertion.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body provides a focused after-fix terminal result for the affected tooling test and links the original failing CI shard; that directly covers this non-visual routing assertion.
Evidence reviewed 6 items Current router contract: The routing implementation breadth-first walks reverse imports from the changed file, records reached test files, and returns a deterministic sorted test list.
Dynamic import support: The import-specifier pattern explicitly recognizes dynamic import expressions, so the manager helper's lazy embedding-mocks import participates in the routing graph.
Relevant dependency chain: The manager test helper dynamically imports embedding test mocks, and those mocks import the shared runtime-mocks helper; tool and session tests reach the same helper via the manager helper.
Findings None None.
Security None None.

How this fits together

The test-projects tooling turns a changed helper file into a focused Vitest plan. It scans static and dynamic imports, finds affected test files, and sends those tests to the memory extension shard.

flowchart LR
  A[Changed runtime-mocks helper] --> B[Import graph scan]
  B --> C[Static and dynamic importers]
  C --> D[Affected memory tests]
  D --> E[Memory extension Vitest plan]
  E --> F[Focused CI shard]
Loading

Decision needed

Question Recommendation
Should this maintainer-labeled test-routing correction be merged once its refreshed exact head is cleanly mergeable and required checks pass? Land after refreshed CI: Rebase or refresh the branch, confirm the exact-head test and required CI results, then merge the focused expectation update.

Why: The patch is source-aligned and narrowly scoped, but the protected maintainer label requires an explicit human merge decision rather than automated cleanup.

Before merge

  • Resolve merge risk (P1) - Required checks are still in progress and the branch is behind current main, so landing should use a refreshed exact-head merge result and completed CI.
  • Complete next step (P2) - No mechanical repair remains; the protected maintainer label and in-progress exact-head CI require normal human merge handling.
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.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the production router unchanged, refresh this one expected importer list against current main, and land once the refreshed exact head is mergeable with required checks green.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the production router unchanged, refresh this one expected importer list against current main, and land once the refreshed exact head is mergeable with required checks green.

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

Yes, from source: targeting the shared runtime-mocks helper traverses dynamic and static importer paths to tests absent from the current assertion. The PR body also reports the matching failed CI shard, although this read-only review did not execute it.

Is this the best way to solve the issue?

Yes. The router implementation already has the correct transitive-import behavior; aligning this exact expectation is narrower and more maintainable than changing production routing or weakening the assertion.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This fixes a deterministic CI-routing regression with limited blast radius and no user-visible runtime behavior change.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides a focused after-fix terminal result for the affected tooling test and links the original failing CI shard; that directly covers this non-visual routing assertion.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body provides a focused after-fix terminal result for the affected tooling test and links the original failing CI shard; that directly covers this non-visual routing assertion.

Label justifications:

  • P2: This fixes a deterministic CI-routing regression with limited blast radius and no user-visible runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body provides a focused after-fix terminal result for the affected tooling test and links the original failing CI shard; that directly covers this non-visual routing assertion.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides a focused after-fix terminal result for the affected tooling test and links the original failing CI shard; that directly covers this non-visual routing assertion.

Evidence

What I checked:

Likely related people:

  • ljy-1351: Introduced the current helper-routing assertion that this PR refreshes. (role: recent test-surface contributor; confidence: high; commits: bf6548bc8e50; files: src/scripts/test-projects.test.ts)
  • steipete: Recent memory-helper work added importer paths relevant to the stale expectation, and this person has the strongest history across the routing and memory helper files sampled. (role: recent memory-area contributor; confidence: medium; commits: 04f9a204fd91; files: extensions/memory-core/src/memory/test-manager-helpers.ts, extensions/memory-core/src/memory/embedding.test-mocks.ts, extensions/memory-core/src/tools.test-helpers.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Refresh the behind branch and confirm required checks on the exact merge head.

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.

@vincentkoc

Copy link
Copy Markdown
Member

Closing as fully superseded by #117295, landed in e1101d1. The effective patch ID is identical, and this PR has no unique files or commits left to land.

@vincentkoc vincentkoc closed this Aug 1, 2026
@vincentkoc

Copy link
Copy Markdown
Member

Closing as duplicate of #117295, which landed on main as e1101d15b87d859f103d182aabf491f7ad59e6b9.

Both PRs have the same patch-id and add the same seven source-backed importer expectations. The landed fix now passes src/scripts/test-projects.test.ts (85/85) on current main.

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. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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.

2 participants