Skip to content

Align Node v1 conformance with the published 1.0 contract - #1479

Merged
Gudge (MGudgin) merged 1 commit into
mainfrom
user/gudge/align-node-wire-conformance-v1
Oct 13, 2026
Merged

Gudge (MGudgin) merged 1 commit into
mainfrom
user/gudge/align-node-wire-conformance-v1

Conversation

@MGudgin

@MGudgin Gudge (MGudgin) commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

This PR fixes the Node v1 wire-conformance oracle to compare against the
published 1.0.0 contract rather than the mutable 1.1 development contract.
It removes a legacy network type and helper that referenced retired fields
while retaining runtime rejection of unsupported policy.

Details

  • Assert the v1 SDK version and authoring shape against published 1.0 wire types.
  • Use directional network types in internal mapping and remove obsolete Linux
    legacy-network mutation.
  • Update the schema-codegen guide to describe the published v1.0 oracle.

Tests

  • npm run typecheck --prefix sdk\node — passed (SDK build, unit typecheck,
    and packed-package integration compilation).
  • npm test --prefix sdk\node — passed (444 passed, 21 skipped).
  • Linux and macOS were not tested locally (Windows host).
Microsoft Reviewers: Open in CodeFlow

This PR aligns Node v1 one-shot type conformance with the published 1.0.0
contract emitted by the SDK. It removes the obsolete NetworkConfig type
and Linux helper that mutated retired network fields. Runtime rejection
of unsupported legacy policy remains intact.

Details

* Compare public v1 authoring types with generated published 1.0 wire types.
* Use directional networking throughout the internal request mapping.
* Remove obsolete legacy-network mutation and update codegen documentation.

Tests

* `npm run typecheck --prefix sdk\node` passed, including packed integration.
* `npm test --prefix sdk\node` passed: 444 passed, 21 skipped.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 735d3e0b-8eff-4395-9f2c-dff9b0f86b74
Generated-with: gpt-6-sol
@MGudgin
Gudge (MGudgin) requested a review from a team as a code owner October 13, 2026 15:55
Copilot AI balanced review requested due to automatic review settings October 13, 2026 15:55
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes consistently align Node V1 with the registered 1.0.0 contract while preserving runtime rejection of retired fields.

0 open findings

What changed in this PR

Aligns Node V1 conformance and internal mapping with the published 1.0.0 contract.

Changes:

  • Targets generated V1.0 wire types and validates the SDK contract version.
  • Removes retired legacy network types and mutation logic.
  • Updates schema-codegen documentation.
File Description
sdk/​node/​tests/​unit/​wire-conformance.test.ts Uses the published V1.0 oracle.
sdk/​node/​src/​v1/​types.ts Restricts networking to directional policy.
sdk/​node/​src/​v1/​container.ts Removes obsolete Linux network mutation.
sdk/​node/​src/​helper.ts Deletes the legacy network helper.
sdk/​node/​src/​bindings/​one-shot.ts Validates directional network types.
docs/​development/​build-and-test/​schema-codegen.md Documents the V1.0 conformance oracle.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@MGudgin
Gudge (MGudgin) added this pull request to stack #1480 October 13, 2026 16:18
Comment thread sdk/node/src/v1/types.ts

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

:shipit:

@MGudgin
Gudge (MGudgin) merged commit 93a1422 into main Oct 13, 2026
31 checks passed
@MGudgin
Gudge (MGudgin) deleted the user/gudge/align-node-wire-conformance-v1 branch October 13, 2026 17:37
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.

3 participants