# ELLM prototype architecture ## Design target Support the requested pattern—observe, accumulate, verify, incubate, then release—without pretending that a static model can autonomously and safely add parameters from the open web. The current code includes a pinned SmolLM2-135M base model, an experimental synthetic-task LoRA adapter for advisory triage, a base-only local draft generator, local lexical retrieval, an evidence gate, and a ledger. It has no crawler, tool executor, or hosted service. ## Three learning speeds | Layer | Update rate | Contents | Release rule | |---|---:|---|---| | Working context | Per request | Current question and retrieved passages | Never treated as durable truth | | Evidence memory | Continuous, read-only observation | Authorized source metadata, privacy decision, short excerpts, hashes, claims, support and conflict links | Retrieval uses only evidence cited by claims that pass external verification and incubation | | Model/adapters | Deliberate, offline releases | Pinned SmolLM2-135M base, ELLM LoRA candidate, prompt and policy versions | Held-out evaluation, regression checks, human release decision, version pin, canary, rollback | The initial model artifact is an adapter candidate trained only on procedurally generated policy examples. It does not add web facts. The main future knowledge-growth path is retrieval over promoted evidence; RAG combines a generator with updateable non-parametric memory, but retrieval does not itself prove the retrieved material is correct ([Lewis et al.](https://arxiv.org/abs/2005.11401)). ## State flow allowlisted source | v rights / terms / robots review ---- failure ---> quarantine; no retrieval | v provenance ledger + content hash | v candidate claim <---- contradiction or correction | v external passage verification | v incubation + independent-source thresholds | | | fail / incomplete | pass v v WAIT / ABSTAIN / HUMAN REVIEW promoted retrieval memory | v cited answer, low risk only ## Release policy The current default requires the claim itself to have been observed for 30 days and waits for a 30-day span between the earliest and latest signed, externally verified support. Every counted support receipt must be no older than 180 days. Four fresh verified records, three publishers, three independence groups, and one primary source are required. The code prevents configurations below those floors. These values exist to make the code fail closed and make the delay visible. They are not empirically calibrated. Any contradiction returns human review. No free-form draft is accepted; only submitted structured propositions can be released. The current code does not verify that an upstream claim scanner found every assertion, so claim-set completeness remains an explicit deployment gap. High/critical-risk claims and non-informational actions do not auto-release. The gate does not execute actions. No single weighted score decides promotion. A scalar score can conceal a failed hard requirement; this implementation requires every threshold. If later research adds a learned ranker, it must not override rights, risk, contradiction, or authorization gates. ## Weight-change promotion protocol The included adapter is an experimental candidate for one synthetic triage task. It is not calibrated for deployment and cannot bypass the deterministic release gate. Any later candidate must follow a separate, reproducible offline process: 1. Use only data with documented training permission and deduplicate against prior corpora. 2. Create a candidate adapter/checkpoint with pinned base-model, tokenizer, code, and dataset revisions. 3. Evaluate held-out correctness, reliability, generalization, citation support, safety, cost, and regression. Synthetic closed-world results must be labeled synthetic and cannot stand in for real source-verification data. 4. Compare to the currently promoted version. Reject on any hard-gate failure or material regression. 5. Require a human release decision; sign/version the promoted artifact and retain the previous version for rollback. 6. Run a bounded canary before broad use. Candidate training never writes directly to the active model. Repeated self-generated data is not independent evidence. Self-critique can be useful for drafting, but is not the release verifier; published results show that self-correction without reliable external feedback can fail to improve reasoning ([Huang et al.](https://arxiv.org/abs/2310.01798)). ## Operational boundaries - The local ledger is single-process SQLite. Its hash chain detects accidental or direct edits to existing rows when verified, but it is not a signed, remote audit log. - SourcePolicy checks domain, reuse rights, privacy status, intended purpose, evidence-use expiry, and operator-supplied terms/robots attestations. It does not browse a site or prove those attestations. Expiry blocks use but does not erase ledger rows; deletion is not implemented. - Source authorization, claim verification, and risk-classification receipts are HMAC-signed and checked against trusted keys configured by the host. The keys are not part of this repository. This proves only that a configured signer attested to bound metadata; it does not prove that a source or claim is true. - The 30-day claim clock depends on `first_observed_at` from a durable first-seen log. The trusted risk assessor must verify and sign that timestamp; this prototype does not implement the observation log. - Release and retrieval use a host-controlled UTC clock injected when the gate is constructed. Per-request time overrides are rejected; deployments still need a trustworthy, synchronized host clock. - The package does not create credentials, fetch URLs, run browser automation, or execute shell actions from model output. Training is explicit and offline; it writes a versioned candidate adapter, never the active weights.