Skip to content

ReedBarrus/DynamicalMemoryEngine

Repository files navigation

Dynamical Memory Engine

Dynamical Memory Engine is a provenance-conserving framework for transforming live or recorded signals into auditable dynamical memory over time.

It is designed to preserve lawful lineage across ingest, alignment, windowing, transformation, compression, anomaly detection, segmentation, substrate memory, and higher-order interpretation without collapsing the distinction between raw signal, derived state, observational memory, and promoted consensus.

Core Idea

Most signal and modeling systems are good at producing outputs, but weak at preserving the full lawful story of how those outputs came to be.

Dynamical Memory Engine is built around a different priority:

  • preserve provenance across every transformation layer
  • keep authority boundaries explicit
  • treat derived state as distinct from observational/query surfaces
  • preserve rupture and segment boundaries rather than smearing them
  • allow higher-order interpretation without pretending interpretation is canon

The result is a framework for dynamical modeling that can say not only what a state is, but also:

  • where it came from
  • under what policy it was formed
  • what segment context it belonged to
  • what later layers are allowed to claim about it

Current Status

This repository currently centers on Door One, the foundational layer of lawful state formation and substrate memory.

Door One covers the base path from signal intake through compressed dynamical state, anomaly-driven segmentation, substrate organization, and observational reporting.

Later layers are planned as separate architectural doors:

  • Door One — lawful state formation, segmentation, substrate memory, provenance conservation
  • Door Two — interpretation, prediction, explanatory layering, non-canonical read models
  • Door Three — action, agency, control, and higher-order operational loops

Design Principles

  • Provenance first — every transformation should preserve lawful lineage
  • Bounded authority — no layer may claim more than it has earned
  • State is not signal — derived state must remain distinct from raw input
  • Query is not truth — observational read models are not canonical artifacts
  • Runtime is not canon — orchestration and storage do not create authority by themselves
  • Consensus is promotion-only — canonical promotion must remain explicit and bounded
  • Rupture matters — novelty and segmentation boundaries must be preserved rather than blurred

Repository Structure

/
  README_MasterConstitution.md
  README_WorkflowContract.md
  README_ConstitutionAppendix.md
  README_SubstrateLayer.md
  README_DevelopmentPressure.md
  README_RepoPlacementConstitution.md
  README_DevelopmentalPressure.md
  README_DoorOneRuntimeBoundary.md
  package.json
  vite.config.js
  index.html

  operators/
    ingest/IngestOp.js
    clock/ClockAlignOp.js
    window/WindowOp.js
    transform/TransformOp.js
    compress/CompressOp.js
    anomaly/AnomalyOp.js
    merge/MergeOp.js
    reconstruct/ReconstructOp.js
    query/QueryOp.js
    basin/BasinOp.js
    consensus/ConsensusOp.js
    sampler/AnalogSamplerOp.js
    trajectory/SegmentTracker.js
    trajectory/TrajectoryBuffer.js
    substrate/MemorySubstrate.js

  runtime/
    DoorOneOrchestrator.js
    run_hud_demo.js
    TrajectoryInterpretationReport.js
    AttentionMemoryReport.js
    CrossRunDynamicsReport.js
    CrossRunSession.js
    PromotionReadinessReport.js
    CanonCandidateDossier.js
    DoorOneWorkbench.js
    DoorOneExecutiveLane.js

  hud/
    DoorOneHUD.js
    DoorOneStructuralMemoryHud.jsx
    DoorOneStructuralMemoryHudDemo.jsx
    DoorOneStructureMemoryHudModel.js
    main.jsx
    styles.css

  scripts/
    run_pipeline_substrate.js
    run_door_one_workbench.js
    run_door_one_live.js

  tests/
    test_substrate_contracts.js
    test_door_one_orchestrator.js
    test_door_one_hud.js
    test_door_one_contracts.js
    test_trajectory_interpretation_report.js
    test_attention_memory_report.js
    test_cross_run_dynamics_report.js
    test_cross_run_session.js
    test_promotion_readiness_report.js
    test_canon_candidate_dossier.js
    test_consensus_op.js
    test_door_one_workbench.js
    test_door_one_hud_workbench.js
    test_door_one_executive_lane.js
    test_door_one_live_provenance_retention.js
    test_door_one_anti_bypass_contracts.js
    test_door_one_structural_memory_hud.js

  fixtures/
    test_signal.js

  out/

Recommended Reading Order

For a new reader:

README.md

README_MasterConstitution.md

README_WorkflowContract.md

README_ConstitutionAppendix.md

README_RepoPlacementConstitution.md

README_SubstrateLayer.md

After that, move into the runtime and operator surfaces.

Governance Documents

README_MasterConstitution.md

Defines the architectural law of the system: authority boundaries, layer semantics, canonical forms, and what each part of the stack is allowed to mean.

README_WorkflowContract.md

Defines how work should be performed against the architecture so implementation does not drift from constitutional intent.

README_ConstitutionAppendix.md

Provides quick-reference supporting definitions and implementation-facing clarifications.

README_RepoPlacementConstitution.md

Defines the intended repository topology and where different classes of files belong.

README_SubstrateLayer.md

Describes the substrate memory layer, trajectory semantics, segment handling, basin organization, and observational reporting surfaces.

Current Door One Components

The current implementation includes components in the following functional categories:

Signal intake and alignment

IngestOp

AnalogSamplerOp

ClockAlignOp

WindowOp

State formation

TransformOp

CompressOp

ReconstructOp

Novelty and segmentation

AnomalyOp

SegmentTracker

Memory substrate and neighborhood organization

MemorySubstrate

TrajectoryBuffer

BasinOp

Aggregation and observation

MergeOp

QueryOp

TrajectoryInterpretationReport

Runtime and inspection

DoorOneOrchestrator

DoorOneHUD

run_pipeline_substrate.js

What This Repository Is Not

This repository is not trying to:

collapse all modeling into one universal ontology

pretend interpretation is the same as authoritative state

hide uncertainty behind polished outputs

treat runtime convenience as canonical truth

replace scientific rigor with aesthetic abstraction

Instead, it aims to provide a lawful base from which deeper interpretation can emerge without breaking provenance.

Why This Matters

If a modeling system cannot preserve the history of its own transformations, then it becomes increasingly difficult to distinguish:

real structure from artifact

lawful inference from projection

stable memory from overwritten convenience

genuine rupture from smoothed-over drift

Dynamical Memory Engine is an attempt to build a system that stays accountable to its own history while still remaining useful for live dynamical modeling.

Long-Term Direction

The long-term goal is not only to model evolving systems, but to create a framework that can recursively refine its own descriptive power through contact with reality.

That means building an engine that can:

preserve lawful lineage

remain open to rupture and novelty

support interpretation without confusing it for canon

generate deeper frameworks only when the limits of the current framework are actually encountered

Development Status

This is an actively evolving research and engineering project.

The core architecture is under active refinement, with current emphasis on:

constitutional consistency

provenance conservation

lawful operator contracts

substrate memory semantics

preparation for higher-order interpretive layers

License

TBD

Contributing

Contribution guidance is not yet formalized. For now, treat the constitution and workflow contract as the governing references for any architectural change.

About

A provenance-conserving engine for auditable dynamical modeling and memory over time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages