Skip to content

Releases

SwarmblyLCE 0.2.1: glossaries as people write them

Choose a tag to compare

@Sebastardito Sebastardito released this 18 Nov 04:33

Released with Swarmbly App 0.6.0 and Swarmbly AI 3.3.0. The research results of 0.1.x and the C1 behaviour of 0.2.0 are unchanged, except for the glossary formats below.

  • Glossary formats. Besides one pair per line (term = equivalents, also →, ->), a glossary may be a Markdown table (the first column is the term, the second its equivalent; the header row is skipped), put several pairs on one line separated by ;, write a term as code or in bold (`P1`, **P1**), and continue an entry's equivalents on an indented line. In the sealed banks v3 of Swarmbly AI 3.3, one glossary was a table and the other had three pairs on one line and code-formatted terms: C1 read none of their entries, and the questions that used one of their terms failed. passages.glossary_lines reads every format for glossary_entries, glossary_avoid and glossary_meta.

Swarmbly LCE v0.2.0 — level C1 in the package

Choose a tag to compare

@Sebastardito Sebastardito released this 09 Nov 03:50

Swarmbly LCE v0.2.0 — level C1 in the package

Level C1 of the Local Cognitive Extension (retrieval over your own documents) now lives in this package, so every Swarmbly client uses the same C1. Alpha software, not peer reviewed. Used by Swarmbly App 0.4.0 and distributed in Swarmbly AI 3.1.0.

New in this release

  • swarmbly_lce.c1: plain text from text, Markdown, Word, HTML and PDF files; paragraphs with their headings; BM25 with optional fusion with local embeddings; one cache for several sets of folders (personal sources and each project).
  • Citations that survive moving a folder. Every paragraph carries doc:<sha12>#p<n> (the file's SHA-256 prefix and the paragraph's position). If the file changes, its old citations stop resolving, and that is reported.
  • PDFs without poppler. Where pdftotext is missing, PDFs are read with pypdf (extra pdf).
  • Unrelated passages stay out. With local embeddings, a passage that shares no word with the question enters only if its meaning is close to the best match.
  • The personal glossary. In term = equivalent, equivalent, any one equivalent brings the term. After |, a line can carry corrected forms (no:), concepts kept apart (distinto:) and a Wikidata item (wd:); none of them ever widens a search.

What has not changed

The research results of 0.1.x (pre-registered runs, whitepaper v0.2) are unchanged. C1 is measured as part of the app (Swarmbly AI 3.1.0 release notes).

Licence AGPL-3.0-or-later. Whitepaper: 10.5281/zenodo.23150478. Previous software record: v0.1.1, 10.5281/zenodo.23289041.

Swarmbly LCE v0.1.1 — pre-registered pilots and repairs

Choose a tag to compare

@Sebastardito Sebastardito released this 10 Oct 22:47

Swarmbly LCE v0.1.1 — pre-registered pilots, repairs and raw outputs

This release adds the first measurements with real local models to the v0.1 design (whitepaper v0.1: doi:10.5281/zenodo.23150478). Every run was pre-registered before it was made, with decision rules as code and every amendment declared. Only confirmatory run 2 of C1/C2 is confirmatory; everything else is an exploratory pilot. Not peer reviewed.

What was measured

Confirmatory (C1/C2, run 2) — 3 synthetic users, 3 local model families (2–3B), 1,500 MMLU items:

  • Task projection makes texts honour the user's preferred terms: adherence 0.667 with Γ vs 0.033 without (diff 0.633 [0.500, 0.750]).
  • It reduces homogeneity across users beyond a non-personal placebo (0.048 [0.023, 0.070]).
  • Cross-family error agreement stays within the ±0.10 equivalence margin (Δ = 0.039 [0.009, 0.069]), with a small accuracy cost on factual items.
  • Run 1 failed its manipulation (empty projection); it is published with its C2 verdicts refused.

Exploratory pilots

  • Local memory helps (F1a, clean sources): +0.500 [0.420, 0.578] by question, 5 users × 5 families.
  • The anchored wiki loses to raw retrieval on accuracy (R13, 3 digesters × 3 responders): A3 − A2 = −0.256 [−0.317, −0.194]. The loss lies in digestion coverage: the answer reaches the context in 99.1 % of answerable questions with RAG and in 34.5–83.6 % with the wiki, depending on the digester.
  • Forgetting works (F-forget): after forget_source, no claim of the source survives and no other claim changes; the wiki equals one digested without the source; abstention on questions about the deleted source rises from 0.359 to 0.718, the never-ingested level (5 questions, mechanism only).
  • Reproducibility (A/A): generation at temperature 0 is fully reproducible (378/378 identical answers) and the stochastic homogeneity measure is stable (Δ −0.0011), but digestion is not always reproducible across runs (8/15 wikis identical), so the R14 re-run criterion is not yet closed.
  • Retracted or corrected: the R11 adapter pilot (not a fair test: collapsed adapter, invalid tasks) and the R12 social-plane run (compatible with invariant I4, but not a measurement of it). Their documents are kept as history, clearly marked.

Repairs found in review (all declared in Amendment 6)

  • E1–E5: an analysis that overwrote digesters, recency retrieval sorted in reverse, a deleted source digested into the wiki, benchmark question files ingested as sources in F1a, and a mismatched comparison for the cost of Γ. Affected figures were retracted and re-measured; each repair now has a test that fails if the defect returns.
  • Model digests are checked against a versioned manifest before any run.
  • Every figure cited in the results documents, the SWIP and the README is recomputed from the stored raw outputs by the test suite (run_derive, tests/test_doc_figures.py).

Contents

  • Pre-registrations: docs/PREREGISTRATION_C1_C2_*, docs/PREREGISTRATION_BENCH_R1X_* (amendments 1–6), docs/PREREGISTRATION_R12_*.
  • Results in English and Spanish: docs/RESULTS_*; integrated report results/BENCH_REPORT.md.
  • Raw outputs of every run in results/, with provenance (commit, model digests, Python and Ollama versions).
  • Harness: ten instrument tests pass in simulation; scripts/run_c1_c2_mac.sh and scripts/run_forget_aa_mac.sh reproduce the runs on a Mac with Ollama.
  • SWIP revision 3 with the measured validation status.

Note on history

Commit 17b52b5 mistakenly included the weights of an R11 adapter derived from Qwen2.5-3B-Instruct (qwen-research licence, not distributable). History was rewritten from that commit before publication to remove them; the final tree did not change. docs/COMMIT_MAP_2026-10-10.md maps the 18 previous commit identifiers, which the raw outputs keep in their provenance, to the published ones. No model weights are distributed in this repository.

Next

Deterministic digestion, then repeating AA2 to close R14; confirmatory R13 (≥250 questions, ≥30 per type, LongMemEval subset) and a fair R11; native-speaker verification of the canary set; whitepaper v0.2.

Licensing: code AGPL-3.0-or-later; texts CC BY 4.0.

Swarmbly LCE v0.1.0 — design, reference implementation and harness (draft, no results)

Choose a tag to compare

@Sebastardito Sebastardito released this 05 Oct 04:55

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, and run_real runs 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.
  • MLXLoRATrainer is 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.