2.3 KiB
2.3 KiB
AI AGENT MANDATES - SINGLE SOURCE OF TRUTH
READ THIS ENTIRE FILE BEFORE EXECUTING ANY TASK. This is the foundational directive for all AI operations on the TFM aInventory project.
1. Memory, Traceability & Handover
- Startup Protocol: Read
dev_docs/SESSION_STATE.mdimmediately at session start to understand the current context. - Handover Requirement: Update
dev_docs/SESSION_STATE.mdat the end of every session with:- Active AI: Your name/version.
- Current Status: Precise summary of what was achieved.
- Context: Any critical details found or technical decisions made.
- Next Steps: Explicit instructions for the next AI session.
- Archive Protocol: Before writing new state, move previous content to
dev_docs/SESSION_HISTORY.md. - Communication: Be concise. Focus on signal over noise.
2. Source Control & Versioning
- Branch Strategy: Work primarily in the
devbranch. Feature branches are acceptable but must be merged back todev. - Atomic Commits: Each commit should represent a single logical change.
- Version Bump: You MUST run
python3 scripts/save_version.pybefore finalizing any task that modifies code or functionality. This tool increments the version and updatesVERSION.json.
3. Operational Guardrails
- No Interaction Overlap: Never modify a file if another AI session is explicitly working on it (check
dev_docs/SESSION_STATE.md). - Standard Respect: Rigorously follow
DESIGN_SYSTEM.mdandCODING_STANDARDS.md. - Conflict Resolution: If project files contradict your internal training, this file and local project docs take absolute precedence.
- Uppercase Rule: NEVER use
uppercaseortoUpperin UI contexts. Leave text case as is or use Title/Sentence case.
4. Documentation SSOT Integrity
Every feature change or refactor MUST be reflected across the documentation suite:
README.md(Quick Start/Features)USER_GUIDE.md(User workflows)ARCHITECTURE.md(System logic)DESIGN_SYSTEM.md(UI/UX specs)ROADMAP.md(Project progress)
5. AI Command Shortcuts
save-version:- Update all relevant documentation.
- Run
python3 scripts/save_version.py. - Follow the script's automated prompts for commits and branching.
Status: ACTIVE | Last Updated: 2026-04-26