Workflow — Technical debt review¶
Generated from the architecture model
This page is rendered from model/**/*.yaml by tools/docs_model during mkdocs build. Edit the YAML, not this page; hand-written design lives on the linked service, platform and plane pages.
| Workflow id | debt-review · version 1 · Draft (Draft → InReview → Published → Deprecated, BC-04) |
| Coordinator | technical-debt-tracker · family Lifecycle Feedback & Governance |
| Owner service | WorkflowEngineService (BC-38) under Run Control (BC-03) |
| Starts on | PipelineRunCompleted from PipelineExecutionService (event) |
| Steps | 3 · gated 0 · agents 2 |
| Budget per run | 600000 tokens · cap 60.0 USD · 240 min |
| Descriptor | workflow-definition-v1 · schema |
| Status | target |
Collects reviewer comments and analyzer results of a pipeline run, classifies the shortcuts as debt with owners and severity, and raises them as findings.
Authored design, Draft (D54, D57)
These definitions were authored on 2026-10-14 from the coordinator cards as design assumptions. None is published, evaluated or has run; agents are named by id as design bindings, not as tested integrations.
Definition¶
flowchart TD
start(("PipelineRunCompleted"))
collect_signals["Collect the signals"]
classify_debt["Classify the debt"]
raise_findings["Raise the findings"]
start --> collect_signals
collect_signals --> classify_debt
classify_debt --> raise_findings
done(("WorkflowRunCompleted"))
raise_findings --> done
classDef gated stroke:#B45309,stroke-width:2px
Shapes: rectangle = agent attempt · double rectangle = tool call · stadium = human decision · diamond = condition evaluated by the engine · parallelogram = fan-out or join · circle = timer · cylinder = sub-workflow · flag = compensation. A thick amber border marks a gated step.
Steps¶
| # | Step | Kind | Runs | Gate | Class | Depends on | Retry | Timeout | Compensation | What it does |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Collect the signalscollect-signals |
agent | code-reviewer |
none | read | — | exponential ×2 | PT30M | — | Gathers analyzer results and review comments that name shortcuts or deferred work. |
| 2 | Classify the debtclassify-debt |
agent | tech-lead |
none | read | collect-signals | exponential ×2 | PT30M | — | Category, severity, owner and suggested remedy per item. |
| 3 | Raise the findingsraise-findings |
agent | tech-lead |
none | sandbox | classify-debt | exponential ×2 | PT30M | — | Records the items as findings with evidence through AuditService. |
Gates and approvals¶
No approval is required: every step runs in the read or sandbox class; the agents' own tool calls still carry their classes (D21). Compensation steps run in reverse order of the succeeded steps on failure after the last checkpoint; a step without a compensation leaves its sandbox output in place and the run ends Failed with the evidence (ADR-0014, recovery not replay).
Inputs, outputs and events¶
| Direction | Name | Descriptor |
|---|---|---|
| in | analysis-results | artifact-v1 |
| in | review-comments | artifact-v1 |
| out | debt-findings | audit-evidence-v1 |
Starts on PipelineRunCompleted; emits FindingRaised, plus the engine's WorkflowRunStarted, StepReady, StepRunStateChanged and WorkflowRunCompleted / WorkflowRunFailed and Run Control's run and attempt events (ADR-0014).
Decisions and traceability¶
FR: FR-08 Validated artifacts with lineageXL: XL-15 Upgrade without breaking consumersADRs: ADR-0014, ADR-0024 · ADR index
Definition authored 2026-10-14 from the coordinator card technical-debt-tracker (D54); Draft until an evaluation gate (ADR-0021) and a review publish it as a BC-04 asset release.