Contributing to Reverie #
Developer Certificate of Origin (DCO) #
All contributions must be signed off under the
Developer Certificate of Origin (DCO).
By adding a Signed-off-by line to your commit messages, you certify that
you wrote the contribution or otherwise have the right to submit it under
the project’s license.
git commit -s -m "your commit message"
Development Setup #
git clone [email protected]:todie/reverie.git
cd reverie
make hooks # install pre-commit
make build # verify compilation
make test # run tests
Workflow #
- Create a branch from
main - Make changes, ensure
make ci-checkpasses - Commit with conventional commits:
feat:,fix:,docs:,test:,refactor:,chore: - Open a PR linked to the Linear issue
Code Style #
cargo fmtenforced via pre-commitcargo clippy -- -D warningsenforced via pre-commitcargo deny checkfor dependency audit- No
unwrap()in library code (ok in tests) thiserrorfor library errors,anyhowfor application errors
Architecture Decisions #
See docs/daemon-spec.md for the full architecture. Key principles:
- Every design choice should map to a neuroscience mechanism
- Every change must show measurable LoCoMo improvement (see
docs/locomo-harness.md) - The fast path (session writes) and slow path (dream consolidation) must remain separate (CLS theory)