Skip to content

lawref.screen

Population screening filter (DECISION-0120).

This first slice owns the pinned source binding. The binding is both a map for a future host renderer and an exact contract of predicates that this data source may assert. Unlisted predicates are therefore derived-only for this integration; silently accepting one would recreate the open input boundary that stopped DECISION-0119.

Attributes

NameDescription
DISCLAIMERNo description.
SCHEMA_VERSIONNo description.

Classes

NameDescription
ScreenErrorStable screening diagnostic with a machine-readable code.

Functions

NameDescription
binding_content_hashCanonical hash of a binding excluding its own contentHash.
buildBuild a typed necessary-condition tree and its widening manifest.
contract_islandStatic DECISION-0119 island under this exact assertable contract.
load_bindingRead and validate a binding; malformed JSON is a stable loud refusal.
render_textNo description.
report_bytesNo description.
validate_bindingValidate shape, self pin, source pin and CLIR declaration agreement.

DISCLAIMERattributemodule attribute#

DISCLAIMER = 'Фильтр не есть правовой ответ: он задаёт только необходимое условие-надмножество; право по каждой прошедшей строке обязан полностью посчитать движок с proof-графом на том же снимке данных.'

SCHEMA_VERSIONattributemodule attribute#

SCHEMA_VERSION = 'law.screen/0.1'

ScreenErrorclass#

class ScreenError(code: str, message: str)

Bases: ValueError

Stable screening diagnostic with a machine-readable code.

codeattributeinstance attribute#

code = code

binding_content_hashfunction#

def binding_content_hash(binding: dict) -> str

Canonical hash of a binding excluding its own contentHash.

buildfunction#

def build(document: dict, goal: str, binding: dict, legal_time: str | None = None, *, coverage_omit: set[str] | None = None) -> dict

Build a typed necessary-condition tree and its widening manifest.

contract_islandfunction#

def contract_island(document: dict, binding: dict) -> dict

Static DECISION-0119 island under this exact assertable contract.

This deliberately reports rule membership, not a cache speedup: runtime solve/application/CPU profiling belongs to a future cache decision. A non-zero result proves only that the open-input blocker of 0119 is gone.

load_bindingfunction#

def load_binding(path: str | Path, document: dict, source_schema_hash: str | None = None) -> dict

Read and validate a binding; malformed JSON is a stable loud refusal.

render_textfunction#

def render_text(report: dict) -> str

report_bytesfunction#

def report_bytes(report: dict) -> bytes

validate_bindingfunction#

def validate_binding(binding: Any, document: dict, source_schema_hash: str | None = None) -> dict

Validate shape, self pin, source pin and CLIR declaration agreement.

Documentation for Arxo. Writings — blog.arxo.io.

Anonymous visit counts on stats.arxo.io, no cookies.