Skip to content

Allow explicit Git commits and pushes in daf open sessions #695

Closed

Description

@itdove

Problem

The daf-workflow development-session guidance for daf open and daf new currently includes a blanket prohibition:

Do NOT: Create git commits (handled by daf complete)

That wording makes an agent following the session instructions refuse ordinary, user-requested Git operations such as git add, git commit, and git push while working in the managed development checkout. It conflates DAF lifecycle and metadata operations with Git operations on the repository.

This is especially confusing after the recovery guidance added for busy temporary clones in #686: manual Git commits and pushes are a valid way to preserve work, but the normal development-session instructions still forbid them.

Expected behavior

For development sessions launched with daf open or daf new:

  • Permit explicit user-requested Git operations, including staging, committing, fetching/syncing, and pushing the active feature branch.
  • Keep the existing branch safety rules, including never committing directly to main, and do not perform commits or pushes automatically without user direction.
  • Continue requiring DAF lifecycle and metadata operations such as daf complete, daf open, daf new, and daf update to run outside the active agent session. Manual Git commits or pushes must not be described as updating DAF status, time tracking, or completion state.
  • Keep clone-holder, process, and cleanup protections fail-closed.

The analysis-only workflows daf git new, daf jira new, and daf investigate must remain read-only and must continue to prohibit code changes, branch creation, commits, and pushes.

Acceptance Criteria

  • Update the source-of-truth workflow/skill guidance so normal daf open/daf new development sessions distinguish permitted, explicitly requested Git operations from DAF lifecycle commands that remain outside the session.
  • Preserve the read-only restrictions for git-new, jira-new, and investigation sessions.
  • Verify that daf complete handles a session with changes already committed and/or pushed without requiring a redundant commit or push, while retaining existing PR/MR and session-metadata behavior.
  • Add or update regression coverage for the session-specific guidance and the pre-committed/pre-pushed completion path.
  • Document that manual Git operations do not mark a DAF session complete or update its status/time tracking.
  • Retain existing branch, clone-holder, cleanup, and duplicate-push protections.

Related

Activity

  1. self-assigned this
    on Nov 21, 2026
  2. itdove commented on Nov 21, 2026

    @itdove
    OwnerAuthor

    Implemented issue #695. Development-session guidance now permits explicitly requested Git staging, commits, fetch/sync, and pushes on the active feature branch while keeping DAF lifecycle/metadata commands outside agent sessions. Analysis-only git-new, jira-new, and investigate workflows explicitly remain read-only and forbid commits/pushes. Completion regressions cover pre-committed and pre-pushed branches without redundant Git operations. Validation: 158 focused tests passed, mypy devflow/ passed, and the isolated integration suite passed 19/19.

  3. itdove commented on Nov 21, 2026

    @itdove
    OwnerAuthor

    Pull request created: #697

  4. itdove commented on Nov 21, 2026

    @itdove
    OwnerAuthor

    ✅ Session Complete

    Project: devaiflow
    Goal: #695: Allow explicit Git commits and pushes in daf open sessions
    Time Spent:
    0h 33m total

    • itdove: 0h 32m
    • unknown: 0h 0m
      Branch: 695

    No significant activity detected in this session.

    Session Notes:

    Session Notes: itdove-devaiflow-695

    JIRA: #695

    2026-11-20 21:40

    • Completed issue Allow explicit Git commits and pushes in daf open sessions #695 acceptance criteria: updated bundled daf-workflow guidance to permit explicitly requested Git staging/commits/fetch-sync/pushes on the active feature branch while keeping DAF lifecycle commands outside active sessions; preserved and clarified read-only restrictions for git-new, jira-new, and investigate; verified daf complete skips redundant commit/push work for pre-committed and pre-pushed branches; documented that manual Git operations do not update DAF completion/status/time tracking. Focused tests, mypy, and 19/19 integration tests pass.

    Generated by DevAIFlow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions