Skip to content
Moissanite-LabsPublic

About

ML Weft: open research on adaptive models that change themselves within bounds you can check.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

ML Weft: become the weaver

ML Weft

Become the weaver.
Open research on adding and transferring capabilities in trained networks under bounds we can check.
A Moissanite Labs project · w3ft.org

CI Code: Apache-2.0 Docs: CC BY 4.0 Status: early research


We study how to add a capability to a trained network, or transfer one into an independently trained sibling, without degrading what it already does off the distribution of the tasks we mean to keep.

Our working hypothesis: commit weight edits only inside the null space of the kept capabilities' input–output Jacobian, and express transferable skills in permutation-free coordinates rather than raw weight indices. We have not shown that hypothesis holds. The C2 gate in this repository still enforces baseline Frobenius drift (‖W − W₀‖_F ≤ R) and metabolic budget; Jacobian null-space projection is the direction in #149.

The first toy transfer run, E11 in #150, was judged confounded on independent review: the recipient had already solved task 2 before transfer. A matched-transfer rerun is preregistered in weft-loom.

This repository holds the software we use to run those falsifiers, alongside three structural commitments:

  • Models as cells. Each model is treated as a cell in a shared memory arena. A cell proposes a cautious and an exploratory update, keeps whichever does better on its target, and leaves a frozen core untouched while the edges adapt.
  • Bounds you can check. A weight update is committed only if it stays within a fixed distance of a saved baseline, ‖W − W₀‖_F ≤ R, and fits its resource budget, budget ≥ cost > 0. The same predicate is implemented in Python, C11 and JavaScript. Python and C11 are tested against one shared vector file with 27 cases: 15 weight-update, 8 tension and 4 royalty. The JavaScript gate covers weight updates only and runs 10 of those 15 cases, with the other 5 listed as deferred in its test.
  • Interfaces as fields. Eido, Weft's design language (internal name Aywa), treats visual style as a point in a continuous space and feeds the screen small hash-checked lines instead of loose JSON.

Weft began as a long design conversation. That corpus is kept word for word in Moissanite-Labs/weft-corpus, and this repository turns it into code that runs, tests that can fail, and documents that say plainly which is which. Experiment records, audits and design notes are kept in Moissanite-Labs/weft-loom; this repository holds the software, the site and the papers.

Important

No token. No sale. Nothing on-chain. Weft has no coin or token and nothing deployed to any blockchain. The Solidity files in weft/runtime/ledger/ are research drafts that run only inside an offline simulator.

Status

Component Path What it is Status
C1 · Plasm weft/runtime/plasm Shared-memory arena, A/B candidate updates, frozen-core mask, provenance watermark checks ✅ runs · tested
C2 · Invariants weft/runtime/invariants The safety gate in Python, C11 and JS, tested against one shared file of 27 conformance vectors (JS has the weight-update gate only and runs 10 of its 15 vectors) ✅ runs · tested
C3 · IC weft/runtime/ic Interaction-combinator reducer, binary serializer, graph-committed execution record ✅ runs · tested
C4 · Ledger weft/runtime/ledger Solidity drafts for provenance, metering and disputes 📝 draft · not compiled in CI, never deployed
C5 · Gateway weft/runtime/gateway Offline contract simulator, pure-Python Keccak-256, ABI topic checks 🧪 simulation only
C6 · Telemetry weft/runtime/telemetry Host metrics, 64-byte frames, telemetry-line encoder ✅ runs · tested (site data is a fixture)
C7 · Aywa weft/runtime/aywa, site/ Weft's field: packet verifier, telemetry worker, WebGPU loom, built on Eido modules ✅ runs · tested
Mac harness weft/runtime/mac Apple Silicon entry points that wrap C1 and C6 🧪 wrappers, no native Metal kernels yet

Not built yet: a bare-metal OS, RTL or FPGA designs, custom silicon, the peer-to-peer mesh, or any deployed governance system. Each stays a design branch with its own next experiment. See the convergence plan.

Quick start

You need Python 3.12 or newer, Node 20 or newer, and a C compiler (cc, clang or gcc). Nothing below touches the network beyond installing packages, and nothing touches a blockchain.

git clone https://github.com/Moissanite-Labs/weft
cd weft
python3 -m venv .venv && . .venv/bin/activate
pip install numpy torch

Run what CI runs:

python -m unittest discover -s weft/runtime/invariants -p 'test_*.py'   # C2: safety gate, Python + C11
python -m unittest discover -s weft/runtime/plasm -p 'test_*.py'        # C1
python -m unittest discover -s weft/runtime/ic -p 'test_*.py'           # C3
python -m unittest discover -s weft/runtime/telemetry -p 'test_*.py'    # C6
python -m unittest discover -s weft/runtime/gateway -p 'test_*.py'      # C4/C5 simulator
python -m unittest discover -s weft/runtime/aywa -p 'test_*.py'         # C7 (Python)
node --test weft/runtime/aywa/test_*.mjs                                # C7 + site modules
python weft/runtime/aywa/site_selftest.py                               # website bundle
python weft/runtime/core/selftest.py

Preview the website locally:

python3 -m http.server 8000 --directory site

Then open http://localhost:8000. On a Mac, docs/program/use-now.md explains how to record a hardware baseline and check whether the MPS backend is actually available.

Repository layout

weft/runtime/        Code: the C1–C7 components and the Mac harness, each with its own README and tests
site/                The w3ft.org website: static, deployed by wrangler.jsonc (site/papers/ is generated)
papers/              The paper series: Markdown sources, experiments, figures and the HTML/PDF templates
docs/                Documentation: mission, roadmap, glossary, interface specs, design notes, the build program
docs/program/        Build program, convergence plan and experiment cards (the records themselves are in weft-loom)
docs/corpus/         Claims register, safety index and digests of the source material
scripts/             Corpus audit, site sync and browser tests

How to read this project

Weft uses biological names on purpose: cells, membranes, mitosis, homeostasis, hippocampal lattice. They name the behaviour the design is reaching for. They don't claim the code is biology, or that it has arrived. The project holds itself to a few rules:

  • A stated rule is not a checked rule. Docs say which predicates the executable path actually enforces.
  • A narrated command in the corpus is not evidence that it ran. Evidence is a test in CI or a recorded run.
  • Every vision term has a plain description of what the code does today. See the glossary and the claims register.

Documentation

Related repositories

Repository What it holds
weft-loom The research side: experiment records with preregistrations and results, audits with their evidence, incident write-ups and design notes. Code here may cite a record there, but does not copy it.
weft-eido Eido, the design language: philosophy and dependency-free modules. site/ vendors four of them.
weft-corpus The original discovery sessions, verbatim. Corpus paths cited in code and docs here (for example weft/design/craft.md:136) refer to that repository.
abios Weft's agent-messaging protocol (SYM-2P). The telemetry line here is an earlier dialect; moving it onto abios is #67.

Files under site/ that come from those repositories are pinned by hash in site/VENDORED.json. Update them with python3 scripts/vendor.py --eido ../weft-eido --corpus ../weft-corpus.

Contributing

Contributions that make a claim testable, or show that one is wrong, are the most valuable thing you can send. Start with CONTRIBUTING.md. Every commit needs a DCO sign-off (git commit -s). Good places to begin: #43, #44, #45, #51 and #52.

Please follow the Code of Conduct. Report security issues privately as described in SECURITY.md.

Citing

GitHub's Cite this repository button reads CITATION.cff. Each paper's page on w3ft.org/papers has its own citation. Software releases and paper preprints will be archived on Zenodo once the owner cuts the first GitHub release and publishes the records (releasing).

License

  • Code (weft/runtime/, scripts/, site/, workers/, siliconcordat/, .github/, and the code in papers/) is under the Apache License 2.0.
  • Documentation (docs/, the Markdown files, and the papers with their figures and HTML/PDF editions) is under CC BY 4.0. Code listings inside documents may also be used under Apache-2.0.

See NOTICE for details and attribution. "ML Weft" and "Moissanite Labs" are names of Moissanite Labs. The licenses do not grant trademark rights.

About

ML Weft: open research on adaptive models that change themselves within bounds you can check.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages