Skip to main content

spec_mdm — File-canonical MDM + governed marketplace

Spec / rule / _meta / backlog management platform for keeping agentic systems running on approved master data — now also a governed marketplace for Data SDLC → ADLC agents & skills.

New: Unified intent-driven CLI following dwarves-kit patterns. One command does what you need: spec-mdm <intent>.

Quickstart

# PyPI
pip install spec-mdm

# NPM
npm install -g @longbuivan/spec-mdm

# Validate everything
spec-mdm validate

# List approved skills
spec-mdm list skills --sdlc quality

# Approve an item
spec-mdm approve --kind skill --id SKILL-001 --approver alice

# Install from marketplace
spec-mdm install SKILL-001 --into ~/.codex/skills

# Run safety gates
spec-mdm gate

# Check status
spec-mdm status

Source-of-truth rule

  • Canonical MDM = version-controlled files in mdm/ inside the customer cluster.
  • runtime/mdm.db is a derived projection — deletable and rebuildable from mdm/. Never commit it.
  • Code holds schemas, validation, connectors, and the approval state machine. It never holds customer master rows, PII, or secrets.

Layout

mdm/
  spec/        # durable intent + solution contracts
  rule/        # executable governance / validation policies
  agent/       # governed Data SDLC -> ADLC agents (AGENT-*.yaml)
  skill/       # governed skills (SKILL-*.yaml, hash-pinned SKILL.md)
  _meta/       # provenance + sync records
  backlog/     # work items derived from / governed by specs & rules
  approvals/   # append-only approval decision events
  _incoming/   # staged candidates
schema/        # JSON Schemas (contracts, not data)
src/spec_mdm/  # validators, loader, connector, approval, monitor, marketplace, gates
scripts/       # unified CLI (spec-mdm.py) + legacy entry points
bin/           # npx shims
docs/          # privacy boundary, deployment, marketplace, decisions, architecture

Governance commands:

spec-mdm validate                    # Validate all canonical files
spec-mdm approve --kind skill --id SKILL-001 --approver alice
spec-mdm list skills --sdlc quality
spec-mdm install SKILL-001 --into ~/.codex/skills
spec-mdm gate                        # Run mechanical safety gates
spec-mdm status                      # Show current state

Execution commands (optional layer, future):

spec-mdm execute BG-001              # Execute backlog item
spec-mdm retro                       # Run retrospective/learning

Legacy CLI (Still Works)

All old commands remain available for backward compatibility:

spec-mdm-validate
spec-mdm-rebuild
spec-mdm-monitor
spec-mdm-pull
spec-mdm-approve
spec-mdm-marketplace
spec-mdm-promote

Or use scripts directly:

python3 scripts/validate.py
python3 scripts/approve.py --kind skill --id SKILL-001 ...
python3 scripts/marketplace.py list --sdlc quality

Mechanical Gates

The unified CLI includes mechanical safety gates that block dangerous operations:

  • Secret key detection in canonical files
  • Validation before status changes
  • Runtime files not committed to git
  • Approval required for status changes

Run spec-mdm gate to check all gates.

Lifecycle

Spec/Rule/Agent/Skill: draft → in_review → approved → deprecated | superseded Backlog: proposed → ready → in_progress → done | blocked Approval decisions: approved | rejected | changes_requested

Unapproved content is never presented as operational truth. Agents keep running on last-known-good approved content; new/unknown changes queue as pending and the system reports degraded mode explicitly.

Privacy

  • No data leaves the customer cluster. Connectors are read-only and local.
  • No credentials, tokens, API keys, PII, generated DBs, or model outputs are committed. See docs/privacy-boundary.md.
  • Marketplace stores manifests + hashes only; SKILL.md bodies are hashed, never copied into canonical records. See docs/marketplace.md.

Architecture

See ARCHITECTURE.md for the hybrid design combining solid MDM governance with optional execution layer inspired by dwarves-kit patterns.

Metadata

Release files for spec-mdm 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spec-mdm 0.3.1
File Size Uploaded Provenance Actions
spec_mdm-0.3.1.tar.gz 44.8 kB With provenance Details for spec_mdm-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spec-mdm 0.3.1
File Interpreter ABI Platform Actions
spec_mdm-0.3.1-py3-none-any.whl Python 3 none any Details for spec_mdm-0.3.1-py3-none-any.whl

Total release size: 78.8 kB

Release files / spec_mdm-0.3.1.tar.gz

Download URL spec_mdm-0.3.1.tar.gz
Size 44.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e93725e4423ea3d93697ef8642a4a099f20142b69b6337fa909afb865d4cc0c3
BLAKE2b-256 checksum
How to use checksums
eb3a25df535ab45b2640256ba8b5494601f64e9855e3bf7c372973170d7012ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Release files / spec_mdm-0.3.1-py3-none-any.whl

Download URL spec_mdm-0.3.1-py3-none-any.whl
Size 34.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92d10e63b31d3ee8aa967b22bb4c3faaa6ba8f36d7d3a54537995aa83684be19
BLAKE2b-256 checksum
How to use checksums
fcdd63ead2f714869d05ee6cf9afb753cbfee6f8e5f50e8ab3dcb0024616d607
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Security for spec-mdm 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for spec_mdm-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page