API reference

repairledger.errors

RepairledgerError

Structured business error with code, message, remediation, and exit_code.

repairledger.models

AppContext

Workspace

ComponentSpec

Repair

repairledger.identity

  • format_repair_id(number: int) -> str

  • parse_repair_number(repair_id: str) -> int

  • repair_global_ref(repair_id, ledger_code) -> str

  • repair_file_ref(repair_id, ledger_code) -> str

  • normalize_repair_selector(value, ledger_code) -> str

repairledger.storage

Full CRUD operations, workspace discovery, version snapshots, component operations, status transitions, doctor, next-action.

repairledger.guardrails

  • validate_observed_contents(contents, metadata) -> list[str]

  • contains_placeholder_only(text) -> bool

  • contains_unredacted_secret(text) -> bool

repairledger.render

  • render_repair_markdown(repair, ...) -> str

  • build_repair(workspace, repair_id, ...) -> dict

  • export_repair(workspace, repair_id, ...) -> dict

repairledger.report

  • select_repairs(workspace, ...) -> list[Repair]

  • render_report_markdown(workspace, repairs, ...) -> str

  • build_report(workspace, ...) -> dict

  • export_report(workspace, ...) -> dict

repairledger.bundle

  • load_bundle(path) -> dict

  • validate_structured_repair_bundle(bundle) -> list[str]

  • apply_structured_repair_bundle(workspace, bundle, ...) -> dict