Skip to content

Commit ade82f5

Browse files
committed
docs: Define explicit Ticket Closure Protocol in AGENTS.md (#8412)
1 parent 08e3de4 commit ade82f5

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

AGENTS.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,14 @@ First, classify the user's request into one of two categories:
122122
- **Ticket ID Required:** The commit subject line **MUST** end with `(#TICKET_ID)`.
123123
- **Correct:** `feat: Add infinite canvas (#8392)`
124124
- **Standard:** Follow Conventional Commits.
125-
- **Push-Before-Notify:** If a task involves local commits, you **MUST** push changes to the remote repository (`git push`) BEFORE posting a completion comment or closing the associated GitHub issue. Do not mark a ticket as done if the code is only on your local machine.
126-
- **Ownership-on-Completion:** Before closing a ticket, ensure it is assigned to the current user. If unassigned, assign it immediately to capture credit for the work.
127-
- **Update Ticket:** You **MUST** post a comment on the issue if:
128-
1. You deviate from the original plan (explain *why*).
129-
2. The task is complete (summarize the result).
125+
126+
## 7. Ticket Closure Protocol (Definition of Done)
127+
128+
You **MUST** perform these steps in order before marking a task as complete:
129+
130+
1. **Push:** If a task involves local commits, you **MUST** push changes to the remote repository (`git push`).
131+
2. **Assign (MANDATORY):** Ensure the ticket is assigned to the current user. If unassigned, assign it immediately to capture credit for the work.
132+
3. **Comment:** You **MUST** post a comment on the issue if:
133+
- You deviated from the original plan (explain *why*).
134+
- The task is complete (summarize the result).
135+
4. **Close:** Only after steps 1-3 are complete can you close the ticket.

0 commit comments

Comments
 (0)