luplo.core.import_pipeline.manifest¶
Pydantic models for the ImportManifest contract.
The manifest is what begin emits to the calling agent. Schema changes are contract-breaking — all surfaces (CLI, MCP, slash command, future Codex/Gemini wrappers) consume this shape. Snapshot tests in tests/snapshots/import/ guard against accidental drift.
Classes¶
One source markdown file (spec or plan) bundled into the manifest. |
|
Source bundle: spec and/or plan. At least one must be present. |
|
Agent-facing protocol rules and verification metadata. |
|
Contract emitted by begin — read by the agent, agent-agnostic. |
Module Contents¶
- class luplo.core.import_pipeline.manifest.SourceFile¶
Bases:
pydantic.BaseModelOne source markdown file (spec or plan) bundled into the manifest.
- model_config¶
- class luplo.core.import_pipeline.manifest.ManifestSources¶
Bases:
pydantic.BaseModelSource bundle: spec and/or plan. At least one must be present.
- spec: SourceFile | None = None¶
- plan: SourceFile | None = None¶
- class luplo.core.import_pipeline.manifest.ProtocolBlock¶
Bases:
pydantic.BaseModelAgent-facing protocol rules and verification metadata.
- class luplo.core.import_pipeline.manifest.ImportManifest¶
Bases:
pydantic.BaseModelContract emitted by begin — read by the agent, agent-agnostic.
- sources: ManifestSources¶
- protocol: ProtocolBlock¶
- at_least_one_source() ImportManifest¶
Ensure the manifest carries at least one of spec or plan.