Repository navigation
Description
Part of the v11 internal-foundation workstream toward a plugin architecture. See docs/roadmap.md and milestone #6.
Scope refreshed 2026-05-29 after auditing the actual code. The original scope listed several types that don't exist (
ExecutionPlan,DependencyGraph,BuildResult,TargetStatus,BuildPhase,ParameterDescriptor) and demanded immutability that doesn't fit the live execution objects. This rewrite matches reality.
Goal
Carve out a new bottom-layer project Fallout.Core containing the pure domain types of the build execution pipeline. Core depends on nothing else in the Fallout repo (only BCL + optionally Microsoft.Extensions.DependencyInjection.Abstractions for marker types). This is the load-bearing first step toward the v12 public plugin SDK — the SDK's stable types sit on top of these.
Ground truth (current state)
- The execution types live in the
Fallout.Buildproject, underFallout.Common.Execution.*/Fallout.Common.*namespaces (namespace ≠ project — don't trust the names). - Project layering is
Fallout.Utilities → Fallout.Build → Fallout.Common(Common references Build, not the reverse). ExecutableTargetis not a DTO: it holdsMemberInfo,Delegate,LambdaExpression,Action, aStopwatch, and mutableStatus/Invoked. It is a live execution-state object and stays inFallout.Build.- The graph primitives (
Vertex<T>,StronglyConnectedComponentFinder<T>) already live inFallout.Utilities/Collections/Graph/— generic and pure. ExecutionPlanner(internal static) reaches intoParameterService.GetNamedArgument<bool>("strict"), callsAssert.Failon cycles, and mutatestarget.Invoked/target.Status. It is not pure today.
Target topology
Fallout.Core ← NEW (bottom). References nothing in-repo.
↑
Fallout.Utilities ← type-forwards Vertex/SCC down to Core
↑
Fallout.Build ← ExecutableTarget : ITargetModel; ExecutionPlanner = thin wrapper over Core.TopoSort
↑
Fallout.Common ← type-forwards any moved Fallout.Common.Execution.* types
Scope — what moves / what's created
ExecutionStatusenum → move toFallout.Coreas-is (already pure).ITargetModel(NEW interface) — read-only projection:Name,Description,IsDefault,Listed,Status, andExecutionDependencyNames/OrderDependencyNames/TriggerNames.ExecutableTarget(stays in Build) implements it. This is the SDK seed; per Add Dependabot (or Renovate) for dependency updates #6, it stays additive — no behavior change for consumers.- Graph primitives — move
Vertex<T>+StronglyConnectedComponentFinder<T>fromFallout.UtilitiestoFallout.Core;Fallout.Utilitiestype-forwards them (other consumers untouched). TopoSort<T>(NEW, pure) — generic topo-sort/SCC over(nodes, Func<T,IEnumerable<T>> dependencies, bool strict)returningPlanResult<T> { IReadOnlyList<T> Ordered; IReadOnlyList<IReadOnlyList<T>> Cycles; bool HasCycles; }. Never throws on cycles, never mutates, never reads statics.
What stays in Fallout.Build
ExecutableTarget(live object) — now implementsITargetModel.ExecutionPlanner— reduced to orchestration: readsstrictfromParameterService, callsCore.TopoSort, does the formattedAssert.Failonresult.HasCycles, and owns theInvoked/Statusmutation + trigger-fixpoint loop.
Constraints — all Core types MUST be
- Free of
System.IO,System.Diagnostics.Process,Console, Serilog. - Free of statics holding mutable state.
- Free of runtime-reflection attributes (DTOs/algorithms only).
Backward compatibility
[TypeForwardedTo] for every type that changes assembly (ExecutionStatus, Vertex, StronglyConnectedComponentFinder). Namespaces are unchanged, so existing consumer using statements compile untouched. Forwarders stay through 11.x; removable in 12.0 once the plugin SDK is canonical. Additive-only per critical rule #2.
Verification
- New NetArchTest fitness test:
Fallout.Corehas zeroProjectReferenceto other Fallout projects and zerousingofSystem.IO/System.Diagnostics.Process. (Single test folded in here; broader fitness suite is [Foundation] Architectural-fitness tests via NetArchTest #95.) ./build.ps1 Compilesucceeds with no ambiguous-type warnings.- Existing
ExecutionPlannertests still pass against the wrapper + moved algorithm. - Dogfood: in-repo
build/_build.csprojbuilds against the new layout without changes.
Out of scope (tracked separately)
- DI in the orchestrator — [Foundation] Introduce DI container in build orchestrator #89.
- Splitting the
FalloutBuildgod class — [Foundation] Split FalloutBuild god class #92. - Making these types part of the public plugin SDK — v12 / milestone Add CodeQL workflow for security scanning #7.
- Broader NetArchTest fitness suite — [Foundation] Architectural-fitness tests via NetArchTest #95.
Activity
feat(core): extract Fallout.Core pure domain + graph foundation (#88) (…
Add the ArchUnitNET architecture-fitness suite with a ratcheting base…
Add the ArchUnitNET architecture-fitness suite with a ratcheting base…
Add the ArchUnitNET architecture-fitness suite with a ratcheting base…