Skip to content

Narrow the Comment-Added Promotion Stand-Down by Workflow Model - #3333

Merged
ptr727 merged 3 commits into
developfrom
feature/auto-1663
Oct 22, 2026
Merged

ptr727 merged 3 commits into
developfrom
feature/auto-1663

Conversation

@ptr727

@ptr727 ptr727 commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Narrows the prose gate's comment-added promotion stand-down by workflow model, per the maintainer's decision recorded on #1663.

  • validate-task.yml takes a new optional workflow-model input. It defaults to release, matching the registry's own default.
  • A new Resolve comment stand-down step in the lint job computes the promotion stand-down in bash from the event's facts and that input. The allow-comments expression now reads the label and that step's output.
  • A release caller's develop -> default branch promotion still stands the rule down. Any other value, operational included, runs the rule there, since an operational repository may commit to develop directly and its promotion is then the first review those lines get. A misspelled value therefore reports comments rather than hiding them.
  • The decision allowed an input or a registry-reading step. This uses the input, since a workflow expression cannot read registry/repos.json and the reusable workflow already takes its other per-repository facts as inputs.
  • Tests run the step's own script. They cover a release promotion, an operational promotion, a feature branch, a fork branch named develop, another base, a push, and several non-release values. They also pin the step's env: 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 comments label.

Local review: three recorded local-strict-review passes. 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

  • Bug Fixes
    • The prose check now applies consistently during promotions: release-model promotions from develop to 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.
  • Documentation
    • Clarified the workflow-model setting, its release default, and how promotion rules differ between release and operational workflows.

ptr727 and others added 3 commits October 21, 2026 19:23
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]>
Copilot AI lite review requested due to automatic review settings October 22, 2026 02:32
@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6d09b8c7-cb27-4d62-8238-5ae1e0ccdd89
📥 Commits

Reviewing files that changed from the base of the PR and between e13851d and 6a67043.

📒 Files selected for processing: 7
  • .github/actions/prose-gate/action.yml
  • .github/actions/prose-gate/prose_lint.py
  • .github/workflows/validate-task.yml
  • OPERATIONS.md
  • docs/reusable-workflows.md
  • scripts/README.md
  • tests/test_prose_lint.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The reusable workflow adds a workflow-model input and uses it to determine whether a qualifying promotion sets the prose gate’s comment stand-down. Tests and documentation describe the release and operational model behavior.

Changes: Promotion stand-down

Layer / File(s) Summary
Workflow model and stand-down behavior
.github/workflows/validate-task.yml, tests/test_prose_lint.py
The workflow defaults workflow-model to release. It sets stand-down only for same-repository pull requests from develop to the default branch under the release model. The prose gate allows comments when the label is present or stand-down is true. Tests cover the conditions and output.
Action wording and caller documentation
.github/actions/prose-gate/action.yml, .github/actions/prose-gate/prose_lint.py, OPERATIONS.md, docs/reusable-workflows.md, scripts/README.md
The action wording and documentation distinguish release-model promotions from operational-model promotions and describe the input default and comment-rule behavior.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~12 minutes

Possibly related issues

  • ptr727/ProjectTemplate#3331 — The pull request narrows the comment-added stand-down based on workflow model.
Merge Risk: ⚪ Minimal · up to 6a670

The release-model exception and operational-model behavior are documented and covered by the changed tests. No actionable merge risk remains beyond normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: narrowing the comment-added promotion stand-down based on the workflow model.
Docstring Coverage Passed Docstring coverage is 90.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 2 files. (5 skipped: 5 …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 90.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 2 files. (5 skipped: 5 unsupported.)

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Oct 22, 2026
@ptr727

ptr727 commented Oct 22, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 6a6704384ab8affc5da36c32bd34fa208b1067f3, the content this pull request carries at that commit against develop, and it recorded 0 findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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-model input with a release default.
  • 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

@ptr727

ptr727 commented Oct 22, 2026

Copy link
Copy Markdown
Owner Author

Answering the suppressed finding (1) from the Copilot round on 6a67043 (#3333 (review)).

  • tests/test_prose_lint.py (the docstring of test_the_promotion_stands_down_only_on_the_release_model), "P3 nit: Rephrase the malformed test docstring sentence as 'especially the workflow model.'" No change needed. The sentence reads "dropping any one term of the test, the workflow model's above all, turns a row green", where "the workflow model's" is an appositive with the noun "term" elided, so it parses as written. The suggested wording is a preference between two defensible forms, which fleet-code-review "Review the Change" item 5 asks a review to omit.

@codecov

codecov Bot commented Oct 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@e13851d). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #3333   +/-   ##
==========================================
  Coverage           ?   65.47%           
==========================================
  Files              ?       17           
  Lines              ?    10014           
  Branches           ?        0           
==========================================
  Hits               ?     6557           
  Misses             ?     3457           
  Partials           ?        0           
Flag Coverage Δ
python-3.13 65.47% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Oct 22, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727
ptr727 merged commit 366d8e5 into develop Oct 22, 2026
14 checks passed
@ptr727
ptr727 deleted the feature/auto-1663 branch October 22, 2026 03:02
ptr727 added a commit that referenced this pull request Oct 22, 2026
… 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants