Skip to content

PageLedger 0.2.0 — Close the route gap

Choose a tag to compare

@peterbussch peterbussch released this 17 Jul 17:02
· 385 commits to main since this release

PageLedger can now produce the route maps it already knew how to execute.

Added

  • Structural page classification: pageledger classify probes inputs or
    reuses retained evidence from a complete run and emits a route map that can
    execute unchanged through pageledger run --routes. The dependency-free
    classifier distinguishes blank, sparse, prose, table_likely, and
    unknown, records every signal and decision in an evidence sidecar, and
    supports importable classifier hooks for domain taxonomies.
  • Generation-indexed adapter escalation: run.adapter_order selects one
    adapter and option set per original/rerun generation. Manifests record the
    planned chain and current step; exhausted chains leave pending pages in the
    human review queue.
  • Budget alerts and grouped cost evidence: capless warn_pages,
    warn_tokens, and warn_usd thresholds record one first-crossing alert per
    unit. cost.json can now group extracted-page usage and resolved cost by
    adapter and routed page type.

Compatibility

  • The package version is 0.2.0, while every artifact and config contract keeps
    schema_version: "0.1". Manifest escalation fields and cost alerts/rollups
    are additive and optional; existing 0.1 artifacts remain valid.
  • Core still depends only on PyYAML. The classifier adds no bundled model,
    computer-vision runtime, provider SDK, pricing catalog, or domain taxonomy.

Install

pip install -U pageledger

See the classifier guide for the classify-review-run workflow.