Skip to content

API Reference parrot.knowledge.lint.packs.export

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

parrot.knowledge.lint.packs.export

View source

Export rule pack — lint the exported markdown/OKF wiki (FEAT-625).

Attribute EXPORT_RULES

Class ExportDanglingRelatesToRule

Flag relates_to entries whose target is not a plane page.

Method ExportDanglingRelatesToRule.check

check(ctx: LintContext) -> list[Finding]

Parameter Type Default Description
ctx LintContext

Returns: list[Finding]

Method ExportDanglingRelatesToRule.fix

This rule never fixes.

fix(ctx: LintContext, finding: Finding) -> FixResult | None

Parameter Type Default Description
ctx LintContext
finding Finding

Returns: FixResult | None

Class ExportDriftRule

Detect export files that drifted from the plane (missing, extra, or stale timestamp).

Method ExportDriftRule.check

check(ctx: LintContext) -> list[Finding]

Parameter Type Default Description
ctx LintContext

Returns: list[Finding]

Method ExportDriftRule.fix

Re-export the bundle through the real exporter (once per run).

fix(ctx: LintContext, finding: Finding) -> FixResult

Parameter Type Default Description
ctx LintContext
finding Finding

Returns: FixResult

Class ExportFrontmatter

Schema of the frontmatter written by wiki.export.page_frontmatter.

Fields:

Field Type Default Description
type str
title str
id str
tags list[str]
timestamp str
summary str | None None
relates_to list[dict[str, str]] | None None

Alias Finding

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

Alias FixResult

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

Class FrontmatterSchemaRule

Validate each exported page's frontmatter against :class:ExportFrontmatter.

Method FrontmatterSchemaRule.check

check(ctx: LintContext) -> list[Finding]

Parameter Type Default Description
ctx LintContext

Returns: list[Finding]

Method FrontmatterSchemaRule.fix

This rule never fixes.

fix(ctx: LintContext, finding: Finding) -> FixResult | None

Parameter Type Default Description
ctx LintContext
finding Finding

Returns: FixResult | None

Alias LintContext

Re-exported from parrot.knowledge.lint.context.LintContext.

Alias Severity

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

Alias export_okf_bundle

Re-exported from parrot.knowledge.wiki.export.export_okf_bundle.

Attribute logger

Alias make_fingerprint

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

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