v1 Python package RETIRED (2026-04-14). The Python code has been removed. The canonical registry (
Base120_Canonical_Model_Registry.yaml) and data files (registries/) remain here as source of truth. The v2 SDK is in development.FM taxonomy (FM1–FM30) migrated to:
hummbl-governancev0.4.0 —from hummbl_governance.errors import FailureMode, HummblErrorMCP server (TypeScript, live):
mcp-server— all 120 operators served via MCP
120 mental models for structured reasoning. Use them to analyze problems, design systems, and make decisions — whether you are a human, an AI agent, or a fleet of both.
Apply a model to decompose a problem:
from base120.validators.validate import validate_artifact
# FM42: Separation of Concerns -- does this component have a single responsibility?
artifact = {
"id": "auth-service-review",
"domain": "core",
"class": "architecture",
"instance": "auth-svc",
"models": ["FM42"] # Separation of Concerns
}
errors = validate_artifact(artifact, schema, mappings, err_registry)
# [] -- valid artifact, model applies cleanlyEach of the 120 models is a named, versioned reasoning primitive with a defined domain, failure graph, and validation rules.
- 120 mental models across 6 cognitive domains (core, systems, security, governance, operations, meta)
- 6 cognitive transformations -- deterministic operations that compose models into chains
- CLI validation --
base120 validate-contractchecks governance artifacts against the frozen spec - Observability layer -- opt-in structured JSON events for production monitoring
- MCP integration -- serve models to AI agents via mcp-server
- Golden corpus -- all implementations must match the canonical test corpus in
tests/corpus
pip install base120
# Or from source
git clone https://github.com/hummbl-dev/base120.git && cd base120
pip install -e ".[test]"# Validate a contract unit (schema, failure graph, version metadata)
base120 validate-contract path/to/contract.jsonSee docs/contract-units.md for contract unit format and examples.
Opt-in structured events for production deployments:
from base120.observability import create_event_sink
event_sink = create_event_sink() # logs to stdout
errors = validate_artifact(artifact, schema, mappings, err_registry,
event_sink=event_sink)
# Emits: {"event_type": "validator_result", "result": "success", ...}Omitting event_sink preserves original v1.0.0 behavior with zero overhead. Full spec: docs/observability.md.
This repository is the authoritative reference implementation for Base120 v1.0.0. All other language implementations are semantic mirrors and MUST conform exactly to the outputs defined here.
- Permitted: Security fixes, CI hardening, documentation, corpus additions
- Prohibited: Schema changes, registry modifications, breaking changes
| Changing... | Class | Review |
|---|---|---|
| Typos, formatting | Trivial | CODEOWNER only |
| Documentation | Editorial | CODEOWNER only |
| Test corpus | Corpus | CODEOWNER + tests |
| Schemas | Schema | 1+ reviewers |
| Formal models | FM | 2+ reviewers |
Full governance spec: GOVERNANCE.md | Decision tree
Part of the HUMMBL cognitive AI architecture:
- mcp-server -- Serve Base120 models to Claude and other AI agents
- hummbl-governance -- Governance runtime (kill switch, circuit breaker, cost governor)
- arbiter -- Agent-aware code quality scoring and attribution
Learn more at hummbl.io.
Apache 2.0 -- see LICENSE.
Built by HUMMBL LLC. Base120 powers the cognitive layer behind multi-agent coordination at scale.