OpenClaw Memory Wiki: Preserve Human Notes When Re-Importing OKF Bundles
Your personal agent’s knowledge base has two authors: the system that imports and regenerates pages, and you. Those authors should not silently overwrite each other.
OpenClaw v2026.10.7 addresses a concrete version of that problem: re-importing an Open Knowledge Format (OKF) bundle into Memory Wiki now preserves handwritten notes inside the marked human Notes block. The important limitation is just as explicit: handwritten text elsewhere on older pages can still be replaced. That behavior is documented in the official release notes and corroborated by the implementation and regression-test discussion in PR #175707.
For technical users maintaining an agent’s long-term knowledge, this is a useful reason to audit where local corrections live—not a reason to assume every existing annotation is safe.
What changed—and what did not
Memory Wiki is an optional bundled OpenClaw plugin that builds a maintained knowledge layer alongside the active memory plugin. It is not a replacement for the component responsible for ordinary recall and semantic memory search.
Its OKF importer turns an unpacked bundle into concept pages under the wiki’s concepts/ directory. A documentation crawler or data catalog can produce the bundle; a person can add local context after import. The Memory Wiki documentation defines the ownership boundary:
- The marked human Notes block is preserved on re-import.
- Text outside that block is producer-owned and can be replaced.
- Legacy OKF pages without a marked block regenerate with an empty Notes slot.
- A damaged existing block needs its missing marker restored before retrying import.
This is a specific OKF re-import fix. It is not a promise that arbitrary Markdown edits, every import mechanism, or every older OpenClaw installation has the same protection. Nor does it restore notes that were already lost.
Put local knowledge in the actual Notes slot
Consider an imported page describing a billing data source. The upstream bundle explains its schema; your team knows that a particular table is unsuitable for finance reports until reconciliation finishes.
That operational warning belongs in the generated page’s human Notes slot:
## Notes
<!-- openclaw:human:start -->
Local review, 2026-10-27: Do not use the provisional billing
export for finance reports until the reconciliation owner
confirms completion. The upstream schema description does
not establish that the data is approved for reporting.
<!-- openclaw:human:end -->
The exact markers matter. A heading named ## Notes by itself is not equivalent to the marked block. Edit the existing slot rather than appending a second competing block, and keep both marker lines intact.
A useful note records the decision, its scope, its date, and what would make it obsolete. It should not contain access tokens or become a substitute for enforcement: a written instruction to avoid a dataset is not an access-control rule.
Audit old pages before refreshing a bundle
The risky migration is an annotated legacy page with no markers. Running the importer first and moving annotations afterward is the wrong order: the first refresh may already have replaced those annotations.
Use this sequence instead:
- Identify the active vault and affected pages. Confirm which agent and wiki configuration you are working with. Do not assume your shell’s default context points at the intended knowledge base.
- Back up the current vault and preserve the input bundle. Keep the original Markdown, not just a generated summary. Include a way to restore the files if the test fails.
- Review local edits outside marked Notes blocks. Copy important annotations to a separate recovery file before changing anything. A diff against a previously imported version can help distinguish producer text from local edits.
- Rehearse on a disposable vault or staging copy. On an installation containing the fix, import a small sample to inspect the current generated Notes layout. Migrate legacy annotations into the corresponding marked slot before refreshing those pages in production.
- Inspect the diff after re-import. Confirm that intended producer changes arrived and that the human block survived unchanged. Stop if either check fails.
Do not treat a missing-marker error as a reason to delete the page. Restore the marker from a known-good copy and investigate the difference first. The current documentation also says existing-page read failures leave that page unchanged; an import error is not proof that a refresh succeeded.
Run a round-trip test, not just an import test
The upstream change includes regression coverage for importing, adding a handwritten note, and importing again. Adapt that pattern to your own workflow before trusting a scheduled refresh.
The following commands are documented Memory Wiki operations. Run them only in your deliberately configured test context, with the plugin already enabled and ./bundles/sample replaced by an actual unpacked OKF bundle:
openclaw wiki status
openclaw wiki doctor
openclaw wiki okf import ./bundles/sample
Next, open one generated concept page and add a unique sentence inside its human Notes slot. Save a copy of that block. Make a harmless, identifiable change to the source bundle’s producer content, then run:
openclaw wiki okf import ./bundles/sample
openclaw wiki compile
openclaw wiki lint
Evaluate three separate outcomes:
| Check | Passing evidence |
|---|---|
| Producer refresh | The expected source change appears in the imported page. |
| Human preservation | The marked Notes block is identical to the saved copy. |
| Retrieval refresh | After compilation, wiki search/get can retrieve the updated page and its local note. |
A successful command exit alone does not establish all three. Inspect the file and retrieve the page. The documentation explains that source edits become machine-facing after compilation; preserving bytes and making them available to the agent are different checks.
This is a suggested acceptance test based on the documented behavior, not a claim that it has been run against your deployment.
Give every refresh an ownership rule
The broader lesson applies to any personal-agent knowledge pipeline: separate imported facts from human interpretation, and test both across regeneration.
For OKF-backed Memory Wiki pages, keep upstream descriptions in producer-owned content and local exceptions in the marked Notes slot. Review dated exceptions periodically. After a refresh, verify both the updated source and the preserved annotation rather than asking the agent whether it “remembers.”
The v2026.10.7 fix makes that boundary more reliable. Your part is to migrate older annotations before re-importing, preserve a recovery copy, and prove the round trip on a small sample first.
Sources
- OpenClaw v2026.10.7 release notes — Memory
- Memory Wiki documentation — OKF imports, compilation, and retrieval
- PR #175707 — preserve human notes on OKF concept re-import
Sources checked October 27, 2026. This article covers upstream OpenClaw behavior; it does not announce a Clawly-specific feature rollout.
Protect your AI agent with Clawly
Deploy your OpenClaw agent in an isolated, hardened container with encrypted credentials and managed updates. No DevOps required.
Deploy Your Agent