Expand description
Subprocess adapters: converters that run behind the sandboxed runner instead of in this process.
Each adapter speaks the framed stdin/stdout protocol to a worker
mode and renders the response to the outcome shape every converter
emits. The PDF adapter is the production occupant: it carries the
same outcome, warnings, and failure reasons as the in-process PDF
path did, so its manifest records differ only in converter id. The
image and audio converters decode in-jail and drive their pinned
engines behind hash-verified inventories. The OCR and video
adapters are the protocol half of their conversions: their engines
are not pinned yet, so the registry routes their formats to
unsupported with reason engine-unpinned until a rules bump pins
an engine, and the adapters are exercised against fake engines
under test.
Structs§
- OcrAdapter
- The OCR protocol adapter. Engine-unpinned: reachable only through an explicit runner until a rules bump pins an engine.
- PdfSubprocess
- The production PDF conversion behind the sandbox runner.
- Records
Subprocess - The records worker adapter: parquet, avro, and sqlite behind the sandbox runner.
- Video
Adapter - The video protocol adapter. Engine-unpinned.
Constants§
- ASR_
ADAPTER_ ID - Registry id of the speech transcription adapter.
- ASR_
ADAPTER_ VERSION - Version of the speech transcription adapter. 2.0.0 because the pinned in-jail decode-and-transcribe path replaced the engine-unpinned protocol scaffold: a total behavior change under the shared id, so every prior record under it reconverts.
- ASR_
DECODE_ POLICY - The pinned decode policy, serialized exactly as the engine child
receives it: one line, single spaces, no trailing newline. The
engine argv embeds these tokens verbatim between the input
selection and the output selection, and the rules pin this
serialization’s BLAKE3 under the
asr-decode-policyrole, so the rules, the code, and the child invocation cannot drift apart. - ASR_
FILE_ ROLE_ LABELS - The speech runtime roles that are files a deployment supplies and the cold worker re-hashes: everything except the decode policy.
- ASR_
ROLE_ CLI - The pinned speech runtime roles. Generic labels only: the identities behind them are deployment data bound by hash.
- ASR_
ROLE_ DECODE_ POLICY - The serialized decode policy role. Not a file: it pins
ASR_DECODE_POLICYitself. - ASR_
ROLE_ PROBE - The backend probe role: the pinned executable whose clean exit proves an accelerator-class device is enumerable by type.
- ASR_
ROLE_ WEIGHTS - The transcription weights role.
- IMAGE_
PIXEL_ OCR_ ID - Registry id of the in-jail pixel-OCR converter for raster images.
- IMAGE_
PIXEL_ OCR_ VERSION - Version of the in-jail pixel-OCR converter. 1.1.0 because the same converter gained the svg input route through the external provider and the child-specific segment source: additive behavior under the shared id, so every prior direct-raster record reconverts once.
- OCR_
ADAPTER_ ID - Registry id of the OCR adapter.
- OCR_
ADAPTER_ VERSION - Version of the OCR adapter.
- OCR_
CONFIDENCE_ WARNING - OCR spans below this confidence carry a warning.
- OCR_
SEGMENT_ SOURCE_ DOCUMENT - The segment source the direct raster path labels its spans with.
- OCR_
SEGMENT_ SOURCE_ OCR - The segment source the svg provider child labels its spans with, so a consumer can tell recognized text lifted from a vector source’s rendering from the source’s own markup.
- PDF_
RECOVERED_ ID - Manifest converter id for the direct-extraction recovery path: a PDF whose text was recovered after the markdown path declined the page as image-based. It names the actual extraction path so a recovered document is never recorded under the markdown path’s id.
- PDF_
RECOVERED_ VERSION - Version of the PDF recovery path. It shares the adapter version deliberately: both paths ship in the same adapter, and the checkpoint key compares converter version, so an unchanged recovered PDF skips on a later run only because this equals the adapter version.
- PDF_
SUBPROCESS_ ID - Registry id of the subprocess PDF adapter.
- PDF_
SUBPROCESS_ VERSION - Version of the subprocess PDF adapter.
- RECORDS_
SUBPROCESS_ ID - Registry id of the jailed records worker adapter.
- RECORDS_
SUBPROCESS_ VERSION - Version of the jailed records worker adapter.
- VIDEO_
ADAPTER_ ID - Registry id of the video adapter.
- VIDEO_
ADAPTER_ VERSION - Version of the video adapter.
Functions§
- format_
timecode - Renders whole seconds as
HH:MM:SSfor transcript timecodes. The input must be finite and non-negative. - render_
screen_ states - Renders deduplicated screen states to the transcript format:
[on-screen @ HH:MM:SS] text, ordered by first appearance, with consecutive identical text collapsed. - render_
transcript - Renders speech segments to the transcript format:
[HH:MM:SS -> HH:MM:SS] Speaker N: text, one line per segment, ordered by start time.