API reference
One page per module, each rendering that module's public (importable) surface:
The pipeline
osrforge— osr-forge: convert tabletop adventure module PDFs into playable osrlib adventures (5 symbols)osrforge.assemble— Stage 6: assembly — overrides application, theAdventurebuild, validation, report production, artifact writing (11 symbols)osrforge.check— The playability lint and smoke delve:findings = check(workdir)(3 symbols)osrforge.cli— Theosrforgeconsole script:convert,rerun,assemble,check,report,preview, andestimate(3 symbols)osrforge.content— Stage 2: the content pass — per-level batched extraction of keyed areas (7 symbols)osrforge.convert— The end-to-end conversion and its resume:preprocess → survey → content → monsters → mapread → assemble(7 symbols)osrforge.errors— The osr-forge exception hierarchy (7 symbols)osrforge.estimate— Cost estimation: preprocess only, then pure arithmetic — a rough token/cost estimate with no model call (8 symbols)osrforge.evals— Eval scoring: truth-file models, alignment, and the pinned metric families (39 symbols)osrforge.geometry— Stage 5: deterministic geometry synthesis from the extracted room graph, map proposals reconciled (6 symbols)osrforge.mapread— Stage 4: the map-reading pass — one request per surveyed level over its printed map pages (6 symbols)osrforge.monsters— Stage 3: monster resolution — extracted names against osrlib's shipped catalog, plus the stat-block pass (18 symbols)osrforge.overrides— Overrides application: the human correction channel, applied inside assembly (10 symbols)osrforge.pages— The shared interleaved text-plus-image request-part builder (2 symbols)osrforge.preprocess— Stage 0: deterministic PDF preprocessing (1 symbols)osrforge.previews— The deterministic SVG level renderer and the previews index page (4 symbols)osrforge.reconcile— Deterministic reconciliation of prose edge facts with map proposals, plus the shared entrance selection (6 symbols)osrforge.settings— Pipeline settings (1 symbols)osrforge.statblocks— Shared structural parsing of printed stat-block lines — AC, Hit Dice, and class-level notations (4 symbols)osrforge.survey— Stage 1: the survey pass — one structured-output request over the whole module, or chunked page windows (16 symbols)osrforge.versioning— Artifact schema versioning for osr-forge's own artifacts (2 symbols)osrforge.workdir— The per-module working directory: layout paths,run.jsonI/O, and the artifact writer (4 symbols)
Contracts
osrforge.contracts.overrides— The overrides contract: the human correction channel,overrides.yaml(10 symbols)osrforge.contracts.report— The extraction report: thereport.jsoncontract (17 symbols)osrforge.contracts.run— Run metadata: therun.jsoncontract (5 symbols)osrforge.contracts.stages— Stage-cache contracts: thestages/survey.json,areas.<dungeon>.<level>.json, andmonsters.jsonwire formats (29 symbols)
Providers
osrforge.providers.base— The provider protocol and its request/response types (6 symbols)osrforge.providers.fixtures— Recorded-fixture providers: replay for tests, recording for the live tooling and evals (2 symbols)osrforge.providers.foundry— The Azure AI Foundry adapter — the only module allowed to importopenai/azure.identity(2 symbols)