- Docs
- Architecture
- Method
- Definition of done
Definition of Done¶
A slice is done only when its behavior is defined by tests, its contracts pass, and its documentation matches the shipped change.
1. Slice checklist¶
- Failing test written first and now green at every layer it touches.
- Error shape and (if relevant) localization verified by tests.
-
php artisan testgreen (API);pnpm test+ Playwright green (web). - Docs updated: domain glossary, API conventions, architecture, context map.
- No dead code, no TODOs, no secrets, no throwaway scaffolding.
- Surface tagged
vX.Y.Zif deployed; deploy verified on the host.
2. Documentation duties¶
Documentation is part of shipping, not follow-up work.
- Update the domain glossary when a term, field, invariant, or bounded-context responsibility changes.
- Update API convention docs when an endpoint contract, error shape, auth rule, or payload field changes.
- Update architecture/context documentation when an entry point, boundary, workflow, or ownership rule moves.
- Keep this
docs/00-method/section aligned with the working method. When the method evolves, update the affected page instead of creating parallel guidance. - Record substantive behavior or architecture changes in
docs/as required by the repository rules.
3. Git conventions¶
- Branches:
feat/<slice>,fix/<slice>,docs/<topic>,chore/<topic>. - Commits: imperative, scoped, e.g.
feat(enrollment): approve pending member with seat-limit guard. - PR scope: one slice per PR where possible. A PR must state the failing test that motivated it.
- Versioning: each surface has independent semantic version tags. The parent repo carries no version tag; it records submodule gitlinks.
- Secrets: never commit secrets or
.envfiles.