Development Flow
sharedExpected engineering flow for new feature slices.
Standard flow
- Start from roadmap task IDs and status.
- Create a branch with
codex/prefix. - Implement a vertical slice:
- contract/schema in
libs/contracts - backend implementation in module application/infrastructure/interface
- frontend
features/*/api.ts+ hooks + presentational components
- contract/schema in
- Update docs and roadmap in the same slice.
- Run local checks and open PR.
Vertical slice checklist
- Contracts first:
- add or update Zod schemas in
libs/contracts - wire oRPC contract in
libs/contracts/src/orpc/athas-orpc.contract.ts
- add or update Zod schemas in
- Backend:
- implement procedure/router binding in adapter layer
- keep provider SDK calls in infrastructure providers
- Frontend:
- keep screens orchestration-only
- keep query/mutation logic in feature-local
api.ts
- Docs:
- update canonical page under
apps/docs/content/docs - sync
docs/roadmap.mdtask status in the same PR
- update canonical page under
Guardrails
- Contract-first checks must pass.
- Projection policy checks must pass.
- Dependency boundaries must pass for backend and frontend.
Core commands
bun run typecheck
bun run depcruise:backend
bun run depcruise:frontend
bun run check:contract-first
bun run check:projection-policy
bun run check:module-profilesScaffolding entry points
bun run scaffold:feature --app admin-console --feature reports --audience admin
bun run scaffold:providers-billing --app admin-console --slice integrations
bun run profiles:resolve --profiles core,commerce --format env
bun run scaffold:profile --profiles core,commerce --name commerce-starterDocumentation policy
docs/roadmap.mdis execution source of truth.- ADRs record durable decisions.
- This Fumadocs app is the canonical surface for architecture and workflow docs.