ADR: Azure DevOps backend #48

Closed
opened 2026-11-20 15:14:00 +01:00 by dario · 0 comments
Owner

Part of #23.

Goal

Record the design of the Azure DevOps backend as docs/decisions/0017-azure-devops-backend.md. No code changes.

Decisions to record (from #23, comment 418)

  1. Only Azure DevOps Services at dev.azure.com. No issues (work items come from a tracker over MCP, ADR 0006), no CI, no end-to-end tests.
  2. The organization is part of the forge's base_url (https://dev.azure.com/<org>). -repo is <project>/<repo>, so forge.Repo and ParseRepo (internal/forge/forge.go:72, :82) stay unchanged: Owner holds the Azure project, Name the repository. Names with characters repoPart does not allow ([A-Za-z0-9_.-], e.g. spaces) are unsupported for now.
  3. FACTORY_FORGE_TOKEN holds the already encoded credential (printf ':%s' "$PAT" | base64, done once on the host). GitAuthorization(token) returns "Basic " + token, and the API client sends the same header. The factory encodes nothing, so a proxy can swap a placeholder (ADR 0013).
  4. GetIssue, ListIssues and SetLabels return a clear error: not supported on Azure DevOps, use a tracker. CommentOnIssue on a pull request number creates a pull request thread.
  5. forgetest gets a capability that skips the issue tests for backends without issues.
  6. The factory never posts a review in a headless run when the forge config sets "reviews": "interactive". In interactive sessions the agent proposes comments and posts only those the person approves. Enforced in forge.WithPolicy.

Done criteria

  • The ADR states each decision, why, and what is unsupported.
  • No code changes.
Part of #23. ## Goal Record the design of the Azure DevOps backend as `docs/decisions/0017-azure-devops-backend.md`. No code changes. ## Decisions to record (from #23, comment 418) 1. Only Azure DevOps Services at `dev.azure.com`. No issues (work items come from a tracker over MCP, ADR 0006), no CI, no end-to-end tests. 2. The organization is part of the forge's `base_url` (`https://dev.azure.com/<org>`). `-repo` is `<project>/<repo>`, so `forge.Repo` and `ParseRepo` (internal/forge/forge.go:72, :82) stay unchanged: `Owner` holds the Azure project, `Name` the repository. Names with characters `repoPart` does not allow (`[A-Za-z0-9_.-]`, e.g. spaces) are unsupported for now. 3. `FACTORY_FORGE_TOKEN` holds the already encoded credential (`printf ':%s' "$PAT" | base64`, done once on the host). `GitAuthorization(token)` returns `"Basic " + token`, and the API client sends the same header. The factory encodes nothing, so a proxy can swap a placeholder (ADR 0013). 4. `GetIssue`, `ListIssues` and `SetLabels` return a clear error: not supported on Azure DevOps, use a tracker. `CommentOnIssue` on a pull request number creates a pull request thread. 5. `forgetest` gets a capability that skips the issue tests for backends without issues. 6. The factory never posts a review in a headless run when the forge config sets `"reviews": "interactive"`. In interactive sessions the agent proposes comments and posts only those the person approves. Enforced in `forge.WithPolicy`. ## Done criteria - The ADR states each decision, why, and what is unsupported. - No code changes.
dario closed this issue 2026-11-23 13:05:14 +01:00
Sign in to join this conversation.
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#48
No description provided.