You are performing a compaction pass on the agent's rules and skills. ## Read These Files 1. {project}/.agent-framework/RULES.md 2. {project}/.agent-framework/AGENT.md 3. Any accumulated notes or previous RULES.md versions in the project ## Task Consolidate and clean up the rules and routing logic. ## Compaction Rules - Remove duplicate or contradictory rules - Merge related rules into the smallest number of clear statements - Update AGENT.md routing logic if any new patterns have emerged - Keep every rule that still prevents a real observed failure mode - Delete anything that has not been referenced in the last 5 tasks ## Output Produce an updated RULES.md and AGENT.md. At the end, output: "COMPACTION_COMPLETE — X rules removed, Y rules merged, Z rules added." Do not start any new tasks.