Skip to content

[Foundation] Replace init-pipeline attributes with internal IBuildMiddleware #93

Closed

Description

@ChrisonSimtian

Part of the v11 internal-foundation workstream. See docs/roadmap.md and milestone #6.

Goal

Replace the 23 init-pipeline attributes ([InjectParameterValues], [HandleShellCompletion], [GenerateBuildServerConfigurations], etc.) with an explicit internal IBuildMiddleware pipeline keyed on BuildPhase. Each attribute becomes a thin shim that registers a middleware. Execution order becomes explicit (phase + priority) instead of implicit attribute discovery.

Critical: IBuildMiddleware and its types stay internal in v11 — the shape needs to bake through dogfooding before going public in v12. Do not add InternalsVisibleTo for non-test assemblies (see RFC #97).

Scope

  • Define IBuildMiddleware, BuildPhase (Initializing → DiscoveringTargets → Planning → Executing → Reporting), BuildMiddlewareContext in Fallout.Build, all internal.
  • Migrate the 23 init-pipeline attributes to register middleware via the DI container. Each keeps its consumer-facing name and behavior.
  • BuildOrchestrator runs each phase by composing registered middleware in priority order.
  • Document the pipeline in docs/architecture.md.

Verification

  • MiddlewarePipelineTests covers ordering, short-circuiting, exception propagation.
  • All existing init-attribute tests still pass.
  • ./build.ps1 runs identically to current main.

Out of scope (tracked separately)

Blocks

Activity

  1. ChrisonSimtian commented on Jun 16, 2026

    @ChrisonSimtian
    CollaboratorAuthor

    Superseded by the [Foundation] FT-* series (epic #315), which re-decomposes this engine-foundation work with file:line findings and an explicitly backwards-compatible, facade-preserving scope (vs. the obsolete v11 "breaking" framing here). Tracked going forward by: #312 (#FT-7: formalize the build extension/middleware pipeline). Closing to avoid double-counting milestone #6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions