fix(plugins): suppress metadata cache hit scan spans#86796
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed May 29, 2026, 1:15 AM ET / 05:15 UTC. Summary PR surface: Source -9, Tests +30. Total +21 across 2 files. Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Review detailsBest possible solution: Retry the Codex review after fixing the execution failure. Do we have a high-confidence way to reproduce the issue? Unclear. The review failed before ClawSweeper could establish a reproduction path. Is this the best way to solve the issue? Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model gpt-5.5, reasoning high; reviewed against 8eb5ff08c86b. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source -9, Tests +30. Total +21 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
Summary
What problem does this PR solve?
Why does this matter now?
What is the intended outcome?
What is intentionally out of scope?
What does success look like?
What should reviewers focus on?
Linked context
Which issue does this close?
Closes #86790
Which issues, PRs, or discussions are related?
Related #
Was this requested by a maintainer or owner?
Local performance bug extraction from redacted profiler evidence.
Real behavior proof (required for external PRs)
Behavior addressed: Plugin metadata cache hits still emit plugins.metadata.scan diagnostics spans, flooding the timeline on hot paths even when the cached snapshot is reused.
Real environment tested: Local OpenClaw source worktree on Linux with Node v24.15.0; focused Vitest regression tests and diff hygiene were run in the isolated bug branch worktree.
Exact steps or command run after this patch:
node node_modules/vitest/vitest.mjs run src/plugins/plugin-metadata-snapshot.memo.test.ts --reporter=verbose git diff --check .agents/skills/autoreview/scripts/autoreview --mode localEvidence after fix:
Observed result after fix: Focused regression coverage passed and autoreview reported no accepted/actionable findings.
What was not tested: No live long-running profiler rerun was performed after the patch.
Proof limitations or environment constraints: The original evidence is from redacted local profiler artifacts; this PR includes focused seam proof rather than a full live profiler replay.
Before evidence (optional but encouraged):
Tests and validation
Which commands did you run?
node node_modules/vitest/vitest.mjs run src/plugins/plugin-metadata-snapshot.memo.test.ts --reporter=verbose git diff --check .agents/skills/autoreview/scripts/autoreview --mode localWhat regression coverage was added or updated?
src/plugins/plugin-metadata-snapshot.ts; src/plugins/plugin-metadata-snapshot.memo.test.ts
What failed before this fix, if known?
The profiler/timeline evidence showed the hot-path behavior described in the linked issue.
If no test was added, why not?
Focused regression coverage was added or updated.
Risk checklist
Did user-visible behavior change? (
Yes/No)No
Did config, environment, or migration behavior change? (
Yes/No)No
Did security, auth, secrets, network, or tool execution behavior change? (
Yes/No)No
What is the highest-risk area?
Preserving existing hot-path behavior while reducing repeated work.
How is that risk mitigated?
Focused regression tests plus autoreview.
Current review state
What is the next action?
Maintainer review and CI.
What is still waiting on author, maintainer, CI, or external proof?
Full live profiler replay was not run locally.
Which bot or reviewer comments were addressed?
Local autoreview findings were addressed before opening this PR where applicable.