{"slug": "show-hn-maslow-from-scratch-rust-transformer-that-refuses-on-conflicting-facts", "title": "Show HN: Maslow– from scratch Rust transformer that refuses on conflicting facts", "summary": "A public research project called Maslow released a from-scratch Rust transformer, built on Hugging Face Candle primitives, that refuses to answer when its retained facts conflict: on the example table, a real run of the v0.9.5.1 release binary reported 4 retained facts, 2 consistent, 1 contradicted, 1 unverified and 0 invalid, with the contradicted `sky|clear_day` key returning REFUSE. The language specialist is a `TinyTransformer` with width 64, a 256-byte vocabulary, maximum sequence length 32, 4 heads and 84,800 parameters, locked in tests; weights are trained in-repository rather than derived from a pretrained model and are not yet published because language training is in progress. The code is Apache 2.0 licensed and requires Rust 1.85 or later, and the project states the verification run did not train, load weights or invent a fact.", "body_md": "Maslow is a public research project in Rust. It studies a budget-aware hierarchical gate that loads specialists only when residual budget allows, and a custom decoder-style transformer (`TinyTransformer`) implemented with Hugging Face Candle primitives. Weights are trained from scratch in this repository; they are not derived from a pretrained model. The code is licensed under the [Apache License, Version 2.0](https://github.com/thatREAguy/Maslow/blob/main/LICENSE). The weights will be released under the same license. None are published yet, because language training is in progress.\n\nRust 1.85 or later is required (the minimum supported version, tested in CI). From the repository root:\n\n```\ncargo test --release -- --test-threads=1\n```\n\n`--test-threads=1` is recommended because several tests write per-process files and spawn the same binary as a child.\n\nTo try verification without retraining, copy the example retained-fact table (this is not a weight file) and run the binary:\n\n```\ncp examples/maslow_v0947_structures.json .\ncargo run --release -- verify\ncargo run --release -- recall \"day grass color?\"\ncargo run --release -- recall \"day sky color?\"\n```\n\n`verify` reads `maslow_v0947_structures.json` once, when `maslow_v095_facts.json` does not already exist, and writes a ledger in the current directory. It does not load weights. `recall` answers a recognized query from the grammar and from consistent ledger values, without loading weights. Unrecognized wording can activate the neural reader if a v0.9.4.7 checkpoint is present; that reading is an unverified proposal, and it cannot answer or be stored. The example queries below are recognized by the grammar, so no weights are loaded. On that example table, a real run of the release binary produced:\n\n```\n=== VERIFY v0.9.5.1 ===\nRetained: 4. Consistent: 2. Contradicted: 1. Unverified: 1. Invalid: 0. Created: 0. Forwards: 0.\nThe ledger is the only stored answer. A refused key is not a count. The answer key was not read. No weights were loaded.\n  grass|clear_day [consistent] -> green\n  sky|clear_day [contradicted] -> REFUSE\n  snow|overcast [unverified] -> REFUSE\n  sun|clear_day [consistent] -> yellow\n  coal|clear_day [absent] -> REFUSE\nPASS: verification did not train, did not load weights, and did not invent a fact.\nThis is not a claim that the retained colors are true. This is not a 99.4% result.\nbash\n$ maslow recall \"day grass color?\"\ngreen\n\n$ maslow recall \"day sky color?\"\nMISS\n```\n\nDay sky is a miss because the ledger marks `sky|clear_day` as contradicted: the retained value is blue, and the evidence set also includes \"day sky is green\". A retained color is not treated as a verified fact.\n\nA full `maslow local` run trains the leading reader and writes its own structures and checkpoint files. Those artifacts, and other `maslow_*` outputs from commands run in the repository root, are gitignored. Run the binary with no arguments to list commands.\n\nThe gate decides whether a specialist may run, and unloads it when it should be dormant. The language specialist is a from-scratch Candle `TinyTransformer` (width 64, byte vocabulary 256, maximum sequence length 32, 4 heads, 84,800 parameters, locked in tests). The typed compiler used by later experiments has 69,915 parameters, or 70,235 with role vectors; v0.9.4.7 (`maslow local`) is the leading reader.\n\nFrom v0.9.4.9, a seeded grammar answers a sentence it recognizes. Unrecognized wording can activate the neural reader; that reading is only an unverified proposal and cannot answer or be stored (v0.9.4.10). v0.9.5.1 stores answers in a ledger (`maslow_v095_facts.json`) rather than in the old fact table. v0.9.5.2 reconstructs a consistent query into the grammar slot `{w} {e} is {v}` and refuses every other request without loading weights (`maslow reconstruct`). The planning specialist and the Doctor, Lawyer, and Librarian domain brains are still stubs. The implemented networks use FP32; quantization is a possible future optimization.\n\nDetails are in [MODEL_CARD.md](https://github.com/thatREAguy/Maslow/blob/main/MODEL_CARD.md). `ARCHITECTURE.md` and `NEXT_PHASE.md` describe earlier phases.\n\nThe locked research tip is **v0.9.5.2**: structural reconstruction. See [CHANGELOG.md](https://github.com/thatREAguy/Maslow/blob/main/CHANGELOG.md) and `SCOPE_v0.9.5.2.md`.\n\nLanguage training is in progress. Model weights, checkpoints, and runtime experience or structure files are not committed.\n\n- Not a product and not a hosted API.\n- Not an open-domain language model.\n- Not a 99.4% claim. That figure appears in the scope files as a research target, not as a measured result.\n\nWeights are trained from scratch in this repository, on corpora written for Maslow (a small, closed set of color and sky sentences and related templates). They will be released under Apache-2.0 alongside the code. Until that release, this is an open-source codebase with no published checkpoints. See [MODEL_CARD.md](https://github.com/thatREAguy/Maslow/blob/main/MODEL_CARD.md).\n\nCurrent work is language training toward a public weight release under Apache-2.0. The locked experiment record is the `SCOPE_v*.md` files. [NEXT_PHASE.md](https://github.com/thatREAguy/Maslow/blob/main/NEXT_PHASE.md) is an earlier planning note; it is not a schedule.\n\nThe Cargo package version is `0.1.0` (`Cargo.toml`). Research milestone versions, such as v0.9.5.2, are recorded in the `SCOPE_v*.md` files and in [CHANGELOG.md](https://github.com/thatREAguy/Maslow/blob/main/CHANGELOG.md). Those two series are independent; a research lock does not bump the crate version.\n\nPlease cite this repository if you use it. Metadata is in [CITATION.cff](https://github.com/thatREAguy/Maslow/blob/main/CITATION.cff).\n\n```\n@software{godsil_maslow_2026,\n  author = {Godsil, Elijah},\n  title  = {Maslow},\n  year   = {2026},\n  url    = {https://github.com/thatREAguy/Maslow},\n  license = {Apache-2.0},\n  version = {0.9.5.2}\n}\n```\n\nThis repository is public and open source, but it is not accepting contributions, issues, or pull requests yet. Please treat it as read-only until the basics are covered. A contributions guide will be added when that changes.\n\nCopyright 2026 Elijah Godsil. Licensed under the Apache License, Version 2.0. See [LICENSE](https://github.com/thatREAguy/Maslow/blob/main/LICENSE) and [NOTICE](https://github.com/thatREAguy/Maslow/blob/main/NOTICE).\n\nTo report a vulnerability, see [SECURITY.md](https://github.com/thatREAguy/Maslow/blob/main/SECURITY.md).", "url": "https://wpnews.pro/news/show-hn-maslow-from-scratch-rust-transformer-that-refuses-on-conflicting-facts", "canonical_source": "https://github.com/thatREAguy/Maslow", "published_at": "2026-12-01 13:37:12+00:00", "updated_at": "2026-12-01 13:47:08.315548+00:00", "lang": "en", "topics": ["artificial-intelligence", "machine-learning", "large-language-models", "ai-research", "ai-safety"], "entities": ["Maslow", "Rust", "Hugging Face Candle", "TinyTransformer", "Apache License 2.0"], "also_reported_by": [], "takeaway": "Maslow's v0.9.5.1 ledger marks a key REFUSE when retained facts conflict (e.g. `sky|clear_day` is blue but evidence also says green), so a stored answer is never treated as verified.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-maslow-from-scratch-rust-transformer-that-refuses-on-conflicting-facts", "markdown": "https://wpnews.pro/news/show-hn-maslow-from-scratch-rust-transformer-that-refuses-on-conflicting-facts.md", "text": "https://wpnews.pro/news/show-hn-maslow-from-scratch-rust-transformer-that-refuses-on-conflicting-facts.txt", "jsonld": "https://wpnews.pro/news/show-hn-maslow-from-scratch-rust-transformer-that-refuses-on-conflicting-facts.jsonld"}}