Skip to main content

Categorical governance engine — morphisms, functors, natural transformations

Project description

Morphism

CI Governance Score License: MIT

Self-healing intelligence layer for AI agent fleets. Mathematical governance with category-theoretic foundations, drift detection, and autonomous correction.

Entropy is the default. Governance is the override.

Why Morphism

  • Mathematical guarantees — 7 kernel invariants and 10 operational tenets, grounded in category theory
  • Self-healing — Automatic drift detection and context re-normalization without human intervention
  • Compound learning — Every agent interaction improves the fleet through proof state logging
  • Installable — MCP servers, CLI, and npm packages for integration into existing workflows

Quick Start

TypeScript (Next.js app + packages)

npm install
npx turbo dev        # Start development
npx turbo build      # Build all packages
npx turbo test       # Run tests

Python (Governance engine + CLI)

pip install -e ".[dev]"
morphism --help      # CLI usage
pytest tests/        # Run tests

MCP Server (Claude, Cursor, etc.)

{
  "mcpServers": {
    "morphism-math": {
      "command": "npx",
      "args": ["@morphism-systems/agentic-math"]
    }
  }
}

Architecture

graph TD
    A[morphism.systems] --> B[apps/morphism — Next.js 15]
    A --> C[packages/shared — @morphism-systems/shared]
    A --> D[packages/agentic-math — MCP Server]
    A --> E[packages/cli — CLI]
    A --> F[src/morphism — Python Core]
    F --> G[engine/ — Category Theory]
    F --> H[metrics/ — κ, δ]
    F --> I[cli/ — Governance CLI]
Layer Stack Purpose
Web Next.js 15, Turborepo SaaS dashboard
Shared TypeScript, Zod Types, schemas, utilities
MCP TypeScript, MCP SDK AI tool integration
Python Click, Category Theory Governance engine, metrics
Scripts Python CI validation, maturity scoring

Governance

The governance framework is the core of Morphism. See AGENTS.md for the full specification.

Document Purpose
AGENTS.md Root governance rules
SSOT.md Single source of truth
Kernel 7 invariants (I-1..I-7)
Docs Index Full documentation map

Contributing

See CONTRIBUTING.md for development setup, architecture overview, and contribution guidelines.

License

MIT

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

morphism-0.1.0.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

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

morphism-0.1.0-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

Details for the file morphism-0.1.0.tar.gz.

File metadata

  • Download URL: morphism-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for morphism-0.1.0.tar.gz
Algorithm Hash digest
SHA256 97021fcf5d706251e043090a68361b6e78984a6cd74de64e44a8ab889b8483d6
MD5 1eb0abeb4967ca75a323f80b32c0f7b8
BLAKE2b-256 eb72337332954a1fc19e6177e46d62264368b1f1da20e21a33c66f190ec9d3eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for morphism-0.1.0.tar.gz:

Publisher: release.yml on morphism-systems/morphism

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file morphism-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: morphism-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 39.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for morphism-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3330e2dafffed53269d4dcf76dd5182327351bb711c6eeecdddf61457e8c81e6
MD5 cbd02a4951e49139043fc8361bf9a4af
BLAKE2b-256 3da5821bedf86bd8908ad7fe2b079313d552a8a787c6f634922b657460def266

See more details on using hashes here.

Provenance

The following attestation bundles were made for morphism-0.1.0-py3-none-any.whl:

Publisher: release.yml on morphism-systems/morphism

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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