Skip to content

Add Wiki knowledge retrieval - #13

Merged
dkstm95 merged 1 commit into
mainfrom
codex/wiki-knowledge-retrieval
Jul 27, 2026
Merged

Add Wiki knowledge retrieval#13
dkstm95 merged 1 commit into
mainfrom
codex/wiki-knowledge-retrieval

Conversation

@dkstm95

@dkstm95 dkstm95 commented Jul 27, 2026

Copy link
Copy Markdown
Owner

What changed

  • Add deterministic retrieval for active Wiki knowledge pages.
  • Rank matches by title, slug, summary, headings, body text, page kind, and path.
  • Normalize common English question words and a narrow set of Korean suffixes.
  • Bind selected pages and their declared raw sources into provider-neutral answer tasks.
  • Keep factual knowledge context separate from behavioral memory guidance.
  • Add CLI, agent-runtime, and local-tool entry points.
  • Document the retrieval contract, limitations, and evidence rules.

Why

The previous query path selected pages with a broad token match and filesystem-order truncation. It
did not expose a validated retrieval artifact or consistently bind the raw sources behind a selected
page. This made relevance hard to inspect and allowed different entry points to carry different
evidence.

This change gives every query path the same deterministic selection and evidence boundary. Compiled
Wiki pages guide navigation and synthesis. Only their bound raw sources support factual accepted
claims.

Impact

wiki answer task can now retrieve useful Wiki context without requiring --sources. Callers may
still supply --sources to add trusted evidence. Prepared contexts and answer tasks become stale
when selected pages, ranking inputs, or evidence change.

The implementation remains model-provider neutral and works with the existing subscription runner.

Validation

  • pnpm check
  • 261 tests passed
  • line coverage: 95.89%
  • branch coverage: 90.51%
  • build, distribution smoke test, and documentation checks passed

Retrieve reviewed Wiki pages deterministically and bind their raw sources as factual evidence in provider-neutral answer tasks. Keep knowledge navigation separate from behavioral memory and reject stale or forged task context.\n\nValidation: pnpm check
@dkstm95
dkstm95 marked this pull request as ready for review July 27, 2026 11:22
@dkstm95
dkstm95 merged commit 21d693e into main Jul 27, 2026
1 check passed
@dkstm95
dkstm95 deleted the codex/wiki-knowledge-retrieval branch July 27, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant