Skip to main content

Module entity_compile_gates

Module entity_compile_gates 

Source
Expand description

Deterministic validation gates and TAA Oklab perceptual clamping for entity compilation. Deterministic Validation Gates & TAA Oklab Clamping for qualia-cli entity-compile.

Enforces the compilation gates before sealing .10d living containers and packaging into .hmc bundles:

  • Gate 1: Spectral Plausibility & Energy Conservation ($R(\lambda) \in [0.0, 1.0]$ across 380–780 nm).
  • Gate 2: Virtualized Geometry Confinement (Tier 2/3/4 strictly bounded inside Tier 1 AABB).
  • Gate 3: Ontological & Anti-Commodification Integrity (Valid ontological class, anti-slavery / inalienable human rights protection preventing NaturalPerson from being commodified as an asset).
  • Gate 4: Wasm/VibeScript Determinism Limits (Zero non-deterministic host calls, cycle count budget).

Also provides perceptual Oklab Neighborhood Clamping for Temporal Anti-Aliasing (TAA) across blue-noise hero wavelength packets.

Enums§

GateError
OntologicalClass
First-class ontological categories determining entity representation and rights.

Functions§

assert_biosphere_permissive_commons
Assert that living biosphere entities (“world of god”) and fundamental knowledge for life are governed by Permissive Commons, preventing enclosure, perpetual royalties, and private monopolization.
assert_person_anti_commodification
Explicit assertion protecting natural persons from being classified as manufactured property.
calculate_taa_blend_factor
Velocity-ramped dynamic TAA blend factor alpha in [0.05, 0.20].
clamp_taa_history_oklab
Clamps the reprojected TAA history color to the variance bounding box of the 3x3 local neighborhood in Oklab space. Zero heap.
is_taa_history_disoccluded
Check relative depth disocclusion gate.
oklab_to_xyz
Transform Oklab perceptual color space back to linear CIE XYZ. Zero heap.
validate_bssrdf_parameters
Assert that Subsurface Scattering mean free paths are strictly positive (prevents division by zero).
validate_geometry_confinement
Assert that lower-tier primitives (LODs, surfels) remain strictly bounded inside Tier 1 Hero AABB.
validate_ontological_integrity
Assert valid ontological classification and enforce anti-commodification human rights.
validate_script_determinism
Assert affordance Wasm script determinism.
validate_spectral_coeffs
Assert that spectral coefficients evaluate strictly within physical bounds $R(\lambda) \in [0.0, 1.0]$.
xyz_to_oklab
Transform linear CIE XYZ to Oklab perceptual color space. Zero heap.