Four independent packages need the same upgrade. Which pattern fits?
Why D is the answer
Parallel agents, each isolated to one package
Independent work suits parallelism, and isolation keeps the changes from colliding.
In detail
- The packages are independent, so the work can run in parallel.
- Isolation keeps each agent to one package.
- Open one pull request per package, so each review stays small.
Use case
An illustrative scenario, not a real incident.
Four packages need one upgrade, and they are independent. Four isolated agents finish faster than one working through them in turn.
See it in different ways
flowchart TD
A{"Does step B need the result of step A?"} -->|Yes| B["Sequential"]
A -->|No| C{"Do they touch the same files?"}
C -->|No| D["Parallel"]
C -->|Yes| BstateDiagram-v2 [*] --> CheckDependencies CheckDependencies --> Sequential: one step needs another CheckDependencies --> Parallel: work is independent Sequential --> Handoff: clear artifact Parallel --> Isolated: own branch or workspace Handoff --> [*] Isolated --> [*]
mindmap
root(("Parallel upgrade"))
n1["Package A"]
n2["Own agent"]
n3["Package B"]
n4["Own agent"]
n5["Package C"]
n6["Own agent"]
n7["Package D"]
n8["Own agent"]Key point: Independent work suits parallel agents.
Why the other options are wrong
- A. A single pull request that is written by four separate agents
- One pull request is hard to review, and mixes separate work.
- B. One agent in a single session with no isolation at all
- One session with no isolation mixes all four packages.
- C. Sequential steps, each waiting for review of the one before it
- Waiting adds delay for no benefit.

