Skip to content

API Reference parrot.knowledge.lint.packs.okf

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.knowledge.lint.packs.okf

View source

OKF rule pack: the four classic knowledge-base checks (FEAT-625).

Alias Finding

Re-exported from parrot.knowledge.lint.models.Finding.

Attribute KIND_TO_RULE

Type: dict[str, str]

Alias Severity

Re-exported from parrot.knowledge.lint.models.Severity.

Attribute logger

Alias make_fingerprint

Re-exported from parrot.knowledge.lint.rule.make_fingerprint.

Function okf_findings

Run the four OKF checks and return engine Findings (pure, no I/O writes).

Each Finding carries data={"kind": <okf kind>, "concept_id": <id>} so :func:lint_knowledge_base can rebuild its legacy report exactly.

okf_findings(graph: Any, tree: dict, content_store: Any, stale_days: int = 90) -> list[Finding]

Parameter Type Default Description
graph Any Pre-built KnowledgeGraph.
tree dict PageIndex tree dict.
content_store Any NodeContentStore used for missing-page checks.
stale_days int 90 Age in days after which a node is stale.

Returns: list[Finding] — Findings ordered orphan, broken_link, missing_concept, stale.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally