Propose rule evolution from fix
propose_rule_evolutionPropose learned fix patterns as new rule entries after a test passes. The proposal goes to a pending queue for human approval rather than directly modifying rule files.
Instructions
After a test passes following an automated fix, propose the learned pattern as a new rule entry. This tool writes the proposal to a PENDING queue file for human review — it does NOT modify any .cursor/rules files directly. A human must mark the entry APPROVED before it can be applied. This is the governance layer: the AI proposes, the human decides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fixSummary | Yes | One-sentence description of what the fix did (e.g. 'hover all sibling buttons before asserting tooltip text') | |
| projectRoot | No | Project root (defaults to cwd) | |
| errorPattern | Yes | Short description of the error pattern that triggered this fix (e.g. 'ant-tooltip-inner not visible after hover') | |
| proposedRule | Yes | The rule text to add — written as a concrete, actionable instruction for future fixes (markdown ok) | |
| failureContext | Yes | The failure context this rule applies to | |
| targetRuleFile | Yes | Which .cursor/rules file this rule belongs to (without .mdc extension). Use 'playwright-test-standards' for locator/DSL/spec conventions; 'playwright-mcp' for workflow/trigger/closed-loop rules. Custom rule files added by the team are also accepted. |