Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 10, 2026, 8:48 PM ET / July 11, 2026, 00:48 UTC. Summary PR surface: Source +99, Tests +70. Total +169 across 4 files. Reproducibility: yes. at source level and through the linked live reports: after bounded settled reads yield no extractable assistant narrative, current main enters the fallback branch. The changed current-head warning and diary output have not yet been demonstrated in a real run. Review metrics: none identified. Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 metadata-only diagnostic and cause-neutral fallback marker after a redacted real fallback run proves both the gateway warning and resulting DREAMS.md entry, while keeping archived-session recovery on its separate track. Do we have a high-confidence way to reproduce the issue? Yes at source level and through the linked live reports: after bounded settled reads yield no extractable assistant narrative, current main enters the fallback branch. The changed current-head warning and diary output have not yet been demonstrated in a real run. Is this the best way to solve the issue? Yes for the canonical issue's observability scope: the patch reuses the final settled snapshot, avoids a competing recovery path, and keeps raw narrative content out of diagnostics. It is intentionally not the solution to archived-session narrative loss. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 249e6efe6351. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +99, Tests +70. Total +169 across 4 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
Review history (4 earlier review cycles)
|
16f00aa to
6b68258
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Real-behavior repro (OpenClaw 2026.6.5, ollama provider) The silent fallback this PR replaces does fire in normal use — environment: OpenClaw 2026.6.5, Linux x86_64, provider One caveat on the "empty" framing, in case it informs what gets surfaced: in our captured case the narrative was not actually empty. The model generated a full ~140-word narrative that was durably persisted (assistant turn, |
6b68258 to
ccb58fd
Compare
|
Addressed both P2 findings in ccb58fd422b and rebased onto current main:
After-fix runtime/log proof of the no-text diagnostic path remains outstanding — flagged to the PR author. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
The previous re-review run failed mid-flight (progress state: Failed) — the P2 fixes for both findings are on head ccb58fd422b (normalized @clawsweeper re-review |
|
Addressed the new P2 (
Redacted after-fix gateway warning + DREAMS.md artifact from a real fallback run remains the outstanding gate (flagged to the PR author). @clawsweeper re-review |
ccb58fd to
57ea097
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(memory-core): surface empty narrative generation instead of silent fallback (#90781) This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Closing per ClawSweeper review verdict |
Summary
When a Dreaming narrative run produces no usable text, memory-core writes a
fallback diary entry and logs a bare
narrative generation produced no textwarning — giving operators no signal about why (empty completion, tool-only
assistant turn, refusal, non-text parts, etc.). Issue #90781.
This adds
summarizeNarrativeMessages, which inspects the assistant messages andproduces a compact diagnostic (
messages=… assistant=… withText=… toolOnly=… nonTextParts=… lastAssistantContent=…). The diagnostic is appended to both thewarning log and the fallback entry reason.
Rebase note
Rebased onto current
main. Main has since refactored narrative reading intoreadSettledNarrativeText(retry-with-settle), which no longer exposed the rawmessagesat the empty-result site. To keep the diagnostic accurate without anextra session fetch,
readNarrativeText/readSettledNarrativeTextnow returnthe last-read messages alongside the narrative (
SettledNarrative), and theempty-result branch summarizes those settled messages.
Verification
node scripts/run-vitest.mjs extensions/memory-core/src/dreaming-narrative.test.ts→ 63 passed.pnpm tsgo:extensions→ clean.oxfmt --check/oxlintclean on changed files.Closes #90781