Skip to content

[Task] Align AI branch selection with the branch policy #900

Closed

Description

@ashleyshaw

title: "AI Branch Selection Guardrails"
description: "Task proposal for forcing explicit branch intent and aligning AI behaviour with the repo's branch lifecycle policy."
file_type: "documentation"
version: "1.0.0"
last_updated: "2026-06-03"
created_date: "2026-06-03"
authors: ["LightSpeed Team"]
maintainer: "LightSpeed Team"
license: "GPL-3.0"
tags: ["ai", "branching", "guardrails", "governance"]
domain: "governance"
stability: "experimental"
status: "draft"

AI Branch Selection Guardrails

Scope

Make branch choice explicit for AI-assisted work so the agent does not infer
or reuse a branch from stale context.

Requirements

  • require explicit branch selection before starting a new batch
  • prefer the current develop tip as the base for a fresh batch
  • block continuation of a new batch on an old codex/* branch
  • keep the branch choice visible in the issue pack and run log
  • align the agent instructions with the branching strategy docs

Acceptance Criteria

  • the agent cannot start a new batch without an explicit branch decision
  • branch reuse is treated as a policy violation, not a convenience
  • the branch policy is reflected in the repo-local instructions
  • the AI branch choice contract is clear enough to test

Notes

  • The problem is not only branch naming; it is branch intent and lifecycle.
  • This task should make "new batch means new branch" an explicit contract.

Activity

  1. linear-code commented on Jun 8, 2026

    @linear-code
  2. github-actions commented on Jun 8, 2026

    @github-actions
    Contributor

    🚫 This issue does not follow a required issue template and has been closed automatically.

    Missing required section(s): Definition of Ready (DoR), Definition of Done (DoD)

    Please reopen with one of the official templates:

    If this was opened by automation, update the automation to preserve the template sections.

  3. added a commit that references this issue on Jun 8, 2026
    3711d82
  4. ashleyshaw commented on Jun 8, 2026

    @ashleyshaw
    MemberAuthor

    Project archive sync: the Branch Governance Hardening project pack is now archived at .github/projects/archived/branch-governance-hardening-2026-06-08.

    The archived issue register is the canonical mapping for this chain and has been updated to reflect closed status across #897-#901.

  5. added 2 commits that reference this issue on Jun 9, 2026
    a6ee7bb
    2498e7b
  6. added 2 commits that reference this issue on Jun 18, 2026
    7938e90
    835d72e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions