Skip to content

fix(memory-wiki): honor deadline and skip supplement exhaustive fallback - #105098

Closed
ZOOWH wants to merge 5 commits into
openclaw:mainfrom
ZOOWH:fix/issue-104719-wiki-deadline
Closed

ZOOWH wants to merge 5 commits into
openclaw:mainfrom
ZOOWH:fix/issue-104719-wiki-deadline

Conversation

@ZOOWH

@ZOOWH ZOOWH commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

memory_search with corpus="wiki" or corpus="all" can miss the 15s tool deadline when digest-selected candidates underfill maxResults. The wiki supplement then falls through to a full-vault Markdown scan (25–27s on large vaults), so recall times out and host work may continue after the tool already failed. Fixes #104719.

Root Cause / Fix

  • Root cause: searchWikiCorpus() treated missing or underfilled digest hits as a signal to enumerate/parse the entire vault, and the memory tool deadline signal never reached the supplement path.
  • Fix:
    1. Propagate deadlineSignal through MemoryCorpusSupplement.search → wiki supplement → searchMemoryWiki / searchWikiCorpus.
    2. Supplement path sets exhaustiveFallback: false so digest underfill does not trigger full-vault scanning. Direct wiki_search keeps exhaustive fallback.
    3. Shared page reads use bounded (16) abort-before-claim workers (not sequential): deadlines stop claiming new paths while direct exhaustive search keeps parallel throughput. In-flight reads settle.

Evidence

Production function proof (node --import tsx)

Multi-page vault exercise of the real searchMemoryWiki / readQueryableWikiPages path (see Real behavior proof for captured output). Covers:

  • default exhaustive hit still works
  • exhaustiveFallback: false skips vault scan without digest
  • pre-aborted signal returns []
  • mid-batch abort stops claiming further page reads (abort_stopped_early)

Regression tests

  • "skips full-vault fallback when exhaustiveFallback is false (#104719)"
  • "returns early when the deadline signal is already aborted (#104719)"
  • "reads wiki pages with bounded concurrency and stops claiming after abort (#104719)" — asserts peak concurrency in (1, 16] and fewer reads than file count after abort
  • "forwards deadline signal and disables exhaustive fallback for supplement search (#104719)"

Test runner

node scripts/run-vitest.mjs extensions/memory-wiki/src/corpus-supplement.test.ts
node scripts/run-vitest.mjs extensions/memory-wiki/src/query.test.ts -t "104719|exhaustiveFallback|already aborted|bounded concurrency|finds wiki pages by title"

Real behavior proof

Behavior addressed: memory-wiki supplement skips full-vault fallback after digest underfill, honors the memory_search deadline AbortSignal, and shared wiki page reads use bounded abort-aware concurrency instead of serial I/O.
Environment tested: Windows Node 22+, local checkout of fix/issue-104719-wiki-deadline, node --import tsx, vitest via node scripts/run-vitest.mjs.
Steps run after the patch: Created a temporary 40-page wiki vault; ran production searchMemoryWiki / readQueryableWikiPages with default search, exhaustiveFallback: false, pre-abort, and mid-batch abort; ran targeted vitest regressions including the bounded-concurrency abort test.
Evidence after fix:

{
  "direct_hit_path": "sources/page-01.md",
  "direct_hits": 10,
  "direct_ms": 210,
  "file_count": 40,
  "abort_pages": 23,
  "abort_stopped_early": true,
  "supplement_no_digest": [],
  "preabort": [],
  "ok": true
}

Observed result: Default search still finds wiki pages; supplement-without-digest returns no vault scan; pre-abort returns empty; mid-batch abort stops claiming new paths (abort_stopped_early: true) while peak concurrency stays bounded (≤16). Targeted vitest regressions pass.
Not tested: Live gateway memory_search against a real ~77MB / 1200+ page compiled-wiki vault end-to-end (no such vault in this environment); Discord/Telegram delivery.

Change Type / Scope / Security Impact

  • Type: bug fix
  • Scope: memory-wiki supplement + memory-core deadline plumbing + abort-aware bounded page reader (S)
  • Security: none (no auth/credential changes); reduces unbounded host I/O after tool timeout without serializing exhaustive search

Propagate memory_search deadline signals into wiki corpus supplements and
disable full-vault fallback on that path so digest underfill cannot exceed
the 15s tool budget. Keep exhaustive fallback for direct wiki_search.
@openclaw-barnacle openclaw-barnacle Bot added extensions: memory-core Extension: memory-core extensions: memory-wiki size: S triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jul 12, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. 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: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Jul 12, 2026
@clawsweeper

clawsweeper Bot commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 1, 2026, 1:54 AM ET / 05:54 UTC.

ClawSweeper review

What this changes

The branch forwards the memory-search deadline into the wiki corpus supplement, disables its exhaustive fallback, and changes wiki page reads to bounded abort-aware workers.

Merge readiness

⚠️ Needs maintainer review before merge - 8 items remain

This PR addresses a real timeout path and has useful real-behavior proof, but its branch is now conflict-stale and cannot safely merge as-is. Current main added sandboxed wiki-page visibility filtering on the same query path, and the hard deadline resolves before abort so this branch cannot return partial recall after that deadline without an explicitly approved earlier cutoff.

Priority: P1
Reviewed head: 9b8f5718b440962eb8d7488fcbb5f046fa7d315b
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The original timeout proof is strong, but the stale implementation needs a safety-preserving rebase and an owner-approved recall policy before it is merge-ready.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The PR body provides after-fix production-path output and targeted regressions for its original branch, but the required rebase must add current-head proof for visibility preservation and partial-result behavior with private details redacted.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body provides after-fix production-path output and targeted regressions for its original branch, but the required rebase must add current-head proof for visibility preservation and partial-result behavior with private details redacted.
Evidence reviewed 6 items Current visibility invariant: Current main applies a centralized filter to all wiki search candidates, denying sandboxed callers access to bridge pages owned by other agents or with missing ownership metadata. The stale branch predates this owner boundary and changes the same search path.
Current search caller: Current main creates the visibility filter in searchMemoryWiki and passes it into searchWikiCorpus before candidate and fallback pages are converted into results.
Hard-deadline contract: The deadline helper resolves the timeout outcome before aborting its signal, deliberately preserving the stable timeout error. A supplement that only observes that hard signal cannot make its partial result win the race.
Findings 2 actionable findings [P1] Preserve sandboxed bridge-page filtering on rebase
[P1] Return partial recall before the hard deadline
Security Needs attention Current visibility gate is absent from the stale query design: The branch predates the merged bridge-page isolation change and modifies the same wiki search owner boundary; an incomplete rebase could reintroduce cross-agent bridge-memory reads for sandboxed callers.

How this fits together

Memory Search combines built-in memory/session results with optional results from the compiled wiki vault. The wiki supplement reads digest-selected or exhaustive vault pages and sends those results back to the agent tool before its fixed deadline.

flowchart LR
  A[Agent memory search] --> B[Memory core deadline]
  B --> C[Wiki corpus supplement]
  C --> D[Digest-selected wiki pages]
  D --> E{More results needed?}
  E -->|Direct wiki search| F[Exhaustive vault reader]
  E -->|Memory supplement| G[Bounded recall result]
  F --> H[Memory-search response]
  G --> H
Loading

Decision needed

Question Recommendation
Should memory-search retain exhaustive wiki backfill while time remains and return safe partial results at an earlier soft cutoff, or should underfilled supplements permanently use digest-only recall? Preserve on-budget exhaustive recall: Introduce an explicitly approved soft cutoff before the hard deadline so cooperative wiki reads stop and return filtered partial results, but retain exhaustive backfill when budget remains.

Why: The branch’s digest-only behavior is a user-visible recall/completeness policy change, while the current hard-deadline contract prevents partial results from winning without a separately chosen earlier cutoff.

Before merge

  • Preserve sandboxed bridge-page filtering on rebase (P1) - Current main passes createWikiPageVisibilityFilter into searchWikiCorpus, while this stale branch changes that helper before the filter existed. Rebase the deadline work onto the current query boundary and retain the filter for digest and fallback reads, or sandboxed callers can again receive another agent’s bridge pages.
  • Return partial recall before the hard deadline (P1) - The memory deadline resolves its timeout before aborting the signal, so passing only that signal to the supplement cannot make already-read wiki results win after 15 seconds. Use an explicitly approved earlier cutoff and verify filtered partial results separately from direct exhaustive search.
  • Resolve security concern: Current visibility gate is absent from the stale query design - The branch predates the merged bridge-page isolation change and modifies the same wiki search owner boundary; an incomplete rebase could reintroduce cross-agent bridge-memory reads for sandboxed callers.
  • Resolve merge risk (P1) - Merging the stale query implementation without preserving current main’s centralized visibility filter could reopen sandboxed cross-agent bridge-memory disclosure.
  • Resolve merge risk (P1) - The branch changes underfilled supplement searches from exhaustive recall to digest-only results even when time remains; users with incomplete digests can silently receive fewer wiki results.
  • Resolve merge risk (P2) - The current hard deadline returns its timeout before aborting work, so signal propagation alone cannot surface completed partial wiki results after the deadline.
  • Complete next step (P2) - A maintainer must choose the recall policy before a contributor can safely rebase and complete the implementation.

Findings

  • [P1] Preserve sandboxed bridge-page filtering on rebase — extensions/memory-wiki/src/query.ts:1439-1447
  • [P1] Return partial recall before the hard deadline — extensions/memory-core/src/tools.ts:819-828
  • [high] Current visibility gate is absent from the stale query design — extensions/memory-wiki/src/query.ts:1439
Agent review details

Security

Needs attention: The stale branch must retain current sandboxed wiki-page visibility checks before it can safely merge.

PR surface

Source +76, Tests +144. Total +220 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 5 88 12 +76
Tests 3 145 1 +144
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 233 13 +220

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: extensions/memory-wiki/src/query.test.ts, unknown-data-model-change: extensions/memory-wiki/src/query.test.ts, unknown-data-model-change: extensions/memory-wiki/src/query.ts, vector/embedding metadata: extensions/memory-core/src/tools.citations.test.ts, vector/embedding metadata: extensions/memory-core/src/tools.shared.ts, vector/embedding metadata: extensions/memory-core/src/tools.ts, and 5 more. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #104719
Summary: This PR is a candidate repair for the wiki-supplement deadline bug; the combined-corpus latency report and FTS proposal cover distinct remaining concerns.

Members:

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

Merge-risk options

Maintainer options:

  1. Rebase with partial-result semantics (recommended)
    Preserve current visibility checks and add an approved earlier cutoff whose abort-aware reader returns filtered partial results before the hard timeout.
  2. Accept digest-only supplement recall
    Merge only if maintainers intentionally accept fewer wiki results whenever the digest underfills the requested result count.
  3. Pause the stale implementation
    Pause or close this branch if the owner prefers a narrower fresh implementation of the selected deadline policy.

Technical review

Best possible solution:

Rebase onto current main, retain the centralized wiki visibility filter across digest and fallback reads, and implement an owner-approved soft cutoff that returns filtered partial results before the fixed hard timeout while separately preserving direct exhaustive wiki search.

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

Yes for the reported timeout: the linked report, the original branch proof, and current source establish that an underfilled digest can reach exhaustive wiki reads beneath the fixed memory-search deadline. The post-rebase partial-result behavior still needs a focused current-head regression.

Is this the best way to solve the issue?

No: this is a plausible mitigation, but not the best verified repair because it unconditionally removes supplement fallback recall and omits current visibility behavior. A rebase with the owner-approved cutoff policy is safer and preserves the canonical query boundary.

Full review comments:

  • [P1] Preserve sandboxed bridge-page filtering on rebase — extensions/memory-wiki/src/query.ts:1439-1447
    Current main passes createWikiPageVisibilityFilter into searchWikiCorpus, while this stale branch changes that helper before the filter existed. Rebase the deadline work onto the current query boundary and retain the filter for digest and fallback reads, or sandboxed callers can again receive another agent’s bridge pages.
    Confidence: 0.98
  • [P1] Return partial recall before the hard deadline — extensions/memory-core/src/tools.ts:819-828
    The memory deadline resolves its timeout before aborting the signal, so passing only that signal to the supplement cannot make already-read wiki results win after 15 seconds. Use an explicitly approved earlier cutoff and verify filtered partial results separately from direct exhaustive search.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P1: The affected memory-search workflow can time out and leave agents without requested durable recall.
  • merge-risk: 🚨 compatibility: The branch replaces existing exhaustive supplement backfill with digest-only results when candidates underfill.
  • merge-risk: 🚨 security-boundary: The branch predates and changes the same query flow as the current sandboxed bridge-page visibility gate.
  • merge-risk: 🚨 availability: The patch changes cancellation behavior in a tool path whose fixed deadline currently produces user-visible timeout failures.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (terminal): The PR body provides after-fix production-path output and targeted regressions for its original branch, but the required rebase must add current-head proof for visibility preservation and partial-result behavior with private details redacted.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides after-fix production-path output and targeted regressions for its original branch, but the required rebase must add current-head proof for visibility preservation and partial-result behavior with private details redacted.

Evidence

Security concerns:

  • [high] Current visibility gate is absent from the stale query design — extensions/memory-wiki/src/query.ts:1439
    The branch predates the merged bridge-page isolation change and modifies the same wiki search owner boundary; an incomplete rebase could reintroduce cross-agent bridge-memory reads for sandboxed callers.
    Confidence: 0.98

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs extensions/memory-wiki/src/query.test.ts -t "104719|sandboxed|bridge|exhaustive".
  • [P1] node scripts/run-vitest.mjs extensions/memory-wiki/src/corpus-supplement.visibility.test.ts.
  • [P1] node scripts/run-vitest.mjs extensions/memory-wiki/src/corpus-supplement.test.ts.
  • [P1] node scripts/run-vitest.mjs extensions/memory-core/src/tools.citations.test.ts -t "deadline|supplement".

What I checked:

Likely related people:

  • yetval: Authored the merged bridge-page isolation repair whose visibility filter now owns the affected wiki query boundary. (role: introduced current access-control behavior; confidence: high; commits: cdab1764841a; files: extensions/memory-wiki/src/query.ts, extensions/memory-wiki/src/corpus-supplement.visibility.test.ts)
  • steipete: The latest review comment identifies the required preservation of visibility, safe partial results, and an owner-approved earlier cutoff. (role: recent reviewer of deadline and recall semantics; confidence: high; files: extensions/memory-wiki/src/query.ts, extensions/memory-core/src/memory/search-deadline.ts)
  • Vincent Koc: History sampling shows the largest visible contribution count in the current wiki-query file, making this a useful routing candidate for query behavior. (role: frequent current-area contributor; confidence: medium; files: extensions/memory-wiki/src/query.ts)

Rank-up moves

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

  • Rebase onto current main while preserving the centralized wiki visibility filter.
  • Add current-head regressions for filtered partial results before timeout and for direct exhaustive search.

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 (7 earlier review cycles)
  • reviewed 2026-07-12T07:31:49.292Z sha 201e299c669ce1740c604df25002777b874a4921 :: needs real behavior proof before merge. :: [P1] Preserve bounded concurrency for exhaustive wiki reads
  • reviewed 2026-07-12T07:43:00.071Z sha 201e299c669ce1740c604df25002777b874a4921 :: needs real behavior proof before merge. :: [P1] Preserve bounded concurrency for exhaustive wiki reads
  • reviewed 2026-07-12T09:12:04.365Z sha e27c828 :: needs changes before merge. :: [P2] Fix the new abort test's lint errors
  • reviewed 2026-07-12T09:58:24.209Z sha 53fe830 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-12T10:12:08.357Z sha 53fe830 :: needs changes before merge. :: [P2] Narrow PathLike before reading pathname
  • reviewed 2026-07-12T10:55:21.894Z sha 9b8f571 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-29T18:30:00.011Z sha 9b8f571 :: needs maintainer review before merge. :: none

@ZOOWH

ZOOWH commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed P1: replaced sequential shared wiki page reads with bounded (16) abort-before-claim workers so direct exhaustive search keeps throughput while deadlines stop claiming new paths. Added regression test for peak concurrency + early stop after abort. Strengthened proof with multi-page vault timing + mid-abort early-stop evidence.

@clawsweeper

clawsweeper Bot commented Jul 12, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@ZOOWH
ZOOWH force-pushed the fix/issue-104719-wiki-deadline branch from 4d07981 to e27c828 Compare July 12, 2026 09:03
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 12, 2026
@ZOOWH

ZOOWH commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed the remaining lint findings in extensions/memory-wiki/src/query.test.ts:

  • Narrowed the mocked PathLike explicitly instead of coercing it through the base object stringifier.
  • Changed both timer-backed Promise executors to block bodies so they do not return timer handles.

Validation:

  • node_modules/.bin/oxlint.cmd extensions/memory-wiki/src/query.test.ts
  • git diff --check e27c828a16a90927c7de5383846f1caba6616757 3ad708650df4d8ac6d1f6a153c69f83571be71ec

Commit: 3ad7086

@ZOOWH

ZOOWH commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed the exact-head check-test-types finding in extensions/memory-wiki/src/query.test.ts.

  • String, URL, and Buffer paths are narrowed explicitly.
  • FileHandle inputs now delegate directly to the original readFile instead of accessing .pathname.

Validation: git diff --check 53fe830e56e8847504fca2e90a66aede82656e32 9b8f5718b440962eb8d7488fcbb5f046fa7d315b.

Commit: 9b8f571

@clawsweeper

clawsweeper Bot commented Jul 12, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 12, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Jul 28, 2026
@Nickfost

Copy link
Copy Markdown

Fresh reproduction on OpenClaw 2026.7.1 after a successful forced full reindex: 2,714/2,714 files indexed, dirty=false, embedding probe healthy, and the 1,536-dimensional vector store fully available. corpus=memory maxResults=3 completed in 3.372s; corpus=sessions in 0.841s; corpus=wiki succeeded. corpus=all timed out at the tool’s exact 15-second deadline with both maxResults=3 and maxResults=10. The equivalent CLI search with maxResults=10 completed successfully in 47.03s. This rules out a stale index or embedding failure and confirms the failure is the bounded tool path for combined-corpus supplement work.

@steipete

steipete commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Two current-main invariants need attention before rebase:

  • extensions/memory-wiki/src/query.ts now enforces createWikiPageVisibilityFilter / canReadPage. That access-control work landed after this branch fork; preserve it when rebasing rather than treating its absence as something the contributor removed.
  • The hard tool deadline is reached before abort; passing the signal into pMap rejects the whole result and discards completed pages. A recall-preserving alternative needs an explicitly owner-approved earlier soft cutoff plus mapper-level AbortError handling that returns safe partial results while retaining the existing safe walker.

Please cover visibility preservation, partial-result behavior, and direct exhaustive search separately.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 1, 2026

ZYV5ge commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

A residual boundary worth covering in this PR or a narrow follow-up: thread the same AbortSignal through vault activation and source-generation validation (loadMemoryWikiValidatedVaultIdentity / source file hashing), not only the query reader. A canceled tool should not continue hashing a large vault, and abort must not be converted into ordinary fallback work.

Downstream tests also distinguish validation cancellation from genuine validation failure: cancellation rethrows immediately; non-abort failure preserves the current fallback/error contract. The duplicate downstream tracker #118903 has been closed in favor of #104719 / this PR.

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Aug 18, 2026
@openclaw-barnacle

Copy link
Copy Markdown

Closing due to inactivity.
If you believe this PR should be revived, post in #clawtributors on Discord to talk to a maintainer.
That channel is the escape hatch for high-quality PRs that get auto-closed.

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

Labels

extensions: memory-core Extension: memory-core extensions: memory-wiki merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. 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. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M stale Marked as stale due to inactivity status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: memory-wiki supplement exhaustive fallback ignores tool deadline

4 participants