Skip to content

refactor(coordinator): consolidate provider decoding and profiler scalar copies - #1050

Closed
Gajesh2007 wants to merge 8 commits into
refactor/coordinator-wire-protocolfrom
refactor/coordinator-decoder-profile-cleanup
Closed

Gajesh2007 wants to merge 8 commits into
refactor/coordinator-wire-protocolfrom
refactor/coordinator-decoder-profile-cleanup

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

The deeper package split still contained the repeated provider-frame decoder branches and three identical profiler scalar-copy helpers from the earlier refactor base. This carries the remaining #978 and #982 changes into the current owners, stacked on #1042.

provider_message.go selects the concrete payload and shares one JSON decode/error path. The chunk fast path, type strings, errors and receiver state on failure stay the same. telemetry/profiler uses one constrained cloneProfileValue helper for bool, int and int64 while keeping the existing field mappings, range checks and independent scalar storage.

The decoder and regression fixture are byte-identical to #978. The scalar helper is identical to #982, with the same body as each original specialization. The earlier profiler comment corrections are already represented in the current owner. Source maps follow the new decoder file, and T-051 now selects the profiler policy, export controller and profile wire files in their current locations. The older PRs remain open until the reconciled stack is ready.

Before:

flowchart LR
  Frame[Provider frame] --> Switch[messages.go: repeated decode/error branches]
  Switch --> Result[Payload or original error]
  Profile[Provider profile] --> Helpers[Three scalar-copy helpers]
  Helpers --> Row[Independent stored scalar values]
Loading

After:

flowchart LR
  Frame[Same provider frame] --> Switch[provider_message.go: select payload type]
  Switch --> Decode[One decode/error path; publish on success]
  Decode --> Result[Same payload or error and receiver state]
  Profile[Same provider profile] --> Helper[provider_bounds.go: cloneProfileValue]
  Helper --> Row[Same independent stored scalar values]
Loading

Validation: protocol and profiler race suites pass 131 top-level tests / 343 including subtests, zero skips. The carried three-case failed-decode fixture also passes against the unchanged parent using a source overlay. Actual-Git comparison accounts for all 351 prior declarations and all three scalar specializations; 26 other test files remain byte-identical. Command build, pinned lint and docs281 pass. No native provider or production execution is claimed.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Parent refresh 76a23f7f9 incorporates protocol parent 7c93587de. The complete Git-tree comparison preserves every runtime, test, module and gitlink state from the previously reviewed child; only the protocol review prompt and maintained guidance change. All 281 documentation files pass, and the test guide is stamped to composed source 574d74539.

@vercel

vercel Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Sep 14, 2026 7:20pm UTC
d-inference-console-ui-dev Ready Ready Preview Sep 14, 2026 7:20pm UTC
d-inference-landing Ready Ready Preview Sep 14, 2026 7:20pm UTC

Request Review

@Gajesh2007

Copy link
Copy Markdown
Member Author

@codex review

Please review this cleanup against its protocol base. The original decoder branches, errors, receiver state and profiler field mappings are preserved; 131 top-level protocol/profiler race tests and the parent-overlay failure-state fixture pass. The profiler threat selector now follows its extracted owners.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-09-14T19:03:07.995876Z c9e25bc New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f066a94f87

ℹ️ 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

@codex review

Updated all three remaining decoder source maps to coordinator/protocol/provider_message.go and reverified their freshness stamps.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: c9e25bc838

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Gajesh2007

Copy link
Copy Markdown
Member Author

@codex review

Refreshed the parent to #1042 at 7c93587de, preserving all runtime/test/module/gitlink states from the reviewed child. Only protocol-review guidance and test-guide wording/stamps changed. Exact parent composition proof and all 281 documentation checks pass; composed source is 574d74539.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Gajesh2007

Copy link
Copy Markdown
Member Author

Consolidated into #1056 for review and merge after #1094, #1095 and #1096. #1056 contains this branch's exact head (76a23f7f963d89dd27422c6cc29f7590d3672ac4), including its reviewed fixes, with implementations and regressions reconciled into the coordinator subsystem owners. Closing the component PR to collapse the stack; its branch, commits and review history are retained. Follow #1056 for combined validation and merge status.

@Gajesh2007 Gajesh2007 closed this Sep 16, 2026

This branch had an error being deployed

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