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. The weights will be released under the same license. None are published yet, because language training is in progress.
Rust 1.85 or later is required (the minimum supported version, tested in CI). From the repository root:
cargo test --release -- --test-threads=1
--test-threads=1 is recommended because several tests write per-process files and spawn the same binary as a child.
To try verification without retraining, copy the example retained-fact table (this is not a weight file) and run the binary:
cp examples/maslow_v0947_structures.json .
cargo run --release -- verify
cargo run --release -- recall "day grass color?"
cargo run --release -- recall "day sky color?"
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 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:
=== VERIFY v0.9.5.1 ===
Retained: 4. Consistent: 2. Contradicted: 1. Unverified: 1. Invalid: 0. Created: 0. Forwards: 0.
The ledger is the only stored answer. A refused key is not a count. The answer key was not read. No weights were loaded.
grass|clear_day [consistent] -> green
sky|clear_day [contradicted] -> REFUSE
snow|overcast [unverified] -> REFUSE
sun|clear_day [consistent] -> yellow
coal|clear_day [absent] -> REFUSE
PASS: verification did not train, did not load weights, and did not invent a fact.
This is not a claim that the retained colors are true. This is not a 99.4% result.
bash
$ maslow recall "day grass color?"
green
$ maslow recall "day sky color?"
MISS
Day 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.
A 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.
The 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.
From 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 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.
Details are in MODEL_CARD.md. ARCHITECTURE.md and NEXT_PHASE.md describe earlier phases.
The locked research tip is v0.9.5.2: structural reconstruction. See CHANGELOG.md and SCOPE_v0.9.5.2.md.
Language training is in progress. Model weights, checkpoints, and runtime experience or structure files are not committed.
- Not a product and not a hosted API.
- Not an open-domain language model.
- Not a 99.4% claim. That figure appears in the scope files as a research target, not as a measured result.
Weights 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.
Current 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 is an earlier planning note; it is not a schedule.
The 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. Those two series are independent; a research lock does not bump the crate version.
Please cite this repository if you use it. Metadata is in CITATION.cff.
@software{godsil_maslow_2026,
author = {Godsil, Elijah},
title = {Maslow},
year = {2026},
url = {https://github.com/thatREAguy/Maslow},
license = {Apache-2.0},
version = {0.9.5.2}
}
This 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.
Copyright 2026 Elijah Godsil. Licensed under the Apache License, Version 2.0. See LICENSE and NOTICE.
To report a vulnerability, see SECURITY.md.