MCAF: Formatting
Outputs
- •Formatted code changes (consistent with repo style)
- •Evidence: formatting command(s) run and any follow-up build/tests
Workflow
- •Use the canonical
formatcommand fromAGENTS.md(do not invent commands). - •Run the formatter on the smallest scope possible (if your tools allow it).
- •Review the diff:
- •ensure changes are formatting-only
- •if the formatter touched many files, separate the change or confirm it was explicitly requested
- •Verify (follow
AGENTS.mdfor sequencing + required commands):- •for formatting-only changes: run the smallest meaningful verification the repo requires (build/tests/analyze as applicable)
- •for formatting as part of a behaviour change: follow the repo’s normal order (don’t reorder the pipeline)
- •If
format/linters are missing or flaky:- •fix
AGENTS.mdto point to a real, repeatable command - •only then rerun formatting
- •fix
- •Report what was run and what changed.
Guardrails
- •Do not introduce unrelated refactors under the cover of formatting.
- •Keep formatting changes and behaviour changes reviewable.