Skip to content

izumix77/decisiongraph-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI Decision Lint

DecisionGraph Core

DecisionGraph Core is a deterministic kernel for recording, traversing, and replaying human decisions as first-class graph assets.

AI may generate meaning. Humans must fix meaning. DecisionGraph Core stores that fixed meaning.


What this is

DecisionGraph Core is not a search engine and not an AI reasoning system.

It is a domain-agnostic, language-independent kernel that treats decisions as:

  • explicit
  • inspectable
  • replayable
  • auditable

If your system needs to answer:

  • Why was this decided?
  • What does this decision depend on?
  • Is this decision still valid at a given time?

DecisionGraph Core provides the structural layer to answer those questions without inference or guessing.


What this is NOT

DecisionGraph Core intentionally does not:

  • perform AI inference or reasoning
  • judge correctness, ethics, or quality
  • generate content
  • optimize or recommend decisions
  • act as a workflow or approval system

Those belong to interface layers, policies, or human judgment — not the kernel.


Core idea

Decisions are treated as state transitions, not opinions or predictions.

  • Every decision has an author
  • Every decision has a commit point
  • Every relationship is explicit
  • Once committed, structure is append-only

Changes are expressed by supersession, never mutation.

This makes decision history:

  • replayable
  • diffable
  • auditable
  • explainable across time

Design principles

DecisionGraph Core is built around a Constitution-first model:

  • The Constitution defines non-negotiable requirements
  • APIs and schemas must comply with the Constitution
  • Policies may extend, but never weaken, constitutional guarantees

Key guarantees:

  • Determinism — same input always yields the same output
  • Immutability — committed decisions cannot be altered
  • Replayability — past states can be reconstructed exactly
  • Auditability — every decision traces back to a human author
  • Lintability — structural violations are detectable before use

These are enforced at the kernel level, not by convention.

Identity scope (v0.4)

All identifiers are GraphStore-wide unique:

  • NodeId — unique across all Graphs in the store
  • EdgeId — unique across all Graphs in the store
  • CommitId — unique across all Graphs in the store

GraphStore represents one world. A commitId is a point in shared time, not a local marker within a single Graph.

Graph-local uniqueness is intentionally not supported in v0.x.

Supersession model (v0.4)

Node supersession is topology-derived, not stored:

  • Node carries no status field
  • effectiveStatus(store, nodeId) returns "Active" or "Superseded" by traversing supersedes edges
  • This eliminates the category error of a proposition containing its own negation

Edge supersession remains axiomatic:

  • Edge.status is "Active" or "Superseded" (binary; "Deprecated" removed)
  • supersede_edge is atomic — old edge marked Superseded and new edge added in a single operation

Decisions as a graph

Each decision is a node. Each relationship is an explicit, typed edge.

Decision A
 └─ depends_on → Decision B
      └─ supersedes → Decision C   (C is topology-derived Superseded)

There is no hidden meaning and no implicit inference. The structure is the data.


Language independence

Natural language is treated as a view, not as a source of truth.

The kernel operates on stable identifiers and structure. Human-readable text exists for interpretation and presentation only.

This allows:

  • multi-language representations
  • deterministic behavior
  • stable replay across time and systems

Typical use cases

DecisionGraph Core is suited for domains where decisions must remain accountable over time:

  • Architecture Decision Records (ADR)
  • Research and experimental reasoning
  • Legal and regulatory decision tracking
  • Governance and policy evolution
  • High-risk or long-lived system design

It is not intended for end-user productivity tools or consumer-facing AI features.


Project structure

This repository is a monorepo.

docs/
  constitution/v0.4/   # Normative specification (supreme authority)
packages/
  core/                # Deterministic kernel (domain model, replay, diff)
  schema/              # JSON Schema validators (structural only)
  io-json/             # JSON ↔ core mapping and normalization
  cli/                 # CLI wrapper (non-normative interface)

The normative source of truth is docs/constitution/v0.4. If there is any conflict between documentation and implementation, the Constitution MUST take precedence.

Key documents

  • README.md — this file (overview)
  • Constitution v0.4 — normative requirements (supreme authority)
  • JSON Schema v0.4 — data validation rules
  • Minimal Kernel API v0.4 — implementation specification

Recommended reading order:

  1. README
  2. Constitution
  3. JSON Schema
  4. Kernel API

Versioning

DecisionGraph Core follows explicit versioning.

Breaking changes are documented and require migration. v0.4 removes Node.status (supersession is now topology-derived via effectiveStatus), simplifies EdgeStatus to binary (Active | Superseded), removes the overrides edge type, and removes the supersede_node operation.


Open source boundary

Open (this repository)

  • Deterministic graph model
  • Validation and replay logic
  • Constitutional guarantees
  • Language-independent structure

Out of scope

  • Organizational workflows
  • Responsibility attribution systems
  • AI agents and prompt logic
  • Proprietary governance layers

The kernel remains neutral and reusable across domains.


Status

  • Current version: v0.4 (core@0.4.2, schema@0.2.0, io-json@0.2.0, cli@0.1.3)
  • Stability: Stable RC
  • Normative authority: Constitution v0.4

License

MIT License


Architectural Integrity

See INTEGRITY_PLAYBOOK.md

About

Deterministic graph kernel for recording, validating, and replaying human decisions.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors