This checklist must be used for:
- pull requests
- AI agent changes
- architectural refactors
- feature additions
The goal is to maintain consistency, reuse, and architectural integrity.
Before adding new code verify:
- an existing component does not already solve the problem
- a similar pattern already exists
- a shared helper could be reused
If duplication appears → extract a reusable abstraction.
Do NOT duplicate:
- table logic
- drawer layout
- action buttons
- mutation dialogs
Instead:
- extend existing components
- extract shared components
Avoid repeated style objects.
Use:
- UI tokens
- shared style helpers
- existing layout shells
Inline styles should be minimal.
Verify:
- table density matches other views
- drawers use the standard layout
- actions appear in the correct location
- typography and spacing remain consistent
Ensure new code follows:
docs/UI_UX_GUIDE.md
docs/ARCHITECTURE.md
docs/API_READ_OWNERSHIP.md (when adding or changing GET / read routes)
If architecture changes → update documentation.
Check that:
- UI actions respect
POST /api/capabilities - forbidden actions are hidden or disabled
- denial reasons are visible when needed
All mutations must go through:
POST /api/actions
Do not introduce direct mutation endpoints unless required by architecture.
Avoid:
any
as any
Prefer:
- explicit interfaces
- typed API responses
- typed table row models
Before finishing a change:
- remove unused helpers
- remove unused imports
- verify no orphan components remain
Run tests and checks through Makefile targets that use the pinned Docker toolchain by default. Do not call host go, npm, node, or local-* Makefile targets unless explicitly requested or when Docker is unavailable and the exception is documented.
Default full check sequence:
make checkBuild verification should use:
make buildAdd tests when modifying critical logic.
Verify:
- errors are structured
- activity runtime logs important operations
- mutation errors surface in the UI
Changes should produce:
- small logical commits
- clear diffs
- minimal unrelated changes
Avoid massive mixed refactors unless explicitly requested.
AI coding agents must not commit, amend, tag, push, or mutate Git history/remotes unless the project owner specifically requests and confirms that exact action. If asked for a commit message suggestion, provide a conventional commit title plus a meaningful body and relevant verification notes.
Before merging ask:
"Does this change introduce duplication or architectural drift?"
If yes → refactor before merging.