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) -> strparse_repair_number(repair_id: str) -> intrepair_global_ref(repair_id, ledger_code) -> strrepair_file_ref(repair_id, ledger_code) -> strnormalize_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) -> boolcontains_unredacted_secret(text) -> bool
repairledger.render
render_repair_markdown(repair, ...) -> strbuild_repair(workspace, repair_id, ...) -> dictexport_repair(workspace, repair_id, ...) -> dict
repairledger.report
select_repairs(workspace, ...) -> list[Repair]render_report_markdown(workspace, repairs, ...) -> strbuild_report(workspace, ...) -> dictexport_report(workspace, ...) -> dict
repairledger.bundle
load_bundle(path) -> dictvalidate_structured_repair_bundle(bundle) -> list[str]apply_structured_repair_bundle(workspace, bundle, ...) -> dict