Skip to content

Moves the format stage to check mode - #31

Merged
johnnyt merged 1 commit into
mainfrom
sui-b5y-format-check-mode
Aug 22, 2026
Merged

Moves the format stage to check mode#31
johnnyt merged 1 commit into
mainfrom
sui-b5y-format-check-mode

Conversation

@johnnyt

@johnnyt johnnyt commented Aug 22, 2026

Copy link
Copy Markdown
Member

Why

The gate's format stage reformatted drifting files instead of checking
them. Locally that is convenient; in CI it means a push with unformatted
code can never go red on formatting - the runner tidies the drift and
passes, which defeats the point of a second observer that can say no. A
stage that fixes what it finds cannot report a finding (sui-b5y).

What

  • Bumps ex_quality to ~> 0.14 - 0.14.0 adds the Format stage's check
    knob, the upstream fix this bead was blocked on.
  • Sets format: [check: true] in .quality.exs, with the reason
    recorded at the setting. Drift now fails the stage and nothing is
    rewritten. The local convenience behaviour is removed deliberately,
    not preserved: local and CI runs stay one definition, and an agent
    that skips the formatter sees a red gate instead of a silent tidy.
  • Updates CLAUDE.md's build guidance to match: run mix format before
    committing - the gate no longer formats for you.

No file was unformatted at the flip, so no separate formatting commit
was needed and this diff is pure config plus guidance.

Notes

  • Full mix quality / mix gate.verify green after rebase: scope all,
    no profile, 360/360 tests, 94.1% coverage.
  • Part of the fleet-wide check-mode adoption (operator decision
    2026-08-22, recorded on sui-b5y); sibling repos adopt via their own
    beads.
  • No changelog fragment: quality-gate/tooling change, excluded by
    changelog.d/README.md.

Closes sui-b5y

Bumps ex_quality to ~> 0.14 and sets format: [check: true] in
.quality.exs, per the operator's fleet-wide sui-b5y decision
(2026-08-22): a gate that rewrites drifting files cannot report
drift as a finding, so in CI unformatted code passed instead of
going red. Drift now fails the stage and nothing is rewritten.

Updates CLAUDE.md's build guidance to match: run mix format
yourself before committing - the gate no longer formats for you.

Refs: sui-b5y
@johnnyt
johnnyt merged commit edf983b into main Aug 22, 2026
1 check passed
@johnnyt
johnnyt deleted the sui-b5y-format-check-mode branch August 22, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant