What 1Password learned using AI agents to refactor a Go monolith
1Password's Go monolith (B5) lacked clearer service boundaries and independent scaling characteristics needed to support Unified Access—its platform for human and agent-driven workflows at high request rates and low latency—and decomposing a multi-million-line production system is a sequencing-constrained problem.
During service extraction, agents violated sequencing invariants—attempting to backfill UUID columns before updating insertion code and treating shared tables as independently owned—and filled context gaps with unverified assumptions, including inferring an identifier format as ULID and propagating it through a series of changes that required a full session rollback.
The agentic toolchain produced a clear, defensible extraction order for B5, and agents successfully migrated more than 3,000 MustBegin call sites in a matter of hours.
Complex service extraction yielded a 20-30% productivity improvement, and the instrumentation added for the analysis also improved end-to-end transaction visibility in DataDog.
Frequently asked questions
What did this team achieve with this AI workflow?
The agentic toolchain produced a clear, defensible extraction order for B5, and agents successfully migrated more than 3,000 MustBegin call sites in a matter of hours.
What tools did this team use?
Go SSA, DataDog, git worktrees.
What results were reported?
Call sites migrated: more than 3,000; Migration execution time: a matter of hours; Productivity improvement for complex service extraction: 20-30%; End-to-end transaction visibility: improved our end to end transaction visibility in DataDog (source-reported, not independently verified).
What failed first in this deployment?
During service extraction, agents violated sequencing invariants—attempting to backfill UUID columns before updating insertion code and treating shared tables as independently owned—and filled context gaps with unveri…
How is this back office ops AI workflow structured?
Agentic approach initiated → Code and runtime analysis → Extraction order produced → Deterministic manifest generation → Parallel agent execution → Escalation on ambiguity.