Skip to content

spec(search): wiki_doc is missing from the search type filter enum #181

Closed

Description

@liplus-lin-lay

目的

wiki_doc を search ツールの type フィルタで指定できるようにする。

経緯(本 issue の元の範囲)

起票時の主症状「Liplus-Project/liplus-language の wiki が索引に一件も入っていない」は #184 / #185 / #188 で解消済み。2026-08-01 に本番 MCP で再確認した結果は本 issue のコメントに記録した。残っているのは起票時に「副次的な所見」として挙げた type enum の項目のみ。

問題

wiki_doc は検索結果として返る type でありながら、search ツールの type パラメータの enum に含まれていない(issue / pull_request / release / doc / diff / issue_comment / pr_review / pr_review_comment / all)。type: "wiki_doc" を渡すと validation error になる。

このため wiki ページだけに絞った検索・走査ができない。本 issue の調査で索引の有無を確認する直接的な手段が無く、間接的な 6 試行を要したのはこれが理由。索引状態の観測手段が無いこと自体が、同種の欠損の検出を遅らせる。

制約

  • 既存の type 値の挙動を変えない
  • type=all の結果集合を変えない(wiki_doc は元々 all に含まれている)

完了条件

  • type: "wiki_doc" が validation を通り、wiki ページのみに絞り込める
  • type を指定しない場合・all の場合の結果が従来どおり
  • テストで固定されている
  • ツールの説明・docs の type 一覧に wiki_doc が載っている

想定変更箇所

  • src/mcp.ts — type enum と絞り込みのクエリ経路
  • 対応するテスト
  • docs/ の該当箇所

Activity

  1. added
    bug動いていない、壊れている
    ready本文が実装開始できる形まで収束している状態。ただし更新は継続可能
    in-progress着手中、実装または検証が進行中
    on Jul 29, 2026
  2. changed the title [-]bug(wiki-sync): liplus-language wiki is absent from the index, making Decision Structure unsearchable[/-] [+]spec(search): wiki_doc is missing from the search type filter enum[/+] on Aug 1, 2026
  3. liplus-lin-lay commented on Aug 1, 2026

    @liplus-lin-lay
    MemberAuthor

    主症状の解消を本番で確認(2026-08-01)

    起票時の主症状「liplus-language の wiki が索引に一件も入っていない」は解消していた。本番 MCP での実測:

    • sheepdog-engineering-concept を sparse_only / repo=Liplus-Project/liplus-language で検索 → type: "wiki_doc" の行が 3 件返る(sheepdog-engineering-concept / sheepdog-engineering-publish-intent / liplus-structure-as-retrieval-surface、いずれも updated_at: 2026-07-31)。起票時は 6 経路すべてで 0 件だった。

    完了条件との対応:

    残りはこの 1 項目のみのため、本文を該当範囲へ書き直した。

  4. added
    review-pending実装フェーズ完了。orchestration (brake eval / review / merge / close) 待ち
    and removed
    in-progress着手中、実装または検証が進行中
    on Aug 1, 2026
  5. liplus-lin-lay commented on Aug 1, 2026

    @liplus-lin-lay
    MemberAuthor

    実機で検証(2026-08-01、v0.9.8 publish 後)

    MCP クライアントを再接続し、新しい proxy スキーマ(npm github-rag-mcp@0.9.8)で実測した。

    • type: "wiki_doc" / repo=Liplus-Project/liplus-language / sort=updated_desc → validation を通過し、5 件すべて type: "wiki_doc"。wiki_path / wiki_extension も付いている。再接続前は validation error で worker に届いてもいなかった
    • type を指定しない同条件 → issue / issue_comment / wiki_doc が混在して返る。絞り込みが常時 wiki を返しているわけではなく、type 未指定の結果も従来どおり

    完了条件 4 項目すべて満たしたことを実機で確認した。

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

Metadata

Metadata

Labels

bug動いていない、壊れているready本文が実装開始できる形まで収束している状態。ただし更新は継続可能review-pending実装フェーズ完了。orchestration (brake eval / review / merge / close) 待ち

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions