Frontmatter
| id | 10051 |
| title | Enhance Ticket-Intake Skill: Branch-Before-Code Mandate |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Apr 17, 2026, 4:16 PM |
| updatedAt | Apr 17, 2026, 8:25 PM |
| githubUrl | https://github.com/neomjs/neo/issues/10051 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 17, 2026, 8:25 PM |
Enhance Ticket-Intake Skill: Branch-Before-Code Mandate
tobiu cross-referenced by PR #10052 on Apr 17, 2026, 4:30 PM
tobiu assigned to @tobiu on Apr 17, 2026, 8:09 PM
tobiu cross-referenced by PR #10053 on Apr 17, 2026, 8:18 PM
tobiu closed this issue on Apr 17, 2026, 8:25 PM
tobiu cross-referenced by PR #10055 on Apr 17, 2026, 8:36 PM
tobiu cross-referenced by #10058 on Apr 18, 2026, 12:48 AM
tobiu cross-referenced by #10061 on Apr 18, 2026, 4:29 PM
tobiu cross-referenced by PR #10062 on Apr 18, 2026, 4:35 PM
Objective
Add a mandatory "Branch-First" gate to the ticket-intake skill that forces agents to create a feature branch before writing any code, not as a late step before PR creation.
Problem
Current agent behavior pattern observed across multiple sessions:
devbranch ❌gh pr createIf the session crashes, Antigravity has API failures, or the agent hits a dead end,
devis left in a dirty state with uncommitted or experimental changes. The next session inherits this mess.Proposed Fix
Add a Branch-First Gate to the ticket-intake workflow (
ticket-intake-workflow.md), inserted between the ROI calculation and code execution:New Section: "3. Branch-Before-Code Gate"
<h2 class="neo-h2" data-record-id="6">3. Branch-Before-Code Gate</h2> After passing the Validation Sweep and ROI Calculation, you MUST create a feature branch BEFORE writing any code or modifying any files: git checkout -b agent/[ticket-id]-[descriptor] This is a non-negotiable safety gate. The `dev` branch must remain clean at all times. If a session crashes, the feature branch contains the damage — dev has a clean slate for the next session. You are FORBIDDEN from: - Running `replace`, `write_file`, or `multi_replace_file_content` on any repository file while on the `dev` branch - Committing to `dev` directly (already mandated by PR workflow, but reinforced here as the earlier gate)Acceptance Criteria
ticket-intake-workflow.mdupdated with Branch-Before-Code sectionpull-request-workflow.mdcross-references the intake branching gate to avoid duplicationArchitectural Note
This is a meta-level workflow enhancement — fixing the system that builds the code, not the code itself. The branching mandate already exists in the PR skill but is positioned too late in the pipeline. Moving it upstream to ticket-intake prevents the failure mode entirely.
Origin Session ID: c9bf0d61-a58d-42ba-a030-6426dc5fe270