Skip to main content

Module ids

Module ids 

Source
Expand description

Deterministic ID formatting/parsing (ids-v1, determinism contract §5). IDs are functions of canonical order — never random, never time-based.

Functions§

check_id
Format a verification check id (v%04d, input order).
chunk_id
Format a chunk id (c%06d, chunker emission order).
element_id
Format an element id (e%06d, reading order).
finding_id
Format a security finding id (f%04d).
page_id
Format a page id (p%04d, 1-based original document index).
parse_check_id
Parse the 1-based ordinal out of an id; None when malformed.
parse_chunk_id
Parse the 1-based ordinal out of an id; None when malformed.
parse_element_id
Parse the 1-based ordinal out of an id; None when malformed.
parse_finding_id
Parse the 1-based ordinal out of an id; None when malformed.
parse_page_id
Parse the 1-based ordinal out of an id; None when malformed.
parse_region_id
Parse the 1-based ordinal out of an id; None when malformed.
parse_span_id
Parse the 1-based ordinal out of an id; None when malformed.
parse_table_id
Parse the 1-based ordinal out of an id; None when malformed.
parse_warning_id
Parse the 1-based ordinal out of an id; None when malformed.
region_id
Format a region id (r%04d, page/y/x/stream order).
span_id
Format a span id (s%06d, content-stream order).
table_id
Format a table id (t%04d, reading-order anchor).
warning_id
Format a warning id (w%04d, sorted emission — contract §5).