meta-r2 / docs /CONTRIBUTING.md
github-actions[bot]
Deploy Space snapshot
ddbc1ba

Contributing to LifeStack

This document defines the documentation rule for the project.
Nothing ships without its matching doc entry.


The rule: doc-first development

Every change that adds, removes, or significantly modifies a feature must include all three of the following before the commit is made:

# Action Where
1 Create or update a doc file docs/<topic>.md
2 Update README.md File structure table + relevant section
3 Update docs/README.md Add a one-line entry in the right table

A pull request or commit that adds a new script, module, or feature without updating docs/README.md and the root README.md is considered incomplete and should not be merged.


What counts as a feature

Change type Doc required?
New Python module (core/, agent/, intake/) Yes β€” docs/<module>.md
New script (scripts/*.py) Yes β€” entry in docs/scripts.md
New tab or API route in app_flask.py Yes β€” entry in docs/app.md
New CLI argument to an existing script Yes β€” update the relevant doc
Bug fix with no API surface change No (note in changelog if breaking)
Refactor with no API surface change No
New environment variable / secret Yes β€” docs/configuration.md
New dependency in requirements.txt Yes β€” note in relevant doc + README

Doc file conventions

  • All documentation lives in docs/. The only markdown file at the repository root is README.md (GitHub project landing page).
  • Prefer lowercase with underscores: docs/lifestack_env.md, docs/kaggle_train.md.
  • Promotional or Hugging Face collateral also lives under docs/ (e.g. blog.md, model_card.md).
  • Each doc starts with a # Title heading and a one-line summary.
  • Code blocks must have a language tag (```python, ```bash).

Checklist (copy into PR or commit message)

Docs checklist:
[ ] docs/<topic>.md created or updated
[ ] docs/README.md updated with new entry
[ ] README.md file structure / quickstart updated (if needed)

Docs folder layout (representative)

docs/
β”œβ”€β”€ README.md              ← Master index (always update for new docs)
β”œβ”€β”€ CONTRIBUTING.md        ← This file
β”œβ”€β”€ training_guide.md
β”œβ”€β”€ train_trl.md
β”œβ”€β”€ configuration.md
β”œβ”€β”€ reward.md
β”œβ”€β”€ lifestack_env.md
β”œβ”€β”€ task.md
β”œβ”€β”€ memory.md
β”œβ”€β”€ conflict_generator.md
β”œβ”€β”€ eval.md
β”œβ”€β”€ scripts.md
β”œβ”€β”€ app.md
β”œβ”€β”€ DEPLOYMENT.md
β”œβ”€β”€ blog.md
β”œβ”€β”€ model_card.md
β”œβ”€β”€ mentor_pitch.md
β”œβ”€β”€ implementation_summary.md
└── kaggle_train.md

Commit message format

<type>: <short description>

- <file changed>: <what changed>
- docs/<doc>.md: <created|updated>
- docs/README.md: <added entry for X>
- README.md: <updated section Y>

Docs checklist: all items updated

Types: feat | fix | refactor | docs | test | chore