You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ For any actionable request that requires modifying the repository, you **MUST**
27
27
1.**Scoping:** Tickets force focus. A single ticket (and its subsequent commit) should address one discrete problem or feature. Never bundle unrelated fixes into a single ticket/commit.
28
28
2.**The "Fat Ticket" Protocol (MANDATORY):** You MUST adhere to the Swarm Architecture "Fat Ticket" protocol (defined in `AGENTS_STARTUP.md`). When creating a ticket, focus the description not just for human tracking, but as a rich A2A (Agent-to-Agent) memory bridge containing deep architectural context, rationale, and avoided pitfalls.
29
29
3.**Exploration is Allowed:** You are permitted to write code, modify files, and experiment locally to understand a complex problem ("Unknown Unknowns") *before* creating the ticket.
30
-
4.**The Hard Stop:** The absolute hard stop is `git commit`. You **MUST NEVER** execute a commit without referencing a valid, narrowly scoped ticket ID in the commit message. Use the `create_issue` tool and follow its workflow.
30
+
4.**The Hard Stop:** The absolute hard stop is `git commit`. You **MUST NEVER** execute a commit without referencing a valid, narrowly scoped ticket ID in the commit message. Furthermore, direct pushes to `main` or `dev` are strictly forbidden; all code modifications must undergo the Pull Request workflow (see Section 8). Use the `create_issue` tool and follow its workflow.
31
31
32
32
**Gate 2: The Contextual Completeness Gate**
33
33
Writing code fast or changing concepts on the fly is acceptable during the exploration phase. However, **before a commit is executed, the code MUST conform to our strict quality and documentation standards**. We must protect the codebase from semantic degradation.
@@ -150,14 +150,13 @@ First, classify the user's request into one of two categories:
150
150
151
151
You **MUST** perform these steps in order before marking a task as complete:
152
152
153
-
1.**Push:** If a task involves local commits, you **MUST** push changes to the remote repository (`git push`).
154
-
2.**Assign (MANDATORY):** Ensure the ticket is assigned to the current user. If unassigned, assign it immediately to capture credit for the work.
155
-
3.**Comment:** You **MUST** post a comment on the issue if:
156
-
- You deviated from the original plan (explain *why*).
157
-
- The task is complete (summarize the result).
158
-
4.**Epic Granularity Constraints:** An Agent must *only* create an Epic if there are legitimate sub-issues needed that will be resolved independently (via their own distinct commit, PR, and comment). "One-shotting" an Epic and multiple sub-tasks within a single commit is a strict sequence violation. If a task can be done in one commit, it is a standard Issue, not an Epic.
159
-
5.**Resolve Sub-Tasks:** If closing an Epic, you **MUST** cascade this Protocol (Steps 1-4) down to all linked sub-issues. An Epic is not closed until its sub-issues are explicitly resolved.
160
-
6.**Close:** Only after steps 1-5 are complete can you close the ticket (or Epic).
153
+
1.**Branching (MANDATORY):** You are strictly forbidden from committing or pushing directly to the `main` (release-only) or `dev` (default working) branches. You MUST checkout a new branch (e.g., `agent/9851-retrospective`).
154
+
2.**Commit & Push:** Commit your finalized changes to this branch and push the branch to the remote repository.
155
+
3.**Pull Request (MANDATORY):** Use `run_command` with `gh pr create --fill --base dev` to open a Pull Request targeting the `dev` branch.
156
+
4.**One PR per Ticket:** Enforce a strict 1-to-1 ratio between an Issue and a Pull Request. Do not bundle multiple unassociated issues into a single PR.
157
+
-**Epic Exception:** An Epic may have a single overarching PR that resolves all of its associated Sub-Issues.
158
+
5.**Assign:** Ensure the Pull Request and the underlying Ticket are assigned to the current user to capture credit.
159
+
6.**Handoff:** Post a comment on the original issue and the PR if you deviated from the original plan. The agent's task is considered "Done" once the PR is opened and ready for human review. Do not merge it yourself.
Copy file name to clipboardExpand all lines: AGENTS_STARTUP.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -271,3 +271,4 @@ Without this context, sub-agents will hallucinate bugs where none exist (e.g., c
271
271
-**The Architectural Reality:** Point out exactly *which* Neo.mjs patterns or class topologies this issue interacts with. Include specific paths to files discovered during your research.
272
272
-**Avoided "Gold Standards" / Traps:** Explain *why* you decided not to use alternative paths. Specifically highlight if you avoided a generic industry or LLM "Gold Standard" (e.g., standard React patterns, generic node workflows) because it acts as a trap within Neo.mjs's unique multi-threaded architecture.
273
273
7.**Handoff Realization:** On boot (`initAsync`), nodes like Mac 2 automatically synthesize the latest synced `.md` issues into their local SQLite matrix and build `sandman_handoff.md`. If your tickets are "Fat," the resulting "Golden Path" ranking will accurately bridge the distributed swarm without ever merging the raw SQLite files.
274
+
8.**Pull Request Collaboration:** Once you begin actionable work, you are acting as an asynchronous contributor. All code changes MUST culminate in a Pull Request against the `dev` branch (see `AGENTS.md` Section 8). Direct commits to `main` or `dev` are forbidden, ensuring the team can review and critique the implementation before integration.
0 commit comments