Repository navigation
Narrow the Comment-Added Promotion Stand-Down by Workflow Model - #3333
Conversation
validate-task.yml takes a workflow-model input, release by default. A release caller's develop into default-branch promotion still stands the comment-added rule down, and an operational caller's promotion runs it, since that model's promotion is where its direct commits get reviewed. The stand-down is computed in a step of its own, so the suite runs it both ways and refuses an unknown model. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Drop the refusal of an unknown workflow-model value, since any value but release already runs the rule on a promotion, a failure that shows rather than hides. Say an operational promotion may be the first review of its lines rather than claiming most of them landed by direct commit, and repair the prose and test text the first change left stale. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
A recorded local strict-review pass covers head |
There was a problem hiding this comment.
🟢 Approval recommended
The only reported issue is a non-blocking documentation nit, and all reviewers assessed the pull request as ready.
No open issues 🎉
What changed in this PR
This pull request narrows the comment-added promotion stand-down to release-model promotions while allowing operational promotions to undergo the prose gate.
Changes:
- Adds the optional
workflow-modelinput with areleasedefault. - Resolves promotion stand-down behavior from workflow and event facts.
- Updates documentation, prose-gate messaging, and composite-action guidance.
- Adds focused tests for promotion, branch, event, wiring, and invalid-model scenarios.
| File | Description | Review note |
|---|---|---|
tests/test_prose_lint.py |
Tests stand-down behavior and workflow wiring. | P3 nit (1 vote): Rephrase the malformed test docstring sentence as “especially the workflow model.” |
scripts/README.md |
Documents release-model-only promotion stand-down behavior. | — |
OPERATIONS.md |
Updates local and CI prose-gate guidance. | — |
docs/reusable-workflows.md |
Documents the workflow-model input for operational callers. | — |
.github/workflows/validate-task.yml |
Adds the model input, resolution step, and gate output wiring. | — |
.github/actions/prose-gate/prose_lint.py |
Clarifies the release-model promotion diagnostic message. | — |
.github/actions/prose-gate/action.yml |
Clarifies the caller’s promotion responsibility. | — |
Review effort: Lite
|
Answering the suppressed finding (1) from the Copilot round on 6a67043 (#3333 (review)).
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3333 +/- ##
==========================================
Coverage ? 65.47%
==========================================
Files ? 17
Lines ? 10014
Branches ? 0
==========================================
Hits ? 6557
Misses ? 3457
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
… Narrowing to Main (#3346) ## Summary Promotes these pull requests from develop. - [#3329](#3329): restores the prerelease filter on the GitHub Pre-Release shield and has the audit require it. - [#3333](#3333): narrows the prose gate's comment-added promotion stand-down by workflow model. - [#3335](#3335): shares one git location variable list across the self-tests. - [#3342](#3342): the write guard reads every launcher and exported git directory. - [#3345](#3345): the write guard reads tokenizer, directory-value, and launched-string gaps. Refs #3307 Refs #2943 Closes #3320 Closes #1663 Closes #3324 Closes #3050 Closes #3083 Closes #3085 Closes #3304 Closes #2991 Closes #2995 Closes #3090 Closes #3074 Closes #3075 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Narrows the prose gate's
comment-addedpromotion stand-down by workflow model, per the maintainer's decision recorded on #1663.validate-task.ymltakes a new optionalworkflow-modelinput. It defaults torelease, matching the registry's own default.Resolve comment stand-down stepin thelintjob computes the promotion stand-down in bash from the event's facts and that input. Theallow-commentsexpression now reads the label and that step's output.develop -> default branchpromotion still stands the rule down. Any other value,operationalincluded, runs the rule there, since an operational repository may commit todevelopdirectly and its promotion is then the first review those lines get. A misspelled value therefore reports comments rather than hiding them.registry/repos.jsonand the reusable workflow already takes its other per-repository facts as inputs.develop, another base, a push, and several non-releasevalues. They also pin the step'senv:wiring and the input's default. Three mutations were confirmed to fail the suite: dropping the model term, flipping the default, and hard-coding the env value.OPERATIONS.md,scripts/README.md,docs/reusable-workflows.md, the composite action's input description, and the gate's stand-down note now say the stand-down applies to a release-model promotion only.The new step moves the promotion rationale's comment lines and adds a few, so this pull request carries the
commentslabel.Local review: three recorded
local-strict-reviewpasses. Round one raised eight findings, round two four, and round three none. One round-one finding is deferred to #3332: nothing yet reports an operational caller that omits the input, and the no-build caller snippet can only pass it once a release carries it. The four operational repositories adopt the input in their own resyncs.Closes on promotion: #1663
🤖 Generated with Claude Code
Summary by CodeRabbit
developto the default branch are exempt, while operational-model promotions remain subject to the check. Comments are allowed when the comments label is present or the release-model exemption applies.workflow-modelsetting, itsreleasedefault, and how promotion rules differ between release and operational workflows.