Skip to content

hummbl-dev/base120

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

202 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base120

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-governance v0.4.0 — from hummbl_governance.errors import FailureMode, HummblError

MCP server (TypeScript, live): mcp-server — all 120 operators served via MCP

License: Apache 2.0

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.

Quick Example

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 cleanly

Each of the 120 models is a named, versioned reasoning primitive with a defined domain, failure graph, and validation rules.

Features

  • 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-contract checks 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

Install

pip install base120

# Or from source
git clone https://github.com/hummbl-dev/base120.git && cd base120
pip install -e ".[test]"

CLI

# Validate a contract unit (schema, failure graph, version metadata)
base120 validate-contract path/to/contract.json

See docs/contract-units.md for contract unit format and examples.

Observability

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.

Authority Statement

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.

v1.0.x Policy

  • Permitted: Security fixes, CI hardening, documentation, corpus additions
  • Prohibited: Schema changes, registry modifications, breaking changes

Change Classes

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

HUMMBL Ecosystem

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.

License

Apache 2.0 -- see LICENSE.


Built by HUMMBL LLC. Base120 powers the cognitive layer behind multi-agent coordination at scale.

About

Base120 is a deterministic governance substrate for system design, validation, and execution. It defines executable mental models, failure modes, and guardrails to enforce correctness, escalation, and termination decisions before runtime. This repository is the authoritative v1.0.0 reference implementation.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors