"""
pipeline — Portable, Pi-agnostic pipeline infrastructure.

Inspired by IndyDevDan's ADW/ZTE architecture, stripped of Pi dependencies.
Each module is a standalone building block usable from cron jobs, CLI scripts,
or delegator subagents.

Modules:
  confidence_ladder — 5-level Verdict ladder (PERFECT/VERIFIED/PARTIAL/FEEDBACK/FAILED)
  rejection_envelope — Structured rejection {received, reason, allowed, hint}
  state_gate        — Pre-merge state completeness validation (ADW-style)
"""

from .confidence_ladder import Verdict, VerdictLevel, VerdictReport
from .rejection_envelope import RejectionEnvelope, Blocker
from .state_gate import PipelineState, StateGate, FieldSpec
from .expertise import (
    load as load_expertise,
    append_entry as append_expertise,
    render_context as render_expertise,
    purge_domain as purge_expertise,
)

__all__ = [
    "Verdict", "VerdictLevel", "VerdictReport",
    "RejectionEnvelope", "Blocker",
    "PipelineState", "StateGate", "FieldSpec",
    "load_expertise", "append_expertise", "render_expertise", "purge_expertise",
]
