The Reference Implementation of the Decision Moment Standard (DMS). Store decision moments, not raw chats, objects or data.
DMG is the standard graph encoding for the DMS Standard.
It provides the schemas, SDKs, and validators to ensure your decisions are MERIT-compliant:
| Principle | Verified By | Grade |
|---|---|---|
| π Measured | OUTCOME checks vs predictions |
Platinum |
| π Evidenced | MEMO options (β₯3) & rationale |
Bronze |
| π Reversible | DOORS owner & rollback plan |
Gold |
| ποΈ Inspectable | MOMENT event hash chain |
Silver |
| π Traceable | TRACE source citations |
Platinum |
"DMS defines the rules. DMG stores the proof."
DMG implements the 7-Step Heptagon lifecycle defined by DMS:
FRAME β SPAR β GATE β COMMIT β ENACT β YIELD β GAUGE
pip install decision-moment-graph
# For embeddings: pip install sentence-transformerspython dmg/cli/lifecycle.py "Should we migrate to microservices?" --dry-runOutput:
π Phase 1: FRAME, Structure question & options
π Phase 2: SPAR, Deliberate & Challenge
π Phase 3: GATE, Check Governance & Reversibility
π Phase 4: COMMIT, Sign & Hash (The "Capture")
π Phase 5: ENACT, Execute instructions
π Phase 6: YIELD, Measure results
π Cycle Complete: GAUGE, Calibrate confidence & learn
from decision_moment_graph import AgenticSPARAdapter
from agentic_kit.dispatchers import LoggingDispatcher
adapter = AgenticSPARAdapter()
dispatcher = LoggingDispatcher()
result = adapter.run_loop(
spar_output,
action_executor=dispatcher.execute,
auto_execute=True
)The decision lifecycle maps directly to DMG kits and objects:
FRAME β SPAR β GATE β COMMIT β ENACT β YIELD β GAUGE
| Step | Phase | Primitive | Kit/Module | Action |
|---|---|---|---|---|
| 1 | FRAME | MEMO |
dmg/frame |
Define context & options |
| 2 | SPAR | DISSENT |
spar-kit |
Deliberate & Challenge |
| 3 | GATE | RAMP |
dmg/gate |
Check Governance & Reversibility |
| 4 | COMMIT | MOMENT |
dmg/core |
Sign & Hash (The "Capture") |
| 5 | ENACT | β | β | Execute instructions |
| 6 | YIELD | OUTCOME |
dmg/yield |
Measure results |
| 7 | GAUGE | RETRO |
dmg/gauge |
Calibrate confidence & learn |
| Module | Purpose |
|---|---|
agentic_adapter.py |
Core DMG Lifecycle adapter |
spar_adapter.py |
Converts SPAR to DMG |
sparkit_runner.py |
Embedded SPAR runner |
swarm_coordinator.py |
Parallel agent swarm orchestration |
audit_export.py |
Compliance reports |
Note: Core primitives (
Memory,Dispatchers,Hub,Reflection) are now imported fromagentic-kit.
decision-moment-graph/
βββ dmg/ # Python Package
β βββ schema/ # JSON Schema definitions
β βββ sdk/ # Reference implementations
β βββ cli/ # Validator CLI
βββ conformance/ # Test fixtures + runner
βββ docs/ # Implementation Docs
Note: Normative specs have moved to
decision-moment-standard/spec.
DMG provides a Context Engine MCP Server for AI Agents:
- Tools:
validate_moment(path): Run MERIT validation on any filecreate_moment_scaffold(title): Generate compliant JSON
- Resources:
dmg://graph/active,dmg://moment/{id} - Setup: Run
pip install mcpand point your client todmg/mcp/server.py.
| Module | Path | Purpose |
|---|---|---|
| GAUGE Emitter | src/gauge-emitter.js |
Ecosystem event emission at phase completion |
| Decision Replay | src/replay.js |
Counterfactual analysis and training data |
// Decision replay example
const { captureSnapshot, replayDecision, REPLAY_MODES } = require('dmg/src/replay');
const snapshotId = captureSnapshot(decision);
const replay = replayDecision(snapshotId, {
mode: REPLAY_MODES.COUNTERFACTUAL,
modifications: { context: { budget: newBudget } }
});For consequential decisions (RAMP β₯ 3) marked Final/Approved:
β
Scheduled outcome check required
β
At least 1 dissent captured (or ZK-Dissent ref)
β
Rollback owner named
β
β₯2 reversal signals defined
β
At least 1 prediction with confidence
DMG is the open standard toolkit. ARANGAM provides premium infrastructure.
| What You Get | DMG (OSS Kit) | ARANGAM Platform |
|---|---|---|
| DMG Core Schemas | β | β |
| Validator CLI | β | β |
| Reference Libraries | β | β |
| Hosted MOMENT Ledger | β | β Hash-chained audit trail |
| Team Collaboration | β | β Approvals + workflows |
| Enterprise Governance | β | β SSO + retention policies |
The kit is free. The infrastructure is premium.
See ATTRIBUTION.md for attribution guidelines.
| Component | Role |
|---|---|
| Decision Moment Graph | The Standard for reversible, auditable decisions. |
| VAULT-KIT | The Protocol for privacy-first coordination. |
| agentic-kit | The Infrastructure for reliable agent systems. |
Built by SYNTHAI, Decision Intelligence for the AI Era.