Skip to content

feat(orchestrator): add pipeline self-declaration#404

Draft
JamyDev wants to merge 2 commits into
jamy/platform-pipelinefrom
jamy/orchestrator-pipeline
Draft

feat(orchestrator): add pipeline self-declaration#404
JamyDev wants to merge 2 commits into
jamy/platform-pipelinefrom
jamy/orchestrator-pipeline

Conversation

@JamyDev

@JamyDev JamyDev commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Introduces submitqueue/orchestrator/pipeline.go with the orchestrator's self-declaration
  • Deps struct: logger, scope, storage, counter, and four extension factories — the service's public API toward deployers
  • Stages: all 12 pipeline stages as a []pipeline.Stage[Deps] typed table, each with primary controller + DLQ reconciler
  • PublishOnlyTopics: log, merge-conflict-check, runway-merge
  • Controllers struct + NewControllers: RPC controllers (Ping), not bound to any wire contract
  • Pure addition alongside existing main.go — no behavioral changes

Step 3 of the Modular Queue Wiring RFC. Stacked on #403.

Test plan

  • bazel build //submitqueue/orchestrator:go_default_library compiles
  • All existing tests pass
  • make gazelle — BUILD.bazel in sync
  • make fmt — code formatted

Stack

  1. feat(platform): add lifecycle.Component and lifecycle.Group #402
  2. feat(platform): add pipeline.Construct engine #403
  3. @ feat(orchestrator): add pipeline self-declaration #404
  4. feat(orchestrator): rewrite main.go to use pipeline.Construct #405

@JamyDev JamyDev changed the title feat(platform): add StageContext to pipeline.Stage constructors feat(orchestrator): add pipeline self-declaration Jul 20, 2026
JamyDev and others added 2 commits July 21, 2026 10:59
Pass engine-produced values (TopicRegistry, TopicKey, ConsumerGroup)
to Stage.New and Stage.DLQ via StageContext. Controllers need the
registry for publishing to downstream stages and the topic key/group
for their own identity — these are engine-owned, not host-provided
Deps.

DLQ StageContext automatically derives the DLQ topic key (appending
"_dlq") and consumer group (appending "-dlq") from the primary
stage's values.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Introduce `submitqueue/orchestrator/pipeline.go` with three exports:

- `Deps` struct: the full set of dependencies (logger, scope, storage,
  counter, and four extension factories) the orchestrator pipeline
  needs. This struct IS the service's public API toward deployers.

- `Stages` slice: the complete 12-stage pipeline topology as a typed
  table of `pipeline.Stage[Deps]`. Each row declares a primary
  controller constructor and its DLQ reconciler. Adding a stage =
  adding one row.

- `PublishOnlyTopics`: topics the orchestrator publishes to but does
  not consume (log, merge-conflict-check, runway-merge).

- `Controllers` struct + `NewControllers`: RPC-facing controllers
  (currently Ping), NOT bound to any wire contract.

Pure addition alongside the existing main.go wiring — no behavioral
changes.

Ref: doc/rfc/submitqueue/modular-queue-wiring.md (Step 3)

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@JamyDev
JamyDev force-pushed the jamy/platform-pipeline branch from b49618c to c37eaea Compare July 21, 2026 17:59
@JamyDev
JamyDev force-pushed the jamy/orchestrator-pipeline branch from e091f18 to 538faea Compare July 21, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant