dario/workdirs #68

Merged
dario merged 2 commits from dario/workdirs into main 2026-11-24 16:08:31 +01:00
Owner
No description provided.
A given working copy was used as it was: as old as its last fetch, so
the agent started from an outdated default branch, and could not
continue a pull request whose branch had never been fetched. Cloning
instead is slow on large repositories, which is why -workdir exists.

- The dispatcher now refreshes the remote branches (origin/*) of a
  -workdir, as factory resume does, and fast-forwards the local default
  branch to origin's. Local commits that are not on the forge stop the
  run with a clear error; nothing is overwritten. The checked-out branch
  stays as it is.
- The refresh's temporary clone borrows the working copy's objects
  (--reference-if-able) and checks nothing out, so only new objects are
  downloaded; resumed runs get faster too. The credential still never
  meets the working copy's git configuration.
- Docs: running-tasks.md and developing-the-factory.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Large repositories take a while to clone, and their tools (e.g. what a
`make setup` installs) are set up once in a checkout. -workdir already
covers that, but it has to be passed on every run.

workdirs maps a repository ("owner/name", on Azure DevOps
"project/repository") to an absolute path. Tasks that change the
repository (implement-issue, update-docs, improve-factory) use it when no
-workdir is given, with the same checks and the same update to the
forge's state. -workdir still wins; read-only tasks (review-pr,
refine-item) keep using a fresh clone, and a taken-over run keeps its
own working copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dario merged commit ac45e94b3c into main 2026-11-24 16:08:31 +01:00
dario deleted branch dario/workdirs 2026-11-24 16:08:31 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dario/factory!68
No description provided.