vouch icon indicating copy to clipboard operation
vouch copied to clipboard

fix(list): kb.list_pages / vouch pages include archived pages

Open kurosawareiji7007-hub opened this issue 4 months ago • 1 comments

## What happened

kb.list_pages (MCP), kb.list_pages (JSONL), and vouch pages all pass store.list_pages() through filter_pages with no PageStatus.ARCHIVED filter. Archived pages remain in the agent-facing live listing. MCP/CLI payloads also omit status, so an archived page is indistinguishable from a live one.

This is the same live-set leak class as wiki/neighbors/compile/session-split (#695–#713), on the listing surface those fixes did not cover.

Expected

Listing surfaces exclude archived pages by default (live set only), matching digest/search/wiki/neighbors.

Repro

from vouch.models import Page, PageStatus
from vouch.page_filters import filter_pages
store.put_page(Page(id="dead", title="Dead", body="x", status=PageStatus.ARCHIVED))
store.put_page(Page(id="live", title="Live", body="y", status=PageStatus.ACTIVE))
ids = [p.id for p in filter_pages(store.list_pages())]
# today: includes "dead"

kurosawareiji7007-hub avatar Jul 31 '26 17:07 kurosawareiji7007-hub

Closing with #730 (closed to stay under open-PR cap). Fix still on branch fix/list-pages-exclude-archived — will reopen PR after a slot frees.

kurosawareiji7007-hub avatar Jul 31 '26 20:07 kurosawareiji7007-hub