Goal¶
Provide executable, phase-gated implementation details for:
devflowplatform delivery as a reusable CLI.kroki-rs-nxtbootstrap and migration usingdevflow.
Repo Launch Sequence¶
Create
devflowrepository.Create
kroki-rs-nxtrepository.Keep
kroki-rsin maintenance mode for bug fixes and critical releases only.
Workstream A: devflow (Platform)¶
A0 Governance and Scope¶
Deliverables:
devflowcharter (problem statement, non-goals, extension model).Versioning policy (SemVer + compatibility guarantees for extension API).
Contribution and release policy.
Acceptance criteria:
Governance docs merged.
First ADRs approved.
A1 Core Engine MVP¶
Deliverables:
devflow-coreDAG/task runtime.Canonical commands:
setup,fmt,fmt-check,lint,build,test,smoke,verify,ci generate.Deterministic cache contract and container identity resolution.
Acceptance criteria:
dwf verifyexecutes locally in containerized mode.Workflow rendering for GitHub Actions works for at least one Rust reference app.
A2 Extension System¶
Deliverables:
devflow-ext-rust(first-class).devflow-ext-node(baseline).Extension interface docs, ADRs, and compatibility tests.
Status: COMPLETE
Same canonical commands resolve correctly for both Rust and Node reference projects.
Extensiontrait dynamically injects components.Subprocess extension capability handles arbitrary
$PATHbinaries (e.g.,devflow-ext-python).
A3 Distribution¶
Deliverables:
Homebrew formula automation.
Binary signing and release pipeline.
Example projects (
rust,node-ts,react,tauri,vscode).
Acceptance criteria:
brew installpath validated.Public docs show canonical command mapping by stack.
Workstream B: kroki-rs-nxt (Product)¶
B0 Bootstrap Workspace¶
Deliverables:
Cargo workspace with initial crates:
kroki-corekroki-contractskroki-plugin-apikroki-plugin-runtimekroki-adapter-httpkroki-adapter-clikroki-observability
apps/kroki-serverandapps/kroki-cli.devflow.tomlbaseline config.
Acceptance criteria:
Workspace compiles.
Basic smoke tests pass.
B1 Contract-First Vertical Slice¶
Deliverables:
One end-to-end diagram flow through contracts -> core -> adapter.
Contract tests and schema artifact generation.
Error envelope standardization.
Acceptance criteria:
Golden tests pass for selected providers.
External interface compatibility checks are automated.
B2 Provider Migration Slices¶
Deliverables:
Priority provider batches migrated with conformance tests.
Plugin/runtime capability policy implemented.
Acceptance criteria:
Migration dashboard shows parity status by provider.
No regression in baseline latency/error budget.
B3 Hardening and Release Readiness¶
Deliverables:
CI quality gates via
devflow.Performance tuning and cache observability.
Release packaging and migration docs.
Acceptance criteria:
Release candidate checklist passes.
v0.1.0 release approved.
Dependency Between Workstreams¶
kroki-rs-nxtB0 can begin with a pinneddevflowpreview build.B1+ should use stable
devflowcommand contracts.Any
devflowbreaking change requires explicit compatibility notice and migration plan.
Engineering Governance¶
Required quality gates per PR:
fmt-checklintbuildtestsmoke
Required architecture gates per milestone:
Contract conformance.
Plugin capability policy validation.
CI/local parity audit.
Risks and Controls¶
Risk: parallel track drift.
Control: weekly architecture sync with explicit decision log.
Risk: tool lock-in before platform maturity.
Control: keep
dflow-style compatibility shim untildevflowstabilizes.
Risk: over-engineering early layers.
Control: migrate by vertical slices, not by abstract scaffolding alone.
Suggested Milestone Timeline (Indicative)¶
M1 (2-3 weeks): A0/A1 and B0 complete.
M2 (2-4 weeks): A2 and B1 complete.
M3 (4-6 weeks): B2 provider migration batches.
M4 (2-3 weeks): A3 + B3 hardening and release prep.
Definition of Done for v0.1.0¶
devflowis publicly installable and used bykroki-rs-nxtCI/local workflows.kroki-rs-nxtdelivers agreed parity scope with contract and conformance tests.Migration and contributor docs are complete and reviewed.