What problem does it solve?
Prevents AI from making unsafe or non-compliant UI changes by forcing the active charter contract to be loaded before editing any .tsx file that has a neighboring .charter.md, reducing drift from agreed mission, invariants, UX targets, and anti-hooks.
Core Features & Use Cases
- Pre-edit charter enforcement: Ensures the charter is fetched first when working on pages/features with a matching .charter.md next to them (Charter > Spec).
- Live mission/goals invariants: Loads the canonical sections (Mission, Goals, Non-Goals, UX targets, automation hooks, and Anti-hooks) so edits follow production-approved intent.
- Draft safety warnings: When charters are in draft/rascunho/proposto status, surfaces warnings about missing or sensitive sections (especially Non-Goals and Anti-hooks) to avoid hallucinated constraints.
Quick Start
Before editing the file resources/js/Pages/Repair/Index.tsx, ask the AI to call the MCP tool charter-fetch with page_id set to the related Index.charter.md.