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="<>" tag=adapter { section "adapters" { + GitLabAdapter [MVP] + GitHubAdapter [extra] } } interface "Tracker port" id=tracker_port x=320 y=170 stereo="<>" tag=adapter { section "adapters" { + JiraAdapter + GitLabIssuesAdapter } } interface "Model port" id=model_port x=660 y=330 stereo="<>" 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"