Skip to content

Repository files navigation

Machine-Native Experimental Learning

Machine-Native Experimental Learning (MNEL) is an evidence-governed experimental learning framework in which autonomous investigators propose hypotheses, design bounded interventions, invoke deterministic tools and verifiers, and submit observed outcomes for causal attribution and verified-experience distillation.

MNEL does not treat model output as knowledge or authority.

investigators propose
        |
        v
learned micro-providers locate surprise and omitted-question candidates
        |
        v
Forge-compatible probes interrogate bounded claims
        |
        v
MNCS Fabric-compatible executors run identified experiments
        |
        v
immutable evaluators derive PASS / FAIL / UNKNOWN
        |
        v
causal attribution separates result from explanation
        |
        v
Verified Experience Distillation proposes principles and strategies
        |
        v
RAVEL receives separately governed candidate knowledge

The project explores a learning process built from persistent machine-readable experience, negative memory, causal attribution, transfer-gated principles, reusable strategies, and append-only candidate lineage rather than relying exclusively on conventional neural-weight training.

Current status: functional 0.1.0a0 foundation. The repository implements the core local lifecycle, deterministic evidence ledger, hard-gate evaluator, recursion governor, investigator contracts, a diagnostic-only learned micro-provider registry, and a testable Rust-first provider runtime contract. It does not yet train or execute learned micro-providers, provide unattended model execution, distributed scheduling, protected final custody, formal MNCS/MNCDS conformance, or automatic RAVEL promotion.

Core rule

Investigators and learned providers may propose knowledge. They may not declare it true.

The model or agent that creates a hypothesis must not also become the authority that accepts the resulting lesson. Evaluator identity, hard gates, partitions, resource ceilings, custody, and promotion remain outside the investigator and learned-provider surfaces.

Relationship to the project family

Project MNEL role
MNEL-local-harness Routes work across local models and exposes bounded tools to investigator roles
MNCS Forge Supplies provider-neutral micro-verifiers, diagnostic probes, snapshots, and counterfactual witnesses
MNCS Fabric Executes and reconciles content-addressed experiments across machines
RAVEL Supplies the adaptive mechanism and consumes governed experience or candidate proposals
MNCDS Records candidate generation, evidence eligibility, feedback boundaries, and lineage
MNCS Evaluates frozen bounded claims; MNEL cannot issue conformance by itself

MNEL integrates with those systems through explicit records and adapters. It does not copy their authority or silently create substitute implementations.

Implemented foundation

  • canonical JSON and SHA-256 identities;
  • append-only hash-chained JSONL evidence ledger;
  • explicit experiment lifecycle and state transitions;
  • investigator, skeptic, replicator, synthesizer, and auditor role contracts;
  • immutable authority and resource-policy checks;
  • development, selection-observed, transfer-hidden, and future-final visibility labels;
  • independent hard-gate evaluation with PASS, FAIL, and UNKNOWN;
  • causal-attribution records distinct from evaluator verdicts;
  • Verified Experience Distillation (VED) principle and strategy proposals;
  • transfer gating, source lineage, falsifiers, counterexamples, and negative memory;
  • provider-neutral adapters for the local harness, Forge, MNCS Fabric, and RAVEL;
  • typed learned micro-provider declarations and diagnostic observations;
  • deterministic capability matching, cost filtering, and diversity-aware selection;
  • an initial 12-family architecture catalog with declared advantages and limitations;
  • accepted Rust-first runtime architecture decision and versioned C ABI;
  • safe Rust provider SDK, host admission policy, reusable snapshot cache, and runtime manifest validation;
  • deterministic reference workflow, JSON schemas, mutation-oriented tests, and CI.

Install

python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e .

MNEL currently requires Python 3.11 or newer and has no Python runtime dependencies outside the standard library. Building the provider runtime contracts additionally requires Rust 1.79 or newer.

Quick start

Inspect the environment and built-in role contracts:

mnel doctor
mnel investigator list

Inspect the learned micro-provider catalog:

mnel learned-provider list
mnel learned-provider describe latent.transition-jepa
mnel learned-provider match \
  --uncertainty unexpected-transition \
  --artifact candidate-transition \
  --snapshot transition-feature-snapshot \
  --max-cost low

Request a heterogeneous panel rather than the highest-scoring correlated providers:

mnel learned-provider match \
  --uncertainty temporal-anomaly \
  --uncertainty unexpected-transition \
  --uncertainty metric-inconsistency \
  --diverse \
  --limit 4

These commands inspect declarations and matching only. They do not download, train, or execute any model.

Run the deterministic reference lifecycle:

mnel demo --workspace build/demo

The demo preregisters a bounded experiment, records an observation, evaluates hard gates, attributes the intervention, and creates a provisional principle proposal. It does not call a model or modify RAVEL.

Verify and summarize the resulting ledger:

mnel ledger verify build/demo/evidence.jsonl
mnel ledger summarize build/demo/evidence.jsonl

Experiment lifecycle

draft
  -> preregistered
  -> running
  -> observed
  -> evaluated
  -> attributed
  -> distilled proposal

Any stage may terminate as rejected or UNKNOWN. A successful task metric alone does
not establish causal understanding, transfer, conformance, independence, or promotion.

Each material record binds its source identities, visibility, experiment identity, parent or candidate identity where applicable, and the authority that produced it.

Learned micro-providers

The registry starts with transition and graph JEPA variants, a message-passing GNN, selective state-space and temporal convolution sequence models, a contrastive Siamese encoder, Deep SVDD, a denoising autoencoder, a tiny transformer, gradient-boosted trees, a hidden Markov model, and reservoir computing.

The portfolio is intentionally heterogeneous. Each architecture has a declared input view, purpose, objective, cost, size range, strengths, and limitations. Learned outputs remain diagnostic-only, carry verdict_semantics: not-a-verdict, and can only help an investigator decide which bounded Forge question to ask next.

See Learned micro-provider registry.

Provider runtime implementation policy

Rust is the reference and default production language for the persistent provider host, provider SDK, dispatch, budget enforcement, snapshot reuse, and CPU-first provider implementations. Python remains the training, calibration, experimentation, export, and high-level orchestration language.

The stable cross-language boundary is mnel-provider-c-abi/1. Native-trusted providers must be Rust unless an identified benchmark and threat review justify a specialized non-Rust implementation. WASM is reserved as a quarantine and portability tier. Admitted providers are persistent, weight-resident, and consume identity-bound compact binary snapshot views; process startup and JSON parsing are not part of the normal hot path.

See ADR 0001 and the learned-provider runtime contract.

Investigator roles

  • Investigator — proposes falsifiable hypotheses and bounded interventions.
  • Skeptic — searches for alternative explanations, omitted assumptions, and verifier gaps.
  • Replicator — repeats frozen experiments across seeds, nodes, or providers.
  • Synthesizer — proposes principles and reusable strategies from eligible attributions.
  • Auditor — checks lineage, contamination, budgets, identity, and authority boundaries.

These are contracts, not trusted personalities. A role label does not grant execution or acceptance authority.

Verified Experience Distillation

VED is the consolidation stage inside MNEL:

verified episodes
  -> evaluator-derived effects
  -> causal attribution
  -> provisional principle
  -> transfer tests
  -> supported strategy
  -> separately evaluated RAVEL candidate proposal

Distillation never deletes the raw evidence. A compact lesson retains references to supporting attributions, known counterexamples, falsifiers, declared scope, transfer state, and failure modes.

Repository map

src/mnel/                          Python control plane and executable foundation
crates/mnel-provider-api/          versioned provider ABI vocabulary
crates/mnel-provider-sdk/          safe Rust provider authoring surface
crates/mnel-provider-host/         admission policy and reusable snapshot storage
include/                           language-neutral provider ABI header
schemas/                           machine-readable record vocabulary
docs/                              architecture, decisions, method, boundaries, roadmap
examples/reference-study/          deterministic lifecycle example
examples/learned-providers/        architecture catalog and runtime manifest example
tests/                             lifecycle, integrity, registry, runtime, negative tests
.github/workflows/                 Python and Rust continuous verification

Run the checks

python -m compileall -q src tests
python -m unittest discover -s tests -v
python -m mnel learned-provider list
python -m mnel demo --workspace build/demo
python -m mnel ledger verify build/demo/evidence.jsonl
cargo fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace

Safety and claim boundary

The current command adapters use argument arrays with shell=False, but MNEL is not an operating-system sandbox. Untrusted experiment execution belongs in a hardened runner with network restrictions, resource controls, immutable verifiers, and disposable workspaces.

The provider runtime crates establish contracts and admission policy; they do not yet implement a hardened dynamic loader or operating-system sandbox.

A local MNEL result or learned-provider observation can describe bounded development context. It cannot by itself establish independent evaluation, protected custody, real-world safety, general recursive self-improvement, formal MNCS/MNCDS status, certification, or promotion.

See Architecture, Learning model, Learned micro-providers, learned-provider runtime, Threat model, and Roadmap.

About

An evidence-governed experimental learning framework where autonomous investigators propose hypotheses, run bounded experiments through Forge and MNCS Fabric, and compile verified experience into reusable RAVEL knowledge.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages