# AGENTS.md — Operating Rules for All Agents on This Repo 1. **Always read `.agents/PLAN.md` first.** It contains the architecture, the LOCKED DECISIONS, the UI/UX standards, the data model, and the roadmap. Do not design anything that contradicts it. 2. **Follow the phased execution protocol in `.agents/phases/`.** Work through `.agents/phases/todo/` in numeric order. When a phase is complete, move its directory to `.agents/phases/complete/`. 3. **Strictly adhere to the LOCKED DECISIONS** (PLAN §2). If you believe a LOCKED decision is wrong, stop and flag it — do not silently deviate. 4. **"One Story, One Phase":** each user story in `.agents/user_stories/` corresponds to a distinct execution phase, and **every** phase — story-driven or owner-directed — includes its own dedicated Playwright E2E test suite (one test file for the phase, run in isolation). 5. **"UI Structure Check":** before finalizing any UI component, verify that it follows the layout principles in `.agents/PLAN.md` §7 (proper container usage, the 72rem centered reading column — every page rides the 72rem container at every viewport; phase 100 supersedes §7.1's 46rem chat column, full-width tables on Sources — no skinny wasted-space lists; the catalogue tables (RAG, Sources, History) are bounded scroll panels — `max-height: min(70vh, 64rem)` — with a sticky header row; a clipped action label shows an ellipsis hint (`.cell-clip`) with the full text kept reachable via the control's aria-label (phase 156)) and meets WCAG 2.1 AA basics (semantic landmarks, labels, contrast ≥4.5:1, focus-visible, aria-live for the stream). 6. **"No CDN Rule":** all CSS, JS, fonts, and images must be served statically from within the FastAPI application. No `