AGENTS.md, CONTRIBUTING.md, SECURITY.md and the README explain how issues, branches, commits and pull requests refer to each other #5

Closed
opened 2026-10-31 12:41:48 -04:00 by claude · 1 comment
Owner
  • Draft: PROC-4
  • Priority: high (the coders follow AGENTS.md, so it must say how to reference an issue before the first issue is worked)
  • Agent: docs-writer
  • Depends on: #4
  • Decisions: Q-PROC-2, Q-PROC-4, CLOSING-POLICY

Why

The branch and commit rules (AGENTS.md "Commits and branches", CONTRIBUTING.md:688-722) say nothing about issues. The commit rule is one sentence with no prefixes, and the body already carries trailers, so an issue line in the body fits the rule without changing the subject. SECURITY.md already sends vulnerabilities to e-mail and keeps them out of public issues (SECURITY.md:5-10); it only lacks a pointer to the tracker for everything else.

What changes

Rules (CLOSING-POLICY, owner 2026-10-31: issues close when the work reaches main):

  • Branch: feature/<issue>-<short-name>, created from develop; for a sub-phase, <issue> is its epic. Hotfixes use hotfix/<issue>-<short-name> from main.
  • Commit: the subject is unchanged (one sentence, no prefixes, no issue number). The body holds a line above the trailers: Closes #<n> in the commit that finishes an issue, Refs #<n> in every other commit about it.
  • Pull request: a feature PR's description lists Refs #<n> for every issue it works on, never Closes (a PR keyword would close the issue when the PR merges into develop). The develop into main PR then closes the issues, because the commits carrying Closes reach main.
  • Two traps, verified on Forgejo 15.0.11 (FORGEJO-FACTS.md):
    • A closing keyword on an issue with open dependencies does nothing, silently. Close the dependencies first, or close the issue by hand once they are closed.
    • A commit that sits only on a release or hotfix branch closes nothing until it reaches main.
  • Milestones are themes (Q-PROC-2), not releases. A release can ship issues from several milestones; a milestone is closed by hand when its last issue ships, and its description names that release.

Files:

  • AGENTS.md:
    • "Commits and branches": bullets for the rules above.
    • "Code conventions", agent-role bullet: say that the architect writes issue drafts (#6).
    • Keep it lean (memory feedback_docs_lean.md): no narrative.
  • CONTRIBUTING.md:
    • new section "Report a bug or propose a change" before "Commit, branch and pull request": templates, what the label scopes mean (link the tracker's label page; one label per exclusive scope), milestones, dependencies;
    • update steps 1, 2 and 4 of "Commit, branch and pull request" (CONTRIBUTING.md:692-722) with the commit and PR rules and the two traps;
    • "Cutting a release" (CONTRIBUTING.md:739-760): after the develop into main merge, check that the finished issues closed (close by hand any whose dependencies blocked the keyword), and close any milestone the release finishes. #52 adds the PQC review step to the same section; whichever lands second keeps both;
    • one line on .forgejo/scripts/sync-labels.sh;
    • CONTRIBUTING.md:762-765 (security): unchanged apart from a link to SECURITY.md if missing.
  • SECURITY.md: one sentence after :9-10 that every other problem goes to the public tracker, linking the bug template. The channel stays e-mail (Q-PROC-4); Forgejo has no private issues.
  • README.md "Contributing" (README.md:5969-5987): one sentence linking the issue tracker.

Acceptance

  • Every new step has a command and a "Check that it worked" line where one applies (memory feedback_docs_handholding.md).
  • Link and anchor check over the changed .md files reports 0 bad links.
  • SECURITY.md, CONTRIBUTING.md and the #4 config.yaml contact link name the same channel (e-mail).
  • AGENTS.md, CONTRIBUTING.md, the #4 PR template and the #6 agent roles state the same closing rule.
  • No other rule in AGENTS.md changes. The commit examples stay valid.

Source

  • BRIEF.md items (d) and (e). AGENTS.md "Commits and branches". CONTRIBUTING.md:688-765. SECURITY.md:3-10. Branch policy owner 2026-09-24. FORGEJO-FACTS.md.
  • Owner decisions 2026-10-31: Q-PROC-2 "per theme", Q-PROC-4 "keep e-mail", CLOSING-POLICY "issues close when the work reaches main: the commit that finishes an issue carries 'Closes #n' in its body, other commits 'Refs #n'; feature PR descriptions use 'Refs #n', never 'Closes'; the develop->main PR then closes them" (replaces Q-PROC-3's "Closes in PRs").
- **Draft:** PROC-4 - **Priority:** high (the coders follow AGENTS.md, so it must say how to reference an issue before the first issue is worked) - **Agent:** docs-writer - **Depends on:** #4 - **Decisions:** Q-PROC-2, Q-PROC-4, CLOSING-POLICY ### Why The branch and commit rules (`AGENTS.md` "Commits and branches", `CONTRIBUTING.md:688-722`) say nothing about issues. The commit rule is one sentence with no prefixes, and the body already carries trailers, so an issue line in the body fits the rule without changing the subject. SECURITY.md already sends vulnerabilities to e-mail and keeps them out of public issues (`SECURITY.md:5-10`); it only lacks a pointer to the tracker for everything else. ### What changes Rules (CLOSING-POLICY, owner 2026-10-31: issues close when the work reaches `main`): - Branch: `feature/<issue>-<short-name>`, created from `develop`; for a sub-phase, `<issue>` is its epic. Hotfixes use `hotfix/<issue>-<short-name>` from `main`. - Commit: the subject is unchanged (one sentence, no prefixes, no issue number). The body holds a line above the trailers: `Closes #<n>` in the commit that finishes an issue, `Refs #<n>` in every other commit about it. - Pull request: a feature PR's description lists `Refs #<n>` for every issue it works on, never `Closes` (a PR keyword would close the issue when the PR merges into `develop`). The `develop` into `main` PR then closes the issues, because the commits carrying `Closes` reach `main`. - Two traps, verified on Forgejo 15.0.11 (FORGEJO-FACTS.md): - A closing keyword on an issue with open dependencies does nothing, silently. Close the dependencies first, or close the issue by hand once they are closed. - A commit that sits only on a release or hotfix branch closes nothing until it reaches `main`. - Milestones are themes (Q-PROC-2), not releases. A release can ship issues from several milestones; a milestone is closed by hand when its last issue ships, and its description names that release. Files: - `AGENTS.md`: - "Commits and branches": bullets for the rules above. - "Code conventions", agent-role bullet: say that the architect writes issue drafts (#6). - Keep it lean (memory `feedback_docs_lean.md`): no narrative. - `CONTRIBUTING.md`: - new section "Report a bug or propose a change" before "Commit, branch and pull request": templates, what the label scopes mean (link the tracker's label page; one label per exclusive scope), milestones, dependencies; - update steps 1, 2 and 4 of "Commit, branch and pull request" (`CONTRIBUTING.md:692-722`) with the commit and PR rules and the two traps; - "Cutting a release" (`CONTRIBUTING.md:739-760`): after the `develop` into `main` merge, check that the finished issues closed (close by hand any whose dependencies blocked the keyword), and close any milestone the release finishes. #52 adds the PQC review step to the same section; whichever lands second keeps both; - one line on `.forgejo/scripts/sync-labels.sh`; - `CONTRIBUTING.md:762-765` (security): unchanged apart from a link to SECURITY.md if missing. - `SECURITY.md`: one sentence after `:9-10` that every other problem goes to the public tracker, linking the bug template. The channel stays e-mail (Q-PROC-4); Forgejo has no private issues. - `README.md` "Contributing" (`README.md:5969-5987`): one sentence linking the issue tracker. ### Acceptance - [ ] Every new step has a command and a "Check that it worked" line where one applies (memory `feedback_docs_handholding.md`). - [ ] Link and anchor check over the changed `.md` files reports 0 bad links. - [ ] SECURITY.md, CONTRIBUTING.md and the #4 `config.yaml` contact link name the same channel (e-mail). - [ ] AGENTS.md, CONTRIBUTING.md, the #4 PR template and the #6 agent roles state the same closing rule. - [ ] No other rule in AGENTS.md changes. The commit examples stay valid. ### Source - BRIEF.md items (d) and (e). AGENTS.md "Commits and branches". CONTRIBUTING.md:688-765. SECURITY.md:3-10. Branch policy owner 2026-09-24. FORGEJO-FACTS.md. - Owner decisions 2026-10-31: Q-PROC-2 "per theme", Q-PROC-4 "keep e-mail", CLOSING-POLICY "issues close when the work reaches main: the commit that finishes an issue carries 'Closes #n' in its body, other commits 'Refs #n'; feature PR descriptions use 'Refs #n', never 'Closes'; the develop->main PR then closes them" (replaces Q-PROC-3's "Closes in PRs").
claude added this to the (deleted) milestone 2026-10-31 12:41:48 -04:00
Author
Owner

CLOSING-POLICY changed (owner, 2026-10-31): an issue closes when its work reaches develop, not main. A feature pull request into develop says Closes #n in its description, and Forgejo closes the issue when that pull request merges. The commit that finishes the issue also keeps Closes #n in its body; other commits use Refs #n. The default branch stays main. #5 documents this rule instead of the main-based one.

**CLOSING-POLICY changed (owner, 2026-10-31):** an issue closes when its work reaches `develop`, not `main`. A feature pull request into `develop` says `Closes #n` in its description, and Forgejo closes the issue when that pull request merges. The commit that finishes the issue also keeps `Closes #n` in its body; other commits use `Refs #n`. The default branch stays `main`. #5 documents this rule instead of the main-based one.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#5
No description provided.