Repository navigation
docs: define issue maintenance rules - #2273
Conversation
zerob13
left a comment
There was a problem hiding this comment.
The links and overall priority/milestone structure check out. Three documentation conflicts remain:
- §1.3 treats
issue-gateas active and requires an accepted issue for every PR, but #2274 is still open and baseAGENTS.mdpermits routine dependencies, typo and formatting exceptions. Acceptance: contributors can tell which rules apply now, which exceptions still exist, and when any change takes effect. If the intent is to change the exceptions, keep the canonical instructions consistent. - §§1.1 and 3.3 suggest the priority map can exclude implementation already present in a release build. The release workflow builds the selected commit; labels/map entries do not filter its source. Acceptance: distinguish a milestone commitment or release-note decision from what goes in a build, and clarify how deferred implementation is kept out of that build.
- §5's closure criteria contradict §1/§1.2 for duplicate, superseded, declined or decision-only issues. Acceptance: those can close with a documented disposition or decision, while implementation work still requires evidence of delivery. Keep the documented merge-closing keywords consistent across both sections.
Exact docs CI and targeted link, whitespace, ADR and script checks passed.
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
The PR adds docs/issue-maintenance.md to define the issue accept gate, labels, priority map, milestones, comments, closing, stale reminders and cadence, then links it from docs/INDEX.md and PRODUCT.md (fixes #2271). I read the whole document against AGENTS.md, CONTRIBUTING.md, PRODUCT.md, the issue templates, the pinned priority map (#2270), the live labels, milestones and ruleset, and the companion gate PR #2274.
I agree with the earlier review on the active gate description, the small-change exception, the release-build exclusion and the merge-closing keywords. This review adds only the points below.
P2
1. Comment-only acceptance cannot satisfy the label-based gate.
Problem: docs/issue-maintenance.md:62 allows a trivial fix's accept to be one comment. Lines 49-50 and 55 make the P0/P1/P2 label the acceptance record, and line 66 requires that label to merge. A comment does not add a label, and line 43 says conclusions need not map to GitHub labels.
Failure: A maintainer writes "accepted" on a trivial bug issue, the contributor opens Fixes #N, the issue still has no P label, and issue-gate blocks the PR. The acceptance the document allows is not the acceptance the gate reads.
Fix: Require the P label in the same round as the accept comment, or remove the comment-only exception and state that only the label records acceptance.
P3 (optional)
2. The document repeats product judgment instead of linking it.
Problem: The opening says the document does not repeat product principles (:3), but :39-41 restate PRODUCT.md's product-scope and technical-fit rules, and :43 restates its rule against treating the proposed solution as the requirement. AGENTS.md:62 says a rule is stated once at its layer.
Failure: PRODUCT.md and this document can drift, and the three-item gate here and the four review questions there can be applied differently to the same issue.
Fix: Link PRODUCT.md and keep only the maintenance-specific rules.
Optional: next-release at :108 is not an existing repository label, and #2271 says no new labels. Remove the sentence or track the label in a separate issue.
Section 4.3 at :161-169 is consistent with the rest of the document and adds no finding.
CI at this head is green: changes and ci-ok pass and the code checks skip for a docs-only diff. The PR is mergeable with no conflicts, and node scripts/adr-check.mjs --base origin/main passes.
REQUEST_CHANGES
| - 需拆分:加 `needs-split`,先拆出可独立接受的子 issue。 | ||
| - 不值得做:关闭并说明原因(`wontfix`/`invalid`/`duplicate`),不保留实现 PR。 | ||
| - 产品定位不属于 Dim(应在插件、桌面端或另一个仓库):关闭或转交,不在本仓库实现。 | ||
| - 开发者发现的 bug:先开 issue,补复现和预期,按上面三条快速 accept;trivial fix 的 accept 可以是一句评论。 |
There was a problem hiding this comment.
P2. Comment-only acceptance contradicts the label gate. Problem: this line allows a trivial fix's accept to be one comment, while lines 49-50 and 55 make only P0/P1/P2 accepted and line 66 requires that label to merge; a comment does not add a label, and line 43 says conclusions need not map to labels. Failure: a maintainer accepts in a comment, the issue stays unlabeled, and the linked PR is blocked by the gate. Fix: require the P label in the same round as the accept comment, or remove the comment-only option.
There was a problem hiding this comment.
Fixed in 5d21c536: acceptance now requires the P0/P1/P2 label; the comment-only option is gone.
|
Thanks for the detailed review. I agree with the documentation conflicts: the gate is not active until #2274 lands and the ruleset requires it; the mechanical-change exemption in |
|
Pushed |
zerob13
left a comment
There was a problem hiding this comment.
The distinction between build contents and milestone commitments, the documented disposition paths, and label-based acceptance are improved. Two remaining policy inconsistencies block this revision:
AGENTS.mdandCONTRIBUTING.mdnow remove the existing small-change exception, but the maintainer decision about that exception is still pending. Keep the current policy until that decision is recorded, or record the decision and apply it consistently. Distinguish rules enforced by manual review now from those requiring the independently reviewed workflow and ruleset (#2274).- §1.1 still restricts release notes to planned items, while §3.3 says to list the PRs actually released. Clarify whether and where an unplanned PR included in the release build is listed; the two sections should give the same guidance.
Non-blocking wording follow-up: §5's completion example still only names Fixes; make it consistent with the closing keywords accepted in §1.3 while keeping Refs non-closing. The exact docs CI, link checks and 21 script tests passed.
|
Decision recorded on #2271: the mechanical-change exception is removed; every PR links a primary issue, enforced by manual review until |
|
Pushed |
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
At d9b081c57, the PR adds docs/issue-maintenance.md to define the issue accept gate, labels, priority map, milestones, comments, closing, stale reminders and cadence, links it from docs/INDEX.md and PRODUCT.md, and removes the routine dependency, typo and formatting exception from AGENTS.md and CONTRIBUTING.md (fixes #2271). I read the whole document against PRODUCT.md, the issue templates, the live labels, milestones and ruleset, and the companion gate PR #2274.
The previous blocking points are fixed and I withdraw them:
- The mechanical-change exception is consistent across
AGENTS.md:21,CONTRIBUTING.md:31-33anddocs/issue-maintenance.md:60, and the decision is recorded on #2271. docs/issue-maintenance.md:46,:49and:135separate the milestone commitment from the release notes, and unplanned PRs in the release build are listed separately.docs/issue-maintenance.md:176and:179nameFixes,ClosesandResolves, withRefsnon-closing.- The comment-only acceptance,
next-releaselabel, release-build exclusion and duplicate/superseded/declined closure points are fixed as well.
No blocking findings. These optional P3 notes remain.
P3 (optional)
1. The PRODUCT.md summary duplicates the paragraph above and uses undefined terms.
Problem: docs/issue-maintenance.md:37 and :39 both require explicit confirmation for a product-direction change and both say an ordinary issue cannot accept it. :22 and :39 both require the issue to state the product scope and ownership. :39 introduces core/plugin/client/integration without defining those terms, while :30 uses local/extension/architecture and PRODUCT.md:69-93 uses local fix, capability extension, architectural change and product-direction change.
Failure: An author cannot tell which set to answer. A core mechanism used by a plugin can be classified as core or plugin; two reviewers can apply different gates to the same issue.
Fix: Merge :37 and :39. Link PRODUCT.md for the change level and the product-direction process, and require only the owning repo or surface, the owning layer and whether the product boundary changes. Reuse PRODUCT.md's terms or define the four ownership terms once.
2. A non-implementation close leaves the acceptance label on the issue.
Problem: docs/issue-maintenance.md:177 closes duplicate, superseded, declined and decision-only issues with a disposition. The close steps at :181-184 remove question and needs-split but not P0/P1/P2/P3. The rule at :64 is enforced by the label-only gate in #2274, which does not check the issue state.
Failure: A P1 issue is declined and closed; its P1 label stays. A later PR links the same issue and passes issue-gate with a stale acceptance label, so the gate treats declined work as accepted.
Fix: Add the priority label removal to the non-implementation close steps at :183, or have the gate require an open issue. The priority map covers open issues, so the label should not survive the close.
Optional nit: section 2.4 has two extra blank lines at docs/issue-maintenance.md:108-109 after the removed sentence.
CI at d9b081c57 is green for a docs-only diff: changes and ci-ok pass and the code checks skip. git diff --check, the changed links and node scripts/adr-check.mjs --base 1997683 pass. The PR is mergeable with no conflicts; the blocked state is the outstanding change requests.
APPROVE
|
|
||
| 三条都满足即可 accepted。对架构变更和产品方向变更,按 [PRODUCT.md](../PRODUCT.md) 追加论证;如果改变产品定义、主要交互或用户/Agent 责任边界,升级为 product-direction change,先取得明确方向确认,不能用普通 issue 接受。 | ||
|
|
||
| feature、design 和架构变更的产品定位与技术目标按 [PRODUCT.md](../PRODUCT.md) 和现行 ADR/设计判断;本文只要求 issue 说明归属(core/plugin/client/integration)、承载仓库/表面,以及是否改变产品边界。若改变,按 PRODUCT.md 的 product-direction 流程先确认,不能用普通 issue 接受。 |
There was a problem hiding this comment.
P3. This summary repeats the paragraph above and uses undefined terms. :37 and this line both require product-direction confirmation; :22 and this line both require product scope and ownership. core/plugin/client/integration is not defined here or in PRODUCT.md, while :30 uses local/extension/architecture and PRODUCT.md uses local fix, capability extension, architectural change and product-direction change. An author cannot tell which set to answer. Merge :37 and this line, link PRODUCT.md for the change level, and require only the owning repo or surface, the owning layer and whether the product boundary changes.
|
|
||
| 1. 检查 linked PR、验收条件和未完成子 issue; | ||
| 2. 写一条关闭评论,链接 PR 或证据; | ||
| 3. 移除 `question` / `needs-split`; |
There was a problem hiding this comment.
P3. Non-implementation closes leave the acceptance label. :177 closes duplicate, superseded, declined and decision-only issues with a disposition, and this step removes only question/needs-split. The rule at :64 is enforced by the label-only gate in #2274, which does not check state, so a declined P1 issue still passes a later PR. Remove the priority label in the non-implementation close steps, or have the gate require an open issue.
|
Pushed |
zerob13
left a comment
There was a problem hiding this comment.
One blocking issue: this commit changes PRODUCT.md policy, but the PR's own issue says that file should only get a link.
Blocking — PRODUCT.md's PR duties are rewritten outside #2271's scope.
ce2fed1d changes PRODUCT.md from "review PRs and their implementation" to "for PRs, check only the linked accepted issue; do not review the implementation", and rewrites the related passages at PRODUCT.md:3, :42-46, :64, :70, :95, :97, :105 and :125. Linked issue #2271 says under Non-goals: "No change to the product judgment in PRODUCT.md beyond the link." The only maintainer decision recorded on #2271 (2026-11-27 10:04Z) removes the mechanical-change exception; it does not authorize changing the product architect's PR duties. Pick one:
- keep PRODUCT.md to the link and revert the responsibility rewrite; or
- update #2271's scope/non-goals and record the decision, then apply the change consistently.
P2 — if the rewrite stays, AGENTS.md:3 is now misleading. It still points "product-level review of Issues and PRs" at PRODUCT.md, while PRODUCT.md now says the product architect does not review PR implementation. Point it at the merge-eligibility rule.
P3 (optional) — PRODUCT.md:9 is headed "Review Every Issue", but the paragraph says "Judge every change". Narrow the sentence to Issues, or keep the heading and body wording aligned.
The rest of the delta is coherent, and the docs-only checks are green: changes and ci-ok pass, the internal anchors resolve, and git diff --check is clean.
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
At ce2fed1d, the PR adds docs/issue-maintenance.md for the issue accept gate, labels, priority map, milestones, comments, closing and triage, links it from docs/INDEX.md and PRODUCT.md, removes the routine dependency, typo and formatting exception from AGENTS.md and CONTRIBUTING.md, and rewrites the PR part of PRODUCT.md so the maintenance role checks only issue support and accepted state (fixes #2271). I read the whole diff against #2271, PRODUCT.md, AGENTS.md, CONTRIBUTING.md, the issue templates, the live labels and milestones, and the companion gate PR #2274.
The earlier blocking points are fixed and I withdraw them: the mechanical-change decision is recorded on #2271 and reflected at docs/issue-maintenance.md:60; the manual-versus-required enforcement split is at :68; the milestone and release-build distinction is at :46, :49 and :136-138; the closing keywords are at :177-180; and comment-only acceptance is gone at :60.
I agree with the existing changes-requested review on the PRODUCT.md scope mismatch and the AGENTS.md pointer; I do not repeat those findings.
P3 (optional)
1. A non-implementation close still leaves the acceptance label.
Problem: docs/issue-maintenance.md:178 closes duplicate, superseded, declined, invalid, not-pursuing and decision-only issues with a disposition; the close steps at :182-185 remove only question and needs-split and leave P0, P1, P2 and P3. PRODUCT.md:44 now makes the P0/P1/P2 label the only accepted-state check the maintenance role performs.
Failure: A P1 issue is declined and closed; its P1 label remains. A later PR links the closed issue and passes the label-only gate, so declined work is treated as accepted.
Fix: Add priority label removal to the non-implementation close steps at :184, or make the gate require an open issue.
2. The product-scope summary still duplicates the paragraph above and uses undefined terms.
Problem: docs/issue-maintenance.md:37 and :39 both require explicit confirmation for a product-direction change and both say an ordinary issue cannot accept it. :22 and :39 both require the issue to state the product scope and ownership. :39 introduces core/plugin/client/integration without defining those terms, while :30 uses local/extension/architecture and PRODUCT.md uses local fix, capability extension, architectural change and product-direction change.
Failure: An author cannot tell which set to answer. A core mechanism used by a plugin can be classified as core or plugin; two reviewers can apply different gates to the same issue.
Fix: Merge :37 and :39, link PRODUCT.md for the change level, and require only the owning repo or surface, the owning layer and whether the product boundary changes. Reuse PRODUCT.md's terms or define the four ownership terms once. This was optional in my last review and remains unchanged; it is not worth expanding this PR for it.
Checks
CI at ce2fed1d is green for a docs-only diff: changes and ci-ok pass, code jobs skip. git diff --check and node scripts/adr-check.mjs --base 7d9148bb pass. docs/issue-maintenance.md:65 resolves to PRODUCT.md#maintain-pr-merge-eligibility; the heading has no punctuation and the anchor is correct. The merge with origin/main at 7d9148bb is clean: #2278 added its docs/INDEX.md line below this PR's line, so there is no conflict and no rebase is required. The PR is mergeable; the blocked state is the outstanding review decision.
REQUEST_CHANGES
|
|
||
| 1. 检查 linked PR、验收条件和未完成子 issue; | ||
| 2. 写一条关闭评论,链接 PR 或证据; | ||
| 3. 移除 `question` / `needs-split`; |
There was a problem hiding this comment.
P3 (optional). Non-implementation closes leave the acceptance label. :178 closes declined, duplicate, superseded and decision-only issues with a disposition, and this step removes only question/needs-split, leaving P0-P3. PRODUCT.md:44 makes the label the only accepted-state check, so a declined P1 issue still passes a later PR. Remove the priority label here, or have the gate require an open issue.
There was a problem hiding this comment.
Fixed in 5d21c536: the non-implementation close step now removes the P0-P3 labels.
|
|
||
| 三条都满足即可 accepted。对架构变更和产品方向变更,按 [PRODUCT.md](../PRODUCT.md) 追加论证;如果改变产品定义、主要交互或用户/Agent 责任边界,升级为 product-direction change,先取得明确方向确认,不能用普通 issue 接受。 | ||
|
|
||
| feature、design 和架构变更的产品定位与技术目标按 [PRODUCT.md](../PRODUCT.md) 和现行 ADR/设计判断;本文只要求 issue 说明归属(core/plugin/client/integration)、承载仓库/表面,以及是否改变产品边界。若改变,按 PRODUCT.md 的 product-direction 流程先确认,不能用普通 issue 接受。 |
There was a problem hiding this comment.
P3 (optional). This summary repeats the paragraph above and uses undefined terms. :37 and this line both require product-direction confirmation; :22 and this line both require product scope and ownership. core/plugin/client/integration is not defined here or in PRODUCT.md, while :30 uses local/extension/architecture and PRODUCT.md uses local fix, capability extension, architectural change and product-direction change. Merge :37 and this line, link PRODUCT.md for the change level, and require only the owning repo or surface, the owning layer and whether the product boundary changes.
There was a problem hiding this comment.
Still optional and unchanged; I do not block on it.
|
Maintainer decision recorded on #2271 and its scope updated: PRODUCT.md's PR maintenance is gate-only (linked same-repository issue + accepted state); business/technical review, CI and merge stay with the reviewer/maintainer. The previous link-only non-goal no longer applies, so |
|
Pushed |
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
At 5d21c536, the PR adds docs/issue-maintenance.md for the issue accept gate, labels, priority map, milestones, comments, closing, stale reminders and cadence, links it from docs/INDEX.md and PRODUCT.md, removes the routine dependency, typo and formatting exception from AGENTS.md and CONTRIBUTING.md, and limits PRODUCT.md's PR role to merge eligibility (fixes #2271). The new head adds priority-label removal on non-implementation closes, points AGENTS.md:3 at Issue review plus PR merge eligibility, and aligns PRODUCT.md:9 with the Issue heading.
The earlier PRODUCT.md scope objection is resolved and I withdraw it: #2271 now records the PR maintenance boundary in its scope, and the maintainer decision says the link-only non-goal no longer applies. The new AGENTS.md pointer and the Issue wording are consistent with PRODUCT.md. The non-implementation close P3 from my last review is fixed at docs/issue-maintenance.md:184, and I withdraw it.
No blocking findings.
P3 (optional)
1. The merge-gate rule does not say the linked issue must be in this repository. docs/issue-maintenance.md:64 says an accepted issue, while PRODUCT.md:44 requires a same-repository issue and #2274's parser drops owner/repo#N references. A contributor can link a cross-repository issue that has a P label and still fail the gate with No linked issue.
2. An implementation-completed close keeps the priority label. docs/issue-maintenance.md:184 removes P0-P3 only for non-implementation closes. A completed issue closed through Fixes/Closes/Resolves keeps P0-P2, and the label-only gate does not check issue state, so a later PR can link the closed issue and pass. This is consistent with the issue having been accepted, so it is a limit of the label-only gate rather than a contradiction; if the gate should require an open issue, state that limit here or track it with the gate PR.
The duplicate-summary P3 at docs/issue-maintenance.md:37-39 remains optional and unchanged; I do not block on it.
Checks
CI at 5d21c536 is green for a docs-only diff: changes and ci-ok pass and the code jobs skip. git diff --check is clean. node scripts/adr-check.mjs --base 7d9148bb passes. The relative links and the PRODUCT.md#maintain-pr-merge-eligibility anchor resolve. The PR is open, not draft, mergeable true, and #2271 now covers the PRODUCT.md boundary. The remaining P3s are optional.
APPROVE
|
|
||
| ### 1.3 合并门禁 | ||
|
|
||
| - PR 必须链接至少一个 accepted issue(`Fixes #N`、`Closes #N`、`Resolves #N` 或 `Refs #N`),且该 issue 带 `P0`/`P1`/`P2`; |
There was a problem hiding this comment.
P3 (optional). Say the linked issue must be in this repository. This rule and its examples do not say it, while PRODUCT.md:44 requires a same-repository issue and #2274's parser drops owner/repo#N references. A contributor can link a cross-repository issue with a P label and still fail the gate with No linked issue. Add same-repository here or link the gate rule.
|
|
||
| 1. 检查 linked PR、验收条件和未完成子 issue; | ||
| 2. 写一条关闭评论,链接 PR 或证据; | ||
| 3. 移除 `question` / `needs-split`;非实现关闭时同时移除 `P0`-`P3` 优先级标签,避免已关闭的 issue 继续被 gate 当作 accepted; |
There was a problem hiding this comment.
P3 (optional). An implementation-completed close keeps the priority label. This step removes P0-P3 only for non-implementation closes. A completed issue closed through Fixes/Closes/Resolves keeps P0-P2, and the label-only gate does not check issue state, so a later PR can link the closed issue and pass. This is consistent with the issue having been accepted, so it is a limit of the label-only gate rather than a contradiction; if the gate should require an open issue, state that limit here or track it with the gate PR.
Remove the PRODUCT.md pointer from AGENTS.md and the issue-maintenance entry from docs/INDEX.md. Both documents are role-specific; general agents should not follow the product architect's PR review rules.
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
At 5fd44cd6, the PR defines the issue accept and maintenance process in docs/issue-maintenance.md, narrows PRODUCT.md's PR role to merge eligibility, and makes the linked primary issue rule explicit in AGENTS.md and CONTRIBUTING.md (fixes #2271). The new head removes the PRODUCT.md pointer from AGENTS.md and the docs/issue-maintenance.md entry from docs/INDEX.md, so the general entrypoints no longer route readers to the role-specific product guidance. I reviewed the complete origin/main...head diff against fcd3601 and the earlier threads.
No blocking findings. The earlier P2 on comment-only acceptance is fixed at docs/issue-maintenance.md:60; the PRODUCT.md scope objection is resolved in #2271 and withdrawn. The mechanical-change exception, the milestone and release-build distinction, the closing keywords and the non-implementation close label rule are consistent. The remaining notes about the same-repository wording at docs/issue-maintenance.md:64, the implementation-completed close label limit at :184, and the duplicate product-scope summary at :37-39 stay optional and do not affect this approval. The new link removal is coherent with the role-specific scope; PRODUCT.md and docs/issue-maintenance.md still link to each other.
Checks at 5fd44cd6: git diff --check exits 0; node scripts/adr-check.mjs --base origin/main reports 4 changed files; node --test scripts/adr-check.test.mjs has 7 passing tests; the links PRODUCT.md to docs/issue-maintenance.md, docs/issue-maintenance.md to ../PRODUCT.md, and ../PRODUCT.md#maintain-pr-merge-eligibility resolve. CI is docs-only: changes and ci-ok pass; dependencies, macos-native, scripts, static-checks, verify, web, windows-cli and acp-registry are skipped. The PR is open, not draft, mergeable true and the head is unchanged.
APPROVE
Fixes #2271
Summary
PRODUCT.mdnow limits PR maintenance to checking a linked same-repository accepted issue. Business/technical review, CI debugging and merge decisions remain with the reviewer/maintainer;docs/issue-maintenance.mdlinks to that section instead of restating it.docs/issue-maintenance.md: accept gate, accepted vs planned, labels, priority map and milestones, comments and communication, closing, stale reminders, cadence and sources.AGENTS.mdandCONTRIBUTING.md; every PR links a primary issue.PRODUCT.mdpointer fromAGENTS.mdand thedocs/issue-maintenance.mdentry fromdocs/INDEX.md; both documents are role-specific, so general agents should not be routed to the product architect's PR review rules.issue-gateversus manual review; separate milestone commitment from release build contents; add disposition closes for duplicate/superseded/declined/decision-only issues; require theP0/P1/P2label for acceptance instead of a comment-only accept; remove thePRODUCT.mdrestatement and the non-existentnext-releaselabel.PRODUCT.md.Verification
git diff --checkis clean.PRODUCT.md→docs/issue-maintenance.md; the document →../PRODUCT.md.AGENTS.mdcontains noPRODUCT.mdreference;docs/INDEX.mddoes not listdocs/issue-maintenance.md.AGENTS.mdandCONTRIBUTING.mdnow say every PR links a primary issue.