Skip to content

chore: declare the pre-commit profile as source-mutating - #228

Merged
cuioss-oliver merged 2 commits into
mainfrom
chore/declare-pre-commit-mutating
Sep 9, 2026
Merged

cuioss-oliver merged 2 commits into
mainfrom
chore/declare-pre-commit-mutating

Conversation

@cuioss-oliver

Copy link
Copy Markdown
Collaborator

-Ppre-commit rewrites tracked sources in place — license:format and rewrite:run, both bound ahead of verify — so a canonical quality-gate that resolves it is a mutating command. Nothing declared that, which left plan-marshall treating the gate as safe to run against a dirty worktree.

"extension_defaults": {
  "build.maven.profiles.mutating": "pre-commit"
}

build.maven.profiles.mutating is the authored opt-in key (_maven_cmd_discover.py, EXT_KEY_PROFILES_MUTATING). The value is a CSV of profile ids, symmetric with the existing build.maven.profiles.skip and build.maven.profiles.map.canonical. There is no pattern inference — operator authoring is the only source, and absence of the field means unknown, not safe.

This is a declaration only: it changes no build behaviour in this repo. -Ppre-commit did and still does auto-fix, which is the intended org-wide norm — the gate auto-fixes in every language; review what it changed and commit it.

Sequencing note: the resolved-command contract in plan-marshall (manage-architecture/standards/resolve-command.md) currently says a gate context "MUST NOT run a mutating: true command as the pre-push worktree gate without operator confirmation". That clause is being removed in parallel — auto-fix is intended normal behaviour and should not prompt. If this lands first, a pre-push run may prompt once until that change is in.

🤖 Generated with Claude Code

cuioss-oliver and others added 2 commits September 9, 2026 09:27
-Ppre-commit rewrites tracked sources in place (license:format and
rewrite:run, both bound ahead of verify), so a quality-gate that resolves
it is a mutating command. Nothing declared that, which left plan-marshall
treating the gate as safe to run against a dirty worktree.

build.maven.profiles.mutating is the authored opt-in key; the value is a
CSV of profile ids, symmetric with the existing build.maven.profiles.skip
and build.maven.profiles.map.canonical. There is no pattern inference --
operator authoring is the only source, and absence means 'unknown', not
'safe'.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@cuioss-oliver cuioss-oliver added the skip-bot-review Skip automated review bots for this PR label Sep 9, 2026
@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Excluded labels (none allowed) (1)
  • skip-bot-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: cuioss/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: c423de98-5222-4cd9-ae38-27fa097f860d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@cuioss-oliver
cuioss-oliver added this pull request to the merge queue Sep 9, 2026
Merged via the queue into main with commit bb00509 Sep 9, 2026
22 checks passed
@cuioss-oliver
cuioss-oliver deleted the chore/declare-pre-commit-mutating branch September 9, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-bot-review Skip automated review bots for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant