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

Verification

aifx validate output
Error: unknown command "validate" for "aifx"
Run 'aifx --help' for usage.

Session ID: 4b4e96b8-0538-46f9-ab52-544ced8256e6
Include this ID when reporting issues.

🤖 Generated by minion
Co-Authored-By: minion-bot noreply@minion.uber.com
Co-Authored-By: jamy@uber.com
Agent: claude-code | Task: 6e2991d8-faa8-46c9-b94a-42ec9dcf242c

View your task: https://minion.uberinternal.com/task/6e2991d8-faa8-46c9-b94a-42ec9dcf242c

Test Plan

Issues

Stack

  1. feat(orchestrator): rewrite main.go to use pipeline.Construct #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 and others added 2 commits July 20, 2026 19:02
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 <noreply@anthropic.com>
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 <noreply@anthropic.com>
@JamyDev JamyDev changed the title feat(platform): add StageContext to pipeline.Stage constructors feat(orchestrator): add pipeline self-declaration Jul 20, 2026
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