Contributing
Thanks for helping. Remembrancer holds people’s private memory, so correctness and security come before features.
Ways to help
Section titled “Ways to help”- Report a bug with the bug template. Include steps, what you expected and what happened.
- Report a security problem privately. See SECURITY.md. Never in a public issue.
- Pick up an issue. Look for
good first issueorhelp wanted. Comment first so two people don’t take the same one. - Propose a feature with the feature template. Big changes start as an issue, not a pull request.
The roadmap lives in ROADMAP.md, GitHub milestones and the project board.
Set up
Section titled “Set up”Node 22 or newer. No database needed: tests and npm run dev use embedded Postgres.
npm installnpm testnpm run typechecknpm run devRules for changes
Section titled “Rules for changes”- The recall check is sacred. Any change to
src/services/memory.ts, the migrations, or anything that decides who sees what needs a test intest/leak.test.tsthat would fail without it. - Filter inside the query. Never fetch memories and then drop the forbidden ones in code.
- Same answer for missing and forbidden. Never let a response reveal that a hidden memory exists.
- Viewers come from the server. Never read who will see an answer from a request body or from memory content.
- Every change to memory goes through the ledger (
appendEvent) inside the same transaction. - Add a migration for any schema change. Never edit a released one.
- Keep dependencies few.
Commits and pull requests
Section titled “Commits and pull requests”- Commit messages use lowercase Conventional Commits:
feat: add belief kind,fix: reject empty channel ids,docs: explain grants. The changelog is built from them. - One topic per pull request. Fill in the template.
- CI must pass: typecheck, tests, Docker build.
Code of conduct
Section titled “Code of conduct”Everyone taking part agrees to the Code of Conduct.
License
Section titled “License”By contributing, you agree your work is licensed under AGPL-3.0.