Categorical governance engine — morphisms, functors, natural transformations
Project description
Morphism
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97021fcf5d706251e043090a68361b6e78984a6cd74de64e44a8ab889b8483d6
|
|
| MD5 |
1eb0abeb4967ca75a323f80b32c0f7b8
|
|
| BLAKE2b-256 |
eb72337332954a1fc19e6177e46d62264368b1f1da20e21a33c66f190ec9d3eb
|
Provenance
The following attestation bundles were made for morphism-0.1.0.tar.gz:
Publisher:
release.yml on morphism-systems/morphism
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
morphism-0.1.0.tar.gz -
Subject digest:
97021fcf5d706251e043090a68361b6e78984a6cd74de64e44a8ab889b8483d6 - Sigstore transparency entry: 975732182
- Sigstore integration time:
-
Permalink:
morphism-systems/morphism@e5de984ca45a827ae960526eeb1fbacb2af3a710 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/morphism-systems
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e5de984ca45a827ae960526eeb1fbacb2af3a710 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3330e2dafffed53269d4dcf76dd5182327351bb711c6eeecdddf61457e8c81e6
|
|
| MD5 |
cbd02a4951e49139043fc8361bf9a4af
|
|
| BLAKE2b-256 |
3da5821bedf86bd8908ad7fe2b079313d552a8a787c6f634922b657460def266
|
Provenance
The following attestation bundles were made for morphism-0.1.0-py3-none-any.whl:
Publisher:
release.yml on morphism-systems/morphism
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
morphism-0.1.0-py3-none-any.whl -
Subject digest:
3330e2dafffed53269d4dcf76dd5182327351bb711c6eeecdddf61457e8c81e6 - Sigstore transparency entry: 975732184
- Sigstore integration time:
-
Permalink:
morphism-systems/morphism@e5de984ca45a827ae960526eeb1fbacb2af3a710 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/morphism-systems
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e5de984ca45a827ae960526eeb1fbacb2af3a710 -
Trigger Event:
push
-
Statement type: