Skip to content

refactor(coordinator): integrate subsystem owners and preserve server composition - #1038

Closed
Gajesh2007 wants to merge 155 commits into
refactor/coordinator-bootstrapfrom
refactor/coordinator-subsystems-integrated
Closed

Gajesh2007 wants to merge 155 commits into
refactor/coordinator-bootstrapfrom
refactor/coordinator-subsystems-integrated

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

The coordinator subsystem PRs share the server, registry transactions and source maps. This branch combines their reviewed implementations and resolves the composition conflicts so the stack can be tested together. The 108 HTTP registrations, middleware order, live provider identities and transaction ordering stay intact.

Stacked on #1036. It includes inference dispatch #1044, dispatch plans #1043, routing cost #1041, MDM scheduling #1040, fault state #1037, verification #1035, attempt/response/accounting #1034 and their earlier account, billing, catalog, operations, persistence and registry parents. The focused PRs remain the implementation reviews.

It also carries the reviewed CI fixture repair: an owned historical provider session with a currently connected replacement must return 409 without deleting either record. Release-manifest cache review coverage and the release API source map include the runtime-manifest reader. The build guide links to the subsystem map once.

This remains draft while the remaining ingress/frame work and final combined validation are completed. HTTP #1039, protocol #1042, registry lifecycle #1045 and provider session #1046 remain focused children. No deployment or release configuration changes.

Before:

flowchart TD
  Request[HTTP or provider request] --> Shared[Shared Server and Registry]
  Shared --> Separate[Subsystem PRs developed and checked separately]
  Separate --> Outcome[Routing, response and accounting outcomes]
Loading

After:

flowchart TD
  Request[HTTP or provider request] --> API[Combined Server and 108-route table]
  API --> HTTP[Account, catalog, billing and operator controllers]
  API --> Inference[Dispatch, attempt, response and settlement services]
  API --> Provider[Session verification, challenge, release and MDM owners]
  Inference --> Registry[Shared registry transactions and private state owners]
  HTTP --> Store[Shared persistence contracts and backends]
  Registry --> Store
  Provider --> Registry
  Store --> Outcome[Same responses, reservations and durable records]
  API --> Checks[Combined race and build checks]
Loading

Validation:

  • Full coordinator race at cdef5557542eba1d600fd6b303db0b104e50b425: 3,397 top-level tests / 5,754 including subtests pass, with 106 existing opt-in skips. All coordinator test packages compile; command build, pinned lint (zero issues) and 281 documentation checks pass.
  • Independent actual-Git dispatch composition review accounts for all 11,098 declarations, 22,632 used import bindings, all prior test entries plus 12, and all 4,130 non-composed tracked states. Three explicit compositions retain Server construction/state and the relocated cache-tier helper. All 52 documentation conflict resolutions were reviewed.
  • The later f0c5b456c change contains only the reviewed deletion fixture and three documentation updates. All seven deletion race tests and 281 documentation checks pass; independent source/docs peer is clean.
  • Isolated PostgreSQL 16 store race passed at the earlier combined baseline 3545e26fc (253 top-level / 396 including subtests, zero skips). The owned database was stopped. The final combined database rerun remains pending with the remaining children.

No native provider/model benchmark or production execution is claimed.

# Conflicts:
#	docs/architecture/components/coordinator.md
#	docs/developer/navigation.md
#	docs/reference/api-contracts.md
# Conflicts:
#	AGENTS.md
#	coordinator/api/profiler_test.go
#	coordinator/api/server.go
#	docs/architecture/billing.md
#	docs/architecture/cache-aware-routing.md
#	docs/architecture/components/consumer.md
#	docs/architecture/components/coordinator.md
#	docs/architecture/data-flow.md
#	docs/architecture/overview.md
#	docs/architecture/request-outcome-observability.md
#	docs/architecture/routing.md
#	docs/architecture/scheduling.md
#	docs/architecture/security/encryption.md
#	docs/architecture/system-profiler.md
#	docs/architecture/telemetry.md
#	docs/consumer/quickstart.md
#	docs/developer/build.md
#	docs/developer/navigation.md
#	docs/developer/test.md
#	docs/operations/coordinator-perf-tier1-rollout.md
#	docs/operations/routing-v2-rollout.md
#	docs/reference/api-contracts.md
#	docs/reference/configuration.md
#	docs/reference/protocol-messages.md
#	docs/reference/telemetry-inventory.md
#	docs/threat-model.yaml
…/coordinator-subsystems-integrated

# Conflicts:
#	docs/developer/test.md
#	docs/reference/api-contracts.md
#	docs/threat-model.yaml
@Gajesh2007

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 45587f1f52

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Gajesh2007

Copy link
Copy Markdown
Member Author

Superseded by #1056, the complete coordinator restructuring PR against master. It includes this exact branch head and all current focused refactor heads, the later ingress/frame/SSE work, corrected source maps, and the combined race/database/build/lint validation. Closing this obsolete integration draft removes the duplicate merge target. The branch is retained because focused review slices still use it as their base; review those slices or #1056, and merge #1056 once approved.

@Gajesh2007 Gajesh2007 closed this Sep 14, 2026
jonathan308 added a commit that referenced this pull request Nov 14, 2026
…tom set; comments and docs

- decodeVideo requires a ;base64 parameter (any case) and decodes the
  payload as base64 (dataFromDataURI's new isBase64 override). An MP4's
  base64 text without the parameter, or percent-encoded bytes, is a malformed
  URI (invalid_media), no longer reported as a foreign container.
- Tests: the base64 rule, a table test of startsWithISOBMFFAtom (every
  leading atom type, and sidx/short/EBML/RIFF/empty), a legacy QuickTime file
  without mdat (malformed), an upper-case BASE64 parameter (opened).
- Super's binding and NemotronSuperVideoDecode comments no longer say
  decodeVideo checks the label; inference.md qualifies the coordinator relabel
  (#1038, unless switched off) and the local API's 400; the GLM CLI reference
  describes video by content; the changelog drops 'another case' (dev already
  accepted it).

This branch had an error being deployed

1 failed and 3 active deployments
Preview – d-inference — 45587f1f Deployed Sep 14, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 45587f1f Deployed Sep 14, 2026 by vercel[bot]
Preview – d-inference-landing — 45587f1f Deployed Sep 14, 2026 by vercel[bot]
benchmarks — 45587f1f Deployed Sep 14, 2026 by Gajesh2007 via E2E Benchmarks #1270
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