decision-gate.toml Configuration

Server, trust, evidence, and integration configuration.

Overview

decision-gate.toml configures the public Decision Gate OSS runtime. The schema, registry rows, example TOML, JSON projection, and digests are emitted by decision-gate-config as one source-owned contract.

Contract Authority

FieldValue
Ownerdecision-gate-config
Subjectpublic_decision_gate_config
Version1
Contract digest07960b001effedd4f43ff99422ecd90c3cface2182072e559f4b4c7b97bbc0ff
Example digeste89ffd3b90a3a3e71b1b457a57a8374033e707a8edd5ffc109c5a57233660ab3
Example validationowner_loader

Registry Fields

Every field row below is derived from the public schema leaf set and validated by validate_config_registry() before docs are emitted.

PathSourcesSensitivityNotes
accepted_run_storefile:decision-gate.tomlpublicAccepted-run conditional-commit authority configuration.
accepted_run_store.acceptance_time_authority_idfile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicReviewed by schema/registry contract.
accepted_run_store.acceptance_time_authority_revisionfile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicReviewed by schema/registry contract.
accepted_run_store.busy_timeout_msfile:decision-gate.tomlpublicReviewed by schema/registry contract.
accepted_run_store.limits.accepted_record_bytesfile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicReviewed by schema/registry contract.
accepted_run_store.limits.current_state_bytesfile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicReviewed by schema/registry contract.
accepted_run_store.limits.intent_family_bytesfile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicReviewed by schema/registry contract.
accepted_run_store.limits.intents_per_mutationfile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicReviewed by schema/registry contract.
accepted_run_store.limits.page_itemsfile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicReviewed by schema/registry contract.
accepted_run_store.limits.sqlite_read_connectionsfile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicReviewed by schema/registry contract.
accepted_run_store.limits.sqlite_writer_queuefile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicReviewed by schema/registry contract.
accepted_run_store.limits.transaction_bytesfile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicReviewed by schema/registry contract.
accepted_run_store.memory_capacity.max_records_per_runfile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicReviewed by schema/registry contract.
accepted_run_store.memory_capacity.max_runsfile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicReviewed by schema/registry contract.
accepted_run_store.memory_capacity.max_scenario_lawsfile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicReviewed by schema/registry contract.
accepted_run_store.pathfile:decision-gate.tomlinternalReviewed by schema/registry contract.
accepted_run_store.typefile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicReviewed by schema/registry contract.
docs.enable_resourcesfile:decision-gate.tomlpublicEnable MCP resources list/read.
docs.enable_searchfile:decision-gate.tomlpublicEnable docs search tool.
docs.enabledfile:decision-gate.tomlpublicEnable docs surfaces globally.
docs.extra_pathsfile:decision-gate.tomlinternalExtra doc paths to ingest (files or directories).
docs.extra_paths.*file:decision-gate.tomlinternalReviewed by schema/registry contract.
docs.include_default_docsfile:decision-gate.tomlpublicInclude the embedded default docs set.
docs.max_doc_bytesfile:decision-gate.tomlpublicMaximum size for a single doc entry in bytes.
docs.max_docsfile:decision-gate.tomlpublicMaximum number of docs in the catalog.
docs.max_sectionsfile:decision-gate.tomlpublicMaximum sections returned by docs search.
docs.max_total_bytesfile:decision-gate.tomlpublicMaximum total docs bytes for the catalog.
local_acquisition.document_rootsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
local_acquisition.document_roots.*.absolute_rootfile:decision-gate.tomlpublicExplicit absolute capability root.
local_acquisition.document_roots.*.root_idfile:decision-gate.tomlpublicCapability-rooted document authority identity.
local_acquisition.document_roots.*.root_revision.algorithmfile:decision-gate.tomlpublicClosed digest algorithm identity.
local_acquisition.document_roots.*.root_revision.valuefile:decision-gate.tomlpublicCanonical lowercase SHA-256 hexadecimal syntax.
local_acquisition.environment_snapshotsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
local_acquisition.environment_snapshots.*.allowlisted_keysfile:decision-gate.tomlpublicComplete allowlisted environment key denominator.
local_acquisition.environment_snapshots.*.allowlisted_keys.*file:decision-gate.tomlpublicReviewed by schema/registry contract.
local_acquisition.environment_snapshots.*.authority_idfile:decision-gate.tomlpublicEnvironment snapshot authority identity.
local_acquisition.environment_snapshots.*.authority_revision.algorithmfile:decision-gate.tomlpublicClosed digest algorithm identity.
local_acquisition.environment_snapshots.*.authority_revision.valuefile:decision-gate.tomlpublicCanonical lowercase SHA-256 hexadecimal syntax.
local_acquisition.maximum_concurrencyfile:decision-gate.tomlpublicReviewed by schema/registry contract.
local_acquisition.maximum_operationsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
local_acquisition.time_authoritiesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
local_acquisition.time_authorities.*.authority_idfile:decision-gate.tomlpublicNamed time-authority identity.
local_acquisition.time_authorities.*.authority_revision.algorithmfile:decision-gate.tomlpublicClosed digest algorithm identity.
local_acquisition.time_authorities.*.authority_revision.valuefile:decision-gate.tomlpublicCanonical lowercase SHA-256 hexadecimal syntax.
local_acquisition.time_authorities.*.resolution_nanosecondsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
local_acquisition.time_authorities.*.uncertainty_nanosecondsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
namespace.allow_defaultfile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicAllow the default namespace ID (1).
policyfile:decision-gate.tomlpublicDispatch policy engine configuration.
policy.enginefile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicDispatch policy engine selection.
policy.staticfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.defaultfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rulesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*file:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.content_typesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.content_types.*file:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.effectfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.error_messagefile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.forbid_labelsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.forbid_labels.*file:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.forbid_policy_tagsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.forbid_policy_tags.*file:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.packet_idsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.packet_ids.*file:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.require_labelsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.require_labels.*file:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.require_policy_tagsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.require_policy_tags.*file:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.scenario_idsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.scenario_ids.*file:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.schema_idsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.schema_ids.*file:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.stage_idsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.stage_ids.*file:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.target_kindsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.target_kinds.*file:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.targetsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.targets.*.systemfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.targets.*.targetfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.targets.*.target_idfile:decision-gate.tomlpublicReviewed by schema/registry contract.
policy.static.rules.*.targets.*.target_kindfile:decision-gate.tomlpublicReviewed by schema/registry contract.
runpack_storagefile:decision-gate.tomlpublicReviewed by schema/registry contract.
runpack_storage.repository_idfile:decision-gate.tomlpublicReviewed by schema/registry contract.
runpack_storage.rootfile:decision-gate.tomlpublicReviewed by schema/registry contract.
runpack_storage.typefile:decision-gate.tomlpublicReviewed by schema/registry contract.
schema_registry.acl.allow_local_onlyfile:decision-gate.tomlpublicAllow local-only subjects to access the registry when using the built-in ACL.
schema_registry.acl.defaultfile:decision-gate.tomlpublicDefault decision when no rules match (custom only).
schema_registry.acl.modefile:decision-gate.tomlpublicBuilt-in role rules or custom ACL rules.
schema_registry.acl.require_signingfile:decision-gate.tomlpublicRequire schema signing metadata on writes.
schema_registry.acl.rulesfile:decision-gate.tomlpublicCustom ACL rules (mode = custom).
schema_registry.acl.rules.*.actionsfile:decision-gate.tomlpublicRegistry actions covered by the rule.
schema_registry.acl.rules.*.actions.*file:decision-gate.tomlpublicReviewed by schema/registry contract.
schema_registry.acl.rules.*.effectfile:decision-gate.tomlpublicRule effect.
schema_registry.acl.rules.*.namespacesfile:decision-gate.tomlpublicNamespace identifier scope.
schema_registry.acl.rules.*.namespaces.*file:decision-gate.tomlpublicNamespace identifier.
schema_registry.acl.rules.*.policy_classesfile:decision-gate.tomlpublicPolicy class labels in scope.
schema_registry.acl.rules.*.policy_classes.*file:decision-gate.tomlpublicPolicy class label.
schema_registry.acl.rules.*.rolesfile:decision-gate.tomlpublicRole names in scope.
schema_registry.acl.rules.*.roles.*file:decision-gate.tomlpublicRole name.
schema_registry.acl.rules.*.subjectsfile:decision-gate.tomlpublicPrincipal subjects in scope.
schema_registry.acl.rules.*.subjects.*file:decision-gate.tomlpublicPrincipal subject.
schema_registry.batch_max_bytesfile:decision-gate.tomlpublicSQLite writer batch max aggregate bytes.
schema_registry.batch_max_opsfile:decision-gate.tomlpublicSQLite writer batch max operation count.
schema_registry.batch_max_wait_msfile:decision-gate.tomlpublicSQLite writer batch max wait window (ms).
schema_registry.busy_timeout_msfile:decision-gate.tomlpublicSQLite busy timeout (ms).
schema_registry.journal_modefile:decision-gate.tomlpublicSQLite journal mode.
schema_registry.max_entriesfile:decision-gate.tomlpublicOptional max schemas per namespace.
schema_registry.max_schema_bytesfile:decision-gate.tomlpublicMaximum schema payload size in bytes.
schema_registry.pathfile:decision-gate.tomlinternalReviewed by schema/registry contract.
schema_registry.read_pool_sizefile:decision-gate.tomlpublicSQLite read connection pool size.
schema_registry.sync_modefile:decision-gate.tomlpublicSQLite sync mode.
schema_registry.typefile:decision-gate.tomlpublicSchema registry backend selection.
schema_registry.writer_queue_capacityfile:decision-gate.tomlpublicSQLite writer queue capacity.
serverfile:decision-gate.tomlpublicReviewed by schema/registry contract.
server.audit.enabledfile:decision-gate.tomlpublicEnable structured audit logging (JSON lines).
server.audit.log_precheck_payloadsfile:decision-gate.tomlpublicLog raw precheck payloads (explicit opt-in).
server.audit.pathfile:decision-gate.tomlinternalReviewed by schema/registry contract.
server.authfile:decision-gate.tomlpublicReviewed by schema/registry contract.
server.auth.bearer_tokensfile:decision-gate.tomlinternalReviewed by schema/registry contract.
server.auth.bearer_tokens.*.encodingfile:decision-gate.tomlinternalReviewed by schema/registry contract.
server.auth.bearer_tokens.*.keyfile:decision-gate.tomlinternalReviewed by schema/registry contract.
server.auth.bearer_tokens.*.providerfile:decision-gate.tomlinternalReviewed by schema/registry contract.
server.auth.bearer_tokens.*.versionfile:decision-gate.tomlinternalReviewed by schema/registry contract.
server.auth.modefile:decision-gate.tomlpublicReviewed by schema/registry contract.
server.auth.principalsfile:decision-gate.tomlinternalReviewed by schema/registry contract.
server.auth.principals.*.policy_classfile:decision-gate.tomlinternalReviewed by schema/registry contract.
server.auth.principals.*.rolesfile:decision-gate.tomlinternalReviewed by schema/registry contract.
server.auth.principals.*.roles.*.namefile:decision-gate.tomlinternalReviewed by schema/registry contract.
server.auth.principals.*.roles.*.namespace_idfile:decision-gate.tomlinternalReviewed by schema/registry contract.
server.auth.principals.*.subjectfile:decision-gate.tomlinternalReviewed by schema/registry contract.
server.bindfile:decision-gate.tomlpublicReviewed by schema/registry contract.
server.limits.max_inflightfile:decision-gate.tomlpublicMaximum concurrent MCP requests.
server.limits.rate_limitfile:decision-gate.tomlpublicOptional rate limit configuration.
server.limits.rate_limit.max_entriesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
server.limits.rate_limit.max_requestsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
server.limits.rate_limit.window_msfile:decision-gate.tomlpublicReviewed by schema/registry contract.
server.max_body_bytesfile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicMaximum JSON-RPC request size in bytes.
server.tlsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
server.tls.cert_pathfile:decision-gate.tomlinternalReviewed by schema/registry contract.
server.tls.key_pathfile:decision-gate.tomlinternalReviewed by schema/registry contract.
server.tls_terminationfile:decision-gate.tomlpublicWhere TLS is terminated for HTTP/SSE transport.
server.tools.allowlistfile:decision-gate.tomlpublicReviewed by schema/registry contract.
server.tools.allowlist.*file:decision-gate.tomlpublicReviewed by schema/registry contract.
server.tools.denylistfile:decision-gate.tomlpublicReviewed by schema/registry contract.
server.tools.denylist.*file:decision-gate.tomlpublicReviewed by schema/registry contract.
server.transportfile:decision-gate.toml
default:serde_default:RawDecisionGateConfig
publicTransport protocol for MCP.
value_limits.array_elementsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.byte_value_bytesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.canonical_candidate_bytesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.canonical_snapshot_bytesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.canonical_value_bytesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.composite_depthfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.decimal_precisionfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.decimal_scalefile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.document_bytesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.document_fieldsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.document_nodesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.document_rootsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.environment_entriesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.environment_key_bytesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.environment_snapshot_bytesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.environment_value_bytesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.evidence_candidates_per_conditionfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.evidence_candidates_per_snapshotfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.integer_digitsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.json_pointer_bytesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.json_pointer_tokensfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.record_field_name_bytesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.record_fieldsfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.relative_path_bytesfile:decision-gate.tomlinternalReviewed by schema/registry contract.
value_limits.relative_path_component_bytesfile:decision-gate.tomlinternalReviewed by schema/registry contract.
value_limits.relative_path_componentsfile:decision-gate.tomlinternalReviewed by schema/registry contract.
value_limits.string_bytesfile:decision-gate.tomlpublicReviewed by schema/registry contract.
value_limits.union_membersfile:decision-gate.tomlpublicReviewed by schema/registry contract.

Local Acquisition Profile

The initial OSS profile admits only named time authorities, immutable allowlisted environment snapshots, and capability-rooted JSON/YAML documents. All values remain bounded by value_limits, and scenario laws bind exact source identities and revisions. Network, subprocess, remote MCP, native plugins, and remote evaluators are not representable in this configuration contract.

Example Account

The example below is owner-model validated, schema validated, and published with digest e89ffd3b90a3a3e71b1b457a57a8374033e707a8edd5ffc109c5a57233660ab3.

[server]
transport = "stdio"
tls_termination = "server"
max_body_bytes = 1048576

[server.limits]
max_inflight = 256

[server.audit]
enabled = true
path = "decision-gate-governance-audit.jsonl"
log_precheck_payloads = false

[server.tools]
allowlist = []
denylist = []

[namespace]
allow_default = false

[value_limits]
integer_digits = 128
decimal_precision = 128
decimal_scale = 64
string_bytes = 65536
byte_value_bytes = 1048576
composite_depth = 16
array_elements = 256
record_fields = 128
union_members = 16
record_field_name_bytes = 128
canonical_value_bytes = 1048576
evidence_candidates_per_condition = 16
evidence_candidates_per_snapshot = 1024
canonical_candidate_bytes = 1048576
canonical_snapshot_bytes = 4194304
environment_key_bytes = 255
environment_value_bytes = 65536
environment_entries = 256
environment_snapshot_bytes = 1048576
document_roots = 16
document_bytes = 1048576
relative_path_components = 32
relative_path_bytes = 4096
relative_path_component_bytes = 255
document_nodes = 65536
document_fields = 16384
json_pointer_bytes = 4096
json_pointer_tokens = 64

[local_acquisition]
maximum_operations = 256
maximum_concurrency = 1
time_authorities = []
environment_snapshots = []
document_roots = []

[policy]
engine = "permit_all"

[accepted_run_store]
type = "sqlite"
path = "decision-gate.db"
busy_timeout_ms = 5000
acceptance_time_authority_id = "dg-local-system-wall-clock-v1"
acceptance_time_authority_revision = "dg-local-system-wall-clock-v1"

[accepted_run_store.limits]
current_state_bytes = 1048576
accepted_record_bytes = 4194304
intent_family_bytes = 4194304
transaction_bytes = 8388608
intents_per_mutation = 128
page_items = 64
sqlite_writer_queue = 1024
sqlite_read_connections = 4

[schema_registry]
type = "memory"
busy_timeout_ms = 5000
journal_mode = "wal"
sync_mode = "full"
max_schema_bytes = 1048576
writer_queue_capacity = 1024
batch_max_ops = 64
batch_max_bytes = 524288
batch_max_wait_ms = 2
read_pool_size = 4

[schema_registry.acl]
mode = "builtin"
default = "deny"
allow_local_only = false
require_signing = false
rules = []

[docs]
enabled = true
enable_search = true
enable_resources = true
include_default_docs = true
extra_paths = []
max_doc_bytes = 262144
max_total_bytes = 1048576
max_docs = 32
max_sections = 10