Skip to main content

HUMMBL Typed Tuples governance model

Project description

HUMMBL Typed Tuples

Validate

Typed governance tuples for bounded delegation, evidence, and execution control in AI-native systems.

The governance tuple is the minimal atomic record that proves a governed AI decision happened — not that someone claimed it did.

Layered Envelope (TUPLES v2)

All tuples use a layered envelope. Lower layers are universal; higher layers apply only where governance semantics are needed.

Layer Fields Applies to Purpose
1 — Universal tuple_type, id, time, tuple_data All tuples Identity + temporality
2 — Governance state, drift, tier, agent, tool IDP governance tuples Outcome + deviation (VERUM-aligned)
3 — Domain Per-family fields Each family independently Domain-specific semantics
4 — Integrity signature, args_hash, previous_hash Optional, any tuple Tamper evidence + chain linkage

VERUM's 4 node fields (id, time, state, drift) are deliberately split: id/time establish existence (universal), while state/drift establish judgment (governance-specific). See TUPLES_v2.md §8 for the rationale.

Tuple Taxonomy

Six governance tuple types (Layer 1 + 2 + 3/IDP):

Type Role
CONTRACT Bounded work definition — objective, allowed tools, evidence requirements
DCT Delegated capability token — authority issuance with monotonic attenuation
DCTX Delegation context — lifecycle state machine and parent-child linkage
SYSTEM Runtime control-plane event — adapter invocation, enforcement, denial
EVIDENCE Execution proof — completion outcome, cost, duration
ATTEST Verification outcome — evidence hash, verifier identity, pass/fail

Two additional governance-control tuple types are included for distributed mesh operations:

Type Role
PROMOTION_RECEIPT Governed promotion decision across environments or trust/compute rungs
REVOCATION Explicit withdrawal of delegated authority

Plus three research/experiment families (Layer 1 + 3, no governance overhead):

  • BaseN (8 types): reasoning experiment instrumentation
  • Nodezero (4 types): experiment control tuples
  • Bio (11 types, experimental): bio-cognitive signal tuples

Quick Start

# Validate all examples against schemas
make validate

# Run the test suite
make test

# Run the governance simulation
make simulate
python3 test_simulation.py

Requires Python 3.10+. Zero third-party runtime dependencies (stdlib only).

Canonical versioned taxonomy:

Repo Layout

docs/specs/          Canonical tuple specs (TUPLES_v2 is current)
schemas/             JSON Schemas for tuple classes (21 core)
schemas/experimental Bio-governance schemas (11, not yet promoted)
examples/            Sanitized tuple examples (26 fixtures)
hummbl_tuples/       Python reference implementation
  simulation/        Deterministic governance simulation prototype
reference_impl/      Stdlib-only validators
comparisons/         Tuple vs adjacent approaches
research_notes/      Hypotheses, experiments, open questions
novelty_quest/       Candidate claims, objections, negative results
adrs/                Architectural decision records (4 ADRs)

Governance Simulation

A deterministic rule-based governance simulator exercises the tuple schemas as an execution surface. It models a multi-agent system with delegation, probation, scope denial, and recovery — producing 29-event traces that validate against the JSON Schemas.

make simulate                                          # scalar trace summary
python3 -m hummbl_tuples.simulation --out /tmp/trace.json  # full JSON trace
python3 test_simulation.py                             # regression assertions

The simulator is bitwise-deterministic under a fixed seed, enabling reproducible parameter sweeps.

Publication

This repo is the companion artifact for:

  • "The Governance Tuple: An Atomic Record for Auditable Agentic AI Decision-Making" — formalizes the (CONTRACT, DCT, EVIDENCE) triple and proves four accountability properties
  • "A Typed Delegation-Governance Tuple Profile for Multi-Agent Runtime Control" (CRAI 2026) — the six-tuple IDP profile with composability evidence
  • "Append-Only as Proof" — the VERUM governance sovereignty framework

ORCID: 0009-0002-5620-1103

Key Design Decisions

ADR Decision
ADR-001 Create a dedicated tuple spec repo
ADR-002 Scope: spec + research, not runtime
ADR-003 Governance simulation as research instrument
ADR-004 Layered convergence (VERUM + tier model)

Related

  • Runtime implementation: the production BaseNTuple dataclass lives in a separate repo (HMAC-SHA256 signing, JSONL persistence, tier classification as policy-as-code)
  • VERUM: append-only audit sovereignty framework — 4 invariants for governance proof
  • Base120: governed reasoning vocabulary — 120 operators in 6 families

License

Apache 2.0. See LICENSE and NOTICE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hummbl_tuples-0.2.0.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hummbl_tuples-0.2.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file hummbl_tuples-0.2.0.tar.gz.

File metadata

  • Download URL: hummbl_tuples-0.2.0.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for hummbl_tuples-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fa57f23fe64fb4fb577d88da2cbd370804dc2a5a8bd4d86d005e51bc0887bad7
MD5 7e0fe23f175f51a5b4afd5724f9139c7
BLAKE2b-256 90ae4190412ea467bbe9588dd74f94f8b12cf4df3bc1fad75738041cca16207e

See more details on using hashes here.

File details

Details for the file hummbl_tuples-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: hummbl_tuples-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for hummbl_tuples-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7617cdc7bd13d54f079ed4bd13693651a63a8014d78472446a1dce0d0e5d5fe
MD5 f308860c4c47186b7e3960d1619d1dc9
BLAKE2b-256 6c18ed3c7b2f0e469c1881c334959302358d28b61829a2a06625e26927ce60de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page