Skip to content

[bug] Delegated runs leave repos on feature branches and with uncommitted edits — and subordinate_status reports neither #276

Description

@serge-ivo

Found while testing multi-subordinate delegation (#259/#271 now working — the Lead correctly
delegated to two subordinates concurrently and reported both run ids).

Repos are left in whatever state the last run stopped in

Live state across two subordinates of the same Lead, right now:

Agent Branch Working tree
FAS platform main dirty M packages/backend/src/routes/logs.ts
FWS platform fix/36-assistant-bubble-order clean

Neither is a bug on its own. Together they show there is no notion of repo state between delegated
runs:

Why it matters for a supervisor

The Lead's status table reports "Last action" — the previous objective's summary. It does not
report branch or tree state, which for "can this agent safely take a new goal?" is the more
load-bearing fact. A supervisor delegating "fix the failing tests" to FWS today would get work done
on a merged feature branch, and nobody would notice until the PR looked strange.

The subordinates cannot warn about it either: the branch is not in their context (#255 gave them
repo ownership, not repo state).

Suggested shape

  • Include branch + dirty/clean in subordinate_status, next to connectivity. It is one
    repo_git call the driver already has, and it is what determines whether a goal is safe to hand
    over.
  • Decide a between-runs policy and state it: does a delegated run start from the repo's default
    branch, or from wherever it was left? Either is defensible; the current answer is "whatever the
    last run happened to do", which is not a policy.
  • Surface uncommitted work as a real state, not something rediscovered by each git status. An
    edit a run was explicitly told to leave behind is a pending human decision — it belongs on the
    board, not only in the working tree.

Adjacent, worth deciding separately

Run 73ffc073 opened and merged its own PRs to main#150, #151, #152 — unattended, then
reported "all open bug issues exhausted". Whether autonomous merge-to-main is wanted is a policy
call, not a defect, but right now it is available by default to any delegated goal phrased broadly
enough, and nothing in the supervisor view shows it happened.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions