openclaw - 💡(How to fix) Fix Feature Request: pageStatus filtering for wiki compile/search/lint [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#80232Fetched 2026-05-11 03:17:15
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
2
Timeline (top)
commented ×1cross-referenced ×1

Error Message

  • Warn when a verified page contains pageStatus: draft in frontmatter (inconsistent)
  • Warn when a wikilink points to a draft or review page

Fix Action

Fix / Workaround

Current Workaround

Code Example

# Compile only verified pages
openclaw wiki compile --page-status verified

# Compile verified + review (exclude draft)
openclaw wiki compile --page-status verified,review

# Default (backward compatible): compile all
openclaw wiki compile

---

# Search only verified pages
openclaw wiki search "DRM driver" --page-status verified

# Agent tool schema extension
wiki_search(query="...", pageStatus="verified")

---

{
  plugins: {
    entries: {
      "memory-wiki": {
        config: {
          compile: {
            defaultPageStatusFilter: "verified",  // null = all (backward compat)
          },
          search: {
            defaultPageStatusFilter: "verified",
          },
        },
      },
    },
  },
}
RAW_BUFFERClick to expand / collapse

Feature Request: pageStatus filtering for wiki compile / wiki search / wiki lint

Use Case

We maintain a wiki knowledge base with a page lifecycle workflow using frontmatter pageStatus:

  • draft — work in progress, not ready for consumption
  • review — under review, pending approval
  • verified — approved and ready for use
  • deprecated / archived — outdated

Currently, openclaw wiki compile compiles all .md files unconditionally, regardless of pageStatus. Draft and review pages get indexed and searched just like verified pages. We need a way to exclude unverified pages from the compiled index and search results.

Current Workaround

We enforce a hard rule: "draft/review pages must not be written to the wiki directory". Instead, they stay in agent workspaces or staging directories until marked verified. This is physical isolation, not a clean status-based filter.

Proposed Changes

1. wiki compile — add --page-status filter

# Compile only verified pages
openclaw wiki compile --page-status verified

# Compile verified + review (exclude draft)
openclaw wiki compile --page-status verified,review

# Default (backward compatible): compile all
openclaw wiki compile

2. wiki search / memory_search corpus=wiki — add pageStatus filter

# Search only verified pages
openclaw wiki search "DRM driver" --page-status verified

# Agent tool schema extension
wiki_search(query="...", pageStatus="verified")

3. wiki lint — add pageStatus consistency checks

  • Warn when a verified page contains pageStatus: draft in frontmatter (inconsistent)
  • Warn when a wikilink points to a draft or review page
  • Report count of draft / review / verified / deprecated pages in lint summary

4. agent-digest.json / claims.jsonl — include pageStatus

The compiled cache currently does not include pageStatus in the page schema. Adding this field would enable downstream filtering without re-parsing frontmatter.

Configuration Proposal

{
  plugins: {
    entries: {
      "memory-wiki": {
        config: {
          compile: {
            defaultPageStatusFilter: "verified",  // null = all (backward compat)
          },
          search: {
            defaultPageStatusFilter: "verified",
          },
        },
      },
    },
  },
}

Backward Compatibility

  • Default behavior must remain unchanged (compile/search all pages)
  • Filtering is opt-in via CLI flag or config
  • No breaking changes to existing agent-digest.json consumers if pageStatus is added as a nullable field

Environment

  • OpenClaw version: 2026.5.4
  • Plugin: memory-wiki (bundled)
  • Vault mode: isolated

Related

  • wiki/rules/wiki内容审核规范.md — internal audit rule requiring "only verified pages in wiki"
  • wiki/concepts/知识管理规约.md §2.4 — page lifecycle management specification

Submitted on behalf of 炼魂宗 (Soul Clan) — an OpenClaw-powered organization managing multi-agent wiki workflows.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Feature Request: pageStatus filtering for wiki compile/search/lint [1 comments, 2 participants]