Skip to main content
MobKit’s decision layer enforces operational policies through typed validation functions. Each function takes a policy or configuration input and returns a typed error on violation.

Console access

enforce_console_route_access checks whether a request should be allowed to access console routes.

Decision rules


Runtime ops validation

validate_runtime_ops_policy enforces v0.1 operational constraints.

BigQuery naming

validate_bigquery_naming ensures dataset and table names are safe.

Validation rules

  • Dataset must be non-empty
  • Table must be non-empty
  • Both must contain only ASCII alphanumeric characters, underscores, and hyphens
  • No dots, semicolons, spaces, or other special characters

Trusted module loading

load_trusted_mobkit_modules_from_toml parses and validates a trust manifest.

Validation rules

  • Module id must be non-empty
  • Module command must be non-empty
  • TOML must parse correctly
  • Restart policy defaults to OnFailure when omitted

Release metadata

validate_release_metadata ensures release targets are complete and the support matrix is valid.

Required targets

Every release must include all four targets:

Validation rules

  • No duplicate targets
  • All required targets must be present
  • support_matrix must equal "same-as-meerkat"

Error types

All decision functions return DecisionPolicyError:

See also