Repository navigation
fix(knowledge): keep historical claims distinct and reject changed retries - #200140
Merged
Merged
Conversation
Validate the original remember intent for published as well as accepted retries. Preserve assertion origin, date precision, validity and ownership when matching duplicates, and reserve same-title record paths within each publication batch. No schema change or live data migration. Co-authored-by: vincentkoc <[email protected]>
…tries Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 98d75c9b-b3d3-8edb-a991-d810ec4aeff9
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
roboclaw-bot
enabled auto-merge (squash)
November 16, 2026 14:52
Collaborator
Author
|
Merged via squash auto-merge.
|
vincentkoc
added a commit
that referenced
this pull request
Nov 16, 2026
…tgres-compaction-watched-prompt-20261116 * commit '9e810f7101557b006d5ff223d955f14dc43329f0': (23 commits) chore(ui): refresh control ui locales (#200164) fix(update): stop reporting unset git config keys as failing checks (#200153) test: consolidate redundant coverage (198793, part 2) (#198936) revert: skills-used full-transcript scan on every chat history page (#200159) refactor(sessions): follow the chat by key for stored delivery references (#200099) fix(update): bridge 2026.11.5-beta.4 updaters (#200152) fix(gateway): avoid filesystem stalls during catalog refresh (#200136) fix(ci): match update refusal probe to selected candidate (#200043) fix(agents): keep read-only steering carriers when publishing suppressed user envelopes (#200156) test: consolidate suites while retaining recovery owners (#198933) test: consolidate redundant coverage (198789, part 2) (#198932) refactor(cli): consolidate camera command tests (#200144) fix(cli): avoid initializing provider runtime during cleanup (#200139) fix(ui): show mobile destinations without the drawer exit delay (#198879) chore(ui): refresh control ui locales (#200146) fix(knowledge): keep historical claims distinct and reject changed retries (#200140) fix(ui): align dropdown arrows on mobile New Session improve(sessions): archive inactive transcripts by default (#199899) refactor(agents): own background commands and yield waits by the chat (#200097) fix(models): guessed non-chat models leave the default picker instead of being refused (#200102) ...
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 17, 2026
…tries (openclaw#200140) Reject changed input when retrying any retained Knowledge remember request, including a completed publication. Keep historical claim dates, precision, assertion origin, validity and ownership distinct during duplicate detection. Reserve same-title record paths within each batch so distinct claims publish atomically. Verified with red-on-base regressions, 22 focused Node tests, extension production/test typechecks, changed-file lint and formatting, size/assertion guards, and independent P0-P2 review. No schema migration, live recovery or deployment. Co-authored-by: vincentkoc <[email protected]>
This was referenced Nov 23, 2026
Merged
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #193959
What Problem This Solves
Fixes: Knowledge can discard a distinct historical claim as a duplicate, or accept changed input when a caller retries a completed save.
User Impact
User impact: Claims with different dates, precision or origins remain distinct, and retrying a save with changed input is rejected instead of returning a misleading old receipt. Distinct same-title claims can be saved together. No migration is required; existing records are not rewritten or recovered automatically.
Why This Change Was Made
Validate the existing retained input digest before reconstructing any remember retry. Use the same assertion metadata comparison for saved and within-call duplicates, preserving source date representations and ownership/validity bounds. Reserve filenames already selected within the current batch so the newly distinct claims can publish atomically without weakening filesystem collision checks.
The repair stays in the existing Knowledge planning/publication owners: no new recovery manager, journal, schema, permissions or background job.
Evidence
Fixes requested by @vincentkoc.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by