fix: quiet missing daily memory reads#82929
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed May 25, 2026, 10:18 AM ET / 14:18 UTC. Summary PR surface: Source +39, Tests +34, Docs +1. Total +74 across 3 files. Reproducibility: yes. at source level: the pinned upstream read tool rejects missing files during Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance: Risk before merge
Maintainer options:
Next step before merge Security Review detailsBest possible solution: Land the focused wrapper and regression-test change after maintainer review and after-fix behavior proof confirms the daily-memory miss path and the ordinary missing-file failure path. Do we have a high-confidence way to reproduce the issue? Yes, at source level: the pinned upstream read tool rejects missing files during Is this the best way to solve the issue? Yes, the proposed fix targets the OpenClaw read-wrapper seam and preserves ordinary missing-read failures. The missing piece is after-fix behavior proof, not an obvious code-design blocker. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against a3ae5c83821c. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +39, Tests +34, Docs +1. Total +74 across 3 files. View PR surface stats
Acceptance criteria:
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
|
6a8909e to
deb9f79
Compare
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
e592f2b to
937eac4
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Pre-merge verification for head 937eac4: Exact local commands run after this patch: Local result: CI proof: Observed result after fix: The PR regression test covers What was not tested: No live Gateway session was run for this landing; validation is focused local Vitest proof plus the PR real-behavior proof workflow and full selected CI matrix. |
Summary
ENOENTbefore the file exists and get logged as scary tool failures.memory/YYYY-MM-DD.mdreads into structured optional not-found context.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
git diff --checkfrom branchbug-010-missing-daily-memory-readafter the patch.Before evidence from the redacted bug log:
executeReadPageso a not-found error for canonicalmemory/YYYY-MM-DD.mdreturnsdetails: { status: "not_found", optional: true }with a non-error text result; the added regression test asserts that ordinary missing files still throw.node scripts/run-vitest.mjs src/agents/pi-tools.workspace-only-false.test.tsfailed withCannot find module 'vitest/package.json'before install;pnpm installfailed twice inesbuildpostinstall withspawnSync C:\Program Files\nodejs\node.exe EPERM; directnode node_modules\vitest\vitest.mjs run src/agents/pi-tools.workspace-only-false.test.ts --reporter=verboseand the one-test retry timed out; Testbox-through-Crabbox was blocked by missingblacksmithCLI; direct AWS Crabbox was blocked by missing AWS/broker credentials.Root Cause (if applicable)
createOpenClawReadTooldelegated all missing read failures to the upstream read tool, so optional daily memory misses propagated as generic tool errors and were logged bytoToolDefinitions.Regression Test Plan (if applicable)
src/agents/pi-tools.workspace-only-false.test.tsmemory/YYYY-MM-DD.mdreturns structured optional not-found context, whilenotes/missing.mdstill throws.User-visible / Behavior Changes
Reading a missing canonical daily memory file now reports that the file does not exist yet instead of surfacing a generic read failure.
Diagram (if applicable)
Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain risk + mitigation: N/ARepro + Verification
Environment
memory/2026-05-15.md.Steps
read failed: ENOENTlogging.Expected
Actual
read failed: ENOENTlog noise.Evidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
@earendil-works/pi-coding-agent@0.74.1read implementation; it callsops.access(absolutePath)and rejects access/read errors, which are then logged by OpenClaw’s generic tool adapter. Added focused regression coverage at the OpenClaw wrapper seam.Review Conversations
If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review conversation cleanup for maintainers.
Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoRisks and Mitigations
memory/YYYY-MM-DD.mdpaths and only for not-found errors; ordinary missing files and other failures still throw.