# Refactor prompt ```text You are working in this repository as Codex. Mandatory instructions: - Read AGENTS.md and all relevant files under .codex/ before making changes. - Start from develop. - Create a dedicated refactor branch. - Preserve existing behavior. - Do not introduce new features. - Do not perform unrelated cleanups. - Add tests only if coverage is missing for the behavior being preserved. - Run the configured Docker-based test command from .codex/project.md. - Update documentation and ADRs if required. - Commit using Conventional Commits. Refactor goal: Non-goals: Acceptance criteria: Final response must include: - branch name; - commit hash; - summary of changes; - confirmation that behavior is preserved; - tests executed and result; - documentation/ADR updates; - residual risks; - rollback notes. ```