Repository navigation
Conversation
|
Codex review: needs historical verification review before merge. Reviewed August 18, 2026, 7:37 PM ET / 23:37 UTC. ClawSweeper reviewWhat this changesAdds bounded JSON-driven Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 15 items remain Keep this PR open for a maintainer product decision and revision: current main does not provide the batch feature, but the branch retains four blocking compatibility/correctness defects and conflicts with newer Memory Wiki protections. Priority: P2 Review scores
Verification
How this fits togetherMemory Wiki is a bundled plugin that turns local sources and syntheses into a compiled searchable vault. The CLI and agent tools feed mutations and queries into that vault, whose compiled snapshot is then used for search and prompt-oriented retrieval. flowchart LR
A[Automation manifest] --> B[Memory Wiki CLI]
B --> C[Batch validation]
C --> D[Vault mutations]
D --> E[Compiled vault snapshot]
E --> F[Batch search verification]
E --> G[Existing CLI and agent tools]
Decision needed
Why: The feature adds two durable public automation commands to a bundled plugin; VISION.md permits plugin growth but sets a high bar for optional bundled surfaces, so code review cannot establish long-term product ownership. Before merge
Findings
Agent review detailsSecurityNeeds attention: No dependency or supply-chain concern was added, but the stale conflicted query path must retain current-main session-visibility filtering when rebased. PR surfaceSource +871, Tests +635, Docs +34. Total +1540 across 15 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: If maintainers sponsor the bounded automation contract, rebase onto current main, preserve its query visibility and input guards, keep standalone apply compilation unchanged, and confine deferred compilation to the batch owner. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature request; the supplied redacted terminal transcript does directly demonstrate the proposed batch behavior, while the blocking defects are source-proven against current main. Is this the best way to solve the issue? No. The batching owner is appropriately local to Memory Wiki, but the PR must preserve established standalone behavior and current-main protections before a maintainer decides whether to own the new public commands. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e2643afb2afb. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (15 earlier review cycles; latest 8 shown)
|
|
OpenClaw Memory Wiki batch real-behavior proof Measured results: Median legacy wall: 50689 ms Fresh apply-batch output (trial 1): No-op apply-batch output (same manifest, trial 1): Search-batch output (trial 1): Compatibility search-batch output against the legacy-created vault: |
|
Thanks for the review. The contributor-controlled proof and compatibility items are now addressed.
The PR body has also been updated with the methodology, measured table, compatibility explanation, evidence link, and author product recommendation. Final CI update: the required @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Addressed the current-main reconciliation requested in #113706 at head
The PR body now documents the compatibility contract, focused regressions, redacted live behavior proof, and the final candidate head. Exact-head CI completed 52 jobs successfully and the previously failing formatting check is green. The aggregate gate is red only because the hosted lint runner was terminated during The remaining product question is explicit maintainer sponsorship of the bounded public batch CLI contract. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Current-main contributor handoff for the existing PR (no duplicate PR opened):
The authenticated contributor account here does not have push access to |
24eae27 to
ba334e3
Compare
|
Adopted the current-main support commit from @BsnizND into this existing PR using an exact
The remaining decision is maintainer sponsorship of the two bounded bundled CLI contracts. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer help requested: please rerun the two underlying failed jobs from the exact-head CI run: GitHub reports a third failure, Although both underlying failures appear outside the Memory Wiki change surface, this PR should remain unmerged until all required checks pass or a maintainer explicitly determines otherwise. |
|
Maintainer sponsorship question before another current-main refresh: Does OpenClaw want to support the bundled The current head has a single merge conflict against current Because the remaining gate is product ownership of these public CLI contracts, I will not prepare or push another refresh until maintainer sponsorship is confirmed. |
|
Maintainers, could you please provide an explicit yes/no decision on the remaining product question? Should OpenClaw support
Thank you—the explicit decision will prevent unnecessary branch churn while the product ownership question remains open. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Closes #113706
AI-assisted with OpenAI Codex. I reviewed and understand the implementation and addressed every actionable independent-review and CI finding identified on this branch.
What Problem This Solves
Memory Wiki automation currently pays CLI startup, vault preparation, mutation, compilation, and search setup costs for every individual durable-reference operation. Repeating that work can occupy gateway capacity and make an ingest workflow appear stalled.
Change
This adds bounded
wiki apply-batchandwiki search-batchcommands:apply-batchpreflights the complete manifest, holds one mutation lease, preserves semantic no-ops, and compiles at most once.search-batchprepares one compiled digest/page snapshot and verifies several explicit expected paths or IDs.The public surface is deliberately constrained: versioned JSON input, at most 16 apply operations, at most 6 search queries, 256 KiB manifests, 8 MiB per source, 32 MiB aggregate source data, 1 MiB synthesis bodies, bounded output, exact case-sensitive path checks, and nonnegative evidence weights.
Mutation and cache compatibility
Regular
wiki ingestretains its safety behavior: an unchanged generated source page is not rewritten and its timestamps are preserved, but the vault is still recompiled so out-of-band changes cannot leave derived indexes stale. The focused regression test corruptsindex.md, re-ingests an unchanged source, and verifies that the index is repaired without rewriting the source page.A standalone
wiki applynow treats a true semantic no-op separately: it returnschanged: false, preserves page, audit-log, and compiled-cache publication identity, and skips the full compile. A changed write invalidates the prior compiled snapshot before logging or compilation, so a failed or deliberately deferred compile cannot leave stale derived state readable. Explicitwiki compilerebuilds the snapshot.Inside
apply-batch, per-operation compilation remains disabled. The enclosing batch runs ordered mutations under one outer vault lease and compiles once when an operation changes or initialization repairs missing scaffold state. The first changed source or synthesis write invalidates the prior snapshot; subsequent writes remain safe if a later operation fails. The batch does not compile when both the scaffold and every operation are unchanged.Focused regressions cover no-op page/log/cache identity, changed deferred-apply invalidation plus explicit rebuild, deferred batch-ingest invalidation, CLI/tool no-op output, and manifest ordering with one mutation-queue acquisition and one completed compile.
There is no persistent data-model migration. Manifest version 1 is a transient CLI input contract; stored wiki pages remain the existing Markdown/frontmatter format. A batch search against a vault created entirely through legacy single-operation commands passed all six required queries.
Evidence
The proof used an isolated synthetic vault containing six sources, three syntheses, and six required searches. It ran one discarded warm-up and three measured trials for each method. Legacy used 15 CLI launches and 9 compiles; batch used 2 CLI launches and 1 compile. GNU
timecaptured wall time and peak RSS per process.Median wall time fell from 50,689 ms to 7,169 ms: 7.07x faster. Median per-process peak RSS was 732,184 KiB for legacy and 719,088 KiB for batch; this is a small difference, so the claim is reduced repeated work and launch/compile overhead, not a material memory-footprint reduction.
All trials returned the same source/synthesis page inventory and passed 6/6 required retrieval checks. The repeated identical apply batch returned
changed: falseandcompile: null. Gateway connectivity was healthy before and after the isolated run.Inspect the complete redacted terminal output, including fresh apply-batch JSON, no-op JSON, search-batch JSON, and the legacy-created-vault compatibility output.
The live exercise used OpenClaw 2026.7.1-2 with the candidate batch implementation deployed. The later source changes refine single-apply/cache and missing-scaffold invariants without changing the measured batch command contract; those deltas are covered by focused regression tests and exact-head GitHub CI.
Product-direction recommendation
Author recommendation: support these two bounded, versioned commands as documented bundled Memory Wiki CLI contracts. They are designed for automation that already invokes the CLI, while preserving the existing single-operation path. Explicit maintainer sponsorship is still requested because only maintainers can decide the long-term bundled-plugin surface.
Verification
ba334e3809d6fa1f1bb1dccd2f0a036fe2ed9455.check-docs, build artifacts, extension-boundary checks, and the relevant plugin checks. Two unrelated test jobs failed:check-sqlite-session-flip-prooftimed out during a Gateway opening handshake, while the same job passed on the contemporaneous current-main run;checks-node-compact-large-8stalled twice in the agent-core subagent shard and exited 143 after the no-output watchdog. The aggregateopenclaw/ci-gatetherefore reported failure. Neither failed job exercises the Memory Wiki or documentation surface. The contributor account could not request a rerun.