- Docs
- Guides
Connect Azure DevOps
Feed epics and features into archigov as planned changes — by WIQL backfill and a service hook — to flag missing decisions and requirements that changed after approval.
#A Feed, Not a Gate
Azure DevOps is a source of planned change, not a workflow archigov controls. archigov reads epics and features, shows where each one stands in the decision lifecycle (the stages), and flags two things:
- Needs a decision — an open Epic, Project, Initiative or Change that is linked to no architecture decision and no review.
- Changed after approval — a linked work item whose requirements changed materially after its design was approved.
Nothing in Azure DevOps is blocked. Nothing is written to it either, unless an administrator turns on write-back, which shows the same stage on the work item and still changes nothing about the work. These items appear under Planned Changes, on the Overview pipeline, and in authors' work queues.

#1. Credentials
Either:
- a personal access token with Work Items (Read), in
ADO_PAT; or - an Entra identity (the same
AZURE_*service principal or managed identity) added to the Azure DevOps organisation with read access. WithoutADO_PAT, archigov requests a token forhttps://app.vssps.visualstudio.com/.default.
Tip
Prefer the Entra identity. It avoids long-lived tokens, and it keeps working as organisations restrict global PATs.
Read access is all the feed needs. Write-back, if you turn it on, needs permission to edit work items: Work Items (Read & write) on the token, or for the Entra identity the right to edit work items in the project, which you can limit to the area paths it may write to.
#2. Configure
ADO_ORG=<organisation>
ADO_PROJECT=<project>
ADO_PAT=<token> # or rely on the Entra identity
ADO_HOOK_SECRET=<random string> # required for the service hook
ADO_WIQL= # optional; see belowThe default backfill query reads epics and features that are not removed and changed in the last year:
SELECT [System.Id] FROM WorkItems
WHERE [System.WorkItemType] IN ('Epic','Feature') AND [System.State] <> 'Removed'
AND [System.ChangedDate] >= @Today - 365
ORDER BY [System.ChangedDate] DESC#3. Backfill
As the platform admin, Settings → Sources → Azure DevOps: Test, then Sync. The backfill runs the WIQL query and fetches items in batches.
#4. Service Hook
For changes as they happen, create a service hook subscription in Azure DevOps (Project settings → Service hooks → Web Hooks):
| Setting | Value |
|---|---|
| Events | Work item created, Work item updated, Work item deleted, Work item restored |
| URL | https://archigov.example.org/api/hooks/ado |
| HTTP headers | x-archigov-hook-secret: <ADO_HOOK_SECRET> |
| Basic authentication | Alternatively, put the secret in the password field |
Calls without the correct secret receive 401. The hook endpoint is exempt from sign-in because it carries its own secret.
#Working with Planned Changes
- Link a work item to an application or a review.
- Draft Decision from a work item: a template, or an AI draft if Decision Drafting is enabled. The author edits and submits.
- Acknowledge a material change once the board has considered it.
- Log by hand: authors can record planned changes no backlog knows yet (
PC-0001). Items from a real source are read-only in archigov; manual ones can be set to Removed rather than deleted.
#The Stages
Every planned change shows where it stands in the decision lifecycle. Nobody sets the stage: it follows the review and the decision that cover the change, the conditions of the approval, and conformance.
| Stage | Means |
|---|---|
| Needs decision | An open epic, project, initiative or change with no decision and no review covering it |
| Review requested | The delivery team asked for a review by tagging the work item, and no review has been opened for it yet |
| Decision proposed | A decision covering it is proposed and not yet decided |
| In review | The review covering it is with its board. An approval that waits on a dependency or on circulation counts as in review until it takes effect |
| Changes requested | The board sent the review back to its submitter |
| Approved with conditions | Approved, with conditions of that approval still open |
| Approved | Approved, or its decision accepted, with no condition left open |
| Rejected | The review or the decision was rejected |
| Changed after approval | The item's title or description changed after its design was approved, and nobody has acknowledged it yet |
| Drift | The decision is accepted, and conformance holds open findings against it |
| Built as approved | The decision is accepted, resources of the kind it allows are deployed, and nothing drifts from it |
A change to the item's text while its review is still open, or after it was rejected, is not "changed after approval": nothing was approved yet. The row is marked Changed since submission instead, and the stage stays with the review.
#Write-back
Note
Write-back, raising a condition and review requests need archigov 0.4 or later. The lifecycle stage on Planned Changes comes with 0.4 too, and needs none of them.
Optional, and off until the platform admin turns it on. With write-back on, the work item itself shows where the change stands, so the people planning the work see what the boards said without leaving Azure DevOps. archigov adds three things, and each is switched on separately:
- Links — a hyperlink on the work item to the decision and to the review that cover it.
- Lifecycle stage — one tag naming the stage, such as
arch:in-revieworarch:approved-with-conditions, replaced as the change moves. A work item carries one at a time, and tags work in queries, board filters and card styles. - Outcome comments — a comment when a board declares an outcome on the review, and when the item changes after its design was approved: who declared what and when, with a link to the record. Azure DevOps notifies the item's followers, as it does for any comment.
A fourth switch stays off even when write-back is turned on, because it is the only one that creates anything:
- Conditions as work items — lets a person raise a condition of an approval as a work item under the change it belongs to, one click at a time. Nothing is ever raised on its own.
And a fifth listens the other way, and stays off until it is ticked too:
- Review requests — a team asks for a review by putting a tag on a work item, and the work item is told when a review has been opened. The tag asks; a person still submits the review.
Each fact keeps one home. archigov owns the decision, the review, its outcome and its conditions; Azure DevOps owns the work. Each shows the other's facts with a link, and neither edits them:
- archigov never changes a work item's state, assignee, title, description or iteration, and creates no work items on its own.
- Nothing is blocked. A team that wants to enforce something on these tags does so with its own Azure DevOps rules.
- The reasoning stays in archigov. No rationale, finding or AI output is copied into a work item: only the fact, and where to read more.
- The team's own tags are never touched. The prefix (
arch:by default) keeps archigov's apart from them; you can change it, and it must end in:,/or-. archigov only ever takes off a tag it wrote itself: a tag of your own stays, and Settings tells you when the prefix is already in use. The one exception is a tag that is already exactly the stage tag archigov would write: it is taken as written, and follows the stage from then on. - A comment is left once. If Azure DevOps does not answer a write, nothing is sent again blind: archigov looks at the work item first and works out whether the write was saved.
- Nothing is written outside the configured project, whatever the backlog query reaches. Give
ADO_PROJECTas the project's name for this to hold; an ID cannot be compared with what a work item says.
#Turn It On
As the platform admin, Settings → Sources → Write Back to Azure DevOps:
- Give the identity write access (see Credentials), and set
APP_BASE_URL: it is where the links lead. - Test Write Access asks Azure DevOps whether the identity may edit a work item. Nothing is saved.
- Turn the toggle on, choose what is written, and Preview: a table of what saving would write now, and to which work items. Nothing is sent. If you tick Conditions as Work Items, give the work item type your process uses for such work (Task, Issue, Product Backlog Item); Test Write Access then also checks that one can be created.
- Save. Everything that is already true is written at once. From then on, a change is written within moments of the review, decision or conformance run that caused it.

Where archigov may write is decided in Azure DevOps: limit the identity's permission to the area paths you want, and write-back stops at them. A write that fails is tried again later, and shows on the Planned Changes row and in Settings until it succeeds; it never holds up the other work items. Once you have fixed the cause, Try Again Now sends the failed ones without waiting.
Note
Write-back, raising a condition and review requests have been verified against a live Azure DevOps organisation under a personal access token (archigov 0.4, November 2026); the service hook and the Entra identity are verified against recorded responses only. Two things to know from that check: Azure DevOps sorts a work item's tags alphabetically on save, and a comment archigov writes is attributed to the owner of the token (it starts with "archigov:", so it reads as the product's). Use Test Write Access and Preview, and try it on one project first.
#Ask for a Review from the Backlog
With Review Requests on, a delivery team asks for an architecture review without leaving Azure DevOps:
- Put the tag
arch:reviewon the work item: an epic, a feature, a story, a bug. (The tag is the prefix you chose, followed byreview.) - archigov hears it at the next service hook or backfill. The change shows as Review requested on Planned Changes, and the ask goes to the queue of everyone who submits reviews, on the Overview and in the bell. Where the stage tag is written, the work item shows
arch:review-requested: the team sees its ask was heard. - An author opens the review from Planned Changes (Open Review), as for any other change, with what they know of it.
- The work item is then told, once: the review's code, the board it is with, and what the automatic checks counted, with a link.
Changing the tag prefix changes this tag too: asks made with the old one are withdrawn, and the team asks again with the new one.

- The tag asks; a person submits. Nothing creates a review on anyone's behalf: every review has a named submitter who stands behind it, and a board is never put in front of a design nobody proposed.
- The tag is yours. archigov reads it and never changes it. Take it off before anyone has opened a review and the ask is withdrawn at the next hook or backfill (a work item with an open ask is read again at every backfill, even one the backlog query does not cover). Leaving it on after the review exists is not a new ask; taking it off and putting it back is.
- A second look. A change a board has already decided on can be tagged again. The outcome stays as its stage, the ask shows beside it, and the next review opened for it answers it. Tag a change whose review is still running, and you are told at once which review that is. If the review that answered your ask is withdrawn while the tag is still on, the ask stands again.
- What comes back — for a design review, how many points the deterministic checks against your catalogue and your accepted decisions found, by severity, and the codes they cite; for a decision review, how many checks passed. Never a finding's wording, and never anything an AI wrote: the detail is behind the link.
Nothing is blocked while an ask is open, and nothing happens to the work item if nobody answers.
#Raise a Condition
A board approves a design with conditions, and each is work somebody has to do. With Conditions as Work Items on, that work can be put where the delivery team plans it:
- Open the review. Under each open condition there is a line headed Azure DevOps, with Raise in Azure DevOps.
- The confirmation says what will be created and under which work item, and lets you edit the title. Create makes one work item: a child of the planned change the review covers, in the same area, tagged
arch:condition, with the condition in the board's own words and a link back to the review. - From then on the delivery team owns it. archigov does not change it again; it shows its state on the condition and links to it.
- When the team closes it, the chair of the board sees Conditions to confirm on the Overview and in the bell, and marks the condition met if satisfied. Closing the work item never does that by itself, and reopening it withdraws the prompt.

- Who raises — the condition's owner, the review's submitter, or the chair or secretary of its board. The owner counts when the condition names a user: the owner field defaults to the submitter, and a name typed in by hand matches nobody. The platform admin switches the capability on and raises nothing.
- Where it goes — under the work item from Azure DevOps that the review covers. A review that covers several asks which one; a review that covers none cannot raise, and the action says so.
- Created once — asking twice makes one work item, and so do two people asking at the same moment. If Azure DevOps does not answer, the condition shows as asked for and not confirmed, and raising again looks for the work item before making another, even if the team has moved it since. If nobody asks again, archigov looks for it after the next collection and either confirms it or lets the request go.
- Evidence, not a verdict — the work item's state is evidence of the work, in the review and in the evidence pack. Whether the condition is met stays the board's judgment.
Turning the switch off stops anything more being raised. What was raised stays in Azure DevOps and goes on being shown: archigov never closes or deletes a work item.
#Turn It Off
Turning the toggle off stops all writing. The links and comments stay on the work items as history. A stage tag claims to be current, so the confirmation offers to take the tags off again, and does so unless you clear the box. If Azure DevOps cannot be reached at that moment, write-back is off all the same: the page says how many work items still carry a tag, and Remove Stage Tags tries again. A work item that has since been deleted, or moved to another project, is let go: nothing is written outside the configured project, so a tag on a moved item stays where it is.
Every change to these settings, every write and every failure is in the audit log, under actions that start with writeback:.
Something unclear or out of date? Write to hello@archigov.com or open an issue on GitHub.