Add host-first environment contracts (Local vs CI vs Prod), deps-only compose, and the Profile → Portrait → deep-access mock payment slice with device identity and auto-migrate on API startup. Co-authored-by: Cursor <cursoragent@cursor.com>
1.2 KiB
1.2 KiB
AI Contract
Highest operational contract for every agent session.
Before coding
MUST read:
.ai/constitution.md.ai/architecture.md.ai/domain.md(+domain/domain-map.mdwhen touching models/API).ai/coding.md- Task-relevant:
api.md/database.md/ui.md/security.md/product/lexicon.md+product/feature-map.md - Run/dev tasks:
environment.md+development.md(部署/镜像任务才读deployment.md/docker.md) - UI tasks:
design/design-system.md+design/component-catalog.md+design/platform/* - Relevant ADR under
.ai/adr/if changing stack or style
After coding
MUST:
- Run / follow
.ai/review.mdand print Review block - Verify
.ai/definition-of-done.md - Use matching checklist under
.ai/checklists/ - Prefer verifying with
.ai/commands.md(build/test/health)
Never
- Guess API shape
- Guess DB schema
- Guess product requirement
- Invent endpoints, tables, or domain words not in
.ai/domain.md/ OpenAPI / task - Silently reverse an Accepted ADR
- Default local workflow to full-stack Docker / rebuild app images on every code change
If unclear
ASK FIRST. Do not invent. Do not “assume and continue”.