Skip to content

fix(knowledge): keep historical claims distinct and reject changed retries - #200140

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/nimble-lobster
Nov 16, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/nimble-lobster

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

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

  • Two service-boundary regressions failed on base 90814f5 for the expected reasons: a changed retry resolved, and a distinct dated claim was reported as duplicate.
  • Final focused Node tests: 22 passed across remember, ingestion and page-budget/extraction suites. Covers accepted/published retries, changed input, date/origin distinctions, unchanged duplicate behavior, batch interruption recovery and snapshot-only preparation callers.
  • Extension production and test typechecks passed. Changed-file lint, formatting, line-cap/max-lines ratchets, assertion-safety and git diff whitespace checks passed.
  • Local autoreview of the complete final candidate against the base above: P0–P2, no actionable findings. The reviewed local source was committed as d593a62. Hosted ClawSweeper remains advisory under the repository workflow.
  • Scope/gap: synthetic isolated service/storage fixtures; no production-vault recovery, update/deploy, or live-model end-to-end claim.

Fixes requested by @vincentkoc.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 16, 2026 14:44
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
@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation plugin: knowledge size: S labels Nov 16, 2026
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 16, 2026 14:52
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 16, 2026
@roboclaw-bot
roboclaw-bot merged commit 0b305a2 into main Nov 16, 2026
102 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/nimble-lobster branch November 16, 2026 15:00
@roboclaw-bot

Copy link
Copy Markdown
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. docs Improvements or additions to documentation plugin: knowledge size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant