Skip to content

Issue #1184: the template allows a tested core whose caller comes in the next pull request - #2945

Open
nledford wants to merge 1 commit into
storytold:mainfrom
nledford:template-caller
Open

nledford wants to merge 1 commit into
storytold:mainfrom
nledford:template-caller

Conversation

@nledford

@nledford nledford commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Off main. Part of #1184.

Problem

The pull request template's checklist asks for "New code has a caller: no command, module or setting that nothing reaches yet". Reviews since the template was written ask for the opposite when a feature is large: split it at its existing boundary and land the tested core first, with the code that calls it in the next pull request.

A contributor following that advice can't tick the box, and one following the box can't follow the advice.

Change

One line in .github/PULL_REQUEST_TEMPLATE.md: new code has a caller, or is a tested core whose caller comes in the next pull request, named in the box (caller: #123, or the feature when that pull request isn't open yet). Code that nothing reaches or will reach is still ruled out.

Not in this PR: any other change to the template or to AGENTS.md; whether a core may wait without a caller for long is left to the reviewers.

How it was checked

  • cargo xtask ci passes on this branch, rebased on current main (not run locally for this template-only change; the hosted CI gate runs it)
  • Markdown lint, spelling and link checks on the changed file; the line keeps the file's 120-column wrap and continuation indent.
  • A test that fails without this change: not applicable (template text only).
  • User-visible change: not applicable.

Review: fresh reviewer at 927e8b3

Merging

  • Overlap: none found (no open pull request touches the template; searched for the file name and "pull request template").
  • Existing edits and libraries: unchanged.
  • Shared numbers taken: none.
  • New dependencies, unsafe, build scripts, network access, spawned processes, deleted files, CI or xtask gate changes: none.

Checklist

  • No new panic path in non-test code (no code).
  • Ready to merge

Summary by CodeRabbit

  • Documentation
    • Updated the new-code checklist to accept a planned caller in a future pull request. Contributors can identify that pull request by number or name the feature if it has not been opened yet.
    • The checklist continues to require each new command, module, or setting to have an existing or planned caller.

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 03c88c1 and 927e8b3.

Files selected for processing: 1
  • .github/PULL_REQUEST_TEMPLATE.md

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

Walkthrough

The pull request template checklist now allows a caller to be planned for a later pull request. It requires the later pull request number or, if it is not open, the feature name.

Changes: New code checklist

Layer / File(s) Summary
Caller requirement wording
.github/PULL_REQUEST_TEMPLATE.md
The checklist retains the requirement for each new command, module, or setting to have a caller or planned caller. It now specifies how to identify a caller planned for a later pull request.

Priority: Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Merge Risk: Minimal · up to 927e8

The template clarification is narrowly scoped and does not affect runtime behavior.

Architecture risk: Low · up to 927e8

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .github/PULL_REQUEST_TEMPLATE.md: The checklist item now accepts a caller in a later pull request, requiring its number or the feature name when that pull request is not open yet; it retains the requirement that new commands, modules, and settings have a caller or planned caller.
Pre-merge checks: Passed 4
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main change: allowing a tested core to have its caller added in a later pull request.
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.
Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@FredApps FredApps 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.

ReviewerA — source-read COMMENT (not an approval)

I read the diff: the pull request template item "New code has a caller" now allows "a tested core whose caller comes in the next pull request, named here (caller: #123, or the feature when that pull request isn't open yet): no command, module or setting that nothing reaches or will reach" (#1184). Allowing a stacked core with a named caller is a process decision that fits how this repository's queue actually works (many stacked PRs); the risk is the one the old rule prevented: dead code that is merged on a promise. To keep the promise honest, the follow-up PR should be required to be open at merge time (not "the feature when that pull request isn't open yet"), or the core should merge only together with its caller. The checkbox text is now long enough to be skipped; a short rule and a footnote would be read more often. The change is to a template, so it needs no tests. I have not run anything. This is a source-read comment and not an approval. Nothing was run.

I ran nothing and have no exact-head CI result for this PR, so this is not an approval. Where a diff was long I read its code hunks rather than every generated or documentation line.

Status: waiting_author.

@nledford

nledford commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

@FredApps, thanks. Requiring the caller PR to be open at merge is a stricter rule than I proposed, and it is a call for the maintainers: the template wording leaves it to the reviewers, who can hold a core until its caller is open. I'm leaving the wording as it is here; if a maintainer wants "open at merge" or "merge together", it is a one-line change on this PR.

@wanikhawar wanikhawar 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.

The template wording is clear and the examples (#2424, #2464) support it. This changes contribution policy, so it needs a maintainer decision rather than a code review.

This branch has not been deployed

No deployments
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.

3 participants