Skip to content

fix(memory): make persistence promises receipt-backed - #120989

Merged
fuller-stack-dev merged 21 commits into
openclaw:mainfrom
fuller-stack-dev:fix/memory-persistence-receipts
Aug 16, 2026
Merged

fuller-stack-dev merged 21 commits into
openclaw:mainfrom
fuller-stack-dev:fix/memory-persistence-receipts

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Aug 9, 2026 •

Copy link
Copy Markdown
Member

What problem this solves

A durable memory mutation can fail while the assistant still says the fact was saved or forgotten. That leaves the user with a false persistence promise even though storage did not change.

Repair

  • Adds a generic sideEffecting manifest opt-in and carries it only through private canonical plugin/tool metadata.
  • Resolves side-effect ownership from the final concrete executable tool in embedded, Codex, and Copilot runtimes.
  • Binds failed mutation state to the canonical owner plus authoritative executed arguments; duplicate or shadowed tool names fail closed.
  • Reuses the existing terminal mutation correction when the owning tool reports failure, without filtering assistant wording.
  • Makes LanceDB writes and deletes receipt-backed: only an exact normalized duplicate, a fulfilled add, or a positive delete count can claim persistence. An authoritative zero-row delete is returned as a canonical failed tool result, so a false forget claim receives the existing correction.
  • Keeps owner/receipt state out of model-visible tool content and the Codex protocol, and does not promise later semantic recall.

This does not fix #111985. That issue concerns OAuth credentials at the embeddings endpoint; #115733 is the focused open repair for that separate path.

User impact

After a failed persistent memory write or delete, the false assistant claim remains visible and OpenClaw appends a corrective failure message. Successful exact duplicates, completed database writes, and positive delete receipts do not receive a correction.

Evidence

  • Red on unmodified main at 715e32448e2d and db0d133ec952: an incognito memory_store rejection followed by a persistence claim delivered only the false claim and wrote no row.
  • Codex parity red on prior exact head 2a40bd4ca078: a rejected canonical owner-backed store reached the terminal observer as non-mutating, so the final reply contained no correction. Blacksmith Testbox: tbx_01m03z5dyfm8zj8e3yxdh3tftr, https://github.com/openclaw/openclaw/actions/runs/31917059361.
  • ClawSweeper's owner-handoff findings were reproduced before repair: Copilot discarded private owner evidence on a rejected owner-backed delete, memory_forget lacked side-effect ownership, and client-tool shadowing could assign a plugin owner to the wrong concrete tool.
  • Exact head bcc6f214e072f72260d61bf4aa42757bda13bd0e additionally fixes the retained zero-row finding at the canonical plugin result boundary. Direct-ID and high-confidence-query deletes now return { action: "not_found", status: "error", error, id } when LanceDB reports numDeletedRows: 0; positive counts still return action: "deleted", and unrelated statusless not_found results remain successful.
  • Exact red/green receipt proof used official Crabbox v0.42.0 on direct AWS Crabbox. Red run_e0981462513d / cbx_da2fb8a98dcc failed 1/1 at the missing failure status on 1d972997; green run_6bf6d575e2cb / cbx_328479d8ff24 passed 1/1 on the patched tree with exit 0 and the lease stopped. The fixture covers both zero-row delete paths through terminal-to-payload correction, the positive delete guard, the generic statusless-not-found control, and metadata non-leakage.
  • Fresh source-blind validation passed C1-C5 against the actual plugin and LanceDB: zero-row delete classified as error plus a separate correction; positive delete produced one success payload; generic statusless not-found remained successful; owner metadata stayed private; nonce and invalid-scenario probes passed. The temporary harness stopped the registered plugin service and removed its isolated database after every invocation.
  • Exact-patch autoreview has zero findings (0.98 correctness confidence), and TruffleHog is clean. The final two-file patch is production +6/-5 and tests +70/-2.
  • LanceDB v0.31.0 was checked directly at tag commit 3f8d76817e6020ea344fba8a66c5de9ad8c82234: DeleteResult exposes the actual numDeletedRows plus committed version; no-match returns zero and a no-op may still advance version. The row count therefore owns the action receipt.
  • The earlier six-file owner/embedded/Codex/timeout/negative/final-reply contract passed 422/422 tests using official Crabbox v0.42.0 with provider blacksmith-testbox: lease tbx_01m046cs5hs38heq6xv286mk1s, https://github.com/openclaw/openclaw/actions/runs/31921978500. The client receipt succeeded with exit 0 and the lease completed; its backing Actions lifecycle concluded cancelled only after the external one-shot stop.
  • Earlier embedded-path proof passed 225/225 tests (tbx_01m03ws5bfdcn72e62s3fepxph): https://github.com/openclaw/openclaw/actions/runs/31915350125. Earlier full changed gate passed its selected type, lint, boundary, manifest, database-first, and import-cycle gates (tbx_01m03vdn9ffa3rc859b0w4zhfq): https://github.com/openclaw/openclaw/actions/runs/31914327935.
  • Shared history remains non-rewritten. This update is an ordinary fast-forward from public head 1d972997; newer unrelated canonical-main movement was deliberately not merged under the frozen-head gate.

Scope

40 files, currently +1105/-65. No public receipt SDK, memory-core rewrite, model-visible receipt payload, Codex protocol extension, wording filter, or proof asset is included.

@clawsweeper

clawsweeper Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@fuller-stack-dev
fuller-stack-dev marked this pull request as ready for review August 9, 2026 07:47
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: memory-core Extension: memory-core extensions: memory-lancedb Extension: memory-lancedb scripts Repository scripts agents Agent runtime and tooling plugin: file-transfer labels Aug 9, 2026
@clawsweeper

clawsweeper Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Aug 9, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Aug 9, 2026
@clawsweeper

clawsweeper Bot commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 16, 2026, 2:39 AM ET / 06:39 UTC.

ClawSweeper review

What this changes

Adds private side-effect ownership metadata for durable memory tools across embedded, Codex, and Copilot runtimes, so failed writes or deletes trigger the existing corrective reply instead of leaving a false persistence claim.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 5 items remain

Keep open for maintainer review. The repair is coherent and no new line-level defect was found, but it expands the documented plugin manifest and agent-harness SDK contract; required direct Codex and LanceDB contract checks could not be completed locally.

Priority: P1
Reviewed head: 4e4233304969068346d0ae703fac2d7b726f1adf
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The source repair is well-covered and coherent, but merge readiness depends on explicit compatibility ownership and dependency-contract verification.
Proof confidence 🌊 off-meta tidepool Not applicable: The author is a repository MEMBER, so the external-contributor proof gate does not apply; reported Crabbox evidence remains supplemental to the unresolved dependency checks.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a repository MEMBER, so the external-contributor proof gate does not apply; reported Crabbox evidence remains supplemental to the unresolved dependency checks.
Evidence reviewed 5 items Concrete owner boundary: The PR derives the owner key from concrete plugin-tool metadata and binds it to the exact executed arguments in the terminal observer rather than inferring ownership from a tool name.
LanceDB receipt handling: A zero-row delete becomes an error result at the memory-plugin boundary, while the shared error classifier treats status error and blocked as failed tool outcomes.
Codex dependency gate blocked: The changed Codex bridge is an affirmative dependency surface, but the repository-required sibling Codex source was absent and network resolution prevented obtaining it; no Codex-dependent approval is made.
Findings None None.
Security None None.

How this fits together

Memory plugin tools run through agent-specific bridges that report terminal outcomes before reply payloads are built. The new manifest metadata identifies a concrete side-effecting plugin tool so the terminal observer can preserve a failed persistence action without exposing ownership data to the model.

flowchart LR
A[Plugin manifest] --> B[Concrete memory tool]
B --> C[Embedded or bridge runtime]
C --> D[Terminal outcome observer]
D --> E[Reply payload builder]
B --> F[LanceDB receipt]
F --> D
E --> G[Corrective user reply]
Loading

Decision needed

Question Recommendation
Should OpenClaw accept sideEffecting manifest metadata plus the agent-harness owner-key export as a supported third-party plugin contract after direct Codex and LanceDB verification? Accept the generic contract: Confirm the direct dependency behavior and retain the documented generic metadata and runtime helper.

Why: This PR changes a public plugin-facing decision surface, while the required upstream dependency source checks were unavailable locally.

Before merge

  • Resolve merge risk (P1) - The documented sideEffecting field and exported owner-key helper are a compatibility commitment for third-party plugins that needs explicit owner acceptance.
  • Resolve merge risk (P1) - Direct inspection of the required Codex runtime/protocol and LanceDB delete-result contract was unavailable in this checkout.
  • Resolve merge risk (P1) - Exact-head CI is still in progress, and the local autoreview helper could not run without TruffleHog.
  • Complete next step (P2) - A maintainer must accept the compatibility boundary and complete the unavailable direct dependency checks; there is no narrow mechanical repair to dispatch.
Agent review details

Security

None.

PR surface

Source +206, Tests +832, Docs 0, Other +2. Total +1040 across 40 files.

View PR surface stats
Area Files Added Removed Net
Source 25 248 42 +206
Tests 13 852 20 +832
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 4 2 +2
Total 40 1105 65 +1040

Review metrics

Metric Value Why it matters
Production versus test delta production +201/-44, tests/test support +834/-20, docs +1/-1 The bug fix materially expands runtime code; its cross-runtime ownership boundary is the stated justification.
Plugin contract surface 1 manifest field added, 1 agent-harness export added Both additions affect compatibility for bundled and third-party plugins.

Stored data model

Persistent data-model change detected: serialized state: extensions/memory-lancedb/side-effecting-tools.test.ts, serialized state: src/agents/tool-terminal-outcome.test.ts, unknown-data-model-change: extensions/memory-lancedb/index.test.ts, unknown-data-model-change: extensions/memory-lancedb/index.ts, vector/embedding metadata: extensions/memory-lancedb/index.test.ts, vector/embedding metadata: extensions/memory-lancedb/index.ts, and 5 more. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: canonical
Canonical: #120989
Summary: This PR is the canonical receipt-correction work; the related OAuth embeddings reports concern a separate authentication route.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Verify and accept the contract (recommended)
    Complete the direct Codex and LanceDB contract checks, then record SDK-owner acceptance before merging.
  2. Pause the API expansion
    Keep the PR unmerged if maintainers do not want the new manifest and agent-harness compatibility commitment.

Technical review

Best possible solution:

Accept one generic, documented plugin-side-effect contract only after SDK ownership and direct Codex/LanceDB contract checks confirm that this is the intended long-term boundary.

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

No live reproduction was run in this read-only review, but the source path is clear and the PR supplies red/green runtime evidence for failed receipts reaching the terminal observer.

Is this the best way to solve the issue?

Unclear: the repair follows the producer and terminal-owner boundaries well, but maintainers must choose whether its new plugin contract is the intended durable API.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P1: The PR changes whether failed durable-memory actions receive a user-visible correction across supported agent runtimes.
  • merge-risk: 🚨 compatibility: It adds a documented manifest field and an SDK-facing runtime export for plugin tool ownership.
  • merge-risk: 🚨 session-state: It changes terminal tool-error state that controls corrective reply generation.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author is a repository MEMBER, so the external-contributor proof gate does not apply; reported Crabbox evidence remains supplemental to the unresolved dependency checks.

Evidence

What I checked:

  • Concrete owner boundary: The PR derives the owner key from concrete plugin-tool metadata and binds it to the exact executed arguments in the terminal observer rather than inferring ownership from a tool name. (src/plugins/tools.ts:322, 4e4233304969)
  • LanceDB receipt handling: A zero-row delete becomes an error result at the memory-plugin boundary, while the shared error classifier treats status error and blocked as failed tool outcomes. (extensions/memory-lancedb/index.ts:443, 4e4233304969)
  • Codex dependency gate blocked: The changed Codex bridge is an affirmative dependency surface, but the repository-required sibling Codex source was absent and network resolution prevented obtaining it; no Codex-dependent approval is made. (extensions/codex/src/app-server/dynamic-tool-execution.ts:164, 4e4233304969)
  • Autoreview unavailable: The required structured review helper stopped before model review because TruffleHog is not installed; this is reviewer infrastructure, not missing contributor proof. (bcc6f214e072)
  • Feature provenance: The receipt repair and its preceding owner-boundary commits are authored by fuller-stack-dev; older memory storage and agent-scoping work dates to Momo and Shubhankar Tripathy. (extensions/memory-lancedb/lancedb-store.ts:254, bcc6f214e072)

Likely related people:

  • Momo: Introduced the current LanceDB table-initialization path that owns durable deletion receipts. (role: memory storage introducer; confidence: high; commits: 16d2b7e46784; files: extensions/memory-lancedb/lancedb-store.ts)
  • Shubhankar Tripathy: Introduced the agent-scoping repair in the same memory-plugin storage area. (role: memory isolation contributor; confidence: high; commits: 6390edec25e2; files: extensions/memory-lancedb/lancedb-store.ts)
  • Peter Steinberger: Recent history on the plugin/tool-resolution area identifies this person as a likely routing contact, though the incomplete promisor history limits certainty. (role: recent adjacent contributor; confidence: low; commits: e87fc877822d; files: src/plugins/tools.ts)

Rank-up moves

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

  • Inspect the required sibling Codex protocol/runtime source.
  • Confirm the LanceDB delete-result contract and SDK-owner acceptance.
  • Wait for exact-head required CI to finish green.

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 (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-16T02:07:45.131Z sha 058366d :: found issues before merge. :: [P1] Declare Memory Forget as side-effecting
  • reviewed 2026-08-16T02:57:57.909Z sha 7e46bc9 :: needs changes before merge. :: [P1] Declare Memory Forget as side-effecting
  • reviewed 2026-08-16T03:19:37.033Z sha 4f68e43 :: found issues before merge. :: [P1] Declare Memory Forget as side-effecting | [P1] Carry owner evidence through Copilot
  • reviewed 2026-08-16T04:10:51.738Z sha a7cada0 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-16T04:26:26.945Z sha 4e9e47a :: found issues before merge. :: [P1] Mark zero-row memory deletes as failures | [P1] Reject client tools that shadow side-effect owners
  • reviewed 2026-08-16T04:51:33.385Z sha 1d97299 :: needs changes before merge. :: [P1] Mark zero-row deletes as failed mutations
  • reviewed 2026-08-16T05:00:53.520Z sha 1d97299 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-16T05:45:51.068Z sha bcc6f21 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 9, 2026
@fuller-stack-dev fuller-stack-dev self-assigned this Aug 10, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Addressed the five rank-up moves on exact head 2a40bd4ca078:

  1. Removed the enumerable receipt marker entirely. The opt-in now lives in private canonical PluginToolMeta, so runtime-plan cloning cannot drop or spoof it.
  2. Compaction no longer needs to preserve a receipt marker; terminal state receives only the host-owned canonical owner/action observation.
  3. Exact duplicate normalization now handles bare CR, CRLF, NFC, and surrounding whitespace; semantically nearby different text is still added.
  4. Removed the Fixes #111985 claim. OAuth embedding credentials remain separate and fix(memory): declare embeddings API route so OpenAI auth mode is enforced #115733 is still the focused open repair.
  5. Removed the public receipt SDK/model-visible receipt payload. The generic manifest opt-in is internal owner metadata, and ordinary tool output remains receipt-free.

The branch now contains current main without rewriting the submitted history. Exact-head source-blind proof passed 225/225 tests (run); the full changed gate passed on the identical task tree before unrelated UI-only main movement (run). Fresh autoreview and secret scan are clean.

@clawsweeper re-review

@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Exact-head disposition for 1d972997afbfabb504f55af19e6422c30883b03b:

  • Confirmed the client-shadow P1. Client tools remain intentionally admissible overrides, but side-effect ownership is now collected across the complete concrete pre-compaction tool surface. Exact and case-normalized ambiguities therefore fail closed without assigning the client call a plugin owner; unshadowed owners remain intact.
  • Red proof failed 1/6 before the repair. The focused owner/terminal pair now passes 15/15. Fresh source-blind validation passes 4/4 contract scenarios plus 2/2 anti-cheat probes. Exact-patch autoreview has zero findings (0.95 confidence), and TruffleHog is clean.
  • Disposition on the zero-row-delete P1: no code change. LanceDB v0.31's committed DeleteResult { numDeletedRows, version } makes zero rows an authoritative durable no-op: the requested scoped row is absent at the committed version. OpenClaw reports action: "not_found", never deleted/“Forgotten”; positive counts alone claim deletion, and storage exceptions remain terminal failures. Treating the already-satisfied absence postcondition as failure would be incorrect.
  • Direct dependency checks: Codex dynamic-tool wire remains content plus success only at upstream b3cc21737803 (codex-rs/app-server-protocol/src/protocol/v2/item.rs:1551-1578, codex-rs/app-server/src/dynamic_tools.rs:18-55). LanceDB v0.31 delete source/tests were inspected at tag 3f8d768 (rust/lancedb/src/table/delete.rs:12-58,145-202).
  • Full current diff: production +201/-44, tests/support +834/-20, docs +1/-1 across 40 files. The latest two canonical-main movement ranges had empty path intersections with this PR and were merged normally with signed, non-rewritten history.

There are zero review threads. The generic sideEffecting manifest/agent-harness owner contract remains maintainer-approved.

@clawsweeper re-review

@clawsweeper

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

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 16, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Maintainer disposition on the retained zero-row P1 for exact head 1d972997afbfabb504f55af19e6422c30883b03b: not actionable; the dependency contract disproves the failure premise.

The pinned dependency is @lancedb/lancedb 0.31.0. Its signed release tag resolves to commit 3f8d76817e6020ea344fba8a66c5de9ad8c82234. The owner implementation awaits the delete commit, returns both num_deleted_rows and the resulting table version, and updates the table snapshot before resolving: delete.rs:12-58. The dependency's own contract test says a zero result means no rows match, and its no-op test proves that even delete("false") commits a new version: delete.rs:145-202.

Therefore zero rows is an authoritative committed no-op receipt: the scoped memory is absent at that committed version. It is not a failed durable mutation, retrying cannot improve the postcondition, and turning it into lastToolError would create a false error. OpenClaw already keeps action provenance accurate: zero rows returns action: "not_found" plus “was not found”; only a positive count returns action: "deleted"/“Forgotten.” Rejected storage still throws and follows the owner-backed terminal correction path.

A later assistant sentence that contradicts a successful, model-visible not-found result is not evidence that the storage operation failed. Catching arbitrary semantic contradictions after successful tool outcomes would require the downstream wording inference/filter explicitly excluded from this repair. The durable invariant here is state/postcondition plus truthful tool receipt, both of which are satisfied.

The generic owner boundary is also maintainer-approved and was directly verified against the pinned Codex protocol/runtime. No head change is warranted for either retained merge-risk note.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 16, 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 exact_review_queue).
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 added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 16, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Exact-head disposition for bcc6f214e072f72260d61bf4aa42757bda13bd0e:

  • Accepted the retained zero-row P1 under the clarified action receipt invariant, superseding my earlier no-op disposition. LanceDB v0.31 reports the authoritative count of rows deleted by this invocation; zero is a committed storage no-op but not a successful delete action receipt.
  • Fixed this at the memory-lancedb owner boundary. Both direct-ID and high-confidence-query zero-row deletes now return canonical { action: "not_found", status: "error", error, id } results. Positive counts remain successful deleted receipts; generic statusless non-side-effecting not_found remains successful. No core special case, throw, blocked status, protocol change, wording filter, or owner-metadata leak was added.
  • Red on 1d972997: direct AWS Crabbox run_e0981462513d / cbx_da2fb8a98dcc failed 1/1 at the missing failure status. Green on the patched tree: run_6bf6d575e2cb / cbx_328479d8ff24 passed 1/1, exit 0, lease stopped. The fixture covers both zero-row paths through terminal-to-payload correction, positive success, generic not-found, and metadata privacy.
  • Fresh source-blind validation passed C1-C5 against the actual plugin and LanceDB, including service/database cleanup and nonce/invalid-input probes. Exact-patch autoreview returned zero findings at 0.98 correctness confidence; TruffleHog is clean.
  • Final patch delta: production +6/-5, tests +70/-2. The commit is signed and was published as an ordinary fast-forward from 1d972997; unrelated current-main movement was not merged.

There are no review threads. The PR body now contains the exact-head evidence. This PR is intentionally not being landed in this lane; native prepare/merge remains with the root landing gate after exact CI and review are clean.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 16, 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 exact_review_queue).
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 added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 16, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Maintainer merge-conflict refresh is published at exact head 4e4233304969068346d0ae703fac2d7b726f1adf.

  • Merged canonical main with an ordinary signed merge commit; no rebase, reset, force-push, or contributor-history rewrite.
  • The sole conflict was SDK surface-budget arithmetic. Current main removes 17 public exports / 12 callables and this PR adds one of each, so the combined exact budgets are 4313 / 2565.
  • Post-merge focused proof passed 817/817 tests across unit-fast, agents-core, plugins, Codex, memory, and extension bridge configs.
  • plugin-sdk:surface:check passed at 4313 / 2565; targeted oxfmt and git diff --check passed.
  • Exact resolution $autoreview is clean: no findings, TruffleHog clean, correctness 0.99.
  • Canonical movement after the merged main parent only touches Browser, iMessage/outbound sanitization, and a sidebar E2E, so it does not invalidate this contract proof.

@clawsweeper re-review

@clawsweeper

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

@fuller-stack-dev
fuller-stack-dev merged commit bccbb8a into openclaw:main Aug 16, 2026
133 checks passed
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Merged via squash.

@fuller-stack-dev
fuller-stack-dev deleted the fix/memory-persistence-receipts branch August 16, 2026 06:50
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 17, 2026
* fix: require memory persistence receipts

* fix(memory): bind persistence failures to tool owners

* fix(memory): preserve Codex persistence ownership

* test(plugin-sdk): account for owner metadata export

* test(codex): split owner timeout regression

* fix(memory): cover durable deletes across runtimes

* test(codex): type dynamic mutation fixtures

* fix(agents): fail closed ambiguous side-effect owners

* fix(memory): fail zero-row delete receipts
rogerallen1 added a commit to rogerallen1/openclaw that referenced this pull request Nov 30, 2026
sideEffecting declares durable-mutation ownership (PR openclaw#120989) and must
not imply an invocation cap; the previous conversion silently capped
memory-lancedb memory_store/memory_forget repeats. Add an explicit
manifest toolMetadata field `sideEffectBudget` (true | number >= 1),
thread it through manifest normalisation, runtime plugin metadata, the
worker tool-surface schema, and catalog budget resolution. Lobster
enrols with sideEffectBudget: true; memory-lancedb keeps ownership-only
metadata as before.

Refs openclaw#204076
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: codex extensions: copilot extensions: memory-lancedb Extension: memory-lancedb maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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.

memory-core sends ChatGPT/Codex OAuth token to direct OpenAI embeddings API

1 participant