Add /claude fix workflow for on-demand PR fixes - #4862
Merged
Conversation
Add a maintainer-triggered, bounded workflow for resolving ordinary merge conflicts and terminal lint or unit-test failures. Separate authorization, read-only Claude preparation, clean-room validation, and deterministic publication. Keep credentials out of the model, validate the exact result tree and paths, create DCO-signed-off bot commits, and require human CI authorization. Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Phlip79
force-pushed
the
add-claude-fix-action
branch
from
June 29, 2026 20:55
98e43e7 to
151ab2e
Compare
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Member
Author
|
/ok to test d62dfc2 |
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Member
Author
|
/ok to test 6e2861d |
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Member
Author
|
/ok to test 74ec7a6 |
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Member
Author
|
/ok to test 4a30de6 |
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Member
Author
|
/ok to test |
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Member
Author
|
/ok to test a95bc80 |
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Member
Author
|
/ok to test 4209580 |
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Member
Author
|
/ok to test 8ec7cb0 |
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Member
Author
|
/ok to test 9ca64ba |
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Member
Author
|
/ok to test 2e7a82c |
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Member
Author
|
/ok to test 43c8d41 |
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/28547224118 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a maintainer-only
/claude fix [optional steer]PR-comment command for:A bare
/claude fixuses the current conflict or latest supported CI failure. The workflow makes up to three attempts, leaves at most onesvcnvidia-nemo-cicommit per session, and posts a service-account comment explaining each published revision.Flow
The first publication is a normal fast-forward push. Later attempts may amend only the exact service-account commit created earlier in the same session, using an exact
--force-with-leasewith no fallback. Every revision is rechecked by DCO and CI.Safety
permissions: {}and grant permissions per job. Claude receives no PAT, OIDC token, or GitHub write access.NVIDIA/Megatron-LMare accepted. Maintainer edits must be enabled, and the target cannot be the fork's default or protected branch..github/**,CODEOWNERS, andSECURITY.mdchanges are rejected. Generated changes cannot create, delete, rename, change modes, add binary content, or touch files outside the PR/conflict scope.svcnvidia-nemo-ci <svcnvidia-nemo-ci@nvidia.com>with the matchingSigned-off-bytrailer. The trusted DCO app must pass before CI is authorized./claude fixis explicit maintainer authorization for a model-generated commit to enter internal CI. Structural validation cannot prove semantic correctness, so it should be used only on PRs whose existing content is trusted.Validation
bash -nfor all 14 shell blocks, andgit diff --check.Live API-dispatched canaries:
a2b79903, posted the required service explanation, passed DCO, and entered exact-SHA CI. This test also exposed and verified the fix for staging Claude's local conflict resolution before checking Git's unmerged index.All temporary canary wiring was removed additively and copied out of NVIDIA's
pull-request/4862ref. No development or target branch was force-pushed.The normal
issue_commententry point becomes active after this workflow is merged to the default branch.