Repository navigation
Swarmbly LCE v0.1.0 — design, reference implementation and harness (draft, no results)
Swarmbly LCE (Local Cognitive Extension) is a local-first extension to the Swarmbly decentralized inference protocol. Each user keeps on their own device a readable memory whose claims are anchored to their own sources, and a lightweight adapter that learns only their voice and procedures, never facts. Nodes may optionally exchange small signed knowledge capsules on demand. Workers keep serving their base model, so verification is untouched.
Status: draft. Nothing has been measured. This release contains the design, the normative specification, a reference implementation and a validation harness. Its instrument tests pass in simulation, which shows that the measures respond to what they measure, not that the extension works. Results with real models will come in v0.2.
What's in this release
- Whitepaper v0.1 (EN/ES, Markdown and PDF): rationale, accepted and discarded homologies, adverse evidence, architecture, 8 invariants, 17 pre-registered hypotheses with abandonment conditions, 12 declared limitations, prior-art elements EC1–EC11.
docs/WHITEPAPER_LCE_EN.md·docs/WHITEPAPER_LCE_ES.md - Specification v0.1 (EN/ES): components, schemas, RFC 2119 rules, parameters, and a section-to-module map.
docs/SPEC_LCE_EN.md·docs/SPEC_LCE_ES.md - SWIP, revision 2: the protocol-facing part (cognitive capability block and capsule messages).
swips/ swarmbly_lce: reference implementation of the whole specification. It covers the learning policy, the anchored and typed wiki with maturity states and dependency invalidation, task projection onto Γ with double privacy classification, the worker guard, the social cache with the prevalence-as-label rule, decaying affinity, signed capsules (BLAKE2b over canonical JSON, Ed25519), replica planning from a loss tolerance, the plural response, and the adapter pipeline (eligibility, replay, fresh-test gate, forgetting by regeneration) with a pluggable trainer.lce_validation: the harness. Six instrument tests (anchoring, conformity, migration, persistence, selection bias, collapse) must pass before any measurement is trusted. It also runs mock-backend experiments that exercise the pipeline, andrun_realruns C1/C2 against real models via Ollama or any OpenAI-compatible server.- Tests: 77 unit tests, one per invariant I1–I8, on CI for Python 3.10–3.13.
Quick start
pip install -e '.[dev]' # extras: crypto (Ed25519), yaml, mlx (experimental LoRA on Apple Silicon)
python -m pytest
python -m lce_validation.run_all # instruments + mock experiments (not evidence)
# real runs (at least two model families)
python -m lce_validation.run_real --models qwen2.5:3b,llama3.2:3b,gemma2:2b
Known limitations of this release
- No real-model results yet. Mock and simulation outputs are never reported as evidence.
- The canary set (
lce_validation/data/canary_es-EC.json) is unverified until native speakers confirm each gloss. MLXLoRATraineris experimental and has not been exercised in CI.- Three bibliography entries have one field still unconfirmed ([37], [59], [61] in
docs/REFERENCES_LCE.md).
Citation
Whitepaper: DOI 10.5281/zenodo.23150478 · Software: DOI assigned by Zenodo for this release. Extends the Swarmbly protocol, whitepaper v2: 10.5281/zenodo.23031305.
Licences: code and specification AGPL-3.0-or-later; documentation CC BY 4.0.