docs: add agent best practices to AGENTS.md - #1369
Conversation
PR SummaryLow Risk Overview The new doc states product constraints up front (third-party embed, security, public API compatibility, CI gzip size vs Hard rules cover forbidden patterns ( A “Contracts the code will not tell you” section documents non-obvious invariants: Tests guidance is trimmed to Jest vs Karma roles and when to run the full suite. Reviewed by Cursor Bugbot for commit 4374d7a. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
|
Love the bias for action here. 🙏 |



Background
AGENTS.mdand adapted them to this codebase.What Has Changed
AGENTS.md: ranked principles (security, compatibility, performance, clarity), no-comments default, readability prefer/over table, opportunistic-refactor + test-integrity rules, third-party embedding hard rules, P0/P1 review bar.development,snippet.js/snippet.rokt.jsmust stay in sync, do not hand-commitdist/,noDeviceIdimpliesnoFunctional+noTargeting, APV state lives onwindow.__mpApv__.pageViewTracker.ts,vault.ts,events.ts,public-types.ts/internal-types.ts,reporting/).Screenshots/Video
Checklist