1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
diagram "Autumn SCM: Fir, Aspen and Willow" routing=orthogonal
# Source: examples/Autumn-SCM-Final-Proposal.pdf ("How it fits together")
# Ports-and-adapters: the core never talks to GitLab, Jira or a model directly,
# only through an adapter, so each outside part can be swapped.
# outside parts that can be swapped (tag=external)
system "GitLab" id=gitlab x=-120 y=0 stereo="code and MRs" tag=external {
note "Free, self-hosted (Colruyt)"
}
system "Jira" id=jira x=-120 y=170 stereo="work items" tag=external
system "AI model" id=model x=660 y=600 stereo="local or API" tag=external {
note "Any model can be swapped in"
section "MVP" {
* local model : same interface
* API model : same interface
* fixed model per task
}
}
module "Autumn SCM (our services)" id=mod_autumn tag=core {
interface "SCM port" id=scm_port x=320 y=0 stereo="<<port>>" tag=adapter {
section "adapters" {
+ GitLabAdapter [MVP]
+ GitHubAdapter [extra]
}
}
interface "Tracker port" id=tracker_port x=320 y=170 stereo="<<port>>" tag=adapter {
section "adapters" {
+ JiraAdapter
+ GitLabIssuesAdapter
}
}
interface "Model port" id=model_port x=660 y=330 stereo="<<port>>" tag=adapter {
section "contract" {
+ complete(redacted_prompt) : answer [agnostic]
+ route(task) : model [quality/cost]
}
}
system "Willow" id=willow x=660 y=0 stereo="SCM connector · Java" tag=willow {
section "use cases" {
+ issue triage [decision model]
+ issue fixing
+ merge request review
+ fixing review comments
}
section "rules" {
- labels, priority, team [fixed rules]
- risk label per MR [fixed rules]
}
}
system "Aspen" id=aspen x=1060 y=0 stereo="agent-native SCM · Rust" tag=aspen {
section "responsibilities" {
+ receives patches
+ resolves conflicts [only place]
}
section "dashboard" {
+ cost and KPIs : per MR / project / week
+ overview and drill-down
}
}
system "Fir" id=fir x=1480 y=0 stereo="local agent · Rust" tag=fir {
section "responsibilities" {
+ workspace per agent [copy-on-write]
+ agents in parallel [a few]
- read-only buffer [no local edits]
}
section "per workspace" {
+ test database
+ logs : via GitLab job logs [redacted]
+ static analysis after every fix
+ tests, checks, time, cost, memory : reported on MR
}
}
storage "Guardrails" id=guardrails x=1060 y=330 stereo="redaction" tag=security {
section "checks" {
- secrets [redact]
- personal data [redact]
+ static analysis per fix
}
}
}
module "Use-case flow" id=mod_flow tag=flow {
state "1. Issue triage" id=uc_triage x=0 y=880 tag=flow {
note "Labels, team and acceptance criteria"
}
state "2. Issue fixing" id=uc_fix x=0 y=1000 tag=flow {
note "Fix and tests in its own workspace"
}
state "3. Merge request review" id=uc_review x=0 y=1120 tag=flow {
note "Comments and one risk label"
}
state "4. Fixing review comments" id=uc_comments x=440 y=1120 tag=flow {
note "New commit, tests run again"
}
state "5. Merge" id=uc_merge x=0 y=1240 tag=flow {
note "Approved by a person, work item closed"
}
}
note "KPIs" id=kpis x=1060 y=880 tag=metrics {
section "measured" {
fix rate
review quality
triage accuracy
workspace start time and parallel agents
guardrail leaks and risk score safety
cost per merged fix
}
}
note "Out of scope" id=out_of_scope x=1480 y=880 {
section "not doing" {
replacing git or GitLab
training a custom model
one AI provider's SDK
dozens of agents on one codebase
merging without a person
}
}
# outside parts <-> adapters
gitlab ~> scm_port : "events"
scm_port ~> gitlab : "comments, MRs"
jira ~> tracker_port : "work items"
tracker_port ~> jira : "status, links"
model_port -> model : "redacted prompt / answer"
# services use ports
willow ..> scm_port : "uses"
willow ..> tracker_port : "uses"
willow ..> model_port : "redacted prompt"
fir ..> model_port : "redacted prompt"
# between our services
willow <-> aspen : "changes"
fir ==> aspen : "patches"
aspen ==> fir : "pull"
fir ..> guardrails : "every fix"
willow ..> guardrails : "every prompt"
# use-case flow
uc_triage -> uc_fix
uc_fix -> uc_review : "merge request opened"
uc_review -> uc_comments : "changes needed"
uc_comments -> uc_review : "review again"
uc_review -> uc_merge : "approved"
|